|
|
(self.webpackChunk=self.webpackChunk||[]).push([[5816],{89489:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},59477:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},40001:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},49198:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},87169:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={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"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},73331:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},15277:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},52671:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},8657:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},56082:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},33853:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},12893:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={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"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},15075:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},32134:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={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"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},43531:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},61485:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},47472:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},87395:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(60499),ge=E(59301),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},we=me,Se=E(7657),Ee=function(de,We){return ge.createElement(Se.Z,(0,y.Z)({},de,{ref:We,icon:we}))},Ce=ge.forwardRef(Ee),ke=Ce},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Rn,qt){"use strict";qt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(Rn,qt){"use strict";qt.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",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},45050:function(Rn,qt,E){"use strict";var y=E(59301),ge=Object.defineProperty,me=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ee=(Fe,de,We)=>de in Fe?ge(Fe,de,{enumerable:!0,configurable:!0,writable:!0,value:We}):Fe[de]=We,Ce=(Fe,de)=>{for(var We in de||(de={}))we.call(de,We)&&Ee(Fe,We,de[We]);if(me)for(var We of me(de))Se.call(de,We)&&Ee(Fe,We,de[We]);return Fe};const ke=Fe=>React.createElement("svg",Ce({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Fe),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));qt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},84915: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 Rn={},qt="5.0",E={},y=null,ge=!1,me=!1,we=null,Se=!1,Ee=null,Ce=null,ke=0;ke<arguments.length;ke++){var Fe=arguments[ke];if(Fe!==null)switch(typeof Fe){case"number":qt=Fe.toFixed(1);break;case"string":Fe.match(new RegExp("^[0-9]\\.[0-9]+$"))?qt=Fe:we=Fe;break;case"object":typeof Fe.is3D!="undefined"?y=Fe:E=Fe;break;case"boolean":ge=Fe,me=!0;break}}y===null&&(y={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},E.material_id!==void 0&&!me&&(ge=!0)),we!==null&&E.id===void 0&&(E.id=we);var de="",We="",Te=!1,ft=null,Ge=null,Ne=null,Be=!1,Oe=null,Ie=null,nt=null,St=null,Ae=null;E.height!==void 0&&(E.height=Math.round(E.height)),E.width!==void 0&&(E.width=Math.round(E.width));var _e=function(De){return parseFloat(De)>4?parseFloat(De):5};Rn.setHTML5Codebase=function(De,mt){Ce=De,vt(De,mt)},Rn.setJavaCodebase=Rn.setJavaCodebaseVersion=Rn.isCompiledInstalled=Rn.setPreCompiledScriptPath=Rn.setPreCompiledResourcePath=function(){},Rn.setHTML5CodebaseVersion=function(De,mt){var dt=parseFloat(De);if(dt!==NaN&&dt<5){console.log("The GeoGebra HTML5 codebase version "+dt+" is deprecated. Using version latest instead.");return}Ee=De,ye(De,mt)},Rn.getHTML5CodebaseVersion=function(){return Ge},Rn.getParameters=function(){return E},Rn.setFontsCSSURL=function(De){St=De},Rn.setGiacJSURL=function(De){},Rn.setJNLPFile=function(De){de=De},Rn.setJNLPBaseDir=function(De){},Rn.inject=function(){function De(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var mt="auto",dt=E.id,Gt,bt=!1,xt=0;xt<arguments.length;xt++){var pt=arguments[xt];typeof pt=="string"?(pt=pt.toLowerCase(),pt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?mt=pt:dt=arguments[xt]):typeof pt=="boolean"?bt=pt:pt instanceof HTMLElement&&(Gt=pt)}ln();function ln(){if(!Se){setTimeout(ln,200);return}mt=it(mt);var Wt=Gt||document.getElementById(dt);if(!Wt){console.log("possibly bug on ajax loading? ");return}if(Rn.removeExistingApplet(Wt,!1),E.width===void 0&&Wt.clientWidth&&(E.width=Wt.clientWidth),E.height===void 0&&Wt.clientHeight&&(E.height=Wt.clientHeight),!(E.width&&E.height)&&mt==="html5"&&(delete E.width,delete E.height),ft=mt,mt==="screenshot")xe(Wt,E);else{var ue=!1;E.hasOwnProperty("playButton")&&E.playButton||E.hasOwnProperty("clickToLoad")&&E.clickToLoad?ue=!0:E.hasOwnProperty("playButtonAutoDecide")&&E.playButtonAutoDecide&&(ue=(!et()||De())&&qe()),ue?(ft="screenshot",Et(Wt,E,bt,mt)):Le(Wt,E,bt)}}};function et(){try{return window.self!==window.top}catch(De){return!0}}function qe(){return E.hasOwnProperty("screenshotGenerator")&&E.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Rn.getViews=function(){return y},Rn.isJavaInstalled=function(){return!1};var ut=function(De){var mt=function(xt){var pt=JSON.parse(xt),ln=function(ae){return ae.type=="G"||ae.type=="E"},Wt=pt.elements?pt.elements.filter(ln)[0]:pt;if(!Wt||!Wt.url){dt();return}E.fileName=Wt.url,yt(Wt.settings||{}),y.is3D=!0;var ue="https://www.geogebra.org/images/";Rn.setPreviewImage(Oe||Wt.previewUrl,ue+"GeoGebra_loading.png",ue+"applet_play.png"),De()},dt=function(){E.onError&&E.onError(),zt("Error: Fetching material (id "+E.material_id+") failed.",E)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",bt="/materials/"+E.material_id+"?scope=basic";st("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(bt),mt,dt)};function yt(De){var mt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(dt){De[dt]=!!De[dt]}),mt.forEach(function(dt){E[dt]===void 0&&De[dt]!==void 0&&(E[dt]=De[dt])}),E.showToolBarHelp===void 0&&(E.showToolBarHelp=E.showToolBar)}function st(De,mt,dt){var Gt=new XMLHttpRequest;Gt.open("GET",De),Gt.onload=function(){mt(Gt.responseText)},Gt.onerror=dt,Gt.send()}Rn.isHTML5Installed=function(){return!0},Rn.getLoadedAppletType=function(){return ft},Rn.setPreviewImage=function(De,mt,dt){Oe=De,Ie=mt,nt=dt},Rn.removeExistingApplet=function(De,mt){var dt;typeof De=="string"&&(De=document.getElementById(De)),ft=null;var Gt=null;for(dt=0;dt<De.childNodes.length;dt++){var bt=De.childNodes[dt],xt=bt.className;xt==="applet_screenshot"?mt?(bt.style.display="block",ft="screenshot"):bt.style.display="none":xt!=="applet_scaler prerender"&&(De.removeChild(bt),Gt=xt&&xt.indexOf("appletParameters")!=-1?bt.id:null,dt--)}var pt=E.id!==void 0?E.id:Gt,ln=window[pt];ln&&typeof ln.getBase64=="function"&&(ln.remove(),window[pt]=null)},Rn.refreshHitPoints=function(){if(_e(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var De=Rn.getAppletObject();return De&&typeof De.recalculateEnvironments=="function"?(De.recalculateEnvironments(),!0):!1},Rn.startAnimation=function(){var De=Rn.getAppletObject();return De&&typeof De.startAnimation=="function"?(De.startAnimation(),!0):!1},Rn.stopAnimation=function(){var De=Rn.getAppletObject();return De&&typeof De.stopAnimation=="function"?(De.stopAnimation(),!0):!1},Rn.getAppletObject=function(){var De=E.id!==void 0?E.id:"ggbApplet";return window[De]},Rn.resize=function(){};var $e=function(De,mt,dt){var Gt=document.createElement("param");Gt.setAttribute("name",mt),Gt.setAttribute("value",dt),De.appendChild(Gt)},pe=function(De){return De&&De!=="false"},Le=function(De,mt,dt){_e(Ge)<=4.2&&(dt=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ge||ggbHTML5LoadedCodebaseIsWebSimple&&!Be)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bt=document.createElement("div");bt.classList.add("appletParameters","notranslate");var xt=mt.width,pt=mt.height;if(mt.disableAutoScale=mt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():mt.disableAutoScale,mt.width!==void 0)if(_e(Ge)<=4.4)pe(mt.showToolBar)&&(mt.height-=7),pe(mt.showAlgebraInput)&&(mt.height-=37),mt.width<605&&pe(mt.showToolBar)&&(mt.width=605,xt=605);else{var ln=100;(pe(mt.showToolBar)||pe(mt.showMenuBar))&&(mt.hasOwnProperty("customToolBar")&&(mt.customToolbar=mt.customToolBar),ln=pe(mt.showMenuBar)?245:155),xt<ln&&(mt.width=ln,xt=ln)}bt.style.border="none",bt.style.display="inline-block";for(var Wt in mt)mt.hasOwnProperty(Wt)&&Wt!=="appletOnLoad"&&bt.setAttribute("data-param-"+Wt,mt[Wt]);St&&bt.setAttribute("data-param-fontscssurl",St),Rn.resize=function(){GGBAppletUtils.responsiveResize(De,mt)},window.addEventListener("resize",function(wt){Rn.resize()});var ue=typeof mt.appletOnLoad=="function"?mt.appletOnLoad:function(){};if(!dt&&mt.width!==void 0){mt.hasOwnProperty("showSplash")||bt.setAttribute("data-param-showSplash","false");var ae=De.querySelector(".applet_scaler.prerender"),re=ae!==null;if(re)var se=ae.querySelector(".ggb_preview");else{var se=je(xt,pt,mt.borderColor,!1);ae=document.createElement("div"),ae.className="applet_scaler",ae.style.position="relative",ae.style.display="block",ae.style.width=xt+"px",ae.style.height=pt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ae,"66%"),_e(Ge)>=5?(mt.appletOnLoad=function(wt){var Tt=De.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ae),window.GGBT_wsf_view&&$(window).trigger("resize"),ue(wt)},re||ae.appendChild(se)):bt.appendChild(se),ae.appendChild(bt),re||De.appendChild(ae),setTimeout(function(){Rn.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(bt),De.appendChild(ve),mt.appletOnLoad=function(wt){Rn.resize(),ue(wt)}}function ie(wt,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,Tt.appletOnLoad):renderGGBElement(wt),zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function fe(wt,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Je){ie(Je.article,Je.params)}),html5AppletsToProcess=null)},_e(Ge)<5&&(wt.className+=" geogebraweb")):ie(wt,Tt)}if(Gt){scriptLoadStarted=!0;for(var Ve=0;Ve<bt.childNodes.length;Ve++){var It=bt.childNodes[Ve].tagName;It==="TABLE"&&(bt.removeChild(bt.childNodes[Ve]),Ve--)}if(ggbHTML5LoadedScript!==null){var Qe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Qe!=null&&Qe.parentNode.removeChild(Qe)}var Ke=document.createElement("script"),gt=function(){fe(bt,mt)};Ke.src=We+Ne,ggbHTML5LoadedCodebaseIsWebSimple=Be,ggbHTML5LoadedCodebaseVersion=Ge,ggbHTML5LoadedScript=Ke.src,zt("GeoGebra HTML5 codebase loaded: '"+We+"'.",mt),!Ce&&(!Ee||Ee=="5.0")?(Be?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),gt()):We.requirejs?__webpack_require__.e(4510).then(function(){var wt=[__webpack_require__(4510)];gt.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(Ke.onload=gt,De.appendChild(Ke))}else fe(bt,mt);mt.height=pt,mt.width=xt},xe=function(De,mt,dt){var Gt=je(mt.width,mt.height,mt.borderColor,dt),bt=document.createElement("div");bt.style.position="relative",bt.style.display="block",bt.style.width=mt.width+"px",bt.style.height=mt.height+"px",bt.className="applet_screenshot applet_scaler"+(dt?" applet_screenshot_play":""),bt.appendChild(Gt);var xt=GGBAppletUtils.getScale(mt,De,dt);dt?(De.appendChild(Ye()),window.GGBT_wsf_view||(De.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),De.appendChild(bt),xt!==1&&!isNaN(xt)&&(GGBAppletUtils.scaleElement(bt,xt),bt.style.width=mt.width+"px",bt.style.height=mt.height+"px",bt.parentNode.style.width=mt.width*xt+"px",bt.parentNode.style.height=mt.height*xt+"px"),Rn.resize=function(){ce(De,Gt,bt,dt)},window.addEventListener("resize",function(pt){Rn.resize()}),Rn.resize()};function ce(De,mt,dt,Gt){if(De.contains(mt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(De.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(De)}var bt=GGBAppletUtils.getScale(E,De,Gt);dt.parentNode!==null&&(!isNaN(bt)&&bt!==1?(GGBAppletUtils.scaleElement(dt,bt),dt.parentNode.style.width=E.width*bt+"px",dt.parentNode.style.height=E.height*bt+"px"):(GGBAppletUtils.scaleElement(dt,1),dt.parentNode.style.width=E.width+"px",dt.parentNode.style.height=E.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(De),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Rn.onExitFullscreen=function(De,mt){mt.appendChild(De)};var Et=function(De,mt,dt,Gt){xe(De,mt,!0);for(var bt=function(){var ln=[];for(pt=0;pt<De.childNodes.length;pt++)ln.push(De.childNodes[pt]);if(window.GGBT_wsf_view){var Wt=window.GGBT_wsf_view.renderFullScreen(De,mt.id),ue=document.getElementById("fullscreencontainer"),ae=jQuery(De).find(".fullscreencontent");ae.length>0?(Wt.remove(),ae.attr("id","fullscreencontent").show(),jQuery(ue).append(ae),window.dispatchEvent(new Event("resize"))):Le(Wt,mt,!1),window.GGBT_wsf_view.launchFullScreen(ue)}else ft=Gt,Le(De,mt,!1);if(!window.GGBT_wsf_view)for(pt=0;pt<ln.length;pt++)De.removeChild(ln[pt])},xt=De.getElementsByClassName("ggb_preview_play"),pt=0;pt<xt.length;pt++)xt[pt].addEventListener("click",bt,!1),xt[pt].addEventListener("ontouchstart",bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(De),qe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ye=function(){var De=document.createElement("div");if(De.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var mt='.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");}',dt=document.createElement("style");dt.styleSheet?dt.styleSheet.cssText=mt:dt.appendChild(document.createTextNode(mt)),document.getElementsByTagName("head")[0].appendChild(dt)}return De},je=function(De,mt,dt,Gt){var bt=document.createElement("div");bt.className="ggb_preview",bt.style.position="absolute",bt.style.zIndex="90",bt.style.width=De-2+"px",bt.style.height=mt-2+"px",bt.style.top="0px",bt.style.left="0px",bt.style.overflow="hidden",bt.style.backgroundColor="white";var xt="lightgrey";dt!==void 0&&(dt==="none"?xt="transparent":xt=dt),bt.style.border="1px solid "+xt;var pt=document.createElement("img");if(pt.style.position="relative",pt.style.zIndex="1000",pt.style.top="-1px",pt.style.left="-1px",Oe!==null&&pt.setAttribute("src",Oe),pt.style.opacity=.7,Ie!==null){var ln,Wt,ue;if(!Gt){ln=document.createElement("img"),ln.style.position="absolute",ln.style.zIndex="1001",ln.style.opacity=1,pt.style.opacity=.3,Wt=360,Wt>De/4*3&&(Wt=De/4*3),ue=Wt/5.8,ln.setAttribute("src",Ie),ln.setAttribute("width",Wt),ln.setAttribute("height",ue);var ae=(De-Wt)/2,re=(mt-ue)/2;ln.style.left=ae+"px",ln.style.top=re+"px",bt.appendChild(ln)}}return bt.appendChild(pt),bt},it=function(De){return De=De.toLowerCase(),De==="html5"||De==="screenshot"?De:"html5"},Pe=["web","webSimple","web3d","tablet","tablet3d","phone"],ye=function(De,mt){if(Ge=De,mt){vt(Ge,!0);return}var dt=!ge;if(dt){var Gt=_e(Ge);!isNaN(Gt)&&Gt<4.4&&(dt=!1)}var bt,xt;window.location.protocol.substr(0,4)==="http"?bt=window.location.protocol:bt="http:";var pt=Ge.indexOf("//");pt>0?xt=Ge:pt===0?xt=bt+Ge:xt="https://www.geogebra.org/apps/5.2.814.0/";for(var ln in Pe)if(Ge.slice(Pe[ln].length*-1)===Pe[ln]||Ge.slice((Pe[ln].length+1)*-1)===Pe[ln]+"/"){vt(xt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&dt&&!y.is3D&&!y.AV&&!y.SV&&!y.CV&&!y.EV2&&!y.CP&&!y.PC&&!y.DA&&!y.FI&&!y.PV&&!pe(E.showToolBar)&&!pe(E.showMenuBar)&&!pe(E.showAlgebraInput)&&!pe(E.enableRightClick)&&(!E.appName||E.appName=="classic")?xt+="webSimple/":xt+="web3d/",vt(xt,!1)},vt=function(De,mt){if(De.requirejs){We=De;return}De.slice(-1)!=="/"&&(De+="/"),We=De,mt===null&&(mt=De.indexOf("http")===-1),Te=mt,Ne="web.nocache.js",Be=!1;var dt=We.split("/");dt.length>1&&(!mt&&dt[dt.length-2]==="webSimple"?(Ne="webSimple.nocache.js",Be=!0):Pe.indexOf(dt[dt.length-2])>=0&&(Ne=dt[dt.length-2]+".nocache.js")),dt=De.split("/"),Ge=dt[dt.length-3],Ge.substr(0,4)==="test"?Ge=Ge.substr(4,1)+"."+Ge.substr(5,1):(Ge.substr(0,3)==="war"||Ge.substr(0,4)==="beta")&&(Ge="5.0");var Gt=parseFloat(Ge);Gt!==NaN&&Gt<5&&De.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),ye("5.0",mt))},zt=function(De,mt){window.console&&window.console.log&&(!mt||typeof mt.showLogging=="undefined"||mt.showLogging&&mt.showLogging!=="false")&&console.log(De)};E.material_id!==void 0?ut(Ct):Ct();function Ct(){var De=qt;Ee!==null?De=Ee:parseFloat(De)<5&&(De="5.0"),ye(De,!1),Ce!==null&&vt(Ce,Te),Se=!0}return Rn},GGBAppletUtils=function(){"use strict";function Rn(){return window.GGBT_wsf_edit!==void 0}function qt(Se,Ee){Ee!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ee+","+Ee+")",Se.style.webkitTransform="scale("+Ee+","+Ee+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function E(Se,Ee,Ce,ke,Fe,de){var We=null;if(de!=null&&de!="")for(var Te=Se.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+de+" ")>-1){We=Te;break}else Te=Te.parentNode;var ft=0,Ge=0,Ne=0,Be=0,Oe=0,Ie=0,nt=0;if(We)ft=We.offsetWidth,Ge=Math.max(ke?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ft=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=ft):(ft=window.innerWidth,Ge=window.innerHeight,Ne=window.innerWidth),Se){var St=Se.getBoundingClientRect();St.left>0&&St.left<=ft&&(Fe===void 0||!Fe)&&(document.dir==="rtl"?(Oe=ft-St.width-St.left,Ie=Ne<=480?10:30):(Ie=St.left,Oe=Ne<=480?10:30),Be=Ie+Oe)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ae=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be=40,nt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Be=0,nt=40)}}return Se&&((Ce===void 0||!Ce)&&Ee>0&&Ee+Be<ft?ft=Ee:ft-=Be,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce===void 0||!Ce)&&(Ge-=nt)),{width:ft,height:Ge}}function y(Se,Ee,Ce,ke,Fe){if(Se.isScreenshoGenerator)return 1;var de=ke!==void 0&&ke,We=Se.noScaleMargin!=null&&Se.noScaleMargin,Te=function(Ae){return Ae&&Ae!=="false"},ft=Te(Se.autoHeight),Ge=E(Ee,Se.width,Ce,ft,de&&window.GGBT_wsf_view||We,Fe),Ne=parseInt(Ge.width),Be=Se.width,Oe=Se.height;if(Be===void 0){var Ie=Ee.querySelector(".appletParameters");Ie&&(Be=Ie.offsetWidth,Oe=Ie.offsetHeight)}var nt=Ne/Be,St=de?1:Ge.height/Oe;return Ce!==void 0&&!Ce&&(nt=Math.min(1,nt),St=Math.min(1,St)),Math.min(nt,St)}function ge(Se,Ee,Ce){var ke=1,Fe,de=!1;if(Se.hasOwnProperty("allowUpscale")&&(de=Se.allowUpscale),Se.hasOwnProperty("scale")&&(ke=parseFloat(Se.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(de=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Fe=y(Se,Ee,de,Ce,Se.scaleContainerClass);else return ke;return de&&(!Se.hasOwnProperty("scale")||ke===1)?Fe:Math.min(ke,Fe)}function me(Se){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),Ce=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=Se.getBoundingClientRect(),Fe=(Ee-ke.width)/2,de=(Ce-ke.height)/2;de<0&&(de=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe<40?Se.style.left="40px":Se.style.left=Fe+"px",Se.style.top=de+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(de<40?Se.style.top="40px":Se.style.top=de+"px",Se.style.left=Fe+"px")}function we(Se,Ee){var Ce=Se.querySelector(".appletParameters");if(Ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==Ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(Ce.parentElement&&/fullscreen/.test(Ce.parentElement.className))return;var ke=ge(Ee,Se);Rn()&&Ce.setAttribute("data-param-scale",ke);for(var Fe=null,de=0;de<Se.childNodes.length;de++)if(Se.childNodes[de].className!==void 0&&Se.childNodes[de].className.match(/^applet_scaler/)){Fe=Se.childNodes[de];break}if(Fe!==null&&Fe.querySelector(".noscale")!==null)return;var We=Ee.id!==void 0?Ee.id:"ggbApplet",Te=window[We];(Te==null||!Te.recalculateEnvironments)&&Fe!==null&&!Fe.className.match(/fullscreen/)&&(Fe.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(Fe.parentNode.style.width=Ee.width*ke+"px",Fe.parentNode.style.height=Ee.height*ke+"px",qt(Fe,ke)):(qt(Fe,1),Fe.parentNode.style.width=Ee.width+"px",Fe.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&me(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ce).parents(".content-added-content"))}}return{responsiveResize:we,isFlexibleWorksheetEditor:Rn,positionCenter:me,getScale:ge,scaleElement:qt}}();__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 Rn=n.location.search;return Rn.indexOf(J)!=-1||Rn.indexOf(K)!=-1}function q(Rn,qt){}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(Rn){var qt=s[L].bindings;s[L].bindings=function(){for(var E=qt?qt():{},y=Rn[webModule.__softPermutationId],ge=O;ge<y.length;ge++){var me=y[ge];E[me[O]]=me[P]}return E}};var t;function u(){return v(),t}function v(){if(!t){var Rn=o.createElement(Q);if(Rn.id=L,Rn.style.cssText=R+S,Rn.tabIndex=-1,o.body.appendChild(Rn),t=Rn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var qt=document.compatMode==U?V:W;t.write(qt+X),t.close()}}}function w(Rn){function qt(y){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var me=ge();if(me){y();return}function we(){if(!me){if(!ge())return;me=!0,y(),o.removeEventListener&&o.removeEventListener(Z,we,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,we,!1);var Se=setInterval(function(){we()},$)}function E(y){var ge=u(),me=ge.body,we=ge.createElement(_);we.language=ab,we.crossOrigin=W,we.src=y,webModule.__errFn&&(we.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),me.appendChild(we)}qt(function(){E(Rn)})}webModule.__startLoadingFragment=function(Rn){return C(Rn)},webModule.__installRunAsyncCode=function(Rn){var qt=u(),E=qt.body,y=qt.createElement(_);y.language=ab,y.text=Rn,E.appendChild(y),E.removeChild(y)};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(Rn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Rn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Rn){var qt=c[Rn];return qt==null?null:qt},r=d,webModule.__errFn=e}function B(){function Rn(Se){var Ee=Se.lastIndexOf(rb);Ee==-1&&(Ee=Se.length);var Ce=Se.indexOf(sb);Ce==-1&&(Ce=Se.length);var ke=Se.lastIndexOf(tb,Math.min(Ce,Ee));return ke>=O?Se.substring(O,ke+P):W}function qt(Se){if(!Se.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=Se+vb,Se=Rn(Ee.src)}return Se}function E(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function y(){for(var Se=o.getElementsByTagName(_),Ee=O;Ee<Se.length;++Ee)if(Se[Ee].src.indexOf(xb)!=-1)return Rn(Se[Ee].src);return W}function ge(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function me(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var we=E();return we==W&&(we=y()),we==W&&(we=ge()),we==W&&me()&&(we=Rn(o.location.href)),we=qt(we),we}function C(Rn){return Rn.match(/^\//)||Rn.match(/^[a-zA-Z]+:\/\//)?Rn:webModule.__moduleBase+Rn}function D(){var Rn=[],qt=O,E=[],y=[];function ge(Se){var Ee=y[Se](),Ce=E[Se];if(Ee in Ce)return Ee;var ke=[];for(var Fe in Ce)ke[Ce[Fe]]=Fe;throw r&&r(Se,ke,Ee),null}if(__gwt_isKnownPropertyValue=function(Se,Ee){return Ee in E[Se]},webModule.__getPropMap=function(){var Se={};for(var Ee in E)E.hasOwnProperty(Ee)&&(Se[Ee]=ge(Ee));return Se},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var me;try{me=Cb;var we=me.indexOf(Db);we!=-1&&(qt=parseInt(me.substring(we+P),$),me=me.substring(O,we))}catch(Se){}return webModule.__softPermutationId=qt,C(me+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(Rn,qt,E){"use strict";E.d(qt,{Ax:function(){return we},Ds:function(){return Se},KI:function(){return Ce},SI:function(){return me},f1:function(){return ge}});var y=E(14185);function ge(ke){let Fe=!0;if(ke.length>0){for(let de=0;de<ke.length;de++)if(ke[de].compile_success==0||!ke[de].compile_success){Fe=!1;break}}else Fe=!1;return Fe}function me(ke,Fe=""){let de=[];for(let We=0;We<ke.length;We++){let Te=ke[We],ft=Fe?`${Fe}/${Te.name}`:`${Te.name}`;de.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:ft})}return de}function we(ke,Fe,de){for(let We=0;We<ke.length;We++){let Te=ke[We];if(Te.key===Fe){Te.children=de;break}Te.children&&we(Te.children,Fe,de)}return ke}function Se(ke,Fe,de){let We;return function(){let Te=this,ft=arguments,Ge=function(){We=null,de||ke.apply(Te,ft)},Ne=de&&!We;clearTimeout(We),We=setTimeout(Ge,Fe),Ne&&ke.apply(Te,ft)}}const Ee=!0,Ce=y.Z.API_SERVER},42075:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ge}});var y=E(7939),ge=E(59301),me=Object.defineProperty,we=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Fe=(Ne,Be,Oe)=>Be in Ne?me(Ne,Be,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ne[Be]=Oe,de=(Ne,Be)=>{for(var Oe in Be||(Be={}))Ce.call(Be,Oe)&&Fe(Ne,Oe,Be[Oe]);if(Ee)for(var Oe of Ee(Be))ke.call(Be,Oe)&&Fe(Ne,Oe,Be[Oe]);return Ne},We=(Ne,Be)=>we(Ne,Se(Be)),Te=(Ne,Be)=>{var Oe={};for(var Ie in Ne)Ce.call(Ne,Ie)&&Be.indexOf(Ie)<0&&(Oe[Ie]=Ne[Ie]);if(Ne!=null&&Ee)for(var Ie of Ee(Ne))Be.indexOf(Ie)<0&&ke.call(Ne,Ie)&&(Oe[Ie]=Ne[Ie]);return Oe},ft=(Ne,Be,Oe)=>new Promise((Ie,nt)=>{var St=et=>{try{_e(Oe.next(et))}catch(qe){nt(qe)}},Ae=et=>{try{_e(Oe.throw(et))}catch(qe){nt(qe)}},_e=et=>et.done?Ie(et.value):Promise.resolve(et.value).then(St,Ae);_e((Oe=Oe.apply(Ne,Be)).next())});const Ge=Ne=>{var Be=Ne,{children:Oe}=Be,Ie=Te(Be,["children"]);const[nt,St]=(0,ge.useState)(!1);return ge.createElement(y.ZP,We(de({},Ie),{loading:nt,onClick:Ae=>ft(void 0,null,function*(){try{St(!0),yield Ie.onClick(Ae),St(!1)}catch(_e){console.error(_e),St(!1)}})}),Oe)}},35139:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ft}});var y=E(59301),ge=E(6767),me=E(37568),we={codeBox:"codeBox___WpkVl"},Se=E(92310),Ee=E.n(Se),Ce=Object.defineProperty,ke=(Ge,Ne,Be)=>Ne in Ge?Ce(Ge,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ge[Ne]=Be,Fe=(Ge,Ne,Be)=>ke(Ge,typeof Ne!="symbol"?Ne+"":Ne,Be),de=(Ge,Ne,Be)=>new Promise((Oe,Ie)=>{var nt=_e=>{try{Ae(Be.next(_e))}catch(et){Ie(et)}},St=_e=>{try{Ae(Be.throw(_e))}catch(et){Ie(et)}},Ae=_e=>_e.done?Oe(_e.value):Promise.resolve(_e.value).then(nt,St);Ae((Be=Be.apply(Ge,Ne)).next())});class We extends y.Component{constructor(Ne){super(Ne),Fe(this,"canvas"),Fe(this,"randomNum",(Be,Oe)=>Math.floor(Math.random()*(Oe-Be)+Be)),Fe(this,"drawPic",()=>{this.randomCode()}),Fe(this,"reloadPic",()=>{this.drawPic()}),Fe(this,"changeCode",Be=>{console.log(Be.target.value,222),this.setState({value:Be.target.value,showError:!1})}),Fe(this,"onVerify",()=>{let Be;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Be=!0,ge.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Be=!0,ge.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Be=!1),this.setState({showError:Be}),Be}),this.canvas=y.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(Ne,Be){const Oe=this.randomNum(Ne,Be),Ie=this.randomNum(Ne,Be),nt=this.randomNum(Ne,Be);return`rgb(${Oe}, ${Ie}, ${nt})`}drawText(Ne,Be,Oe){Ne.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Ie=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Ne.font=Ie+"px SimHei";const nt=10,St=(this.state.contentWidth-40)/(this.state.code.length-1);let Ae=nt;Oe>0&&(Ae=nt+Oe*St);let _e=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Ie>40&&(_e=40);const et=this.randomNum(-10,10);Ne.translate(Ae,_e),Ne.rotate(et*Math.PI/180),Ne.fillText(Be,0,0),Ne.rotate(-et*Math.PI/180),Ne.translate(-Ae,-_e)}drawLine(Ne){for(let Be=0;Be<1;Be++)Ne.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Ne.beginPath(),Ne.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Ne.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Ne.stroke()}drawDot(Ne){for(let Be=0;Be<100;Be++)Ne.fillStyle=this.randomColor(0,255),Ne.beginPath(),Ne.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Ne.fill()}randomCode(){let Ne="";const Be="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Oe=0;Oe<this.state.codeLength;Oe++){const Ie=Math.floor(Math.random()*57);Ne+=Be[Ie]}this.setState({code:Ne},()=>{const Ie=this.canvas.current.getContext("2d");Ie.textBaseline="bottom",Ie.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Ie.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let nt=0;nt<this.state.code.length;nt++)this.drawText(Ie,this.state.code[nt],nt);this.drawLine(Ie),this.drawDot(Ie)})}render(){const{className:Ne,width:Be=300}=this.props;return y.createElement("div",{className:Ee()(we.codeBox,Ne),style:{width:Be}},y.createElement("aside",null,y.createElement(me.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),y.createElement("div",null,y.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),y.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Te=(Ge,Ne)=>{let Be;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Ne),React.createElement(We,{ref:Oe=>Be=Oe})),onOk:()=>de(void 0,null,function*(){if(Be.onVerify())return Promise.reject();Ge()})})};var ft=We},5622:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Fe}});var y=E(59301),ge=E(37568),me=E(96599),we=E(6767),Se={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Ee=E(62772);const{TextArea:Ce}=ge.default;class ke extends y.Component{constructor(We){super(We),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:We,onAnswerChange:Te,addChildAnswer:ft,exerciseIsPublish:Ge,answers:Ne,activeOptionErrorIndex:Be,flex:Oe="0 0 1000px"}=this.props;console.log("----",Ne);let{inputVisible:Ie,EditInputIndex:nt}=this.state;return y.createElement("div",{className:Se.flex},y.createElement("div",{className:`${Se.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",We+1,"):"),y.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Ne==null?void 0:Ne.map((St,Ae)=>y.createElement(y.Fragment,null,nt!==Ae?(St==null?void 0:St.length)>0?y.createElement(me.default,{className:"edit-tag",key:St,closable:!(We===0&&Ae===0),onClose:_e=>{_e.preventDefault(),(Ne==null?void 0:Ne.length)===1&&Ae===0?this.props.deleteChildAnswermain(We,Ae):this.props.deleteChildAnswer(We,Ae)}},y.createElement("span",{onDoubleClick:_e=>{this.setState({EditInputIndex:Ae}),_e.preventDefault()}},St)):y.createElement(ge.default,{defaultValue:St,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:_e=>{if(_e.target.value.replaceAll(" ","").length<=0){we.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(We,Ae,_e.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):y.createElement(ge.default,{defaultValue:St,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:_e=>{if(_e.target.value.replaceAll(" ","").length<=0){we.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(We,Ae,_e.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Ie&&y.createElement(me.default,{className:"site-tag-plus",onClick:()=>{ft(We),this.setState({inputVisible:!0})}},y.createElement(Ee.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var Fe=ke},97444:function(Rn,qt,E){"use strict";E.d(qt,{d4:function(){return ft},VP:function(){return Fe}});var y=E(59301),ge={digitalLabel:"digitalLabel___hkWuZ",active:"active___jawU1",titleEditor:"titleEditor___wX1lW",title:"title___SuT2h",editIcon:"editIcon___XrTIi",paperTab:"paperTab___GUxeB",tabItem:"tabItem___or0fY",dottedLine:"dottedLine___Ln0Xr"};const me=({number:Ge,active:Ne,className:Be})=>y.createElement("div",{className:`${ge.digitalLabel} ${Ne?ge.active:""} ${Be}`},Ge);var we=E(25399),Se=E(37568),Ee=E(6767),Ce=E(59301),ke=(Ge,Ne,Be)=>new Promise((Oe,Ie)=>{var nt=_e=>{try{Ae(Be.next(_e))}catch(et){Ie(et)}},St=_e=>{try{Ae(Be.throw(_e))}catch(et){Ie(et)}},Ae=_e=>_e.done?Oe(_e.value):Promise.resolve(_e.value).then(nt,St);Ae((Be=Be.apply(Ge,Ne)).next())});const Fe=({defaultValue:Ge,onFinish:Ne})=>{const[Be,Oe]=(0,y.useState)(!1),[Ie,nt]=(0,y.useState)(Ge);return(0,y.useEffect)(()=>{nt(Ge)},[Ge]),Ce.createElement("div",{className:ge.titleEditor},Be?Ce.createElement(Se.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ie,onChange:St=>{nt(St.target.value)},onBlur:()=>ke(void 0,null,function*(){var St;if(((St=Ie==null?void 0:Ie.replaceAll(" ",""))==null?void 0:St.length)<=0){Ee.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ne(Ie))&&Oe(!1)}),onPressEnter:()=>ke(void 0,null,function*(){var St;if(((St=Ie==null?void 0:Ie.replaceAll(" ",""))==null?void 0:St.length)<=0){Ee.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ne(Ie))&&Oe(!1)})}):Ce.createElement("div",{className:ge.title,onDoubleClick:()=>Oe(!0)},Ie,Ce.createElement(we.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ce.createElement("i",{className:`${ge.editIcon} iconfont icon-bianji_Hover`,onClick:()=>Oe(!0)}))))};var de=E(77019),We=E(5269),Te=(Ge,Ne,Be)=>new Promise((Oe,Ie)=>{var nt=_e=>{try{Ae(Be.next(_e))}catch(et){Ie(et)}},St=_e=>{try{Ae(Be.throw(_e))}catch(et){Ie(et)}},Ae=_e=>_e.done?Oe(_e.value):Promise.resolve(_e.value).then(nt,St);Ae((Be=Be.apply(Ge,Ne)).next())});const ft=({onChange:Ge=()=>Te(void 0,null,function*(){}),tabs:Ne,activeKey:Be,defaultActiveKey:Oe,className:Ie=""})=>{var nt,St,Ae,_e,et,qe,ut;const[yt,st]=(0,y.useState)(Oe===void 0?(nt=Ne[0])==null?void 0:nt.key:Oe);return(0,y.useEffect)(()=>{Be!==void 0&&st(Be)},[Be]),y.createElement(de.Z,{justify:"center",align:"middle",className:`${ge.paperTab} ${Ie}`},y.createElement(We.Z,{className:`${ge.tabItem} ${yt===((St=Ne[0])==null?void 0:St.key)?ge.active:""}`,onClick:()=>Te(void 0,null,function*(){var $e;yield Ge(Ne[0].key),st(($e=Ne[0])==null?void 0:$e.key)})},y.createElement(me,{number:1,active:yt===((Ae=Ne[0])==null?void 0:Ae.key),className:"mr10"}),y.createElement("span",null,(_e=Ne[0])==null?void 0:_e.label)),y.createElement(We.Z,{flex:"188px",className:`${ge.dottedLine} ml30 mr30`}),y.createElement(We.Z,{className:`${ge.tabItem} ${yt===((et=Ne[1])==null?void 0:et.key)?ge.active:""}`,onClick:()=>Te(void 0,null,function*(){var $e,pe;yield Ge(($e=Ne[1])==null?void 0:$e.key),st((pe=Ne[1])==null?void 0:pe.key)})},y.createElement(me,{number:2,active:yt===((qe=Ne[1])==null?void 0:qe.key),className:"mr10"}),y.createElement("span",null,(ut=Ne[1])==null?void 0:ut.label)))}},44240:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ee}});var y=E(37639),ge={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},me=E(32637),we=E(59301),Ee=({type:Ce,style:ke})=>{const Fe=we.createElement("div",{className:ge.wrap,onClick:de=>{de.preventDefault(),de.stopPropagation()}},we.createElement("p",null,Ce==="shixun"||Ce==="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",we.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Ce==="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"),we.createElement("div",{className:ge.contact},we.createElement("div",{className:ge.img},we.createElement("img",{src:me,width:"124px",height:"124px"})),we.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return we.createElement(y.Z,{content:Fe},we.createElement("span",{className:ge.text,style:ke},"\u9AD8\u6D88\u8017"))}},40254:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return We}});var y=E(59301),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},me=E(92310),we=E.n(me),Se=E(29787),Ee=E(2859),Ce=E(49317),ke=E(76406),Fe=(Te,ft,Ge)=>new Promise((Ne,Be)=>{var Oe=St=>{try{nt(Ge.next(St))}catch(Ae){Be(Ae)}},Ie=St=>{try{nt(Ge.throw(St))}catch(Ae){Be(Ae)}},nt=St=>St.done?Ne(St.value):Promise.resolve(St.value).then(Oe,Ie);nt((Ge=Ge.apply(Te,ft)).next())}),We=({data:Te,className:ft,fullWidth:Ge,style:Ne={},onClose:Be,onOk:Oe,showFullTools:Ie,noAssociationId:nt})=>{const St=(0,y.useRef)(null),Ae=(0,y.useRef)(null),_e=(0,y.useRef)(null),et=(0,y.useRef)(null),[qe,ut]=(0,y.useState)(!1),[yt,st]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(_e.current||(_e.current=document.createElement("style"),document.head.appendChild(_e.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),_e.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&$e()):(document.body.removeAttribute("data-custom"),_e.current&&(document.head.removeChild(_e.current),_e.current=null)),()=>{document.body.removeAttribute("data-custom"),_e.current&&(document.head.removeChild(_e.current),_e.current=null)}),[Te==null?void 0:Te.visible]);const $e=()=>Fe(void 0,null,function*(){ut(!0),st("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ce=yield(0,ke.ZJ)(Te==null?void 0:Te.src);St.current.src="",St.current.src=ce,St.current.onload=function(){xe()},ut(!1),st("")}),pe=ce=>Fe(void 0,null,function*(){ut(!0),st("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Et=yield(0,Ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:ce.dataUrl}});Et!=null&&Et.id&&!nt?(yield(0,Ce.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Et==null?void 0:Et.id,settings:JSON.stringify(ce.state)}})).status===0&&Oe():Et!=null&&Et.id&&Oe(Et),ut(!1),st("")}),Le=()=>{const ce=document.querySelector('a[href="https://markerjs.com/"]');ce&&ce.parentNode&&(ce.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(Ye=>{const je=document.querySelector(Ye.name);je&&je.setAttribute("title",Ye.title)})},xe=()=>{Ae.current=new Ee.hP(St.current),Ae.current.targetRoot=et.current,Ae.current.addEventListener("render",pe),Ae.current.addEventListener("beforeclose",Be),Ie&&(Ae.current.availableMarkerTypes=Ae.current.ALL_MARKER_TYPES,Ae.current.uiStyleSettings.redoButtonVisible=!0,Ae.current.uiStyleSettings.notesButtonVisible=!0,Ae.current.uiStyleSettings.zoomButtonVisible=!0,Ae.current.uiStyleSettings.zoomOutButtonVisible=!0,Ae.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ae.current.uiStyleSettings,Ae.current.show(),Te!=null&&Te.snapshotData&&Ae.current.restoreState(Te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Le()},300)};return y.createElement(y.Fragment,null,(Te==null?void 0:Te.visible)&&y.createElement(Se.Z,{spinning:qe,tip:yt,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:et,className:we()(ge.imageDimensions,ft,Ge?ge.fullWidth:""),style:Ne},y.createElement("img",{className:ge.img,ref:St}))))}},71039:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(74501),me=E(48136),we=E(9057),Se=E(62957),Ee=E(59301);const Ce=(0,y.forwardRef)(({callback:ke,width:Fe,onChange:de,disabled:We,readOnly:Te,type:ft="",value:Ge="",style:Ne={}},Be)=>{const Oe=(0,y.useRef)(),Ie=(0,y.useRef)(),[nt,St]=(0,y.useState)(0),[Ae,_e]=(0,y.useState)(0),[et,qe]=(0,y.useState)(!1),ut=()=>{var pe=document.createElement("div");pe.innerHTML=Oe.current.getValue();var Le=pe.innerText;return ke&&ke(Le),Le};(0,y.useImperativeHandle)(Be,()=>({getData:ut}));const yt=pe=>{pe.preventDefault();const Le=pe.clientX-nt,xe=pe.clientY-Ae;document.body.onmousemove=ce=>{let Et=ce.clientX-Le,Ye=ce.clientY-xe;const je=document.getElementsByClassName("markdown-popup-form")[0],it=window.innerWidth-je.offsetWidth,Pe=window.innerHeight-je.offsetHeight;Et=Math.max(0,Math.min(Et,it)),Ye=Math.max(0,Math.min(Ye,Pe)),st(ce.clientX,ce.clientY,Le,xe)&&(St(Et),_e(Ye))},document.body.onmouseup=function(){document.body.onmousemove=null}},st=(pe,Le,xe,ce)=>{const Et=document.body.clientHeight,Ye=document.body.clientWidth;return pe<20&&xe>pe||pe>Ye-20&&xe<pe||Le<20&&ce>Le||Le>Et-20&&ce<Le?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,y.useEffect)(()=>{et&&setTimeout(()=>{const pe=document.getElementsByClassName("markdown-popup-form")[0],Le=window.innerWidth/2-pe.offsetWidth/2,xe=window.innerHeight/2-pe.offsetHeight/2;St(Le),_e(xe)},0)},[et]);const $e=()=>{We||Te||qe(!0)};return Ee.createElement("div",{style:Ne},Ee.createElement("div",{style:{width:Fe||"100%",position:"relative"},className:`${ge.Z.mathFillWrap} ${We||Te?"cursorDefault":""}`,onClick:()=>$e()},Ee.createElement("math-field",{disabled:We,locale:"zh_cn",class:`${ge.Z.mathField} ${ft}`,readOnly:Te,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Oe,style:{width:"100%",fontSize:Ge?18:14},value:Ge||""})),Ee.createElement(Se.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:nt,top:Ae},title:Ee.createElement("div",{style:{cursor:"move"},onMouseDown:yt},"\u8F93\u5165\u516C\u5F0F"),open:et,onOk:()=>{const pe=Ie.current.getData();Oe.current.setValue(pe),de(pe),qe(!1)},onCancel:()=>{qe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ee.createElement(we.Z,{value:Ge,ref:Ie,onChange:de,showSaveButton:!1})))});qt.Z=Ce},9057:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(77019),me=E(5269),we=E(31691),Se=E(7939),Ee=E(35883),Ce=E(74501),ke=E(48136),Fe=E(59301);const de=(0,y.forwardRef)(({callback:We,showSaveButton:Te,value:ft=""},Ge)=>{const Ne=(0,y.useRef)(),Be=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Oe=[{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}`}]}]}],Ie=Ae=>{Ne.current.setValue(Ne.current.getValue()+" "+Ae.value+" ")},nt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Fe.createElement(ge.Z,{className:Ce.Z.lists,gutter:[10,10]},Be.map((Ae,_e)=>Fe.createElement(me.Z,{flex:"110px",className:Ce.Z.item},Fe.createElement("div",null,Fe.createElement(Ee.Z,{value:`$$${Ae.value}$$`}),Ae.name),Fe.createElement("div",{className:Ce.Z.children},Ae.children.map((et,qe)=>Fe.createElement("div",{key:qe},Fe.createElement("h1",null,et.name),Fe.createElement(ge.Z,{gutter:[10,10]},et.data.map((ut,yt)=>Fe.createElement(me.Z,{key:yt,onClick:()=>Ie(ut),className:Ce.Z.diamond},Fe.createElement(Ee.Z,{value:"`$$"+ut.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Fe.createElement(ge.Z,{className:Ce.Z.lists,gutter:[10,10]},Oe.map((Ae,_e)=>Fe.createElement(me.Z,{flex:"110px",className:Ce.Z.item},Fe.createElement("div",null,Fe.createElement(Ee.Z,{value:"`$$"+Ae.value+"$$`"}),Ae.name),Fe.createElement("div",{className:Ce.Z.children},Ae.children.map((et,qe)=>Fe.createElement("div",{key:qe},et.name&&Fe.createElement("h1",null,et.name),Fe.createElement(ge.Z,{gutter:[10,10]},et.data.map((ut,yt)=>Fe.createElement(me.Z,{key:yt,onClick:()=>Ie(ut),className:Ce.Z.diamond},Fe.createElement(Ee.Z,{value:"`$$"+ut.value+"$$`"}))))))))))}],St=()=>{var Ae=document.createElement("div");Ae.innerHTML=Ne.current.getValue();var _e=Ae.innerText;return We&&We(_e),_e};return(0,y.useImperativeHandle)(Ge,()=>({getData:St})),Fe.createElement("div",{className:Ce.Z.mathWrap},Fe.createElement(we.default,{defaultActiveKey:"1",items:nt}),Fe.createElement("math-field",{locale:"zh_cn",className:Ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ne,style:{width:800,marginTop:30,fontSize:18}},ft||""),Te&&Fe.createElement("div",{className:Ce.Z.button},Fe.createElement(Se.ZP,{size:"large",onClick:St,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});qt.Z=de},90736:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(4977),me=E(7939),we=Object.defineProperty,Se=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,de=(Ge,Ne,Be)=>Ne in Ge?we(Ge,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ge[Ne]=Be,We=(Ge,Ne)=>{for(var Be in Ne||(Ne={}))ke.call(Ne,Be)&&de(Ge,Be,Ne[Be]);if(Ce)for(var Be of Ce(Ne))Fe.call(Ne,Be)&&de(Ge,Be,Ne[Be]);return Ge},Te=(Ge,Ne)=>Se(Ge,Ee(Ne));const ft=({img:Ge,buttonProps:Ne={},styles:Be={},customText:Oe,ButtonText:Ie,ButtonClick:nt,Buttonclass:St,ButtonTwo:Ae,imgStyles:_e,loading:et=!1,className:qe=""})=>y.createElement("section",{className:`tc animated fadeIn ${qe}`,style:We({color:"#999",margin:"100px auto",visibility:et?"hidden":"visible"},Be)},y.createElement("img",{src:Ge||ge,style:Te(We({},_e),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},Oe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ie&&y.createElement(me.ZP,We({className:St,onClick:nt},Ne),Ie),Ae&&Ae);qt.Z=ft},86974:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return St}});var y=E(59301),ge={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},me=E(7939),we=E(70557),Se=E(34728),Ee=E(25399),Ce=E(76406),ke=E(84849),Fe=E(90736),de=E(14185),We=E(52078),Te=E(59301),ft=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Oe=(Ae,_e,et)=>_e in Ae?ft(Ae,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ae[_e]=et,Ie=(Ae,_e)=>{for(var et in _e||(_e={}))Ne.call(_e,et)&&Oe(Ae,et,_e[et]);if(Ge)for(var et of Ge(_e))Be.call(_e,et)&&Oe(Ae,et,_e[et]);return Ae},nt=(Ae,_e,et)=>new Promise((qe,ut)=>{var yt=pe=>{try{$e(et.next(pe))}catch(Le){ut(Le)}},st=pe=>{try{$e(et.throw(pe))}catch(Le){ut(Le)}},$e=pe=>pe.done?qe(pe.value):Promise.resolve(pe.value).then(yt,st);$e((et=et.apply(Ae,_e)).next())}),St=({editOffice:Ae="view",data:_e,issaver:et,onSaver:qe,theme:ut,type:yt,filename:st,monacoEditor:$e,className:pe,style:Le,close:xe,onClose:ce,hasMask:Et,disabledDownload:Ye,onImgDimensions:je,showNodata:it,recordInfo:Pe})=>{const[ye,vt]=(0,y.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[zt,Ct]=(0,y.useState)(""),[De,mt]=(0,y.useState)(),dt=window.ENV==="build"?"/react/build":"",Gt=location.host.startsWith("localhost")?de.Z.PROXY_SERVER:de.Z.API_SERVER,xt=10*(1024*1024),pt=(0,y.useRef)();_e!=null&&_e.startsWith("/api")&&yt!=="txt"&&(_e=de.Z.API_SERVER+_e);const ln=ve=>ve.substring(ve.lastIndexOf("/")+1).split(".").pop();st&&$e&&($e.filename=st),(0,y.useEffect)(()=>{var ve,ie;const fe=(ie=(ve=document.cookie)==null?void 0:ve.replace(/\s/g,""))==null?void 0:ie.split(";");fe==null||fe.map(Ve=>{let It=Ve.split("=");It[0]==="_educoder_session"&&Ct(It[1])})},[]),(0,y.useEffect)(()=>{yt==="office"&&(_e.indexOf("bigfilescdn.")>-1||_e.indexOf("bigfiles1")>-1?mt({url:_e,fileType:ln(_e),model:_e.indexOf("model=edit")?"edit":"view"}):_e.indexOf("coze")>-1?mt({url:_e,fileType:"doc",model:"view"}):ue())},[yt,_e]);function Wt(ve){return nt(this,null,function*(){ve.data.type==="pdfdata"&&(qe(ve.data.data),window.removeEventListener("message",Wt,!1)),console.log("mess---:",ve.data)})}const ue=()=>nt(void 0,null,function*(){console.log("data:",_e);let ve=_e;_e.startsWith("http")||(ve=location.origin+ve);let ie=new URL(ve).pathname.split("/").pop();const fe=yield(0,ke.gJ)({attachment_id:ie});fe.url=Gt+fe.url,mt(fe)}),ae=()=>{if(_e.startsWith("http")||_e.startsWith("blob:")){re();return}(0,Ce.Sv)(st||"educoder",_e,st)},re=()=>{Pe&&(0,We.fc)({id:Pe==null?void 0:Pe.id,watch_type:1,course_id:Pe==null?void 0:Pe.course_id}),(0,Ce.Nd)(st||"educoder",decodeURIComponent(_e))};(0,y.useEffect)(()=>(window.addEventListener("message",se),()=>{window.removeEventListener("message",se)}),[]);const se=ve=>{var ie;((ie=ve==null?void 0:ve.data)==null?void 0:ie.type)==="closePop"&&ce()};return Te.createElement("div",{style:Ie({},Le||{}),className:`${Et&&ge.bgBlack} ${yt?ge.wrp:"hide"}`},!!yt&&xe&&Te.createElement("div",{id:"closePop",className:ge.close,ref:pt},!!je&&Te.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>pt.current},Te.createElement("span",{onClick:()=>{ce(),je()}},Te.createElement("i",{className:"icon-yulanpizhu"}))),!Ye&&window.parent===window&&Te.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>pt.current},Te.createElement("span",{onClick:re},Te.createElement("i",{className:"icon-quxiaozhiding"}))),et&&Te.createElement(Ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>pt.current},Te.createElement("span",{className:"",onClick:()=>{const ve=document.getElementById("pdfiframe");window.addEventListener("message",Wt,!1),setTimeout(()=>{ve.contentWindow.postMessage("getData","*")},300)}},Te.createElement("i",{className:"icon-baocun"}))),Te.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>pt.current},Te.createElement("span",{className:"",onClick:()=>{ce()}},Te.createElement("i",{className:"icon-guanbi1"})))),Te.createElement("div",{className:`${ge[pe]} ${pe} ${ge.monaco} ${yt==="txt"?"show":"hide"}`},yt==="txt"&&Te.createElement(Te.Fragment,null,Te.createElement(Se.ZP,Ie({},$e)))),yt==="audio"&&Te.createElement("audio",{controls:!0,src:`${(_e==null?void 0:_e.indexOf("http://"))>-1||(_e==null?void 0:_e.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${_e}`,autoPlay:!0}),yt==="video"&&Te.createElement(Te.Fragment,null,(_e==null?void 0:_e.indexOf("http"))>-1?Te.createElement("video",{controls:!0,src:`${_e}`,autoPlay:!0}):Te.createElement("video",{controls:!0,src:`data:video/mp4;base64,${_e}`,autoPlay:!0})),yt==="office"&&De&&Te.createElement("iframe",{src:`${dt}/office.html?key=${De.key}&url=${btoa(De.url)}&callbackUrl=${Gt+(De.callbackUrl||"")}&fileType=${De.fileType}&title=${De.title||""}&model=${Ae}&officeServer=${de.Z.ONLYOFFICE}&disabledDownload=${!!Ye}`}),yt==="html"&&Te.createElement("iframe",{src:_e+"&disposition=inline"}),yt==="pdf"&&Te.createElement("iframe",{id:"pdfiframe",src:`${dt}/js/pdf/index.html?filename=${st||"educoder.pdf"}&url=${encodeURIComponent(_e)}&disabledDownload=${!!Ye}&model=${Ae}`}),yt==="image"&&Te.createElement("img",{src:`${(_e==null?void 0:_e.indexOf("http://"))>-1||(_e==null?void 0:_e.indexOf("https://"))>-1?"":"data:image/png;base64,"}${_e}`}),(yt==="other"||yt==="download")&&Te.createElement(Te.Fragment,null,it?Te.createElement(Fe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Te.createElement(me.ZP,{icon:Te.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ae,disabled:Ye},"\u4E0B\u8F7D")}):Te.createElement(me.ZP,{type:"primary",size:"middle",onClick:ae,disabled:Ye},Te.createElement(we.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),yt==="flowChart"&&Te.createElement("div",{className:"embed"},Te.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${_e||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},9556:function(Rn,qt,E){"use strict";E.d(qt,{t:function(){return Ve}});var y=E(59301),ge=E(37568),me=E(8848),we=E(28284),Se=E(62957),Ee=E(77019),Ce=E(5269),ke=E(4875),Fe=E(82326),de=E(47889),We=E(7939),Te=E(93725),ft=E(78130),Ge=E(44283),Ne=E(42168),Be=E(6767),Oe=E(29787),Ie=E(24334),nt={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"},St=E(49317),Ae=E(19160),_e=E(39116),et=E(56102),qe=E(30628),ut=E(59301),yt=Object.defineProperty,st=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ce=(It,Qe,Ke)=>Qe in It?yt(It,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):It[Qe]=Ke,Et=(It,Qe)=>{for(var Ke in Qe||(Qe={}))Le.call(Qe,Ke)&&ce(It,Ke,Qe[Ke]);if(pe)for(var Ke of pe(Qe))xe.call(Qe,Ke)&&ce(It,Ke,Qe[Ke]);return It},Ye=(It,Qe)=>st(It,$e(Qe)),je=(It,Qe,Ke)=>new Promise((gt,wt)=>{var Tt=Ht=>{try{tt(Ke.next(Ht))}catch(un){wt(un)}},Je=Ht=>{try{tt(Ke.throw(Ht))}catch(un){wt(un)}},tt=Ht=>Ht.done?gt(Ht.value):Promise.resolve(Ht.value).then(Tt,Je);tt((Ke=Ke.apply(It,Qe)).next())}),Pe=({buttonProps:It,buttonText:Qe,form:Ke,hackIdentifier:gt="",answerKey:wt,data:Tt})=>{const[Je,tt]=(0,y.useState)(!1),[Ht,un]=(0,y.useState)(!1),[Dn,yn]=(0,y.useState)(!1),[Lt,cn]=(0,y.useState)({}),[Xt,Xe]=(0,y.useState)(""),[Nt,dn]=(0,y.useState)(""),xn=(0,y.useRef)(gt),at=(0,y.useRef)(""),Rt=(0,y.useRef)(!1);(0,y.useEffect)(()=>{Dn&&Yt()},[Dn]),(0,y.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const en=()=>new Date().getTime(),Pt=Tt==null?void 0:Tt.code,Ut=()=>{var Bn,Zn,Ot;let jt=Pt?Tt==null?void 0:Tt.code:(Bn=Ke.getFieldValue("hack_codes"))==null?void 0:Bn.code,on=Pt?Tt==null?void 0:Tt.answer_content:Ke.getFieldValue(wt),En=Pt?Tt==null?void 0:Tt.input:(Ot=(Zn=Ke.getFieldValue("hack_sets"))==null?void 0:Zn[0])==null?void 0:Ot.input;on==null||on.forEach(tn=>{const In=tn.value||tn.answer_text||"";jt=jt.replace(/(@▁@|@▁▁@)/,In)}),dn(En),Xe(jt),cn({}),yn(!0)},Yt=()=>je(void 0,null,function*(){var Bn,Zn,Ot,jt;const on=en(),En=Pt?Tt==null?void 0:Tt.time_limit:(Bn=Ke.getFieldsValue())==null?void 0:Bn.hack.time_limit,tn=Pt?(Zn=Tt==null?void 0:Tt.answer_content)==null?void 0:Zn.length:(jt=(Ot=Ke.getFieldsValue())==null?void 0:Ot.standard_answers)==null?void 0:jt.length;tt(!0),yield(0,Ae.bM)(at.current,{test_hack_code:Xt,test_input:Nt});function In(){return je(this,null,function*(){const{status:pn,data:On}=yield(0,Ae.rX)(at.current,"submit"),Qn=en()-on>(En+3)*1e3*tn;if(Rt.current){if(Qn){Be.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),tt(!1);return}if(pn===0){tt(!1),cn(Ye(Et({},On),{showText:!0}));return}setTimeout(In,1e3)}})}In()}),bn=()=>je(void 0,null,function*(){var Bn,Zn,Ot,jt,on,En,tn;if(!Tt){try{yield Ke.validateFields()}catch(fr){(Ot=(Zn=(Bn=fr==null?void 0:fr.errorFields)==null?void 0:Bn[0])==null?void 0:Zn.name)!=null&&Ot.includes("standard_answers")?Be.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Be.ZP.error(fr.errorFields[0].errors[0]),Ke.scrollToField(fr.errorFields[0].name,{behavior:"smooth",block:"center"});return}un(!0);let pn="";const On=Ke.getFieldsValue();xn.current?pn=yield(0,St.ZP)(`/api/problems/${xn.current}.json`,{method:"put",body:Ye(Et({},On),{hack:Ye(Et({},On==null?void 0:On.hack),{sub_discipline_id:(tn=(En=On==null?void 0:On.hack)==null?void 0:En.sub_discipline_id)==null?void 0:tn[1],difficult:On.difficulty,item_banks_group_id:On.item_banks_group_id}),hack_codes:Ye(Et({},On.hack_codes),{code:Ie.Base64.encode(On.hack_codes.code)}),update_hack_sets:On.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}):(pn=yield(0,St.ZP)("/api/problems.json",{method:"post",body:Ye(Et({},On),{hack:Ye(Et({},On==null?void 0:On.hack),{sub_discipline_id:(on=(jt=On==null?void 0:On.hack)==null?void 0:jt.sub_discipline_id)==null?void 0:on[1],difficult:On.difficulty,item_banks_group_id:On.item_banks_group_id}),hack_codes:Ye(Et({},On.hack_codes),{code:Ie.Base64.encode(On.hack_codes.code)}),hack_sets:On.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}),xn.current=pn==null?void 0:pn.identifier,sessionStorage.projectFill=pn==null?void 0:pn.identifier)}const In=yield(0,St.ZP)(`/api/problems/${xn.current}/start.json`,{method:"get"});if((In==null?void 0:In.status)===0){at.current=In==null?void 0:In.identifier,Rt.current=!0,un(!1),Ut();return}un(!1)}),jn=Bn=>{const{status:Zn,error_msg:Ot,execute_time:jt,output:on,input:En,expected_output:tn}=Bn;let In=null;switch(Zn){case qe.h.OK:In=ut.createElement(ut.Fragment,null,ut.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",jt/1e3,"\u79D2"),ut.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case qe.h.NOMATCH:In=ut.createElement(ut.Fragment,null,ut.createElement("div",null,"\u8F93\u5165\uFF1A"),ut.createElement("pre",{style:{fontFamily:"initial"}},En),ut.createElement("div",null,"\u8F93\u51FA\uFF1A"),ut.createElement("pre",{style:{fontFamily:"initial"}},on&&Ie.Base64.decode(on)),ut.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ut.createElement("pre",{style:{fontFamily:"initial"}},tn&&Ie.Base64.decode(tn)));break;case qe.h.EXECUTEFAILURE:In=ut.createElement(ut.Fragment,null,ut.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ut.createElement("pre",null,En)),ut.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ut.createElement("pre",{className:"error"},Ie.Base64.decode(Ot)));break;case qe.h.COMPILEFAILURE:In=ut.createElement(ut.Fragment,null,ut.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ut.createElement("pre",null,En)),ut.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ut.createElement("pre",{className:"error"},Ie.Base64.decode(Ot)));break;case qe.h.PODFAILURE:In=ut.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case qe.h.TIMEOUT:In=ut.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ut.createElement(ut.Fragment,null," ",In," ")};return ut.createElement("div",null,ut.createElement(We.ZP,Ye(Et({loading:Ht},It),{onClick:bn}),Qe),ut.createElement(Se.default,{open:Dn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Je,cancelButtonProps:{style:{display:"none"}},onOk:()=>Yt(),onCancel:()=>{Rt.current=!1,yn(!1)}},ut.createElement("div",{className:nt.result},ut.createElement("div",{className:nt.left},ut.createElement("div",{className:"mb20"},ut.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Tt&&ut.createElement(et.CopyToClipboard,{text:Xt,onCopy:()=>Be.ZP.success("\u590D\u5236\u6210\u529F")},ut.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ut.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ut.createElement(_e.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Xt,onChange:Bn=>Xe(Bn)})),ut.createElement("div",{className:nt.right},ut.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B ",ut.createElement("span",{style:{color:"#FA6400",fontSize:14}},"\uFF08\u9ED8\u8BA4\u7B2C1\u4E2A\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\uFF0C\u53EF\u624B\u52A8\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u8C03\u8BD5\uFF09")),ut.createElement("div",{className:nt.box},ut.createElement("div",{className:nt.li},ut.createElement(ge.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Nt,onChange:Bn=>dn(Bn.target.value),bordered:!1,style:{height:180}}))),ut.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ut.createElement("div",{className:nt.box},ut.createElement(Oe.Z,{spinning:Je,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ut.createElement("div",{className:nt.li,style:{height:196,overflow:"auto",padding:10}},jn(Lt))))))))},ye=E(87169),vt=E(32134),zt=E(12893),Ct=E(59301),De=Object.defineProperty,mt=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,pt=(It,Qe,Ke)=>Qe in It?De(It,Qe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):It[Qe]=Ke,ln=(It,Qe)=>{for(var Ke in Qe||(Qe={}))bt.call(Qe,Ke)&&pt(It,Ke,Qe[Ke]);if(Gt)for(var Ke of Gt(Qe))xt.call(Qe,Ke)&&pt(It,Ke,Qe[Ke]);return It},Wt=(It,Qe)=>mt(It,dt(Qe)),ue=(It,Qe)=>{var Ke={};for(var gt in It)bt.call(It,gt)&&Qe.indexOf(gt)<0&&(Ke[gt]=It[gt]);if(It!=null&&Gt)for(var gt of Gt(It))Qe.indexOf(gt)<0&&xt.call(It,gt)&&(Ke[gt]=It[gt]);return Ke};const{TextArea:ae}=ge.default,{Panel:re}=me.default,se=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],ve=({value:It,onChange:Qe})=>Ct.createElement(Switch,{checked:It,onChange:Ke=>{Qe(Ke)}}),ie="@\u2581@",fe="@\u2581\u2581@",Ve=({questionTitlePlaceholder:It,form:Qe,scoreByBlank:Ke=!1,hackidentifier:gt,answerKey:wt})=>{const[Tt,Je]=(0,y.useState)(!1),[tt,Ht]=(0,y.useState)(!1),Dn=(0,Ge.useParams)().type==="edit",[yn,Lt]=(0,y.useState)(0),cn=(Yt,bn)=>{const jn=bn.line;let Bn=0;for(let Ot=0;Ot<jn;Ot++)Bn+=Yt.getLine(Ot).split(ie).length-1;for(let Ot=0;Ot<jn;Ot++)Bn+=Yt.getLine(Ot).split(fe).length-1;const Zn=Yt.getLine(jn).substring(0,bn.ch);return Bn+=Zn.split(ie).length-1,Bn+=Zn.split(fe).length-1,Bn},Xt=(Yt,bn,jn,Bn)=>{const Zn=Yt.getRange(bn.from,bn.to);let Ot=0;if(bn.text.forEach(jt=>{Ot+=jt.split(ie).length-1}),bn.text.forEach(jt=>{Ot+=jt.split(fe).length-1}),bn.origin!=="setValue"){if(Zn&&(Zn.indexOf(ie)!==-1||Zn.indexOf(fe)!==-1)){const jt=Zn.split(ie).length-1+Zn.split(fe).length-1,on=cn(Yt,bn.from);if(console.log(`\u5220\u9664${jt}\u4E2A\uFF0C \u524D\u9762\u6709${on}\u4E2A\uFF0C\u65B0\u589E${Ot}\u4E2A`),jt>1){const En=Array.from({length:jt},(tn,In)=>on+In);Bn(En)}else Bn(on)}else if(Ot>0){const jt=cn(Yt,bn.from);console.log(`\u65B0\u589E${Ot}\u4E2A\uFF0C\u4E4B\u524D\u6709${jt}\u4E2A`),jn(Ot,jt)}}},Xe=()=>{const Yt=Qe.getFieldValue(wt);Qe.setFieldsValue({[wt]:Yt==null?void 0:Yt.map((bn,jn)=>Wt(ln({},bn),{position:jn+1}))})},Nt=(0,y.useRef)(),dn=(Yt,bn)=>{for(let jn=0;jn<Yt;jn++)Nt.current({position:null,answer_text:""},bn+jn);Xe()},xn=(0,y.useRef)(),at=Yt=>{xn.current(Yt),Xe()};function Rt(Yt){Yt.stopPropagation()}const en=we.default.useWatch(wt,Qe);function Pt(){let Yt=Qe.getFieldValue("hack_sets"),bn=parseInt(Qe.getFieldValue("hack").code_compile_score)||0;const jn=Yt.length+1;Yt.map((Bn,Zn)=>(Bn.position=Zn+1,Bn)),Yt.push({input:"",output:"",position:jn}),Qe.setFieldsValue({hack_sets:Yt}),Lt(Yt.length-1)}function Ut(Yt){let bn=Qe.getFieldValue("hack_sets"),jn=parseInt(Qe.getFieldValue("hack").code_compile_score)||0;const Bn=(bn==null?void 0:bn.length)-1;bn.splice(Yt,1),bn==null||bn.map((Zn,Ot)=>(Zn.position=Ot+1,Zn)),Qe.setFieldsValue({hack_sets:bn})}return Ct.createElement("div",{className:Ne.Z.wrap},Ct.createElement(we.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Ct.createElement(ft.h,{scrollId:"name",watch:!0,height:140})),Ct.createElement("div",{className:Ne.Z.questionTitleEditorWrap},Ct.createElement(we.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Ct.createElement(ft.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Yt,bn)=>{const jn=Qe.getFieldValue(wt);console.log("--preAnswerData",jn,bn),Qe.setFieldsValue({[wt]:jn==null?void 0:jn.map((Bn,Zn)=>{var Ot;return Wt(ln({},Bn),{position:Zn+1,multi_line:(Ot=bn==null?void 0:bn[Zn])==null?void 0:Ot.multiLine})})})},placeholder:It,onCMBeforeChange:(Yt,bn)=>{Xt(Yt,bn,dn,at)}}))),Ct.createElement(we.default.List,{name:wt,rules:[{validator(Yt,bn){if(!(bn!=null&&bn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const jn of bn){const{answer_text:Bn}=jn||{};if((Bn==null?void 0:Bn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Yt,{add:bn,remove:jn},{errors:Bn})=>(Nt.current=bn,xn.current=jn,Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Ct.createElement(we.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Ct.createElement("div",{onClick:()=>{Se.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Ct.createElement("div",null,Ct.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Ct.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Ct.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"}},Ct.createElement(ye.Z,{style:{marginRight:3,color:"#3061D0"}}),Ct.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Yt.map((Zn,Ot)=>{var jt=Zn,{key:on,name:En}=jt,tn=ue(jt,["key","name"]),In,pn;return Ct.createElement(Ee.Z,{className:"mb20",key:on,align:"middle",wrap:!1},Ct.createElement(Ce.Z,{flex:"0 0 auto",className:`${Ne.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ot+1),Ct.createElement(Ce.Z,{flex:1},Ct.createElement(Ee.Z,{align:"top",justify:"space-between",wrap:!1},Ct.createElement(Ce.Z,null,Ct.createElement(we.default.Item,Wt(ln({},tn),{name:[En,"answer_text"],noStyle:!0}),(In=en==null?void 0:en[En])!=null&&In.multi_line||(pn=en==null?void 0:en[En])!=null&&pn.multiLine?Ct.createElement(ae,{spellCheck:!1,style:{marginLeft:10,width:550}}):Ct.createElement(ge.default,{style:{marginLeft:10,width:550},className:Ne.Z.blankInput,size:"large",maxLength:1e3,onBlur:On=>{}}))),Ke&&Ct.createElement(Ce.Z,{flex:"224px"},Ct.createElement(we.default.Item,Wt(ln({},tn),{name:[En,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Ct.createElement(ke.Z,{size:"large",className:Ne.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Ct.createElement("div",{onClick:()=>Je(!0)},Ct.createElement(we.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ct.createElement(ft.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Tt}))),Ct.createElement(we.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"}]},Ct.createElement(Fe.default,{size:"large"},se.map(Yt=>Ct.createElement(Fe.default.Option,{key:Yt.title,value:Yt.key}," ",Yt.title)))),Ct.createElement(we.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Ct.createElement(we.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},Ct.createElement(ke.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Ct.createElement("span",{className:"ml10 font14"},"\u79D2")),Ct.createElement(we.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"}]},Ct.createElement(de.ZP.Group,{style:{marginTop:-10}},Ct.createElement(de.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Ct.createElement(de.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Ct.createElement(de.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Ct.createElement(we.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}},Ct.createElement(We.ZP,{className:"mr20",type:"primary",onClick:Pt},"\u6DFB\u52A0")),Ct.createElement("div",{style:{padding:15}},Ct.createElement(we.default.List,{name:"hack_sets"},(Yt,{})=>Ct.createElement(me.default,{accordion:!0,bordered:!1,activeKey:yn,onChange:Lt,className:Ne.Z.collapseWrapper,expandIcon:({isActive:bn})=>Ct.createElement("i",{className:`iconfont icon-weizhankai ${bn?Ne.Z.open:Ne.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Yt.map((bn,jn)=>Ct.createElement(re,{key:bn.key,id:`scroll-key-${bn.key}`,header:Ct.createElement(Ee.Z,{align:"middle",justify:"space-between",wrap:!1},Ct.createElement(Ce.Z,{className:Ne.Z.panelHeader},Ct.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",jn+1)),Ct.createElement(Ce.Z,{flex:1},Ct.createElement(Ee.Z,{align:"middle",justify:"end",wrap:!1},Ct.createElement(Ce.Z,{flex:"78px",className:Ne.Z.operationWrapper},jn>0&&Ct.createElement(Ct.Fragment,null,Ct.createElement(vt.Z,{className:Ne.Z.add,onClick:Bn=>{Rt(Bn),Pt()}}),Ct.createElement(Te.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6"+(jn+1),onCancel:Rt,onConfirm:Bn=>{Rt(Bn),Ut(jn)}},Ct.createElement(zt.Z,{className:`${Ne.Z.remove} ml20`,onClick:Rt})))))))},Ct.createElement(we.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:[bn.name,"input"]},Ct.createElement(ae,{rows:4})),Ct.createElement(we.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:[bn.name,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Ct.createElement(ae,{rows:4}))))))),Ct.createElement(Pe,{form:Qe,answerKey:wt,hackIdentifier:gt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Ct.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"}}}))}},8338:function(Rn,qt,E){"use strict";E.d(qt,{u:function(){return et}});var y=E(59301),ge=E(77019),me=E(5269),we=E(25399),Se=E(28284),Ee=E(42168),Ce=E(32134),ke=E(12893),Fe=E(78130),de=E(59301),We=Object.defineProperty,Te=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Oe=(qe,ut,yt)=>ut in qe?We(qe,ut,{enumerable:!0,configurable:!0,writable:!0,value:yt}):qe[ut]=yt,Ie=(qe,ut)=>{for(var yt in ut||(ut={}))Ne.call(ut,yt)&&Oe(qe,yt,ut[yt]);if(Ge)for(var yt of Ge(ut))Be.call(ut,yt)&&Oe(qe,yt,ut[yt]);return qe},nt=(qe,ut)=>Te(qe,ft(ut)),St=(qe,ut)=>{var yt={};for(var st in qe)Ne.call(qe,st)&&ut.indexOf(st)<0&&(yt[st]=qe[st]);if(qe!=null&&Ge)for(var st of Ge(qe))ut.indexOf(st)<0&&Be.call(qe,st)&&(yt[st]=qe[st]);return yt};const Ae=["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"],_e=({value:qe,onChange:ut,choiceTextKey:yt,answerKey:st,index:$e,isEdit:pe,setInputActive:Le,form:xe,choiceOptionsPath:ce,allowChangeMode:Et,showAddIcon:Ye,addItem:je,deleteItem:it})=>{console.log(qe,"value");const Pe=(qe==null?void 0:qe[st])===1,ye=()=>{const zt=xe.getFieldValue(ce);xe.setFieldValue(ce,zt.map(Ct=>nt(Ie({},Ct),{[st]:0})))},vt=()=>{Pe?ut(nt(Ie({},qe),{[st]:0})):(Et||ye(),ut(nt(Ie({},qe),{[st]:1})))};return de.createElement(ge.Z,{className:Ee.Z.choiceWrap,align:"middle",wrap:!1},de.createElement(me.Z,{onClick:vt,className:`${Ee.Z.choiceIndex} ${Pe?Ee.Z.activeAnswer:""}`},Ae[$e]),de.createElement(me.Z,{flex:1,className:`${Ee.Z.editorWrap} ml15`,onClick:Le},de.createElement(Fe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:pe,value:qe==null?void 0:qe[yt],onChange:zt=>{ut(nt(Ie({},qe),{[yt]:zt}))}})),de.createElement(me.Z,{flex:"0 0 auto",className:"ml15"},de.createElement("div",{onClick:vt,className:`${Ee.Z.setAnswerBtn} ${Pe?Ee.Z.activeAnswer:""}`},Pe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),de.createElement(me.Z,{className:Ee.Z.actionWrapper},de.createElement(we.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},de.createElement(Ce.Z,{className:Ee.Z.addIcon,onClick:je,style:{visibility:Ye?"visible":"hidden"}})),de.createElement(we.Z,{title:"\u5220\u9664"},de.createElement(ke.Z,{className:Ee.Z.deleteIcon,onClick:it,style:{visibility:$e>1?"visible":"hidden"}}))))},et=({questionTitlePlaceholder:qe,titleKey:ut,choiceKey:yt,analysisKey:st,choiceTextKey:$e,answerKey:pe,choiceOptionsPath:Le,allowChangeMode:xe=!0,form:ce,showAnalysis:Et=!0})=>{const[Ye,je]=(0,y.useState)(),[it,Pe]=(0,y.useState)(!1);return de.createElement("div",{className:Ee.Z.wrap},de.createElement("div",{className:Ee.Z.questionTitleEditorWrap},de.createElement(Se.default.Item,{label:"\u9898\u5E72",name:ut,labelCol:{span:24},rules:[{required:!0}]},de.createElement(Fe.h,{scrollId:Array.isArray(ut)?ut.join("_"):`${ut}`,watch:!0,height:140,placeholder:qe}))),de.createElement(Se.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),de.createElement(Se.default.List,{name:yt,rules:[{validator(ye,vt){const zt=vt.some(De=>De[pe]===1),Ct=vt.findIndex(De=>{var mt;return((mt=De[$e])==null?void 0:mt.length)<=0});return Ct!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ae[Ct]}\u9009\u9879\u7684\u5185\u5BB9`)):zt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ye,{add:vt,remove:zt})=>de.createElement("div",{id:Array.isArray(Le)?Le.join("_"):`${Le}`},ye.map((Ct,De)=>{var mt=Ct,{key:dt,name:Gt}=mt,bt=St(mt,["key","name"]);const xt=Ye===dt,pt=()=>{je(dt)},ln=De<14&&De===ye.length-1,Wt=()=>vt({[$e]:"",[pe]:0}),ue=()=>zt(Gt);return de.createElement(Se.default.Item,nt(Ie({},bt),{key:dt,name:Gt,className:Ee.Z.choiceListWrap,rules:[{validator(ae,re){return re!=null&&re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ae[De]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),de.createElement(_e,{choiceTextKey:$e,answerKey:pe,index:De,isEdit:xt,setInputActive:pt,form:ce,choiceOptionsPath:Le,allowChangeMode:xe,showAddIcon:ln,addItem:Wt,deleteItem:ue}))}),ye.length<15&&de.createElement("div",{className:`${Ee.Z.addBtn} mb30`,onClick:()=>vt({[$e]:"",[pe]:0})},"\u6DFB\u52A0\u9009\u9879"))),Et&&de.createElement("div",{onClick:()=>Pe(!0)},de.createElement(Se.default.Item,{name:st,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},de.createElement(Fe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:it}))))}},64780:function(Rn,qt,E){"use strict";E.d(qt,{u:function(){return ce}});var y=E(59301),ge=E(62957),me=E(77019),we=E(5269),Se=E(37568),Ee=E(25399),Ce=E(58755),ke=E(28284),Fe=E(47889),de=E(4875),We=E(7939),Te=E(78130),ft=E(12893),Ge=E(32134),Ne=E(61485),Be=E(42168),Oe=E(71039),Ie=E(59301),nt=Object.defineProperty,St=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,ut=(Et,Ye,je)=>Ye in Et?nt(Et,Ye,{enumerable:!0,configurable:!0,writable:!0,value:je}):Et[Ye]=je,yt=(Et,Ye)=>{for(var je in Ye||(Ye={}))et.call(Ye,je)&&ut(Et,je,Ye[je]);if(_e)for(var je of _e(Ye))qe.call(Ye,je)&&ut(Et,je,Ye[je]);return Et},st=(Et,Ye)=>St(Et,Ae(Ye)),$e=(Et,Ye)=>{var je={};for(var it in Et)et.call(Et,it)&&Ye.indexOf(it)<0&&(je[it]=Et[it]);if(Et!=null&&_e)for(var it of _e(Et))Ye.indexOf(it)<0&&qe.call(Et,it)&&(je[it]=Et[it]);return je};const pe=({value:Et,onChange:Ye,position:je,removeBlank:it})=>{const Pe=vt=>{ge.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const zt=[...Et];zt.splice(vt,1),zt.length===0?it(je-1):Ye(zt)}})},ye=()=>{const vt=[...Et];vt.push(""),Ye(vt)};return Ie.createElement(me.Z,{className:"ml20"},Ie.createElement(we.Z,{flex:1},Et==null?void 0:Et.map((vt,zt)=>Ie.createElement(me.Z,{key:`${vt}_${zt}`,className:"mb20"},Ie.createElement(Se.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:vt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Ct=>{const De=[...Et],mt=Ct.target.value.trim();De[zt]=mt,Ye(De)}}),Ie.createElement(Ee.Z,{title:"\u5220\u9664"},Ie.createElement(ft.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:je===1&&zt===0?"hidden":"visible"},onClick:()=>Pe(zt)})),Ie.createElement(Ee.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ie.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:zt===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},Le=({value:Et,onChange:Ye,position:je,removeBlank:it})=>{const Pe=vt=>{ge.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const zt=[...Et];zt.splice(vt,1),zt.length===0?it(je-1):Ye(zt)}})},ye=()=>{const vt=[...Et];vt.push(""),Ye(vt)};return Ie.createElement(me.Z,{className:"ml20"},Ie.createElement(we.Z,{flex:1},Et==null?void 0:Et.map((vt,zt)=>Ie.createElement(me.Z,{key:`${vt}_${zt}`,align:"middle",className:"mb20"},Ie.createElement(Oe.Z,{value:vt,style:{flex:1},onChange:Ct=>{const De=[...Et];De[zt]=Ct,Ye(De)}}),Ie.createElement(Ee.Z,{title:"\u5220\u9664"},Ie.createElement(ft.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:je===1&&zt===0?"hidden":"visible"},onClick:()=>Pe(zt)})),Ie.createElement(Ee.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ie.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:zt===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},xe=({value:Et=!0,onChange:Ye})=>Ie.createElement(Ce.Z,{checked:!Et,onChange:je=>{Ye(!je)}}),ce=({questionTitlePlaceholder:Et,form:Ye,scoreByBlank:je=!1,answerKey:it})=>{const[Pe,ye]=(0,y.useState)(!1),vt=()=>{const Gt=Ye.getFieldValue(it);Ye.setFieldsValue({[it]:Gt.map((bt,xt)=>st(yt({},bt),{position:xt+1}))})},zt=(0,y.useRef)(),Ct=(Gt,bt)=>{for(let xt=0;xt<Gt;xt++)zt.current({position:null,answer_text:[""],model:1},bt+xt);vt()},De=(0,y.useRef)(),mt=Gt=>{De.current(Gt),vt()},dt=ke.default.useWatch(it,Ye);return Ie.createElement("div",{className:Be.Z.wrap},Ie.createElement("div",{className:Be.Z.questionTitleEditorWrap},Ie.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ie.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:Et,showNullButton:!0,onAddBlank:()=>{const Gt=Ye.getFieldValue(it);Ct(1,Gt==null?void 0:Gt.length)}}))),Ie.createElement(ke.default.List,{name:it,rules:[{validator(Gt,bt){if(!(bt!=null&&bt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const xt of bt){const{answer_text:pt}=xt||{};if(pt!=null&&pt.some(ln=>(ln==null?void 0:ln.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Gt,{add:bt,remove:xt},{errors:pt})=>(zt.current=bt,De.current=xt,Ie.createElement(Ie.Fragment,null,Ie.createElement(ke.default.Item,{label:Ie.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Gt.map((ln,Wt)=>{var ue=ln,{key:ae,name:re}=ue,se=$e(ue,["key","name"]),ve,ie;return Ie.createElement("div",{style:{marginBottom:10},key:ae},Ie.createElement(me.Z,{className:"mb20",align:"middle",wrap:!1},Ie.createElement(we.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Be.Z.blankIndex}`},"\u586B\u7A7A\u9879",Wt+1),Ie.createElement(ke.default.Item,st(yt({},se),{name:[re,"model"],noStyle:!0}),Ie.createElement(Fe.ZP.Group,{onChange:()=>{const fe=Ye.getFieldValue(it);Ye.setFieldsValue({[it]:fe.map((Ve,It)=>st(yt({},Ve),{answer_text:re===It?[""]:Ve.answer_text}))})}},Ie.createElement(Fe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Ie.createElement(Ee.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Ie.createElement(Ne.Z,null))),Ie.createElement(Fe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Ie.createElement(Ee.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Ie.createElement(Ne.Z,null)))))),Ie.createElement(me.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Ie.createElement(we.Z,{flex:1},Ie.createElement(me.Z,{align:"top",justify:"space-between",wrap:!1},Ie.createElement(we.Z,{flex:1},Ie.createElement(ke.default.Item,st(yt({},se),{name:[re,"answer_text"],noStyle:!0}),((ie=(ve=Ye.getFieldValue(it))==null?void 0:ve[re])==null?void 0:ie.model)===1?Ie.createElement(pe,{removeBlank:mt,position:Wt+1}):Ie.createElement(Le,{removeBlank:mt,position:Wt+1}))),je&&Ie.createElement(we.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Ie.createElement(ke.default.Item,st(yt({},se),{name:[re,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Be.Z.blankInputNumberWrapper}),Ie.createElement(de.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Ie.createElement(ke.default.Item,st(yt({},se),{name:[re,"position"],noStyle:!0}),Ie.createElement(Se.default,{type:"hidden"})))))})))),Ie.createElement(We.ZP,{className:"mb20",onClick:()=>Ct(1,dt==null?void 0:dt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ie.createElement(me.Z,{align:"middle"},Ie.createElement(ke.default.Item,{name:"downcase",valuePropName:"checked"},Ie.createElement(Ce.Z,null)),Ie.createElement(we.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ie.createElement(me.Z,{align:"middle"},Ie.createElement(ke.default.Item,{name:"no_space",valuePropName:"checked"},Ie.createElement(Ce.Z,null)),Ie.createElement(we.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(dt==null?void 0:dt.length)>1&&Ie.createElement(me.Z,{align:"middle",className:(dt==null?void 0:dt.length)>1?"mb30":`${Be.Z.hide}`},Ie.createElement(ke.default.Item,{name:"is_ordered"},Ie.createElement(xe,null)),Ie.createElement(we.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")),Ie.createElement("div",{onClick:()=>ye(!0)},Ie.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ie.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Pe}))))}},12035:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return St}});var y=E(59301),ge=E(77019),me=E(5269),we=E(28284),Se=E(42168),Ee=E(78130),Ce=E(59301),ke=Object.defineProperty,Fe=Object.defineProperties,de=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Ge=(Ae,_e,et)=>_e in Ae?ke(Ae,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ae[_e]=et,Ne=(Ae,_e)=>{for(var et in _e||(_e={}))Te.call(_e,et)&&Ge(Ae,et,_e[et]);if(We)for(var et of We(_e))ft.call(_e,et)&&Ge(Ae,et,_e[et]);return Ae},Be=(Ae,_e)=>Fe(Ae,de(_e)),Oe=(Ae,_e)=>{var et={};for(var qe in Ae)Te.call(Ae,qe)&&_e.indexOf(qe)<0&&(et[qe]=Ae[qe]);if(Ae!=null&&We)for(var qe of We(Ae))_e.indexOf(qe)<0&&ft.call(Ae,qe)&&(et[qe]=Ae[qe]);return et};const Ie={\u6B63\u786E:"T",\u9519\u8BEF:"F"},nt=({value:Ae,onChange:_e,form:et})=>{const qe=(Ae==null?void 0:Ae.is_answer)===1,ut=Ae==null?void 0:Ae.choice_text,yt=()=>{const st=et.getFieldsValue().choices.map($e=>({choice_text:$e.choice_text,is_answer:0}));et.setFieldsValue({choices:st}),_e(Be(Ne({},Ae),{is_answer:1}))};return Ce.createElement(ge.Z,{className:Se.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ce.createElement(me.Z,{onClick:yt,className:`${Se.Z.choiceIndex} ${Se.Z.judgementIndex} ${qe?Se.Z.activeAnswer:""}`},Ie[ut]),Ce.createElement(me.Z,{flex:1,className:`${Se.Z.editorWrap} ml15`},Ce.createElement("div",{className:`${Se.Z.inputBorder} ${Se.Z.placeholder} ${qe?Se.Z.activeJudgementAnswer:""}`},ut)),Ce.createElement(me.Z,{flex:"0 0 auto",className:"ml15"},Ce.createElement("div",{onClick:yt,className:`${Se.Z.setAnswerBtn} ${qe?Se.Z.activeAnswer:""}`},qe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},St=({questionTitlePlaceholder:Ae,choiceKey:_e,form:et})=>{const[qe,ut]=(0,y.useState)(!1);return Ce.createElement("div",{className:Se.Z.wrap},Ce.createElement("div",{className:Se.Z.questionTitleEditorWrap},Ce.createElement(we.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ce.createElement(Ee.h,{scrollId:"name",watch:!0,height:140,placeholder:Ae}))),Ce.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ce.createElement(we.default.List,{name:"choices",rules:[{validator(yt,st){return st.some(pe=>(pe==null?void 0:pe.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},yt=>Ce.createElement("div",{id:"choices"},yt.map(st=>{var $e=st,{key:pe,name:Le}=$e,xe=Oe($e,["key","name"]);return Ce.createElement(we.default.Item,Be(Ne({},xe),{key:pe,name:Le,noStyle:!0}),Ce.createElement(nt,{form:et}))})))),Ce.createElement("div",{onClick:()=>ut(!0)},Ce.createElement(we.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ce.createElement(Ee.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:qe}))))}},78130:function(Rn,qt,E){"use strict";E.d(qt,{h:function(){return Ne},x:function(){return Be}});var y=E(39116),ge=E(42168),me=E(35883),we=E(59301),Se=Object.defineProperty,Ee=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,We=(Oe,Ie,nt)=>Ie in Oe?Se(Oe,Ie,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Oe[Ie]=nt,Te=(Oe,Ie)=>{for(var nt in Ie||(Ie={}))Fe.call(Ie,nt)&&We(Oe,nt,Ie[nt]);if(ke)for(var nt of ke(Ie))de.call(Ie,nt)&&We(Oe,nt,Ie[nt]);return Oe},ft=(Oe,Ie)=>Ee(Oe,Ce(Ie)),Ge=(Oe,Ie)=>{var nt={};for(var St in Oe)Fe.call(Oe,St)&&Ie.indexOf(St)<0&&(nt[St]=Oe[St]);if(Oe!=null&&ke)for(var St of ke(Oe))Ie.indexOf(St)<0&&de.call(Oe,St)&&(nt[St]=Oe[St]);return nt};const Ne=Oe=>{var Ie=Oe,{value:nt,onChange:St,scrollId:Ae}=Ie,_e=Ge(Ie,["value","onChange","scrollId"]);return we.createElement("div",{id:Ae||""},we.createElement(y.Z,ft(Te({},_e),{defaultValue:nt,onChange:(et,qe)=>{qe!=null&&qe.length?St(et,qe):St(et)}})))},Be=({value:Oe,onChange:Ie,placeholder:nt,height:St=140,isEdit:Ae,miniToolbar:_e,watch:et=!0})=>Ae?we.createElement(y.Z,{watch:et,isFocus:!0,height:St||void 0,placeholder:nt,defaultValue:Oe,onChange:Ie,miniToolbar:_e}):we.createElement("div",{style:{cursor:"pointer"}},Oe?we.createElement(me.Z,{className:ge.Z.inputBorder,value:Oe}):we.createElement("div",{className:`${ge.Z.inputBorder} ${ge.Z.placeholder} inputBorderError`},nt))},90775:function(Rn,qt,E){"use strict";E.d(qt,{W:function(){return $e}});var y=E(59301),ge=E(6767),me=E(96599),we=E(28284),Se=E(58755),Ee=E(77019),Ce=E(5269),ke=E(25399),Fe=E(37568),de=E(4875),We=E(42168),Te=E(78130),ft=E(39116),Ge=E(61485),Ne=Object.defineProperty,Be=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Ae=(pe,Le,xe)=>Le in pe?Ne(pe,Le,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[Le]=xe,_e=(pe,Le)=>{for(var xe in Le||(Le={}))nt.call(Le,xe)&&Ae(pe,xe,Le[xe]);if(Ie)for(var xe of Ie(Le))St.call(Le,xe)&&Ae(pe,xe,Le[xe]);return pe},et=(pe,Le)=>Be(pe,Oe(Le)),qe=(pe,Le)=>{var xe={};for(var ce in pe)nt.call(pe,ce)&&Le.indexOf(ce)<0&&(xe[ce]=pe[ce]);if(pe!=null&&Ie)for(var ce of Ie(pe))Le.indexOf(ce)<0&&St.call(pe,ce)&&(xe[ce]=pe[ce]);return xe};const ut=pe=>{var Le=pe,{value:xe,onChange:ce}=Le,Et=qe(Le,["value","onChange"]);const Ye=je=>{ce([je])};return y.createElement(ft.Z,et(_e({},Et),{defaultValue:xe==null?void 0:xe[0],onChange:Ye}))},yt=pe=>{if(!pe)return!1;if(/^s*$/.test(pe)||pe.trim()===""){ge.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Le=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return pe==="|"?(ge.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},st=({value:pe=[],onClose:Le})=>y.createElement(me.default,{closable:!0,onClose:Le,className:We.Z.keywordTag},y.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},pe.join(" \u6216 "))),$e=({questionTitlePlaceholder:pe,form:Le,showKeywords:xe,isMustKeyWords:ce=xe})=>{const[Et,Ye]=(0,y.useState)(!1),[je,it]=(0,y.useState)(""),Pe=we.default.useWatch("use_keywords",Le),ye=we.default.useWatch("question_score",Le);return y.createElement("div",{className:We.Z.wrap},y.createElement("div",{className:We.Z.questionTitleEditorWrap},y.createElement(we.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},y.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:pe}))),y.createElement(we.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},y.createElement(ut,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),xe&&!ce&&y.createElement(we.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},y.createElement(Se.Z,{defaultChecked:!0})),xe&&ce&&y.createElement(Ee.Z,{align:"middle",className:"mb30"},y.createElement(we.default.Item,{name:"use_keywords",valuePropName:"checked"},y.createElement(Se.Z,null)),y.createElement(Ce.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(Ce.Z,null,y.createElement(ke.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"},y.createElement(Ge.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Pe||!ce)&&y.createElement(we.default.List,{name:"keywords",rules:[{validator(vt,zt){return ce?zt!=null&&zt.length?(zt==null?void 0:zt.reduce((De,mt)=>De+mt.score,0))>parseFloat(ye)?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()}}]},(vt,{add:zt,remove:Ct})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${We.Z.title} mb10`},ce?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(Ee.Z,{align:"middle",className:"font14 mb30"},y.createElement(Ce.Z,{flex:1},y.createElement(Fe.default,{value:je,onChange:De=>{it(De.target.value)},maxLength:500,allowClear:!0,onPressEnter:De=>{var mt,dt,Gt,bt;const xt=`${(mt=De.target)==null?void 0:mt.value}`,pt=(Gt=(dt=xt==null?void 0:xt.split("|"))==null?void 0:dt.filter(ue=>!!ue))==null?void 0:Gt.map(ue=>ue==null?void 0:ue.trim()),ln=Le.getFieldValue("keywords"),Wt=((bt=ln==null?void 0:ln.map(ue=>ue==null?void 0:ue.keyword))==null?void 0:bt.flat())||[];for(const ue of pt)if(Wt.includes(ue)){ge.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}yt(xt)&&(zt({keyword:pt,score:1}),it(""))},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"})),y.createElement(Ce.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),vt.map(De=>{var mt=De,{key:dt,name:Gt}=mt,bt=qe(mt,["key","name"]);return y.createElement(Ee.Z,{key:dt,className:"mb20",style:{marginRight:148}},y.createElement(Ce.Z,{flex:1},y.createElement(Ee.Z,{align:"middle",justify:"space-between"},y.createElement(we.default.Item,et(_e({},bt),{name:[Gt,"keyword"]}),y.createElement(st,{onClose:()=>Ct(Gt)})),ce&&y.createElement(we.default.Item,et(_e({},bt),{name:[Gt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:We.Z.blankInputNumberWrapper}),y.createElement(de.Z,{className:We.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>Ye(!0)},y.createElement(we.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Et}))))}},18747:function(Rn,qt,E){"use strict";E.d(qt,{tc:function(){return en.t},uh:function(){return y.u},rL:function(){return Rt},u8:function(){return me.u},ZZ:function(){return ge.Z},Wk:function(){return we.W}});var y=E(8338),ge=E(12035),me=E(64780),we=E(90775),Se=E(59301),Ee=E(8848),Ce=E(28284),ke=E(77019),Fe=E(5269),de=E(4875),We=E(25399),Te=E(75727),ft=E(42168),Ge=E(12893),Ne=E(78130),Be=E(62957),Oe=E(37568),Ie=E(58755),nt=E(7939),St=E(32134),Ae=E(59301),_e=Object.defineProperty,et=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,$e=(Pt,Ut,Yt)=>Ut in Pt?_e(Pt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Pt[Ut]=Yt,pe=(Pt,Ut)=>{for(var Yt in Ut||(Ut={}))yt.call(Ut,Yt)&&$e(Pt,Yt,Ut[Yt]);if(ut)for(var Yt of ut(Ut))st.call(Ut,Yt)&&$e(Pt,Yt,Ut[Yt]);return Pt},Le=(Pt,Ut)=>et(Pt,qe(Ut)),xe=(Pt,Ut)=>{var Yt={};for(var bn in Pt)yt.call(Pt,bn)&&Ut.indexOf(bn)<0&&(Yt[bn]=Pt[bn]);if(Pt!=null&&ut)for(var bn of ut(Pt))Ut.indexOf(bn)<0&&st.call(Pt,bn)&&(Yt[bn]=Pt[bn]);return Yt};const ce=({value:Pt,onChange:Ut,position:Yt,removeBlank:bn})=>{const jn=Zn=>{Be.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:ft.Z.modal,onOk:()=>{const Ot=[...Pt];Ot.splice(Zn,1),Ot.length===0?bn(Yt-1):Ut(Ot)}})},Bn=()=>{const Zn=[...Pt];Zn.push(""),Ut(Zn)};return Ae.createElement(ke.Z,{className:"ml20"},Ae.createElement(Fe.Z,{flex:1},Pt==null?void 0:Pt.map((Zn,Ot)=>Ae.createElement(ke.Z,{key:`${Zn}_${Ot}`,className:"mb20"},Ae.createElement(Oe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Zn,autoSize:{maxRows:3},maxLength:1e3,onBlur:jt=>{const on=[...Pt],En=jt.target.value.trim();on[Ot]=En,Ut(on)}}),Ae.createElement(We.Z,{title:"\u5220\u9664"},Ae.createElement(Ge.Z,{className:ft.Z.deleteIcon,style:{marginLeft:15,visibility:Yt===1&&Ot===0?"hidden":"visible"},onClick:()=>jn(Ot)})),Ae.createElement(We.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ae.createElement(St.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ot===0?"visible":"hidden"},onClick:()=>{Bn()}}))))))},Et=({value:Pt=!0,onChange:Ut})=>Ae.createElement(Ie.Z,{checked:!Pt,onChange:Yt=>{Ut(!Yt)}}),Ye=({questionTitlePlaceholder:Pt,form:Ut,name:Yt,scoreByBlank:bn=!1,answerKey:jn,titleKey:Bn="name",analysisKey:Zn="analysis",isOrdered:Ot="is_ordered"})=>{var jt,on;const[En,tn]=(0,Se.useState)(!1),In=()=>{const Cr=Ut.getFieldValue(["sub_item_banks",...jn]);Ut.setFieldValue(["sub_item_banks",...jn],Cr==null?void 0:Cr.map((gr,Hr)=>Le(pe({},gr),{position:Hr+1})))},pn=(0,Se.useRef)(),On=(Cr,gr)=>{for(let Hr=0;Hr<Cr;Hr++)pn.current({position:null,answer_text:[""]},gr+Hr);In()},fr=(0,Se.useRef)(),Qn=Cr=>{fr.current(Cr),In()},cr=(on=(jt=Ut.getFieldValue("sub_item_banks"))==null?void 0:jt[jn==null?void 0:jn[0]])==null?void 0:on[jn==null?void 0:jn[1]];return Ae.createElement("div",{className:ft.Z.wrap},Ae.createElement("div",{className:ft.Z.questionTitleEditorWrap},Ae.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Bn,labelCol:{span:24},rules:[{required:!0}]},Ae.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:Pt,showNullButton:!0,onAddBlank:()=>{const Cr=Ut.getFieldValue(["sub_item_banks",...jn]);On(1,Cr==null?void 0:Cr.length)}}))),Ae.createElement(Ce.default.List,{name:jn,rules:[{validator(Cr,gr){if((gr==null?void 0:gr.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Hr of gr){const{answer_text:Zr}=Hr||{};if(Zr!=null&&Zr.some(Pn=>(Pn==null?void 0:Pn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Cr,{add:gr,remove:Hr},{errors:Zr})=>(pn.current=gr,fr.current=Hr,Ae.createElement(Ae.Fragment,null,Ae.createElement(Ce.default.Item,{label:Ae.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Cr.map((Pn,$n)=>{var dr=Pn,{key:hr,name:_t}=dr,Qt=xe(dr,["key","name"]);return Ae.createElement(ke.Z,{align:"top",key:hr},Ae.createElement(Fe.Z,{className:`${ft.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",$n+1),Ae.createElement(Fe.Z,{flex:1},Ae.createElement(ke.Z,{align:"top",justify:"space-between"},Ae.createElement(Fe.Z,{flex:1},Ae.createElement(Ce.default.Item,Le(pe({},Qt),{name:[_t,"answer_text"],noStyle:!0}),Ae.createElement(ce,{removeBlank:Qn,position:$n+1}))),bn&&Ae.createElement(Fe.Z,{flex:"224px"},Ae.createElement(Ce.default.Item,Le(pe({},Qt),{name:[_t,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ft.Z.blankInputNumberWrapper}),Ae.createElement(de.Z,{className:ft.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Ae.createElement(Ce.default.Item,Le(pe({},Qt),{name:[_t,"position"],noStyle:!0}),Ae.createElement(Oe.default,{type:"hidden"}))))})))),Ae.createElement(nt.ZP,{className:"mb20",onClick:()=>On(1,cr==null?void 0:cr.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ae.createElement(ke.Z,{align:"middle"},Ae.createElement(Ce.default.Item,{name:[Yt,"downcase"],valuePropName:"checked"},Ae.createElement(Ie.Z,null)),Ae.createElement(Fe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ae.createElement(ke.Z,{align:"middle"},Ae.createElement(Ce.default.Item,{name:[Yt,"no_space"],valuePropName:"checked"},Ae.createElement(Ie.Z,null)),Ae.createElement(Fe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(cr==null?void 0:cr.length)>1&&Ae.createElement(ke.Z,{align:"middle",className:(cr==null?void 0:cr.length)>1?"mb30":`${ft.Z.hide}`},Ae.createElement(Ce.default.Item,{name:Ot},Ae.createElement(Et,null)),Ae.createElement(Fe.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")),Ae.createElement("div",{className:"mt30",onClick:()=>tn(!0)},Ae.createElement(Ce.default.Item,{name:Zn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ae.createElement(Ne.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:En}))))};var je=E(59301),it=Object.defineProperty,Pe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,De=(Pt,Ut,Yt)=>Ut in Pt?it(Pt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Pt[Ut]=Yt,mt=(Pt,Ut)=>{for(var Yt in Ut||(Ut={}))zt.call(Ut,Yt)&&De(Pt,Yt,Ut[Yt]);if(vt)for(var Yt of vt(Ut))Ct.call(Ut,Yt)&&De(Pt,Yt,Ut[Yt]);return Pt},dt=(Pt,Ut)=>Pe(Pt,ye(Ut)),Gt=(Pt,Ut)=>{var Yt={};for(var bn in Pt)zt.call(Pt,bn)&&Ut.indexOf(bn)<0&&(Yt[bn]=Pt[bn]);if(Pt!=null&&vt)for(var bn of vt(Pt))Ut.indexOf(bn)<0&&Ct.call(Pt,bn)&&(Yt[bn]=Pt[bn]);return Yt};const bt={\u6B63\u786E:"T",\u9519\u8BEF:"F"},xt=({value:Pt,onChange:Ut,form:Yt,choiceKey:bn})=>{const jn=(Pt==null?void 0:Pt.is_answer)===1,Bn=Pt==null?void 0:Pt.choice_text,Zn=()=>{var Ot;const jt=(Ot=Yt==null?void 0:Yt.getFieldValue(["sub_item_banks",...bn]))==null?void 0:Ot.map(on=>({choice_text:on.choice_text,is_answer:0}));Yt==null||Yt.setFieldValue(["sub_item_banks",...bn],jt),Ut(dt(mt({},Pt),{is_answer:1}))};return je.createElement(ke.Z,{className:ft.Z.choiceWrap,align:"middle",wrap:!1},je.createElement(Fe.Z,{onClick:Zn,className:`${ft.Z.choiceIndex} ${ft.Z.judgementIndex} ${jn?ft.Z.activeAnswer:""}`},bt[Bn]),je.createElement(Fe.Z,{flex:1,className:`${ft.Z.editorWrap} ml15`},je.createElement("div",{className:`${ft.Z.inputBorder} ${ft.Z.placeholder} ${jn?ft.Z.activeJudgementAnswer:""}`},Bn)),je.createElement(Fe.Z,{flex:"0 0 auto",className:"ml15"},je.createElement("div",{onClick:Zn,className:`${ft.Z.setAnswerBtn} ${jn?ft.Z.activeAnswer:""}`},jn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},pt=({questionTitlePlaceholder:Pt,choiceKey:Ut="choices",form:Yt,titleKey:bn="name",analysisKey:jn="analysis"})=>{const[Bn,Zn]=(0,Se.useState)(!1);return je.createElement("div",{className:ft.Z.wrap},je.createElement("div",{className:ft.Z.questionTitleEditorWrap},je.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:bn,labelCol:{span:24},rules:[{required:!0}]},je.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:Pt}))),je.createElement(Ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},je.createElement(Ce.default.List,{name:Ut,rules:[{validator(Ot,jt){return jt.some(En=>(En==null?void 0:En.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ot=>je.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Ot.map(jt=>{var on=jt,{key:En,name:tn}=on,In=Gt(on,["key","name"]);return je.createElement(Ce.default.Item,dt(mt({},In),{key:En,name:tn,noStyle:!0}),je.createElement(xt,{form:Yt,choiceKey:Ut}))})))),je.createElement("div",{className:"mt30",onClick:()=>Zn(!0)},je.createElement(Ce.default.Item,{name:jn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},je.createElement(Ne.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Bn}))))};var ln=E(6767),Wt=E(96599),ue=E(39116),ae=E(61485),re=Object.defineProperty,se=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,It=(Pt,Ut,Yt)=>Ut in Pt?re(Pt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Pt[Ut]=Yt,Qe=(Pt,Ut)=>{for(var Yt in Ut||(Ut={}))fe.call(Ut,Yt)&&It(Pt,Yt,Ut[Yt]);if(ie)for(var Yt of ie(Ut))Ve.call(Ut,Yt)&&It(Pt,Yt,Ut[Yt]);return Pt},Ke=(Pt,Ut)=>se(Pt,ve(Ut)),gt=(Pt,Ut)=>{var Yt={};for(var bn in Pt)fe.call(Pt,bn)&&Ut.indexOf(bn)<0&&(Yt[bn]=Pt[bn]);if(Pt!=null&&ie)for(var bn of ie(Pt))Ut.indexOf(bn)<0&&Ve.call(Pt,bn)&&(Yt[bn]=Pt[bn]);return Yt};const wt=Pt=>{var Ut=Pt,{value:Yt,onChange:bn}=Ut,jn=gt(Ut,["value","onChange"]);const Bn=Zn=>{bn([Zn])};return Se.createElement(ue.Z,Ke(Qe({},jn),{defaultValue:Yt==null?void 0:Yt[0],onChange:Bn}))},Tt=Pt=>{if(!Pt)return!1;let Ut=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 Pt==="|"?(ln.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Je=({value:Pt=[],onClose:Ut})=>Se.createElement(Wt.default,{closable:!0,onClose:Ut,className:ft.Z.keywordTag},Se.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Pt.join(" \u6216 "))),tt=({questionTitlePlaceholder:Pt,form:Ut,showKeywords:Yt,isMustKeyWords:bn=Yt,titleKey:jn="name",analysisKey:Bn="analysis",answerTexts:Zn="answer_texts",keywords:Ot="keywords",useKeywords:jt="use_keywords",indexs:on})=>{const[En,tn]=(0,Se.useState)(!1),[In,pn]=(0,Se.useState)(""),[On,fr]=(0,Se.useState)(!1),Qn=Ce.default.useWatch("question_score",Ut);return Se.createElement("div",{className:ft.Z.wrap},Se.createElement("div",{className:ft.Z.questionTitleEditorWrap},Se.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:jn,labelCol:{span:24},rules:[{required:!0}]},Se.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:Pt}))),Se.createElement(Ce.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Zn,labelCol:{span:24}},Se.createElement(wt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Yt&&!bn&&Se.createElement(Ce.default.Item,{hidden:!0,name:jt,valuePropName:"checked"},Se.createElement(Ie.Z,{defaultChecked:!0})),Yt&&bn&&Se.createElement(ke.Z,{align:"middle",className:"mb30"},Se.createElement(Ce.default.Item,{name:jt,valuePropName:"checked"},Se.createElement(Ie.Z,{onChange:()=>{var cr,Cr,gr,Hr,Zr,Pn;console.log(Ut.getFieldsValue()),fr((gr=(Cr=(cr=Ut.getFieldsValue())==null?void 0:cr.sub_item_banks)==null?void 0:Cr[on])==null?void 0:gr.use_keywords),console.log((Pn=(Zr=(Hr=Ut.getFieldsValue())==null?void 0:Hr.sub_item_banks)==null?void 0:Zr[on])==null?void 0:Pn.use_keywords),console.log(On)}})),Se.createElement(Fe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Se.createElement(Fe.Z,null,Se.createElement(We.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"},Se.createElement(ae.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(On||!bn)&&Se.createElement(Ce.default.List,{name:Ot,rules:[{validator(cr,Cr){return bn?Cr!=null&&Cr.length?(Cr==null?void 0:Cr.reduce((Hr,Zr)=>Hr+Zr.score,0))>parseFloat(Qn)?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()}}]},(cr,{add:Cr,remove:gr})=>Se.createElement(Se.Fragment,null,Se.createElement("div",{className:`${ft.Z.title} mb10`},bn?"\u5173\u952E\u8BCD":Se.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),Se.createElement(ke.Z,{align:"middle",className:"font14 mb30"},Se.createElement(Fe.Z,{flex:1},Se.createElement(Oe.default,{value:In,onChange:Hr=>{pn(Hr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Hr=>{var Zr,Pn,$n,dr;const hr=`${(Zr=Hr.target)==null?void 0:Zr.value}`,_t=($n=(Pn=hr==null?void 0:hr.split("|"))==null?void 0:Pn.filter(Zt=>!!Zt))==null?void 0:$n.map(Zt=>Zt==null?void 0:Zt.trim()),Qt=Ut.getFieldValue(["sub_item_banks",...Ot]),ct=((dr=Qt==null?void 0:Qt.map(Zt=>Zt==null?void 0:Zt.keyword))==null?void 0:dr.flat())||[];for(const Zt of _t)if(ct.includes(Zt)){ln.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Tt(hr)&&(Cr({keyword:_t,score:1}),pn(""))},className:ft.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"})),Se.createElement(Fe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),cr.map(Hr=>{var Zr=Hr,{key:Pn,name:$n}=Zr,dr=gt(Zr,["key","name"]);return Se.createElement(ke.Z,{key:Pn,className:"mb20",style:{marginRight:148}},Se.createElement(Fe.Z,{flex:1},Se.createElement(ke.Z,{align:"middle",justify:"space-between"},Se.createElement(Ce.default.Item,Ke(Qe({},dr),{name:[$n,"keyword"]}),Se.createElement(Je,{onClose:()=>gr($n)})),bn&&Se.createElement(Ce.default.Item,Ke(Qe({},dr),{name:[$n,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ft.Z.blankInputNumberWrapper}),Se.createElement(de.Z,{className:ft.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),Se.createElement("div",{onClick:()=>tn(!0)},Se.createElement(Ce.default.Item,{name:Bn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Se.createElement(Ne.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:En}))))};var Ht=E(59301),un=Object.defineProperty,Dn=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Xe=(Pt,Ut,Yt)=>Ut in Pt?un(Pt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):Pt[Ut]=Yt,Nt=(Pt,Ut)=>{for(var Yt in Ut||(Ut={}))cn.call(Ut,Yt)&&Xe(Pt,Yt,Ut[Yt]);if(Lt)for(var Yt of Lt(Ut))Xt.call(Ut,Yt)&&Xe(Pt,Yt,Ut[Yt]);return Pt},dn=(Pt,Ut)=>Dn(Pt,yn(Ut)),xn=(Pt,Ut)=>{var Yt={};for(var bn in Pt)cn.call(Pt,bn)&&Ut.indexOf(bn)<0&&(Yt[bn]=Pt[bn]);if(Pt!=null&&Lt)for(var bn of Lt(Pt))Ut.indexOf(bn)<0&&Xt.call(Pt,bn)&&(Yt[bn]=Pt[bn]);return Yt};const{Panel:at}=Ee.default,Rt=({questionTitlePlaceholder:Pt,choiceKey:Ut,form:Yt,withScore:bn})=>{const[jn,Bn]=(0,Se.useState)([]),Zn=Ot=>{Bn(Ot)};return Ht.createElement("div",{className:ft.Z.wrap},Ht.createElement("div",{className:ft.Z.questionTitleEditorWrap},Ht.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ht.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:Pt}))),Ht.createElement(Ce.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Ht.createElement(Ce.default.List,{name:"sub_item_banks",rules:[{validator(Ot,jt){return jt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ot,{add:jt,remove:on,move:En})=>{const tn=Yt.getFieldValue("sub_item_banks");return Ht.createElement(Ht.Fragment,null,Ht.createElement(Ee.default,{className:Ot.length>0?ft.Z.collapseWrapper:"",bordered:!1,activeKey:jn,onChange:Zn,expandIcon:({isActive:In})=>Ht.createElement("i",{className:`iconfont icon-weizhankai ${In?ft.Z.open:ft.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Ot.map((In,pn)=>{var On=In,{key:fr,name:Qn}=On,cr=xn(On,["key","name"]),Cr,gr,Hr,Zr,Pn,$n,dr,hr,_t,Qt;return Ht.createElement(at,{className:ft.Z.panel,forceRender:!0,header:Ht.createElement("div",{className:ft.Z.panelHeader},"\u7B2C",pn+1,"\u5C0F\u9898",Ht.createElement("span",null,"\uFF08",((Cr=tn==null?void 0:tn[Qn])==null?void 0:Cr.item_type)=="SINGLE"?"\u5355\u9009\u9898":((gr=tn==null?void 0:tn[Qn])==null?void 0:gr.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Hr=tn==null?void 0:tn[Qn])==null?void 0:Hr.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((Zr=tn==null?void 0:tn[Qn])==null?void 0:Zr.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Qn,extra:Ht.createElement(ke.Z,{align:"middle",onClick:ct=>ct.stopPropagation()},bn&&Ht.createElement(Fe.Z,null,Ht.createElement(Ce.default.Item,dn(Nt({},cr),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Qn,"question_score"],className:ft.Z.blankInputNumberWrapper}),Ht.createElement(de.Z,{className:ft.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Ht.createElement(Fe.Z,null,Ht.createElement(ke.Z,{align:"middle",className:"pl40",justify:"end"},pn!==0&&Ht.createElement("div",{onClick:()=>{var ct;En(pn,pn-1);const Zt=(ct=Yt.getFieldValue("sub_item_banks"))==null?void 0:ct.map((ot,Kt)=>(Ot.map((Ft,ar)=>{Kt===ar&&(ot.q_position=Number(Ft.name)+1)}),ot));Yt.setFieldValue("sub_item_banks",Zt)}},Ht.createElement(We.Z,{title:"\u4E0A\u79FB"},Ht.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),pn<Ot.length-1&&Ht.createElement("div",{onClick:()=>{var ct;En(pn,pn+1);const Zt=(ct=Yt.getFieldValue("sub_item_banks"))==null?void 0:ct.map((ot,Kt)=>(Ot.map((Ft,ar)=>{Kt===ar&&(ot.q_position=Number(Ft.name)+1)}),ot));Yt.setFieldValue("sub_item_banks",Zt)},className:pn===0?"":"ml15"},Ht.createElement(We.Z,{title:"\u4E0B\u79FB"},Ht.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Ht.createElement(Fe.Z,null,Ht.createElement(We.Z,{title:"\u5220\u9664"},Ht.createElement(Ge.Z,{className:`${ft.Z.deleteIcon} ml15`,onClick:()=>on(Qn)}))))},Ht.createElement(Ce.default.Item,dn(Nt({},cr),{name:Qn}),(((Pn=tn==null?void 0:tn[Qn])==null?void 0:Pn.item_type)=="SINGLE"||(($n=tn==null?void 0:tn[Qn])==null?void 0:$n.item_type)=="MULTIPLE")&&Ht.createElement(y.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((dr=tn==null?void 0:tn[Qn])==null?void 0:dr.item_type)=="MULTIPLE",form:Yt,choiceKey:[Qn,"choices"],titleKey:[Qn,"name"],analysisKey:[Qn,"analysis"],choiceOptionsPath:["sub_item_banks",Qn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((hr=tn==null?void 0:tn[Qn])==null?void 0:hr.item_type)=="COMPLETION"&&Ht.createElement(Ye,{form:Yt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:Qn,titleKey:[Qn,"name"],analysisKey:[Qn,"analysis"],isOrdered:[Qn,"is_ordered"],answerKey:[Qn,"standard_answers"]}),((_t=tn==null?void 0:tn[Qn])==null?void 0:_t.item_type)=="JUDGMENT"&&Ht.createElement(pt,{form:Yt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Qn,"name"],analysisKey:[Qn,"analysis"],choiceKey:[Qn,"choices"]}),((Qt=tn==null?void 0:tn[Qn])==null?void 0:Qt.item_type)=="SUBJECTIVE"&&Ht.createElement(tt,{showKeywords:!0,isMustKeyWords:!1,form:Yt,titleKey:[Qn,"name"],analysisKey:[Qn,"analysis"],answerTexts:[Qn,"answer_texts"],useKeywords:[Qn,"use_keywords"],keywords:[Qn,"keywords"],indexs:Qn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Ot.length<20&&Ht.createElement(Te.Z,{menu:{items:[{label:Ht.createElement("div",{onClick:()=>{jt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),Bn([Ot==null?void 0:Ot.length,...jn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Ht.createElement("div",{onClick:()=>{jt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),Bn([Ot==null?void 0:Ot.length,...jn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Ht.createElement("div",{onClick:()=>{jt({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),Bn([Ot==null?void 0:Ot.length,...jn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Ht.createElement("div",{onClick:()=>{jt({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),Bn([Ot==null?void 0:Ot.length,...jn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Ht.createElement("div",{onClick:()=>{jt({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),Bn([Ot==null?void 0:Ot.length,...jn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(In=>In.show).map(In=>({label:In.label,key:In.key}))}},Ht.createElement("div",{className:`${ft.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var en=E(9556)},35883:function(Rn,qt,E){"use strict";E.d(qt,{z:function(){return $e},Z:function(){return pe}});var y=E(59301),ge=E(46214),me=E(20047),we=E(64018),Se=E(16471),Ee=E(14185),Ce=E(76406),ke=E(15342),Fe=E(44104),de=E(7939),We=E(1012),Te=E(86974),ft=E(59301),Ne=({html:Le})=>{const xe=(0,y.useRef)(null),ce=(0,y.useRef)(null),Et=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,y.useEffect)(()=>{const Ye=xe.current.attachShadow({mode:"open"});ce.current=document.createElement("div"),ce.current.className="markdown-body",ce.current.innerHTML=Le,Ye.appendChild(ce.current);const je=document.createElement("style");return je.textContent=Et,Ye.appendChild(je),()=>{Ye.innerHTML=""}},[]),(0,y.useEffect)(()=>{ce.current&&(ce.current.innerHTML=Le)},[Le]),ft.createElement("div",{ref:xe})};function Be(Le){const xe=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ce=new RegExp(`\\b(${xe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Et=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Le.replace(ce,"").replace(Et,"").trim()}var Oe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ie=Object.defineProperty,nt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,_e=(Le,xe,ce)=>xe in Le?Ie(Le,xe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):Le[xe]=ce,et=(Le,xe)=>{for(var ce in xe||(xe={}))St.call(xe,ce)&&_e(Le,ce,xe[ce]);if(nt)for(var ce of nt(xe))Ae.call(xe,ce)&&_e(Le,ce,xe[ce]);return Le};const qe="@\u2581\u2581@",ut="@\u2581@",yt=/<pre[^>]*>/g;function st(Le){let xe=document.createElement("div");return xe.innerHTML=Le,xe.childNodes.length===0?"":xe.childNodes[0].nodeValue}const $e=(Le,xe)=>{Le=Le||"";const ce=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ye=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,je=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return xe?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ce,(it,Pe,ye,vt,zt,Ct,De)=>{const mt=Pe||vt||Ct,dt=ye||zt||De||"?";return Ee.Z.API_SERVER+"/api/attachments/"+mt+dt+"&t="+(0,Ce.Jn)(mt,Date.now())+(it.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(je,(it,Pe,ye,vt,zt,Ct,De)=>{const mt=Pe||vt||Ct,dt=ye||zt||De||"?";return Ee.Z.API_SERVER+"/attachments/download/"+mt+dt+"&t="+(0,Ce.Jn)(mt,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(ce,(it,Pe,ye,vt,zt,Ct,De)=>{const mt=Pe||vt||Ct,dt=ye||zt||De||"?";return Ee.Z.API_SERVER+"/api/attachments/"+mt+dt+"&t="+(0,Ce.Jn)(mt,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(Et,(it,Pe,ye,vt,zt)=>{const Ct=Pe||vt,De=ye||zt||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+Ct+De+Ct+De+"&t="+(0,Ce.Jn)(Ct,Date.now())}).replace(Ye,(it,Pe,ye,vt,zt)=>{const Ct=Pe||vt,De=ye||zt||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+Ct+De+Ct+De+"&t="+(0,Ce.Jn)(Ct,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Le)};var pe=({value:Le="",edit:xe=!1,className:ce,showTextOnly:Et,showLines:Ye,style:je={},stylesPrev:it={},highlightKeywords:Pe,showProgramFill:ye,isProgramFill:vt,disabledFill:zt=!1,programFillValue:Ct,openEditor:De=()=>{},onFillChange:mt=bt=>{},onFillBlur:dt=()=>{},onFillFocus:Gt=()=>{}})=>{let bt=Be(String(Le||""));const xt=(0,y.useRef)(),pt=(0,y.useRef)(),[ln,Wt]=(0,y.useState)(""),[ue,ae]=(0,y.useState)("office"),[re,se]=(0,y.useState)([]),ve=(0,y.useRef)("a"+(0,We.Z)()),ie={},fe=Lt=>/<style[\s\S]*?>/i.test(Lt||""),Ve=(Lt,cn,Xt)=>{const Xe=document.createElement(Lt===ut?"input":"textarea");Xe.style.width="100%",Xe.style.height=Lt===ut?"40px":"151px",Xe.rows=5,Xe.spellcheck=!1,Xe.name="edu-program-fill",Xe.placeholder="\u8BF7\u8F93\u5165",Xe.dataset.id=cn;const Nt=Object.keys(ie).length;return ie[Nt]=Xe,`<span class="edu-program-fill-wrap ${Lt===ut?"":"show"}" style="width:${Lt===ut?"600px":"100%"}" title=${Xt||""}><span>${Xe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function It(Lt){return Lt=Lt.replace(/!\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(/\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Lt=Lt.replace(/<embed.*?>/g,""),Lt=Lt.replace(/<img.*?>/g,""),Lt=Lt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Lt=Lt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Lt=Lt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Lt=Lt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Lt}const Qe=Lt=>!Et&&fe(bt)?Lt:Lt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(cn,Xt){let Xe=Xt.replace(/(\n|\r)/g,"").split("}"),Nt=[];return Xe.map(dn=>{dn!=""&&Nt.push(`.${ve.current} ${dn}`)}),`<style>${Nt.join("}")}</style>`}),Ke=(0,y.useMemo)(()=>{(0,me.Iy)();try{const Xe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,dn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,xn=/\(\/attachments\/download\//g;bt=bt.replace(xn,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(Xe,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(Nt,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(dn,'"'+Ee.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),xt.current.style.display="none"}catch(Xe){}if(ye){let Xe=-1;return bt=bt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Nt,dn,xn){var at;return++Xe,Ve(Nt,Xe,(at=Ct==null?void 0:Ct[Xe])==null?void 0:at.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Qe(bt||"")}</pre>`}let Lt=Qe(bt);Lt=(0,me.ZP)(Lt);const cn=(0,me.ez)();bt.match(/\[TOC\]/)&&(Lt=Lt.replace("<p>[TOC]</p>",(0,me.Qv)()),(0,me.Iy)()),Lt=Lt.replace(/(__special_katext_id_\d+__)/g,(Xe,Nt)=>{const{type:dn,expression:xn}=cn[Nt];return(0,ke.renderToString)(st(xn)||"",{displayMode:dn==="block",throwOnError:!1,output:"html"})}),Lt=Lt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,me.AL)();const Xt=document.createElement("div");if(Xt.innerHTML=Lt,Et)return Xt.innerText;if(Pe){const Xe=Pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Je(Xt,Xe),Xt.innerHTML}return setTimeout(()=>un(),500),Xt.innerHTML},[bt,Pe]);(0,y.useEffect)(()=>{tt.current&&tt.current.querySelectorAll(["input","textarea"]).forEach(cn=>{cn.oninput=gt,cn.onblur=wt,cn.onfocus=Tt})},[re]),(0,y.useEffect)(()=>{var Lt,cn,Xt,Xe,Nt;if(Ct!=null&&Ct.length)try{const dn=tt.current.querySelectorAll(".edu-program-fill-score"),xn=tt.current.querySelectorAll('[name="edu-program-fill"]');for(const[at,Rt]of xn.entries())Rt.value=((Lt=Ct==null?void 0:Ct[at])==null?void 0:Lt.value)||"",((cn=Ct==null?void 0:Ct[at])==null?void 0:cn.type)==="warning"?Rt.className="program-fill-warning":((Xt=Ct==null?void 0:Ct[at])==null?void 0:Xt.type)==="success"?Rt.className="program-fill-success":Rt.className="";for(const[at,Rt]of dn.entries())Rt.innerHTML=(Xe=Ct==null?void 0:Ct[at])!=null&&Xe.score?`${(Nt=Ct==null?void 0:Ct[at])==null?void 0:Nt.score}\u5206`:"";se(Ct)}catch(dn){console.log(dn,"error")}},[Ct]);const gt=Lt=>{re[Lt.target.dataset.id]=re[Lt.target.dataset.id]||{},re[Lt.target.dataset.id].value=Lt.target.value,se([...re]),mt(re,Lt.target.dataset.id)},wt=Lt=>{re[Lt.target.dataset.id]=re[Lt.target.dataset.id]||{},re[Lt.target.dataset.id].value=Lt.target.value,se([...re]),dt(re,Lt.target.dataset.id)},Tt=Lt=>{re[Lt.target.dataset.id]=re[Lt.target.dataset.id]||{},re[Lt.target.dataset.id].value=Lt.target.value,se([...re]),Gt(re,Lt.target.dataset.id)};function Je(Lt,cn){return Lt.childNodes.forEach(Xt=>{var Xe;if(Xt.childNodes.length>0)Je(Xt,cn);else if(Xt.nodeName!=="IMG")if(Xt.innerHTML)Xt.innerHTML=(Xe=Xt.innerHTML)==null?void 0:Xe.replace(new RegExp(cn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Nt=document.createElement("span");Nt.innerHTML=Xt.textContent.replace(new RegExp(cn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Xt.replaceWith(Nt)}})}const tt=(0,y.useRef)();me.jb.WebkitLineClamp=Ye,Ye&&(je=et(et({},je),me.jb));function Ht(Lt){let cn=Lt.target;if(cn.tagName.toUpperCase()==="A"){let Xt=cn.getAttribute("href");if(Xt.indexOf("office")>-1)Lt.preventDefault(),Wt(Xt),ae("office");else if(Xt.indexOf("application/pdf")>-1)Lt.preventDefault(),Wt(Xt),ae("pdf");else if(Xt.indexOf("text/html")>-1)Lt.preventDefault(),Wt(Xt),ae("html");else if(Xt.startsWith("#")){Lt.preventDefault();let Xe=document.getElementById(Xt.replace("#",""));Xe&&Xe.scrollIntoView(!0)}}}const un=()=>{var Lt;const cn=(Lt=tt.current)==null?void 0:Lt.querySelectorAll("video");cn==null||cn.forEach(Xt=>{if(Xt.oncontextmenu=()=>!1,Xt.src.indexOf(".m3u8")>-1&&!Xt.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var Xe=new Se.ZP;Xe.loadSource(Xt.src),Xe.attachMedia(Xt)}}})};(0,y.useEffect)(()=>{if(tt.current&&Ke&&Ke.match(yt)&&window.PR.prettyPrint(),tt.current)return tt.current.addEventListener("click",Ht),()=>{var Lt;(Lt=tt.current)==null||Lt.removeEventListener("click",Ht),(0,me.AL)(),(0,me.Iy)()}},[Ke,tt.current,Ht]);const Dn=Lt=>{Lt.target.nodeName==="IMG"&&Lt.target.className.indexOf("draw-flowchart")>-1?(xt.current.style.zIndex=1,xt.current.style.display="flex",xt.current.style.width=Lt.target.clientWidth+"px",xt.current.style.height=Lt.target.clientHeight+"px",xt.current.style.top=Lt.target.offsetTop+"px",xt.current.style.left=Lt.target.offsetLeft+"px",Lt.target.id&&(pt.current=Lt.target.id)):xt.current.style.display="none"},yn=()=>{xt.current.style.display="none"};return(0,y.useEffect)(()=>{var Lt;const cn=Xt=>{Xt.preventDefault(),Xt.clipboardData.setData("text",window.getSelection().toString())};return(Lt=tt.current)==null||Lt.addEventListener("copy",cn),()=>{var Xt;(Xt=tt.current)==null||Xt.removeEventListener("copy",cn)}},[tt.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:yn},Et&&y.createElement("div",{ref:tt,className:`${Oe.mdBody} `},Ke),!Et&&!fe(Ke)&&y.createElement("div",{ref:tt,style:et({},je),onMouseOver:Dn,className:`${ce||""} ${zt?"disabled-fill":""} markdown-body ${Oe.mdBody} ${ve.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!Et&&fe(Ke)&&y.createElement(Ne,{html:Ke}),y.createElement("div",{ref:xt,className:`${Oe.button} ${xe?"":Oe.previewFlowChart}`},y.createElement(Fe.Z,null,y.createElement(de.ZP,{onClick:()=>{xe?De(pt.current):(Wt(pt.current),ae("flowChart"))}},xe?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(Te.Z,{close:!0,data:ln,type:ln!=null&&ln.length?ue:"",style:et({},it),onClose:()=>Wt("")}))}},71549:function(Rn,qt,E){"use strict";E.d(qt,{C:function(){return Et}});var y=E(59301),ge={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},me=E(92310),we=E.n(me),Se=E(62673),Ee=E(77019),Ce=E(6767),ke=E(25399),Fe=E(7939),de=E(62957),We=E(70858),Te=E(4875),ft=E(28284),Ge=E(29787),Ne=E(76406),Be=E(49317),Oe=E(15267),Ie=E(35139),nt=E(70467),St=Object.defineProperty,Ae=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,yt=(Ye,je,it)=>je in Ye?St(Ye,je,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ye[je]=it,st=(Ye,je)=>{for(var it in je||(je={}))qe.call(je,it)&&yt(Ye,it,je[it]);if(et)for(var it of et(je))ut.call(je,it)&&yt(Ye,it,je[it]);return Ye},$e=(Ye,je)=>Ae(Ye,_e(je)),pe=(Ye,je,it)=>new Promise((Pe,ye)=>{var vt=De=>{try{Ct(it.next(De))}catch(mt){ye(mt)}},zt=De=>{try{Ct(it.throw(De))}catch(mt){ye(mt)}},Ct=De=>De.done?Pe(De.value):Promise.resolve(De.value).then(vt,zt);Ct((it=it.apply(Ye,je)).next())});const Le=Se.default.Group,xe=({className:Ye,title:je,items:it=[],value:Pe,onChange:ye})=>{const vt=(it==null?void 0:it.length)===(Pe==null?void 0:Pe.length),zt=(Pe==null?void 0:Pe.length)>0&&(Pe==null?void 0:Pe.length)<(it==null?void 0:it.length),Ct=De=>{const mt=it.map(dt=>dt.id);ye(De.target.checked?mt:[])};return y.createElement(Ee.Z,{align:"middle",className:Ye},!!je&&y.createElement("div",{className:"mr20",style:{color:"#5F6368"}},je),y.createElement(Se.default,{indeterminate:zt,onChange:Ct,checked:vt},"\u5168\u90E8"),y.createElement(Le,{value:Pe,onChange:ye},it.map(De=>y.createElement(Se.default,{className:"ml30 c-black",key:De.id,value:De.id},De.name,y.createElement("span",null,`(${De.count})`)))))};var Et=({className:Ye,style:je,dataSource:it})=>{var Pe,ye,vt,zt,Ct,De,mt;const[dt,Gt]=(0,y.useState)({}),[bt,xt]=(0,y.useState)(!0),[pt,ln]=(0,y.useState)(!1),[Wt,ue]=(0,y.useState)(!1),[ae,re]=(0,y.useState)(null),[se,ve]=(0,y.useState)(0),[ie,fe]=(0,y.useState)({}),[Ve,It]=(0,y.useState)(!0),[Qe,Ke]=(0,y.useState)(0),[gt,wt]=(0,y.useState)(0),[Tt,Je]=(0,y.useState)(!1),tt=(0,y.useRef)(null),[Ht,un]=(0,y.useState)(!1),[Dn,yn]=(0,y.useState)(!0),[Lt,cn]=(0,y.useState)([]),Xt={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Xe,Nt]=(0,y.useState)(st({},Xt));(0,y.useEffect)(()=>{it!=null&&it.question_id&&Gt(it)},[it==null?void 0:it.question_id]),(0,y.useEffect)(()=>{var Ot;if(((Ot=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:Ot.status)==="running"){const jt=setInterval(()=>{at()},3e3);return()=>clearInterval(jt)}},[(Pe=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:Pe.status]),(0,y.useEffect)(()=>{var Ot;Wt&&(Wt===1&&(Xe.question_status=Rt.map(jt=>jt.value),Xe.review=en.map(jt=>jt.value)),Wt===2&&(Xe.exercise_question_resubmit_id=(Ot=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:Ot.id,ae===1&&(Xe.success_status=[1]),ae===2&&(Xe.success_status=[0])),Nt(st({},Xe)),dn(Xe),wt(dt!=null&&dt.is_mirror?3:10),Ke(dt!=null&&dt.is_mirror?1:5))},[Wt]),(0,y.useEffect)(()=>{Ht&&xn()},[Ht]);const dn=Ot=>pe(void 0,null,function*(){xt(!0);const jt=yield(0,Be.ZP)(`/api/exercise_questions/${dt==null?void 0:dt.question_id}/resubmit_student_list.json`,{method:"get",params:Ot});(jt==null?void 0:jt.status)==0&&(fe(jt||[]),ve(jt==null?void 0:jt.count)),xt(!1)}),xn=()=>pe(void 0,null,function*(){yn(!0);const Ot=yield(0,Be.ZP)(`/api/exercise_questions/${dt==null?void 0:dt.question_id}/resubmit_history.json`,{method:"get"});(Ot==null?void 0:Ot.status)==0&&cn((Ot==null?void 0:Ot.data)||[]),yn(!1)}),at=()=>pe(void 0,null,function*(){const Ot=yield(0,Be.ZP)(`/api/exercise_questions/${dt==null?void 0:dt.question_id}/resubmit_status.json`,{method:"get"});(Ot==null?void 0:Ot.status)==0&&Gt($e(st({},dt),{show_resubmit_history:!0,exercise_question_resubmit:(Ot==null?void 0:Ot.data)||{}}))}),Rt=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],en=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],Pt=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],Ut=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Ot,jt,on)=>y.createElement("span",{className:"c-black"},on+1+(Xe.page-1)*Xe.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Ot=>y.createElement("span",{className:"c-black"},Ot)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Ot=>y.createElement("span",{className:"c-grey-666"},Ot||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Ot=>y.createElement("span",{className:"c-black"},Ot)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Ot=>{const{label:jt,color:on}=Rt.find(En=>En.value===Ot)||{};return y.createElement("span",{style:{color:on}},jt)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Ot=>y.createElement("span",{className:"c-black"},Ot)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Ot=>y.createElement("span",{className:"c-black"},Ot)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Ot=>{const{label:jt,color:on}=en.find(En=>En.value===Ot)||{};return y.createElement("span",{style:{color:on}},jt)}},Wt===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Ot=>{const{label:jt,color:on}=Pt.find(En=>En.value===Ot)||{};return y.createElement("span",{style:{color:on}},jt)}}].filter(Boolean),Yt=(Ot,jt,on)=>{Xe.page=Ot==null?void 0:Ot.current,Xe.per_page=Ot==null?void 0:Ot.pageSize,on!=null&&on.order?(Xe.sort_by=on==null?void 0:on.field,Xe.direction=(on==null?void 0:on.order)==="ascend"?"asc":"desc"):(Xe.sort_by=null,Xe.direction=null),Nt(st({},Xe)),dn(Xe)},bn=()=>{if(!Qe){Ce.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Je(!0)},jn=()=>pe(void 0,null,function*(){var Ot,jt;if((Ot=tt.current)!=null&&Ot.onVerify())return;ln(!0);const on=yield(0,Be.ZP)(`/api/exercise_questions/${dt==null?void 0:dt.question_id}/resubmit.json`,{method:"post",body:{keyword:Xe.keyword,question_status:Xe.question_status,review:Xe.review_status,success_status:Xe.success_status,use_max_score:Ve,permits:Qe,exercise_question_resubmit_id:Wt===1?null:(jt=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:jt.id}});(on==null?void 0:on.status)==0&&(yield at(),Ce.ZP.success("\u64CD\u4F5C\u6210\u529F"),Je(!1),ue(!1)),ln(!1)}),Bn=(Ot,jt)=>{Xe.page=1,Xe[jt]=Ot,Nt(st({},Xe)),dn(Xe)},Zn=["","\u5F53\u524D\u9898\u76EE\u7684\u5B9E\u9A8C\u8D44\u6E90\u4E3A\u4E13\u6709\u4E91\uFF0C\u4E0D\u652F\u6301\u91CD\u65B0\u8BC4\u6D4B~","\u8BE5\u529F\u80FD\u4EC5\u8BFE\u5802\u7BA1\u7406\u5458\u548C\u8003\u8BD5\u7684\u521B\u5EFA\u8005\u53EF\u4EE5\u64CD\u4F5C~"];return y.createElement(y.Fragment,null,y.createElement("div",{className:we()(ge.recalculation,Ye),style:je},y.createElement(ke.Z,{title:Zn[(dt==null?void 0:dt.disable_resubmit_reason)||0]},y.createElement(Fe.ZP,{disabled:(dt==null?void 0:dt.disable_resubmit)||((ye=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:ye.status)==="running",onClick:()=>ue(1),icon:y.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(dt==null?void 0:dt.show_resubmit_history)&&y.createElement(y.Fragment,null,((vt=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:vt.status)==="running"?y.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",y.createElement("span",{className:"c-light-primary ml3"},(zt=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:zt.rate)):y.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{onClick:()=>{ue(2),re(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(Ct=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:Ct.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{onClick:()=>{ue(2),re(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(De=dt==null?void 0:dt.exercise_question_resubmit)==null?void 0:De.fail_count),"\u4EBA"),y.createElement(ke.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},y.createElement("i",{onClick:()=>un(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),y.createElement(de.default,{centered:!0,open:!!Wt,title:`\u91CD\u65B0\u8BC4\u6D4B${Wt===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>ue(!1),onOk:bn,afterClose:()=>{It(!0),re(null),Nt(st({},Xt))}},y.createElement("div",{className:ge.filter},Wt===1&&y.createElement(y.Fragment,null,y.createElement("div",{className:ge.tips},y.createElement("div",{className:"mb5",style:{color:"#FF9D18"}},y.createElement("i",{className:"iconfont icon-tishi9 mr10 font14"}),"\u6E29\u99A8\u63D0\u793A"),y.createElement("div",null,"1.\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206\u6D41\u7A0B\uFF1A \u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u5B66\u751F\u5728\u8003\u8BD5\u9875\u9762\u4FDD\u5B58\u7684\u6700\u65B0\u4EE3\u7801\uFF0C\u5E76\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\uFF0C\u4ECE\u800C\u7CBE\u51C6\u8BA1\u7B97\u51FA\u5B66\u751F\u7684\u6700\u7EC8\u5F97\u5206\uFF1B"),y.createElement("div",{style:{margin:"2px 0"}},"2.\u91CD\u65B0\u8BC4\u6D4B\u6761\u4EF6\uFF1A \u8003\u8BD5\u7ED3\u675F\u540E\uFF0C\u4EC5\u5BF9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u4E14\u5DF2\u4F5C\u7B54\u8BE5\u9898\u76EE\u7684\u5B66\u751F\u8FDB\u884C\u91CD\u65B0\u8BC4\u6D4B\u4E0E\u7B97\u5206\uFF1B"),y.createElement("div",null,"3.\u91CD\u65B0\u8BC4\u6D4B\u65F6\uFF0C\u8BF7\u786E\u4FDD\u5B9E\u9A8C\u73AF\u5883\u80FD\u6B63\u5E38\u542F\u52A8\u5E76\u53EF\u8FD0\u884C\u8BC4\u6D4B\u3002")),y.createElement(xe,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(ie==null?void 0:ie.question_status)||[],value:Xe.question_status,onChange:Ot=>Bn(Ot,"question_status")}),y.createElement(xe,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(ie==null?void 0:ie.review_status)||[],value:Xe.review,onChange:Ot=>Bn(Ot,"review")})),Wt===2&&y.createElement(y.Fragment,null,y.createElement(xe,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(ie==null?void 0:ie.success_status)||[],value:Xe.success_status,onChange:Ot=>Bn(Ot,"success_status")})),y.createElement(nt.t7,{className:ge.input,style:{bottom:Wt===1?10:-5},value:Xe.keyword,onChange:Ot=>Bn(Ot,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),y.createElement(We.default,{className:"mt20",columns:Ut,scroll:((mt=ie==null?void 0:ie.data)==null?void 0:mt.length)>7?{y:300}:{},dataSource:(ie==null?void 0:ie.data)||[],loading:bt,onChange:Yt,pagination:{total:se,pageSize:Xe.per_page,current:Xe.page,hideOnSinglePage:!se,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Ne.rU}}),y.createElement(Ee.Z,{justify:"space-between",align:"middle",className:"mt10"},y.createElement(Se.default,{className:"c-black",checked:Ve,onChange:Ot=>It(Ot.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,Oe.Ny)()&&y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",y.createElement(Te.Z,{className:"ml10 mr10",value:Qe,max:gt,min:1,precision:0,onChange:Ot=>Ke(Ot)}),"\u4EBA",y.createElement(ke.Z,{overlayStyle:{maxWidth:450},title:"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A20\u4EBA\uFF08\u81EA\u5B9A\u4E49\u955C\u50CF\u7684\u6700\u5927\u5E76\u53D1\u4EBA\u6570\u4E3A3\u4EBA\uFF09\u3002"},y.createElement("i",{style:{color:"#9096A3"},className:"iconfont icon-tishi5 font13 ml10"}))))),y.createElement(de.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Tt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:pt,destroyOnClose:!0,onOk:jn,onCancel:()=>Je(!1)},y.createElement(ft.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},y.createElement(Ie.Z,{ref:Ot=>tt.current=Ot}))),y.createElement(de.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Ht,width:710,onCancel:()=>un(!1),footer:null},y.createElement(Ge.Z,{spinning:Dn},y.createElement("div",{className:ge.operating},Lt.map((Ot,jt)=>y.createElement("div",{key:jt,className:ge.operatingItem},y.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Ot==null?void 0:Ot.created_at),y.createElement("div",{className:"c-black"},Ot==null?void 0:Ot.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Ot==null?void 0:Ot.status)==="running"?y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4E2D\uFF0C\u5F53\u524D\u8FDB\u5EA6",y.createElement("span",{className:"c-light-primary ml3"},Ot==null?void 0:Ot.rate)):y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Ot==null?void 0:Ot.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Ot==null?void 0:Ot.fail_count),"\u4EBA")))),y.createElement("div",{style:{height:20}}))))}},27878:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(59301),ge={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"},me=E(62957),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",Ee=(Fe,de,We)=>new Promise((Te,ft)=>{var Ge=Oe=>{try{Be(We.next(Oe))}catch(Ie){ft(Ie)}},Ne=Oe=>{try{Be(We.throw(Oe))}catch(Ie){ft(Ie)}},Be=Oe=>Oe.done?Te(Oe.value):Promise.resolve(Oe.value).then(Ge,Ne);Be((We=We.apply(Fe,de)).next())}),ke=({type:Fe,resdata:de,onok:We,oktext:Te,okloading:ft})=>{const[Ge,Ne]=(0,y.useState)(!1),{can_copy_list:Be,can_copy_num:Oe,challenge_type:Ie,course_data_list:nt,no_copy_list:St,no_copy_num:Ae,no_use_list:_e,no_use_num:et,repeat_shixun_num:qe,student_count:ut,total_num:yt,use_num:st}=de;let $e=Oe>0||Fe==="exercise";(0,y.useEffect)(()=>{(de==null?void 0:de.student_count)>0&&Ne(!0)},[de]),console.log("---11",ft),(0,y.useEffect)(()=>{ft||Ne(!1)},[ft]);const pe=()=>{if(Fe==="exercise"&&Ie===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ge.orangeColor},st),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ge.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(Fe==="exercise"&&Ie===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ge.orangeColor},st),"\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",y.createElement("span",{className:ge.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="shixun"&&Ie===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ge.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="shixun"&&Ie===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\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",y.createElement("span",{className:ge.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="subject"&&Ie===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ge.orangeColor},st),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ge.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="subject"&&Ie===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",y.createElement("span",{className:ge.orangeColor},ut)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",y.createElement("span",{className:ge.orangeColor},st)," \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",y.createElement("span",{className:ge.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="exercisepush")return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",y.createElement("span",{className:ge.orangeColor},st),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",y.createElement("span",{className:ge.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(Fe==="shixunpush"&&Ie===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ge.orangeColor},st),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ge.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="shixunpush"&&Ie===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ut),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",y.createElement("span",{className:ge.orangeColor},st),"\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",y.createElement("span",{className:ge.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Le=()=>{if(Fe==="exercise"||Fe==="subject"||Fe==="exercisepush"||Fe==="shixunpush")return y.createElement("div",{style:{marginTop:20}},Ae>0&&y.createElement("div",null,y.createElement("span",{className:ge.flex},y.createElement("img",{src:Se,style:{width:14}}),y.createElement("span",{className:ge.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:ge.statusbody},Fe==="exercise"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ge.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"),(Fe==="subject"||Fe==="exercisepush")&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",$e&&y.createElement("span",{className:ge.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"),Fe==="shixunpush"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",$e&&y.createElement("span",{className:ge.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"),y.createElement("div",null,St==null?void 0:St.map((xe,ce)=>y.createElement("a",{href:`/shixuns/${xe.identifier}/challenges`,target:"_blank"},"\u300A",xe==null?void 0:xe.name,"\u300B",ce+1!==Ae&&"\u3001"))))),Oe>0&&y.createElement("div",{style:{marginTop:20}},y.createElement("span",{className:ge.flex},y.createElement("img",{src:we,style:{width:14}}),y.createElement("span",{className:ge.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:ge.statusbody},Fe==="exercise"&&y.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"),(Fe==="subject"||Fe==="exercisepush")&&y.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"),Fe==="shixunpush"&&y.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"),y.createElement("div",null,Be==null?void 0:Be.map((xe,ce)=>y.createElement("a",{href:`/shixuns/${xe.identifier}/challenges`,target:"_blank"},"\u300A",xe==null?void 0:xe.name,"\u300B",ce+1!==Oe&&"\u3001"))))));if(Fe==="shixun")return y.createElement("div",{style:{marginTop:20}},Oe>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 y.createElement(me.default,{open:Ge,onCancel:()=>{Ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!$e&&"none"}},zIndex:1003,confirmLoading:ft,okText:$e?Te:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ee(void 0,null,function*(){$e?yield We([...Be,..._e]):Ne(!1)})},y.createElement("div",{style:{maxHeight:600,overflow:"auto"}},pe(),Le()))}},80608:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ee}});var y=E(59301),ge={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},me=E(92310),we=E.n(me),Ee=({className:Ce,style:ke,state:Fe,onClick:de})=>{var We,Te;return y.createElement("div",{onClick:de,className:we()(Fe?(We=ge)==null?void 0:We.redBtn:(Te=ge)==null?void 0:Te.btn,Ce),style:ke},Fe?y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaoji1"}),y.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaojigaiti"}),y.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},28267:function(Rn,qt,E){"use strict";E.d(qt,{h:function(){return Ae}});var y=E(59301),ge=E(82326),me=E(28284),we=E(7939),Se=E(89780),Ee=E.n(Se),Ce=E(88319),ke=E(94896),Fe=Object.defineProperty,de=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ne=(_e,et,qe)=>et in _e?Fe(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:qe}):_e[et]=qe,Be=(_e,et)=>{for(var qe in et||(et={}))ft.call(et,qe)&&Ne(_e,qe,et[qe]);if(Te)for(var qe of Te(et))Ge.call(et,qe)&&Ne(_e,qe,et[qe]);return _e},Oe=(_e,et)=>de(_e,We(et));const Ie=ge.default.Option,nt={labelCol:{span:4},wrapperCol:{span:20}},St={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"]};qt.Z=({callback:_e,onCancel:et})=>{const[qe,ut]=(0,y.useState)("python");function yt($e){ut(St[$e][1])}function st($e){_e($e)}return y.createElement(me.default,Oe(Be({},nt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:st,style:{width:500}}),y.createElement(me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(ge.default,{getPopupContainer:$e=>$e.parentNode,onChange:yt},Object.keys(St).map($e=>y.createElement(Ie,{key:$e,value:$e},St[$e][0])))),y.createElement(me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.createElement(Ae,{mode:qe})),y.createElement("div",{className:"flex-container flex-end"},y.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(we.ZP,{type:"ghost",onClick:et},"\u53D6\u6D88")))};function Ae({value:_e,onChange:et,mode:qe,options:ut={}}){const yt=(0,y.useRef)(),[st,$e]=(0,y.useState)();return(0,y.useEffect)(()=>{if(st){let pe=function(Le){const xe=Le.getValue();et&&et(xe)};return st.on("change",pe),()=>{st.off("change",pe)}}},[st,et]),(0,y.useEffect)(()=>{st&&st.setOption("mode",qe)},[st,qe]),(0,y.useEffect)(()=>{st&&(_e!==st.getValue()||_e==="")&&setTimeout(()=>{st.setValue(_e||"")},300)},[st,_e]),(0,y.useEffect)(()=>{if(yt.current&&!st){const pe=Ee().fromTextArea(yt.current,Be({mode:qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ut));$e(pe)}},[yt.current,st]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:yt}))}},39116:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return En}});var y=E(59301),ge=E(44283),me=E(89780),we=E.n(me),Se=E(76374),Ee=E(88319),Ce=E(6313),ke=E(25717),Fe=E(99498),de=E(25419),We=E(67549),Te=E(35883),ft=({value:tn="",className:In,showTextOnly:pn,showLines:On,style:fr={}})=>{const Qn=(0,y.useMemo)(()=>"",[tn]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:Qn}}))},Ge=Object.defineProperty,Ne=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,St=(tn,In,pn)=>In in tn?Ge(tn,In,{enumerable:!0,configurable:!0,writable:!0,value:pn}):tn[In]=pn,Ae=(tn,In)=>{for(var pn in In||(In={}))Ie.call(In,pn)&&St(tn,pn,In[pn]);if(Oe)for(var pn of Oe(In))nt.call(In,pn)&&St(tn,pn,In[pn]);return tn},_e=(tn,In)=>Ne(tn,Be(In));let et=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function qe({onActionCallback:tn,title:In,icon:pn,actionName:On,className:fr="",children:Qn}){function cr(){tn(On)}return y.createElement("a",{title:In,className:fr,onClick:cr},y.createElement("i",{className:`${pn}`}),Qn)}var ut=({watch:tn,showNullButton:In,showNullProgramButton:pn,onActionCallback:On,fullScreen:fr,insertTemp:Qn,hidetoolBar:cr,extraUse:Cr})=>{const gr=[...et,{title:`${tn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${tn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return y.createElement("ul",{className:"markdown-toolbar-container"},!cr&&gr.map((Hr,Zr)=>y.createElement("li",{key:Zr},Hr.actionName?y.createElement(qe,_e(Ae({},Hr),{onActionCallback:On})):y.createElement("span",{className:"v-line"}))),In?y.createElement("li",null,y.createElement(qe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:On},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,pn?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement(qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:On},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement(qe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:On},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Qn&&y.createElement("li",null,y.createElement(qe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qn}`,onActionCallback:On},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Cr&&y.createElement("li",null,Cr),y.createElement("li",{className:"btn-full-screen"},y.createElement(qe,{icon:`${fr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:fr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:On})))},yt=E(88487),st=E(28284),$e=E(37568),pe=E(7939),Le=Object.defineProperty,xe=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,it=(tn,In,pn)=>In in tn?Le(tn,In,{enumerable:!0,configurable:!0,writable:!0,value:pn}):tn[In]=pn,Pe=(tn,In)=>{for(var pn in In||(In={}))Ye.call(In,pn)&&it(tn,pn,In[pn]);if(Et)for(var pn of Et(In))je.call(In,pn)&&it(tn,pn,In[pn]);return tn},ye=(tn,In)=>xe(tn,ce(In));const vt={labelCol:{span:4},wrapperCol:{span:20}};var zt=({callback:tn,onCancel:In})=>{function pn(On){tn(On)}return y.createElement(st.default,ye(Pe({},vt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pn,style:{width:500}}),y.createElement(st.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},y.createElement($e.default,null)),y.createElement(st.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},y.createElement($e.default,null)),y.createElement("div",{className:"flex-container flex-end"},y.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(pe.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},Ct=E(28267),De=E(53332),mt=E(62957),dt=E(77019),Gt=E(40254),bt=E(59301),xt=({callback:tn,onCancel:In})=>{const pn=document.createElement("canvas"),On=pn.getContext("2d");pn.width=1e3,pn.height=800,On.fillStyle="#ffffff",On.fillRect(0,0,pn.width,pn.height);const fr=pn.toDataURL("image/png");return bt.createElement(mt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bt.createElement(dt.Z,{style:{height:"100vh"}},bt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:fr,visible:!0,title:String(Date.now())},onOk:Qn=>{tn({src:Qn.url})},onClose:In})))},pt=E(36207),ln=E(5269),Wt=E(6767),ue={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ae=E(59301),se=(0,y.forwardRef)(({onCancel:tn,editImgId:In,callback:pn},On)=>{let fr=(0,y.useRef)(),Qn=(0,y.useRef)(),cr=(0,y.useRef)(),Cr=(0,y.useRef)(!1);const gr=(0,y.useRef)(!1);console.log("ref:",On);const[Hr,Zr]=(0,y.useState)(0),[Pn,$n]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{Zr(1)},[]),(0,y.useImperativeHandle)(On,()=>({setHeight:$n})),ae.createElement("div",{ref:gr,className:"body-overflow-initial"},ae.createElement(pt.Z,{width:"100vw",height:Pn,footer:null,closable:!0,placement:"bottom",open:!!Hr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ue.drawerWrap}`,onClose:()=>{window.saveDrawData(dr=>{pn({src:`/api/attachments/${dr}`,id:dr})})},title:ae.createElement(dt.Z,{align:"middle"},ae.createElement(ln.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ae.createElement(ln.Z,{onClick:()=>{$n(Pn==="60px"?"100vh":"60px")}},ae.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ae.createElement(ln.Z,{onClick:()=>{window.saveDrawData(dr=>{if(dr===null){Wt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Wt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),pn({src:`/api/attachments/${dr}`,id:dr,disabledClose:!0})})}},ae.createElement(pe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ae.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${In||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Qn})))}),ve=E(14185),ie=E(47889),fe=E(4875);const Ve=ie.ZP.Group,It={margin:"0 8px"};var Qe=({callback:tn,onCancel:In})=>{function pn(On){tn(On)}return y.createElement(st.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pn},y.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},y.createElement("span",{style:It},"\u5355\u5143\u683C\u6570\uFF1A"),y.createElement("span",{style:It},"\u884C\u6570"),y.createElement(st.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},y.createElement(fe.Z,null)),y.createElement("span",{style:It},"\u5217\u6570"),y.createElement(st.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},y.createElement(fe.Z,null))),y.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},y.createElement("span",{style:It},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),y.createElement(st.default.Item,{name:"align"},y.createElement(Ve,null,y.createElement(ie.ZP,{value:"default"},y.createElement("i",{className:"fa fa-align-justify"})),y.createElement(ie.ZP,{value:"left"},y.createElement("i",{className:"fa fa-align-left"})),y.createElement(ie.ZP,{value:"center"},y.createElement("i",{className:"fa fa-align-center"})),y.createElement(ie.ZP,{value:"right"},y.createElement("i",{className:"fa fa-align-right"}))))),y.createElement("div",{className:"flex-container flex-end"},y.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(pe.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},Ke=E(58755),gt=E(84915),wt=E.n(gt),Je=(0,y.forwardRef)(({use3d:tn,width:In,height:pn,callback:On,showSaveButton:fr},Qn)=>{const cr=(0,y.useRef)(),Cr=(0,y.useRef)(),[gr,Hr]=(0,y.useState)(!1),Zr=(0,y.useRef)({id:cr,appName:"graphing",width:In||1e3,height:pn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,y.useEffect)(()=>{Cr.current=new(wt())(Zr.current,!0),window.onload=function(){Cr.current.inject("applet_container")}},[]);const Pn=()=>{var $n=window.ggbApplet.getPNGBase64(1,!0,72);return On&&On($n),$n};return(0,y.useEffect)(()=>{Zr.current.appName=gr?"3D":"graphing",Cr.current.inject("applet_container")},[gr]),(0,y.useEffect)(()=>{Hr(tn)},[tn]),(0,y.useImperativeHandle)(Qn,()=>({getImgData:Pn})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:cr}),y.createElement(dt.Z,{align:"middle"},y.createElement(ln.Z,{flex:1},y.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gr,onChange:$n=>Hr($n)})),y.createElement(ln.Z,null,y.createElement(pe.ZP,{size:"large",onClick:Pn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tt=E(9057);const Ht="link",un="upload-image",Dn="add-flowchart",yn="draw-image",Lt="add-flowchart",cn="code-block",Xt="add-table",Xe="------------",Nt={default:Xe,left:`:${Xe}`,center:`:${Xe}:`,right:`${Xe}:`};var dn=E(79006),xn=E(76406);function at(){}let Rt=0;const en=1e4,Pt="\u2581",Ut="@\u2581\u2581@",Yt="@\u2581@",bn=`
|
|
|
**\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`,jn=["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 Bn(tn){return/^\d+$/.test(tn)?`${tn}px`:tn}const Ot=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",jt={[Ot+"-B"]:"bold",[Ot+"-I"]:"italic"},on={[Ht]:"\u6DFB\u52A0\u94FE\u63A5",[cn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[un]:"\u6DFB\u52A0\u56FE\u7247",[yn]:"\u6DFB\u52A0\u753B\u56FE",[Dn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var En=({defaultValue:tn="",onChange:In,width:pn="100%",height:On=400,miniToolbar:fr=!1,isFocus:Qn=!1,watch:cr,insertTemp:Cr,mode:gr="markdown",id:Hr="markdown-editor-id",showResizeBar:Zr=!1,noStorage:Pn=!1,showNullButton:$n=!1,showNullProgramButton:dr=!1,hidetoolBar:hr=!1,fullScreen:_t=!1,onBlur:Qt,onCMBeforeChange:ct,onFullScreen:Zt,className:ot="",disablePaste:Kt=!1,disabled:Ft=!1,disabledFill:ar=!1,placeholder:mr="",values:At="",extraUse:Mt,onAddBlank:kt})=>{const[Vt,Nn]=(0,y.useState)(null),[Hn,Un]=(0,y.useState)(tn),[Xn,pr]=(0,y.useState)(cr),[wr,Or]=(0,y.useState)(_t),[Lr,Sr]=(0,y.useState)(""),[Mr,Vr]=(0,y.useState)(0),[oa,ra]=(0,y.useState)(On),[Oa,ba]=(0,y.useState)(!1),[Kr,ga]=(0,y.useState)(0),[Qa,Da]=(0,y.useState)(0),Ea=(0,y.useRef)(),Rr=(0,y.useRef)(),Za=(0,y.useRef)(),Pa=(0,y.useRef)(),la=(0,y.useRef)(),Xr=(0,y.useRef)(),$a=(0,ge.useDispatch)();(0,y.useEffect)(()=>{const Er=window.scrollY||window.pageYOffset;Un(At),Vt==null||Vt.setValue(At),window.scrollTo(0,Er)},[At]),(0,y.useEffect)(()=>{Zt==null||Zt(wr)},[wr]),(0,y.useEffect)(()=>{if(Ea.current){let Er=function($r,qr){var Aa;if(Kt){qr.preventDefault();return}const Wa=qr.clipboardData;if(Wa){const na=Wa.types.toString(),li=Wa.items;if(na==="Files"||Wa.types.indexOf("Files")>-1){if(qr.preventDefault(),gr=="stex")return;try{let di=li[1];((Aa=li[0])==null?void 0:Aa.kind)==="file"&&(di=li[0]);const zi=di.getAsFile(),Hi=zi.name.split(".").pop();(0,De.I)(zi,Ji=>{var Yi,Eo,Co;Ji.id?((Yi=zi==null?void 0:zi.type)==null?void 0:Yi.indexOf("image"))>-1?Dr.replaceSelection(`<img width="100%" src="/api/attachments/${Ji.id}?type=${Ji.content_type})" alt="" />`):((Eo=zi==null?void 0:zi.type)==null?void 0:Eo.indexOf("video"))>-1?Dr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ji.id}"></video>`):((Co=zi==null?void 0:zi.type)==null?void 0:Co.indexOf("pdf"))>-1?Dr.replaceSelection(`<a href="/api/attachments/${Ji.id}?type=${zi.type}&disposition=inline" target="_blank">${zi.name}</a>`):jn.includes(Hi)?Dr.replaceSelection(`<a href="/api/attachments/${Ji.id}?type=office&disposition=inline" target="_blank">${zi.name}</a>`):Dr.replaceSelection(`[${zi.name}](/api/attachments/${Ji.id}?type=${Ji.content_type})`):(Ji==null?void 0:Ji.status)===401&&(document.location.href="/user/login")})}catch(di){Wt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dr=we().fromTextArea(Ea.current,{mode:gr,lineNumbers:!fr,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});return Dr.on("keyup",function($r,qr){qr.keyCode===8&&($r.getValue()==""?Dr.setOption("placeholder",mr):Dr.setOption("placeholder",null))}),Dr.on("keydown",function($r,qr){if(qr.keyCode===8){var Aa=$i($r);Aa&&qr.preventDefault()}}),Qn&&Dr.focus(),Dr.on("paste",Er),Ft&&Dr.on("beforeChange",function($r,qr){(qr.origin==="paste"||qr.origin==="+input")&&qr.cancel()}),Nn(Dr),()=>{Dr.off("paste",Er)}}},[]);const Mi=(0,y.useCallback)(()=>{if(Rr.current)try{}catch(Er){console.log(Er,"---- to set md editor body height")}},[oa,Rr,wr]);(0,y.useEffect)(()=>{function Er(){let Dr=new Se.Z($r=>{for(let qr of $r)(qr.target.offsetHeight>0||qr.target.offsetWidth>0)&&(Mi(),Vt.setSize("100%","100%"),Vt.refresh())});return Dr.observe(Ea.current.parentElement),Dr}if(Vt){const Dr=Er();return()=>{var $r,qr;($r=Ea.current)!=null&&$r.parentElement&&Dr.unobserve((qr=Ea.current)==null?void 0:qr.parentElement)}}},[Vt,Mi]),(0,y.useEffect)(()=>{if(Vt){let Er=[];for(const[Dr,$r]of Object.entries(jt)){let qr={[Dr]:()=>{Xa($r)}};Er.push(qr),Vt.addKeyMap(qr)}return()=>{for(let Dr of Er)Vt.removeKeyMap(Dr)}}},[Vt]),(0,y.useEffect)(()=>{_t!==wr&&Or(_t)},[_t]),(0,dn.Z)(()=>{if(!Pn&&Mr>0){let Er=new Date().getTime(),Dr=window.sessionStorage.getItem(Hr);Er>=Mr+en&&(!Dr||Dr!==Hn)&&(window.sessionStorage.setItem(Hr,Hn),ba(!0))}},en),(0,y.useEffect)(()=>{pr(cr)},[Vt,cr]),(0,y.useEffect)(()=>{Vt&&Qn&&Vt.focus()},[Vt,Qn]),(0,y.useEffect)(()=>{if(Xn&&Vt){let Er=function($r){let qr=$r.target;if(Pa.current){let Aa=qr.scrollTop/qr.scrollHeight;Pa.current.scrollTop=Pa.current.scrollHeight*Aa}};const Dr=Vt.getScrollerElement();return Dr.addEventListener("scroll",Er),()=>{Dr.removeEventListener("scroll",Er)}}},[Vt,Xn]),(0,y.useEffect)(()=>{if(Vt&&ct){let Er=function(Dr,$r){ct(Dr,$r)};return Vt.on("beforeChange",Er),()=>{Vt.off("beforeChange",Er)}}},[Vt,ct]),(0,y.useEffect)(()=>{if(Vt&&Qt){let Er=function(){Qt(Vt.getValue())};return Vt.on("blur",Er),()=>{Vt.off("blur",Er)}}},[Vt,Qt]);function $i(Er,Dr){var $r=Er.getDoc(),qr=$r.getCursor(),Aa=$r.getLine(qr.line),Wa=Aa.charAt(qr.ch-1),na=Aa.lastIndexOf("@\u2581@",qr.ch),li=Aa.lastIndexOf("@\u2581\u2581@",qr.ch),di=na>li?na:li,zi=na>li?3:4;if(Ut.indexOf(Wa)===-1)return null;if(console.log("change1:",Dr,Er,Aa,qr,di,na,li,Wa),di>=0&&qr.ch-di<5){var Hi=di+zi;return $r.replaceRange("",{line:qr.line,ch:di},{line:qr.line,ch:Hi}),{line:qr.line,ch:Hi}}return null}(0,y.useEffect)(()=>{if(Vt){let Er=function(Dr,$r){const qr=Dr.getValue();Un(qr),Vr(new Date().getTime()),Dr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),In&&(dr?In(qr,yr(qr)):In(qr))};return Vt.on("change",Er),()=>{Vt.off("change",Er)}}},[Vt,In]),(0,y.useEffect)(()=>{if(Vt)if(tn==null)Vt.setValue(""),Un("");else{const Er=window.scrollY||window.pageYOffset;tn!==Vt.getValue()&&(Vt.setValue(tn),Un(tn),Vt.setCursor(Ft?1:Vt.lineCount(),0),window.scrollTo(0,Er))}},[Vt,tn]);const Xa=(0,y.useCallback)(Er=>{const Dr=Vt.getCursor(),$r=Vt.getSelection();let qr=$r.split(`
|
|
|
`);switch(Er){case"bold":return Vt.replaceSelection("**"+$r+"**"),$r===""&&Vt.setCursor(Dr.line,Dr.ch+2),Vt.focus();case"italic":return Vt.replaceSelection("*"+$r+"*"),$r===""&&Vt.setCursor(Dr.line,Dr.ch+1),Vt.focus();case"code":return Vt.replaceSelection("`"+$r+"`"),$r===""&&Vt.setCursor(Dr.line,Dr.ch+1),Vt.focus();case"inline-latex":return(0,xn.Ye)($a)?void 0:(Sr("inline-latex"),Vt.focus());case"latex":return Vt.replaceSelection("```latex\n"+$r+"\n```"),Vt.setCursor(Dr.line+1,$r.length+1),Vt.focus();case"line-break":return Vt.replaceSelection(`<br/>
|
|
|
`),Vt.focus();case"list-ul":return $r===""?Vt.replaceSelection("- "+$r):Vt.replaceSelection(qr.map(Aa=>Aa===""?"":`- ${Aa}`).join(`
|
|
|
`)),Vt.focus();case"list-ol":return $r===""?Vt.replaceSelection("1. "+$r):Vt.replaceSelection(qr.map((Aa,Wa)=>Aa===""?"":`${Wa+1}. ${Aa}`).join(`
|
|
|
`)),Vt.focus();case"add-null-ch":kt==null||kt();return;case"add-signal":return $r===""&&Vt.setCursor(Dr.line,Dr.ch),Vt.replaceSelection(Yt),Vt.focus();case"add-multiple":return $r===""&&Vt.setCursor(Dr.line,Dr.ch),Vt.replaceSelection(Ut),Vt.focus();case"inster-template-1":return $r===""&&Vt.setCursor(Dr.line,Dr.ch),Vt.replaceSelection(bn),Vt.focus();case"eraser":return Vt.setValue(""),Vt.focus();case"trigger-watch":return pr(!Xn),Vt.focus();case"trigger-full-screen":return Or(!wr),Vt.focus();case Ht:Sr(Ht);return;case cn:Sr(cn);return;case un:Sr(un);return;case yn:Sr(yn);return;case"maths-latex":if((0,xn.Ye)($a))return;Sr("maths-latex");return;case Dn:la.current="",sessionStorage.removeItem("file_id"),Sr(Dn);return;case Xt:Sr(Xt);return;default:throw new Error}},[Vt,Xn,wr]),gi=(0,y.useCallback)((Er,Dr)=>{var $r,qr,Aa,Wa,na,li;Er!=null&&Er.disabledClose||Sr("");const{src:di,alt:zi,id:Hi}=Er||{};switch(Lr){case Ht:const{title:zo,link:Go}=Er;return Vt.replaceSelection(`[${zo}](${Go})`),Vt.focus();case cn:const{language:Ta,content:fi}=Er;return Vt.replaceSelection(["```"+Ta,fi,"```"].join(`
|
|
|
`)),Vt.focus();case"maths-latex":for(var Ji=atob(Er),Yi=new Uint8Array(Ji.length),Eo=0;Eo<Ji.length;Eo++)Yi[Eo]=Ji.charCodeAt(Eo);var Co=new Blob([Yi],{type:"image/png"});return(0,De.I)(Co,qo=>{qo.id?Vt.replaceSelection(``):(qo==null?void 0:qo.status)===401&&(document.location.href="/user/login")}),Vt.focus();case"inline-latex":return(0,xn.Ye)($a)?void 0:(Vt.replaceSelection("`$$"+Er+"$$`"),Vt.focus());case Lt:return Hi?(Vt.getValue().indexOf(di)===-1?Vt.replaceSelection(`<center><img id="${Hi}" width="80%" src="${di}" class="draw-flowchart" alt="${zi||""}" /></center>`):document.getElementById(Hi).src=ve.Z.API_SERVER+di+"?t="+Date.now(),Vt.focus()):void 0;case un:case yn:const ni=Dr,xo=(Aa=(qr=($r=ni==null?void 0:ni.name)==null?void 0:$r.split("."))==null?void 0:qr.pop)==null?void 0:Aa.call(qr);return((Wa=ni==null?void 0:ni.type)==null?void 0:Wa.indexOf("image"))>-1||!(ni!=null&&ni.type)?ni!=null&&ni.align||ni!=null&&ni.width?Vt.replaceSelection(`<p style="text-align:${ni.align||"initial"}"><img width="${ni.width?ni.width+"%":"initial"}" src="${di}" alt="${zi||""}" /></p>`):Vt.replaceSelection(`<img width="100%" src="${di}" alt="${zi||""}" />`):((na=ni==null?void 0:ni.type)==null?void 0:na.indexOf("video"))>-1?Vt.replaceSelection(`<video width="100%" controls src="${di}"></video>`):((li=ni==null?void 0:ni.type)==null?void 0:li.indexOf("pdf"))>-1?Vt.replaceSelection(`<a href="${di}?type=${ni.type}&disposition=inline" target="_blank">${ni.name}</a>`):jn.includes(xo)?Vt.replaceSelection(`<a href="${di}?type=office&disposition=inline" target="_blank">${ni.name}</a>`):Vt.replaceSelection(`[${ni.name}](${di})`),Vt.focus();case Xt:const{row:mi,col:rl,align:zl}=Er;let Il=`
|
|
|
`;for(let qo=0;qo<mi;qo++){let Xo=[],no=[];for(let Pl=0;Pl<rl;Pl++)qo===1&&no.push(Nt[zl]),Xo.push(" ");qo===1&&(Il+=`| ${no.join(" | ")} |
|
|
|
`),Il+=`| ${Xo.join(rl===1?"":" | ")} |
|
|
|
`}return Vt.replaceSelection(Il+`
|
|
|
`),Vt.focus();default:throw new Error}},[Vt,Lr]),Ii=(0,y.useMemo)(()=>{switch(Lr){case Ht:return y.createElement(zt,{callback:gi,onCancel:Ri});case cn:return y.createElement(Ct.Z,{callback:gi,onCancel:Ri});case un:return y.createElement(De.Z,{callback:gi,onCancel:Ri});case Dn:return y.createElement(se,{editImgId:la.current,callback:gi,onCancel:Ri});case Xt:return y.createElement(Qe,{callback:gi,onCancel:Ri});case"maths-latex":return y.createElement(Je,{showSaveButton:!0,callback:gi});case"inline-latex":return y.createElement(tt.Z,{showSaveButton:!0,callback:gi});default:return null}},[Lr]);function Ri(){Sr("")}(0,y.useEffect)(()=>{if(Za.current){let Er=function(na){Aa=!0,Wa=na.pageY},Dr=function(){Aa=!1},$r=function(na){if(Aa){let li=na.pageY-Wa;li<0&&(li=0),li>300&&(li=300);let di=On+li+"px";ra(di)}},qr=Za.current,Aa=!1,Wa=0;return qr.addEventListener("mousedown",Er),document.addEventListener("mousemove",$r),document.addEventListener("mouseup",Dr),()=>{qr.removeEventListener("mousedown",Er),document.removeEventListener("mousemove",$r),document.removeEventListener("mouseup",Dr)}}},[Vt,Za]),(0,y.useEffect)(()=>{ra(On)},[On]);const Bi=Bn(pn),ei=Bn(oa),Ar={width:Bi,height:ei},tr=(0,y.useMemo)(()=>{if(Mr){let Er=new Date(Mr),Dr=Er.getHours(),$r=Er.getMinutes(),qr=Er.getSeconds();return Dr=Dr<10?"0"+Dr:Dr,$r=$r<10?"0"+$r:$r,qr=qr<10?"0"+qr:qr,`${Dr}:${$r}:${qr}`}return 0},[Mr]),yr=Er=>{const Dr=[];if(dr){let $r=-1;Er=Er.replace(/(@▁▁@|@▁@)/g,function(qr,Aa,Wa){Dr.push({multiLine:qr!==Yt})})}return Dr};function Br(){window.sessionStorage.removeItem(Hr),ba(!1),Vr(0)}function qn(){ba(!1),Vr(0),Vt.setValue(window.sessionStorage.getItem(Hr))}(0,y.useEffect)(()=>{on[Lr]&&Lr!==yn&&Lr!==Dn&&setTimeout(()=>{const Er=document.getElementsByClassName("markdown-popup-form")[0],Dr=window.innerWidth/2-Er.offsetWidth/2,$r=window.innerHeight/2-Er.offsetHeight/2;ga(Dr),Da($r)},0)},[Lr]);const Jr=Er=>{Er.preventDefault();const Dr=Er.clientX-Kr,$r=Er.clientY-Qa;document.body.onmousemove=qr=>{let Aa=qr.clientX-Dr,Wa=qr.clientY-$r;const na=document.getElementsByClassName("markdown-popup-form")[0],li=window.innerWidth-na.offsetWidth,di=window.innerHeight-na.offsetHeight;Aa=Math.max(0,Math.min(Aa,li)),Wa=Math.max(0,Math.min(Wa,di)),Yr(qr.clientX,qr.clientY,Dr,$r)&&(ga(Aa),Da(Wa))},document.body.onmouseup=function(){document.body.onmousemove=null}},Yr=(Er,Dr,$r,qr)=>{const Aa=document.body.clientHeight,Wa=document.body.clientWidth;return Er<20&&$r>Er||Er>Wa-20&&$r<Er||Dr<20&&qr>Dr||Dr>Aa-20&&qr<Dr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return y.createElement(y.Fragment,null,y.createElement("div",{className:"markdown-editor-wrapper",ref:Rr},y.createElement("div",{className:`markdown-editor-container ${ot} ${Xn?"on-preview":""} ${fr?"mini":""} ${wr?"full-screen":""}`,style:Ar},y.createElement(ut,{insertTemp:Cr,watch:Xn,fullScreen:wr,showNullButton:$n,showNullProgramButton:dr,onActionCallback:Xa,hidetoolBar:hr,extraUse:Mt}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:Ea,placeholder:mr})),Xn?y.createElement("div",{ref:Pa,className:"preview-container"},gr==="stex"&&y.createElement(ft,{value:Hn}),gr!=="stex"&&y.createElement(Te.Z,{edit:!0,disabledFill:ar,showProgramFill:dr,value:Hn,openEditor:Er=>{var Dr;la.current=Er,(Dr=Xr.current)==null||Dr.setHeight("100vh"),setTimeout(()=>{Sr("add-flowchart")},150)}})):null))),Zr?y.createElement("a",{ref:Za,className:"editor-resize"}):null,Lr===yn&&y.createElement(xt,{callback:gi,onCancel:Ri}),Lr===Dn&&y.createElement(se,{ref:Xr,editImgId:la.current,callback:gi,onCancel:Ri}),y.createElement(yt.Z,null,on[Lr]&&Lr!==yn&&Lr!==Dn?y.createElement(mt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Kr,top:Qa},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:Jr},on[Lr]),open:!0,onCancel:Ri,footer:null,destroyOnClose:!0,width:Lr===Dn?"1200px":null,height:Lr===Dn?"80vh":null,className:"markdown-popup-form"},Ii):null))}},53332:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return et},I:function(){return ut}});var y=E(28284),ge=E(6767),me=E(37568),we=E(44104),Se=E(4875),Ee=E(47889),Ce=E(7939),ke=E(23216),Fe=E(59301),de=E(59301),We=Object.defineProperty,Te=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Oe=(yt,st,$e)=>st in yt?We(yt,st,{enumerable:!0,configurable:!0,writable:!0,value:$e}):yt[st]=$e,Ie=(yt,st)=>{for(var $e in st||(st={}))Ne.call(st,$e)&&Oe(yt,$e,st[$e]);if(Ge)for(var $e of Ge(st))Be.call(st,$e)&&Oe(yt,$e,st[$e]);return yt},nt=(yt,st)=>Te(yt,ft(st));const{useForm:St}=y.default,Ae={width:280,marginRight:10},_e={labelCol:{span:5},wrapperCol:{span:19}};var et=({callback:yt,onCancel:st})=>{const[$e]=St();let pe=(0,Fe.useRef)();function Le(Et){pe.current.width=$e.getFieldValue("width"),pe.current.align=$e.getFieldValue("align"),yt(Et,pe.current)}function xe(Et,Ye){if(Et.status===-1){ge.ZP.error(Et.message);return}$e.setFieldsValue({src:`/api/attachments/${Et.id}`,type:Ye.type})}function ce(Et){let Ye=Et.target.files[0];pe.current=Ye,ut(Ye,xe)}return de.createElement(y.default,nt(Ie({form:$e},_e),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),de.createElement(y.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},de.createElement("div",{className:"flex-container"},de.createElement(y.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},de.createElement(me.default,{style:Ae})),de.createElement(qe,{onFileChange:ce}))),de.createElement(y.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},de.createElement(me.default,{style:{width:264}})),de.createElement(y.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},de.createElement(we.Z,null,de.createElement(y.default.Item,{name:"width",style:{margin:0}},de.createElement(Se.Z,{style:{width:264}})),de.createElement("span",{className:"ml8"},"%"))),de.createElement(y.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},de.createElement(Ee.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"}]})),de.createElement("aside",null,de.createElement(y.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},de.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(Ce.ZP,{type:"default",onClick:st},"\u53D6\u6D88"))))};function qe({onFileChange:yt}){return de.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",de.createElement("input",{type:"file",onChange:yt}))}function ut(yt,st){if(!yt)throw new String("\u6CA1\u6709\u6587\u4EF6");let $e=new FormData;$e.append("editormd-image-file",yt),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var pe=new window.XMLHttpRequest;pe.withCredentials=!0,pe.addEventListener("load",function(Le){st(JSON.parse(Le.target.responseText),yt)},!1),pe.addEventListener("error",function(Le){console.error(Le)},!1),pe.open("POST",`${ke.KI}/api/attachments.json`),pe.send($e)}},88487:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return me}});var y=E(59301),ge=E(4676);class me extends y.Component{constructor(Se){super(Se);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,ge.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Rn,qt,E){"use strict";E.d(qt,{SV:function(){return xt},ZP:function(){return bt}});var y=E(59301),ge=E(76374);const me={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},we={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Se={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},Ee={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Ce={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var ke=E(53184),Fe=E.n(ke),de=(pt,ln,Wt)=>new Promise((ue,ae)=>{var re=ie=>{try{ve(Wt.next(ie))}catch(fe){ae(fe)}},se=ie=>{try{ve(Wt.throw(ie))}catch(fe){ae(fe)}},ve=ie=>ie.done?ue(ie.value):Promise.resolve(ie.value).then(re,se);ve((Wt=Wt.apply(pt,ln)).next())});const We={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Te=(pt,ln,Wt,ue)=>{const ae=ln.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Wt.lineNumber,endColumn:Wt.column});return Array.from(new Set(ae.match(/\b\w{2,}\b/g)||[])).map(se=>({label:se,kind:pt.languages.CompletionItemKind.Text,insertText:se,range:ue}))},ft=(pt,ln,Wt,ue)=>{pt.languages.registerCompletionItemProvider(ln,{provideCompletionItems(ae,re){const se=ae.getWordUntilPosition(re),ve={startLineNumber:re.lineNumber,endLineNumber:re.lineNumber,startColumn:se.startColumn,endColumn:se.endColumn},ie=ae.getLineContent(re.lineNumber).substring(se.startColumn-2,se.endColumn);return{suggestions:[...Te(pt,ae,re,ve),...Wt.map(Ve=>({label:Ve,kind:pt.languages.CompletionItemKind.Keyword,documentation:Ve,insertText:Ve,insertTextRules:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve})),...ue.map(Ve=>({label:Ve.label,kind:pt.languages.CompletionItemKind.Snippet,documentation:Ve.content,insertText:ie.startsWith("#")?Ve.content.replace(/#/,""):Ve.content,insertTextRules:pt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ve}))]}}})};var Ge=pt=>{We.languages.forEach(ln=>{pt.languages.registerDocumentFormattingEditProvider(ln,{provideDocumentFormattingEdits(Wt){return de(this,null,function*(){const ue=Fe()(Wt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Wt.getFullModelRange(),text:ue}]})}})}),ft(pt,"java",we.keywords,we.quickKey),ft(pt,"cpp",Se.keywords,Se.quickKey),ft(pt,"c",me.keywords,[]),ft(pt,"python",Ee.keywords,Ee.quickKey),ft(pt,"scala",Ce.keywords,Ce.quickKey)};const Ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Be=Object.defineProperty,Oe=(pt,ln,Wt)=>ln in pt?Be(pt,ln,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):pt[ln]=Wt,Ie=(pt,ln,Wt)=>Oe(pt,typeof ln!="symbol"?ln+"":ln,Wt);const nt=class Uc{constructor(ln,Wt,ue){this.placeholder=ln,this.editor=Wt,this.monaco=ue,Wt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Uc.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ie(nt,"ID","editor.widget.placeholderHint");var Ae=nt,_e=E(96236),et=E(6767),qe=E(25399),ut=E(78267),yt=E(33156),st=E(56102),$e=Object.defineProperty,pe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Ye=(pt,ln,Wt)=>ln in pt?$e(pt,ln,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):pt[ln]=Wt,je=(pt,ln)=>{for(var Wt in ln||(ln={}))ce.call(ln,Wt)&&Ye(pt,Wt,ln[Wt]);if(xe)for(var Wt of xe(ln))Et.call(ln,Wt)&&Ye(pt,Wt,ln[Wt]);return pt},it=(pt,ln)=>pe(pt,Le(ln)),Pe=(pt,ln)=>{var Wt={};for(var ue in pt)ce.call(pt,ue)&&ln.indexOf(ue)<0&&(Wt[ue]=pt[ue]);if(pt!=null&&xe)for(var ue of xe(pt))ln.indexOf(ue)<0&&Et.call(pt,ue)&&(Wt[ue]=pt[ue]);return Wt},ye=(pt,ln,Wt)=>new Promise((ue,ae)=>{var re=ie=>{try{ve(Wt.next(ie))}catch(fe){ae(fe)}},se=ie=>{try{ve(Wt.throw(ie))}catch(fe){ae(fe)}},ve=ie=>ie.done?ue(ie.value):Promise.resolve(ie.value).then(re,se);ve((Wt=Wt.apply(pt,ln)).next())});function vt(pt){return/^\d+$/.test(pt)?`${pt}px`:pt}function zt(){}let Ct=!1;const De={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function mt(pt=[]){let ln=pt;if(Array.isArray(pt)){for(let Wt=0;Wt<pt.length;Wt++){let ue=De[pt[Wt]];if(ue)return ue}return ln[0]}return De[ln]||ln}let dt=null;const Gt=()=>ye(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(pt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",pt)}});var bt=pt=>{var ln=pt,{width:Wt="100%",height:ue="100%",value:ae,language:re="javascript",style:se={},options:ve={},overrideServices:ie={},theme:fe="vs-dark",onEditBlur:Ve,isCopy:It=!1,onSave:Qe,autoHeight:Ke=!1,forbidCopy:gt=!1,forbidCopyTips:wt,onChange:Tt=zt,editorDidMount:Je=zt,onFocus:tt=zt,onBreakPoint:Ht=zt,breakPointValue:un=[],filename:Dn="educoder.txt",errorLine:yn,errorContent:Lt="",highlightLine:cn,openBreakPoint:Xt=!1,placeholder:Xe="",showMiniMap:Nt=!0}=ln,dn=Pe(ln,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const xn=(0,y.useRef)(),at=(0,y.useRef)({}),Rt=(0,y.useRef)(),en=(0,y.useRef)(),Pt=(0,y.useRef)([]),Ut=(0,y.useRef)(!1),Yt=(0,y.useRef)(),bn=(0,y.useRef)(),jn=(0,y.useRef)(!1),[Bn,Zn]=(0,y.useState)(!1);function Ot(){let Pn;return xn.current&&(Pn=new ge.Z($n=>{for(let dr of $n)(dr.target.offsetHeight>0||dr.target.offsetWidth>0)&&at.current.instance.layout()}),Pn.observe(xn.current)),Pn}function jt(){et.ZP.warning({content:decodeURIComponent(wt||Ne),key:"monaco-editor-tip"})}const on=()=>{let Pn=at.current.instance;if(ae!=null&&Pn&&Bn){const $n=Pn.getModel();$n&&ae!==$n.getValue()&&(Ct=!0,$n.setValue(ae),Pn.layout(),Ct=!1)}};(0,y.useEffect)(()=>{const Pn=yt.Z.subscribe("formatDocument",$n=>{var dr;let hr=at.current.instance;(dr=hr==null?void 0:hr.getAction)==null||dr.call(hr,"editor.action.formatDocument").run()});return window.updateMonacoValue=$n=>{Tt($n)},Pn},[]),(0,y.useEffect)(()=>{var Pn;let $n=at.current.instance;en.current&&clearTimeout(en.current),en.current=setTimeout(()=>{on()},500),ae&&(ae!=null&&ae.length)&&((Pn=$n==null?void 0:$n.updateOptions)==null||Pn.call($n,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ae.split(/\r\n|\r|\n/g).length))+3,5)}))},[ae,Bn,at.current]),(0,y.useEffect)(()=>{if(yn&&at.current&&at.current.instance){let $n=at.current.instance;$n.changeViewZones(function(dr){var hr=document.createElement("div");hr.style.padding="10px 20px",hr.style.width="calc(100% - 20px)",hr.className="my-error-line-wrp",hr.innerHTML=Lt,dr.addZone({afterLineNumber:yn||11,heightInLines:3,domNode:hr})});var Pn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};$n.addOverlayWidget(Pn),$n.revealPositionInCenter({lineNumber:20,column:1})}},[yn,at.current,Bn]);const En=(Pn="",$n)=>{if(!Pn||Pn.trim()==="")return!0;const hr=at.current.instance.getModel().getLineTokens($n);let _t=!1;for(let Qt=0;Qt<2;Qt++)hr.getStandardTokenType(Qt)===1&&(_t=!0);return _t};(0,y.useEffect)(()=>{var Pn;const $n=(Pn=at.current)==null?void 0:Pn.instance;if($n&&Bn&>){const dr=$n.onDidBlurEditorWidget(()=>{jn.current=!1}),hr=$n.onDidFocusEditorText(()=>{jn.current=!0});return()=>{dr.dispose(),hr.dispose()}}},[at.current,Bn,gt]),(0,y.useEffect)(()=>{var Pn;if((Pn=at.current)!=null&&Pn.instance&&Bn&&Xt){let $n=at.current.instance,dr=$n.getModel();if(!dr)return;(()=>{var Mt;let kt=[],Vt=[];const Nn=dr.getAllDecorations();for(let Un of Nn)Un.options.className==="highlighted-line"&&(kt.push((Mt=Un==null?void 0:Un.range)==null?void 0:Mt.startLineNumber),Vt.push(Un==null?void 0:Un.id));if(cn===kt[0])return;dr.deltaDecorations(Vt,[]);const Hn=dr.getLineCount();cn&&cn<=Hn&&($n.deltaDecorations([],[{range:new dt.Range(cn,1,cn,dr.getLineMaxColumn(cn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),$n.revealLineInCenter(cn))})();const _t=(Mt=!1)=>{var kt;let Vt=[],Nn=[];const Hn=dr.getAllDecorations();for(let Un of Hn)Un.options.linesDecorationsClassName==="breakpoints-select"&&(Vt.push((kt=Un==null?void 0:Un.range)==null?void 0:kt.startLineNumber),Nn.push(Un==null?void 0:Un.id));if(Mt)return{lines:Vt,ids:Nn};Ht(Vt)},Qt=Mt=>ye(void 0,null,function*(){let kt={range:new dt.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield dr.deltaDecorations([],[kt]),_t()}),ct=Mt=>ye(void 0,null,function*(){let kt=[];const Vt=$n.getLineDecorations(Mt);for(let Nn of Vt)Nn.options.linesDecorationsClassName==="breakpoints-select"&&kt.push(Nn.id);yield dr.deltaDecorations(kt,[]),_t()}),Zt=Mt=>{let kt=$n.getLineDecorations(Mt);for(let Vt of kt)if(Vt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ut.isEqual)(un,_t(!0).lines)){dr.deltaDecorations(_t(!0).ids,[]);const Mt=un.map(kt=>({range:new dt.Range(kt,1,kt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));dr.deltaDecorations([],Mt)}const ot=$n.onDidChangeModelContent(Mt=>{let kt=$n.getPosition();if(kt){let Vt=kt.lineNumber;clearTimeout(bn.current),bn.current=setTimeout(()=>{En(dr.getLineContent(Vt),Vt)?ct(Vt):Zt(Vt)?(ct(Vt),Qt(Vt)):_t()},100)}}),Kt=$n.onMouseDown(Mt=>{var kt,Vt,Nn;if(Mt.target.detail&&((Nn=(Vt=(kt=Mt.target)==null?void 0:kt.element)==null?void 0:Vt.className)!=null&&Nn.includes("line-numbers"))){let Hn=Mt.target.position.lineNumber;if(En(dr.getLineContent(Hn),Hn))return;Zt(Hn)?ct(Hn):Qt(Hn)}}),Ft=Mt=>{let kt={range:new dt.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Pt.current=$n.deltaDecorations(Pt.current,[kt])},ar=()=>{Pt.current=$n.deltaDecorations(Pt.current,[])},mr=$n.onMouseMove(Mt=>{var kt,Vt,Nn;if(ar(),Mt.target.detail&&((Nn=(Vt=(kt=Mt.target)==null?void 0:kt.element)==null?void 0:Vt.className)!=null&&Nn.includes("line-numbers"))){let Hn=Mt.target.position.lineNumber;if(En(dr.getLineContent(Hn),Hn))return;Ft(Hn)}}),At=$n.onMouseLeave(()=>{ar()});return()=>{ot.dispose(),Kt.dispose(),mr.dispose(),At.dispose()}}},[at.current,Bn,un,cn,Xt,re]),(0,y.useEffect)(()=>{var Pn;(Pn=at.current)!=null&&Pn.instance&&Xt&&at.current.instance.setPosition({lineNumber:0,column:0})},[cn]);function tn(){let Pn=at.current.instance;if(Pn){const $n=Pn.getSelection(),dr=at.current.pastePos||{},hr=new dt.Range(dr.startLineNumber||$n.endLineNumber,dr.startColumn||$n.endColumn,dr.endLineNumber||$n.endLineNumber,dr.endColumn||$n.endColumn);setTimeout(()=>{Pn.executeEdits("",[{range:hr,text:""}])},300)}}function In(Pn){(window.navigator.platform.match("Mac")?Pn.metaKey:Pn.ctrlKey)&&Pn.keyCode==83&&(Pn.preventDefault(),Qe())}const pn=()=>{if(Ke&&at.current.instance){const Pn=at.current.instance.getContentHeight();Hr(Pn<ue?ue:Pn)}else Hr(ue)};function On(Pn){var $n=document.createEvent("MouseEvents");$n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Pn.dispatchEvent($n)}const fr=Pn=>{if(!jn.current)return;const{keyCode:$n,ctrlKey:dr,metaKey:hr,target:_t,type:Qt}=Pn;return(Qt==="paste"||($n===67||$n===86)&&(hr||dr))&&_t.nodeName==="TEXTAREA"&&(jt(),Pn.preventDefault()),!1};function Qn(Pn,$n){var dr=window.URL||window.webkitURL||window,hr=new Blob([$n]),_t=document.createElementNS("http://www.w3.org/1999/xhtml","a");_t.href=dr.createObjectURL(hr),_t.download=Pn,On(_t)}(0,y.useEffect)(()=>{pn()},[pn]),(0,y.useEffect)(()=>{xn.current&&!Bn&&Promise.all([E.e(8909),E.e(5977)]).then(E.bind(E,71448)).then(Pn=>{try{dt=Pn,at.current.instance=dt.editor.create(xn.current,{value:ae,language:mt(re),theme:fe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Nt||!1}},ie);const $n=at.current.instance;let _t=[..._e.BH._menuItems].find(ot=>ot[0]._debugName=="EditorContext")[1],Qt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ct=(ot,Kt)=>{var Ft,ar;let mr=ot._first;do Kt.includes((ar=(Ft=mr.element)==null?void 0:Ft.command)==null?void 0:ar.id)&&ot._remove(mr);while(mr=mr.next)};if(Je($n,dt),setTimeout(()=>{pn(),at.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Qn(Dn||"educoder.txt",$n.getValue())}})},500),at.current.subscription=$n.onDidChangeModelContent(ot=>{Ut.current?clearTimeout(Yt.current):(pn(),Tt($n.getValue(),ot)),Yt.current=setTimeout(()=>{Ut.current=!1},500)}),window.Monaco||Ge(dt,mt(re)),gt&&(ct(_t,Qt),xn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",fr),window.removeEventListener("paste",fr),window.addEventListener("keydown",fr),window.addEventListener("paste",fr)),window.Monaco=dt,Ve&&$n.onDidBlurEditorWidget(()=>{Ve($n.getValue())}),tt&&$n.onDidFocusEditorText(()=>{gt&&Gt(),tt($n.getValue())}),gt){Gt();try{$n.onDidPaste(ot=>{const Kt=$n.getSelection(),Ft=at.current.pastePos||{},ar=new dt.Range(Ft.startLineNumber||Kt.endLineNumber,Ft.startColumn||Kt.endColumn,Ft.endLineNumber||Kt.endLineNumber,Ft.endColumn||Kt.endColumn);$n.executeEdits("",[{range:ot.range,text:""}])})}catch(ot){}}let Zt=Ot();return Xe&&typeof Xe=="string"&&new Ae(Xe,$n,dt),Zn(!0),()=>{const ot=at.current.instance;ot.dispose();const Kt=ot.getModel();Kt&&Kt.dispose(),at.current.subscription&&at.current.subscription.dispose(),Zt.unobserve(xn.current)}}catch($n){}})},[]),(0,y.useEffect)(()=>{if(at.current.instance&&Bn)return document.addEventListener("keydown",In,!1),()=>{document.removeEventListener("keydown",In)}},[Qe,Bn]),(0,y.useEffect)(()=>{let Pn=at.current.instance;if(Pn&&Bn){let $n=mt(re);dt.editor.setModelLanguage(Pn.getModel(),$n)}},[re,Bn]),(0,y.useEffect)(()=>{at.current.instance&&Bn&&dt.editor.setTheme(fe)},[fe,Bn]),(0,y.useEffect)(()=>{let Pn=at.current.instance;Rt.current=ve,Pn&&Bn&&(Pn.updateOptions(je({},ve)),setTimeout(()=>{Pn.getModel().updateOptions(je({},ve))},200))},[JSON.stringify(ve),Bn]),(0,y.useEffect)(()=>{let Pn=at.current.instance;Pn&&Bn&&Pn.layout()},[Wt,ue,Bn]);const[cr,Cr]=(0,y.useState)(vt(Wt)),[gr,Hr]=(0,y.useState)(vt(ue)),Zr=it(je({},se),{width:cr,height:gr,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:xn,style:Zr,onFocus:()=>{gt&&Gt()}},It&&y.createElement(st.CopyToClipboard,{text:ae,onCopy:()=>et.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement(qe.Z,{title:"\u590D\u5236\u4EE3\u7801"},y.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},y.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function xt({width:pt="100%",height:ln="100%",original:Wt,modified:ue,language:ae,options:re={}}){const se=(0,y.useRef)(),[ve,ie]=(0,y.useState)(null);function fe(Ke){let gt;return se.current&&(gt=new ge.Z(wt=>{for(let Tt of wt)(Tt.target.offsetHeight>0||Tt.target.offsetWidth>0)&&Ke.layout()}),gt.observe(se.current)),gt}(0,y.useEffect)(()=>(se.current&&Promise.all([E.e(8909),E.e(9404)]).then(E.bind(E,2550)).then(Ke=>{dt=Ke;const gt=dt.editor.createDiffEditor(se.current,it(je({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},re),{wordWrap:!0}));ie(gt);let wt=fe(gt);return()=>{gt.dispose();const Tt=gt.getModel();Tt&&Tt.dispose(),wt.unobserve(se.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{ve&&ve.setModel({original:dt.editor.createModel(Wt,ae),modified:dt.editor.createModel(ue,ae)})},[Wt,ue,ae,ve]);const Ve=vt(pt),It=vt(ln),Qe={width:Ve,height:It};return y.createElement("div",{className:"my-diff-editor",ref:se,style:Qe})}},54077:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return We}});var y={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},ge=E(29787),me=E(25399),we=E(89787),Se=E(92310),Ee=E.n(Se),Ce=E(76406),ke=E(90736),Fe=E(59301),We=({className:Te,dataSource:ft=[],col:Ge=4,right:Ne,bottom:Be=23,precision:Oe=0,wrapWidth:Ie=1200,trackEventItems:nt,loading:St,onRemove:Ae=()=>{},isCurrent:_e=!0,showProgress:et=!1,showAlias:qe=!1,category:ut="notDisplay",hiddenClick:yt=()=>{}})=>{const st=Math.floor((Ie-(Ge-1)*Ne)/Ge),$e=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Fe.createElement(ge.Z,{spinning:St},Fe.createElement("div",{className:Ee()(y.list,Te)},!!(ft!=null&&ft.length)&&(ft==null?void 0:ft.map((pe,Le)=>{var xe,ce,Et,Ye,je,it,Pe;const{name:ye,id:vt,identifier:zt,featured:Ct,school_name:De,image_url:mt,excellent:dt,is_plan:Gt}=pe;return Fe.createElement("div",{key:vt,className:_e&&et?y.wrapisCurrent:y.wrap,style:{width:st,marginRight:(1+Le)%Ge===0?0:Ne+Oe,marginBottom:Be}},Fe.createElement("a",{className:y.li,onClick:bt=>{bt.preventDefault(),bt.stopPropagation(),nt&&(0,Ce.L9)([nt]),(0,Ce.xg)(`/paths/${zt}`)}},Fe.createElement("div",{className:y.img},Fe.createElement("img",{className:y.cover,src:`${mt}`}),(xe=pe==null?void 0:pe.subject_tags)==null?void 0:xe.map((bt,xt)=>{var pt,ln;if(xt===0){const ue=(pt=$e.find(ae=>ae.name==bt))==null?void 0:pt.swclass;return Fe.createElement("span",{className:`sprite ${ue} ${y.sign}`,style:{left:"-4px"}})}const Wt=(ln=$e.find(ue=>ue.name==bt))==null?void 0:ln.ptclass;return Fe.createElement("span",{className:`sprite ${Wt} ${y.sign}`,style:{left:`${48+52*(xt-1)+2*xt}px`}})}),Fe.createElement("div",{className:y.tagsDom},Fe.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(pe==null?void 0:pe.excellent)&&Fe.createElement("div",{className:y.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ce=pe==null?void 0:pe.custom_tags)==null?void 0:ce.length)>0&&(pe==null?void 0:pe.custom_tags.map((bt,xt)=>{var pt;return Fe.createElement(me.Z,{title:bt==null?void 0:bt.tag_name,key:xt},Fe.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((pt=pe==null?void 0:pe.custom_tags)==null?void 0:pt.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Fe.createElement("span",{className:"multi-llipsis1e"},bt==null?void 0:bt.tag_name)))})))),ut=="hide"&&(pe==null?void 0:pe.studying)&&_e&&Fe.createElement("div",{className:`${y.movebq} user-path-items`,onClick:bt=>{bt.stopPropagation(),Ae(pe)}},Fe.createElement("i",{className:"iconfont icon-yichu1 font12"}),Fe.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(ut)&&_e&&Fe.createElement("div",{className:`${y.hiddenbq} user-path-items`,onClick:bt=>{bt.stopPropagation(),yt(pe)}},Fe.createElement("i",{className:`iconfont ${ut=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Fe.createElement("span",null,ut=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Fe.createElement("div",{className:y.name},Fe.createElement(me.Z,{title:qe&&(pe!=null&&pe.excellent_alias_name)?Fe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ye}`,Fe.createElement("br",null),Fe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${pe==null?void 0:pe.excellent_alias_name}`)):ye},Fe.createElement("span",{className:y.e},qe&&(pe==null?void 0:pe.excellent_alias_name)||ye))),_e&&et&&((Et=pe==null?void 0:pe.progress)==null?void 0:Et.all_score)!=0&&Fe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Fe.createElement(we.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ye=pe==null?void 0:pe.progress)==null?void 0:Ye.my_score)/((je=pe==null?void 0:pe.progress)==null?void 0:je.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(it=pe==null?void 0:pe.progress)==null?void 0:it.my_score,"/",(Pe=pe==null?void 0:pe.progress)==null?void 0:Pe.all_score),(!_e||!et)&&Fe.createElement(me.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${De}`},Fe.createElement("div",{className:y.unit},Fe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),De)),(!_e||!et)&&Fe.createElement("div",{className:y.tags},Fe.createElement("div",null,Fe.createElement(me.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Fe.createElement("span",null,Fe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Fe.createElement("span",null,pe.stages_count))),Fe.createElement(me.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Fe.createElement("span",null,Fe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Fe.createElement("span",null,pe.members_count)))))))})),!ft.length&&Fe.createElement(ke.Z,null)))}},70467:function(Rn,qt,E){"use strict";E.d(qt,{jL:function(){return we},w9:function(){return ye},QD:function(){return un},cQ:function(){return Le.Z},op:function(){return gt},O5:function(){return Ot},_b:function(){return Xe},t7:function(){return Oe},Gi:function(){return dt},YG:function(){return De},qp:function(){return de},vr:function(){return Lt},qE:function(){return Je},Je:function(){return St},wb:function(){return pe},cq:function(){return Wt},tp:function(){return ft}});var y=E(59301),ge={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"},we=({dataSource:jt=[],img:on,imgWidth:En=346,title:tn,sunTitle:In,bannerExtraContent:pn})=>y.createElement("div",{className:ge.banner},y.createElement("div",{className:ge.content},y.createElement("aside",null,y.createElement("p",null,y.createElement("b",null,tn),y.createElement("span",null,In)),jt.length>0&&y.createElement("div",{className:ge.btns},jt.map((On,fr)=>y.createElement("div",{key:fr,onClick:On.click},On.name,On.sign?y.createElement("span",{className:"sprite sprite-33"}):null))),pn),on&&y.createElement("img",{style:{marginTop:33,marginRight:38},src:on,width:En}))),Se={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"},Ee=E(92310),Ce=E.n(Ee),ke=E(78267),de=({dataSource:jt=[],value:on,onChange:En,onTitleChange:tn,className:In,title:pn,titleWidth:On=41,style:fr={},fontColor:Qn="#6A7283",showCount:cr})=>{const[Cr,gr]=(0,y.useState)(1),[Hr,Zr]=(0,y.useState)(!1),Pn=(0,y.useRef)(null),$n=(0,y.useRef)(null);return(0,y.useEffect)(()=>{var dr;jt.length!==0&&(((dr=Pn==null?void 0:Pn.current)==null?void 0:dr.clientHeight)>97?gr(1):gr(0)),jt.length===0&&gr(0),Zr(!1)},[jt]),y.createElement("div",{className:Ce()(Se.row,In,"fadeIn","animated"),style:fr},y.createElement("div",{onClick:(0,ke.throttle)(()=>tn==null?void 0:tn(),2e3),style:{width:On,marginTop:Hr?12:4},className:`${Se.title} ${tn?"current":""}`},pn),y.createElement("div",{className:Hr?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},y.createElement("div",{className:Se.bar,ref:$n,style:Cr>0?{height:Cr===1?97:"auto",overflow:Cr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},y.createElement("div",{className:Se.tag,ref:Pn},jt==null?void 0:jt.map(dr=>y.createElement("span",{onClick:()=>En(dr.id),key:dr.id,style:{color:Qn},className:on===dr.id?Se.active:""},y.createElement("span",{title:dr.name,className:Se.name},dr.name),!!cr&&y.createElement("span",{className:Se.num},dr.count))))),!!Cr&&y.createElement(y.Fragment,null,Cr===1?y.createElement("div",{onClick:()=>{var dr;gr(2),((dr=Pn==null?void 0:Pn.current)==null?void 0:dr.clientHeight)>245?Zr(!0):Zr(!1)},className:Se.action},"\u5C55\u5F00",y.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):y.createElement("div",{onClick:()=>{$n.current.scrollTop=0,gr(1),Zr(!1)},className:Se.action},"\u6536\u8D77",y.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},We={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"},ft=({dataSource:jt=[],value:on,onChange:En,className:tn,style:In={}})=>y.createElement("div",{style:In,className:Ce()(We.tabs,tn)},jt.map(pn=>y.createElement("span",{onClick:()=>En(pn.id),className:on===pn.id?We.active:"",key:pn.id},pn.name))),Ge={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"},Ne=E(37568),Oe=({dataSource:jt=[],value:on="",onChange:En,onInputChange:tn=()=>{},className:In,style:pn={},placeholder:On,allowClear:fr=!1})=>{var Qn;const[cr,Cr]=(0,y.useState)(""),[gr,Hr]=(0,y.useState)("");(0,y.useEffect)(()=>{var $n;let dr=on;($n=JSON.stringify(on))!=null&&$n.includes("{")&&(Cr(on.id),dr=on.value||"");try{Hr(decodeURIComponent(dr||""))}catch(hr){Hr(decodeURIComponent(dr||""))}},[on]);const Zr=()=>{En(encodeURIComponent(gr),cr||null)},Pn=$n=>{$n!==cr&&(Cr($n),En(encodeURIComponent(gr),$n))};return y.createElement("div",{className:Ce()(Ge.input,In),style:pn},!!jt.length&&y.createElement("div",{className:Ge.dropdown},y.createElement("div",{className:Ge.text},(Qn=jt.find($n=>$n.id===cr))==null?void 0:Qn.name,y.createElement("i",{className:"iconfont icon-zhankai4"}),y.createElement("b",{className:Ge.b1}),y.createElement("b",{className:Ge.b2})),y.createElement("div",{className:Ge.menu},jt.map(($n,dr)=>y.createElement("div",{key:dr,onClick:()=>Pn($n.id)},$n.name)))),y.createElement(Ne.default,{onPressEnter:Zr,value:gr,onChange:$n=>{Hr($n.target.value),tn(encodeURIComponent($n.target.value),cr||null)},placeholder:On,variant:"borderless",allowClear:fr,onClear:()=>En("",cr||null)}),y.createElement("i",{onClick:Zr,className:"iconfont icon-sousuo9 font14 current"}))},Ie={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"},St=({value:jt,onChange:on,className:En,total:tn,pageSize:In,style:pn={}})=>{const On=jt<2,fr=jt>=Math.ceil(tn/In);return tn<=In?y.createElement(y.Fragment,null):y.createElement("div",{className:Ce()(Ie.quickPager,En),style:pn},y.createElement("div",{onClick:()=>{On||on(jt-1,"prev")},className:On?Ie.disabled:""},"\u4E0A\u4E00\u9875"),y.createElement("div",{onClick:()=>{fr||on(jt+1,"next")},className:fr?Ie.disabled:""},"\u4E0B\u4E00\u9875"))},Ae={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"},_e=E(29787),et=E(25399),qe=E(63139),ut=E(14185),yt=E(76406),st=E(90736),pe=({className:jt,dataSource:on=[],col:En=4,right:tn,bottom:In=23,precision:pn=0,wrapWidth:On=1200,trackEventItems:fr,loading:Qn})=>{const cr=Math.floor((On-(En-1)*tn)/En);return y.createElement(_e.Z,{spinning:Qn},y.createElement("div",{className:Ce()(Ae.list,jt)},!!on.length&&on.map((Cr,gr)=>{const{name:Hr,id:Zr,identifier:Pn,power:$n,cover_image_id:dr,pic:hr}=Cr;return y.createElement("div",{className:Ae.wrap,key:Zr,style:{width:cr,marginRight:(1+gr)%En===0?0:tn+pn,marginBottom:In}},y.createElement("a",{target:"_blank",href:`/shixuns/${Pn}/challenges`,className:Ae.li,onClick:_t=>{_t.preventDefault(),fr&&(0,yt.L9)([fr]),$n&&(0,yt.xg)(`/shixuns/${Pn}/challenges`)}},y.createElement("div",{className:Ae.img},y.createElement("img",{className:Ae.cover,src:`${hr}`}),Cr.is_jupyter&&y.createElement("span",{className:`sprite sprite-43 ${Ae.sign}`}),Cr.is_jupyter_lab&&y.createElement("span",{className:`sprite sprite-42 ${Ae.sign}`}),Cr.is_unity_3d&&y.createElement("span",{className:`sprite sprite-44 ${Ae.sign}`})),y.createElement("div",{className:Ae.name},y.createElement(et.Z,{title:Hr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},y.createElement("span",{className:Ae.e},Hr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),y.createElement("div",{className:Ae.tags},y.createElement(et.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),y.createElement("span",null,Cr.challenges_count))),!!Cr.myshixuns_count&&y.createElement(et.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),y.createElement("span",null,Cr.myshixuns_count))),y.createElement(et.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},y.createElement("span",null,y.createElement("span",null,Cr.level))),y.createElement("div",{className:Ae.rate},y.createElement(qe.Z,{allowHalf:!0,disabled:!0,defaultValue:Cr.score_info}),y.createElement("span",null,"\xA0",Cr.score_info?`${Cr.score_info}\u5206`:"5\u5206")))),!$n&&y.createElement("div",{className:Ae.lockWrap},y.createElement("img",{src:`${ut.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),y.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!on.length&&y.createElement(st.Z,null)))},Le=E(54077),xe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ce=E(62957),Et=E(96599),Ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",je=E(59301),it=(jt,on,En)=>new Promise((tn,In)=>{var pn=Qn=>{try{fr(En.next(Qn))}catch(cr){In(cr)}},On=Qn=>{try{fr(En.throw(Qn))}catch(cr){In(cr)}},fr=Qn=>Qn.done?tn(Qn.value):Promise.resolve(Qn.value).then(pn,On);fr((En=En.apply(jt,on)).next())}),ye=({className:jt,dataSource:on=[],col:En=4,right:tn,bottom:In=23,precision:pn=0,wrapWidth:On=1200,trackEventItems:fr,loading:Qn,category:cr,hiddenClick:Cr,handleVery:gr=()=>!0,isCurrent:Hr})=>{const[Zr,Pn]=ce.default.useModal(),$n=Math.floor((On-(En-1)*tn)/En),dr=hr=>it(void 0,null,function*(){Zr.confirm({title:"\u7F6E\u9876",width:500,content:je.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",je.createElement("span",{className:"c-blue"},"\u201C",hr.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return je.createElement(_e.Z,{spinning:Qn},Pn,je.createElement("div",{className:Ce()(xe.list,jt)},!!on.length&&on.map((hr,_t)=>{const{subject_identifier:Qt,id:ct,identifier:Zt,power:ot}=hr,Kt=hr.is_public!=0&&hr.is_public;return je.createElement("div",{className:xe.wrap,key:ct,style:{width:$n,marginRight:(1+_t)%En===0?0:tn+pn,marginBottom:In}},hr.homepage_show&&je.createElement("div",{className:xe.btnsTop},je.createElement(Et.default,{color:"red"},"\u7F6E\u9876")),je.createElement("a",{className:xe.li,onClick:Ft=>{Ft.preventDefault(),gr(hr==null?void 0:hr.first_category_url)&&(fr&&(0,yt.L9)([fr]),(0,yt.xg)(hr.first_category_url))}},je.createElement("div",{className:xe.top},je.createElement(et.Z,{title:hr.name},je.createElement("div",{className:xe.name},hr.name)),je.createElement("img",{className:xe.img,src:ut.Z.IMG_SERVER+"/images/"+hr.avatar_url}),je.createElement("div",{className:xe.text,title:hr.creator},hr.creator),Qt&&je.createElement("div",{className:xe.btns},je.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),je.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Kt&&je.createElement("div",{className:xe.sign},"\u516C\u5F00"),Hr&&je.createElement("div",{className:xe.hidden,onClick:Ft=>{Ft.stopPropagation(),Cr(hr)}},je.createElement("i",{className:`iconfont ${cr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),cr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),je.createElement("div",{className:xe.bottom},hr.visits>0&&je.createElement(et.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-liulanyan"}),je.createElement("span",null,hr.visits))),hr.course_members_count>0&&je.createElement(et.Z,{title:"\u6210\u5458",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-chengyuan"}),hr.course_members_count)),hr.tasks_count>0&&je.createElement(et.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-zuoye"}),hr.tasks_count)),hr.is_end?je.createElement("div",{style:{color:"#6B758B"}}):je.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!hr.is_accessible&&je.createElement("div",{className:xe.lockWrap},je.createElement("img",{src:`${ut.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),je.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!on.length&&je.createElement(st.Z,null)))},vt={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"},zt=E(44283),De=({dataSource:jt=[],value:on,onChange:En,className:tn,style:In={},tabBarExtraContent:pn})=>y.createElement("div",{className:Ce()(vt.tabs,tn),style:In},y.createElement("div",{className:vt.tabsWrap},jt.map((On,fr)=>!(On!=null&&On.hide)&&y.createElement("aside",{className:vt.tab,onClick:()=>{En(On.id),On.link&&zt.history.push(On.link)},key:fr},y.createElement("div",{className:on===On.id?vt.active:""},On.name),(On==null?void 0:On.resetCount)==null&&(On==null?void 0:On.total)!==void 0&&y.createElement("span",null,"\uFF08",On==null?void 0:On.total,"\uFF09"),(On==null?void 0:On.resetCount)!==void 0&&(On==null?void 0:On.total)!==void 0&&y.createElement(et.Z,{title:(On==null?void 0:On.tip)!=null?On==null?void 0:On.tip:""},y.createElement("span",{style:{color:"#9096A3"}},"\uFF08",y.createElement("span",{style:{color:"#000"}},On==null?void 0:On.resetCount),"/",y.createElement("span",null,On==null?void 0:On.total),"\uFF09"))))),y.createElement("div",{className:vt.tabBar},pn)),dt=({className:jt,style:on={},children:En})=>y.createElement("div",{className:Ce()(jt),style:on},En),Gt={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"},bt=E(75727),xt=E(93041);const pt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Wt=({sortValue:jt,dropValue:on,className:En,onSort:tn,onDrop:In,dataSource:pn=pt})=>{var On;return y.createElement("div",{className:Ce()(Gt.orderWrap,En)},y.createElement(bt.Z,{dropdownRender:()=>y.createElement(xt.default,null,pn.map((fr,Qn)=>y.createElement(xt.default.Item,{key:Qn,onClick:()=>In(fr.id)},fr.name)))},y.createElement("span",{className:Gt.orderTextWrap},(On=pn.find(fr=>on===fr.id))==null?void 0:On.name)),y.createElement("span",{className:Gt.orderIconWrap},y.createElement("span",{className:Gt.orderAsc},y.createElement("i",{className:jt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Gt.cursorPointer} ${Gt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Gt.cursorPointer}`,onClick:()=>tn(jt==="asc"?"desc":"asc")})),y.createElement("span",{className:Gt.orderDesc},y.createElement("i",{className:jt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Gt.cursorPointer} ${Gt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Gt.cursorPointer}`,onClick:()=>tn(jt==="asc"?"desc":"asc")}))))},ue={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"},ae=E(7939),re=Object.defineProperty,se=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,fe=(jt,on,En)=>on in jt?re(jt,on,{enumerable:!0,configurable:!0,writable:!0,value:En}):jt[on]=En,Ve=(jt,on)=>{for(var En in on||(on={}))ve.call(on,En)&&fe(jt,En,on[En]);if(se)for(var En of se(on))ie.call(on,En)&&fe(jt,En,on[En]);return jt},It=(jt,on)=>{var En={};for(var tn in jt)ve.call(jt,tn)&&on.indexOf(tn)<0&&(En[tn]=jt[tn]);if(jt!=null&&se)for(var tn of se(jt))on.indexOf(tn)<0&&ie.call(jt,tn)&&(En[tn]=jt[tn]);return En},Qe=(jt,on,En)=>new Promise((tn,In)=>{var pn=Qn=>{try{fr(En.next(Qn))}catch(cr){In(cr)}},On=Qn=>{try{fr(En.throw(Qn))}catch(cr){In(cr)}},fr=Qn=>Qn.done?tn(Qn.value):Promise.resolve(Qn.value).then(pn,On);fr((En=En.apply(jt,on)).next())}),gt=jt=>{var on=jt,{className:En,style:tn,children:In,loading:pn=!1,openLoading:On,onClick:fr=()=>{},size:Qn="middle",shape:cr="round"}=on,Cr=It(on,["className","style","children","loading","openLoading","onClick","size","shape"]);const[gr,Hr]=(0,y.useState)(!1);return y.createElement(ae.ZP,Ve({onClick:(0,ke.throttle)(Zr=>Qe(void 0,null,function*(){On&&Hr(!0);try{yield fr(Zr)}catch(Pn){console.log("error",Pn)}On&&Hr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ce()(ue.btn,ue[`${Qn}-${cr}`],En),style:tn,size:Qn,shape:cr,loading:gr||pn},Cr),In)},wt={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"},Je=({className:jt,style:on,children:En=null,onClick:tn,title:In})=>y.createElement("div",{className:Ce()(wt.head,jt),style:on},y.createElement("span",{className:"primary-hover",onClick:tn},y.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),y.createElement("b",{title:In},In),y.createElement("div",{className:wt.node},En)),tt={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"},un=({confirmShow:jt=!0,confirmTitle:on,confirmClick:En,cancelShow:tn=!0,cancelTitle:In,cancelClick:pn,className:On,style:fr,confirmLoading:Qn=!1})=>y.createElement("div",{className:Ce()(tt.btns,On),style:fr},jt&&y.createElement(ae.ZP,{loading:Qn,onClick:En,type:"primary",className:tt.confirm},on),tn&&y.createElement(ae.ZP,{onClick:pn,className:tt.cancel},In)),Dn={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"},Lt=({className:jt,style:on={},LeftContent:En,children:tn,RightContent:In})=>y.createElement("div",{className:Ce()(Dn.fixedBottom,jt),style:on},y.createElement("div",{className:Dn.wrap},y.createElement("div",{className:Dn.left},En),y.createElement("div",{className:Dn.center},tn),y.createElement("div",{className:Dn.right},In))),cn={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"},Xe=({className:jt,style:on={},dataSource:En=[]})=>y.createElement("div",{className:Ce()(cn.crumbs,jt),style:on},En.map((tn,In)=>In<En.length-1?y.createElement(y.Fragment,{key:In},tn.path||tn.onClick?y.createElement("span",{className:cn.hover,onClick:tn!=null&&tn.onClick?tn.onClick:()=>zt.history.push(tn.path)},tn.name):y.createElement("span",null,tn.name),y.createElement("span",null,"\xA0",">","\xA0")):y.createElement("span",{key:In,style:{color:"#5F6368"}},tn.name))),Nt=E(11938),dn=Object.defineProperty,xn=Object.defineProperties,at=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Ut=(jt,on,En)=>on in jt?dn(jt,on,{enumerable:!0,configurable:!0,writable:!0,value:En}):jt[on]=En,Yt=(jt,on)=>{for(var En in on||(on={}))en.call(on,En)&&Ut(jt,En,on[En]);if(Rt)for(var En of Rt(on))Pt.call(on,En)&&Ut(jt,En,on[En]);return jt},bn=(jt,on)=>xn(jt,at(on)),jn=(jt,on)=>{var En={};for(var tn in jt)en.call(jt,tn)&&on.indexOf(tn)<0&&(En[tn]=jt[tn]);if(jt!=null&&Rt)for(var tn of Rt(jt))on.indexOf(tn)<0&&Pt.call(jt,tn)&&(En[tn]=jt[tn]);return En};const{Countdown:Bn}=Nt.default;var Ot=jt=>{var on=jt,{onChange:En}=on,tn=jn(on,["onChange"]);const[In,pn]=(0,y.useState)(null);(0,y.useEffect)(()=>{typeof In=="number"&&In>=0&&En(In)},[In]);const On=fr=>{const Qn=Math.floor(fr/1e3);pn(Qn)};return y.createElement(Bn,bn(Yt({},tn),{onChange:On}))}},79006:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ge}});var y=E(59301);function ge(me,we){const Se=(0,y.useRef)();(0,y.useEffect)(()=>{Se.current=me}),(0,y.useEffect)(()=>{function Ee(){Se.current()}if(we!==null){let Ce=setInterval(Ee,we);return()=>clearInterval(Ce)}},[we])}},30935:function(Rn,qt,E){"use strict";E.d(qt,{i:function(){return Ae},q:function(){return St}});var y=E(59301),ge={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},me=E(92310),we=E.n(me),Se=E(25399),Ee=E(82326),Ce=E(7939),ke=E(49317),Fe=Object.defineProperty,de=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ne=(_e,et,qe)=>et in _e?Fe(_e,et,{enumerable:!0,configurable:!0,writable:!0,value:qe}):_e[et]=qe,Be=(_e,et)=>{for(var qe in et||(et={}))ft.call(et,qe)&&Ne(_e,qe,et[qe]);if(Te)for(var qe of Te(et))Ge.call(et,qe)&&Ne(_e,qe,et[qe]);return _e},Oe=(_e,et)=>de(_e,We(et)),Ie=(_e,et)=>{var qe={};for(var ut in _e)ft.call(_e,ut)&&et.indexOf(ut)<0&&(qe[ut]=_e[ut]);if(_e!=null&&Te)for(var ut of Te(_e))et.indexOf(ut)<0&&Ge.call(_e,ut)&&(qe[ut]=_e[ut]);return qe},nt=(_e,et,qe)=>new Promise((ut,yt)=>{var st=Le=>{try{pe(qe.next(Le))}catch(xe){yt(xe)}},$e=Le=>{try{pe(qe.throw(Le))}catch(xe){yt(xe)}},pe=Le=>Le.done?ut(Le.value):Promise.resolve(Le.value).then(st,$e);pe((qe=qe.apply(_e,et)).next())});const St=_e=>{var et=_e,{wrapClassName:qe,wrapStyle:ut={},showLinkButton:yt=!0,tooltipTitle:st="",loadGeneral:$e=!1,data:pe={}}=et,Le=Ie(et,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const xe="course_disciplines_list",[ce,Et]=(0,y.useState)(()=>{const vt=sessionStorage.getItem(xe);return vt?JSON.parse(vt):[]}),[Ye,je]=(0,y.useState)(!1),[it,Pe]=(0,y.useState)(!0);(0,y.useEffect)(()=>{ye()},[]);const ye=()=>nt(void 0,null,function*(){var vt,zt,Ct,De;je(!0);const mt=yield(0,ke.U2)("v2/course_disciplines.json",pe);if(mt.status===0){const dt=((zt=(vt=mt==null?void 0:mt.data)==null?void 0:vt.list)==null?void 0:zt.map(Gt=>({value:Gt.id,label:Gt.name})))||[];if(Et(dt),Pe(!1),sessionStorage.setItem(xe,JSON.stringify(dt)),it){const Gt=(De=(Ct=mt==null?void 0:mt.data)==null?void 0:Ct.list)==null?void 0:De.find(bt=>bt.is_default);$e&&Gt&&Le.onChange(Gt==null?void 0:Gt.id)}}je(!1)});return y.createElement("div",{className:we()(ge.singleSelect,qe),style:ut},y.createElement(Se.Z,{title:st},y.createElement(Ee.default,Be({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:Ye,options:ce,onDropdownVisibleChange:vt=>{vt&&ye()}},Le))),yt&&y.createElement(Ce.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},Ae=_e=>{var et=_e,{wrapClassName:qe,wrapStyle:ut={},showLinkButton:yt=!0,courseDisciplineId:st="",isPlusHeight:$e=!1,tooltipTitle:pe,allowAcceptEmpty:Le=!1,data:xe={}}=et,ce=Ie(et,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[Et,Ye]=(0,y.useState)([]),[je,it]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Pe()},[st]);const Pe=()=>nt(void 0,null,function*(){var ye,vt;if(!Le&&!st){Ye([]);return}it(!0);const zt=yield(0,ke.U2)(`v2/course_disciplines/${st||"all"}.json`,xe);if(zt.status===0){const Ct=((vt=(ye=zt==null?void 0:zt.data)==null?void 0:ye.tag_disciplines)==null?void 0:vt.map(De=>({value:De.id,label:De.name})))||[];Ct.length&&Ye(Ct)}it(!1)});return y.createElement("div",{className:we()(ge.multipleSelect,qe),style:ut},y.createElement(Se.Z,{title:pe},y.createElement(Ee.default,Oe(Be({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:je,options:Et,maxTagCount:"responsive",onDropdownVisibleChange:ye=>{ye&&Pe()}},ce),{className:we()(ce.className,$e&&ge.plus)}))),yt&&y.createElement(Ce.ZP,{className:ge.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},30628:function(Rn,qt,E){"use strict";E.d(qt,{h:function(){return y}});var y=(ge=>(ge[ge.NOMATCH=-1]="NOMATCH",ge[ge.OK=0]="OK",ge[ge.TIMEOUT=2]="TIMEOUT",ge[ge.PODFAILURE=3]="PODFAILURE",ge[ge.COMPILEFAILURE=4]="COMPILEFAILURE",ge[ge.EXECUTEFAILURE=5]="EXECUTEFAILURE",ge[ge.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ge))(y||{})},19160:function(Rn,qt,E){"use strict";E.d(qt,{H7:function(){return Ne},MK:function(){return Ge},MU:function(){return de},X6:function(){return Te},bM:function(){return Fe},fi:function(){return Be},fu:function(){return ke},n4:function(){return Oe},rX:function(){return ft},vl:function(){return Ie},zO:function(){return We}});var y=E(49317),ge=Object.defineProperty,me=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ee=(nt,St,Ae)=>St in nt?ge(nt,St,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):nt[St]=Ae,Ce=(nt,St)=>{for(var Ae in St||(St={}))we.call(St,Ae)&&Ee(nt,Ae,St[Ae]);if(me)for(var Ae of me(St))Se.call(St,Ae)&&Ee(nt,Ae,St[Ae]);return nt};function ke(nt,St){return(0,y.U2)(`myproblems/${nt}.json`,Ce({hidePopLogin:!0},St||{}))}function Fe(nt,St){return(0,y.v_)(`myproblems/${nt}/code_submit.json`,St)}function de(nt,St){return(0,y.v_)(`myproblems/${nt}/code_debug.json`,St)}function We(nt,St){return St.language&&(St.language=encodeURIComponent(St.language)),(0,y.U2)(`myproblems/${nt}/submit_records.json`,St)}function Te(nt){return(0,y.U2)("myproblems/record_detail.json",{id:nt})}function ft(nt,St){return(0,y.U2)(`myproblems/${nt}/result.json`,{mode:St})}function Ge(nt,St){return(0,y.v_)(`myproblems/${nt}/add_notes.json`,St)}function Ne(nt,St){return(0,y.v_)(`myproblems/${nt}/restore_initial_code.json`,St)}function Be(nt){return(0,y.v_)(`myproblems/${nt}/sync_code.json`)}function Oe(nt,St){return(0,y.v_)(`myproblems/${nt}/update_code.json`,St)}function Ie(nt,St){return(0,y.v_)(`discusses/${nt}/plus.json`,St)}},9593:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ei}});var y=E(59301),ge={flex_box_center:"flex_box_center___bZaL5",flex_space_between:"flex_space_between___oaJSq",flex_box_vertical_center:"flex_box_vertical_center____hsuP",flex_box_center_end:"flex_box_center_end___ZYbPQ",flex_box_column:"flex_box_column___nE_62",wrap:"wrap___ulhwR",left:"left___kyWln",title:"title___jsO1D",total:"total___GEhiU",list:"list___u9dBZ",name:"name___Wxggs",b:"b___Y15YO",r:"r___mKQoe",l:"l___uelFD",tag:"tag___Mpkbg",right:"right___mQ3dU",examName:"examName___Na1r8",t:"t___IgCWK",num:"num___CXI8j",topWarp:"topWarp___Kicpu",head:"head___jx3W8",so:"so___qYW7F",btn:"btn___EMJDz",content:"content___sHGsV",titleWrap:"titleWrap___I__GR",single:"single___K5iv9",analysis:"analysis___NoAuR",text:"text___xESW2",modalColumn:"modalColumn___I_tK_",modalRow:"modalRow___lyw_U",sup:"sup___HSz3Z",popover:"popover___kE8aI",btn_warp:"btn_warp___fOE2S"},me=E(28284),we=E(25399),Se=E(7939),Ee=E(62957),Ce=E(4875),ke=E(6767),Fe=E(37568),de=E(37285),We=E(62673),Te=E(37639),ft=E(77019),Ge=E(5269),Ne=E(31709),Be=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,St=(Bt,Jt,rn)=>Jt in Bt?Be(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Ae=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))Ie.call(Jt,rn)&&St(Bt,rn,Jt[rn]);if(Oe)for(var rn of Oe(Jt))nt.call(Jt,rn)&&St(Bt,rn,Jt[rn]);return Bt};const _e=Bt=>React.createElement("svg",Ae({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var et="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",qe=E(35883),ut=E(44283),yt=E(76406),st=E(49317),$e=Object.defineProperty,pe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ce=(Bt,Jt,rn)=>Jt in Bt?$e(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Et=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))Le.call(Jt,rn)&&ce(Bt,rn,Jt[rn]);if(pe)for(var rn of pe(Jt))xe.call(Jt,rn)&&ce(Bt,rn,Jt[rn]);return Bt};const Ye=Bt=>React.createElement("svg",Et({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var je="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",it=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,zt=(Bt,Jt,rn)=>Jt in Bt?it(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Ct=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))ye.call(Jt,rn)&&zt(Bt,rn,Jt[rn]);if(Pe)for(var rn of Pe(Jt))vt.call(Jt,rn)&&zt(Bt,rn,Jt[rn]);return Bt};const De=Bt=>React.createElement("svg",Ct({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var mt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",dt=E(45050),Gt=E(39116),bt=E(5622),xt={wrap:"wrap___OIoOI",modal:"modal___Z3hfU",titleWrap:"titleWrap___aK3oG",required:"required___NHoO7",title:"title___uxb1R",colorGray:"colorGray___O8YPg",choiceWrap:"choiceWrap___t51sb",answer:"answer___vsBnh",activeAnswer:"activeAnswer___AJN4p",deleteIcon:"deleteIcon___WvOJZ",addIcon:"addIcon___UyeIs",editorWrap:"editorWrap___uqcFU",htmlWrap:"htmlWrap___GcBNL",radio:"radio___e8qQ5",color333:"color333___PLzVK",color999:"color999___v3EY0",fold:"fold___OfvPe",head:"head___EejYX",collapseWrapper:"collapseWrapper___sQyVD",panelHeader:"panelHeader___Ivicf",open:"open___aEOQE",close:"close___z4P5H",inputBorder:"inputBorder___ix67O",keywordTag:"keywordTag___iGx08",scoreByBlankRadio:"scoreByBlankRadio___Kwu7q"},pt=E(59301),ln=Object.defineProperty,Wt=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ve=(Bt,Jt,rn)=>Jt in Bt?ln(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,ie=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))re.call(Jt,rn)&&ve(Bt,rn,Jt[rn]);if(ae)for(var rn of ae(Jt))se.call(Jt,rn)&&ve(Bt,rn,Jt[rn]);return Bt},fe=(Bt,Jt)=>Wt(Bt,ue(Jt)),Ve=(Bt,Jt)=>{var rn={};for(var An in Bt)re.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&ae)for(var An of ae(Bt))Jt.indexOf(An)<0&&se.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const It=null,Qe=(Bt,Jt)=>{var rn=Bt,{globalSetting:An,loading:za,dispatch:zr,isEdit:Jn,editData:vr}=rn,Fr=Ve(rn,["globalSetting","loading","dispatch","isEdit","editData"]);const[ea,jr]=(0,y.useState)(""),[or,pa]=(0,y.useState)(""),[ma,Nr]=(0,y.useState)([]),[Ba,ja]=(0,y.useState)(""),[sa,ur]=(0,y.useState)(),[Qr,ui]=(0,y.useState)(!1),[Ca,ua]=(0,y.useState)({}),[aa,Fa]=(0,y.useState)([]);(0,y.useEffect)(()=>{!vr||!Jn||(jr(vr==null?void 0:vr.name),pa(vr==null?void 0:vr.analysis),ur(vr==null?void 0:vr.is_ordered),ua(vr),ui(!0))},[vr]),(0,y.useEffect)(()=>{if(!Qr)return;const Ur=vr==null?void 0:vr.standard_answer.map(wo=>wo==null?void 0:wo.answer_text);Nr(Ur);const Fo=vr==null?void 0:vr.standard_answer.map(wo=>wo==null?void 0:wo.score);Fa(Fo),ui(!1)},[Qr]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ao,Clear:il}));const ao=()=>{let Ur=[],Fo=!1;return ea?(ma.forEach((wo,Io)=>{Ur.push({position:Io+1,answer_text:[],score:aa[Io]}),wo==null||wo.forEach((vl,Ms)=>{Ur[Io].answer_text.push(vl),(!vl||!(0,yt.eR)(vl,1e4))&&(ja(`${Io}-${Ms}`),ke.ZP.info(vl?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Fo=!0)})}),Fo?!1:(Ur==null?void 0:Ur.length)>20?(ke.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:ea,analysis:or,standard_answers:Ur,is_ordered:sa,downcase:Ca==null?void 0:Ca.downcase,no_space:Ca==null?void 0:Ca.no_space,use_blank_score:Ca==null?void 0:Ca.use_blank_score}):(ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},il=()=>{jr(""),pa(""),Nr([]),ur(!1)},Ko=(Ur,Fo,wo)=>{const Io=ma.slice();if(Fo&&Io.splice(Ur,Fo),wo)for(let vl=0;vl<wo;vl++)Io.splice(Ur+vl,0,[""]);Nr(Io)},Xl=(Ur,Fo,wo)=>{ja("");let Io=ma.slice();Io[Ur][Fo]=wo,Nr(Io)},Oi=Ur=>{let Fo=ma.slice();Fo[Ur]=[...Fo[Ur],""],Nr(Fo)},_l=(Ur,Fo)=>{let wo=ma.slice();if(!wo[Ur][Fo]){wo[Ur]=wo[Ur].filter((Io,vl)=>vl!==Fo),Nr(wo);return}Ee.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:xt.modal,onOk:()=>{wo[Ur]=wo[Ur].filter((Io,vl)=>vl!==Fo),Nr(wo)}})},Al=Ur=>{Ee.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:xt.modal,onOk:()=>{let Fo=ma.slice();Fo=ma.filter((wo,Io)=>Ur!==Io),Nr(Fo)}})};return pt.createElement("section",{className:xt.wrap},pt.createElement("p",{className:xt.titleWrap},pt.createElement("span",{className:xt.required},"*"),pt.createElement("span",{className:xt.title},"\u9898\u5E72\uFF1A")),pt.createElement("div",null,pt.createElement(Gt.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",height:155,defaultValue:ea,onChange:Ur=>jr(Ur),showNullButton:!0,onAddBlank:()=>Nr(Ur=>[...Ur,[""]])})),pt.createElement("div",{className:"mt20 flex flex-col gap-10px"},ma.map((Ur,Fo)=>pt.createElement("div",{style:{display:"flex"}},pt.createElement("div",{style:{flex:1}},pt.createElement(bt.Z,{key:Fo,answers:Ur,index:Fo,flex:1,is_md:!0,activeOptionErrorIndex:Ba,onAnswerChange:Xl,addChildAnswer:Oi,deleteChildAnswer:_l,deleteChildAnswermain:Al})),Ca.use_blank_score&&pt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},pt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",pt.createElement(Ce.Z,{style:{width:"100px"},size:"large",defaultValue:aa[Fo],onBlur:wo=>{aa[Fo]=wo.target.value,Fa([...aa])}}))))),pt.createElement(Se.ZP,{className:"mt20",onClick:()=>Nr(Ur=>[...Ur,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),pt.createElement("div",null,pt.createElement(We.default,{className:`${xt.color333} font14 mt20`,checked:Ca.use_blank_score,onChange:Ur=>ua(fe(ie({},Ca),{use_blank_score:Ur.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),pt.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u9700\u8981\u8BBE\u7F6E\u6BCF\u7A7A\u5206\u503C\uFF0C\u5B66\u751F\u7B54\u6848\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206\uFF09")),pt.createElement("div",null,pt.createElement(We.default,{className:`${xt.color333} font14 mt20`,checked:Ca.downcase,onChange:Ur=>ua(fe(ie({},Ca),{downcase:Ur.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),pt.createElement("div",null,pt.createElement(We.default,{className:`${xt.color333} font14 mt20`,checked:Ca.no_space,onChange:Ur=>ua(fe(ie({},Ca),{no_space:Ur.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),pt.createElement("div",{className:"mt20"},(ma==null?void 0:ma.length)>1&&pt.createElement("span",null,pt.createElement(We.default,{checked:sa,onChange:Ur=>ur(Ur.target.checked),className:`${xt.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),pt.createElement("span",{className:`${xt.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),pt.createElement("p",{className:xt.titleWrap},pt.createElement("span",{className:xt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),pt.createElement(Gt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:or,onChange:Ur=>pa(Ur)}))};var Ke=(0,ut.connect)(({loading:Bt,globalSetting:Jt})=>({globalSetting:Jt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Qe)),gt=E(47889),wt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,tt=(Bt,Jt)=>{var rn={};for(var An in Bt)Tt.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&wt)for(var An of wt(Bt))Jt.indexOf(An)<0&&Je.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Ht=null,un=(Bt,Jt)=>{var rn=Bt,{globalSetting:An,loading:za,editData:zr,dispatch:Jn,onRef:vr=()=>{},isEdit:Fr}=rn,ea=tt(rn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[jr,or]=(0,y.useState)(),[pa,ma]=(0,y.useState)(""),[Nr,Ba]=(0,y.useState)("");(0,y.useEffect)(()=>{if(!zr||!Fr)return;ma(zr==null?void 0:zr.name),Ba(zr==null?void 0:zr.analysis);const ur=zr==null?void 0:zr.choices.find(Qr=>Qr.is_answer);or(ur.choice_text==="\u6B63\u786E"?"0":"1")},[zr]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ja,Clear:sa}));const ja=()=>pa?jr?{name:pa,choices:[{choice_text:"\u6B63\u786E",is_answer:jr==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:jr==="1"?1:0}],analysis:Nr}:(ke.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),sa=()=>{ma(""),Ba(""),or("")};return y.createElement("section",{className:xt.wrap},y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u9898\u5E72\uFF1A")),y.createElement(Gt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:pa,onChange:ur=>ma(ur)}),y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:xt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),y.createElement(gt.ZP.Group,{buttonStyle:"solid",value:jr,onChange:ur=>or(ur.target.value)},y.createElement(gt.ZP.Button,{value:"0",className:`${xt.radio} mr40`},"\u6B63\u786E"),y.createElement(gt.ZP.Button,{value:"1",className:xt.radio},"\u9519\u8BEF")),y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Gt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Nr,onChange:ur=>Ba(ur)}))};var Dn=(0,ut.connect)(({loading:Bt,globalSetting:Jt})=>({globalSetting:Jt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(un)),yn=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,Xt=(Bt,Jt)=>{var rn={};for(var An in Bt)Lt.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&yn)for(var An of yn(Bt))Jt.indexOf(An)<0&&cn.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Xe=null,Nt=(Bt,Jt)=>{var rn=Bt,{globalSetting:An,loading:za,editData:zr,dispatch:Jn,onRef:vr=()=>{},isEdit:Fr}=rn,ea=Xt(rn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[jr,or]=(0,y.useState)([]);(0,y.useEffect)(()=>{var Ba;if(!zr||!Fr)return;const ja=(Ba=zr==null?void 0:zr.shixun)==null?void 0:Ba.challenges.map(sa=>({id:sa==null?void 0:sa.id,score:sa.score}));or(ja)},[zr]),(0,y.useImperativeHandle)(Jt,()=>({onSave:pa,Clear:ma}));const pa=()=>({challenges:[...jr]}),ma=()=>{or([])};console.log("editData--",zr);const Nr=Ba=>{var ja,sa;return y.createElement("div",null,(sa=(ja=Ba==null?void 0:Ba.shixun)==null?void 0:ja.challenges)==null?void 0:sa.map((ur,Qr)=>{var ui;return y.createElement("div",{className:"c-grey-666 font14 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"15px"}},y.createElement("div",null,y.createElement("span",{className:"mr5"},"\u7B2C",Qr+1,"\u5173"),y.createElement(we.Z,{key:Qr,title:ur==null?void 0:ur.challenge_name},y.createElement("span",null,(0,yt.Pq)(ur==null?void 0:ur.challenge_name,44)))),y.createElement("p",{style:{marginBottom:0}},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u5206\u503C\uFF1A"),y.createElement(Ce.Z,{precision:1,min:1,max:100,className:xt.baseFormItem,style:{width:176},value:(ui=jr.find(Ca=>Ca.id===ur.id))==null?void 0:ui.score,onChange:Ca=>{jr.find(ua=>ua.id===ur.id).score=Ca,or([...jr])}})))}),y.createElement("div",{style:{clear:"both"}}))};return y.createElement("section",{className:xt.wrap},y.createElement(qe.Z,{style:{paddingRight:10},className:xt.titleHtml,value:`${zr==null?void 0:zr.position}\u3001${zr==null?void 0:zr.name}`}),y.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u5173\u5361")),Nr(zr))};var dn=(0,ut.connect)(({loading:Bt,globalSetting:Jt})=>({globalSetting:Jt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Nt)),xn=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,en=(Bt,Jt)=>{var rn={};for(var An in Bt)at.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&xn)for(var An of xn(Bt))Jt.indexOf(An)<0&&Rt.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Pt=["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"],Ut=(Bt,Jt)=>{var rn=Bt,{editData:An,globalSetting:za,loading:zr,dispatch:Jn,onRef:vr=()=>{},isEdit:Fr}=rn,ea=en(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[jr,or]=(0,y.useState)([]),[pa,ma]=(0,y.useState)(),[Nr,Ba]=(0,y.useState)([]),[ja,sa]=(0,y.useState)(""),[ur,Qr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!An||!Fr)return;sa(An==null?void 0:An.name),Qr(An==null?void 0:An.analysis),or(An==null?void 0:An.choices.map(aa=>aa.choice_text));const ua=[];An==null||An.choices.map((aa,Fa)=>{aa.is_answer&&ua.push(Fa)}),Ba(ua)},[An]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ui,Clear:Ca}));const ui=()=>{if(!ja)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ua=jr.findIndex(Fa=>!Fa);if(ua>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Pt[ua]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Nr.length)return ke.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(Nr.length<2)return ke.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const aa=jr.map((Fa,ao)=>({choice_text:Fa,is_answer:Nr.includes(ao)?1:0}));return{name:ja,choices:aa,analysis:ur}},Ca=()=>{or(["","","",""]),sa(""),Qr(""),Ba("")};return y.createElement("section",{className:xt.wrap},y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u9898\u5E72\uFF1A")),y.createElement(Gt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ja,onChange:ua=>sa(ua)}),y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:xt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),jr.map((ua,aa)=>y.createElement("div",{className:xt.choiceWrap,key:aa},y.createElement(we.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${xt.answer} ${Nr.includes(aa)?xt.activeAnswer:""}`,onClick:()=>{Nr.includes(aa)?Ba(Nr.filter(Fa=>Fa!==aa)):Ba([...Nr,aa])}},Pt[aa])),y.createElement("div",{className:xt.editorWrap},pa===aa?y.createElement(Gt.Z,{id:`single-question-option-${aa}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ua,onChange:Fa=>{jr[aa]=Fa,or(jr)}}):y.createElement("div",{className:xt.htmlWrap,onClick:()=>ma(aa)},y.createElement(qe.Z,{value:ua}))),aa>1&&y.createElement(we.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${xt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(jr.filter((Fa,ao)=>ao!==aa)),Nr.includes(aa)?Ba(Nr.filter(Fa=>Fa!==aa)):Ba([...Nr,aa])}})),aa<14&&aa===jr.length-1&&y.createElement(we.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${xt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...jr,""])})))),y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Gt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ur,onChange:ua=>Qr(ua)}))};var Yt=(0,ut.connect)(({loading:Bt,globalSetting:Jt})=>({globalSetting:Jt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ut)),bn=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Zn=(Bt,Jt)=>{var rn={};for(var An in Bt)jn.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&bn)for(var An of bn(Bt))Jt.indexOf(An)<0&&Bn.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Ot=["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"],jt=(Bt,Jt)=>{var rn=Bt,{editData:An,globalSetting:za,loading:zr,dispatch:Jn,onRef:vr=()=>{},isEdit:Fr}=rn,ea=Zn(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[jr,or]=(0,y.useState)([]),[pa,ma]=(0,y.useState)(),[Nr,Ba]=(0,y.useState)(),[ja,sa]=(0,y.useState)(""),[ur,Qr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!An||!Fr)return;const ua=[],aa=[];An==null||An.choices.forEach((Fa,ao)=>{ua.push(Fa.choice_text),Fa.is_answer&&aa.push(ao)}),sa(An==null?void 0:An.name),Qr(An==null?void 0:An.analysis),or(ua),Ba(aa)},[An]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ui,Clear:Ca}));const ui=()=>{if(!ja)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ua=jr.findIndex(Fa=>!Fa);if(ua>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ot[ua]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(Nr))return ke.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;const aa=jr.map((Fa,ao)=>({choice_text:Fa,is_answer:Nr.includes(ao)?1:0}));return{name:ja,choices:aa,analysis:ur}},Ca=()=>{or(["","","",""]),sa(""),Qr(""),Ba("")};return y.createElement("section",{className:xt.wrap},y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u9898\u5E72\uFF1A")),y.createElement(Gt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ja,onChange:ua=>sa(ua)}),y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.required},"*"),y.createElement("span",{className:xt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:xt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),jr.map((ua,aa)=>y.createElement("div",{className:xt.choiceWrap,key:aa},y.createElement(we.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${xt.answer} ${Nr!=null&&Nr.includes(aa)?xt.activeAnswer:""}`,onClick:()=>Ba([aa])},Ot[aa])),y.createElement("div",{className:xt.editorWrap},pa===aa?y.createElement(Gt.Z,{id:`single-question-option-${aa}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ua,onChange:Fa=>{jr[aa]=Fa,or(jr)}}):y.createElement("div",{className:xt.htmlWrap,onClick:()=>ma(aa)},y.createElement(qe.Z,{value:ua}))),aa>1&&y.createElement(we.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${xt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(jr.filter((Fa,ao)=>ao!==aa)),aa===Nr&&Ba(null)}})),aa<14&&aa===jr.length-1&&y.createElement(we.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${xt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...jr,""])})))),y.createElement("p",{className:xt.titleWrap},y.createElement("span",{className:xt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Gt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ur,onChange:ua=>Qr(ua)}))};var on=(0,ut.connect)(({loading:Bt,globalSetting:Jt})=>({globalSetting:Jt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(jt)),En=E(96599),tn=E(58755),In=E(61485),pn=E(59301),On=Object.defineProperty,fr=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,cr=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,Hr=(Bt,Jt,rn)=>Jt in Bt?On(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Zr=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))Cr.call(Jt,rn)&&Hr(Bt,rn,Jt[rn]);if(cr)for(var rn of cr(Jt))gr.call(Jt,rn)&&Hr(Bt,rn,Jt[rn]);return Bt},Pn=(Bt,Jt)=>fr(Bt,Qn(Jt)),$n=(Bt,Jt)=>{var rn={};for(var An in Bt)Cr.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&cr)for(var An of cr(Bt))Jt.indexOf(An)<0&&gr.call(Bt,An)&&(rn[An]=Bt[An]);return rn},dr=(Bt,Jt,rn)=>new Promise((An,za)=>{var zr=Fr=>{try{vr(rn.next(Fr))}catch(ea){za(ea)}},Jn=Fr=>{try{vr(rn.throw(Fr))}catch(ea){za(ea)}},vr=Fr=>Fr.done?An(Fr.value):Promise.resolve(Fr.value).then(zr,Jn);vr((rn=rn.apply(Bt,Jt)).next())});const hr=Bt=>{if(!Bt)return!1;if(/^s*$/.test(Bt)||Bt.trim()===""){ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Jt=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 Bt==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},_t=({value:Bt=[],onClose:Jt})=>pn.createElement(En.default,{closable:!0,onClose:Jt,className:xt.keywordTag},pn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Bt.join(" \u6216 "))),Qt=(Bt,Jt)=>{var rn=Bt,{editData:An,globalSetting:za,loading:zr,dispatch:Jn,onRef:vr=()=>{},isEdit:Fr}=rn,ea=$n(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[jr,or]=(0,y.useState)(""),[pa,ma]=(0,y.useState)(""),[Nr,Ba]=(0,y.useState)(""),[ja,sa]=(0,y.useState)(""),[ur]=me.default.useForm(),Qr=me.default.useWatch("use_keywords",ur);(0,y.useEffect)(()=>{var aa;!An||!Fr||(or(An==null?void 0:An.name),ma(An==null?void 0:An.analysis),Ba((aa=An==null?void 0:An.answer_texts)==null?void 0:aa[0]),ur.setFieldsValue(Zr({},An)))},[An]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ui,Clear:Ca}));const ui=()=>dr(void 0,null,function*(){if(!jr)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield ur.validateFields()}catch(Fa){ke.ZP.error(Fa.errorFields[0].errors[0]);return}const aa=ur.getFieldsValue();return console.log(aa,"values"),Zr({name:jr,answer_texts:[Nr],analysis:pa},aa)}),Ca=()=>{or(""),ma(""),Ba(""),ur.resetFields()},ua=An==null?void 0:An.score;return pn.createElement("section",{className:xt.wrap},pn.createElement("p",{className:xt.titleWrap},pn.createElement("span",{className:xt.required},"*"),pn.createElement("span",{className:xt.title},"\u9898\u5E72\uFF1A")),pn.createElement(Gt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:jr,onChange:aa=>or(aa)}),pn.createElement("p",{className:xt.titleWrap},pn.createElement("span",{className:xt.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),pn.createElement(Gt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Nr,onChange:aa=>Ba(aa)}),pn.createElement("p",{className:xt.titleWrap},pn.createElement("span",{className:xt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),pn.createElement(Gt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pa,onChange:aa=>ma(aa)}),pn.createElement(me.default,{form:ur,size:"large",onFinishFailed:aa=>dr(void 0,null,function*(){var Fa,ao;ke.ZP.error(aa.errorFields[0].errors[0]),ur.scrollToField((ao=(Fa=aa==null?void 0:aa.errorFields)==null?void 0:Fa[0])==null?void 0:ao.name,{behavior:"smooth",block:"center"})})},pn.createElement(ft.Z,{align:"middle",className:"mb30 mt20"},pn.createElement(me.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},pn.createElement(tn.Z,null)),pn.createElement(Ge.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),pn.createElement(Ge.Z,null,pn.createElement(we.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"},pn.createElement(In.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Qr&&pn.createElement(me.default.List,{name:"keywords",rules:[{validator(aa,Fa){return Fa!=null&&Fa.length?(Fa==null?void 0:Fa.reduce((il,Ko)=>il+Ko.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"))}}]},(aa,{add:Fa,remove:ao})=>pn.createElement(pn.Fragment,null,pn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),pn.createElement(ft.Z,{align:"middle",className:"font14 mb30"},pn.createElement(Ge.Z,{flex:1},pn.createElement(Fe.default,{value:ja,onChange:il=>{sa(il.target.value)},maxLength:50,allowClear:!0,onPressEnter:il=>{var Ko,Xl,Oi,_l;const Al=`${(Ko=il.target)==null?void 0:Ko.value}`,Ur=(Oi=(Xl=Al==null?void 0:Al.split("|"))==null?void 0:Xl.filter(Io=>!!Io))==null?void 0:Oi.map(Io=>Io==null?void 0:Io.trim()),Fo=ur.getFieldValue("keywords"),wo=((_l=Fo==null?void 0:Fo.map(Io=>Io==null?void 0:Io.keyword))==null?void 0:_l.flat())||[];for(const Io of Ur)if(wo.includes(Io)){ke.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}hr(Al)&&(Fa({keyword:Ur,score:1}),sa(""))},className:xt.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"})),pn.createElement(Ge.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),aa.map(il=>{var Ko=il,{key:Xl,name:Oi}=Ko,_l=$n(Ko,["key","name"]);return pn.createElement(ft.Z,{key:Xl,style:{marginRight:148}},pn.createElement(Ge.Z,{flex:1},pn.createElement(ft.Z,{align:"middle",justify:"space-between"},pn.createElement(me.default.Item,Pn(Zr({},_l),{name:[Oi,"keyword"]}),pn.createElement(_t,{onClose:()=>ao(Oi)})),pn.createElement(me.default.Item,Pn(Zr({},_l),{name:[Oi,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),pn.createElement(Ce.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var ct=(0,ut.connect)(({loading:Bt,globalSetting:Jt})=>({globalSetting:Jt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Qt)),Zt=E(8848),ot={wrap:"wrap___Cc0gS",deleteIcon:"deleteIcon___ebwMv",keywordTag:"keywordTag___lUfL5",questionTitleEditorWrap:"questionTitleEditorWrap___u9UgK",choiceWrap:"choiceWrap___VHsr3",choiceIndex:"choiceIndex___rsj9r",judgementIndex:"judgementIndex___fMm6E",setAnswerBtn:"setAnswerBtn___krVC9",activeAnswer:"activeAnswer___WiYo2",activeJudgementAnswer:"activeJudgementAnswer___M6iww",actionWrapper:"actionWrapper___oKI8_",addIcon:"addIcon___eMbGP",inputBorder:"inputBorder___ob_6x",placeholder:"placeholder___Vkwr4",blankWrapper:"blankWrapper____MZQ5",blankInput:"blankInput___ephwY",blankInputNumberWrapper:"blankInputNumberWrapper___C1UJS",addBtn:"addBtn___qRBpJ",blankIndex:"blankIndex___QsKgf",baseInputWrapper:"baseInputWrapper___juqCB",collapseWrapper:"collapseWrapper___kAXJ0",panelHeader:"panelHeader___hLTSe",open:"open___wWDjf",close:"close___XPTJ0",hide:"hide___VytUy"},Kt=E(32134),Ft=E(12893),ar=Object.defineProperty,mr=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Nn=(Bt,Jt,rn)=>Jt in Bt?ar(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Hn=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))kt.call(Jt,rn)&&Nn(Bt,rn,Jt[rn]);if(Mt)for(var rn of Mt(Jt))Vt.call(Jt,rn)&&Nn(Bt,rn,Jt[rn]);return Bt},Un=(Bt,Jt)=>mr(Bt,At(Jt)),Xn=(Bt,Jt)=>{var rn={};for(var An in Bt)kt.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&Mt)for(var An of Mt(Bt))Jt.indexOf(An)<0&&Vt.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const pr=Bt=>{var Jt=Bt,{value:rn,onChange:An,scrollId:za}=Jt,zr=Xn(Jt,["value","onChange","scrollId"]);return y.createElement("div",{id:za||""},y.createElement(Gt.Z,Un(Hn({},zr),{defaultValue:rn,onChange:(Jn,vr)=>{vr!=null&&vr.length?An(Jn,vr):An(Jn)}})))},wr=({value:Bt,onChange:Jt,placeholder:rn,height:An=140,isEdit:za})=>za?y.createElement(Gt.Z,{watch:!0,isFocus:!0,height:An,placeholder:rn,defaultValue:Bt,onChange:Jt}):y.createElement("div",{style:{cursor:"pointer"}},Bt?y.createElement(qe.Z,{className:ot.inputBorder,value:Bt}):y.createElement("div",{className:`${ot.inputBorder} ${ot.placeholder}`},rn));var Or=E(59301),Lr=Object.defineProperty,Sr=Object.defineProperties,Mr=Object.getOwnPropertyDescriptors,Vr=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ra=Object.prototype.propertyIsEnumerable,Oa=(Bt,Jt,rn)=>Jt in Bt?Lr(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,ba=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))oa.call(Jt,rn)&&Oa(Bt,rn,Jt[rn]);if(Vr)for(var rn of Vr(Jt))ra.call(Jt,rn)&&Oa(Bt,rn,Jt[rn]);return Bt},Kr=(Bt,Jt)=>Sr(Bt,Mr(Jt)),ga=(Bt,Jt)=>{var rn={};for(var An in Bt)oa.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&Vr)for(var An of Vr(Bt))Jt.indexOf(An)<0&&ra.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Qa=["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"],Da=({value:Bt,onChange:Jt,choiceTextKey:rn,answerKey:An,index:za,isEdit:zr,setInputActive:Jn,form:vr,choiceOptionsPath:Fr,allowChangeMode:ea,showAddIcon:jr,addItem:or,deleteItem:pa})=>{const ma=(Bt==null?void 0:Bt[An])===!0,Nr=()=>{const ja=vr.getFieldValue(Fr);vr.setFieldValue(Fr,ja.map(sa=>Kr(ba({},sa),{[An]:!1})))},Ba=()=>{ma?Jt(Kr(ba({},Bt),{[An]:!1})):(ea||Nr(),Jt(Kr(ba({},Bt),{[An]:!0})))};return Or.createElement(ft.Z,{className:ot.choiceWrap,align:"middle",wrap:!1},Or.createElement(Ge.Z,{onClick:Ba,className:`${ot.choiceIndex} ${ma?ot.activeAnswer:""}`},Qa[za]),Or.createElement(Ge.Z,{flex:1,className:`${ot.editorWrap} ml15`,onClick:Jn},Or.createElement(wr,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:zr,value:Bt==null?void 0:Bt[rn],onChange:ja=>{Jt(Kr(ba({},Bt),{[rn]:ja}))}})),Or.createElement(Ge.Z,{flex:"0 0 auto",className:"ml15"},Or.createElement("div",{onClick:Ba,className:`${ot.setAnswerBtn} ${ma?ot.activeAnswer:""}`},ma?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Or.createElement(Ge.Z,{className:ot.actionWrapper},Or.createElement(we.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Or.createElement(Kt.Z,{className:ot.addIcon,onClick:or,style:{visibility:jr?"visible":"hidden"}})),Or.createElement(we.Z,{title:"\u5220\u9664"},Or.createElement(Ft.Z,{className:ot.deleteIcon,onClick:pa,style:{visibility:za>1?"visible":"hidden"}}))))},Ea=({questionTitlePlaceholder:Bt,titleKey:Jt,choiceKey:rn,analysisKey:An,choiceTextKey:za,answerKey:zr,choiceOptionsPath:Jn,allowChangeMode:vr=!0,form:Fr,showAnalysis:ea=!0})=>{const[jr,or]=(0,y.useState)(),[pa,ma]=(0,y.useState)(!1);return Or.createElement("div",{className:ot.wrap},Or.createElement("div",{className:ot.questionTitleEditorWrap},Or.createElement(me.default.Item,{label:"\u9898\u5E72",name:Jt,labelCol:{span:24},rules:[{required:!0}]},Or.createElement(pr,{scrollId:Array.isArray(Jt)?Jt.join("_"):`${Jt}`,watch:!0,height:140,placeholder:Bt}))),Or.createElement(me.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Or.createElement(me.default.List,{name:rn,rules:[{validator(Nr,Ba){const ja=Ba.some(ur=>ur[zr]),sa=Ba.findIndex(ur=>{var Qr;return((Qr=ur[za])==null?void 0:Qr.length)<=0});return sa!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Qa[sa]}\u9009\u9879\u7684\u5185\u5BB9`)):ja?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Nr,{add:Ba,remove:ja})=>Or.createElement("div",{id:Array.isArray(Jn)?Jn.join("_"):`${Jn}`},Nr.map((sa,ur)=>{var Qr=sa,{key:ui,name:Ca}=Qr,ua=ga(Qr,["key","name"]);const aa=jr===ui,Fa=()=>{or(ui)},ao=ur<7&&ur===Nr.length-1,il=()=>Ba({[za]:"",[zr]:0}),Ko=()=>ja(Ca);return Or.createElement(me.default.Item,Kr(ba({},ua),{key:ui,name:Ca,noStyle:!0}),Or.createElement(Da,{choiceTextKey:za,answerKey:zr,index:ur,isEdit:aa,setInputActive:Fa,form:Fr,choiceOptionsPath:Jn,allowChangeMode:vr,showAddIcon:ao,addItem:il,deleteItem:Ko}))}),Nr.length<15&&Or.createElement("div",{className:`${ot.addBtn} mb30`,onClick:()=>Ba({[za]:"",[zr]:0})},"\u6DFB\u52A0\u9009\u9879"))),ea&&Or.createElement("div",{onClick:()=>ma(!0)},Or.createElement(me.default.Item,{name:An,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Or.createElement(wr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:pa}))))};var Rr=E(59301),Za=Object.defineProperty,Pa=Object.defineProperties,la=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,$a=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,$i=(Bt,Jt,rn)=>Jt in Bt?Za(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Xa=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))$a.call(Jt,rn)&&$i(Bt,rn,Jt[rn]);if(Xr)for(var rn of Xr(Jt))Mi.call(Jt,rn)&&$i(Bt,rn,Jt[rn]);return Bt},gi=(Bt,Jt)=>Pa(Bt,la(Jt)),Ii=(Bt,Jt)=>{var rn={};for(var An in Bt)$a.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&Xr)for(var An of Xr(Bt))Jt.indexOf(An)<0&&Mi.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Ri=({value:Bt,onChange:Jt,position:rn,removeBlank:An})=>{const za=Jn=>{Ee.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:ot.modal,onOk:()=>{const vr=[...Bt];vr.splice(Jn,1),vr.length===0?An(rn-1):Jt(vr)}})},zr=()=>{const Jn=[...Bt];Jn.push(""),Jt(Jn)};return Rr.createElement(ft.Z,{className:"ml20"},Rr.createElement(Ge.Z,{flex:1},Bt==null?void 0:Bt.map((Jn,vr)=>Rr.createElement(ft.Z,{key:`${Jn}_${vr}`,className:"mb20"},Rr.createElement(Fe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Jn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Fr=>{const ea=[...Bt],jr=Fr.target.value.trim();ea[vr]=jr,Jt(ea)}}),Rr.createElement(we.Z,{title:"\u5220\u9664"},Rr.createElement(Ft.Z,{className:ot.deleteIcon,style:{marginLeft:15,visibility:rn===1&&vr===0?"hidden":"visible"},onClick:()=>za(vr)})),Rr.createElement(we.Z,{title:"\u65B0\u589E\u7B54\u6848"},Rr.createElement(Kt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:vr===0?"visible":"hidden"},onClick:()=>{zr()}}))))))},Bi=({value:Bt=!0,onChange:Jt})=>Rr.createElement(tn.Z,{checked:!Bt,onChange:rn=>{Jt(!rn)}}),ei="\u2581",Ar=({questionTitlePlaceholder:Bt,form:Jt,name:rn,scoreByBlank:An="use_blank_score",answerKey:za,titleKey:zr="name",analysisKey:Jn="analysis",isOrdered:vr="is_ordered"})=>{var Fr,ea;const[jr,or]=(0,y.useState)(!1),pa=()=>{const ur=Jt.getFieldValue(["sub_item_banks",...za]);Jt.setFieldValue(["sub_item_banks",...za],ur==null?void 0:ur.map((Qr,ui)=>gi(Xa({},Qr),{position:ui+1})))},ma=(0,y.useRef)(),Nr=(ur,Qr)=>{for(let ui=0;ui<ur;ui++)ma.current({position:null,answer_text:[""]},Qr+ui);pa()},Ba=(0,y.useRef)(),ja=ur=>{Ba.current(ur),pa()},sa=(ea=(Fr=Jt.getFieldValue("sub_item_banks"))==null?void 0:Fr[za==null?void 0:za[0]])==null?void 0:ea[za==null?void 0:za[1]];return Rr.createElement("div",{className:ot.wrap},Rr.createElement("div",{className:ot.questionTitleEditorWrap},Rr.createElement(me.default.Item,{label:"\u9898\u5E72",name:zr,labelCol:{span:24},rules:[{required:!0}]},Rr.createElement(pr,{scrollId:"name",watch:!0,height:140,placeholder:Bt,showNullButton:!0,onAddBlank:()=>{const ur=Jt.getFieldValue(["sub_item_banks",...za]);Nr(1,ur==null?void 0:ur.length)}}))),Rr.createElement(me.default.List,{name:za,rules:[{validator(ur,Qr){if((Qr==null?void 0:Qr.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const ui of Qr){const{answer_text:Ca}=ui||{};if(Ca!=null&&Ca.some(ua=>(ua==null?void 0:ua.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(ur,{add:Qr,remove:ui},{errors:Ca})=>(ma.current=Qr,Ba.current=ui,Rr.createElement(Rr.Fragment,null,Rr.createElement(me.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ur.map((ua,aa)=>{var Fa=ua,{key:ao,name:il}=Fa,Ko=Ii(Fa,["key","name"]);return Rr.createElement(ft.Z,{key:ao,align:"top",wrap:!1},Rr.createElement(Ge.Z,{flex:"0 0 auto",className:`${ot.blankIndex} pt5`},"\u586B\u7A7A\u9879",aa+1),Rr.createElement(Ge.Z,{flex:1},Rr.createElement(ft.Z,{align:"top",justify:"space-between",wrap:!1},Rr.createElement(Ge.Z,{flex:1},Rr.createElement(me.default.Item,gi(Xa({},Ko),{name:[il,"answer_text"],noStyle:!0}),Rr.createElement(Ri,{removeBlank:ja,position:aa+1}))),(Jt==null?void 0:Jt.getFieldValue(["sub_item_banks",...An]))&&Rr.createElement(Ge.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},Rr.createElement(me.default.Item,gi(Xa({},Ko),{name:[il,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ot.blankInputNumberWrapper}),Rr.createElement(Ce.Z,{className:ot.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Rr.createElement(me.default.Item,gi(Xa({},Ko),{name:[il,"position"],noStyle:!0}),Rr.createElement(Fe.default,{type:"hidden"}))))})))),Rr.createElement(Se.ZP,{className:"mb20",onClick:()=>Nr(1,sa==null?void 0:sa.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Rr.createElement(ft.Z,{align:"middle"},Rr.createElement(me.default.Item,{name:[rn,"downcase"],valuePropName:"checked"},Rr.createElement(tn.Z,null)),Rr.createElement(Ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Rr.createElement(ft.Z,{align:"middle"},Rr.createElement(me.default.Item,{name:[rn,"no_space"],valuePropName:"checked"},Rr.createElement(tn.Z,null)),Rr.createElement(Ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(sa==null?void 0:sa.length)>1&&Rr.createElement(ft.Z,{align:"middle",className:(sa==null?void 0:sa.length)>1?"mb30":`${ot.hide}`},Rr.createElement(me.default.Item,{name:vr},Rr.createElement(Bi,null)),Rr.createElement(Ge.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")),Rr.createElement("div",{onClick:()=>or(!0)},Rr.createElement(me.default.Item,{name:Jn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Rr.createElement(wr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:jr}))))};var tr=Object.defineProperty,yr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Er=(Bt,Jt,rn)=>Jt in Bt?tr(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Dr=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))Jr.call(Jt,rn)&&Er(Bt,rn,Jt[rn]);if(qn)for(var rn of qn(Jt))Yr.call(Jt,rn)&&Er(Bt,rn,Jt[rn]);return Bt},$r=(Bt,Jt)=>yr(Bt,Br(Jt)),qr=(Bt,Jt)=>{var rn={};for(var An in Bt)Jr.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&qn)for(var An of qn(Bt))Jt.indexOf(An)<0&&Yr.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Aa={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Wa=({value:Bt,onChange:Jt,form:rn,choiceKey:An})=>{const za=(Bt==null?void 0:Bt.is_answer)===!0,zr=Bt==null?void 0:Bt.choice_text,Jn=()=>{var vr;const Fr=(vr=rn==null?void 0:rn.getFieldValue(["sub_item_banks",...An]))==null?void 0:vr.map(ea=>({choice_text:ea==null?void 0:ea.choice_text,is_answer:!1}));rn==null||rn.setFieldValue(["sub_item_banks",...An],Fr),Jt($r(Dr({},Bt),{is_answer:!0}))};return y.createElement(ft.Z,{className:ot.choiceWrap,align:"middle",wrap:!1},y.createElement(Ge.Z,{onClick:Jn,className:`${ot.choiceIndex} ${ot.judgementIndex} ${za?ot.activeAnswer:""}`},Aa[zr]),y.createElement(Ge.Z,{flex:1,className:`${ot.editorWrap} ml15`},y.createElement("div",{className:`${ot.inputBorder} ${ot.placeholder} ${za?ot.activeJudgementAnswer:""}`},zr)),y.createElement(Ge.Z,{flex:"0 0 auto",className:"ml15"},y.createElement("div",{onClick:Jn,className:`${ot.setAnswerBtn} ${za?ot.activeAnswer:""}`},za?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},na=({questionTitlePlaceholder:Bt,choiceKey:Jt="choices",form:rn,titleKey:An="name",analysisKey:za="analysis"})=>{const[zr,Jn]=(0,y.useState)(!1);return y.createElement("div",{className:ot.wrap},y.createElement("div",{className:ot.questionTitleEditorWrap},y.createElement(me.default.Item,{label:"\u9898\u5E72",name:An,labelCol:{span:24},rules:[{required:!0}]},y.createElement(pr,{scrollId:"name",watch:!0,height:140,placeholder:Bt}))),y.createElement(me.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},y.createElement(me.default.List,{name:Jt,rules:[{validator(vr,Fr){return Fr.some(jr=>(jr==null?void 0:jr.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},vr=>y.createElement("div",{id:"choices"},vr.map(Fr=>{var ea=Fr,{key:jr,name:or}=ea,pa=qr(ea,["key","name"]);return y.createElement(me.default.Item,$r(Dr({},pa),{key:jr,name:or,noStyle:!0}),y.createElement(Wa,{form:rn,choiceKey:Jt}))})))),y.createElement("div",{onClick:()=>Jn(!0)},y.createElement(me.default.Item,{name:za,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(wr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:zr}))))};var li=Object.defineProperty,di=Object.defineProperties,zi=Object.getOwnPropertyDescriptors,Hi=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,Eo=(Bt,Jt,rn)=>Jt in Bt?li(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Co=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))Ji.call(Jt,rn)&&Eo(Bt,rn,Jt[rn]);if(Hi)for(var rn of Hi(Jt))Yi.call(Jt,rn)&&Eo(Bt,rn,Jt[rn]);return Bt},zo=(Bt,Jt)=>di(Bt,zi(Jt)),Go=(Bt,Jt)=>{var rn={};for(var An in Bt)Ji.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&Hi)for(var An of Hi(Bt))Jt.indexOf(An)<0&&Yi.call(Bt,An)&&(rn[An]=Bt[An]);return rn};const Ta=Bt=>{var Jt=Bt,{value:rn,onChange:An}=Jt,za=Go(Jt,["value","onChange"]);const zr=Jn=>{An([Jn])};return y.createElement(Gt.Z,zo(Co({},za),{defaultValue:rn==null?void 0:rn[0],onChange:zr}))},fi=Bt=>{if(!Bt)return!1;let Jt=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 Bt==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ni=({value:Bt=[],onClose:Jt})=>y.createElement(En.default,{closable:!0,onClose:Jt,className:ot.keywordTag},Bt==null?void 0:Bt.join(" \u6216 ")),xo=({questionTitlePlaceholder:Bt,form:Jt,showKeywords:rn,isMustKeyWords:An=rn,titleKey:za="name",analysisKey:zr="analysis",answerTexts:Jn="answer_texts",keywords:vr="keywords",useKeywords:Fr="use_keywords",indexs:ea})=>{const[jr,or]=(0,y.useState)(!1),[pa,ma]=(0,y.useState)(""),Nr=me.default.useWatch("sub_item_banks",Jt),{use_keywords:Ba,score:ja}=(Nr==null?void 0:Nr[ea])||{};return console.log(Ba,ja,"itemValues"),y.createElement("div",{className:ot.wrap},y.createElement("div",{className:ot.questionTitleEditorWrap},y.createElement(me.default.Item,{label:"\u9898\u5E72",name:za,labelCol:{span:24},rules:[{required:!0}]},y.createElement(pr,{scrollId:"name",watch:!0,height:140,placeholder:Bt}))),y.createElement(me.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Jn,labelCol:{span:24}},y.createElement(Ta,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),rn&&!An&&y.createElement(me.default.Item,{hidden:!0,name:Fr,valuePropName:"checked"},y.createElement(tn.Z,{defaultChecked:!0})),rn&&An&&y.createElement(ft.Z,{align:"middle",className:"mb30"},y.createElement(me.default.Item,{name:Fr,valuePropName:"checked"},y.createElement(tn.Z,null)),y.createElement(Ge.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(Ge.Z,null,y.createElement(we.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"},y.createElement(In.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Ba||!An)&&y.createElement(me.default.List,{name:vr,rules:[{validator(sa,ur){return An?ur!=null&&ur.length?(ur==null?void 0:ur.reduce((ui,Ca)=>ui+Ca.score,0))>parseFloat(ja)?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()}}]},(sa,{add:ur,remove:Qr})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${ot.title} mb10`},An?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(ft.Z,{align:"middle",className:"font14 mb30"},y.createElement(Ge.Z,{flex:1},y.createElement(Fe.default,{value:pa,onChange:ui=>{ma(ui.target.value)},maxLength:50,allowClear:!0,onPressEnter:ui=>{var Ca,ua,aa,Fa;const ao=`${(Ca=ui.target)==null?void 0:Ca.value}`,il=(aa=(ua=ao==null?void 0:ao.split("|"))==null?void 0:ua.filter(Oi=>!!Oi))==null?void 0:aa.map(Oi=>Oi==null?void 0:Oi.trim()),Ko=Jt.getFieldValue(["sub_item_banks",...vr]),Xl=((Fa=Ko==null?void 0:Ko.map(Oi=>Oi==null?void 0:Oi.keyword))==null?void 0:Fa.flat())||[];for(const Oi of il)if(Xl.includes(Oi)){ke.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}fi(ao)&&(ur({keyword:il,score:1}),ma(""))},className:ot.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"})),y.createElement(Ge.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),sa.map(ui=>{var Ca=ui,{key:ua,name:aa}=Ca,Fa=Go(Ca,["key","name"]);return y.createElement(ft.Z,{key:ua,className:"mb20",style:{marginRight:148}},y.createElement(Ge.Z,{flex:1},y.createElement(ft.Z,{align:"middle",justify:"space-between"},y.createElement(me.default.Item,zo(Co({},Fa),{name:[aa,"keyword"]}),y.createElement(ni,{onClose:()=>Qr(aa)})),An&&y.createElement(me.default.Item,zo(Co({},Fa),{name:[aa,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ot.blankInputNumberWrapper}),y.createElement(Ce.Z,{className:ot.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>or(!0)},y.createElement(me.default.Item,{name:zr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(wr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:jr}))))};var mi=E(59301),rl=Object.defineProperty,zl=Object.defineProperties,Il=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Pl=(Bt,Jt,rn)=>Jt in Bt?rl(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Gl=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))Xo.call(Jt,rn)&&Pl(Bt,rn,Jt[rn]);if(qo)for(var rn of qo(Jt))no.call(Jt,rn)&&Pl(Bt,rn,Jt[rn]);return Bt},Hl=(Bt,Jt)=>zl(Bt,Il(Jt)),So=(Bt,Jt)=>{var rn={};for(var An in Bt)Xo.call(Bt,An)&&Jt.indexOf(An)<0&&(rn[An]=Bt[An]);if(Bt!=null&&qo)for(var An of qo(Bt))Jt.indexOf(An)<0&&no.call(Bt,An)&&(rn[An]=Bt[An]);return rn},fs=(Bt,Jt,rn)=>new Promise((An,za)=>{var zr=Fr=>{try{vr(rn.next(Fr))}catch(ea){za(ea)}},Jn=Fr=>{try{vr(rn.throw(Fr))}catch(ea){za(ea)}},vr=Fr=>Fr.done?An(Fr.value):Promise.resolve(Fr.value).then(zr,Jn);vr((rn=rn.apply(Bt,Jt)).next())});const{Panel:Ul}=Zt.default,_i=null,Ui=(Bt,Jt)=>{var rn=Bt,{globalSetting:An,loading:za,dispatch:zr,editData:Jn,onRef:vr=()=>{},isEdit:Fr}=rn,ea=So(rn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[jr,or]=(0,y.useState)(""),[pa,ma]=(0,y.useState)([]),[Nr]=me.default.useForm();(0,y.useEffect)(()=>{!Jn||!Fr||(or(Jn==null?void 0:Jn.name),ma(Jn==null?void 0:Jn.sub_item_banks),Nr.setFieldsValue(Gl({},Jn)))},[Jn]),(0,y.useEffect)(()=>{ma(Nr.getFieldValue("sub_item_banks"))},[me.default.useWatch("sub_item_banks",Nr)]),(0,y.useImperativeHandle)(Jt,()=>({onSave:Ba,Clear:ja}));const Ba=()=>fs(void 0,null,function*(){if(!jr)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Nr.validateFields()}catch(ua){return console.log(ua,"errInfo"),ke.ZP.error(ua.errorFields[0].errors[0]),!1}const Ca=pa.map(ua=>Gl({id:ua.id>1?ua.id:null},ua));return{name:jr,sub_item_banks:Ca}}),ja=()=>{or(""),ma([])},sa={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},ur=({value:Ca})=>mi.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},Ca),[Qr,ui]=(0,y.useState)();return mi.createElement("section",{className:xt.wrap},mi.createElement("p",{className:xt.titleWrap},mi.createElement("span",{className:xt.required},"*"),mi.createElement("span",{className:xt.title},"\u9898\u5E72\uFF1A")),mi.createElement(Gt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:jr,onChange:Ca=>or(Ca)}),mi.createElement(me.default,{form:Nr,autoComplete:"off"},mi.createElement(me.default.List,{name:"sub_item_banks",rules:[{validator(Ca,ua){return ua?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ca,{add:ua,remove:aa})=>{const Fa=Nr.getFieldValue("sub_item_banks");return mi.createElement(mi.Fragment,null,mi.createElement(Zt.default,{className:Ca.length>0?xt.collapseWrapper:"",bordered:!1,expandIcon:({isActive:ao})=>mi.createElement("i",{className:`iconfont icon-weizhankai ${ao?xt.open:xt.close}`,style:{fontSize:14,transition:"all .2s"}})},Ca.map((ao,il)=>{var Ko=ao,{key:Xl,name:Oi}=Ko,_l=So(Ko,["key","name"]),Al,Ur,Fo,wo,Io,vl,Ms,zs,Hs,Ds,Fs,tu;return mi.createElement(Ul,{className:xt.panel,forceRender:!0,header:mi.createElement("div",{className:xt.panelHeader},"\u7B2C",il+1,"\u5C0F\u9898",mi.createElement("span",null,"\uFF08",sa[(Al=Fa==null?void 0:Fa[Oi])==null?void 0:Al.item_type],"\uFF09")),extra:mi.createElement(ft.Z,{align:"middle",onClick:xs=>xs.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Ur=Fa==null?void 0:Fa[Oi])==null?void 0:Ur.item_type)=="completion"&&mi.createElement(me.default.Item,Hl(Gl({},_l),{name:[Oi,"score"],className:xt.blankInputNumberWrapper,style:{marginBottom:0}}),((Fo=Fa==null?void 0:Fa[Oi])==null?void 0:Fo.item_type)=="completion"&&mi.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",mi.createElement(ur,{value:(wo=Fa==null?void 0:Fa[Oi])==null?void 0:wo.score}),"\u5206")),((Io=Fa==null?void 0:Fa[Oi])==null?void 0:Io.item_type)=="completion"&&mi.createElement(mi.Fragment,null,mi.createElement(gt.ZP.Group,{defaultValue:(vl=Fa==null?void 0:Fa[Oi])==null?void 0:vl.use_blank_score,className:xt.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:xs=>{var Rs;console.log(Nr.getFieldsValue()),Nr==null||Nr.setFieldValue(["sub_item_banks",Oi,"use_blank_score"],(Rs=xs==null?void 0:xs.target)==null?void 0:Rs.value),ui(new Date)}}),mi.createElement(we.Z,{overlayInnerStyle:{width:460},title:mi.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",mi.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},mi.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Xl},mi.createElement(me.default.Item,Hl(Gl({},_l),{name:Oi}),(((Ms=Fa==null?void 0:Fa[Oi])==null?void 0:Ms.item_type)=="single"||((zs=Fa==null?void 0:Fa[Oi])==null?void 0:zs.item_type)=="multiple")&&mi.createElement(Ea,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Hs=Fa==null?void 0:Fa[Oi])==null?void 0:Hs.item_type)!="single",form:Nr,choiceKey:[Oi,"choices"],titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],choiceOptionsPath:["sub_item_banks",Oi,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Ds=Fa==null?void 0:Fa[Oi])==null?void 0:Ds.item_type)=="completion"&&mi.createElement(Ar,{form:Nr,name:Oi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[Oi,"use_blank_score"],titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],isOrdered:[Oi,"is_ordered"],answerKey:[Oi,"standard_answer"],key:Qr}),((Fs=Fa==null?void 0:Fa[Oi])==null?void 0:Fs.item_type)=="judgement"&&mi.createElement(na,{form:Nr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],choiceKey:[Oi,"choices"]}),((tu=Fa==null?void 0:Fa[Oi])==null?void 0:tu.item_type)=="subjective"&&mi.createElement(xo,{showKeywords:!0,form:Nr,titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],answerTexts:[Oi,"answer_texts"],useKeywords:[Oi,"use_keywords"],keywords:[Oi,"keywords"],indexs:Oi,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Pi=(0,ut.connect)(({loading:Bt,globalSetting:Jt})=>({globalSetting:Jt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ui)),vi=E(42075),Gi=E(79939),so=E(82326),wl=E(70858),Lo={flex_box_center:"flex_box_center___xDdtW",flex_space_between:"flex_space_between___J4mFI",flex_box_vertical_center:"flex_box_vertical_center___hDYn6",flex_box_center_end:"flex_box_center_end___H7l1j",flex_box_column:"flex_box_column___TPd2T",questionInfo:"questionInfo___ABq66",label:"label___VQOr7",content:"content____HZ6z",leftPart:"leftPart___YB0y5",rightPart:"rightPart___UVMmS",dragItem:"dragItem___Hbx8k",blackText:"blackText___U4u33",greyText:"greyText___rWIL_",iconWrapper:"iconWrapper___I0kek",contentArea:"contentArea___hGC13",dragging:"dragging___z7VVY",hidden:"hidden___nWAxb",dragIcon:"dragIcon___j91TC",deleteIcon:"deleteIcon___cmCqc",disabled:"disabled___ZlKMj",challengeNameWrapper:"challengeNameWrapper___SpiRb",challengeName:"challengeName___lmQe2",shixunPreviewFooter:"shixunPreviewFooter___u0CzD",shixunInfoWrapper:"shixunInfoWrapper___HzLHD",shixunInfo:"shixunInfo___qaQlF",btnToDetail:"btnToDetail___scXqr",fixedBottom:"fixedBottom___wTBAR",cancelBtn:"cancelBtn___Km4Gi",confirmBtn:"confirmBtn___WrECz",previewBtn:"previewBtn____oGPS",setScoreModalTable:"setScoreModalTable___CjDlp",title:"title___cQWdZ",tipcontent:"tipcontent___A8tZ5",name:"name___CvfT9",tip:"tip___EvoCF",info:"info___y_ayi",img:"img___X9CNn"},po=E(70467),al=E(58998),hn=E(77996),vn=E(63392),Tn=E(90736),br=E(44240),nr=({open:Bt,onCancel:Jt,onOk:rn})=>{const An=(0,al.g)(),[za,zr,Jn,vr]=(0,vn.U)(hn.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Fr,ea]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Bt&&Jn({page:1,limit:10,type:0},!0).then(Nr=>{(Nr==null?void 0:Nr.shixuns_count)===0&&ea(!0)})},[Bt]);const[jr,or]=(0,y.useState)([]),[pa,ma]=(0,y.useState)([]);return y.createElement(Ee.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Bt,width:948,centered:!0,closable:!0,onCancel:Jt,onOk:()=>rn(pa),destroyOnClose:!0},y.createElement(ft.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(Ge.Z,null,y.createElement(Gi.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:An,onChange:Nr=>{Jn({page:1,discipline_id:Nr==null?void 0:Nr[0],sub_discipline_id:Nr==null?void 0:Nr[1]})}}),y.createElement(so.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u521D\u7EA7",value:1},{label:"\u4E2D\u7EA7",value:2},{label:"\u4E2D\u9AD8\u7EA7",value:3},{label:"\u9AD8\u7EA7",value:4}],onChange:Nr=>Jn({page:1,diff:Nr})}),y.createElement(so.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Nr=>Jn({page:1,shixun_publish_status:Nr})})),y.createElement(po.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Nr=>{Jn({keyword:Nr,page:1})}})),Fr?y.createElement("div",null,y.createElement(Tn.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,yt.xg)("/shixuns")})):y.createElement(wl.default,{loading:zr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Nr,Ba)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:Ba!=null&&Ba.high_resources_consume?Lo.title:"",title:Nr||"--"},y.createElement(qe.Z,{key:1,showLines:1,showTextOnly:!0,value:Nr||"--"})),(Ba==null?void 0:Ba.high_resources_consume)&&y.createElement(br.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Nr,Ba,ja)=>y.createElement("span",null,Nr||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:y.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",y.createElement(we.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(In.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Nr,Ba,ja)=>y.createElement("span",null,Nr||"- -")},{title:"\u64CD\u4F5C",render(Nr,Ba){const{title:ja,challenge_names:sa,author_name:ur,identifier:Qr,author_school_name:ui,study_count:Ca}=Ba||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Ee.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement(qe.Z,{value:ja,style:{marginBottom:18}}),y.createElement("div",{className:Lo.challengeNameWrapper},sa.map((ua,aa)=>y.createElement("div",{className:Lo.challengeName,key:aa},"\u7B2C",(0,yt.EM)(aa+1),"\u9898\xA0",ua))),y.createElement(ft.Z,{className:Lo.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Ge.Z,{className:Lo.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:Lo.shixunInfo},ur.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:Lo.shixunInfo},ui),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:Lo.shixunInfo},Ca)),y.createElement(Se.ZP,{type:"primary",className:Lo.btnToDetail,onClick:()=>(0,yt.xg)(`/shixuns/${Qr}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Ba==null?void 0:Ba.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${Ba==null?void 0:Ba.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:vr==null?void 0:vr.items,rowSelection:{type:"radio",selectedRowKeys:jr,preserveSelectedRowKeys:!0,getCheckboxProps:Nr=>({disabled:Nr.shixun_tag_num===1}),onChange(Nr,Ba){var ja,sa,ur;console.log(Nr),or(Nr);const Qr=[];for(const Ca of pa)Nr.includes(Ca.id)&&Qr.push(Ca);const ui=Qr.map(Ca=>Ca.id);for(const Ca of Ba)Ca&&Nr.includes(Ca.id)&&!ui.includes(Ca.id)&&Qr.push({id:Ca.id,difficulty:Ca.level,identifier:Ca.identifier,name:Ca.name,real_name:(ja=Ca==null?void 0:Ca.author_name)==null?void 0:ja.split("\u3001")[0],school_name:Ca.author_school_name,challenge_names:Ca.challenge_names,challenges:(sa=Ca.challenge_names)==null?void 0:sa.map((ua,aa)=>({subject:ua,id:aa,score:5})),score:((ur=Ca.challenge_names)==null?void 0:ur.length)*5,study_count:Ca.study_count,challenges_count:Ca.challenges_count});ma(Qr)}},pagination:{current:za.page,pageSize:za.limit,total:vr==null?void 0:vr.items_count,showTotal:Nr=>y.createElement("span",null,"\u5171\xA0",y.createElement("span",{style:{color:"#165DFF"}},Nr),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Nr,Ba){Jn({page:Nr,limit:Ba})},size:"default"},scroll:{y:400}}))},ir=E(27878),kn=E(66443),er=(Bt,Jt,rn)=>new Promise((An,za)=>{var zr=Fr=>{try{vr(rn.next(Fr))}catch(ea){za(ea)}},Jn=Fr=>{try{vr(rn.throw(Fr))}catch(ea){za(ea)}},vr=Fr=>Fr.done?An(Fr.value):Promise.resolve(Fr.value).then(zr,Jn);vr((rn=rn.apply(Bt,Jt)).next())}),Gr=({visible:Bt,getdata:Jt,onCancel:rn,onRandomExchange:An,selectFromProblemSet:za,questionParams:zr})=>{const[Jn,vr]=(0,y.useState)(!1),[Fr,ea]=(0,y.useState)(!1),[jr,or]=(0,y.useState)({}),pa=(0,ut.useParams)(),[ma,Nr]=(0,y.useState)(),Ba=(ja,sa)=>er(void 0,null,function*(){ea(!0);const ur=yield(0,st.ZP)(`/api/exercises/${pa.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:zr.id,item_bank_id:ja,shixuns_info:[{id:ja,is_copy:sa!=1,is_use:sa!=1}]}});ea(!1),ur!=null&&ur.status||(ke.ZP.info("\u6362\u9898\u6210\u529F"),rn(),Jt())});return y.createElement(Ee.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Bt,onCancel:rn,centered:!0,maskClosable:!0,footer:null},y.createElement(ft.Z,{justify:"center",className:"pb20"},y.createElement(vi.Z,{onClick:An},"\u968F\u673A\u66F4\u6362"),(zr==null?void 0:zr.type)!=="PRACTICAL"&&y.createElement(Se.ZP,{style:{marginLeft:24},onClick:za},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(zr==null?void 0:zr.type)==="PRACTICAL"&&y.createElement(Se.ZP,{style:{marginLeft:24},onClick:()=>{vr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),y.createElement(nr,{open:Jn,onCancel:()=>vr(!1),onOk:ja=>er(void 0,null,function*(){if(console.log("----selectedRows",ja,pa),(ja==null?void 0:ja.length)<=0){ke.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let sa=ja==null?void 0:ja.map(Qr=>Qr==null?void 0:Qr.id),ur=yield(0,kn.Tr)({id:[...sa],course_id:pa.coursesId,type:"shixun"});(ur==null?void 0:ur.student_count)===0?Ba(sa==null?void 0:sa[0],1):(Nr(sa),or(ur)),vr(!1)})}),y.createElement(ir.Z,{resdata:jr,type:"shixun",okloading:Fr,oktext:(jr==null?void 0:jr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:ja=>er(void 0,null,function*(){Ba(ma==null?void 0:ma[0],2)})}))},Si=E(18747),Qi=E(24334),oo=E(80608),ro=E(71549),Va=E(8633),fa=E(15267),Wr=Object.defineProperty,Ni=Object.defineProperties,Zi=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,ho=(Bt,Jt,rn)=>Jt in Bt?Wr(Bt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Jt]=rn,Di=(Bt,Jt)=>{for(var rn in Jt||(Jt={}))_o.call(Jt,rn)&&ho(Bt,rn,Jt[rn]);if(co)for(var rn of co(Jt))Ai.call(Jt,rn)&&ho(Bt,rn,Jt[rn]);return Bt},ya=(Bt,Jt)=>Ni(Bt,Zi(Jt)),si=(Bt,Jt,rn)=>new Promise((An,za)=>{var zr=Fr=>{try{vr(rn.next(Fr))}catch(ea){za(ea)}},Jn=Fr=>{try{vr(rn.throw(Fr))}catch(ea){za(ea)}},vr=Fr=>Fr.done?An(Fr.value):Promise.resolve(Fr.value).then(zr,Jn);vr((rn=rn.apply(Bt,Jt)).next())});const pi=({data:Bt,submit:Jt,goBack:rn,loading:An,onTypeScore:za,editPreview:zr=!1,onSkipExamination:Jn,selectValue:vr,onExchange:Fr,getdata:ea,handleMarkWrongQuestion:jr,dispatch:or})=>{var pa,ma,Nr,Ba,ja,sa,ur,Qr,ui,Ca,ua;const aa=(0,y.useRef)(),[Fa,ao]=(0,y.useState)(null),[il,Ko]=(0,y.useState)(!1),[Xl,Oi]=(0,y.useState)(!1),_l=(0,y.useRef)(),[Al]=me.default.useForm(),Ur=(0,ut.useParams)(),[Fo,wo]=(0,y.useState)(!1),[Io,vl]=(0,y.useState)([]);(0,y.useEffect)(()=>{Ko(!0)},[]),(0,y.useEffect)(()=>{zr||(0,yt.Dk)("\u8BD5\u5377\u9884\u89C8")},[zr]),(0,y.useEffect)(()=>{var Wn;((Wn=Bt==null?void 0:Bt.questionList)==null?void 0:Wn.length)>0&&(Bt==null||Bt.questionList.forEach(Na=>{var ji;Na.type==="PRACTICAL"&&((ji=Na==null?void 0:Na.questions)==null||ji.forEach((_a,Ir)=>{var ki;Io[Ir]=!((ki=_a==null?void 0:_a.shixun)!=null&&ki.ignore_prompt),vl([...Io])}))}))},[Bt]);const Ms=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],zs={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",JUDGMENT:"\u5224\u65AD\u9898",COMPLETION:"\u586B\u7A7A\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898"},Hs={single:"\u5355\u9009\u9898",multiple:"\u591A\u9009\u9898",judgement:"\u5224\u65AD\u9898",completion:"\u586B\u7A7A\u9898",subjective:"\u7B80\u7B54\u9898",practical:"\u5B9E\u8BAD\u9898",program:"\u7F16\u7A0B\u9898",bprogram:"\u7A0B\u5E8F\u586B\u7A7A\u9898",combination:"\u7EC4\u5408\u9898"},Ds=Wn=>{var Na;const ji=[];return y.createElement(y.Fragment,null,y.createElement("aside",{className:ge.single},(Na=Wn==null?void 0:Wn.choices)==null?void 0:Na.map((_a,Ir)=>(_a.is_answer&&ji.push(Va.k4[Ir]),y.createElement("ul",{key:Ir},y.createElement("li",null,Va.k4[Ir],"\u3001"),y.createElement("li",null,y.createElement(qe.Z,{value:_a.choice_text})))))),y.createElement("div",{className:ge.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ji.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ms[Wn.difficulty])),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(qe.Z,{value:Wn.analysis?Wn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Wn==null?void 0:Wn.course_discipline_name)||"--"}`),y.createElement(we.Z,{title:Wn==null?void 0:Wn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Wn==null?void 0:Wn.tag_discipline_name)))))},Fs=(Wn,Na)=>{var ji;const _a=(ji=Wn==null?void 0:Wn.standard_answer)==null?void 0:ji.map((Ir,ki)=>{var Vi;return y.createElement("div",{key:ki},`\u7B54\u6848\uFF08\u586B\u7A7A${Ir==null?void 0:Ir.position}\uFF09\uFF1A${(Vi=Ir==null?void 0:Ir.answer_text)==null?void 0:Vi.join("\u3001")}`)});return y.createElement(y.Fragment,null,y.createElement("div",{className:ge.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,_a)),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(qe.Z,{value:Wn.analysis?Wn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Wn==null?void 0:Wn.course_discipline_name)||"--"}`),y.createElement(we.Z,{title:Na?Na==null?void 0:Na.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Na?Na==null?void 0:Na.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name)))))},tu=Wn=>{var Na;const ji=(Na=Wn==null?void 0:Wn.standard_answer)==null?void 0:Na.map((_a,Ir)=>y.createElement("div",{key:Ir},`\u7B54\u6848\uFF08\u586B\u7A7A${(_a==null?void 0:_a.position)||(_a==null?void 0:_a.exercise_choice_id)}\uFF09\uFF1A${_a==null?void 0:_a.answer_text}`));return y.createElement(y.Fragment,null,y.createElement("div",{className:ge.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,ji)),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(qe.Z,{value:Wn.analysis?Wn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Wn==null?void 0:Wn.course_discipline_name)||"--"}`),y.createElement(we.Z,{title:Wn==null?void 0:Wn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Wn==null?void 0:Wn.tag_discipline_name)))))},xs=(Wn,Na)=>{var ji;return y.createElement("div",{className:ge.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(ji=Wn==null?void 0:Wn.answer_texts)==null?void 0:ji[0]),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(qe.Z,{value:Wn.analysis?Wn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Wn==null?void 0:Wn.course_discipline_name)||"--"}`),y.createElement(we.Z,{title:Na?Na==null?void 0:Na.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Na?Na==null?void 0:Na.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name))))},Rs=Wn=>{var Na,ji;return y.createElement("div",{className:ge.analysis},y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u9884\u671F\u8F93\u51FA:"),y.createElement(qe.Z,{value:(Na=Wn==null?void 0:Wn.program_attr)==null?void 0:Na.description})),y.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((ji=Wn==null?void 0:Wn.program_attr)==null?void 0:ji.answer_text)||"--"),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(qe.Z,{value:Wn.analysis?Wn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Wn==null?void 0:Wn.course_discipline_name)||"--"}`),y.createElement(we.Z,{title:Wn==null?void 0:Wn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Wn==null?void 0:Wn.tag_discipline_name))))},Is=(Wn,Na)=>{var ji;return y.createElement("div",null,(ji=Wn==null?void 0:Wn.sub_item_banks)==null?void 0:ji.map((_a,Ir)=>{var ki,Vi;const Zo=[];return y.createElement(y.Fragment,null,y.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Na+1+"."+(Ir+1),"\uFF08",zs[_a.item_type]||Hs[_a.item_type],"\uFF09",_a.name),(_a.item_type=="SINGLE"||_a.item_type=="MULTIPLE"||_a.item_type=="JUDGMENT"||_a.item_type=="single"||_a.item_type=="multiple"||_a.item_type=="judgement")&&y.createElement(y.Fragment,null,y.createElement("aside",{className:ge.single},(ki=_a==null?void 0:_a.choices)==null?void 0:ki.map((eo,ll)=>(eo.is_answer&&Zo.push(Va.k4[ll]),y.createElement("ul",{key:ll},y.createElement("li",null,Va.k4[ll],"\u3001"),y.createElement("li",null,y.createElement(qe.Z,{value:eo.choice_text})))))),y.createElement("div",{className:ge.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Zo.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ms[_a.difficulty])),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(qe.Z,{value:_a.analysis?_a.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Wn==null?void 0:Wn.course_discipline_name)||"--"}`),y.createElement(we.Z,{title:Wn==null?void 0:Wn.tag_discipline_name},y.createElement("li",{style:{maxWidth:"400px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},y.createElement("span",{style:{color:"#5AB891",marginRight:10}},"\u77E5\u8BC6\u70B9:"),Wn==null?void 0:Wn.tag_discipline_name))))),(_a.item_type=="COMPLETION"||_a.item_type=="completion")&&Fs(_a,Wn),(_a.item_type=="SUBJECTIVE"||_a.item_type=="subjective")&&xs(_a,Wn),((Vi=Bt==null?void 0:Bt.exam)==null?void 0:Vi.exercise_status)===3&&y.createElement("div",{className:"flex gap-20px mt20"},y.createElement(oo.Z,{state:_a==null?void 0:_a.is_wrong,onClick:()=>{jr==null||jr({value:ya(Di({},_a),{question_id:_a==null?void 0:_a.id,question_score:_a==null?void 0:_a.score})})}}),_a.item_type=="single"&&y.createElement(Se.ZP,{style:{color:"#3061D0"},onClick:()=>{Ps({value:_a})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},nu=Wn=>{var Na,ji,_a;return y.createElement("div",{style:{marginTop:"12px"}},(ji=(Na=Wn==null?void 0:Wn.shixun)==null?void 0:Na.challenges)==null?void 0:ji.map((Ir,ki)=>y.createElement("div",{className:"c-grey-666 font14 mb10 ml25",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},y.createElement("div",null,y.createElement("span",{className:"mr5"},"\u7B2C",ki+1,"\u5173"),y.createElement(we.Z,{key:ki,title:Ir==null?void 0:Ir.challenge_name},y.createElement("span",null,(0,yt.Pq)(Ir==null?void 0:Ir.challenge_name,44)))),zr&&y.createElement("div",null,"\u5206\u503C\uFF1A",Ir.score,"\u5206"))),y.createElement(ut.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(_a=Wn==null?void 0:Wn.shixun)==null?void 0:_a.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),y.createElement("div",{style:{clear:"both"}}))},os=Wn=>{let Na=Wn.questions_score/Wn.questions_count;Ee.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:y.createElement("div",{className:ge.modalColumn},y.createElement("div",{className:ge.modalRow,style:{justifyContent:"flex-start"}},y.createElement("sup",{className:ge.sup},"*"),y.createElement("span",null,Wn==null?void 0:Wn.name,"\uFF1A"),y.createElement(Ce.Z,{min:0,precision:1,defaultValue:Na,onChange:ji=>{Na=ji}}),y.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>si(void 0,null,function*(){var ji;if(!Na)return ke.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const _a={type:Wn==null?void 0:Wn.type,score:Na,scoreTotal:Number((ji=Na*Wn.questions_count)==null?void 0:ji.toFixed(1))};za(_a)})})},Ss=()=>{let Wn="";Ee.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:y.createElement("div",{className:ge.modalColumn},y.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},y.createElement("img",{style:{marginRight:5},src:dt.Z}),"\u4FDD\u5B58\u540E\u5355\u72EC\u751F\u6210\u4E00\u4EFD\u4EBA\u5DE5\u7EC4\u5377\u7C7B\u578B\u7684\u56FA\u5B9A\u8BD5\u5377\u3002"),y.createElement("div",{className:ge.modalRow,style:{marginTop:20}},y.createElement("sup",{className:ge.sup},"*"),y.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),y.createElement(Fe.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Wn,onChange:Na=>{Wn=Na.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>si(void 0,null,function*(){var Na;if(!Wn)return ke.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const ji=[],_a=[],Ir=[],ki=[];(Na=Bt==null?void 0:Bt.questionList)==null||Na.forEach(Zo=>{var eo;(eo=Zo.questions)==null||eo.forEach(ll=>{let To=Zo.questions_score/Zo.questions_count;To=To&&To.toFixed(1),Zo.type==="COMBINATION"&&Ir.push({id:ll.id,sub_item_bank_ids:ll.sub_item_banks.map(ls=>ls.id)}),Zo.type==="PRACTICAL"?ki.push(ll.id):(ji.push(ll.id),_a.push(To))})}),console.log("-----",Ir),yield Jt({item_bank_ids:ji,item_bank_scores:_a,name:Wn,combination_item_banks:Ir,shixun_ids:ki})})})},ks=(Wn,Na,ji,_a)=>{var Ir;const ki=`${location.pathname}${location.search}`,Vi=(Ir=_a.questions)==null?void 0:Ir.map(Zo=>Zo==null?void 0:Zo.id);if(ki.includes("exercise"))_l.current={id:Wn,ids:Vi,type:Na,index:ji},Oi(!0);else{let Zo=Ee.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u8981\u66F4\u6362\u8BE5\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!0,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>si(void 0,null,function*(){Zo.update({cancelButtonProps:{disabled:!0}}),yield Fr({single_question_id:Wn,seleted_item_bank_ids:Vi},{type:Na,index:ji}),Zo.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Ls=Wn=>{var Na;const ji=(Na=Wn.questions)==null?void 0:Na.map(ki=>ki==null?void 0:ki.id),_a=Wn.name;let Ir=Ee.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${_a}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>si(void 0,null,function*(){Ir.update({cancelButtonProps:{disabled:!0}}),yield Fr({seleted_item_bank_ids:ji},{type:Wn.type}),Ir.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${_a}\u8BD5\u9898`)})})},Zs=()=>{let Wn=Ee.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:"\u786E\u8BA4\u66F4\u6362\u9884\u89C8\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F",cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>si(void 0,null,function*(){Wn.update({cancelButtonProps:{disabled:!0}}),yield Fr(),Wn.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},Vs=Wn=>{console.log(Wn,"key"),Jn(Wn-1)},Mu=(Wn,Na)=>{var ji,_a;if(Na==="SINGLE")return y.createElement(y.Fragment,null,y.createElement(on,{ref:aa,editData:Wn,isEdit:!0}),y.createElement(de.Z,null));if(Na==="MULTIPLE")return y.createElement(y.Fragment,null,y.createElement(Yt,{ref:aa,editData:Wn,isEdit:!0}),y.createElement(de.Z,null));if(Na==="JUDGMENT")return y.createElement(y.Fragment,null,y.createElement(Dn,{ref:aa,editData:Wn,isEdit:!0}),y.createElement(de.Z,null));if(Na==="COMPLETION")return y.createElement(y.Fragment,null,y.createElement(Ke,{ref:aa,editData:Wn,isEdit:!0}),y.createElement(de.Z,null));if(Na==="SUBJECTIVE")return y.createElement(y.Fragment,null,y.createElement(ct,{ref:aa,editData:Wn,isEdit:!0}),y.createElement(de.Z,null));if(Na==="COMBINATION")return y.createElement(y.Fragment,null,y.createElement(Pi,{ref:aa,editData:Wn,isEdit:!0}),y.createElement(de.Z,null));if(Na==="BPROGRAM")return y.createElement(y.Fragment,null,y.createElement(me.default,{form:Al,style:{marginTop:20},onFinishFailed:Ir=>{var ki,Vi;Ir.errorFields[0].name.includes("standard_answers")?ke.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):ke.ZP.error(Ir.errorFields[0].errors[0]),Al.scrollToField((Vi=(ki=Ir==null?void 0:Ir.errorFields)==null?void 0:ki[0])==null?void 0:Vi.name,{behavior:"smooth",block:"center"})},onFinish:Ir=>si(void 0,null,function*(){var ki;let Vi=ya(Di({question_score:Wn.score},Ir),{question_type:8,hack:ya(Di({},Ir.hack),{difficult:Wn.program_attr.difficult}),hack_codes:ya(Di({},Ir.hack_codes),{code:Qi.Base64.encode((ki=Ir.hack_codes)==null?void 0:ki.code)})});Fo&&(Vi.is_cover=1);const Zo=yield(0,st.ZP)(`/api/exercise_questions/${Wn.id}.json`,{method:"put",body:Vi});(Zo==null?void 0:Zo.status)===0&&(ke.ZP.success("\u7F16\u8F91\u6210\u529F"),Vs(vr+1)),ao(null)})},y.createElement(Si.tc,{form:Al,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(ji=Wn==null?void 0:Wn.program_attr)==null?void 0:ji.identifier,answerKey:"standard_answers"}),y.createElement(de.Z,null)));if(Na==="PROGRAM"&&ut.history.push(`/problems/${(_a=Wn==null?void 0:Wn.program_attr)==null?void 0:_a.identifier}/edit?type=exercises&express_id=${Ur.categoryId}&question_id=${Wn==null?void 0:Wn.id}&score=${Wn==null?void 0:Wn.score}&callback_url=${location.pathname}&select=${vr}&exercise=true`),Na==="PRACTICAL")return y.createElement(y.Fragment,null,y.createElement(dn,{ref:aa,editData:Wn,isEdit:!0}),y.createElement(de.Z,null))},vu=(Wn,Na)=>si(void 0,null,function*(){var ji,_a,Ir,ki,Vi,Zo;Wn==="BPROGRAM"&&Al.submit();const eo=yield(ji=aa.current)==null?void 0:ji.onSave();if(!eo)return;const ll=yi=>{const bl=yi.map(kl=>kl.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(bl).size!==bl.length},To={question_score:Na.score,analysis:eo.analysis};if(Wn==="SINGLE"||Wn==="MULTIPLE"||Wn==="JUDGMENT"){if(Wn!=="JUDGMENT"&&ll(eo==null?void 0:eo.choices)){ke.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const yi=[],bl=[];To.question_type=Wn==="JUDGMENT"?2:1,To.question_title=eo==null?void 0:eo.name,(_a=eo==null?void 0:eo.choices)==null||_a.forEach((ns,kl)=>{yi.push(ns.choice_text),ns!=null&&ns.is_answer&&bl.push(kl+1)}),To.question_choices=yi,To.standard_answers=bl}if(Wn==="COMPLETION"){let yi=(Ir=eo==null?void 0:eo.standard_answers)==null?void 0:Ir.map((kl,Ze)=>Number(kl==null?void 0:kl.score)?null:Ze+1).filter(kl=>kl!==null);if((yi==null?void 0:yi.length)>0)return ke.ZP.warning(`\u7B2C${yi.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let bl=(ki=eo==null?void 0:eo.standard_answers)==null?void 0:ki.reduce((kl,Ze)=>kl+(Number(Ze==null?void 0:Ze.score)||0),0);if(parseFloat(bl.toFixed(2))!=(To==null?void 0:To.question_score))return ke.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;To.is_ordered=eo.is_ordered,To.question_title=eo==null?void 0:eo.name,To.use_blank_score=eo==null?void 0:eo.use_blank_score,To.question_type=3;const ns=[];(Vi=eo==null?void 0:eo.standard_answers)==null||Vi.forEach((kl,Ze)=>{ns.push({choice_id:kl.position,answer_text:kl.answer_text,score:kl.score})}),To.standard_answers=ns,To.downcase=eo==null?void 0:eo.downcase,To.no_space=eo==null?void 0:eo.no_space}if(Wn==="SUBJECTIVE"&&(console.log("editorData"),console.log(eo),To.question_title=eo==null?void 0:eo.name,To.question_type=4,To.answer_texts=eo==null?void 0:eo.answer_texts,To.use_keywords=eo==null?void 0:eo.use_keywords,To.keywords=eo==null?void 0:eo.keywords),Wn==="COMBINATION"){To.question_title=eo==null?void 0:eo.name,To.question_type=7;try{To.sub_questions=(Zo=eo==null?void 0:eo.sub_item_banks)==null?void 0:Zo.map((yi,bl)=>{var ns,kl,Ze;if((yi==null?void 0:yi.item_type)=="single"||(yi==null?void 0:yi.item_type)=="multiple"){if(ll(yi==null?void 0:yi.choices))throw new Error(`\u7B2C${bl+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const Re=[],Dt=[];return(ns=yi==null?void 0:yi.choices)==null||ns.forEach(($t,an)=>{Re.push($t.choice_text),$t!=null&&$t.is_answer&&Dt.push(an+1)}),{id:yi.id,question_id:yi.id,question_title:yi.name,difficulty:yi.difficulty,question_type:(yi==null?void 0:yi.item_type)=="single"?0:(yi==null?void 0:yi.item_type)=="multiple"?1:2,question_choices:Re,standard_answers:Dt,analysis:yi.analysis,question_score:yi==null?void 0:yi.score}}else if((yi==null?void 0:yi.item_type)=="completion"){let Re=(kl=yi==null?void 0:yi.standard_answer)==null?void 0:kl.reduce(($t,an)=>$t+(Number(an==null?void 0:an.score)||0),0);if(parseFloat(Re.toFixed(2))!=(yi==null?void 0:yi.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Dt=[];return(Ze=yi==null?void 0:yi.standard_answer)==null||Ze.forEach(($t,an)=>{Dt.push({choice_id:$t.position,answer_text:$t.answer_text,score:$t.score})}),{id:yi.id,question_id:yi.id,is_ordered:yi.is_ordered,question_title:yi.name,difficulty:yi.difficulty,question_type:3,standard_answers:Dt,use_blank_score:yi.use_blank_score,analysis:yi.analysis,downcase:yi==null?void 0:yi.downcase,no_space:yi==null?void 0:yi.no_space,question_score:yi==null?void 0:yi.score}}else if((yi==null?void 0:yi.item_type)=="subjective")return{id:yi.id,question_id:yi.id,question_title:yi.name,question_type:4,difficulty:yi.difficulty,answer_texts:yi==null?void 0:yi.answer_texts,analysis:yi.analysis,question_score:yi==null?void 0:yi.score,use_keywords:yi.use_keywords,keywords:yi==null?void 0:yi.keywords}})}catch(yi){ke.ZP.warning(yi.message);return}delete To.analysis}let ls=!1;(Na==null?void 0:Na.is_my)===1&&(ls=yield new Promise((bl,ns)=>{Ee.default.confirm({title:"\u63D0\u793A",content:"\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",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>{bl(!0)},onCancel:()=>{bl(!1)}})})),ls&&(To.is_cover=1);const Ys=Wn!=="PRACTICAL"?yield(0,st.ZP)(`/api/exercise_questions/${Na.id}.json`,{method:"put",body:To}):yield(0,st.ZP)(`/api/exercise_questions/${Na.id}/update_shixun_score.json`,{method:"post",body:Di({},eo)});(Ys==null?void 0:Ys.status)===0&&(ke.ZP.success("\u7F16\u8F91\u6210\u529F"),Vs(vr+1),ao(null))}),qu=()=>si(void 0,null,function*(){(0,ut.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,st.ZP)(`/api/exercises/${Ur.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield Jn(vr),ke.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ut.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),Ps=({value:Wn}={})=>{var Na;const ji=[];let _a=[];const Ir=(Na=Wn==null?void 0:Wn.choices)==null?void 0:Na.map((Vi,Zo)=>{var eo;const ll=Zo+1;return Vi!=null&&Vi.is_answer&&(ji.push(ll),_a.push(ll)),{value:ll,label:y.createElement(qe.Z,{className:"c-black font14",value:`${(eo=Va.k4)==null?void 0:eo[Zo]}. ${Vi==null?void 0:Vi.choice_text}`}),disabled:Vi==null?void 0:Vi.origin_standard_answer}}),ki=Ee.default.confirm({centered:!0,icon:null,title:"\u589E\u8BBE\u6B63\u786E\u7B54\u6848",width:800,content:y.createElement(y.Fragment,null,"\u5F53\u524D\u8BD5\u9898\u7684\u6B63\u786E\u7B54\u6848\u4E3A ",ji==null?void 0:ji.map(Vi=>{var Zo;return(Zo=Va.k4)==null?void 0:Zo[Vi-1]}),"\uFF0C\u8BF7\u9009\u62E9\u9700\u8981\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u7684\u9009\u9879\u3002",y.createElement("br",null),"\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u9009\u4E2D\u589E\u8BBE\u4E3A\u6B63\u786E\u7B54\u6848\u4EFB\u4E00\u9009\u9879\u7684\u5B66\u751F\u4E5F\u4F1A\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u4F46\u4E0D\u4F1A\u4FEE\u6539\u5F53\u524D\u8BD5\u9898\u7684\u9898\u578B\u3002\u53D6\u6D88\u52FE\u9009\u63D0\u4EA4\u4E4B\u540E\uFF0C\u4E5F\u4F1A\u91CD\u65B0\u8BA1\u7B97\u5BF9\u5E94\u5B66\u751F\u7684\u5F97\u5206\u3002",y.createElement("br",null),y.createElement(We.default.Group,{className:"flex-col mt20",options:Ir,defaultValue:_a,onChange:Vi=>{_a=Vi}})),onOk:()=>si(void 0,null,function*(){const Vi=yield(0,st.ZP)(`/api/exercises/${Ur.categoryId}/questions/${Wn==null?void 0:Wn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:_a}});(Vi==null?void 0:Vi.status)===0&&(ke.ZP.success("\u4FEE\u6539\u6210\u529F"),Vs(vr+1))})})},ws=(pa=Bt==null?void 0:Bt.questionList)==null?void 0:pa.reduce((Wn,Na)=>Wn+Number(Na.questions_score),0),Su=zr&&((ma=Bt==null?void 0:Bt.exam)==null?void 0:ma.exercise_status)!==1,ec=Wn=>si(void 0,null,function*(){const Na=yield(0,st.ZP)(`/api/courses/${Ur==null?void 0:Ur.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[Ur==null?void 0:Ur.categoryId],exercise_question_id:Wn.id}});(Na==null?void 0:Na.status)===0&&(or({type:"classroomList/setActionTabs",payload:{}}),ke.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),wu=(Wn,Na)=>si(void 0,null,function*(){let ji=yield(0,st.ZP)(`/api/courses/${Ur==null?void 0:Ur.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:Ur==null?void 0:Ur.categoryId,exercise_question_id:Wn==null?void 0:Wn.id}});(ji==null?void 0:ji.status)===0&&(Io[Na]=!1,vl([...Io]))});return y.createElement("section",{className:ge.wrap},y.createElement("div",{id:"id_left_preview",className:ge.left,onMouseEnter:Wn=>{const Na=document.getElementById("id_left_preview");Na.style.overflowY="auto"},onMouseLeave:Wn=>{const Na=document.getElementById("id_left_preview");Na.style.overflowY="hidden"}},y.createElement("div",{className:ge.title},y.createElement("div",{className:"body-overflow-initial"},y.createElement("b",null),y.createElement("span",null,"\u7B54\u9898\u5361"))),y.createElement("div",{className:ge.total},y.createElement("div",null,y.createElement("img",{src:je}),y.createElement("span",null,"\u9898\u6570(\u9053)"),y.createElement("aside",null,Bt==null?void 0:Bt.all_questions_count)),y.createElement("div",{className:"mr30 ml30"},y.createElement("img",{src:mt}),y.createElement("span",null,"\u603B\u5206(\u5206)"),y.createElement("aside",null,ws&&ws.toFixed(1))),y.createElement("div",null,y.createElement("img",{src:et}),y.createElement("span",null,"\u65F6\u957F(\u5206)"),y.createElement("aside",null,((Nr=Bt==null?void 0:Bt.exam)==null?void 0:Nr.time)===-1||((Ba=Bt==null?void 0:Bt.exam)==null?void 0:Ba.time)===null?"\u4E0D\u9650":(ja=Bt==null?void 0:Bt.exam)==null?void 0:ja.time))),(sa=Bt==null?void 0:Bt.questionList)==null?void 0:sa.map((Wn,Na)=>{var ji;return y.createElement("div",{className:ge.list,key:Na},y.createElement("div",{className:ge.name},y.createElement("b",null),y.createElement("span",null,Wn.name)),y.createElement("aside",null,y.createElement("div",null,"\u5171",y.createElement("span",{className:ge.b},Wn.questions_count),"\u9898 ",y.createElement("span",{className:ge.l},"|"),"\u5171",y.createElement("span",{className:ge.r},Wn.questions_score),"\u5206"),y.createElement("div",{className:ge.answerSheet},(ji=Wn==null?void 0:Wn.questions)==null?void 0:ji.map((_a,Ir)=>y.createElement("div",{onClick:()=>{const ki=`Anchor_${_a==null?void 0:_a.id}`;let Vi=document.getElementById(ki);Vi&&setTimeout(()=>Vi.scrollIntoView({block:"center",behavior:"smooth"}))},key:_a==null?void 0:_a.id,className:ge.tag},Ir+1)))))})),y.createElement("div",{className:ge.right},y.createElement("div",{className:ge.examName,id:"examName"},y.createElement("div",{className:ge.name},y.createElement(we.Z,{title:(ur=Bt==null?void 0:Bt.exam)==null?void 0:ur.name,getPopupContainer:Wn=>Wn.parentNode},y.createElement("span",{className:ge.t},(Qr=Bt==null?void 0:Bt.exam)==null?void 0:Qr.name))),zr&&((ui=Bt==null?void 0:Bt.exam)==null?void 0:ui.exercise_status)===1&&y.createElement(po.op,{openLoading:!0,shape:"default",onClick:()=>{Ee.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u6839\u636E\u6700\u65B0\u7684\u968F\u673A\u7EC4\u5377\u62BD\u9898\u89C4\u5219\u91CD\u65B0\u751F\u6210\u8BD5\u5377\u5417\uFF1F",onOk:()=>{qu()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!zr&&y.createElement(Se.ZP,{onClick:Zs,type:"primary"},"\u968F\u673A\u66F4\u6362")),y.createElement("div",{className:ge.topWarp},(Ca=Bt==null?void 0:Bt.questionList)==null?void 0:Ca.map((Wn,Na)=>{var ji,_a;return y.createElement(y.Fragment,{key:Na},y.createElement("div",{className:ge.head,style:Na===0?{border:0,marginTop:-16}:{}},y.createElement("div",{className:ge.name},y.createElement("b",null),y.createElement("span",null,Wn.name)),y.createElement("div",{className:ge.so},"\u5171",y.createElement("span",{className:ge.b},Wn.questions_count," "),"\u9898 ",Wn.type==="COMBINATION"&&`\uFF08\u5305\u542B${(ji=Wn==null?void 0:Wn.questions)==null?void 0:ji.map(Ir=>{var ki;return(ki=Ir==null?void 0:Ir.sub_item_banks)==null?void 0:ki.length}).reduce((Ir,ki)=>Ir+ki)}\u5C0F\u9898\uFF09`,y.createElement("span",{className:ge.l},"|"),"\u5171",y.createElement("span",{className:ge.r},Wn.questions_score),"\u5206"),!zr&&y.createElement("div",{className:ge.btn},y.createElement(Se.ZP,{onClick:()=>{os(Wn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),y.createElement(Se.ZP,{onClick:()=>Ls(Wn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(_a=Wn==null?void 0:Wn.questions)==null?void 0:_a.map((Ir,ki)=>{var Vi,Zo,eo,ll,To;return Fa===(Ir==null?void 0:Ir.id)?y.createElement("div",{id:`Anchor_${Ir==null?void 0:Ir.id}`,className:ge.content,style:{padding:0,marginTop:24},key:Ir==null?void 0:Ir.id},y.createElement("div",{style:{float:"right",marginTop:`${(Wn==null?void 0:Wn.type)==="PRACTICAL"?"-2px":"-6px"}`}},y.createElement(Se.ZP,{onClick:()=>ao(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),y.createElement(Se.ZP,{onClick:()=>{vu(Wn==null?void 0:Wn.type,Ir)},type:"primary"},"\u4FDD\u5B58")),Mu(Ir,Wn.type)):y.createElement("div",{id:`Anchor_${Ir==null?void 0:Ir.id}`,className:ge.content,key:Ir==null?void 0:Ir.id},y.createElement("div",{className:ge.titleWrap},(Ir==null?void 0:Ir.item_type)==="bprogram"?y.createElement(qe.Z,{style:{paddingRight:10},value:ki+1+"\u3001"+((Vi=Ir==null?void 0:Ir.program_attr)==null?void 0:Vi.description)}):y.createElement(qe.Z,{style:{paddingRight:10},className:ge.titleHtml,value:ki+1+`\u3001${(Ir==null?void 0:Ir.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Ir==null?void 0:Ir.name)}),(0,fa.G5)()&&((Zo=Ir==null?void 0:Ir.shixun)==null?void 0:Zo.shixun_change)&&y.createElement(Te.Z,{trigger:"click",open:Io[ki],onOpenChange:ls=>{Io[ki]=!0,vl([...Io])},placement:"bottomLeft",autoAdjustOverflow:!1,title:null,content:y.createElement("div",{style:{width:"310px",color:"#000"}},y.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),y.createElement("div",{className:ge.btn_warp},y.createElement(Se.ZP,{size:"small",onClick:()=>wu(Ir,ki)},"\u5FFD\u7565"),y.createElement(Se.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{Io[ki]=!1,vl([...Io]),or({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>ec(Ir)}})}},"\u786E\u8BA4\u540C\u6B65"),y.createElement(Se.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,yt.xg)(`/shixuns/${Ir==null?void 0:Ir.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},y.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:ls=>ls.stopPropagation()})),zr&&y.createElement(Se.ZP,{onClick:()=>{var ls,Ys;if(Fa){ke.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Al.setFieldsValue({standard_answers:Ir==null?void 0:Ir.standard_answer,hack:Di(Di({},Ir),Ir==null?void 0:Ir.program_attr),hack_codes:ya(Di({},Ir==null?void 0:Ir.program_attr),{code:Qi.Base64.decode(((ls=Ir==null?void 0:Ir.program_attr)==null?void 0:ls.code)||"")}),hack_sets:Ir==null?void 0:Ir.hack_sets}),(Ir==null?void 0:Ir.item_type)=="program"?ut.history.push(`/problems/newedit/${(Ys=Ir==null?void 0:Ir.program_attr)==null?void 0:Ys.identifier}?type=exercises&express_id=${Ur.categoryId}&question_id=${Ir==null?void 0:Ir.id}&score=${Ir==null?void 0:Ir.score}&exercise=true&callback_url=/classrooms/${Ur.coursesId}/exercise/${Ur.categoryId}/detail?random=true`):ao(Ir==null?void 0:Ir.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!Su&&y.createElement(Se.ZP,{disabled:Su,className:"ml20",onClick:()=>ks(Ir==null?void 0:Ir.id,Wn.type,ki,Wn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Ir==null?void 0:Ir.item_type)==="bprogram"&&y.createElement(qe.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:ge.titleHtml,value:Qi.Base64.decode(((eo=Ir==null?void 0:Ir.program_attr)==null?void 0:eo.code)||"")}),(Wn.type==="SINGLE"||Wn.type==="JUDGMENT"||Wn.type==="MULTIPLE")&&Ds(Ir),Wn.type==="COMPLETION"&&Fs(Ir),Wn.type==="SUBJECTIVE"&&xs(Ir),Wn.type==="PROGRAM"&&Rs(Ir),Wn.type==="BPROGRAM"&&tu(Ir),Wn.type==="COMBINATION"&&Is(Ir,ki),Wn.type==="PRACTICAL"&&nu(Ir),y.createElement(ft.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((ll=Bt==null?void 0:Bt.exam)==null?void 0:ll.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Wn.type)&&y.createElement(Ge.Z,null,y.createElement(oo.Z,{state:Ir==null?void 0:Ir.is_wrong,onClick:()=>{jr==null||jr({value:ya(Di({},Ir),{question_id:Ir==null?void 0:Ir.id,question_score:Ir==null?void 0:Ir.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(Wn.type)&&(Ir==null?void 0:Ir.show_resubmit)&&y.createElement(Ge.Z,null,y.createElement(ro.C,{dataSource:ya(Di({},Ir),{question_id:Ir==null?void 0:Ir.id})})),((To=Bt==null?void 0:Bt.exam)==null?void 0:To.exercise_status)===3&&["SINGLE"].includes(Wn.type)&&y.createElement(Ge.Z,null,y.createElement(Se.ZP,{style:{color:"#3061D0"},onClick:()=>{Ps({value:Ir})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),zr?y.createElement(po.vr,null,y.createElement(Ne.Z,{showTotal:yt.rU,total:(ua=Bt==null?void 0:Bt.exam)==null?void 0:ua.total_num,pageSize:1,current:vr+1,showSizeChanger:!1,onChange:Vs,showQuickJumper:!1,hideOnSinglePage:!1})):y.createElement(po.vr,{LeftContent:y.createElement(po.op,{onClick:rn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:y.createElement(ft.Z,{align:"middle"},y.createElement(Te.Z,{color:"#55575D",overlayClassName:ge.popover,open:il,getPopupContainer:Wn=>Wn==null?void 0:Wn.parentNode,content:"\u5982\u60A8\u5BF9\u6B64\u4EFD\u8BD5\u9898\u6EE1\u610F\uFF0C\u53EF\u5C06\u6B64\u4EFD\u8BD5\u9898\u4FDD\u5B58\u4E3A\u56FA\u5B9A\u8BD5\u5377"},y.createElement(po.op,{onMouseEnter:()=>Ko(!0),onMouseLeave:()=>Ko(!1),onClick:()=>si(void 0,null,function*(){const Wn=Number(ws);[100,120,150].includes(Wn)||(yield new Promise((Na,ji)=>{Ee.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:y.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",y.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Wn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>si(void 0,null,function*(){Na("")}),onCancel:()=>{ji()}})})),Ss()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),y.createElement(po.op,{shape:"default",type:"primary",onClick:()=>si(void 0,null,function*(){const Wn=Number(ws);[100,120,150].includes(Wn)||(yield new Promise((Na,ji)=>{Ee.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:y.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",y.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Wn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>si(void 0,null,function*(){Na("")}),onCancel:()=>{ji()}})})),Jt()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),y.createElement(Gr,{visible:Xl,questionParams:_l.current,getdata:ea,onRandomExchange:()=>si(void 0,null,function*(){const Wn=_l.current;yield Fr({single_question_id:Wn.id,seleted_item_bank_ids:Wn.ids},{type:Wn.type,index:Wn.index}),Oi(!1)}),selectFromProblemSet:()=>{const Wn=_l.current,Na=`${location.pathname}${location.search}`;Na.includes("exercise")&&ut.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Wn.id}&qtype=${Wn.type}&exerciseid=${Ur.categoryId}&from=${Na}`)},onCancel:()=>{Oi(!1)}}))};var Ei=(0,ut.connect)(({classroomList:Bt})=>({classroomList:Bt}))(pi)},74379:function(Rn,qt,E){"use strict";E.r(qt),E.d(qt,{default:function(){return al}});var y=E(59301),ge={wrapper:"wrapper___KtBVT",breadCrumbWrapper:"breadCrumbWrapper___k9tSB",baseInfo:"baseInfo____j5EY",radioBtnWrapper:"radioBtnWrapper___k9OCh",baseLineHeight:"baseLineHeight___O_QXK",radiogroup:"radiogroup___e2fW6",easy:"easy___WcUAp",medium:"medium___U_o3j",hard:"hard___dAXLS",formWrap:"formWrap___wt5tC",baseFormItem:"baseFormItem___zV64d",cascaderPopup:"cascaderPopup___qm63f",fixedBottom:"fixedBottom___liDZ4",cancelBtn:"cancelBtn___ZV9Mi",confirmBtn:"confirmBtn___DwH6m",previewBtn:"previewBtn___aLYCy",concat:"concat___ZuLMo"},me=E(6767),we=E(28284),Se=E(91882),Ee=E(44283),Ce=E(97444),ke=E(29787),Fe=E(37568),de=E(47889),We=E(77019),Te=E(4875),ft=E(7939),Ge=E(49317),Ne=Object.defineProperty,Be=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,nt=(hn,vn,Tn)=>vn in hn?Ne(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,St=(hn,vn)=>{for(var Tn in vn||(vn={}))Oe.call(vn,Tn)&&nt(hn,Tn,vn[Tn]);if(Be)for(var Tn of Be(vn))Ie.call(vn,Tn)&&nt(hn,Tn,vn[Tn]);return hn},Ae=(hn,vn,Tn)=>new Promise((br,_r)=>{var nr=er=>{try{kn(Tn.next(er))}catch(Pr){_r(Pr)}},ir=er=>{try{kn(Tn.throw(er))}catch(Pr){_r(Pr)}},kn=er=>er.done?br(er.value):Promise.resolve(er.value).then(nr,ir);kn((Tn=Tn.apply(hn,vn)).next())});function _e(hn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/examination_banks/${hn}/edit_random_exam_new.json`,{method:"get"})})}function et(hn,vn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/examination_banks/${hn}/update_random_exam.json`,{method:"post",body:vn})})}function qe(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:hn})})}function ut(hn){return Ae(this,null,function*(){return Fetch("/api/disciplines.json",{method:"get",params:hn})})}function yt(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/v2/course_disciplines/tag_disciplines_by_random.json",{method:"get",params:hn})})}function st(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:hn})})}function $e(hn,vn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/examination_banks/${hn}/set_item_type_score.json`,{method:"post",body:vn})})}function pe(hn,vn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/exercises/${hn}/set_item_type_score.json`,{method:"post",body:vn})})}function Le(hn,vn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/examination_banks/${hn}/delete_item_type.json`,{method:"post",body:vn})})}function xe(hn,vn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/exercises/${hn}/delete_item_type.json`,{method:"post",body:vn})})}function ce(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:hn})})}function Et(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:hn})})}function Ye(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:hn})})}function je(hn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/exercises/${hn.categoryId}/edit.json`,{method:"get",params:St({},hn)})})}var it=(hn=>(hn.OnlyFileFolder="1",hn.OnlyKnowledge="2",hn.OnlyDifficulty="3",hn.FileFolderAndDiff="4",hn.FileFolderAndKnowledge="5",hn.KnowledgeAndDiff="6",hn.All="7",hn.Shixun="8",hn))(it||{}),Pe=E(78267),ye=Object.defineProperty,vt=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,dt=(hn,vn,Tn)=>vn in hn?ye(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Gt=(hn,vn)=>{for(var Tn in vn||(vn={}))De.call(vn,Tn)&&dt(hn,Tn,vn[Tn]);if(Ct)for(var Tn of Ct(vn))mt.call(vn,Tn)&&dt(hn,Tn,vn[Tn]);return hn},bt=(hn,vn)=>vt(hn,zt(vn)),xt=(hn=>(hn[hn.FileFolder=1]="FileFolder",hn[hn.Difficulty=2]="Difficulty",hn[hn.Knowledge=3]="Knowledge",hn))(xt||{});const pt=(0,y.createContext)(null),ln={[it.OnlyFileFolder]:[1],[it.OnlyKnowledge]:[3],[it.OnlyDifficulty]:[2],[it.FileFolderAndDiff]:[1,2],[it.FileFolderAndKnowledge]:[1,3],[it.KnowledgeAndDiff]:[3,2],[it.All]:[3,2,1]},Wt=(hn,vn)=>{if(hn.length!==vn.length)return!1;for(const Tn of vn)if(!hn.includes(Tn))return!1;return!0},ue=hn=>{for(const[vn,Tn]of Object.entries(ln))if(Wt(hn,Tn))return vn},ae={SINGLE:"\u5355\u9009\u9898",MULTIPLE:"\u591A\u9009\u9898",COMPLETION:"\u586B\u7A7A\u9898",JUDGMENT:"\u5224\u65AD\u9898",SUBJECTIVE:"\u7B80\u7B54\u9898",PROGRAM:"\u7F16\u7A0B\u9898",BPROGRAM:"\u7A0B\u5E8F\u586B\u7A7A\u9898",COMBINATION:"\u7EC4\u5408\u9898",PRACTICAL:"\u5B9E\u8BAD\u9898"},re={1:{label:"\u7B80\u5355",color:"#46B70E"},2:{label:"\u9002\u4E2D",color:"#165DFF"},3:{label:"\u56F0\u96BE",color:"#EE6F1A"}},se=hn=>hn&&parseFloat(hn.toFixed(1)),ve=(hn,vn)=>{var Tn,br,_r;switch(vn.type){case"init":return vn.payload;case"updateBaseInfo":return bt(Gt({},hn),{examination_bank:vn.payload});case"deleteQuestionType":{const{item_types:nr}=hn,ir=nr.filter(kn=>kn.item_type!==vn.payload);return hn.examination_bank.question_count=se(ir.reduce((kn,er)=>kn+er.item_bank_count,0)),hn.examination_bank.total_score=se(ir.reduce((kn,er)=>kn+er.total_score,0)),bt(Gt({},hn),{item_types:ir})}case"setQuestionType":{const{item_types:nr=[]}=hn,ir=nr.map(er=>er.item_type),kn=nr.filter(er=>vn.payload.includes(er.item_type));for(const er of vn.payload)ir.includes(er)||(er==="PRACTICAL"?kn.push({item_type:er,contents:[],item_banks:[],item_bank_count:0,item_bank_num:0,item_type_text:ae[er],random_rule_type:it.Shixun,score:0,total_score:0}):kn.push({item_type:er,contents:[],item_bank_count:0,item_type_text:ae[er],score:0,total_score:0}));return bt(Gt({},hn),{item_types:kn})}case"updateItemTypes":return bt(Gt({},hn),{item_types:vn.payload});case"deleteRule":{const nr=(0,Pe.cloneDeep)(hn),ir=nr.item_types.find(er=>er.item_type===vn.payload.itemType),kn=ir.contents.find(er=>er.id===vn.payload.id&&er.is_share==vn.payload.is_share);return ir.contents=ir.contents.filter(er=>er!==kn),((Tn=ir.contents)==null?void 0:Tn.length)===0&&(ir.random_rule_type=[]),ir.item_bank_count-=kn==null?void 0:kn.quanlity,nr.examination_bank.question_count-=kn==null?void 0:kn.quanlity,ir.total_score-=(kn==null?void 0:kn.quanlity)*ir.score,nr.examination_bank.total_score-=(kn==null?void 0:kn.quanlity)*ir.score,ir.total_score=se(ir.total_score),nr.examination_bank.total_score=se(nr.examination_bank.total_score),nr.contents=ir.contents,nr}case"changeQuestionNum":{const nr=(0,Pe.cloneDeep)(hn),ir=nr.item_types.find(Si=>Si.item_type===vn.payload.itemType),kn=(br=ir==null?void 0:ir.contents)==null?void 0:br.find(Si=>Si.id===vn.payload.id);if(vn.payload.itemType==="PRACTICAL")return vn.payload.num&&(nr.examination_bank.question_count=nr.examination_bank.question_count-ir.item_bank_count+vn.payload.num,nr.examination_bank.total_score=se(nr.examination_bank.total_score-ir.total_score+vn.payload.num*ir.score)),vn.payload.score&&(nr.examination_bank.total_score=se(nr.examination_bank.total_score-ir.total_score+vn.payload.num*ir.score)),ir.item_bank_count=vn.payload.num,ir.total_score=se(ir.item_bank_count*ir.score),nr;nr.examination_bank.question_count=nr.examination_bank.question_count-(kn==null?void 0:kn.quanlity)+vn.payload.num;const er=ir.contents.find(Si=>Si.id===vn.payload.id&&Si.teacher_group_id===vn.payload.teacher_group_id);er.quanlity=vn.payload.num;let Pr=0,Gr=0;for(const Si of ir.contents)Pr+=Si==null?void 0:Si.quanlity,Gr+=(Si==null?void 0:Si.quanlity)*ir.score;return nr.examination_bank.total_score=se(nr.examination_bank.total_score-ir.total_score+Gr),ir.item_bank_count=Pr,ir.total_score=se(Gr),nr}case"changeQuestionScore":{const nr=(0,Pe.cloneDeep)(hn),ir=nr.item_types.find(kn=>kn.item_type===vn.payload.itemType);return ir.score=vn.payload.score,ir.total_score=se(ir.item_bank_count*ir.score),nr.examination_bank.total_score=se(nr.item_types.reduce((kn,er)=>kn+er.total_score,0)),nr}case"editRule":{const nr=(0,Pe.cloneDeep)(hn),ir=nr.item_types.find(kn=>kn.item_type===vn.payload.itemType);return ir.contents=vn.payload.tableData.map(kn=>bt(Gt({},kn),{item_type:vn.payload.itemType,random_rule_type:vn.payload.randomRuleType})),ir.random_rule_type=vn.payload.randomRuleType,ir.item_bank_count=ir.contents.reduce((kn,er)=>kn+(er==null?void 0:er.quanlity),0),ir.score=ir.score||1,ir.total_score=se(ir.item_bank_count*ir.score),nr.examination_bank.question_count=nr.item_types.reduce((kn,er)=>kn+er.item_bank_count,0),nr.examination_bank.total_score=se(nr.item_types.reduce((kn,er)=>kn+er.total_score,0)),nr}case"addShixun":{const nr=(0,Pe.cloneDeep)(hn),ir=nr.item_types.find(kn=>kn.item_type==="PRACTICAL");return ir.item_banks=vn.payload.shixunList,nr.examination_bank.question_count=nr.examination_bank.question_count+1,ir.item_bank_num=ir.item_banks.length,ir.item_bank_count=ir.item_bank_count||1,ir.score=ir.score||1,ir.total_score=ir.total_score||ir.score*ir.item_bank_count,nr.examination_bank.total_score=(_r=nr==null?void 0:nr.item_types)==null?void 0:_r.map(kn=>kn.total_score).reduce((kn,er)=>kn+er),nr}case"deleteShixunQuestion":{const nr=(0,Pe.cloneDeep)(hn),ir=nr.item_types.find(kn=>kn.item_type==="PRACTICAL");return ir.item_banks=ir.item_banks.filter(kn=>kn.id!==vn.payload.shixunId),ir.item_bank_num-=1,ir.item_bank_count>ir.item_bank_num&&(ir.item_bank_count-=1,ir.total_score-=ir.score,ir.total_score=se(ir.total_score)),nr}}};var ie=E(41663),fe=E(30935),Ve=Object.defineProperty,It=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Tt=(hn,vn,Tn)=>vn in hn?Ve(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Je=(hn,vn)=>{for(var Tn in vn||(vn={}))gt.call(vn,Tn)&&Tt(hn,Tn,vn[Tn]);if(Ke)for(var Tn of Ke(vn))wt.call(vn,Tn)&&Tt(hn,Tn,vn[Tn]);return hn},tt=(hn,vn)=>It(hn,Qe(vn)),Ht=(hn,vn,Tn)=>new Promise((br,_r)=>{var nr=er=>{try{kn(Tn.next(er))}catch(Pr){_r(Pr)}},ir=er=>{try{kn(Tn.throw(er))}catch(Pr){_r(Pr)}},kn=er=>er.done?br(er.value):Promise.resolve(er.value).then(nr,ir);kn((Tn=Tn.apply(hn,vn)).next())}),Dn=({courseOptions:hn,setCurrentKey:vn,loading:Tn,form:br})=>{var _r;const{data:nr,disabled:ir,dispatch:kn}=(0,y.useContext)(pt),er=(0,Ee.useParams)(),Pr=(0,y.useRef)(!0),[Gr,Si]=(0,y.useState)(!1),Qi=(0,y.useMemo)(()=>{var oo,ro,Va,fa,Wr;if(!hn.length||!nr)return;const Ni=(oo=nr==null?void 0:nr.examination_bank)==null?void 0:oo.course_discipline_id,Zi=((ro=nr==null?void 0:nr.examination_bank)==null?void 0:ro.time)===-1?void 0:Pr.current?er.id?(Va=nr==null?void 0:nr.examination_bank)==null?void 0:Va.time:((fa=nr==null?void 0:nr.examination_bank)==null?void 0:fa.time)||60:(Wr=nr==null?void 0:nr.examination_bank)==null?void 0:Wr.time;return Pr.current=!1,tt(Je({},nr.examination_bank),{time:Zi,course_discipline_id:Ni})},[nr,hn]);return(0,y.useEffect)(()=>{br.setFieldsValue(Je({},Qi))},[Qi]),y.createElement(ke.Z,{spinning:Tn,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},y.createElement("div",{className:ge.formWrap},y.createElement(we.default,{form:br,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:Qi||{difficulty:2,time:60},onValuesChange:(oo,ro)=>{const Va=Je(Je({},nr.examination_bank),ro);kn({type:"updateBaseInfo",payload:Va})}},y.createElement(we.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:ge.baseLineHeight,rules:[{required:!0,validator:(oo,ro)=>{var Va;return((Va=ro==null?void 0:ro.replaceAll(" ",""))==null?void 0:Va.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},y.createElement(Fe.default,{maxLength:60,className:ge.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),y.createElement(we.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:ge.baseLineHeight},y.createElement(fe.q,{data:{course_discipline_id:(_r=nr==null?void 0:nr.examination_bank)==null?void 0:_r.course_discipline_id},style:{height:46},showLinkButton:!1})),y.createElement("div",{className:ge.concat},"\u6CA1\u6709\u5408\u9002\u7684\u8BFE\u7A0B\uFF1F",y.createElement("a",{target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B")),y.createElement(we.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ge.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},y.createElement(de.ZP.Group,{disabled:ir,className:ge.radiogroup},y.createElement(de.ZP.Button,{className:ge.easy,value:1},"\u7B80\u5355"),y.createElement(de.ZP.Button,{className:ge.medium,value:2},"\u9002\u4E2D"),y.createElement(de.ZP.Button,{className:ge.hard,value:3},"\u56F0\u96BE"))),y.createElement(we.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ge.baseLineHeight},y.createElement(We.Z,{align:"middle"},y.createElement(we.default.Item,{name:"time",noStyle:!0},y.createElement(Te.Z,{className:ge.baseFormItem,min:1,disabled:ir,size:"large",max:9999,style:{width:220},placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),y.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),y.createElement(we.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},y.createElement(Fe.default.TextArea,{rows:6,disabled:ir,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),y.createElement("div",{className:ge.fixedBottom},y.createElement(ft.ZP,{className:`${ge.cancelBtn} mr5`,onClick:()=>{er.id||window.location.href.indexOf("randompaper")>-1?Ee.history.push("/paperlibrary"):Ee.history.push(`/classrooms/${er.coursesId}/exercise`)}},"\u53D6\u6D88"),y.createElement(ft.ZP,{className:`${ge.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>Ht(void 0,null,function*(){if(yield br.validateFields(),!er.id&&!er.coursesId){const oo=yield qe(nr);oo.status===0&&(Ee.history.replace(`/randompaper/edit/${oo==null?void 0:oo.examination_bank_id}?type=settings`),vn("settings"))}else vn("settings")})},"\u4E0B\u4E00\u6B65")),y.createElement(ie.Z,{open:Gr,onCancel:()=>{Si(!1)}}))},yn=E(62957),Lt=E(5269),cn={flex_box_center:"flex_box_center___NXYwj",flex_space_between:"flex_space_between___Oy2UZ",flex_box_vertical_center:"flex_box_vertical_center___ybBar",flex_box_center_end:"flex_box_center_end___yyQPf",flex_box_column:"flex_box_column____kuXY",questionInfo:"questionInfo___U9mnu",label:"label___PP7Ng",content:"content___PUXFl",leftPart:"leftPart___uoQeo",rightPart:"rightPart___mCG7H",dragItem:"dragItem___djmPG",blackText:"blackText___KqEaU",greyText:"greyText___VamKm",iconWrapper:"iconWrapper___o1C0y",contentArea:"contentArea___Fj7D0",dragging:"dragging___mX3Il",hidden:"hidden___KWDLK",dragIcon:"dragIcon___yPuB3",deleteIcon:"deleteIcon___go29y",disabled:"disabled___uSK9k",challengeNameWrapper:"challengeNameWrapper___DFjRy",challengeName:"challengeName___m7v0x",shixunPreviewFooter:"shixunPreviewFooter___iaciG",shixunInfoWrapper:"shixunInfoWrapper___aSihg",shixunInfo:"shixunInfo___WYBm1",btnToDetail:"btnToDetail___WVmtj",fixedBottom:"fixedBottom___oeMSX",cancelBtn:"cancelBtn___ac73V",confirmBtn:"confirmBtn___sYh2O",previewBtn:"previewBtn___c2uQz",setScoreModalTable:"setScoreModalTable___kPddX",title:"title___lP1E2",tipcontent:"tipcontent___tV6uE",name:"name___YLyPW",tip:"tip___FYIzt",info:"info___rSdr9",img:"img___ft7eS"},Xt=E(90736),Xe=E(70467),Nt=E(62673);const dn=[{label:"\u5355\u9009\u9898",value:"SINGLE"},{label:"\u591A\u9009\u9898",value:"MULTIPLE"},{label:"\u586B\u7A7A\u9898",value:"COMPLETION"},{label:"\u5224\u65AD\u9898",value:"JUDGMENT"},{label:"\u7B80\u7B54\u9898",value:"SUBJECTIVE"},{label:"\u7F16\u7A0B\u9898",value:"PROGRAM"},{label:"\u7EC4\u5408\u9898",value:"COMBINATION"},{label:"\u5B9E\u8BAD\u9898",value:"PRACTICAL"},{label:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM"}];var at=({open:hn,onCancel:vn,onOk:Tn})=>{const{data:br,dispatch:_r}=(0,y.useContext)(pt);(0,y.useEffect)(()=>{if(hn){const{item_types:kn}=br||{};ir(kn==null?void 0:kn.map(er=>er.item_type))}},[hn,br]);const[nr,ir]=(0,y.useState)([]);return y.createElement(yn.default,{title:y.createElement("div",null,"\u9898\u578B\u8BBE\u7F6E",y.createElement("span",{className:"c-grey-333",style:{fontSize:14,fontWeight:400}},"\uFF08\u901A\u8FC7\u52FE\u9009\u53EF\u5BF9\u9898\u578B\u8FDB\u884C\u6DFB\u52A0/\u5220\u9664\uFF09")),closable:!0,centered:!0,open:hn,onCancel:vn,onOk:()=>Tn(nr)},y.createElement(Nt.default.Group,{value:nr,onChange:kn=>ir(kn)},y.createElement(We.Z,{gutter:[0,20]},dn.map(kn=>y.createElement(Lt.Z,{key:kn.value,span:6},y.createElement(Nt.default,{value:kn.value},kn.label))))))},Rt=E(70858),en=Object.defineProperty,Pt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,bn=(hn,vn,Tn)=>vn in hn?en(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,jn=(hn,vn)=>{for(var Tn in vn||(vn={}))Ut.call(vn,Tn)&&bn(hn,Tn,vn[Tn]);if(Pt)for(var Tn of Pt(vn))Yt.call(vn,Tn)&&bn(hn,Tn,vn[Tn]);return hn},Zn=({open:hn,onCancel:vn,onOk:Tn})=>{const{data:br}=(0,y.useContext)(pt),[_r,nr]=(0,y.useState)();console.log("--xxx-",_r),(0,y.useEffect)(()=>{hn&&nr((0,Pe.cloneDeep)(br))},[hn,br]);const ir=(0,y.useMemo)(()=>{var kn;let er;return er=(kn=_r==null?void 0:_r.item_types)==null?void 0:kn.map(Pr=>Pr.total_score).reduce((Pr,Gr)=>parseFloat(Pr)+parseFloat(Gr)),er==null?void 0:er.toFixed(1)},[_r]);return hn?y.createElement(yn.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:hn,width:640,centered:!0,closable:!0,onCancel:vn,onOk:()=>{Tn(_r)}},y.createElement("div",{className:"c-black mb20"},"\u603B\u5206",y.createElement("span",{className:"ml10 c-light-primary"},ir)),y.createElement(Rt.default,{columns:[{title:"\u9898\u578B\u540D\u79F0",dataIndex:"item_type_text",width:130},{title:"\u5C0F\u9898\u603B\u6570",dataIndex:"item_bank_count",width:130},{title:"\u9898\u578B\u603B\u5206",dataIndex:"total_score",width:130},{title:"\u64CD\u4F5C",render(kn,er){const{score:Pr,item_type:Gr}=er;return y.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((er==null?void 0:er.item_type)==="PRACTICAL","\u9898"),y.createElement(Te.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(er==null?void 0:er.item_bank_count)===0,max:100,onChange:Si=>{const Qi=_r,oo=Qi.item_types.find(Va=>Va.item_type===Gr);oo.score=Number(Si);const ro=Si*oo.item_bank_count;oo.total_score=ro&&Number(ro.toFixed(1)),Qi.examination_bank.total_score=Qi.item_types.reduce((Va,fa)=>Number(Va)+Number(fa.total_score),0),nr(jn({},Qi))}}),"\u5206")}}],className:cn.setScoreModalTable,dataSource:_r==null?void 0:_r.item_types,rowKey:"item_type",pagination:!1})):null},Ot=E(31691),jt=E(82326),on=E(18287),En="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAtFJREFUWEftWL9rU1EYPffFpCCKEEEJVUQHB10qAUHFHwguDg4ORRDq4uDg4CBIJ6GD0D/B3UEFJ5cugjbQChIqokWKClVrFDGIg2B8yZX3Xl/z/O5LzvfyKhTJXV7g/jrfOfc797sx1toCNnAzQ4A51RkymJNA/CcMvpoYhf0xDWtPwqICWEKM+QSYGgojt3Hw3mweFjmD9YlR+N8WAJSdjYwBrAWCb1oL+jzvMbzSFKoPBgLKAc6dugPbuRDtHzAXgGEMxmjjsXEAYr4MMOw2DcA8wcjWG6g+XOEAZ8c+wNpKtCXZMI+WMn6DJrbsOMQBPtrr9ySM4ZX9LEApkOfd5QBntvvhuhqFswKOz2/wDQWSZ9o0FADLfji5fBTYPwmUduYVMmV+IrLWF2DpFtCcizDTu3hmFeCBKaC4LR2cJpvjMZrwfn8HFm8qATan/bWslWckq6SuTyWcIfi5allrkmsY/DoZSZzanCwQo0REAwTIJf583e9txNIWic9p5E2OCQilZ7BxzY/8L60RSqRkcgnHqKXERgFw5eq/80EagIbB91cSPigilMabNWmYD6okXr7cZdABIAE7Gv6dpfIuZxJDI/G7S32ymJx6CoDP50ny5mIXIJPQ2Y8kEVVEw+DSeCKLWbkldlQA6JZwaZe9BuDr8xkAZjU6Pp5LvHiu9xmkWej6Wt8KXOK1VuGDL89272IaMLv6yAID3cUvzvS5SZyQyZOAZZl7hrnEz0/rjZoxzAhOyUEOcOFEH6MWhDGCWAApPs8B1o/p68GsANgbRVVRPzu8fvVg5gA0xcLTsV/wCtF/iKz6cABkfBfL+Z12m0tc2/cWXnFPODf3zZCxmOj4yxzg/O4qWv48LDwHIHOZrO/i5HoGHRQ3HeEAg0m1ShWtn/dh27tgUAilTqOUMcyqm7AfbZjCR5Q2j+N4o64DOMDhXq8pQ4B5mdzwDP4B5kHmZrL/eyAAAAAASUVORK5CYII=",tn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4RJREFUWEftWEtrE1EYPXfSh5VWSlMfNSi4sokLK30pWtuKIChVVBBBWpfiRhcKghii7tp/4FrBBxREXbhQ0Bj7gqokahe+kNZWqa21tLGtk7kymY5J79yZL5NUKNLZZHHnzj33fOec+90wzrkHS/hhywBzrM4ygzkSiP+EwTdtPvDJdnDeCI4KgBPEsGGAPYOn8Bq23A7nwiLNYH+bD+rYSwBlloUYAzgH9F/Zo48pyhMoBVdR3ZkVUBpgV9MNcO24sb7OnA6GYtBEa75rbkCYL24wOcxGAPYUhSUXUH3/Cw0wXDUIziuMJYkFc6mluH+GcRSv2UYDfLxJtSWMwiuOUxsUC6Qot2iAD71q8ruZVNgtYFO/+m+yQKKm2UgGAMvU5GTvbqDyClC4LmUMuw+LTFiYdNDC7FdgIASMG57KHGDNdSB/tVyKltIJAESmRHziBmZHgf5WlwBrb6bihFrQmkdpCSDRiiyu+ozgyJzBujtpy1Jiy9XOAPqOuQRY35mKP8qdFvELBFJu1qH1HnUL8K59iV0DFtwqc3PPIQnAH+3noGmXAK1k4YnhxoaS8joqQgFYOaBUAlBSedbTIgCcuLwBc78+SW3qWnJUzkjG8/yAZ3Nqd937BYDfghvB4x+NQJ5vAMycozRvOVOF+Rk1FaVAkQEquX73PkmJh89EwXngn5+5dhsuPgwopYYZu/ZKAA6dDkLTQhaAlhKLDAsvuJWE+X5RDbCi1jBjpEkCcPCsH4mpmKXEVIksbZiAkDxz5zWZVwaUnjS6pkiDTcx8aI2CscCCRtStJqmjzKmtLD8FeLxAZKcNwPcnguCJ0II1SAYERJSJnUxX0gysagbC2+0YbPNDnY79rZrk6LR+n0DkRsP5a4GK80C4xuEkeXswCvCAfaOawV3E1K2+DGUaUeO+i4AlB9NpeX0gCGihpA6zeahcpBB7W4Bo0IHBgSN+zP2MGVuX1ZiihHKJOC5IpMAHfH7gAFAfetUYBUcgGwIXZc73d0BixqEffNGQ5mYi1yjCSFdLKhIfA6ZHHQBGm/2YmYpJ2bAEN4nAmVRZjKmzwOQQcWnq3focnNdTBwV9n88yhuKj95xb/i5/HdSpRwBbmfpXIRPTCIS5ycF0U3o8O+g7SWR9FebiHeCJXQArkNdKYIiqODXO2G9A6cCeiRANcFEsmf1HlgFmz50xc8kz+AfHHTJwrKNsNwAAAABJRU5ErkJggg==",In="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABWlJREFUWEftV1tsVEUY/ubspUu3W9mWGlttwXqJVRNBbqIFDbyA8mCCkAYtpEaIGBODhBCECiG+UE1EnzTempYqtSAE45saBMX40JC0IRojpd1GKM1uW7bd7V7OOWPmnD3bPTNndxYbE2I6L2dzdubMN9/3/ZchlFIXbuNB5gDOUp05BmdJIP4fDPZcxt2xaRzVgadBUQ3QDDEE5m/2zBkE1whwoYTg461LcX42LEoZZOCiMXoJoBUCHEIASgH2dBqUgijKORfBkW3/EqgUYNsPieMAmtj+Fhb2NIfFXvaFnUhCQBlI6wD8dGcBrisEP5V7fft2NuJvKcC9p6PDoLSa7cwTJgKejZj8WjLm93iWSAG2tI+qEsdlvywl6BZPqBByQgpw44fDKskEAQUF+82e5rBrxCvGz7fWZr+XkZ/ZwFTIbgkKel0K8LkPhlW2uLbSh9UNQfh9btGLIrIZ7E7WyDkaf8xYQsX538cwHE4YgKUAnz0WMgC+/EwNSn1uR5MVEcxZ/xbjUgbyi3PXDNNLAW44FjIk3rOxNpvtCseuCEFCMGcUc/2734YMFaQA178fUhlDB56vy+4s27AYlgrOocA7Z0IG60UDPLypLm8BEQBncnc2X3ITijng4ZMhM8vK+kHGIIuyI5sXZgsGn//ECmOvgMJ8rgA5/f92T8hM8rkAX/psZI+u4yClesAWhhLNhPTBpSMhfeSkF7eLoP5OHzY8FoSizGzU+vWQmXosgLvPTNTGJpNXi8lvPF4hPwoZW0YZsKw+gMWLSrMV1ASYE8V7e27WTUwnB7IzsrFVjOXzdDVWOpfgY+YO+j3YvKrCWMEkP9g9ZHjeJvErnaN9oHhYgCSrYQ5F2echKPcpSGkUE9PU3vXkMeWWJxcg6HcZAA+cGDIosgHc0THaqun0EN8ViFFqdij5SlTT8jKsa5gHJdPF/DaQwCcXotkCme+8y+/zY1m937D/W19yHmSs7eoeb0gm0v1Wi2QBEGpuAcm8buCjF6tmWqyMHPu/iWAkahQlseZm0lKw1I2mRlPm/V2D9iCxZG1pH+2j4GR2KB1lJaaE8TSTUDf88kiNB2sfKsWCMgWlXgVVARfG4xp+/iuBU72xmca7gGW2NlYaMu/vYgxyaYaBbGkPt+pUP5Trw1xGa4Nu7FhdjkULPBlDUwxGVLgVgsFIGj/+MY0rYdXwzzwvQTzFOiDHi4Fj9K14wI+V9/uxr3PQuZLs6hxviKnpfttVI+fERzdVoPoOsWmYiGt4ozsCncnFA+JeFGp0KwJuNK+pwL6OPBKzYzV/npHZoZN/74UK3OUAMJ7S8VpXBJoRsPYgEhBLskLzmkq0nR7OX+q2t4fNaHYYtUEXdq4O4N6MxGzKnzfSiExpqJnvRm8oiYtXkhiJasZqj8vMMCqzaebAsvbsiQf9OHXxRv5+kEXzZFzvt+5qgiQEmO8jhseSGjAW0w0wJW7g8Tovnqovgb+EGO+XLvTCRYBITEd3bxy/DqREQrnmojLgRt/VMaN7z9ssNLeP94GPZotR2d2CECy5x40315XZNIgldbz61U15aSLASHgSqqblB9hyfKpV07WMzHaXi3lS3NPrAnav9ePRGjOgVI3i5KUEvrucEm6HfFix2h6dnMbNqen8AHd1pxpiyWS/mS0lYSncj2cWVJURBHwEI1Ed8VQ+8sSoSasqro9OFL40beuM/UIpXSnczvjbF387484jK+VODDL/3QiPny3YsG7vGFsRT+rfE5BSC6QjB7IWWfY/91FrrwRRV0k76i2fhhcnk2obqN4IQrxOAGWevEV8UIiS1iltO/t69SEpQHnI/bcz5gDOlt/bnsF/AOXAMnuF/cdAAAAAAElFTkSuQmCC",pn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABpxJREFUWAntWE2IHFUQrtfzk5nNbrKbRGPcRSU/oIEkmERjMAQhCBIjKBpFEBER9OZNL4IevOhFbyGHRA9BhKBeouJFIkTNwaxGg16ikN1k0WR3M5ndnf/ptr56r7p7+s1mkYCHkILpev1e1VdfVb3X0zNEt+Qmr4Dpl9+xs9FYq0XvR0SPUETriC9WYI6x72YML0T0By99Gxj68KWd5k/ndEPKiwRy7RadZSKrDEdDVGiRxfnZ9YjJM1MTUScydIwn371Roh7BD042P2Hg5xHRxRON+6R6WlE7m1wzGRjT4ZnTjNOFjQkYIbQ68UlGURhSYIIpTu7k6N7CkWeN6XoE3zoxP8WMuK22kemG6ngxel4CWQeubpw1AmQrkFpnyx9HVg/uy8MuLbPV5uJ7DuloUDhlA8hWSAxS8SSEZy6zi152V2pX3/YJzjVlH8EtYkTDUaAhOobuJ0vZL7XuJWzoKY9gtd6JY5eKAQ0PFOL7/2NQqbWp0eKNCjFmk0fQVsvQ2Opl9Pj2NZQPeGdnWpu5jbtu68zA2uV4QsIll+sAdPigfPXzNF2cafKBCo1HUFF2bRiikQEmx/If9042H49vdm9qTKsDenD9EE1O263mbaaDhy7FeWf3jBe5F5mXe5+b+gyFhiy17rWKK+NVcGQ5ppRjpheZW680/oQQSy5LAiSmGHGpPYKyB/WUZnurvFUDJD32eodFJQXjrGAN4nQ2Hq/4BGHsgtrHChKxAH38BT6+wED8LUCOt/CejSW6czhPF2badPqvJoUO2/o4ew0Y+yaE+xBkVwkEniBrd5KScEsOnwNo1TCjY5fQ6/uG6b51RXWlLWMNOvxdNaZD/J2GEKLF340dP+xZe0xjCPBxQTmIjqHtx67DRIiKDTuDUMb+3jsKPeQQYufdJRrjaiqezR/xgKGYVgM/5ItHEJZog22FHSuCEOZ1DQAbjPvZryz1gWYeQ2XMW0ahBOEYrPFhuFhjDDuvxWBtATi4GCUat7Ls5j0DVwW8tYyOeNBUa4Z0/nLbJQ8QJGu1XlMvd2LnoaQN4NQryBxi9YbbCrRpbYGa7Yh+mWzS7EKXxlbl6ZWHV9DalTn6+twC7V5f4q/LHE3Pd+nIqSrV2VYF1dfvd8xl97yts1o7/eLRf7B1RbSWCaSd5zdmem3vCtrFwVVanYjOTDTpgXuW0e9TLfr4hzmaWQhlew4WDc01JbwUfTF8zGtM4GLcp4JYSiRLDisHtg70kMNcMW+kWsfPzNOJX2uYEkELQQ6CVwCQcK8C8ThNGHYaE9ojCAPZu6xxOBEAGqLjvZvKdqLPFb7qn11WcjEhDNheW6b40BAsewR1EQYIJKApB8ytkJMIC1/WDuX8STfjYJIK4fWfA+BngIiOEdSJ9ywAAQAJmBvrhM5NzCbvjAqk+mKlI4kJDjuoRuI6hsYHotreKTNoe8I9grZmzkDqx4YwFgerPxtfYGAXwSLLFXMHdwzS09uXU6nAGFwe+ZpEmVJjzOm8aqwLpNM69vqx9ck337G8AML8BTsQQKHNL7CX50KavNqljbfnaYDfuiHnptr03jfX6O9qSAe2DNCjm8s034hocrbLEIa2jRVp22iRupxXpY7kBK1HG7wcY4a1EHerMqmXFz6aZW9bHWTBCbmHaTLGHATrq5YbarSJai2usbMt86+EJ7aW6bHNJZq61qU5JrplNPnp8OlPNfryHL8xS1/QFRsPsBg5eMH3WyzRYcJ5S0ZWy5grqho/cjG+WjdU51+/adsG3x8fb9AbX1TlEZMmx8D0zP1ld9A4TioeyTcvYoOWxfcJCrEcB0T3Edhqm5clvtg4TRLjGX4c/jblH6h8ztCawRwFjI1tBI0PyKoW4nzvPWZ03zE7tgGhRMf1tx2xPHt6wlNI2a0b/g/k/BV9hgiUXOq8HS5ei43iPSQJ8r6xiVocv4JBwJ79K5WtEOx0Tny0XdD8QfXPT0f0+dmWvKWAHfbqoe8b1MafGpKN0xiLn2r2z+X0GS6JyeW5o5VmPhfIW2b2y5xduDh44CABFqhUBa9nP1xGWw1dqoRUcy8M6JD6CF7mVLbDqOW1uF5vjpeK+YfEYQkCWYYZc4HQyxU+6Veqeme1Jpuc4t4CNFqdcY9g1yzbX2/WL+QCM9QLhzstl90/S1fUdg2FgWQT6EVLbNHpThjNhaa8Hz6e7DgcFVbPTxwNcrk9JgqH9bBkCWYDZPh7uNmWanuhVfhIVaIwOjUzeNfLZ141XPdbcpNX4F/ikyqlsA/6bwAAAABJRU5ErkJggg==",On={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},fr=E(46861),Qn=Object.defineProperty,cr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,gr=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Pn=(hn,vn,Tn)=>vn in hn?Qn(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,$n=(hn,vn)=>{for(var Tn in vn||(vn={}))Hr.call(vn,Tn)&&Pn(hn,Tn,vn[Tn]);if(gr)for(var Tn of gr(vn))Zr.call(vn,Tn)&&Pn(hn,Tn,vn[Tn]);return hn},dr=(hn,vn)=>cr(hn,Cr(vn)),hr=(hn,vn,Tn)=>new Promise((br,_r)=>{var nr=er=>{try{kn(Tn.next(er))}catch(Pr){_r(Pr)}},ir=er=>{try{kn(Tn.throw(er))}catch(Pr){_r(Pr)}},kn=er=>er.done?br(er.value):Promise.resolve(er.value).then(nr,ir);kn((Tn=Tn.apply(hn,vn)).next())});const _t=(hn,vn,Tn)=>hn.map(br=>br.key===vn?$n($n({},br),Tn):br.children?dr($n({},br),{children:_t(br.children,vn,Tn)}):br),Qt={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},ct=(hn,vn,Tn)=>hn.map(br=>{var _r;const nr=br==null?void 0:br.tag_disciplines.map(kn=>{const er=kn==null?void 0:kn.difficulty_count.map(Pr=>({label:Pr==null?void 0:Pr.name,value:Qt[Pr.name]}));return{title:ue(vn)===it.All&&er.length>0?y.createElement(We.Z,{justify:"space-between"},y.createElement(Lt.Z,null,`${kn.name}\uFF08${kn.child_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}_${kn.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:er})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}_${kn.id}`,"diffNum"],initialValue:kn==null?void 0:kn.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}_${kn.id}`,"extra"],initialValue:dr($n({},br),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${kn.name}\uFF08${kn.child_count}\uFF09`,key:`${br.id}_${kn.id}`,name:kn.name,parentName:br.name,item_banks_count:kn.child_count,icon:null,isLeaf:!0,checkable:ue(vn)===it.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=br==null?void 0:br.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Qt[kn.name]}));return{title:ue(vn)===it.FileFolderAndDiff&&ir.length>0?y.createElement(We.Z,{justify:"space-between"},y.createElement(Lt.Z,null,`${br.name}\uFF08${br.item_banks_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ir})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}`,"diffNum"],initialValue:br==null?void 0:br.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}`,"extra"],initialValue:dr($n({},br),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${br.name}\uFF08${br.item_banks_count}\uFF09`,key:`${br.id}`,name:br.name,item_banks_count:br.item_banks_count,icon:kn=>kn.expanded?Tn==="0"?y.createElement("img",{src:tn,className:On.folderIcon}):y.createElement("img",{src:In,className:On.shareFolderIcon}):Tn==="0"?y.createElement("img",{src:En,className:On.folderIcon}):y.createElement("img",{src:pn,className:On.shareFolderIcon}),isLeaf:!br.have_child&&!((_r=br.tag_disciplines)!=null&&_r.length),checkable:ue(vn)===it.OnlyFileFolder,disableCheckbox:br.item_banks_count===0,children:br.children.length?ue(vn)===it.All||ue(vn)===it.FileFolderAndKnowledge?[...ct(br.children,vn,Tn),...nr]:ct(br.children,vn,Tn):[]}}),Zt=(hn,vn,Tn)=>hn.map(br=>{var _r;const nr=br==null?void 0:br.tag_disciplines.map(kn=>{console.log("tagItem:",kn);const er=kn==null?void 0:kn.difficulty_count.map(Pr=>({label:Pr==null?void 0:Pr.name,value:Qt[Pr.name]}));return{title:ue(vn)===it.All&&er.length>0?y.createElement(We.Z,{justify:"space-between"},y.createElement(Lt.Z,null,`${kn.name}\uFF08${kn.child_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}_${kn.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:er})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}_${kn.id}`,"diffNum"],initialValue:kn==null?void 0:kn.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}_${kn.id}`,"extra"],initialValue:dr($n({},br),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${kn.name}\uFF08${kn.child_count}\uFF09`,key:`${br.id}_${kn.id}`,name:kn.name,parentName:br.name,item_banks_count:kn.child_count,icon:null,isLeaf:!0,checkable:ue(vn)===it.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=br==null?void 0:br.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Qt[kn.name]}));return{title:ue(vn)===it.FileFolderAndDiff&&ir.length>0?y.createElement(We.Z,{justify:"space-between"},y.createElement(Lt.Z,null,`${br.name}\uFF08${br.item_banks_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ir})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}`,"diffNum"],initialValue:br==null?void 0:br.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(we.default.Item,{noStyle:!0,name:[`${br.id}`,"extra"],initialValue:dr($n({},br),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${br.name}\uFF08${br.item_banks_count}\uFF09`,key:`${br.id}`,name:br.name,item_banks_count:br.item_banks_count,icon:kn=>kn.expanded?Tn==="0"?y.createElement("img",{src:tn,className:On.folderIcon}):y.createElement("img",{src:In,className:On.shareFolderIcon}):Tn==="0"?y.createElement("img",{src:En,className:On.folderIcon}):y.createElement("img",{src:pn,className:On.shareFolderIcon}),isLeaf:!br.have_child&&!((_r=br.tag_disciplines)!=null&&_r.length),checkable:ue(vn)===it.OnlyFileFolder,disableCheckbox:br.item_banks_count===0,children:[...Zt(br.children,vn,Tn),...nr]}});var Kt=({ruleValue:hn,defaultData:vn,setSelectData:Tn,currentItemType:br,selectData:_r})=>{const[nr,ir]=(0,y.useState)("1"),[kn,er]=(0,y.useState)(!0),[Pr]=we.default.useForm(),[Gr,Si]=(0,y.useState)([]),[Qi,oo]=(0,y.useState)("all"),ro=(Jn,vr,Fr)=>{const{checkedNodes:ea}=vr;console.log("type:",Fr,ea,_r),Fr==="0"?(fa(Jn),ue(hn)===it.OnlyFileFolder?(Tn(jr=>dr($n({},jr),{my:ea.map(or=>({id:or.key,group_id:or.key,group_name:or.name,item_bank_num:or.item_banks_count,folderType:"0",quanlity:1}))})),zr(ea.reduce((jr,or)=>jr+or.item_banks_count,0))):(console.log(ea),Tn(jr=>dr($n({},jr),{my:ea.map(or=>{const[pa,ma]=or.key.split("_");return{id:or.key,tag_discipline_name:or.name,group_id:pa,tag_discipline_id:ma,folderType:"0",group_name:or.parentName,item_bank_num:or.item_banks_count,quanlity:1}})})),zr(ea.reduce((jr,or)=>jr+or.item_banks_count,0)))):(Ni(Jn),ue(hn)===it.OnlyFileFolder?Tn(jr=>(console.log("pre:",jr),dr($n({},jr),{public:ea.map(or=>({id:or.key==="0"?"00":or.key,teacher_group_name:or.name,teacher_group_id:or.key,folderType:"3",item_bank_num:or.item_banks_count,quanlity:1}))}))):Tn(jr=>dr($n({},jr),{public:ea.map(or=>{const[pa,ma]=or.key.split("_");return{id:or.key==="0"?"00":or.key,tag_discipline_name:or.name,teacher_group_id:pa,tag_discipline_id:ma,folderType:"3",teacher_group_name:or.parentName,item_bank_num:or.item_banks_count,quanlity:1}})})),zr(ea.reduce((jr,or)=>jr+or.item_banks_count,0)))},[Va,fa]=(0,y.useState)([]),[Wr,Ni]=(0,y.useState)([]),[Zi,co]=(0,y.useState)([]),[_o,Ai]=(0,y.useState)([]),[ho,Di]=(0,y.useState)([]),[ya,si]=(0,y.useState)([]),[pi,Ei]=(0,y.useState)(!1),[Bt,Jt]=(0,y.useState)(!1);function rn(){return hr(this,null,function*(){let Jn=yield(0,Ge.ZP)("/api/teach_group_shares.json",{method:"get"});Jn&&Si(Jn==null?void 0:Jn.groups)})}(0,y.useEffect)(()=>{rn()},[]);const An=Jn=>hr(void 0,null,function*(){var vr,Fr,ea,jr,or,pa,ma,Nr,Ba,ja,sa,ur;Jn.type==="0"?Ei(!0):Jt(!0);const Qr=yield(0,fr.ex)(Jn);Jn.type==="0"?Ei(!1):Jt(!1),Jn.type==="0"?Di(Qr):si(Qr);const ui=(vr=Qr.navigation[0])==null?void 0:vr.difficulty_count.map(ua=>({label:ua==null?void 0:ua.name,value:Qt[ua.name]})),Ca=(Fr=Qr.navigation[0])==null?void 0:Fr.tag_disciplines.map(ua=>{const aa=ua==null?void 0:ua.difficulty_count.map(Fa=>({label:Fa==null?void 0:Fa.name,value:Qt[Fa.name]}));return{title:ue(hn)===it.All&&aa.length>0?y.createElement(We.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(Lt.Z,null,`${ua.name}\uFF08${ua.child_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(we.default.Item,{noStyle:!0,name:[`0_${ua.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:aa})),y.createElement(we.default.Item,{noStyle:!0,name:[`0_${ua.id}`,"diffNum"],initialValue:ua==null?void 0:ua.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(we.default.Item,{noStyle:!0,name:[`0_${ua.id}`,"extra"],initialValue:{tag_discipline_name:ua.name,name:"\u6839\u76EE\u5F55",type:Jn.type}},y.createElement("input",{type:"hidden"})))):y.createElement("span",{style:{color:"#232B40"}},ua.name,"\uFF08",ua.child_count,"\uFF09"),key:`0_${ua.id}`,name:ua.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:ua.child_count,icon:null,isLeaf:!0,checkable:ue(hn)===it.FileFolderAndKnowledge,disableCheckbox:ua.child_count===0}});if(Jn.type==="0"){const ua=ct(Qr.data,hn,"0"),aa=Zt(Qr.data,hn,"0");console.log("normalChildren2:",aa),co([{title:ue(hn)===it.FileFolderAndDiff?y.createElement(We.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(Lt.Z,null,`\u6839\u76EE\u5F55\uFF08${(ea=Qr.navigation[0])==null?void 0:ea.child_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(we.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ui})),y.createElement(we.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(jr=Qr.navigation[0])==null?void 0:jr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(we.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"0",group_id:"0",name:"\u6839\u76EE\u5F55"}},y.createElement("input",{type:"hidden"})))):y.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(or=Qr.navigation[0])==null?void 0:or.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(pa=Qr.navigation[0])==null?void 0:pa.child_count,disabled:!(((ma=Qr.navigation[0])==null?void 0:ma.child_count)>0),checkable:ue(hn)===it.OnlyFileFolder,icon:Fa=>Fa.expanded?y.createElement("img",{src:tn,className:On.folderIcon}):y.createElement("img",{src:En,className:On.folderIcon}),isLeaf:!1,children:ue(hn)===it.OnlyFileFolder||ue(hn)===it.FileFolderAndDiff?ua:[...aa,...Ca]}])}else{const ua=ct(Qr.data,hn,"3"),aa=Zt(Qr.data,hn,"3");Ai([{title:ue(hn)===it.FileFolderAndDiff?y.createElement(We.Z,{justify:"space-between"},y.createElement(Lt.Z,null,`\u6839\u76EE\u5F55\uFF08${(Nr=Qr.navigation[0])==null?void 0:Nr.child_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(we.default.Item,{noStyle:!0,name:["0","diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ui})),y.createElement(we.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Ba=Qr.navigation[0])==null?void 0:Ba.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(we.default.Item,{noStyle:!0,name:["0","extra"],initialValue:{type:"3",group_id:"0",name:"\u6839\u76EE\u5F55"}},y.createElement("input",{type:"hidden"})))):y.createElement("span",{style:{color:"#232B40"}},`\u6839\u76EE\u5F55\uFF08${(ja=Qr.navigation[0])==null?void 0:ja.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(sa=Qr.navigation[0])==null?void 0:sa.child_count,checkable:ue(hn)===it.OnlyFileFolder,icon:Fa=>Fa.expanded?y.createElement("img",{src:In,className:On.shareFolderIcon}):y.createElement("img",{src:pn,className:On.shareFolderIcon}),isLeaf:!1,disabled:!(((ur=Qr.navigation[0])==null?void 0:ur.child_count)>0),children:ue(hn)===it.OnlyFileFolder||ue(hn)===it.FileFolderAndDiff?ua:[...aa,...Ca]}])}});(0,y.useEffect)(()=>{nr==="1"?An({type:"0",group_id:0,item_type:br,show_children:!0}):nr==="2"&&An({type:"3",except_mine:!0,item_type:br,show_children:!0,teach_group_id:Qi==="all"?"":Qi})},[hn,nr,Qi]),(0,y.useEffect)(()=>{var Jn,vr,Fr,ea,jr,or,pa,ma,Nr,Ba,ja,sa;console.log("selectData-active:",_r,vn,nr),nr==="1"?(fa((Jn=_r==null?void 0:_r.my)==null?void 0:Jn.map(ur=>ur.id)),zr(((Fr=(vr=_r==null?void 0:_r.my)==null?void 0:vr.reduce)==null?void 0:Fr.call(vr,(ur,Qr)=>ur+Qr.item_bank_num,0))||0)):nr==="2"&&(Ni((ea=_r==null?void 0:_r.public)==null?void 0:ea.map(ur=>ur.id)),zr(((or=(jr=_r==null?void 0:_r.public)==null?void 0:jr.reduce)==null?void 0:or.call(jr,(ur,Qr)=>ur+Qr.item_bank_num,0))||0)),ue(hn)===it.All&&(nr==="1"?(fa((pa=_r==null?void 0:_r.my)==null?void 0:pa.map(ur=>ur.id)),zr((_r==null?void 0:_r.filter(ur=>!ur.is_share).reduce((ur,Qr)=>ur+Qr.item_bank_num,0))||0),(ma=_r==null?void 0:_r.filter(ur=>!ur.is_share))==null||ma.forEach(ur=>{const Qr=Pr.getFieldValue([`${ur.group_id||0}_${ur.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Qr),Qr!=null&&Qr.includes[ur.difficulty]||Pr.setFieldValue([`${ur.group_id||0}_${ur.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Qr,ur.difficulty])))})):nr==="2"&&(Ni((Nr=_r==null?void 0:_r.public)==null?void 0:Nr.map(ur=>ur.id)),zr((_r==null?void 0:_r.filter(ur=>!!ur.is_share).reduce((ur,Qr)=>ur+Qr.item_bank_num,0))||0),(Ba=_r==null?void 0:_r.filter(ur=>!!ur.is_share))==null||Ba.forEach(ur=>{const Qr=Pr.getFieldValue([`${ur.teacher_group_id||0}_${ur.tag_discipline_id}`,"diffValue"])||[];Qr!=null&&Qr.includes[ur.difficulty]||Pr.setFieldValue([`${ur.teacher_group_id||0}_${ur.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Qr,ur.difficulty])))}))),ue(hn)===it.FileFolderAndDiff&&(Pr.resetFields(),setTimeout(()=>{Tn(_r)},300),nr==="1"?(zr((_r==null?void 0:_r.filter(ur=>!ur.is_share).reduce((ur,Qr)=>ur+Qr.item_bank_num,0))||0),(ja=_r==null?void 0:_r.filter(ur=>!ur.is_share))==null||ja.forEach(ur=>{const Qr=Pr.getFieldValue([`${ur.group_id}`,"diffValue"])||[];console.log("prev:",Qr),Qr!=null&&Qr.includes[ur.difficulty]||Pr.setFieldValue([`${ur.group_id}`,"diffValue"],Array.from(new Set([...Qr,ur.difficulty])))})):(zr((_r==null?void 0:_r.filter(ur=>!!ur.is_share).reduce((ur,Qr)=>ur+Qr.item_bank_num,0))||0),(sa=_r==null?void 0:_r.filter(ur=>!!ur.is_share))==null||sa.forEach(ur=>{const Qr=Pr.getFieldValue([`${ur.teacher_group_id}`,"diffValue"])||[];Qr!=null&&Qr.includes[ur.difficulty]||Pr.setFieldValue([`${ur.teacher_group_id}`,"diffValue"],Array.from(new Set([...Qr,ur.difficulty])))})))},[nr]),console.log("1111111111:",Va,Wr),(0,y.useEffect)(()=>{setTimeout(()=>{var Jn,vr,Fr,ea,jr;switch(ue(hn)){case it.OnlyFileFolder:{const or=[],pa=[];for(const ma of _r.my||[])or.push(ma);for(const ma of _r.public||[])pa.push(ma);fa(or.map(ma=>`${ma.group_id}`)),Ni(pa.map(ma=>`${ma.teacher_group_id}`)),zr(nr==="1"?or.reduce((ma,Nr)=>ma+Nr.item_bank_num,0):pa.reduce((ma,Nr)=>ma+Nr.item_bank_num,0));break}case it.FileFolderAndKnowledge:{const or=[],pa=[];for(const ma of(_r==null?void 0:_r.my)||[])or.push(ma);for(const ma of(_r==null?void 0:_r.public)||[])pa.push(ma);zr((Jn=nr==="1"?or:pa)==null?void 0:Jn.reduce((ma,Nr)=>ma+Nr.item_bank_num,0)),fa(or.map(ma=>`${ma.group_id}_${ma.tag_discipline_id}`)),Ni(pa.map(ma=>`${ma.teacher_group_id}_${ma.tag_discipline_id}`));break}case it.All:{nr==="1"?(zr((_r==null?void 0:_r.filter(or=>!or.is_share).reduce((or,pa)=>or+pa.item_bank_num,0))||0),(vr=_r==null?void 0:_r.filter(or=>!or.is_share))==null||vr.forEach(or=>{const pa=Pr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",pa,or.difficulty,or),pa!=null&&pa.includes[or.difficulty]||Pr.setFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"],Array.from(new Set([...pa,or.difficulty])))})):(zr((_r==null?void 0:_r.filter(or=>!!or.is_share).reduce((or,pa)=>or+pa.item_bank_num,0))||0),(Fr=_r==null?void 0:_r.filter(or=>!!or.is_share))==null||Fr.forEach(or=>{const pa=Pr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",pa,or.difficulty,or),pa!=null&&pa.includes[or.difficulty]||Pr.setFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"],Array.from(new Set([...pa,or.difficulty])))}));break}case it.FileFolderAndDiff:{nr==="1"?(zr((_r==null?void 0:_r.filter(or=>!or.is_share).reduce((or,pa)=>or+pa.item_bank_num,0))||0),(ea=_r==null?void 0:_r.filter(or=>!or.is_share))==null||ea.forEach(or=>{const pa=Pr.getFieldValue([`${or.group_id}`,"diffValue"])||[];console.log("prev:",pa,or.difficulty),pa!=null&&pa.includes[or.difficulty]||Pr.setFieldValue([`${or.group_id}`,"diffValue"],Array.from(new Set([...pa,or.difficulty])))})):(zr((_r==null?void 0:_r.filter(or=>!!or.is_share).reduce((or,pa)=>or+pa.item_bank_num,0))||0),(jr=_r==null?void 0:_r.filter(or=>!!or.is_share))==null||jr.forEach(or=>{const pa=Pr.getFieldValue([`${or.group_id}`,"diffValue"])||[];pa!=null&&pa.includes[or.difficulty]||Pr.setFieldValue([`${or.group_id}`,"diffValue"],Array.from(new Set([...pa,or.difficulty])))}));break}}},800)},[vn,hn,Zi,_o]);const[za,zr]=(0,y.useState)(0);return y.createElement(we.default,{form:Pr,onValuesChange:(Jn,vr)=>hr(void 0,null,function*(){var Fr,ea,jr,or;console.log("onValuesChange:",vr,Jn);let pa=0;if(ue(hn)===it.FileFolderAndDiff){const ma=yield Pr.getFieldValue(),Nr=[],Ba=[];for(const sa of Object.keys(ma))if((ea=(Fr=ma[sa])==null?void 0:Fr.diffValue)!=null&&ea.length&&sa!=="null"&&sa!==null){const ur=ma[sa];Nr.push($n({id:sa},ur))}const ja={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};Nr.map(sa=>{var ur,Qr,ui,Ca,ua;sa.id==0&&(sa.diffNum=nr==="1"?(Qr=(ur=ho==null?void 0:ho.navigation)==null?void 0:ur[0])==null?void 0:Qr.difficulty_count:(Ca=(ui=ya==null?void 0:ya.navigation)==null?void 0:ui[0])==null?void 0:Ca.difficulty_count),(ua=sa==null?void 0:sa.diffValue)==null||ua.map(aa=>{var Fa,ao,il,Ko,Xl;const Oi={group_name:((Fa=sa.extra)==null?void 0:Fa.name)||"",teacher_group_name:"",id:`${sa.id}_${aa}`,group_id:sa.id,difficulty:aa,item_bank_num:(Ko=(il=(ao=sa.diffNum)==null?void 0:ao.filter(_l=>_l.name===ja[aa]))==null?void 0:il[0])==null?void 0:Ko.value};nr==="2"&&(Oi.is_share=!0,Oi.teacher_group_id=sa.id,Oi.teacher_group_name=(Xl=sa.extra)==null?void 0:Xl.name),Ba.push(Oi)})}),pa=Ba.reduce((sa,ur)=>sa+ur.item_bank_num,0),Tn([...Ba,..._r==null?void 0:_r.filter(sa=>nr==="1"?sa.is_share:!sa.is_share)])}else if(ue(hn)===it.All){const ma=[];for(const Nr of Object.keys(vr)){const{diffNum:Ba=[],diffValue:ja=[],extra:sa={}}=vr[Nr];console.log("---",sa);const[ur,Qr]=Nr.split("_");let ui=(or=(jr=sa.tag_disciplines)==null?void 0:jr.filter(Ca=>parseInt(Ca.id)===parseInt(Qr)))==null?void 0:or[0];ja.forEach(Ca=>{var ua;const aa={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Fa=(ua=Ba==null?void 0:Ba.find(il=>il.name===aa[Ca]))==null?void 0:ua.value,ao={group_name:"",teacher_group_name:"",tag_discipline_name:(ui==null?void 0:ui.name)||sa.tag_discipline_name,id:`${Nr}_${Ca}`,group_id:ur,is_share:!!(ui!=null&&ui.is_share||(sa==null?void 0:sa.type)==="3"),tag_discipline_id:Qr,difficulty:Ca,item_bank_num:Fa};pa+=Fa,sa.type==="0"?ao.group_name=sa.name:ao.teacher_group_name=sa.name,nr==="2"&&(ao.is_share=!0,ao.teacher_group_id=sa.id||0,ao.teacher_group_name=sa.name),Fa>0&&ma.push(ao)})}Tn([...ma,..._r==null?void 0:_r.filter(Nr=>nr==="1"?Nr.is_share:!Nr.is_share)])}zr(pa)})},y.createElement(Ot.default,{destroyInactiveTabPane:!0,activeKey:nr,onChange:Jn=>ir(Jn),style:{minHeight:260},tabBarExtraContent:{right:nr==="2"&&(Gr==null?void 0:Gr.length)>0&&y.createElement(jt.default,{onChange:Jn=>{oo(Jn)},value:Qi,style:{width:120}},y.createElement(jt.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),Gr==null?void 0:Gr.map(Jn=>y.createElement(jt.default.Option,{key:Jn==null?void 0:Jn.group_id,value:Jn==null?void 0:Jn.group_id},Jn==null?void 0:Jn.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(Zi==null?void 0:Zi.length)===0?y.createElement(ke.Z,{spinning:pi},y.createElement(Xt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:On.folderAreaWrapper},y.createElement(We.Z,{justify:"space-between",align:"middle",className:On.folderAreaHeader},y.createElement("span",null,"\u6587\u4EF6\u5939"),y.createElement("span",{className:"mr20"},"\u5DF2\u9009",y.createElement("span",{style:{color:"#3061D0"}}," ",za," "),"\u9898")),y.createElement(ke.Z,{spinning:pi},y.createElement("div",{style:{minHeight:200}},Zi.length>0&&y.createElement(on.default,{checkable:!0,className:On.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(Jn,vr)=>ro(Jn,vr,"0"),checkedKeys:Va,checkStrictly:!0,treeData:Zi,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))},{key:"2",label:"\u56E2\u961F\u5171\u4EAB",children:(_o==null?void 0:_o.length)===0?y.createElement(ke.Z,{spinning:Bt},y.createElement(Xt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:On.folderAreaWrapper},y.createElement(We.Z,{justify:"space-between",align:"middle",className:On.folderAreaHeader},y.createElement("span",null,"\u6587\u4EF6\u5939"),y.createElement("span",{className:"mr20"},"\u5DF2\u9009",y.createElement("span",{style:{color:"#3061D0"}}," ",za||0," "),"\u9898")),y.createElement(ke.Z,{spinning:Bt},y.createElement("div",{style:{minHeight:200}},(_o==null?void 0:_o.length)>0&&y.createElement(on.default,{checkable:!0,className:On.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(Jn,vr)=>ro(Jn,vr,"3"),checkedKeys:Wr,checkStrictly:!0,treeData:_o,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},Ft=E(44192),ar=E(63392),mr=Object.defineProperty,At=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Hn=(hn,vn,Tn)=>vn in hn?mr(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Un=(hn,vn)=>{for(var Tn in vn||(vn={}))Vt.call(vn,Tn)&&Hn(hn,Tn,vn[Tn]);if(kt)for(var Tn of kt(vn))Nn.call(vn,Tn)&&Hn(hn,Tn,vn[Tn]);return hn},Xn=(hn,vn)=>At(hn,Mt(vn)),pr=(hn,vn,Tn)=>new Promise((br,_r)=>{var nr=er=>{try{kn(Tn.next(er))}catch(Pr){_r(Pr)}},ir=er=>{try{kn(Tn.throw(er))}catch(Pr){_r(Pr)}},kn=er=>er.done?br(er.value):Promise.resolve(er.value).then(nr,ir);kn((Tn=Tn.apply(hn,vn)).next())});const wr={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Lr=({ruleValue:hn,setSelectData:vn,currentItemType:Tn,defaultData:br,isFirst:_r})=>{const[nr,ir]=(0,y.useState)([]),[kn,er,Pr,Gr]=(0,ar.U)(yt,{keyword:"",course_discipline_id:null,item_type:Tn});(0,y.useEffect)(()=>{pr(void 0,null,function*(){const Wr=yield Pr({},!0);ir((0,Ft.L)(Wr.disciplines))})},[]),console.log(br),(0,y.useEffect)(()=>{if(_r)switch(ue(hn)){case it.OnlyKnowledge:{Va(br.map(Wr=>Wr.tag_discipline_id));break}case it.KnowledgeAndDiff:{const Wr=new Map;br.forEach(Ni=>{Ni&&(Wr.has(Ni.tag_discipline_id)?Wr.set(Ni.tag_discipline_id,[...Wr.get(Ni.tag_discipline_id),Ni.difficulty]):Wr.set(Ni.tag_discipline_id,[Ni.difficulty]))});for(const[Ni,Zi]of Wr.entries())Si.setFieldValue([Ni,"diff"],Zi);break}}},[br,hn,_r]);const[Si]=we.default.useForm(),Qi=(0,y.useMemo)(()=>{var Wr;const Ni=[];let Zi="",co="";const _o={};console.log(Gr,"disciplineRes");for(const Ai of((Wr=Gr==null?void 0:Gr.data)==null?void 0:Wr.list)||[]){const ho={course_discipline_name:Ai==null?void 0:Ai.course_discipline_name,tag_discipline_name:Ai.name,id:Ai.id,item_bank_num:Ai.total_count,difficulty_count:Ai.difficulty_count,tag_discipline_id:Ai.id};Ni.push(ho)}return Ni},[Gr,br]),oo=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Wr,Ni)=>{const{item_bank_num:Zi}=Ni;return y.createElement("div",null,Wr,`(${Zi})`)}},{title:"\u6240\u5C5E\u8BFE\u7A0B",dataIndex:"course_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:hn.includes(xt.Difficulty),render:(Wr,Ni)=>{const{id:Zi,difficulty_count:co,total_count:_o,course_discipline_name:Ai,tag_discipline_name:ho}=Ni;return y.createElement(y.Fragment,null,y.createElement(we.default.Item,{name:[Zi,"diff"],noStyle:!0},y.createElement(Nt.default.Group,{style:{columnGap:12},options:co.map(Di=>({label:Di.name,value:wr[Di.name]}))})),y.createElement(we.default.Item,{name:[Zi,"extra"],initialValue:{difficulty_count:co,total_count:_o,course_discipline_name:Ai,tag_discipline_name:ho},noStyle:!0},y.createElement("input",{type:"hidden"})))}}].filter(Wr=>Wr.show),[ro,Va]=(0,y.useState)([]),fa=(0,y.useRef)(new Map);return y.createElement("div",{style:{marginTop:12}},y.createElement(We.Z,{className:"mb20",align:"middle",gutter:20},y.createElement(Lt.Z,null,y.createElement(fe.q,{size:"large",style:{width:240},showLinkButton:!1,onChange:Wr=>{Pr({course_discipline_id:Wr})}})),y.createElement(Lt.Z,null,y.createElement(Xe.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:kn.keyword,onChange:Wr=>Pr({keyword:Wr})}))),y.createElement(we.default,{form:Si,onValuesChange:(Wr,Ni)=>{var Zi;console.log(Ni),fa.current.clear();for(const co of Object.keys(Ni)){const _o={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Ai=Ni[co],{difficulty_count:ho,total_count:Di}=Ai.extra||{};(Zi=Ai==null?void 0:Ai.diff)==null||Zi.forEach(ya=>{var si;const pi=(si=ho==null?void 0:ho.find(Bt=>Bt.name===_o[ya]))==null?void 0:si.value,Ei=Xn(Un({},Ai.extra),{id:`${co}_${ya}`,difficulty:ya,item_bank_num:pi,tag_discipline_id:co});pi>0&&fa.current.set(`${co}_${ya}`,Ei)})}vn([...fa.current.values()])}},(Qi==null?void 0:Qi.length)===0?y.createElement(Xt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):y.createElement(Rt.default,{rowSelection:ue(hn)===it.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Wr,Ni){console.log("table-selectedRowKeys:",Wr,Ni),Va(Wr),vn(Ni)},getCheckboxProps:Wr=>({disabled:Wr.item_bank_num===0}),selectedRowKeys:ro}:void 0,columns:oo,dataSource:Qi,loading:er,scroll:{y:480},rowKey:"id",pagination:!1})))},Sr=Object.defineProperty,Mr=Object.defineProperties,Vr=Object.getOwnPropertyDescriptors,oa=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,ba=(hn,vn,Tn)=>vn in hn?Sr(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Kr=(hn,vn)=>{for(var Tn in vn||(vn={}))ra.call(vn,Tn)&&ba(hn,Tn,vn[Tn]);if(oa)for(var Tn of oa(vn))Oa.call(vn,Tn)&&ba(hn,Tn,vn[Tn]);return hn},ga=(hn,vn)=>Mr(hn,Vr(vn)),Qa=(hn,vn,Tn)=>new Promise((br,_r)=>{var nr=er=>{try{kn(Tn.next(er))}catch(Pr){_r(Pr)}},ir=er=>{try{kn(Tn.throw(er))}catch(Pr){_r(Pr)}},kn=er=>er.done?br(er.value):Promise.resolve(er.value).then(nr,ir);kn((Tn=Tn.apply(hn,vn)).next())});const Da={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Rr=({open:hn,onCancel:vn,setVisibleModalType:Tn,currentItemType:br})=>{var _r;const{data:nr,dispatch:ir}=(0,y.useContext)(pt),[kn,er]=(0,y.useState)([]),[Pr,Gr]=(0,y.useState)(),Si=(_r=nr==null?void 0:nr.item_types)==null?void 0:_r.find(Zi=>Zi.item_type===br);(0,y.useEffect)(()=>{var Zi,co,_o;if(hn){const Ai=(Zi=nr==null?void 0:nr.item_types)==null?void 0:Zi.find(ho=>ho.item_type===br);if((Ai==null?void 0:Ai.random_rule_type)!==it.Shixun){const ho=ln[Ai==null?void 0:Ai.random_rule_type]||[];er(ho);const Di=(_o=(co=nr==null?void 0:nr.item_types)==null?void 0:co.find(ya=>ya.item_type===br))==null?void 0:_o.contents;switch(console.log("----xxx",ue(ho)),ue(ho)){case it.OnlyDifficulty:{Va(Di.map(ya=>ya.difficulty));break}case it.OnlyFileFolder:{Va({my:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)>=0)}),Gr({my:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)>=0)});break}case it.FileFolderAndKnowledge:{Va({my:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)>=0)}),Gr({my:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)!=="NaN"&&!ya.teacher_group_id&&ya.teacher_group_id!==0),public:Di==null?void 0:Di.filter(ya=>parseInt(ya.teacher_group_id)>=0)});break}case it.FileFolderAndDiff:{Va(Di),Gr(Di);break}case it.All:{Va(Di),Gr(Di);break}default:Va(Di)}}}},[hn]);const[Qi,oo]=(0,y.useState)([]);(0,y.useEffect)(()=>{hn&&st({item_type:br}).then(Zi=>{Zi.status===0&&oo(Zi.data)})},[hn]),(0,y.useEffect)(()=>{console.log("selectData",Pr)},[Pr]);const[ro,Va]=(0,y.useState)(),[fa,Wr]=(0,y.useState)(!0);console.log("isFirst:",fa);const Ni=Zi=>{er(Zi),Gr([]),Va([]),Wr(!1)};return y.createElement(yn.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:hn,onCancel:vn,destroyOnClose:!0,onOk:()=>Qa(void 0,null,function*(){var Zi,co,_o,Ai,ho,Di,ya;if(Pr===void 0){Tn("");return}if(Object.prototype.toString.call(Pr)==="[object Object]"&&!((Zi=Pr.my)!=null&&Zi.length)&&!((co=Pr.public)!=null&&co.length)){me.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(Pr).length&&!(Pr!=null&&Pr.length)){me.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const si=ue(kn);switch(si){case it.OnlyFileFolder:{ir({type:"editRule",payload:{itemType:br,tableData:[...Pr.my||[],...Pr.public||[]],randomRuleType:si}});break}case it.OnlyDifficulty:{const pi=(Ai=(_o=nr==null?void 0:nr.item_types)==null?void 0:_o.find(Bt=>Bt.item_type===br))==null?void 0:Ai.contents;let Ei=[{},{value:(ho=Qi.find(Bt=>Bt.name==="\u7B80\u5355"))==null?void 0:ho.value},{value:(Di=Qi.find(Bt=>Bt.name==="\u9002\u4E2D"))==null?void 0:Di.value},{value:(ya=Qi.find(Bt=>Bt.name==="\u56F0\u96BE"))==null?void 0:ya.value}];ir({type:"editRule",payload:{itemType:br,tableData:Pr.map((Bt,Jt)=>{var rn,An,za,zr;return{difficulty:Bt,id:Jt,quanlity:((An=(rn=pi==null?void 0:pi.filter(Jn=>Jn.id===Jt))==null?void 0:rn[0])==null?void 0:An.quanlity)||1,item_bank_num:(Qi==null?void 0:Qi.length)===1?(za=Qi[0])==null?void 0:za.value:(zr=Ei==null?void 0:Ei[Bt])==null?void 0:zr.value}}),randomRuleType:si}});break}case it.OnlyKnowledge:{ir({type:"editRule",payload:{itemType:br,tableData:Pr.map(pi=>ga(Kr({},pi),{quanlity:pi.quanlity||1})),randomRuleType:si}});break}case it.KnowledgeAndDiff:{ir({type:"editRule",payload:{itemType:br,tableData:Pr.map(pi=>ga(Kr({},pi),{quanlity:pi.quanlity||1})),randomRuleType:si}});break}case it.FileFolderAndDiff:{ir({type:"editRule",payload:{itemType:br,tableData:Pr.map(pi=>ga(Kr({},pi),{quanlity:pi.quanlity||1})),randomRuleType:si}});break}case it.FileFolderAndKnowledge:{ir({type:"editRule",payload:{itemType:br,tableData:[...Pr.my||[],...Pr.public||[]],randomRuleType:si}});break}case it.All:{ir({type:"editRule",payload:{itemType:br,tableData:Pr.map(pi=>ga(Kr({},pi),{quanlity:pi.quanlity||1})),randomRuleType:si}});break}}Tn("")})},y.createElement(Nt.default.Group,{className:`${On.ruleCheckBox}`,style:{marginBottom:8},value:kn,onChange:Zi=>{var co;kn!=null&&kn.length&&((co=Si==null?void 0:Si.contents)==null?void 0:co.length)>0?yn.default.confirm({title:"\u63D0\u793A",content:"\u5207\u6362\u89C4\u5219\u540E\uFF0C\u4E4B\u524D\u7684\u62BD\u9898\u914D\u7F6E\u5C06\u88AB\u6E05\u7A7A\uFF01",okText:"\u7ACB\u5373\u5207\u6362",cancelText:"\u6682\u4E0D\u5207\u6362",onOk:()=>Ni(Zi)}):Ni(Zi)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:xt.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:xt.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:xt.Knowledge}]}),kn.includes(xt.FileFolder)?y.createElement(Kt,{defaultData:ro,selectData:Pr,ruleValue:kn,setSelectData:Gr,currentItemType:br}):kn.includes(xt.Knowledge)?y.createElement(Lr,{defaultData:ro,isFirst:fa,ruleValue:kn,setSelectData:Gr,currentItemType:br}):kn.includes(xt.Difficulty)?y.createElement("div",{style:{marginTop:12}},y.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Nt.default.Group,{style:{columnGap:12},options:Qi.map(Zi=>({label:Zi.name,value:Da[Zi.name]})),value:Pr||ro,onChange:Zi=>Gr(Zi)})):null)},Pa=({open:hn,onCancel:vn,setVisibleModalType:Tn,currentItemType:br})=>hn?y.createElement(Rr,{open:hn,onCancel:vn,setVisibleModalType:Tn,currentItemType:br}):null,la=E(79939),Xr=E(25399),$a=E(58998),Mi=E(77996),$i=E(35883),Xa=E(76406),gi=E(61485),Ii=E(44240),Bi=({open:hn,onCancel:vn,onOk:Tn})=>{const{data:br}=(0,y.useContext)(pt),_r=(0,$a.g)(),[nr,ir,kn,er]=(0,ar.U)(Mi.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Pr,Gr]=(0,y.useState)(!1);(0,y.useEffect)(()=>{if(hn){kn({page:1,limit:10,type:0},!0).then(fa=>{(fa==null?void 0:fa.shixuns_count)===0&&Gr(!0)});const Va=br.item_types.find(fa=>fa.item_type==="PRACTICAL");Qi(Va.item_banks.map(fa=>fa.id)),ro(Va.item_banks)}},[hn,br]);const[Si,Qi]=(0,y.useState)([]),[oo,ro]=(0,y.useState)([]);return y.createElement(yn.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:hn,width:948,centered:!0,closable:!0,onCancel:vn,onOk:()=>Tn(oo),destroyOnClose:!0},y.createElement(We.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(Lt.Z,null,y.createElement(la.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:_r,onChange:Va=>{kn({page:1,discipline_id:Va==null?void 0:Va[0],sub_discipline_id:Va==null?void 0:Va[1]})}}),y.createElement(jt.default,{className:"ml20",style:{width:118},size:"large",placeholder:"\u96BE\u5EA6",allowClear:!0,options:[{label:"\u7B80\u5355",value:1},{label:"\u9002\u4E2D",value:2},{label:"\u56F0\u96BE",value:3}],onChange:Va=>kn({page:1,diff:Va})}),y.createElement(jt.default,{className:"ml20",placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"large",allowClear:!0,options:[{label:"\u672A\u53D1\u5E03",value:"unpublish"},{label:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{label:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],onChange:Va=>kn({page:1,shixun_publish_status:Va})})),y.createElement(Xe.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Va=>{kn({keyword:Va,page:1})}})),Pr?y.createElement("div",null,y.createElement(Xt.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,Xa.xg)("/shixuns")})):y.createElement(Rt.default,{loading:ir,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Va,fa)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:fa!=null&&fa.high_resources_consume?cn.title:"",title:Va||"--"},y.createElement($i.Z,{key:1,showLines:1,showTextOnly:!0,value:Va||"--"})),(fa==null?void 0:fa.high_resources_consume)&&y.createElement(Ii.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Va,fa,Wr)=>y.createElement("span",null,Va||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:y.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",y.createElement(Xr.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(gi.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Va,fa,Wr)=>y.createElement("span",null,Va||"- -")},{title:"\u64CD\u4F5C",render(Va,fa){const{title:Wr,challenge_names:Ni,author_name:Zi,identifier:co,author_school_name:_o,study_count:Ai}=fa||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{yn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement($i.Z,{value:Wr,style:{marginBottom:18}}),y.createElement("div",{className:cn.challengeNameWrapper},Ni.map((ho,Di)=>y.createElement("div",{className:cn.challengeName,key:Di},"\u7B2C",(0,Xa.EM)(Di+1),"\u9898\xA0",ho))),y.createElement(We.Z,{className:cn.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Lt.Z,{className:cn.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:cn.shixunInfo},Zi.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:cn.shixunInfo},_o),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:cn.shixunInfo},Ai)),y.createElement(ft.ZP,{type:"primary",className:cn.btnToDetail,onClick:()=>(0,Xa.xg)(`/shixuns/${co}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(fa==null?void 0:fa.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${fa==null?void 0:fa.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:er==null?void 0:er.items,rowSelection:{selectedRowKeys:Si,preserveSelectedRowKeys:!0,getCheckboxProps:Va=>({disabled:Va.shixun_tag_num===1}),onChange(Va,fa){var Wr,Ni,Zi;console.log(Va),Qi(Va);const co=[];for(const Ai of oo)Va.includes(Ai.id)&&co.push(Ai);const _o=co.map(Ai=>Ai.id);for(const Ai of fa)Ai&&Va.includes(Ai.id)&&!_o.includes(Ai.id)&&co.push({id:Ai.id,difficulty:Ai.level,identifier:Ai.identifier,name:Ai.name,real_name:(Wr=Ai==null?void 0:Ai.author_name)==null?void 0:Wr.split("\u3001")[0],school_name:Ai.author_school_name,challenge_names:Ai.challenge_names,challenges:(Ni=Ai.challenge_names)==null?void 0:Ni.map((ho,Di)=>({subject:ho,id:Di,score:5})),score:((Zi=Ai.challenge_names)==null?void 0:Zi.length)*5,study_count:Ai.study_count,challenges_count:Ai.challenges_count});ro(co)}},pagination:{current:nr.page,pageSize:nr.limit,total:er==null?void 0:er.items_count,showTotal:Va=>y.createElement("span",null,"\u5171\xA0",y.createElement("span",{style:{color:"#165DFF"}},Va),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Va,fa){kn({page:Va,limit:fa})},size:"default"},scroll:{y:400}}))},ei=E(43141),Ar=E(59301),tr=Object.defineProperty,yr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,qn=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Er=(hn,vn,Tn)=>vn in hn?tr(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Dr=(hn,vn)=>{for(var Tn in vn||(vn={}))Jr.call(vn,Tn)&&Er(hn,Tn,vn[Tn]);if(qn)for(var Tn of qn(vn))Yr.call(vn,Tn)&&Er(hn,Tn,vn[Tn]);return hn},$r=(hn,vn)=>yr(hn,Br(vn)),Aa=({onDelete:hn,list:vn,onSelect:Tn})=>{const[br,_r]=(0,y.useState)(!1),{dispatch:nr,disabled:ir}=(0,y.useContext)(pt),kn=(Qi,oo,ro)=>{const Va=Array.from(Qi),[fa]=Va.splice(oo,1);return Va.splice(ro,0,fa),Va},[er,Pr]=(0,y.useState)(null),[Gr,Si]=(0,y.useState)(!1);return Ar.createElement(ei.Z5,{onDragStart:()=>{Si(!0)},onDragEnd:Qi=>{if(Si(!1),!Qi.destination)return;const oo=kn(vn,Qi.source.index,Qi.destination.index);nr({type:"updateItemTypes",payload:oo})}},Ar.createElement(ei.bK,{droppableId:"droppable"},(Qi,oo)=>Ar.createElement("div",$r(Dr({},Qi.droppableProps),{ref:Qi.innerRef}),Ar.createElement(ke.Z,{spinning:br},vn.map((ro,Va)=>Ar.createElement(ei._l,{key:Va,draggableId:Va.toString(),index:Va,isDragDisabled:er!==ro.item_type},(fa,Wr)=>Ar.createElement(We.Z,$r(Dr(Dr({align:"middle",wrap:!1,ref:fa.innerRef},fa.draggableProps),fa.dragHandleProps),{className:`${cn.dragItem} ${Gr?cn.dragging:""}`}),Ar.createElement(Lt.Z,{className:cn.contentArea,onClick:()=>{Tn(ro.item_type),(0,Xa.k3)()}},Ar.createElement("span",{className:cn.blackText},(0,Xa.EM)(Va+1),"\u3001\u3010",ro.item_type_text,"\u3011"),Ar.createElement(Xr.Z,{title:`\uFF08${ro.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(ro.total_score).toFixed(1)}\u5206\uFF09`},Ar.createElement("span",{className:cn.greyText},`\uFF08${ro.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(ro.total_score).toFixed(1)}\u5206\uFF09`))),!ir&&Ar.createElement(Ar.Fragment,null,Ar.createElement(Xr.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:er===ro.item_type&&!Gr},Ar.createElement("div",{style:{cursor:"grab"},className:`${cn.iconWrapper} ${Gr?cn.hidden:""}`,onMouseEnter:()=>{Pr(ro.item_type)},onMouseLeave:()=>Pr(null)},Ar.createElement("i",{className:`iconfont icon-tuodong1 ${cn.dragIcon}`}))),Ar.createElement(Xr.Z,{title:"\u5220\u9664"},Ar.createElement("div",{className:`${cn.iconWrapper} ${Gr?cn.hidden:""}`,style:{cursor:"pointer"},onClick:()=>hn(ro.item_type)},Ar.createElement("i",{className:`iconfont icon-shanchu12 ${cn.deleteIcon}`})))))))),Qi.placeholder)))},Wa=E(71114),na={flex_box_center:"flex_box_center___ppkzA",flex_space_between:"flex_space_between___Z1syx",flex_box_vertical_center:"flex_box_vertical_center___twJ9S",flex_box_center_end:"flex_box_center_end___uI0uW",flex_box_column:"flex_box_column___JRp7D",timelineWrapper:"timelineWrapper___LP9aM",title:"title___KUHj_",desc:"desc___ubc8E",titles:"titles___njkjf",questionDetailWrapper:"questionDetailWrapper___p4SFM",questionTitle:"questionTitle___JC9X6",questionScoreInfo:"questionScoreInfo___NgOJI",deleteIcon:"deleteIcon___oMVTN",deleteBtn:"deleteBtn___JUPEl",normalText:"normalText___FW9Y_",folderIcon:"folderIcon___gvacQ",challengeNameWrapper:"challengeNameWrapper___fG7Vv",challengeName:"challengeName___Ia1Xs",shixunPreviewFooter:"shixunPreviewFooter___rKsnN",shixunInfoWrapper:"shixunInfoWrapper___FEnDb",shixunInfo:"shixunInfo___TbrA2",btnToDetail:"btnToDetail___dqLQP",q_title:"q_title___qnv4p"},li=E(73631),di=E(31328);const zi=(hn,vn,Tn,br)=>{const _r={[it.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(nr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[it.OnlyKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6240\u5C5E\u8BFE\u7A0B",dataIndex:"course_discipline_name",width:180,ellipsis:{showTitle:!0},render(nr,ir){return`${nr}`}}],[it.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(nr,ir,kn){const{group_name:er,teacher_group_name:Pr}=ir,Gr=er||Pr,Si=Pr?di:li;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:Si,className:na.folderIcon})," ",y.createElement(Xr.Z,{title:Gr},y.createElement("span",{className:na.titles},Gr)))}},{title:"\u7C7B\u578B",render(nr,ir){const{teacher_group_name:kn}=ir;return y.createElement("span",null,kn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[it.KnowledgeAndDiff]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:{showTitle:!0}},{title:"\u6240\u5C5E\u8BFE\u7A0B",width:180,dataIndex:"course_discipline_name",ellipsis:{showTitle:!0}},{title:"\u96BE\u5EA6",key:"difficulty",render(nr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[it.FileFolderAndKnowledge]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(nr,ir){const{group_name:kn,teacher_group_name:er}=ir,Pr=kn||er,Gr=er?di:li;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:Gr,className:na.folderIcon})," ",y.createElement(Xr.Z,{title:Pr},y.createElement("span",{className:na.titles},Pr)))}},{title:"\u7C7B\u578B",render(nr,ir){const{teacher_group_name:kn}=ir;return y.createElement("span",null,kn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}}],[it.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(nr,ir){const{group_name:kn,teacher_group_name:er}=ir,Pr=kn||er,Gr=er?di:li;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:Gr,className:na.folderIcon})," ",y.createElement(Xr.Z,{title:Pr},y.createElement("span",{className:na.titles},Pr)))}},{title:"\u7C7B\u578B",render(nr,ir){const{teacher_group_name:kn}=ir;return y.createElement("span",null,kn?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(nr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[it.All]:[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",ellipsis:!0},{title:"\u6587\u4EF6\u5939",render(nr,ir){const{group_name:kn,teacher_group_name:er,teacher_group_id:Pr}=ir,Gr=kn||er,Si=Pr||Pr===0?di:li;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:Si,className:na.folderIcon})," ",y.createElement(Xr.Z,{title:Gr},y.createElement("span",{className:na.titles},Gr)))}},{title:"\u7C7B\u578B",render(nr,ir){const{teacher_group_id:kn}=ir;return y.createElement("span",null,kn||kn===0?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684")}},{title:"\u96BE\u5EA6",key:"difficulty",render(nr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[it.Shixun]:[]};for(const nr of Object.values(_r))nr.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(ir,kn){const{item_bank_num:er,quanlity:Pr,id:Gr,teacher_group_id:Si}=kn||{};return y.createElement(We.Z,{align:"middle"},y.createElement(Te.Z,{disabled:br,min:1,max:er,size:"large",precision:0,value:Pr,onChange:Qi=>{vn({type:"changeQuestionNum",payload:{itemType:Tn,id:Gr,num:Qi,teacher_group_id:Si}})}}),y.createElement("span",{className:"ml10 font14",style:{color:"#333333"}},"/",er))}},{title:"\u64CD\u4F5C",key:"action",align:"right",render(ir,kn){const{id:er,is_share:Pr}=kn;return br?y.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):y.createElement("span",{className:na.deleteBtn,onClick:()=>{vn({type:"deleteRule",payload:{itemType:Tn,id:er,is_share:Pr}})}},"\u5220\u9664")}});return _r[hn]},Hi=({setVisibleModalType:hn})=>{var vn,Tn,br,_r;const{data:nr,dispatch:ir,disabled:kn}=(0,y.useContext)(pt),er=(vn=nr==null?void 0:nr.item_types)==null?void 0:vn.find(Pr=>Pr.item_type==="PRACTICAL");return y.createElement(Wa.Z,{className:na.timelineWrapper,items:[{children:y.createElement("div",{style:{transform:"translateY(-4px)"}},y.createElement(We.Z,{className:"mb20",align:"middle",justify:"space-between"},y.createElement(Lt.Z,null,y.createElement("span",{className:na.title},"\u9898\u5E93\u9009\u9898"),y.createElement("span",{className:na.desc},"\uFF08\u9700\u8981\u5148\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9\u5B9E\u8BAD\u9898\uFF0C\u518D\u8BBE\u7F6E\u4ECE\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898\u7684\u6570\u91CF\uFF09")),!kn&&y.createElement(Xe.op,{style:{width:102},onClick:()=>hn("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((Tn=er==null?void 0:er.item_banks)==null?void 0:Tn.length)===0?y.createElement(Xt.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):y.createElement(Rt.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(Pr,Gr,Si){return y.createElement("span",null,Si+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(Pr,Gr)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:Gr!=null&&Gr.high_resources_consume?na.q_title:"",title:Pr||"--"},y.createElement($i.Z,{key:1,showLines:1,showTextOnly:!0,value:Pr})),(Gr==null?void 0:Gr.high_resources_consume)&&y.createElement(Ii.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Pr,Gr,Si)=>y.createElement("span",null,Pr||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(Pr,Gr,Si){const{id:Qi,identifier:oo,name:ro,challenge_names:Va=[],real_name:fa,school_name:Wr,study_count:Ni,challenges:Zi=[]}=Gr||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{yn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement($i.Z,{value:ro,style:{marginBottom:18}}),y.createElement("div",{className:na.challengeNameWrapper},Zi==null?void 0:Zi.map((co,_o)=>y.createElement("div",{className:na.challengeName,key:_o},"\u7B2C",(0,Xa.EM)(_o+1),"\u9898\xA0",co==null?void 0:co.subject))),y.createElement(We.Z,{className:na.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Lt.Z,{className:na.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:na.shixunInfo},fa),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:na.shixunInfo},Wr),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:na.shixunInfo},Ni)),y.createElement(ft.ZP,{type:"primary",className:na.btnToDetail,onClick:()=>(0,Xa.xg)(`/shixuns/${oo}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),!kn&&y.createElement("span",{onClick:()=>{ir({type:"deleteShixunQuestion",payload:{shixunId:Qi}})},className:`ml20 ${na.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(er==null?void 0:er.item_banks)||[],pagination:!1}))},{children:y.createElement(We.Z,{style:{transform:(br=er==null?void 0:er.item_banks)!=null&&br.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},y.createElement("span",{className:na.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((_r=er==null?void 0:er.item_banks)!=null&&_r.length)&&y.createElement(Lt.Z,null,y.createElement(We.Z,{align:"middle"},y.createElement("span",{className:na.normalText},"\u62BD\u9898\u6570\u91CF"),y.createElement(Te.Z,{min:0,disabled:kn,max:er==null?void 0:er.item_bank_num,size:"large",className:"ml10 mr10",value:(er==null?void 0:er.item_bank_count)||1,onChange:Pr=>ir({type:"changeQuestionNum",payload:{num:Pr||1,itemType:"PRACTICAL"}})}),y.createElement("span",{className:`${na.normalText} mr30`},"/",er==null?void 0:er.item_bank_num),y.createElement("span",{className:na.normalText},"\u6BCF\u9898\u5206\u503C"),y.createElement(Te.Z,{disabled:kn,min:0,max:100,size:"large",precision:1,className:"ml10 mr10",value:er==null?void 0:er.score,onChange:Pr=>ir({type:"changeQuestionScore",payload:{score:Pr,itemType:"PRACTICAL"}})}),y.createElement("span",{className:na.normalText},"\u5206"))))}]})};var Yi=({setVisibleModalType:hn,currentItemType:vn,onDelete:Tn})=>{var br,_r;const nr=(0,Ee.useParams)(),{data:ir,dispatch:kn,disabled:er}=(0,y.useContext)(pt),Pr=((br=ir==null?void 0:ir.item_types)==null?void 0:br.findIndex(Si=>Si.item_type===vn))+1,Gr=(_r=ir==null?void 0:ir.item_types)==null?void 0:_r.find(Si=>Si.item_type===vn);return y.createElement("div",{className:na.questionDetailWrapper},y.createElement(We.Z,{justify:"space-between",align:"middle",className:"mb30"},y.createElement(Lt.Z,null,y.createElement("span",{className:na.questionTitle},`${(0,Xa.EM)(Pr)}\u3001${Gr==null?void 0:Gr.item_type_text}`),y.createElement("span",{className:na.questionScoreInfo},"\uFF08",y.createElement("span",{style:{color:"#3061D0"}},Gr==null?void 0:Gr.item_bank_count),"\u5C0F\u9898 ",y.createElement("span",null,"\uFF0C\u5171",y.createElement("span",{style:{color:"#3061D0"}},Gr==null?void 0:Gr.total_score),"\u5206"),"\uFF09")),!er&&y.createElement("i",{className:`iconfont icon-shanchutimu ${na.deleteIcon}`,onClick:()=>Tn(vn)})),vn==="PRACTICAL"?y.createElement(Hi,{setVisibleModalType:hn}):y.createElement(y.Fragment,null,(Gr==null?void 0:Gr.contents.length)===0?y.createElement(Xt.Z,{styles:{margin:"70px auto 100px auto"},customText:y.createElement("span",null,"\u6682\u65E0\u62BD\u9898\u89C4\u5219\uFF0C\u652F\u6301",y.createElement("span",{style:{color:"#EA9741"}},"\u6307\u5B9A\u6587\u4EF6\u5939\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9"),"\u8FDB\u884C\u62BD\u9898\uFF5E"),ButtonTwo:(nr==null?void 0:nr.id)&&y.createElement(We.Z,{justify:"center",className:"mt30"},y.createElement(Xe.op,{style:{width:136,marginTop:-10},onClick:()=>hn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):y.createElement(y.Fragment,null,y.createElement(We.Z,{justify:"space-between",align:"middle",className:"mb20"},y.createElement(Lt.Z,null,y.createElement(We.Z,{align:"middle"},y.createElement("span",{className:`${na.normalText}`},"\u6BCF\u9898\u5206\u503C"),y.createElement(Te.Z,{disabled:er,size:"large",className:"ml10 mr10",min:.1,max:100,value:Gr==null?void 0:Gr.score,precision:1,onChange:Si=>kn({type:"changeQuestionScore",payload:{score:Si,itemType:vn}})}),y.createElement("span",{className:na.normalText},"\u5206"))),(nr==null?void 0:nr.id)&&y.createElement(Xe.op,{onClick:()=>hn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),y.createElement(Rt.default,{columns:zi(Gr==null?void 0:Gr.random_rule_type,kn,vn,er),dataSource:Gr==null?void 0:Gr.contents,pagination:!1,rowKey:"id"}))))},Eo=E(42075),Co=E(84849),zo=E(15267),Go=E(32637),Ta=E(59301),fi=Object.defineProperty,ni=Object.defineProperties,xo=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,rl=Object.prototype.hasOwnProperty,zl=Object.prototype.propertyIsEnumerable,Il=(hn,vn,Tn)=>vn in hn?fi(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,qo=(hn,vn)=>{for(var Tn in vn||(vn={}))rl.call(vn,Tn)&&Il(hn,Tn,vn[Tn]);if(mi)for(var Tn of mi(vn))zl.call(vn,Tn)&&Il(hn,Tn,vn[Tn]);return hn},Xo=(hn,vn)=>ni(hn,xo(vn)),no=(hn,vn,Tn)=>new Promise((br,_r)=>{var nr=er=>{try{kn(Tn.next(er))}catch(Pr){_r(Pr)}},ir=er=>{try{kn(Tn.throw(er))}catch(Pr){_r(Pr)}},kn=er=>er.done?br(er.value):Promise.resolve(er.value).then(nr,ir);kn((Tn=Tn.apply(hn,vn)).next())}),Gl=({})=>{var hn,vn,Tn,br,_r,nr,ir,kn,er,Pr,Gr,Si,Qi,oo,ro;const[Va]=(0,Ee.useSearchParams)(),fa=(0,Ee.useParams)(),{data:Wr,dispatch:Ni,setPreview:Zi,getData:co,handlePreview:_o,disabled:Ai}=(0,y.useContext)(pt),[ho,Di]=(0,y.useState)(""),[ya,si]=(0,y.useState)((vn=(hn=Wr==null?void 0:Wr.item_types)==null?void 0:hn[0])==null?void 0:vn.item_type),[pi,Ei]=(0,y.useState)(!0),[Bt,Jt]=(0,y.useState)(!1),rn=(Jn,vr)=>no(void 0,null,function*(){var Fr,ea,jr,or,pa,ma,Nr;const Ba=Wr.item_types.map(ui=>ui.item_type_text),ja=(Fr=Wr==null?void 0:Wr.item_types)==null?void 0:Fr.filter(ui=>{var Ca,ua;return((Ca=ui.contents)==null?void 0:Ca.length)>0||((ua=ui==null?void 0:ui.item_banks)==null?void 0:ua.length)>0});if(Wr.sort_by_item_type=Ba,!((ea=Wr.item_types)!=null&&ea.length)){me.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((ja==null?void 0:ja.length)===0){me.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Jn){const ui=Number((jr=Wr==null?void 0:Wr.examination_bank)==null?void 0:jr.total_score);[100,120,150].includes(ui)||(yield new Promise((Ca,ua)=>{yn.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ta.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Ta.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ui),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>no(void 0,null,function*(){Ca("")}),onCancel:()=>{ua()}})}))}let sa=()=>no(void 0,null,function*(){const ui=(0,Pe.cloneDeep)(Wr),{item_types:Ca}=ui||{};ui.item_types=Ca.filter(aa=>aa.item_type===ya),(yield et(fa.id||fa.categoryId,ui)).status===0&&(si(vr),me.ZP.success("\u4FDD\u5B58\u6210\u529F"),Jn||Ee.history.push("/paperlibrary"))}),ur=(pa=(or=Wr==null?void 0:Wr.item_types)==null?void 0:or.filter(ui=>ui.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:pa.item_banks,Qr=0;ur==null||ur.map(ui=>{ui.high_resources_consume&&(Qr=Qr+1)}),console.log(Qr),Qr>0?yn.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:Ta.createElement("div",null,Ta.createElement("div",{className:cn.tipcontent},Ta.createElement("div",null,Ta.createElement("div",{className:cn.name},"\u60A8\u597D\uFF01",(ma=(0,zo.eY)())==null?void 0:ma.username,"\uFF08",(Nr=(0,zo.eY)())==null?void 0:Nr.login,"\uFF09\uFF1A"),Ta.createElement("div",{className:cn.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ta.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002\u53D1\u5E03\u8003\u8BD5\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ta.createElement("div",{className:cn.info},Ta.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),Ta.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Ta.createElement("span",{style:{color:"#232B40"}},`${Qr}\u4E2A`))),Ta.createElement("div",null,Ta.createElement("div",{className:cn.img},Ta.createElement("img",{src:Go,width:"124px",height:"124px"})),Ta.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{sa()}}):sa()}),An=(Jn,vr,Fr,ea=!1)=>no(void 0,null,function*(){console.log(Wr);const jr=Xo(qo(qo({},Wr.exercise),fa),{exerciseId:fa.categoryId,sort_by_item_type:Wr.sort_by_item_type,difficulty:Wr.examination_bank.difficulty,exam_notes:Wr.examination_bank.exam_notes,exercise_name:Wr.examination_bank.name,time:Wr.examination_bank.time,changed_item_type:ya,item_types:Wr.item_types,course_discipline_id:Wr.examination_bank.course_discipline_id,sub_discipline_id:Wr.examination_bank.sub_discipline_id});(!Jn||vr===1)&&(jr.is_reset=1);const or=yield(0,Co.wy)(jr);return or.status===0&&(ea||me.ZP.success("\u4FEE\u6539\u6210\u529F "),si(Fr),Jn||Ee.history.push(`/classrooms/${fa.coursesId}/exercise/${fa.categoryId}/detail?random=true`)),or}),za=Jn=>{yn.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:Ta.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>no(void 0,null,function*(){var vr,Fr,ea,jr;if(fa.id){if((yield Le(fa.id,{item_type:[Jn]})).status!==0)return}else{const or=yield xe(fa.categoryId,{item_type:[Jn]});if(co(),or.status!==0)return}if(Ni({type:"deleteQuestionType",payload:Jn}),Jn===ya){const or=ve(Wr,{type:"deleteQuestionType",payload:Jn});si(or.item_types.length?or.item_types[0].item_type:(Fr=(vr=Wr==null?void 0:Wr.item_types)==null?void 0:vr[0])==null?void 0:Fr.item_type)}else si((jr=(ea=Wr==null?void 0:Wr.item_types)==null?void 0:ea[0])==null?void 0:jr.item_type)})})};(0,y.useEffect)(()=>{var Jn;(Jn=Wr==null?void 0:Wr.examination_bank)!=null&&Jn.name&&Ei(!1),(0,Xa.Dk)("\u968F\u673A\u7EC4\u5377")},[(Tn=Wr==null?void 0:Wr.examination_bank)==null?void 0:Tn.name]);const zr=()=>no(void 0,null,function*(){var Jn;let vr=yield An(!0,1,ya,!0);if((vr==null?void 0:vr.status)===0){const Fr=yield(0,Ge.ZP)(`/api/exercises/${fa==null?void 0:fa.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:fa==null?void 0:fa.coursesId,categoryId:fa==null?void 0:fa.categoryId}});(Fr==null?void 0:Fr.status)!=-1&&window.open(`/classrooms/${fa.coursesId}/exercise/${fa.categoryId}/${(Jn=(0,zo.eY)())==null?void 0:Jn.login}/initate_answer`)}});return Ta.createElement("div",{className:cn.questionInfo},Ta.createElement("div",{className:"tc mb20"},Ta.createElement(Ce.VP,{defaultValue:(br=Wr==null?void 0:Wr.examination_bank)==null?void 0:br.name,onFinish:Jn=>no(void 0,null,function*(){return Ni({type:"updateBaseInfo",payload:Xo(qo({},Wr.examination_bank),{name:Jn})}),fa!=null&&fa.id?(0,Co.se)({name:Jn,exerciseId:(fa==null?void 0:fa.categoryId)||(fa==null?void 0:fa.id)}):(0,Co.wy)({exercise_name:Jn,exerciseId:(fa==null?void 0:fa.categoryId)||(fa==null?void 0:fa.id)}),!0})})),Ta.createElement(We.Z,{justify:"center",className:"mb20"},Ta.createElement(Lt.Z,{className:"mr30"},Ta.createElement("span",{className:cn.label},"\u7B54\u9898\u65F6\u957F"),Ta.createElement("span",null,((_r=Wr==null?void 0:Wr.examination_bank)==null?void 0:_r.time)===-1?"\u4E0D\u9650":((nr=Wr==null?void 0:Wr.examination_bank)==null?void 0:nr.time)||"\u4E0D\u9650")),Ta.createElement(Lt.Z,{className:"mr30"},Ta.createElement("span",{className:cn.label},"\u96BE\u5EA6"),Ta.createElement("span",null,(kn=re[`${(ir=Wr==null?void 0:Wr.examination_bank)==null?void 0:ir.difficulty}`])==null?void 0:kn.label)),Ta.createElement(Lt.Z,{className:"mr30"},Ta.createElement("span",{className:cn.label},"\u8BD5\u9898\u603B\u6570"),Ta.createElement("span",null,((er=Wr==null?void 0:Wr.examination_bank)==null?void 0:er.question_count)||0)),Ta.createElement(Lt.Z,null,Ta.createElement("span",{className:cn.label},"\u603B\u5206"),Ta.createElement("span",null,((Gr=(Pr=Wr==null?void 0:Wr.examination_bank)==null?void 0:Pr.total_score)==null?void 0:Gr.toFixed(1))||0))),Ta.createElement("div",{className:cn.content,style:{border:((Si=Wr==null?void 0:Wr.item_types)==null?void 0:Si.length)<=0&&"none"}},((Qi=Wr==null?void 0:Wr.item_types)==null?void 0:Qi.length)>0?Ta.createElement(We.Z,{wrap:!1},Ta.createElement(Lt.Z,{flex:"260px",className:cn.leftPart},!Ai&&Ta.createElement(We.Z,{className:"mb20"},Ta.createElement(Xe.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>Di("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(fa==null?void 0:fa.id)&&Ta.createElement(Xe.op,{shape:"default",onClick:()=>Di("questionType")},"\u6DFB\u52A0\u9898\u578B")),Ta.createElement(Aa,{list:Wr.item_types,onSelect:Jn=>no(void 0,null,function*(){if(Jn===ya)return;Ei(!0);const vr=Wr.item_types.find(Fr=>Fr.item_type===ya);if(ya!=="PRACTICAL"&&vr.contents.length>0&&(fa!=null&&fa.id)){const Fr=(0,Pe.cloneDeep)(Wr),{item_types:ea}=Fr||{};Fr.item_types=ea.filter(jr=>jr.item_type===ya);try{(yield et(fa.id||fa.categoryId,Fr)).status===0&&si(Jn)}catch(jr){}}else fa.categoryId?An(!0,2,Jn):rn(!0,Jn);Ei(!1)}),onDelete:za})),Ta.createElement(Lt.Z,{flex:1,className:cn.rightPart},Ta.createElement(ke.Z,{spinning:pi},Ta.createElement(Yi,{setVisibleModalType:Di,currentItemType:ya,onDelete:za})))):Ta.createElement(Xt.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:Ta.createElement(We.Z,{justify:"center",className:"mt20"},(fa==null?void 0:fa.id)&&Ta.createElement(Xe.op,{style:{width:88},onClick:()=>Di("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(fa!=null&&fa.id)&&Ta.createElement("div",{className:cn.fixedBottom},Ta.createElement(Eo.Z,{className:`${cn.previewBtn} mr20`,onClick:()=>no(void 0,null,function*(){var Jn,vr;const Fr=(Jn=Wr==null?void 0:Wr.item_types)==null?void 0:Jn.filter(ea=>{var jr,or;return((jr=ea.contents)==null?void 0:jr.length)>0||((or=ea==null?void 0:ea.item_banks)==null?void 0:or.length)>0});if(!((vr=Wr.item_types)!=null&&vr.length)){me.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if((Fr==null?void 0:Fr.length)===0){me.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield rn(!0,ya),_o()})},"\u8BD5\u5377\u9884\u89C8"),Ta.createElement(Eo.Z,{type:"primary",className:cn.confirmBtn,onClick:()=>rn()},Ta.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(fa!=null&&fa.categoryId)&&Ta.createElement("div",{className:cn.fixedBottom,style:{justifyContent:((oo=Wr==null?void 0:Wr.exercise)==null?void 0:oo.exercise_status)!==1?"end":"center"}},Ta.createElement(Eo.Z,{className:`${cn.previewBtn} mr20`,onClick:()=>no(void 0,null,function*(){var Jn,vr;document.body.scrollIntoView(),Ee.history.push(`/classrooms/${fa.coursesId}/exercise/${(Jn=Wr==null?void 0:Wr.exercise)==null?void 0:Jn.id}/detail?random=${(vr=Wr==null?void 0:Wr.exercise)==null?void 0:vr.is_random}`)})},"\u8FD4\u56DE"),((ro=Wr==null?void 0:Wr.exercise)==null?void 0:ro.exercise_status)===1&&Ta.createElement(Eo.Z,{className:`${cn.previewBtn} mr20`,onClick:zr},"\u6A21\u62DF\u8003\u8BD5"),(Wr==null?void 0:Wr.exercise.exercise_status)===1&&Ta.createElement(Eo.Z,{type:"primary",className:cn.confirmBtn,onClick:()=>no(void 0,null,function*(){var Jn;const vr=Number((Jn=Wr==null?void 0:Wr.examination_bank)==null?void 0:Jn.total_score);[100,120,150].includes(vr)||(yield new Promise((Fr,ea)=>{yn.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ta.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Ta.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},vr),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>no(void 0,null,function*(){Fr("")}),onCancel:()=>{ea()}})})),An()})},"\u63D0\u4EA4")),Ta.createElement(at,{open:ho==="questionType",onCancel:()=>Di(""),onOk:Jn=>no(void 0,null,function*(){var vr,Fr;const ea=[],jr=ve(Wr,{type:"setQuestionType",payload:Jn}),or=((vr=jr==null?void 0:jr.item_types)==null?void 0:vr.map(pa=>pa.item_type))||[];for(const pa of((Fr=Wr==null?void 0:Wr.item_types)==null?void 0:Fr.map(ma=>ma.item_type))||[])or.includes(pa)||ea.push(pa);fa.id&&ea.length>0&&(yield Le(fa.id,{item_type:ea})).status!==0||(Ni({type:"setQuestionType",payload:Jn}),si(ya||jr.item_types[0].item_type),Di(""))})}),Ta.createElement(Zn,{open:ho==="setScore",onCancel:()=>{Di("")},onOk:Jn=>no(void 0,null,function*(){console.log("---newData",Jn);const vr=Jn.item_types.map(Fr=>({item_type:Fr.item_type,score:Fr.score}));fa.id?(yield $e(fa.id,{score_settings:vr})).status===0&&Ni({type:"init",payload:Jn}):(yield pe(fa.categoryId,{score_settings:vr})).status===0&&Ni({type:"init",payload:Jn}),Di("")})}),Ta.createElement(Pa,{open:ho==="rule",onCancel:()=>Di(""),currentItemType:ya,setVisibleModalType:Di}),Va.get("type")==="settings"&&Ta.createElement(Bi,{open:ho==="selectShixun",onCancel:()=>Di(""),onOk:Jn=>{if(console.log(Jn),(Jn==null?void 0:Jn.length)<=0){me.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}Ni({type:"addShixun",payload:{shixunList:[...Jn]}}),Di("")}}))},Hl=E(9593),So=E(59301),fs=Object.defineProperty,Ul=Object.defineProperties,_i=Object.getOwnPropertyDescriptors,Ui=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,Gi=(hn,vn,Tn)=>vn in hn?fs(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,so=(hn,vn)=>{for(var Tn in vn||(vn={}))Pi.call(vn,Tn)&&Gi(hn,Tn,vn[Tn]);if(Ui)for(var Tn of Ui(vn))vi.call(vn,Tn)&&Gi(hn,Tn,vn[Tn]);return hn},wl=(hn,vn)=>Ul(hn,_i(vn)),Lo=(hn,vn,Tn)=>new Promise((br,_r)=>{var nr=er=>{try{kn(Tn.next(er))}catch(Pr){_r(Pr)}},ir=er=>{try{kn(Tn.throw(er))}catch(Pr){_r(Pr)}},kn=er=>er.done?br(er.value):Promise.resolve(er.value).then(nr,ir);kn((Tn=Tn.apply(hn,vn)).next())}),al=()=>{var hn,vn,Tn,br;const[_r,nr]=(0,y.useState)("baseInfo"),ir=(0,Ee.useDispatch)();(0,y.useEffect)(()=>{ir({type:"globalSetting/footerToggle",payload:!1})},[]);const kn=(0,Ee.useParams)(),er=!!(kn.id||kn.categoryId),[Pr]=(0,Ee.useSearchParams)();(0,y.useEffect)(()=>{Pr.get("type")==="settings"&&nr("settings")},[]);const[Gr,Si]=(0,y.useReducer)(ve,null),[Qi,oo]=(0,y.useState)(!1),ro=()=>Lo(void 0,null,function*(){oo(!0);let ya;kn.categoryId?ya=yield je(kn):ya=yield _e(kn.id),oo(!1),ya.status===0&&Si({type:"init",payload:ya})});(0,y.useEffect)(()=>{er?ro():Si({type:"init",payload:{examination_bank:{difficulty:2}}})},[kn]);const[Va,fa]=(0,y.useState)(""),Wr=(ya,si)=>Lo(void 0,null,function*(){var pi,Ei,Bt,Jt;const rn=(pi=Gr==null?void 0:Gr.item_types)==null?void 0:pi.filter(zr=>{var Jn;return((Jn=zr==null?void 0:zr.item_type)==null?void 0:Jn.toUpperCase())===(si==null?void 0:si.type)}),An={sort_by_item_type:Gr.sort_by_item_type,difficulty:Gr.examination_bank.difficulty,exam_notes:Gr.examination_bank.exam_notes,name:Gr.examination_bank.name,time:Gr.examination_bank.time,item_types:Gr.item_types};if(ya!==void 0&&!(ya!=null&&ya.single_question_id)){An.seleted_item_bank_ids=ya==null?void 0:ya.seleted_item_bank_ids,An.item_types=rn;const zr=yield Et(An);if((zr==null?void 0:zr.status)===0){let Jn=(0,Pe.cloneDeep)(Ai.data);Jn.questionList=(Ei=Jn==null?void 0:Jn.questionList)==null?void 0:Ei.map(vr=>{var Fr;return vr.type===si.type?wl(so({},vr),{questions:((Fr=zr==null?void 0:zr.questions)==null?void 0:Fr.questions)||[]}):vr}),ho({show:!0,data:Jn})}return}if(ya!==void 0&&(ya!=null&&ya.single_question_id)){An.seleted_item_bank_ids=ya==null?void 0:ya.seleted_item_bank_ids,An.single_question_id=ya==null?void 0:ya.single_question_id,An.item_types=rn;const zr=yield Et(An);if((zr==null?void 0:zr.status)===0){let Jn=(0,Pe.cloneDeep)(Ai.data);Jn.questionList=(Bt=Jn==null?void 0:Jn.questionList)==null?void 0:Bt.map(vr=>{var Fr,ea;if(vr.type===si.type){const jr=(0,Pe.cloneDeep)(vr==null?void 0:vr.questions);return jr.splice(si.index,1,(ea=(Fr=zr==null?void 0:zr.questions)==null?void 0:Fr.questions)==null?void 0:ea[0]),console.log(vr==null?void 0:vr.questions,jr,si.index,"new_questions"),wl(so({},vr),{questions:jr})}return vr}),ho({show:!0,data:Jn})}return}const za=yield ce(An);if((za==null?void 0:za.status)===0){const zr=(0,Xa.ad)(za);let Jn=[];(Jt=Gr==null?void 0:Gr.item_types)==null||Jt.forEach(vr=>{var Fr;const ea=(Fr=zr==null?void 0:zr.questionList)==null?void 0:Fr.find(jr=>vr.item_type===jr.type);Jn.push(ea)}),console.log(Gr,"sortList"),Jn=(0,Pe.compact)(Jn),zr.questionList=Jn,ho({show:!0,data:zr}),fa(new Date)}}),Ni=ya=>{var si;let pi=(0,Pe.cloneDeep)(Ai.data);pi.questionList=(si=pi==null?void 0:pi.questionList)==null?void 0:si.map(Ei=>Ei.type===ya.type?wl(so({},Ei),{questions_score:ya.scoreTotal}):Ei),Si({type:"changeQuestionScore",payload:{score:ya.score,itemType:ya.type}}),ho({show:!0,data:pi})},Zi=ya=>Lo(void 0,null,function*(){const si={sort_by_item_type:Gr.sort_by_item_type,difficulty:Gr.examination_bank.difficulty,exam_notes:Gr.examination_bank.exam_notes,name:Gr.examination_bank.name,time:Gr.examination_bank.time,item_types:Gr.item_types,course_discipline_id:Gr.examination_bank.course_discipline_id};if(ya){(yield Ye(so(so({},si),ya))).status===0&&me.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield et(kn.id,si)).status===0&&(me.ZP.success("\u63D0\u4EA4\u6210\u529F"),Ee.history.push("/paperlibrary?defaultActiveKey=0"))}),co=(0,$a.g)(),[_o]=we.default.useForm(),[Ai,ho]=(0,y.useState)({show:!1,data:{}}),Di=!!((hn=Gr==null?void 0:Gr.exercise)!=null&&hn.exercise_status)&&((vn=Gr==null?void 0:Gr.exercise)==null?void 0:vn.exercise_status)!==1;return So.createElement(pt.Provider,{value:{data:Gr,disabled:Di,dispatch:Si,setPreview:ho,getData:ro,handlePreview:Wr}},Ai.show?So.createElement(Hl.Z,{key:Va,data:Ai.data,onExchange:Wr,onTypeScore:Ni,submit:Zi,goBack:()=>ho({show:!1,data:{}})}):So.createElement("div",{className:ge.wrapper},So.createElement("div",{className:"edu-container"},So.createElement(Se.Z,{className:ge.breadCrumbWrapper,separator:">",items:kn!=null&&kn.categoryId?[{title:So.createElement(Ee.Link,{to:`/classrooms/${kn.coursesId}/exercise`},(br=(Tn=(0,zo.eY)())==null?void 0:Tn.course)==null?void 0:br.course_name)},{title:So.createElement(Ee.Link,{to:`/classrooms/${kn.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:So.createElement(Ee.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),So.createElement(Ce.d4,{activeKey:_r,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:ya=>Lo(void 0,null,function*(){if(ya==="settings"&&(yield _o.validateFields(),!er)){const si=yield qe(Gr);si.status===0&&Ee.history.replace(`/randompaper/edit/${si==null?void 0:si.examination_bank_id}?type=settings`)}nr(ya)})}),_r==="baseInfo"&&So.createElement(Dn,{courseOptions:co,setCurrentKey:nr,loading:Qi,form:_o}),So.createElement("div",{style:{display:_r==="settings"?"block":"none"}},Gr&&So.createElement(Gl,null)))))}},41663:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return de}});var y=E(62957),ge={ul:"ul___TdfYY"},me=E(32637),we=E(59301),Se=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ke=(We,Te)=>{var ft={};for(var Ge in We)Ee.call(We,Ge)&&Te.indexOf(Ge)<0&&(ft[Ge]=We[Ge]);if(We!=null&&Se)for(var Ge of Se(We))Te.indexOf(Ge)<0&&Ce.call(We,Ge)&&(ft[Ge]=We[Ge]);return ft},de=We=>{var Te=We,{open:ft,onCancel:Ge}=Te,Ne=ke(Te,["open","onCancel"]);return we.createElement(y.default,{centered:!0,open:ft,title:we.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ge,footer:null},we.createElement("div",null,we.createElement("div",{className:"tc"},we.createElement("img",{className:"mt10",src:me,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),we.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),we.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),we.createElement("div",{style:{color:"#333"},className:"pt30 font14"},we.createElement("ul",{className:ge.ul},we.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"),we.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"),we.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")))))}},58998:function(Rn,qt,E){"use strict";E.d(qt,{g:function(){return Se}});var y=E(59301),ge=E(37166),me=E(44192),we=(Ee,Ce,ke)=>new Promise((Fe,de)=>{var We=Ge=>{try{ft(ke.next(Ge))}catch(Ne){de(Ne)}},Te=Ge=>{try{ft(ke.throw(Ge))}catch(Ne){de(Ne)}},ft=Ge=>Ge.done?Fe(Ge.value):Promise.resolve(Ge.value).then(We,Te);ft((ke=ke.apply(Ee,Ce)).next())});const Se=()=>{const[Ee,Ce]=(0,y.useState)([]);return(0,y.useEffect)(()=>{we(void 0,null,function*(){const Fe=yield(0,ge.d1)({source:"question"});Fe!=null&&Fe.disciplines&&Ce((0,me.L)(Fe==null?void 0:Fe.disciplines))})},[]),Ee}},63392:function(Rn,qt,E){"use strict";E.d(qt,{U:function(){return Fe}});var y=E(59301),ge=Object.defineProperty,me=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ee=(de,We,Te)=>We in de?ge(de,We,{enumerable:!0,configurable:!0,writable:!0,value:Te}):de[We]=Te,Ce=(de,We)=>{for(var Te in We||(We={}))we.call(We,Te)&&Ee(de,Te,We[Te]);if(me)for(var Te of me(We))Se.call(We,Te)&&Ee(de,Te,We[Te]);return de},ke=(de,We,Te)=>new Promise((ft,Ge)=>{var Ne=Ie=>{try{Oe(Te.next(Ie))}catch(nt){Ge(nt)}},Be=Ie=>{try{Oe(Te.throw(Ie))}catch(nt){Ge(nt)}},Oe=Ie=>Ie.done?ft(Ie.value):Promise.resolve(Ie.value).then(Ne,Be);Oe((Te=Te.apply(de,We)).next())});function Fe(de,We){const[Te,ft]=(0,y.useState)(We),[Ge,Ne]=(0,y.useState)(!1),[Be,Oe]=(0,y.useState)();return[Te,Ge,(nt,St=!1)=>ke(this,null,function*(){const Ae=St?We:Ce(Ce({},Te),nt);Ne(!0),ft(Ae);const _e=yield de(Ae);return Ne(!1),Oe(_e),_e}),Be,Oe]}},20047:function(Rn,qt,E){"use strict";E.d(qt,{AL:function(){return Ae},Iy:function(){return We},Qv:function(){return Ge},ez:function(){return St},jb:function(){return Te}});var y=E(32834),ge=E.n(y),me=E(11690),we=E.n(me);let Se=1;function Ee(yt,st){const $e=yt.match(/^(\s+)(?:```)/);if($e===null)return st;const pe=$e[1];return st.split(`
|
|
|
`).map(Le=>{const xe=Le.match(/^\s+/);if(xe===null)return Le;const[ce]=xe;return ce.length>=pe.length?Le.slice(pe.length):Le}).join(`
|
|
|
`)}let Ce=[],ke=["<ul>"];const Fe=new(ge()).Renderer,de=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function We(){Ce.length=0,ke=["<ul>"]}const Te={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ft(yt,st,$e,pe){if(st>=yt.length||yt[st].level<=$e)return st;var Le=yt[st];pe.push("<li><a href='#"+Se+Le.anchor+"'>"+Le.text+"</a>"),st++;var xe=[];return st=ft(yt,st,Le.level,xe),xe.length>0&&(pe.push("<ul>"),xe.forEach(function(ce){pe.push(ce)}),pe.push("</ul>")),pe.push("</li>"),st=ft(yt,st,$e,pe),st}function Ge(){return ft(Ce,0,0,ke),ke.push("</ul>"),ke.join("")}const Ne={heading(yt){const st=de.exec(yt);if(Se+=1,st)return{type:"heading",raw:st[0],depth:st[1].length,text:st[2]}},fences(yt){const st=this.rules.block.fences.exec(yt);if(st){const $e=st[0];let pe=Ee($e,st[3]||"");const Le=st[2]?st[2].trim():st[2];if(["latex","katex","math"].indexOf(Le)>=0){const xe=Ie(),ce=pe;pe=xe,nt[xe]={type:"block",expression:ce}}return{type:"code",raw:$e,lang:Le,text:pe}}}},Be=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Oe=0;const Ie=()=>`__special_katext_id_${Oe++}__`;let nt={};function St(){return nt}function Ae(){Oe=0,nt={}}function _e(yt){return yt=yt.replace(Be,(st,$e)=>{const pe=Ie();return nt[pe]={type:"inline",expression:$e},pe}),yt}const et=Fe.listitem;Fe.listitem=function(yt){return et(_e(yt))};const qe=Fe.paragraph;Fe.paragraph=function(yt){return qe(_e(yt))};const ut=Fe.tablecell;Fe.tablecell=function(yt,st){return ut(_e(yt),st)},Fe.code=function(yt,st,$e){const pe=(st||"").match(/\S*/)[0];return pe?["latex","katex","math"].indexOf(pe)>=0?`<p class='editormd-tex'>${yt}</p>`:`<pre class="prettyprint linenums"><code class="language-${st}">${$e?yt:(0,me.escape)(yt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+($e?yt:(0,me.escape)(yt,!0))+"</code></pre>"},Fe.heading=function(yt,st,$e){let pe=this.options.headerPrefix+$e.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ce.push({anchor:pe,level:st,text:yt}),"<h"+st+' id="'+Se+pe+'">'+yt+"</h"+st+">"},ge().setOptions({silent:!0,gfm:!0,pedantic:!1}),ge().use({tokenizer:Ne,renderer:Fe}),qt.ZP=ge()},9981:function(Rn,qt){"use strict";const E=function(){const y=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge<arguments.length;ge++){const me=ge<0||arguments.length<=ge?void 0:arguments[ge];me&&Object.keys(me).forEach(we=>{const Se=me[we];Se!==void 0&&(y[we]=Se)})}return y};qt.Z=E},86013:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(19248);const me=we=>{let Se;return typeof we=="object"&&(we!=null&&we.clearIcon)?Se=we:we&&(Se={clearIcon:y.createElement(ge.Z,null)}),Se};qt.Z=me},54500:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return y}});const y=ge=>ge?typeof ge=="function"?ge():ge:null},97224:function(Rn,qt,E){"use strict";E.d(qt,{F:function(){return y}});function y(me){return me!=null&&me===me.window}const ge=me=>{var we,Se;if(typeof window=="undefined")return 0;let Ee=0;return y(me)?Ee=me.pageYOffset:me instanceof Document?Ee=me.documentElement.scrollTop:(me instanceof HTMLElement||me)&&(Ee=me.scrollTop),me&&!y(me)&&typeof Ee!="number"&&(Ee=(Se=((we=me.ownerDocument)!==null&&we!==void 0?we:me).documentElement)===null||Se===void 0?void 0:Se.scrollTop),Ee};qt.Z=ge},83010:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return we}});var y=E(16089);function ge(Se,Ee,Ce,ke){const Fe=Ce-Ee;return Se/=ke/2,Se<1?Fe/2*Se*Se*Se+Ee:Fe/2*((Se-=2)*Se*Se+2)+Ee}var me=E(97224);function we(Se){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ce=()=>window,callback:ke,duration:Fe=450}=Ee,de=Ce(),We=(0,me.Z)(de),Te=Date.now(),ft=()=>{const Ne=Date.now()-Te,Be=ge(Ne>Fe?Fe:Ne,We,Se,Fe);(0,me.F)(de)?de.scrollTo(window.pageXOffset,Be):de instanceof Document||de.constructor.name==="HTMLDocument"?de.documentElement.scrollTop=Be:de.scrollTop=Be,Ne<Fe?(0,y.Z)(ft):typeof ke=="function"&&ke()};(0,y.Z)(ft)}},91882:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ye}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(11592),Se=E(26112),Ee=E(22703),Ce=E(48755),ke=E(84105),Fe=E(19563);const de=je=>{let{children:it}=je;const{getPrefixCls:Pe}=y.useContext(Ce.E_),ye=Pe("breadcrumb");return y.createElement("li",{className:`${ye}-separator`,"aria-hidden":"true"},it===""?it:it||"/")};de.__ANT_BREADCRUMB_SEPARATOR=!0;var We=de,Te=function(je,it){var Pe={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Pe[ye]=je[ye]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(je);vt<ye.length;vt++)it.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(je,ye[vt])&&(Pe[ye[vt]]=je[ye[vt]]);return Pe};function ft(je,it){if(je.title===void 0||je.title===null)return null;const Pe=Object.keys(it).join("|");return typeof je.title=="object"?je.title:String(je.title).replace(new RegExp(`:(${Pe})`,"g"),(ye,vt)=>it[vt]||ye)}function Ge(je,it,Pe,ye){if(Pe==null)return null;const{className:vt,onClick:zt}=it,Ct=Te(it,["className","onClick"]),De=Object.assign(Object.assign({},(0,Se.Z)(Ct,{data:!0,aria:!0})),{onClick:zt});return ye!==void 0?y.createElement("a",Object.assign({},De,{className:me()(`${je}-link`,vt),href:ye}),Pe):y.createElement("span",Object.assign({},De,{className:me()(`${je}-link`,vt)}),Pe)}function Ne(je,it){return(ye,vt,zt,Ct,De)=>{if(it)return it(ye,vt,zt,Ct);const mt=ft(ye,vt);return Ge(je,ye,mt,De)}}var Be=function(je,it){var Pe={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Pe[ye]=je[ye]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(je);vt<ye.length;vt++)it.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(je,ye[vt])&&(Pe[ye[vt]]=je[ye[vt]]);return Pe};const Oe=je=>{const{prefixCls:it,separator:Pe="/",children:ye,menu:vt,overlay:zt,dropdownProps:Ct,href:De}=je,dt=(Gt=>{if(vt||zt){const bt=Object.assign({},Ct);if(vt){const xt=vt||{},{items:pt}=xt,ln=Be(xt,["items"]);bt.menu=Object.assign(Object.assign({},ln),{items:pt==null?void 0:pt.map((Wt,ue)=>{var{key:ae,title:re,label:se,path:ve}=Wt,ie=Be(Wt,["key","title","label","path"]);let fe=se!=null?se:re;return ve&&(fe=y.createElement("a",{href:`${De}${ve}`},fe)),Object.assign(Object.assign({},ie),{key:ae!=null?ae:ue,label:fe})})})}else zt&&(bt.overlay=zt);return y.createElement(Fe.Z,Object.assign({placement:"bottom"},bt),y.createElement("span",{className:`${it}-overlay-link`},Gt,y.createElement(ke.Z,null)))}return Gt})(ye);return dt!=null?y.createElement(y.Fragment,null,y.createElement("li",null,dt),Pe&&y.createElement(We,null,Pe)):null},Ie=je=>{const{prefixCls:it,children:Pe,href:ye}=je,vt=Be(je,["prefixCls","children","href"]),{getPrefixCls:zt}=y.useContext(Ce.E_),Ct=zt("breadcrumb",it);return y.createElement(Oe,Object.assign({},vt,{prefixCls:Ct}),Ge(Ct,vt,Pe,ye))};Ie.__ANT_BREADCRUMB_ITEM=!0;var nt=Ie,St=E(36237),Ae=E(63356),_e=E(16931),et=E(51636);const qe=je=>{const{componentCls:it,iconCls:Pe,calc:ye}=je;return{[it]:Object.assign(Object.assign({},(0,Ae.Wf)(je)),{color:je.itemColor,fontSize:je.fontSize,[Pe]:{fontSize:je.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:je.linkColor,transition:`color ${je.motionDurationMid}`,padding:`0 ${(0,St.unit)(je.paddingXXS)}`,borderRadius:je.borderRadiusSM,height:je.fontHeight,display:"inline-block",marginInline:ye(je.marginXXS).mul(-1).equal(),"&:hover":{color:je.linkHoverColor,backgroundColor:je.colorBgTextHover}},(0,Ae.Qy)(je)),"li:last-child":{color:je.lastItemColor},[`${it}-separator`]:{marginInline:je.separatorMargin,color:je.separatorColor},[`${it}-link`]:{[`
|
|
|
> ${Pe} + span,
|
|
|
> ${Pe} + a
|
|
|
`]:{marginInlineStart:je.marginXXS}},[`${it}-overlay-link`]:{borderRadius:je.borderRadiusSM,height:je.fontHeight,display:"inline-block",padding:`0 ${(0,St.unit)(je.paddingXXS)}`,marginInline:ye(je.marginXXS).mul(-1).equal(),[`> ${Pe}`]:{marginInlineStart:je.marginXXS,fontSize:je.fontSizeIcon},"&:hover":{color:je.linkHoverColor,backgroundColor:je.colorBgTextHover,a:{color:je.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${je.componentCls}-rtl`]:{direction:"rtl"}})}},ut=je=>({itemColor:je.colorTextDescription,lastItemColor:je.colorText,iconFontSize:je.fontSize,linkColor:je.colorTextDescription,linkHoverColor:je.colorText,separatorColor:je.colorTextDescription,separatorMargin:je.marginXS});var yt=(0,_e.I$)("Breadcrumb",je=>{const it=(0,et.mergeToken)(je,{});return qe(it)},ut),st=function(je,it){var Pe={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Pe[ye]=je[ye]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(je);vt<ye.length;vt++)it.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(je,ye[vt])&&(Pe[ye[vt]]=je[ye[vt]]);return Pe};function $e(je){const{breadcrumbName:it,children:Pe}=je,ye=st(je,["breadcrumbName","children"]),vt=Object.assign({title:it},ye);return Pe&&(vt.menu={items:Pe.map(zt=>{var{breadcrumbName:Ct}=zt,De=st(zt,["breadcrumbName"]);return Object.assign(Object.assign({},De),{title:Ct})})}),vt}function pe(je,it){return(0,y.useMemo)(()=>je||(it?it.map($e):null),[je,it])}var Le=function(je,it){var Pe={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Pe[ye]=je[ye]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(je);vt<ye.length;vt++)it.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(je,ye[vt])&&(Pe[ye[vt]]=je[ye[vt]]);return Pe};const xe=(je,it)=>{if(it===void 0)return it;let Pe=(it||"").replace(/^\//,"");return Object.keys(je).forEach(ye=>{Pe=Pe.replace(`:${ye}`,je[ye])}),Pe},ce=je=>{const{prefixCls:it,separator:Pe="/",style:ye,className:vt,rootClassName:zt,routes:Ct,items:De,children:mt,itemRender:dt,params:Gt={}}=je,bt=Le(je,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:xt,direction:pt,breadcrumb:ln}=y.useContext(Ce.E_);let Wt;const ue=xt("breadcrumb",it),[ae,re,se]=yt(ue),ve=pe(De,Ct),ie=Ne(ue,dt);if(ve&&ve.length>0){const It=[],Qe=De||Ct;Wt=ve.map((Ke,gt)=>{const{path:wt,key:Tt,type:Je,menu:tt,overlay:Ht,onClick:un,className:Dn,separator:yn,dropdownProps:Lt}=Ke,cn=xe(Gt,wt);cn!==void 0&&It.push(cn);const Xt=Tt!=null?Tt:gt;if(Je==="separator")return y.createElement(We,{key:Xt},yn);const Xe={},Nt=gt===ve.length-1;tt?Xe.menu=tt:Ht&&(Xe.overlay=Ht);let{href:dn}=Ke;return It.length&&cn!==void 0&&(dn=`#/${It.join("/")}`),y.createElement(Oe,Object.assign({key:Xt},Xe,(0,Se.Z)(Ke,{data:!0,aria:!0}),{className:Dn,dropdownProps:Lt,href:dn,separator:Nt?"":Pe,onClick:un,prefixCls:ue}),ie(Ke,Gt,Qe,It,dn))})}else if(mt){const It=(0,we.Z)(mt).length;Wt=(0,we.Z)(mt).map((Qe,Ke)=>{if(!Qe)return Qe;const gt=Ke===It-1;return(0,Ee.Tm)(Qe,{separator:gt?"":Pe,key:Ke})})}const fe=me()(ue,ln==null?void 0:ln.className,{[`${ue}-rtl`]:pt==="rtl"},vt,zt,re,se),Ve=Object.assign(Object.assign({},ln==null?void 0:ln.style),ye);return ae(y.createElement("nav",Object.assign({className:fe,style:Ve},bt),y.createElement("ol",null,Wt)))};ce.Item=nt,ce.Separator=We;var Et=ce,Ye=Et},79939:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return mr}});var y=E(77654),ge=E(59301),me=E(92310),we=E.n(me),Se=E(60499),Ee=E(85899),Ce=E(72190),ke=E(42244),Fe=E(37463),de=E(6551),We=E(6089),Te=E(18929),ft=ge.createContext({}),Ge=ft,Ne=E(43749),Be=E(18642),Oe="__rc_cascader_search_mark__",Ie=function(Mt,kt,Vt){var Nn=Vt.label,Hn=Nn===void 0?"":Nn;return kt.some(function(Un){return String(Un[Hn]).toLowerCase().includes(Mt.toLowerCase())})},nt=function(Mt,kt,Vt,Nn){return kt.map(function(Hn){return Hn[Nn.label]}).join(" / ")},St=function(Mt,kt,Vt,Nn,Hn,Un){var Xn=Hn.filter,pr=Xn===void 0?Ie:Xn,wr=Hn.render,Or=wr===void 0?nt:wr,Lr=Hn.limit,Sr=Lr===void 0?50:Lr,Mr=Hn.sort;return ge.useMemo(function(){var Vr=[];if(!Mt)return[];function oa(ra,Oa){var ba=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ra.forEach(function(Kr){if(!(!Mr&&Sr!==!1&&Sr>0&&Vr.length>=Sr)){var ga=[].concat((0,y.Z)(Oa),[Kr]),Qa=Kr[Vt.children],Da=ba||Kr.disabled;if((!Qa||Qa.length===0||Un)&&pr(Mt,ga,{label:Vt.label})){var Ea;Vr.push((0,Ee.Z)((0,Ee.Z)({},Kr),{},(Ea={disabled:Da},(0,Be.Z)(Ea,Vt.label,Or(Mt,ga,Nn,Vt)),(0,Be.Z)(Ea,Oe,ga),(0,Be.Z)(Ea,Vt.children,void 0),Ea)))}Qa&&oa(Kr[Vt.children],ga,Da)}})}return oa(kt,[]),Mr&&Vr.sort(function(ra,Oa){return Mr(ra[Oe],Oa[Oe],Mt,Vt)}),Sr!==!1&&Sr>0?Vr.slice(0,Sr):Vr},[Mt,kt,Vt,Nn,Or,Un,pr,Mr,Sr])},Ae=St,_e="__RC_CASCADER_SPLIT__",et="SHOW_PARENT",qe="SHOW_CHILD";function ut(At){return At.join(_e)}function yt(At){return At.map(ut)}function st(At){return At.split(_e)}function $e(At){var Mt=At||{},kt=Mt.label,Vt=Mt.value,Nn=Mt.children,Hn=Vt||"value";return{label:kt||"label",value:Hn,key:Hn,children:Nn||"children"}}function pe(At,Mt){var kt,Vt;return(kt=At.isLeaf)!==null&&kt!==void 0?kt:!((Vt=At[Mt.children])!==null&&Vt!==void 0&&Vt.length)}function Le(At){var Mt=At.parentElement;if(Mt){var kt=At.offsetTop-Mt.offsetTop;kt-Mt.scrollTop<0?Mt.scrollTo({top:kt}):kt+At.offsetHeight-Mt.scrollTop>Mt.offsetHeight&&Mt.scrollTo({top:kt+At.offsetHeight-Mt.offsetHeight})}}function xe(At,Mt){return At.map(function(kt){var Vt;return(Vt=kt[Oe])===null||Vt===void 0?void 0:Vt.map(function(Nn){return Nn[Mt.value]})})}function ce(At){return Array.isArray(At)&&Array.isArray(At[0])}function Et(At){return At?ce(At)?At:(At.length===0?[]:[At]).map(function(Mt){return Array.isArray(Mt)?Mt:[Mt]}):[]}function Ye(At,Mt,kt){var Vt=new Set(At),Nn=Mt();return At.filter(function(Hn){var Un=Nn[Hn],Xn=Un?Un.parent:null,pr=Un?Un.children:null;return Un&&Un.node.disabled?!0:kt===qe?!(pr&&pr.some(function(wr){return wr.key&&Vt.has(wr.key)})):!(Xn&&!Xn.node.disabled&&Vt.has(Xn.key))})}function je(At,Mt,kt){for(var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Nn=Mt,Hn=[],Un=function(){var wr,Or,Lr,Sr=At[Xn],Mr=(wr=Nn)===null||wr===void 0?void 0:wr.findIndex(function(oa){var ra=oa[kt.value];return Vt?String(ra)===String(Sr):ra===Sr}),Vr=Mr!==-1?(Or=Nn)===null||Or===void 0?void 0:Or[Mr]:null;Hn.push({value:(Lr=Vr==null?void 0:Vr[kt.value])!==null&&Lr!==void 0?Lr:Sr,index:Mr,option:Vr}),Nn=Vr==null?void 0:Vr[kt.children]},Xn=0;Xn<At.length;Xn+=1)Un();return Hn}var it=function(At,Mt,kt,Vt,Nn){return ge.useMemo(function(){var Hn=Nn||function(Un){var Xn=Vt?Un.slice(-1):Un,pr=" / ";return Xn.every(function(wr){return["string","number"].includes((0,Ne.Z)(wr))})?Xn.join(pr):Xn.reduce(function(wr,Or,Lr){var Sr=ge.isValidElement(Or)?ge.cloneElement(Or,{key:Lr}):Or;return Lr===0?[Sr]:[].concat((0,y.Z)(wr),[pr,Sr])},[])};return At.map(function(Un){var Xn,pr=je(Un,Mt,kt),wr=Hn(pr.map(function(Lr){var Sr,Mr=Lr.option,Vr=Lr.value;return(Sr=Mr==null?void 0:Mr[kt.label])!==null&&Sr!==void 0?Sr:Vr}),pr.map(function(Lr){var Sr=Lr.option;return Sr})),Or=ut(Un);return{label:wr,value:Or,key:Or,valueCells:Un,disabled:(Xn=pr[pr.length-1])===null||Xn===void 0||(Xn=Xn.option)===null||Xn===void 0?void 0:Xn.disabled}})},[At,Mt,kt,Nn,Vt])};function Pe(At,Mt){return ge.useCallback(function(kt){var Vt=[],Nn=[];return kt.forEach(function(Hn){var Un=je(Hn,At,Mt);Un.every(function(Xn){return Xn.option})?Nn.push(Hn):Vt.push(Hn)}),[Nn,Vt]},[At,Mt])}var ye=E(34061),vt=function(At,Mt){var kt=ge.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Vt=ge.useCallback(function(){return kt.current.options!==At&&(kt.current.options=At,kt.current.info=(0,ye.I8)(At,{fieldNames:Mt,initWrapper:function(Hn){return(0,Ee.Z)((0,Ee.Z)({},Hn),{},{pathKeyEntities:{}})},processEntity:function(Hn,Un){var Xn=Hn.nodes.map(function(pr){return pr[Mt.value]}).join(_e);Un.pathKeyEntities[Xn]=Hn,Hn.key=Xn}})),kt.current.info.pathKeyEntities},[Mt,At]);return Vt};function zt(At,Mt){var kt=ge.useMemo(function(){return Mt||[]},[Mt]),Vt=vt(kt,At),Nn=ge.useCallback(function(Hn){var Un=Vt();return Hn.map(function(Xn){var pr=Un[Xn].nodes;return pr.map(function(wr){return wr[At.value]})})},[Vt,At]);return[kt,Vt,Nn]}var Ct=E(48736);function De(At){return ge.useMemo(function(){if(!At)return[!1,{}];var Mt={matchInputWidth:!0,limit:50};return At&&(0,Ne.Z)(At)==="object"&&(Mt=(0,Ee.Z)((0,Ee.Z)({},Mt),At)),Mt.limit<=0&&(Mt.limit=!1),[!0,Mt]},[At])}var mt=E(34643);function dt(At,Mt,kt,Vt,Nn,Hn,Un,Xn){return function(pr){if(!At)Mt(pr);else{var wr=ut(pr),Or=yt(kt),Lr=yt(Vt),Sr=Or.includes(wr),Mr=Nn.some(function(Da){return ut(Da)===wr}),Vr=kt,oa=Nn;if(Mr&&!Sr)oa=Nn.filter(function(Da){return ut(Da)!==wr});else{var ra=Sr?Or.filter(function(Da){return Da!==wr}):[].concat((0,y.Z)(Or),[wr]),Oa=Hn(),ba;if(Sr){var Kr=(0,mt.S)(ra,{checked:!1,halfCheckedKeys:Lr},Oa);ba=Kr.checkedKeys}else{var ga=(0,mt.S)(ra,!0,Oa);ba=ga.checkedKeys}var Qa=Ye(ba,Hn,Xn);Vr=Un(Qa)}Mt([].concat((0,y.Z)(oa),(0,y.Z)(Vr)))}}}function Gt(At,Mt,kt,Vt,Nn){return ge.useMemo(function(){var Hn=Nn(Mt),Un=(0,Ce.Z)(Hn,2),Xn=Un[0],pr=Un[1];if(!At||!Mt.length)return[Xn,[],pr];var wr=yt(Xn),Or=kt(),Lr=(0,mt.S)(wr,!0,Or),Sr=Lr.checkedKeys,Mr=Lr.halfCheckedKeys;return[Vt(Sr),Vt(Mr),pr]},[At,Mt,kt,Vt,Nn])}var bt=ge.memo(function(At){var Mt=At.children;return Mt},function(At,Mt){return!Mt.open}),xt=bt;function pt(At){var Mt,kt=At.prefixCls,Vt=At.checked,Nn=At.halfChecked,Hn=At.disabled,Un=At.onClick,Xn=At.disableCheckbox,pr=ge.useContext(Ge),wr=pr.checkable,Or=typeof wr!="boolean"?wr:null;return ge.createElement("span",{className:we()("".concat(kt),(Mt={},(0,Be.Z)(Mt,"".concat(kt,"-checked"),Vt),(0,Be.Z)(Mt,"".concat(kt,"-indeterminate"),!Vt&&Nn),(0,Be.Z)(Mt,"".concat(kt,"-disabled"),Hn||Xn),Mt)),onClick:Un},Or)}var ln="__cascader_fix_label__";function Wt(At){var Mt=At.prefixCls,kt=At.multiple,Vt=At.options,Nn=At.activeValue,Hn=At.prevValuePath,Un=At.onToggleOpen,Xn=At.onSelect,pr=At.onActive,wr=At.checkedSet,Or=At.halfCheckedSet,Lr=At.loadingKeys,Sr=At.isSelectable,Mr=At.disabled,Vr="".concat(Mt,"-menu"),oa="".concat(Mt,"-menu-item"),ra=ge.useContext(Ge),Oa=ra.fieldNames,ba=ra.changeOnSelect,Kr=ra.expandTrigger,ga=ra.expandIcon,Qa=ra.loadingIcon,Da=ra.dropdownMenuColumnStyle,Ea=ra.optionRender,Rr=Kr==="hover",Za=function(Xr){return Mr||Xr},Pa=ge.useMemo(function(){return Vt.map(function(la){var Xr,$a=la.disabled,Mi=la.disableCheckbox,$i=la[Oe],Xa=(Xr=la[ln])!==null&&Xr!==void 0?Xr:la[Oa.label],gi=la[Oa.value],Ii=pe(la,Oa),Ri=$i?$i.map(function(yr){return yr[Oa.value]}):[].concat((0,y.Z)(Hn),[gi]),Bi=ut(Ri),ei=Lr.includes(Bi),Ar=wr.has(Bi),tr=Or.has(Bi);return{disabled:$a,label:Xa,value:gi,isLeaf:Ii,isLoading:ei,checked:Ar,halfChecked:tr,option:la,disableCheckbox:Mi,fullPath:Ri,fullPathKey:Bi}})},[Vt,wr,Oa,Or,Lr,Hn]);return ge.createElement("ul",{className:Vr,role:"menu"},Pa.map(function(la){var Xr,$a=la.disabled,Mi=la.label,$i=la.value,Xa=la.isLeaf,gi=la.isLoading,Ii=la.checked,Ri=la.halfChecked,Bi=la.option,ei=la.fullPath,Ar=la.fullPathKey,tr=la.disableCheckbox,yr=function(){if(!Za($a)){var Yr=(0,y.Z)(ei);Rr&&Xa&&Yr.pop(),pr(Yr)}},Br=function(){Sr(Bi)&&!Za($a)&&Xn(ei,Xa)},qn;return typeof Bi.title=="string"?qn=Bi.title:typeof Mi=="string"&&(qn=Mi),ge.createElement("li",{key:Ar,className:we()(oa,(Xr={},(0,Be.Z)(Xr,"".concat(oa,"-expand"),!Xa),(0,Be.Z)(Xr,"".concat(oa,"-active"),Nn===$i||Nn===Ar),(0,Be.Z)(Xr,"".concat(oa,"-disabled"),Za($a)),(0,Be.Z)(Xr,"".concat(oa,"-loading"),gi),Xr)),style:Da,role:"menuitemcheckbox",title:qn,"aria-checked":Ii,"data-path-key":Ar,onClick:function(){yr(),!tr&&(!kt||Xa)&&Br()},onDoubleClick:function(){ba&&Un(!1)},onMouseEnter:function(){Rr&&yr()},onMouseDown:function(Yr){Yr.preventDefault()}},kt&&ge.createElement(pt,{prefixCls:"".concat(Mt,"-checkbox"),checked:Ii,halfChecked:Ri,disabled:Za($a)||tr,disableCheckbox:tr,onClick:function(Yr){tr||(Yr.stopPropagation(),Br())}}),ge.createElement("div",{className:"".concat(oa,"-content")},Ea?Ea(Bi):Mi),!gi&&ga&&!Xa&&ge.createElement("div",{className:"".concat(oa,"-expand-icon")},ga),gi&&Qa&&ge.createElement("div",{className:"".concat(oa,"-loading-icon")},Qa))}))}var ue=function(Mt,kt){var Vt=ge.useContext(Ge),Nn=Vt.values,Hn=Nn[0],Un=ge.useState([]),Xn=(0,Ce.Z)(Un,2),pr=Xn[0],wr=Xn[1];return ge.useEffect(function(){Mt||wr(Hn||[])},[kt,Hn]),[pr,wr]},ae=ue,re=E(10228),se=function(At,Mt,kt,Vt,Nn,Hn,Un){var Xn=Un.direction,pr=Un.searchValue,wr=Un.toggleOpen,Or=Un.open,Lr=Xn==="rtl",Sr=ge.useMemo(function(){for(var Da=-1,Ea=Mt,Rr=[],Za=[],Pa=Vt.length,la=xe(Mt,kt),Xr=function(gi){var Ii=Ea.findIndex(function(Ri,Bi){return(la[Bi]?ut(la[Bi]):Ri[kt.value])===Vt[gi]});if(Ii===-1)return 1;Da=Ii,Rr.push(Da),Za.push(Vt[gi]),Ea=Ea[Da][kt.children]},$a=0;$a<Pa&&Ea&&!Xr($a);$a+=1);for(var Mi=Mt,$i=0;$i<Rr.length-1;$i+=1)Mi=Mi[Rr[$i]][kt.children];return[Za,Da,Mi,la]},[Vt,kt,Mt]),Mr=(0,Ce.Z)(Sr,4),Vr=Mr[0],oa=Mr[1],ra=Mr[2],Oa=Mr[3],ba=function(Ea){Nn(Ea)},Kr=function(Ea){var Rr=ra.length,Za=oa;Za===-1&&Ea<0&&(Za=Rr);for(var Pa=0;Pa<Rr;Pa+=1){Za=(Za+Ea+Rr)%Rr;var la=ra[Za];if(la&&!la.disabled){var Xr=Vr.slice(0,-1).concat(Oa[Za]?ut(Oa[Za]):la[kt.value]);ba(Xr);return}}},ga=function(){if(Vr.length>1){var Ea=Vr.slice(0,-1);ba(Ea)}else wr(!1)},Qa=function(){var Ea,Rr=((Ea=ra[oa])===null||Ea===void 0?void 0:Ea[kt.children])||[],Za=Rr.find(function(la){return!la.disabled});if(Za){var Pa=[].concat((0,y.Z)(Vr),[Za[kt.value]]);ba(Pa)}};ge.useImperativeHandle(At,function(){return{onKeyDown:function(Ea){var Rr=Ea.which;switch(Rr){case re.Z.UP:case re.Z.DOWN:{var Za=0;Rr===re.Z.UP?Za=-1:Rr===re.Z.DOWN&&(Za=1),Za!==0&&Kr(Za);break}case re.Z.LEFT:{if(pr)break;Lr?Qa():ga();break}case re.Z.RIGHT:{if(pr)break;Lr?ga():Qa();break}case re.Z.BACKSPACE:{pr||ga();break}case re.Z.ENTER:{if(Vr.length){var Pa=ra[oa],la=(Pa==null?void 0:Pa[Oe])||[];la.length?Hn(la.map(function(Xr){return Xr[kt.value]}),la[la.length-1]):Hn(Vr,ra[oa])}break}case re.Z.ESC:wr(!1),Or&&Ea.stopPropagation()}},onKeyUp:function(){}}})},ve=ge.forwardRef(function(At,Mt){var kt,Vt,Nn,Hn=At.prefixCls,Un=At.multiple,Xn=At.searchValue,pr=At.toggleOpen,wr=At.notFoundContent,Or=At.direction,Lr=At.open,Sr=At.disabled,Mr=ge.useRef(null),Vr=Or==="rtl",oa=ge.useContext(Ge),ra=oa.options,Oa=oa.values,ba=oa.halfValues,Kr=oa.fieldNames,ga=oa.changeOnSelect,Qa=oa.onSelect,Da=oa.searchOptions,Ea=oa.dropdownPrefixCls,Rr=oa.loadData,Za=oa.expandTrigger,Pa=Ea||Hn,la=ge.useState([]),Xr=(0,Ce.Z)(la,2),$a=Xr[0],Mi=Xr[1],$i=function(Wa){if(!(!Rr||Xn)){var na=je(Wa,ra,Kr),li=na.map(function(Hi){var Ji=Hi.option;return Ji}),di=li[li.length-1];if(di&&!pe(di,Kr)){var zi=ut(Wa);Mi(function(Hi){return[].concat((0,y.Z)(Hi),[zi])}),Rr(li)}}};ge.useEffect(function(){$a.length&&$a.forEach(function(Aa){var Wa=st(Aa),na=je(Wa,ra,Kr,!0).map(function(di){var zi=di.option;return zi}),li=na[na.length-1];(!li||li[Kr.children]||pe(li,Kr))&&Mi(function(di){return di.filter(function(zi){return zi!==Aa})})})},[ra,$a,Kr]);var Xa=ge.useMemo(function(){return new Set(yt(Oa))},[Oa]),gi=ge.useMemo(function(){return new Set(yt(ba))},[ba]),Ii=ae(Un,Lr),Ri=(0,Ce.Z)(Ii,2),Bi=Ri[0],ei=Ri[1],Ar=function(Wa){ei(Wa),$i(Wa)},tr=function(Wa){if(Sr)return!1;var na=Wa.disabled,li=pe(Wa,Kr);return!na&&(li||ga||Un)},yr=function(Wa,na){var li=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Qa(Wa),!Un&&(na||ga&&(Za==="hover"||li))&&pr(!1)},Br=ge.useMemo(function(){return Xn?Da:ra},[Xn,Da,ra]),qn=ge.useMemo(function(){for(var Aa=[{options:Br}],Wa=Br,na=xe(Wa,Kr),li=function(){var Hi=Bi[di],Ji=Wa.find(function(Eo,Co){return(na[Co]?ut(na[Co]):Eo[Kr.value])===Hi}),Yi=Ji==null?void 0:Ji[Kr.children];if(!(Yi!=null&&Yi.length))return 1;Wa=Yi,Aa.push({options:Yi})},di=0;di<Bi.length&&!li();di+=1);return Aa},[Br,Bi,Kr]),Jr=function(Wa,na){tr(na)&&yr(Wa,pe(na,Kr),!0)};se(Mt,Br,Kr,Bi,Ar,Jr,{direction:Or,searchValue:Xn,toggleOpen:pr,open:Lr}),ge.useEffect(function(){if(!Xn)for(var Aa=0;Aa<Bi.length;Aa+=1){var Wa,na=Bi.slice(0,Aa+1),li=ut(na),di=(Wa=Mr.current)===null||Wa===void 0?void 0:Wa.querySelector('li[data-path-key="'.concat(li.replace(/\\{0,2}"/g,'\\"'),'"]'));di&&Le(di)}},[Bi,Xn]);var Yr=!((kt=qn[0])!==null&&kt!==void 0&&(kt=kt.options)!==null&&kt!==void 0&&kt.length),Er=[(Vt={},(0,Be.Z)(Vt,Kr.value,"__EMPTY__"),(0,Be.Z)(Vt,ln,wr),(0,Be.Z)(Vt,"disabled",!0),Vt)],Dr=(0,Ee.Z)((0,Ee.Z)({},At),{},{multiple:!Yr&&Un,onSelect:yr,onActive:Ar,onToggleOpen:pr,checkedSet:Xa,halfCheckedSet:gi,loadingKeys:$a,isSelectable:tr}),$r=Yr?[{options:Er}]:qn,qr=$r.map(function(Aa,Wa){var na=Bi.slice(0,Wa),li=Bi[Wa];return ge.createElement(Wt,(0,Se.Z)({key:Wa},Dr,{prefixCls:Pa,options:Aa.options,prevValuePath:na,activeValue:li}))});return ge.createElement(xt,{open:Lr},ge.createElement("div",{className:we()("".concat(Pa,"-menus"),(Nn={},(0,Be.Z)(Nn,"".concat(Pa,"-menu-empty"),Yr),(0,Be.Z)(Nn,"".concat(Pa,"-rtl"),Vr),Nn)),ref:Mr},qr))}),ie=ve,fe=ge.forwardRef(function(At,Mt){var kt=(0,Fe.lk)();return ge.createElement(ie,(0,Se.Z)({},At,kt,{ref:Mt}))}),Ve=fe,It=E(70425);function Qe(){}function Ke(At){var Mt,kt=At,Vt=kt.prefixCls,Nn=Vt===void 0?"rc-cascader":Vt,Hn=kt.style,Un=kt.className,Xn=kt.options,pr=kt.checkable,wr=kt.defaultValue,Or=kt.value,Lr=kt.fieldNames,Sr=kt.changeOnSelect,Mr=kt.onChange,Vr=kt.showCheckedStrategy,oa=kt.loadData,ra=kt.expandTrigger,Oa=kt.expandIcon,ba=Oa===void 0?">":Oa,Kr=kt.loadingIcon,ga=kt.direction,Qa=kt.notFoundContent,Da=Qa===void 0?"Not Found":Qa,Ea=kt.disabled,Rr=!!pr,Za=(0,It.C8)(wr,{value:Or,postState:Et}),Pa=(0,Ce.Z)(Za,2),la=Pa[0],Xr=Pa[1],$a=ge.useMemo(function(){return $e(Lr)},[JSON.stringify(Lr)]),Mi=zt($a,Xn),$i=(0,Ce.Z)(Mi,3),Xa=$i[0],gi=$i[1],Ii=$i[2],Ri=Pe(Xa,$a),Bi=Gt(Rr,la,gi,Ii,Ri),ei=(0,Ce.Z)(Bi,3),Ar=ei[0],tr=ei[1],yr=ei[2],Br=(0,It.zX)(function($r){if(Xr($r),Mr){var qr=Et($r),Aa=qr.map(function(li){return je(li,Xa,$a).map(function(di){return di.option})}),Wa=Rr?qr:qr[0],na=Rr?Aa:Aa[0];Mr(Wa,na)}}),qn=dt(Rr,Br,Ar,tr,yr,gi,Ii,Vr),Jr=(0,It.zX)(function($r){qn($r)}),Yr=ge.useMemo(function(){return{options:Xa,fieldNames:$a,values:Ar,halfValues:tr,changeOnSelect:Sr,onSelect:Jr,checkable:pr,searchOptions:[],dropdownPrefixCls:void 0,loadData:oa,expandTrigger:ra,expandIcon:ba,loadingIcon:Kr,dropdownMenuColumnStyle:void 0}},[Xa,$a,Ar,tr,Sr,Jr,pr,oa,ra,ba,Kr]),Er="".concat(Nn,"-panel"),Dr=!Xa.length;return ge.createElement(Ge.Provider,{value:Yr},ge.createElement("div",{className:we()(Er,(Mt={},(0,Be.Z)(Mt,"".concat(Er,"-rtl"),ga==="rtl"),(0,Be.Z)(Mt,"".concat(Er,"-empty"),Dr),Mt),Un),style:Hn},Dr?Da:ge.createElement(ie,{prefixCls:Nn,searchValue:"",multiple:Rr,toggleOpen:Qe,open:!0,direction:ga,disabled:Ea})))}function gt(At){var Mt=At.onPopupVisibleChange,kt=At.popupVisible,Vt=At.popupClassName,Nn=At.popupPlacement;warning(!Mt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(kt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Vt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Nn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function wt(At,Mt){if(At){var kt=function Vt(Nn){for(var Hn=0;Hn<Nn.length;Hn++){var Un=Nn[Hn];if(Un[Mt==null?void 0:Mt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Un[Mt==null?void 0:Mt.children])&&Vt(Un[Mt==null?void 0:Mt.children]))return!0}};kt(At)}}var Tt=null,Je=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],tt=ge.forwardRef(function(At,Mt){var kt=At.id,Vt=At.prefixCls,Nn=Vt===void 0?"rc-cascader":Vt,Hn=At.fieldNames,Un=At.defaultValue,Xn=At.value,pr=At.changeOnSelect,wr=At.onChange,Or=At.displayRender,Lr=At.checkable,Sr=At.autoClearSearchValue,Mr=Sr===void 0?!0:Sr,Vr=At.searchValue,oa=At.onSearch,ra=At.showSearch,Oa=At.expandTrigger,ba=At.options,Kr=At.dropdownPrefixCls,ga=At.loadData,Qa=At.popupVisible,Da=At.open,Ea=At.popupClassName,Rr=At.dropdownClassName,Za=At.dropdownMenuColumnStyle,Pa=At.dropdownStyle,la=At.popupPlacement,Xr=At.placement,$a=At.onDropdownVisibleChange,Mi=At.onPopupVisibleChange,$i=At.expandIcon,Xa=$i===void 0?">":$i,gi=At.loadingIcon,Ii=At.children,Ri=At.dropdownMatchSelectWidth,Bi=Ri===void 0?!1:Ri,ei=At.showCheckedStrategy,Ar=ei===void 0?et:ei,tr=At.optionRender,yr=(0,ke.Z)(At,Je),Br=(0,de.ZP)(kt),qn=!!Lr,Jr=(0,Te.Z)(Un,{value:Xn,postState:Et}),Yr=(0,Ce.Z)(Jr,2),Er=Yr[0],Dr=Yr[1],$r=ge.useMemo(function(){return $e(Hn)},[JSON.stringify(Hn)]),qr=zt($r,ba),Aa=(0,Ce.Z)(qr,3),Wa=Aa[0],na=Aa[1],li=Aa[2],di=(0,Te.Z)("",{value:Vr,postState:function(Gi){return Gi||""}}),zi=(0,Ce.Z)(di,2),Hi=zi[0],Ji=zi[1],Yi=function(Gi,so){Ji(Gi),so.source!=="blur"&&oa&&oa(Gi)},Eo=De(ra),Co=(0,Ce.Z)(Eo,2),zo=Co[0],Go=Co[1],Ta=Ae(Hi,Wa,$r,Kr||Nn,Go,pr||qn),fi=Pe(Wa,$r),ni=Gt(qn,Er,na,li,fi),xo=(0,Ce.Z)(ni,3),mi=xo[0],rl=xo[1],zl=xo[2],Il=ge.useMemo(function(){var vi=yt(mi),Gi=Ye(vi,na,Ar);return[].concat((0,y.Z)(zl),(0,y.Z)(li(Gi)))},[mi,na,li,zl,Ar]),qo=it(Il,Wa,$r,qn,Or),Xo=(0,We.Z)(function(vi){if(Dr(vi),wr){var Gi=Et(vi),so=Gi.map(function(po){return je(po,Wa,$r).map(function(al){return al.option})}),wl=qn?Gi:Gi[0],Lo=qn?so:so[0];wr(wl,Lo)}}),no=dt(qn,Xo,mi,rl,zl,na,li,Ar),Pl=(0,We.Z)(function(vi){(!qn||Mr)&&Ji(""),no(vi)}),Gl=function(Gi,so){if(so.type==="clear"){Xo([]);return}var wl=so.values[0],Lo=wl.valueCells;Pl(Lo)},Hl=Da!==void 0?Da:Qa,So=Rr||Ea,fs=Xr||la,Ul=function(Gi){$a==null||$a(Gi),Mi==null||Mi(Gi)},_i=ge.useMemo(function(){return{options:Wa,fieldNames:$r,values:mi,halfValues:rl,changeOnSelect:pr,onSelect:Pl,checkable:Lr,searchOptions:Ta,dropdownPrefixCls:Kr,loadData:ga,expandTrigger:Oa,expandIcon:Xa,loadingIcon:gi,dropdownMenuColumnStyle:Za,optionRender:tr}},[Wa,$r,mi,rl,pr,Pl,Lr,Ta,Kr,ga,Oa,Xa,gi,Za,tr]),Ui=!(Hi?Ta:Wa).length,Pi=Hi&&Go.matchInputWidth||Ui?{}:{minWidth:"auto"};return ge.createElement(Ge.Provider,{value:_i},ge.createElement(Fe.Ac,(0,Se.Z)({},yr,{ref:Mt,id:Br,prefixCls:Nn,autoClearSearchValue:Mr,dropdownMatchSelectWidth:Bi,dropdownStyle:(0,Ee.Z)((0,Ee.Z)({},Pi),Pa),displayValues:qo,onDisplayValuesChange:Gl,mode:qn?"multiple":void 0,searchValue:Hi,onSearch:Yi,showSearch:zo,OptionList:Ve,emptyOptions:Ui,open:Hl,dropdownClassName:So,placement:fs,onDropdownVisibleChange:Ul,getRawInputElement:function(){return Ii}})))});tt.SHOW_PARENT=et,tt.SHOW_CHILD=qe,tt.Panel=Ke;var Ht=tt,un=Ht,Dn=E(2738),yn=E(75030),Lt=E(86641),cn=E(45915),Xt=E(82855),Xe=E(48755),Nt=E(38406),dn=E(2171),xn=E(83397),at=E(31756),Rt=E(56553),en=E(24971),Pt=E(1722),Ut=E(90376),Yt=E(68525),bn=E(90005),jn=E(70045);function Bn(At,Mt){const{getPrefixCls:kt,direction:Vt,renderEmpty:Nn}=ge.useContext(Xe.E_),Hn=Mt||Vt,Un=kt("select",At),Xn=kt("cascader",At);return[Un,Xn,Hn,Nn]}var Zn=Bn;function Ot(At,Mt){return ge.useMemo(()=>Mt?ge.createElement("span",{className:`${At}-checkbox-inner`}):!1,[Mt])}var jt=E(33853),on=E(58617),En=E(38819),In=(At,Mt,kt)=>{let Vt=kt;kt||(Vt=Mt?ge.createElement(jt.Z,null):ge.createElement(En.Z,null));const Nn=ge.createElement("span",{className:`${At}-menu-item-loading-icon`},ge.createElement(on.Z,{spin:!0}));return ge.useMemo(()=>[Vt,Nn],[Vt])},pn=E(56119),On=E(16931),fr=E(36237),Qn=E(36170),cr=E(63356),gr=At=>{const{prefixCls:Mt,componentCls:kt}=At,Vt=`${kt}-menu-item`,Nn=`
|
|
|
&${Vt}-expand ${Vt}-expand-icon,
|
|
|
${Vt}-loading-icon
|
|
|
`;return[(0,Qn.C2)(`${Mt}-checkbox`,At),{[kt]:{"&-checkbox":{top:0,marginInlineEnd:At.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${kt}-menu-empty`]:{[`${kt}-menu`]:{width:"100%",height:"auto",[Vt]:{color:At.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:At.controlItemWidth,height:At.dropdownHeight,margin:0,padding:At.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,fr.unit)(At.lineWidth)} ${At.lineType} ${At.colorSplit}`},"&-item":Object.assign(Object.assign({},cr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:At.optionPadding,lineHeight:At.lineHeight,cursor:"pointer",transition:`all ${At.motionDurationMid}`,borderRadius:At.borderRadiusSM,"&:hover":{background:At.controlItemBgHover},"&-disabled":{color:At.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Nn]:{color:At.colorTextDisabled}},[`&-active:not(${Vt}-disabled)`]:{"&, &:hover":{color:At.optionSelectedColor,fontWeight:At.optionSelectedFontWeight,backgroundColor:At.optionSelectedBg}},"&-content":{flex:"auto"},[Nn]:{marginInlineStart:At.paddingXXS,color:At.colorTextDescription,fontSize:At.fontSizeIcon},"&-keyword":{color:At.colorHighlight}})}}}]};const Hr=At=>{const{componentCls:Mt,antCls:kt}=At;return[{[Mt]:{width:At.controlWidth}},{[`${Mt}-dropdown`]:[{[`&${kt}-select-dropdown`]:{padding:0}},gr(At)]},{[`${Mt}-dropdown-rtl`]:{direction:"rtl"}},(0,pn.c)(At)]},Zr=At=>{const Mt=Math.round((At.controlHeight-At.fontSize*At.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:At.controlItemBgActive,optionSelectedFontWeight:At.fontWeightStrong,optionPadding:`${Mt}px ${At.paddingSM}px`,menuPadding:At.paddingXXS,optionSelectedColor:At.colorText}};var Pn=(0,On.I$)("Cascader",At=>[Hr(At)],Zr);const $n=At=>{const{componentCls:Mt}=At;return{[`${Mt}-panel`]:[gr(At),{display:"inline-flex",border:`${(0,fr.unit)(At.lineWidth)} ${At.lineType} ${At.colorSplit}`,borderRadius:At.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Mt}-menus`]:{alignItems:"stretch"},[`${Mt}-menu`]:{height:"auto"},"&-empty":{padding:At.paddingXXS}}]}};var dr=(0,On.A1)(["Cascader","Panel"],At=>$n(At),Zr);function hr(At){const{prefixCls:Mt,className:kt,multiple:Vt,rootClassName:Nn,notFoundContent:Hn,direction:Un,expandIcon:Xn,disabled:pr}=At,wr=ge.useContext(dn.Z),Or=pr!=null?pr:wr,[Lr,Sr,Mr,Vr]=Zn(Mt,Un),oa=(0,xn.Z)(Sr),[ra,Oa,ba]=Pn(Sr,oa);dr(Sr);const Kr=Mr==="rtl",[ga,Qa]=In(Lr,Kr,Xn),Da=Hn||(Vr==null?void 0:Vr("Cascader"))||ge.createElement(Nt.Z,{componentName:"Cascader"}),Ea=Ot(Sr,Vt);return ra(ge.createElement(Ke,Object.assign({},At,{checkable:Ea,prefixCls:Sr,className:we()(kt,Oa,Nn,ba,oa),notFoundContent:Da,direction:Mr,expandIcon:ga,loadingIcon:Qa,disabled:Or})))}var _t=hr,Qt=function(At,Mt){var kt={};for(var Vt in At)Object.prototype.hasOwnProperty.call(At,Vt)&&Mt.indexOf(Vt)<0&&(kt[Vt]=At[Vt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,Vt=Object.getOwnPropertySymbols(At);Nn<Vt.length;Nn++)Mt.indexOf(Vt[Nn])<0&&Object.prototype.propertyIsEnumerable.call(At,Vt[Nn])&&(kt[Vt[Nn]]=At[Vt[Nn]]);return kt};const{SHOW_CHILD:ct,SHOW_PARENT:Zt}=un;function ot(At,Mt,kt){const Vt=At.toLowerCase().split(Mt).reduce((Un,Xn,pr)=>pr===0?[Xn]:[].concat((0,y.Z)(Un),[Mt,Xn]),[]),Nn=[];let Hn=0;return Vt.forEach((Un,Xn)=>{const pr=Hn+Un.length;let wr=At.slice(Hn,pr);Hn=pr,Xn%2===1&&(wr=ge.createElement("span",{className:`${kt}-menu-item-keyword`,key:`separator-${Xn}`},wr)),Nn.push(wr)}),Nn}const Kt=(At,Mt,kt,Vt)=>{const Nn=[],Hn=At.toLowerCase();return Mt.forEach((Un,Xn)=>{Xn!==0&&Nn.push(" / ");let pr=Un[Vt.label];const wr=typeof pr;(wr==="string"||wr==="number")&&(pr=ot(String(pr),Hn,kt)),Nn.push(pr)}),Nn},Ft=ge.forwardRef((At,Mt)=>{var kt;const{prefixCls:Vt,size:Nn,disabled:Hn,className:Un,rootClassName:Xn,multiple:pr,bordered:wr=!0,transitionName:Or,choiceTransitionName:Lr="",popupClassName:Sr,dropdownClassName:Mr,expandIcon:Vr,placement:oa,showSearch:ra,allowClear:Oa=!0,notFoundContent:ba,direction:Kr,getPopupContainer:ga,status:Qa,showArrow:Da,builtinPlacements:Ea,style:Rr,variant:Za}=At,Pa=Qt(At,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),la=(0,Dn.Z)(Pa,["suffixIcon"]),{getPrefixCls:Xr,getPopupContainer:$a,className:Mi,style:$i}=(0,Xe.dj)("cascader"),{popupOverflow:Xa}=ge.useContext(Xe.E_),{status:gi,hasFeedback:Ii,isFormItemInput:Ri,feedbackIcon:Bi}=ge.useContext(Rt.aM),ei=(0,Xt.F)(gi,Qa),[Ar,tr,yr,Br]=Zn(Vt,Kr),qn=yr==="rtl",Jr=Xr(),Yr=(0,xn.Z)(Ar),[Er,Dr,$r]=(0,Ut.Z)(Ar,Yr),qr=(0,xn.Z)(tr),[Aa]=Pn(tr,qr),{compactSize:Wa,compactItemClassnames:na}=(0,jn.ri)(Ar,Kr),[li,di]=(0,en.Z)("cascader",Za,wr),zi=ba||(Br==null?void 0:Br("Cascader"))||ge.createElement(Nt.Z,{componentName:"Cascader"}),Hi=we()(Sr||Mr,`${tr}-dropdown`,{[`${tr}-dropdown-rtl`]:yr==="rtl"},Xn,Yr,qr,Dr,$r),Ji=ge.useMemo(()=>{if(!ra)return ra;let Xo={render:Kt};return typeof ra=="object"&&(Xo=Object.assign(Object.assign({},Xo),ra)),Xo},[ra]),Yi=(0,at.Z)(Xo=>{var no;return(no=Nn!=null?Nn:Wa)!==null&&no!==void 0?no:Xo}),Eo=ge.useContext(dn.Z),Co=Hn!=null?Hn:Eo,[zo,Go]=In(Ar,qn,Vr),Ta=Ot(tr,pr),fi=(0,bn.Z)(At.suffixIcon,Da),{suffixIcon:ni,removeIcon:xo,clearIcon:mi}=(0,Yt.Z)(Object.assign(Object.assign({},At),{hasFeedback:Ii,feedbackIcon:Bi,showSuffixIcon:fi,multiple:pr,prefixCls:Ar,componentName:"Cascader"})),rl=ge.useMemo(()=>oa!==void 0?oa:qn?"bottomRight":"bottomLeft",[oa,qn]),zl=Oa===!0?{clearIcon:mi}:Oa,[Il]=(0,yn.Cn)("SelectLike",(kt=la.dropdownStyle)===null||kt===void 0?void 0:kt.zIndex),qo=ge.createElement(un,Object.assign({prefixCls:Ar,className:we()(!Vt&&tr,{[`${Ar}-lg`]:Yi==="large",[`${Ar}-sm`]:Yi==="small",[`${Ar}-rtl`]:qn,[`${Ar}-${li}`]:di,[`${Ar}-in-form-item`]:Ri},(0,Xt.Z)(Ar,ei,Ii),na,Mi,Un,Xn,Yr,qr,Dr,$r),disabled:Co,style:Object.assign(Object.assign({},$i),Rr)},la,{builtinPlacements:(0,Pt.Z)(Ea,Xa),direction:yr,placement:rl,notFoundContent:zi,allowClear:zl,showSearch:Ji,expandIcon:zo,suffixIcon:ni,removeIcon:xo,loadingIcon:Go,checkable:Ta,dropdownClassName:Hi,dropdownPrefixCls:Vt||tr,dropdownStyle:Object.assign(Object.assign({},la.dropdownStyle),{zIndex:Il}),choiceTransitionName:(0,Lt.m)(Jr,"",Lr),transitionName:(0,Lt.m)(Jr,"slide-up",Or),getPopupContainer:ga||$a,ref:Mt}));return Aa(Er(qo))}),ar=(0,cn.Z)(Ft,"dropdownAlign",At=>(0,Dn.Z)(At,["visible"]));Ft.SHOW_PARENT=Zt,Ft.SHOW_CHILD=ct,Ft.Panel=_t,Ft._InternalPanelDoNotUseOrYouWillBeFired=ar;var mr=Ft},62673:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return yt}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(16632),Se=E(8654),Ee=E(12919),Ce=E(63872),ke=E(48755),Fe=E(2171),de=E(83397),We=E(56553),ft=y.createContext(null),Ge=E(36170),Ne=E(74632),Be=function(st,$e){var pe={};for(var Le in st)Object.prototype.hasOwnProperty.call(st,Le)&&$e.indexOf(Le)<0&&(pe[Le]=st[Le]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Le=Object.getOwnPropertySymbols(st);xe<Le.length;xe++)$e.indexOf(Le[xe])<0&&Object.prototype.propertyIsEnumerable.call(st,Le[xe])&&(pe[Le[xe]]=st[Le[xe]]);return pe};const Oe=(st,$e)=>{var pe;const{prefixCls:Le,className:xe,rootClassName:ce,children:Et,indeterminate:Ye=!1,style:je,onMouseEnter:it,onMouseLeave:Pe,skipGroup:ye=!1,disabled:vt}=st,zt=Be(st,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ct,direction:De,checkbox:mt}=y.useContext(ke.E_),dt=y.useContext(ft),{isFormItemInput:Gt}=y.useContext(We.aM),bt=y.useContext(Fe.Z),xt=(pe=(dt==null?void 0:dt.disabled)||vt)!==null&&pe!==void 0?pe:bt,pt=y.useRef(zt.value),ln=y.useRef(null),Wt=(0,Se.sQ)($e,ln);y.useEffect(()=>{dt==null||dt.registerValue(zt.value)},[]),y.useEffect(()=>{if(!ye)return zt.value!==pt.current&&(dt==null||dt.cancelValue(pt.current),dt==null||dt.registerValue(zt.value),pt.current=zt.value),()=>dt==null?void 0:dt.cancelValue(zt.value)},[zt.value]),y.useEffect(()=>{var Ke;!((Ke=ln.current)===null||Ke===void 0)&&Ke.input&&(ln.current.input.indeterminate=Ye)},[Ye]);const ue=Ct("checkbox",Le),ae=(0,de.Z)(ue),[re,se,ve]=(0,Ge.ZP)(ue,ae),ie=Object.assign({},zt);dt&&!ye&&(ie.onChange=function(){zt.onChange&&zt.onChange.apply(zt,arguments),dt.toggleOption&&dt.toggleOption({label:Et,value:zt.value})},ie.name=dt.name,ie.checked=dt.value.includes(zt.value));const fe=me()(`${ue}-wrapper`,{[`${ue}-rtl`]:De==="rtl",[`${ue}-wrapper-checked`]:ie.checked,[`${ue}-wrapper-disabled`]:xt,[`${ue}-wrapper-in-form-item`]:Gt},mt==null?void 0:mt.className,xe,ce,ve,ae,se),Ve=me()({[`${ue}-indeterminate`]:Ye},Ce.A,se),[It,Qe]=(0,Ne.Z)(ie.onClick);return re(y.createElement(Ee.Z,{component:"Checkbox",disabled:xt},y.createElement("label",{className:fe,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),je),onMouseEnter:it,onMouseLeave:Pe,onClick:It},y.createElement(we.Z,Object.assign({},ie,{onClick:Qe,prefixCls:ue,className:Ve,disabled:xt,ref:Wt})),Et!==void 0&&y.createElement("span",{className:`${ue}-label`},Et))))};var nt=y.forwardRef(Oe),St=E(77654),Ae=E(2738),_e=function(st,$e){var pe={};for(var Le in st)Object.prototype.hasOwnProperty.call(st,Le)&&$e.indexOf(Le)<0&&(pe[Le]=st[Le]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Le=Object.getOwnPropertySymbols(st);xe<Le.length;xe++)$e.indexOf(Le[xe])<0&&Object.prototype.propertyIsEnumerable.call(st,Le[xe])&&(pe[Le[xe]]=st[Le[xe]]);return pe},qe=y.forwardRef((st,$e)=>{const{defaultValue:pe,children:Le,options:xe=[],prefixCls:ce,className:Et,rootClassName:Ye,style:je,onChange:it}=st,Pe=_e(st,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ye,direction:vt}=y.useContext(ke.E_),[zt,Ct]=y.useState(Pe.value||pe||[]),[De,mt]=y.useState([]);y.useEffect(()=>{"value"in Pe&&Ct(Pe.value||[])},[Pe.value]);const dt=y.useMemo(()=>xe.map(Ve=>typeof Ve=="string"||typeof Ve=="number"?{label:Ve,value:Ve}:Ve),[xe]),Gt=Ve=>{mt(It=>It.filter(Qe=>Qe!==Ve))},bt=Ve=>{mt(It=>[].concat((0,St.Z)(It),[Ve]))},xt=Ve=>{const It=zt.indexOf(Ve.value),Qe=(0,St.Z)(zt);It===-1?Qe.push(Ve.value):Qe.splice(It,1),"value"in Pe||Ct(Qe),it==null||it(Qe.filter(Ke=>De.includes(Ke)).sort((Ke,gt)=>{const wt=dt.findIndex(Je=>Je.value===Ke),Tt=dt.findIndex(Je=>Je.value===gt);return wt-Tt}))},pt=ye("checkbox",ce),ln=`${pt}-group`,Wt=(0,de.Z)(pt),[ue,ae,re]=(0,Ge.ZP)(pt,Wt),se=(0,Ae.Z)(Pe,["value","disabled"]),ve=xe.length?dt.map(Ve=>y.createElement(nt,{prefixCls:pt,key:Ve.value.toString(),disabled:"disabled"in Ve?Ve.disabled:Pe.disabled,value:Ve.value,checked:zt.includes(Ve.value),onChange:Ve.onChange,className:`${ln}-item`,style:Ve.style,title:Ve.title,id:Ve.id,required:Ve.required},Ve.label)):Le,ie={toggleOption:xt,value:zt,disabled:Pe.disabled,name:Pe.name,registerValue:bt,cancelValue:Gt},fe=me()(ln,{[`${ln}-rtl`]:vt==="rtl"},Et,Ye,re,Wt,ae);return ue(y.createElement("div",Object.assign({className:fe,style:je},se,{ref:$e}),y.createElement(ft.Provider,{value:ie},ve)))});const ut=nt;ut.Group=qe,ut.__ANT_CHECKBOX=!0;var yt=ut},36170:function(Rn,qt,E){"use strict";E.d(qt,{C2:function(){return Ee}});var y=E(36237),ge=E(63356),me=E(51636),we=E(16931);const Se=Ce=>{const{checkboxCls:ke}=Ce,Fe=`${ke}-wrapper`;return[{[`${ke}-group`]:Object.assign(Object.assign({},(0,ge.Wf)(Ce)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ce.marginXS,[`> ${Ce.antCls}-row`]:{flex:1}}),[Fe]:Object.assign(Object.assign({},(0,ge.Wf)(Ce)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Fe}`]:{marginInlineStart:0},[`&${Fe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ke]:Object.assign(Object.assign({},(0,ge.Wf)(Ce)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ce.borderRadiusSM,alignSelf:"center",[`${ke}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ke}-inner`]:Object.assign({},(0,ge.oN)(Ce))},[`${ke}-inner`]:{boxSizing:"border-box",display:"block",width:Ce.checkboxSize,height:Ce.checkboxSize,direction:"ltr",backgroundColor:Ce.colorBgContainer,border:`${(0,y.unit)(Ce.lineWidth)} ${Ce.lineType} ${Ce.colorBorder}`,borderRadius:Ce.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ce.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ce.calc(Ce.checkboxSize).div(14).mul(5).equal(),height:Ce.calc(Ce.checkboxSize).div(14).mul(8).equal(),border:`${(0,y.unit)(Ce.lineWidthBold)} solid ${Ce.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ce.motionDurationFast} ${Ce.motionEaseInBack}, opacity ${Ce.motionDurationFast}`}},"& + span":{paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS}})},{[`
|
|
|
${Fe}:not(${Fe}-disabled),
|
|
|
${ke}:not(${ke}-disabled)
|
|
|
`]:{[`&:hover ${ke}-inner`]:{borderColor:Ce.colorPrimary}},[`${Fe}:not(${Fe}-disabled)`]:{[`&:hover ${ke}-checked:not(${ke}-disabled) ${ke}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ke}-checked:not(${ke}-disabled):after`]:{borderColor:Ce.colorPrimaryHover}}},{[`${ke}-checked`]:{[`${ke}-inner`]:{backgroundColor:Ce.colorPrimary,borderColor:Ce.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseOutBack} ${Ce.motionDurationFast}`}}},[`
|
|
|
${Fe}-checked:not(${Fe}-disabled),
|
|
|
${ke}-checked:not(${ke}-disabled)
|
|
|
`]:{[`&:hover ${ke}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"}}},{[ke]:{"&-indeterminate":{[`${ke}-inner`]:{backgroundColor:`${Ce.colorBgContainer} !important`,borderColor:`${Ce.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ce.calc(Ce.fontSizeLG).div(2).equal(),height:Ce.calc(Ce.fontSizeLG).div(2).equal(),backgroundColor:Ce.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${ke}-inner`]:{backgroundColor:`${Ce.colorBgContainer} !important`,borderColor:`${Ce.colorPrimary} !important`}}}},{[`${Fe}-disabled`]:{cursor:"not-allowed"},[`${ke}-disabled`]:{[`&, ${ke}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ke}-inner`]:{background:Ce.colorBgContainerDisabled,borderColor:Ce.colorBorder,"&:after":{borderColor:Ce.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ce.colorTextDisabled},[`&${ke}-indeterminate ${ke}-inner::after`]:{background:Ce.colorTextDisabled}}}]};function Ee(Ce,ke){const Fe=(0,me.mergeToken)(ke,{checkboxCls:`.${Ce}`,checkboxSize:ke.controlInteractiveSize});return[Se(Fe)]}qt.ZP=(0,we.I$)("Checkbox",(Ce,ke)=>{let{prefixCls:Fe}=ke;return[Ee(Fe,Ce)]})},38406:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(48755),me=E(584);const we=Se=>{const{componentName:Ee}=Se,{getPrefixCls:Ce}=(0,y.useContext)(ge.E_),ke=Ce("empty");switch(Ee){case"Table":case"List":return y.createElement(me.Z,{image:me.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(me.Z,{image:me.Z.PRESENTED_IMAGE_SIMPLE,className:`${ke}-small`});case"Table.filter":return null;default:return y.createElement(me.Z,null)}};qt.Z=we},37285:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ge}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(48755),Se=E(36237),Ee=E(63356),Ce=E(16931),ke=E(51636);const Fe=Ne=>{const{componentCls:Be,sizePaddingEdgeHorizontal:Oe,colorSplit:Ie,lineWidth:nt,textPaddingInline:St,orientationMargin:Ae,verticalMarginInline:_e}=Ne;return{[Be]:Object.assign(Object.assign({},(0,Ee.Wf)(Ne)),{borderBlockStart:`${(0,Se.unit)(nt)} solid ${Ie}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:_e,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Se.unit)(nt)} solid ${Ie}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Se.unit)(Ne.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Be}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Se.unit)(Ne.dividerHorizontalWithTextGutterMargin)} 0`,color:Ne.colorTextHeading,fontWeight:500,fontSize:Ne.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ie}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Se.unit)(nt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Be}-with-text-start`]:{"&::before":{width:`calc(${Ae} * 100%)`},"&::after":{width:`calc(100% - ${Ae} * 100%)`}},[`&-horizontal${Be}-with-text-end`]:{"&::before":{width:`calc(100% - ${Ae} * 100%)`},"&::after":{width:`calc(${Ae} * 100%)`}},[`${Be}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:St},"&-dashed":{background:"none",borderColor:Ie,borderStyle:"dashed",borderWidth:`${(0,Se.unit)(nt)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Be}-dashed`]:{borderInlineStartWidth:nt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ie,borderStyle:"dotted",borderWidth:`${(0,Se.unit)(nt)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Be}-dotted`]:{borderInlineStartWidth:nt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Be}-with-text`]:{color:Ne.colorText,fontWeight:"normal",fontSize:Ne.fontSize},[`&-horizontal${Be}-with-text-start${Be}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Be}-inner-text`]:{paddingInlineStart:Oe}},[`&-horizontal${Be}-with-text-end${Be}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Be}-inner-text`]:{paddingInlineEnd:Oe}}})}},de=Ne=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ne.marginXS});var We=(0,Ce.I$)("Divider",Ne=>{const Be=(0,ke.mergeToken)(Ne,{dividerHorizontalWithTextGutterMargin:Ne.margin,dividerHorizontalGutterMargin:Ne.marginLG,sizePaddingEdgeHorizontal:0});return[Fe(Be)]},de,{unitless:{orientationMargin:!0}}),Te=function(Ne,Be){var Oe={};for(var Ie in Ne)Object.prototype.hasOwnProperty.call(Ne,Ie)&&Be.indexOf(Ie)<0&&(Oe[Ie]=Ne[Ie]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ie=Object.getOwnPropertySymbols(Ne);nt<Ie.length;nt++)Be.indexOf(Ie[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Ie[nt])&&(Oe[Ie[nt]]=Ne[Ie[nt]]);return Oe},Ge=Ne=>{const{getPrefixCls:Be,direction:Oe,className:Ie,style:nt}=(0,we.dj)("divider"),{prefixCls:St,type:Ae="horizontal",orientation:_e="center",orientationMargin:et,className:qe,rootClassName:ut,children:yt,dashed:st,variant:$e="solid",plain:pe,style:Le}=Ne,xe=Te(Ne,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),ce=Be("divider",St),[Et,Ye,je]=We(ce),it=!!yt,Pe=y.useMemo(()=>_e==="left"?Oe==="rtl"?"end":"start":_e==="right"?Oe==="rtl"?"start":"end":_e,[Oe,_e]),ye=Pe==="start"&&et!=null,vt=Pe==="end"&&et!=null,zt=me()(ce,Ie,Ye,je,`${ce}-${Ae}`,{[`${ce}-with-text`]:it,[`${ce}-with-text-${Pe}`]:it,[`${ce}-dashed`]:!!st,[`${ce}-${$e}`]:$e!=="solid",[`${ce}-plain`]:!!pe,[`${ce}-rtl`]:Oe==="rtl",[`${ce}-no-default-orientation-margin-start`]:ye,[`${ce}-no-default-orientation-margin-end`]:vt},qe,ut),Ct=y.useMemo(()=>typeof et=="number"?et:/^\d+$/.test(et)?Number(et):et,[et]),De={marginInlineStart:ye?Ct:void 0,marginInlineEnd:vt?Ct:void 0};return Et(y.createElement("div",Object.assign({className:zt,style:Object.assign(Object.assign({},nt),Le)},xe,{role:"separator"}),yt&&Ae!=="vertical"&&y.createElement("span",{className:`${ce}-inner-text`,style:De},yt)))}},36207:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return It}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(85899),Se=E(72190),Ee=E(43403),Ce=E(34280),ke=y.createContext(null),Fe=y.createContext({}),de=ke,We=E(18642),Te=E(60499),ft=E(77900),Ge=E(10228),Ne=E(26112),Be=E(42244),Oe=E(8654),Ie=["prefixCls","className","containerRef"],nt=function(Ke){var gt=Ke.prefixCls,wt=Ke.className,Tt=Ke.containerRef,Je=(0,Be.Z)(Ke,Ie),tt=y.useContext(Fe),Ht=tt.panel,un=(0,Oe.x1)(Ht,Tt);return y.createElement("div",(0,Te.Z)({className:me()("".concat(gt,"-content"),wt),role:"dialog",ref:un},(0,Ne.Z)(Ke,{aria:!0}),{"aria-modal":"true"},Je))},St=nt,Ae=E(48736);function _e(Qe){return typeof Qe=="string"&&String(Number(Qe))===Qe?((0,Ae.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Qe)):Qe}function et(Qe){warning(!("wrapperClassName"in Qe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Qe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var qe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ut(Qe,Ke){var gt,wt,Tt,Je=Qe.prefixCls,tt=Qe.open,Ht=Qe.placement,un=Qe.inline,Dn=Qe.push,yn=Qe.forceRender,Lt=Qe.autoFocus,cn=Qe.keyboard,Xt=Qe.classNames,Xe=Qe.rootClassName,Nt=Qe.rootStyle,dn=Qe.zIndex,xn=Qe.className,at=Qe.id,Rt=Qe.style,en=Qe.motion,Pt=Qe.width,Ut=Qe.height,Yt=Qe.children,bn=Qe.mask,jn=Qe.maskClosable,Bn=Qe.maskMotion,Zn=Qe.maskClassName,Ot=Qe.maskStyle,jt=Qe.afterOpenChange,on=Qe.onClose,En=Qe.onMouseEnter,tn=Qe.onMouseOver,In=Qe.onMouseLeave,pn=Qe.onClick,On=Qe.onKeyDown,fr=Qe.onKeyUp,Qn=Qe.styles,cr=Qe.drawerRender,Cr=y.useRef(),gr=y.useRef(),Hr=y.useRef();y.useImperativeHandle(Ke,function(){return Cr.current});var Zr=function(kt){var Vt=kt.keyCode,Nn=kt.shiftKey;switch(Vt){case Ge.Z.TAB:{if(Vt===Ge.Z.TAB){if(!Nn&&document.activeElement===Hr.current){var Hn;(Hn=gr.current)===null||Hn===void 0||Hn.focus({preventScroll:!0})}else if(Nn&&document.activeElement===gr.current){var Un;(Un=Hr.current)===null||Un===void 0||Un.focus({preventScroll:!0})}}break}case Ge.Z.ESC:{on&&cn&&(kt.stopPropagation(),on(kt));break}}};y.useEffect(function(){if(tt&&Lt){var Mt;(Mt=Cr.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}},[tt]);var Pn=y.useState(!1),$n=(0,Se.Z)(Pn,2),dr=$n[0],hr=$n[1],_t=y.useContext(de),Qt;typeof Dn=="boolean"?Qt=Dn?{}:{distance:0}:Qt=Dn||{};var ct=(gt=(wt=(Tt=Qt)===null||Tt===void 0?void 0:Tt.distance)!==null&&wt!==void 0?wt:_t==null?void 0:_t.pushDistance)!==null&>!==void 0?gt:180,Zt=y.useMemo(function(){return{pushDistance:ct,push:function(){hr(!0)},pull:function(){hr(!1)}}},[ct]);y.useEffect(function(){if(tt){var Mt;_t==null||(Mt=_t.push)===null||Mt===void 0||Mt.call(_t)}else{var kt;_t==null||(kt=_t.pull)===null||kt===void 0||kt.call(_t)}},[tt]),y.useEffect(function(){return function(){var Mt;_t==null||(Mt=_t.pull)===null||Mt===void 0||Mt.call(_t)}},[]);var ot=bn&&y.createElement(ft.default,(0,Te.Z)({key:"mask"},Bn,{visible:tt}),function(Mt,kt){var Vt=Mt.className,Nn=Mt.style;return y.createElement("div",{className:me()("".concat(Je,"-mask"),Vt,Xt==null?void 0:Xt.mask,Zn),style:(0,we.Z)((0,we.Z)((0,we.Z)({},Nn),Ot),Qn==null?void 0:Qn.mask),onClick:jn&&tt?on:void 0,ref:kt})}),Kt=typeof en=="function"?en(Ht):en,Ft={};if(dr&&ct)switch(Ht){case"top":Ft.transform="translateY(".concat(ct,"px)");break;case"bottom":Ft.transform="translateY(".concat(-ct,"px)");break;case"left":Ft.transform="translateX(".concat(ct,"px)");break;default:Ft.transform="translateX(".concat(-ct,"px)");break}Ht==="left"||Ht==="right"?Ft.width=_e(Pt):Ft.height=_e(Ut);var ar={onMouseEnter:En,onMouseOver:tn,onMouseLeave:In,onClick:pn,onKeyDown:On,onKeyUp:fr},mr=y.createElement(ft.default,(0,Te.Z)({key:"panel"},Kt,{visible:tt,forceRender:yn,onVisibleChanged:function(kt){jt==null||jt(kt)},removeOnLeave:!1,leavedClassName:"".concat(Je,"-content-wrapper-hidden")}),function(Mt,kt){var Vt=Mt.className,Nn=Mt.style,Hn=y.createElement(St,(0,Te.Z)({id:at,containerRef:kt,prefixCls:Je,className:me()(xn,Xt==null?void 0:Xt.content),style:(0,we.Z)((0,we.Z)({},Rt),Qn==null?void 0:Qn.content)},(0,Ne.Z)(Qe,{aria:!0}),ar),Yt);return y.createElement("div",(0,Te.Z)({className:me()("".concat(Je,"-content-wrapper"),Xt==null?void 0:Xt.wrapper,Vt),style:(0,we.Z)((0,we.Z)((0,we.Z)({},Ft),Nn),Qn==null?void 0:Qn.wrapper)},(0,Ne.Z)(Qe,{data:!0})),cr?cr(Hn):Hn)}),At=(0,we.Z)({},Nt);return dn&&(At.zIndex=dn),y.createElement(de.Provider,{value:Zt},y.createElement("div",{className:me()(Je,"".concat(Je,"-").concat(Ht),Xe,(0,We.Z)((0,We.Z)({},"".concat(Je,"-open"),tt),"".concat(Je,"-inline"),un)),style:At,tabIndex:-1,ref:Cr,onKeyDown:Zr},ot,y.createElement("div",{tabIndex:0,ref:gr,style:qe,"aria-hidden":"true","data-sentinel":"start"}),mr,y.createElement("div",{tabIndex:0,ref:Hr,style:qe,"aria-hidden":"true","data-sentinel":"end"})))}var yt=y.forwardRef(ut),st=yt,$e=function(Ke){var gt=Ke.open,wt=gt===void 0?!1:gt,Tt=Ke.prefixCls,Je=Tt===void 0?"rc-drawer":Tt,tt=Ke.placement,Ht=tt===void 0?"right":tt,un=Ke.autoFocus,Dn=un===void 0?!0:un,yn=Ke.keyboard,Lt=yn===void 0?!0:yn,cn=Ke.width,Xt=cn===void 0?378:cn,Xe=Ke.mask,Nt=Xe===void 0?!0:Xe,dn=Ke.maskClosable,xn=dn===void 0?!0:dn,at=Ke.getContainer,Rt=Ke.forceRender,en=Ke.afterOpenChange,Pt=Ke.destroyOnClose,Ut=Ke.onMouseEnter,Yt=Ke.onMouseOver,bn=Ke.onMouseLeave,jn=Ke.onClick,Bn=Ke.onKeyDown,Zn=Ke.onKeyUp,Ot=Ke.panelRef,jt=y.useState(!1),on=(0,Se.Z)(jt,2),En=on[0],tn=on[1],In=y.useState(!1),pn=(0,Se.Z)(In,2),On=pn[0],fr=pn[1];(0,Ce.Z)(function(){fr(!0)},[]);var Qn=On?wt:!1,cr=y.useRef(),Cr=y.useRef();(0,Ce.Z)(function(){Qn&&(Cr.current=document.activeElement)},[Qn]);var gr=function(dr){var hr;if(tn(dr),en==null||en(dr),!dr&&Cr.current&&!((hr=cr.current)!==null&&hr!==void 0&&hr.contains(Cr.current))){var _t;(_t=Cr.current)===null||_t===void 0||_t.focus({preventScroll:!0})}},Hr=y.useMemo(function(){return{panel:Ot}},[Ot]);if(!Rt&&!En&&!Qn&&Pt)return null;var Zr={onMouseEnter:Ut,onMouseOver:Yt,onMouseLeave:bn,onClick:jn,onKeyDown:Bn,onKeyUp:Zn},Pn=(0,we.Z)((0,we.Z)({},Ke),{},{open:Qn,prefixCls:Je,placement:Ht,autoFocus:Dn,keyboard:Lt,width:Xt,mask:Nt,maskClosable:xn,inline:at===!1,afterOpenChange:gr,ref:cr},Zr);return y.createElement(Fe.Provider,{value:Hr},y.createElement(Ee.Z,{open:Qn||Rt||En,autoDestroy:!1,getContainer:at,autoLock:Nt&&(Qn||En)},y.createElement(st,Pn)))},pe=$e,Le=pe,xe=E(62487),ce=E(75030),Et=E(86641),Ye=E(55743),je=E(48755),it=E(91190),Pe=E(78776),ye=E(458),zt=Qe=>{var Ke,gt;const{prefixCls:wt,title:Tt,footer:Je,extra:tt,loading:Ht,onClose:un,headerStyle:Dn,bodyStyle:yn,footerStyle:Lt,children:cn,classNames:Xt,styles:Xe}=Qe,Nt=(0,je.dj)("drawer"),dn=y.useCallback(Pt=>y.createElement("button",{type:"button",onClick:un,"aria-label":"Close",className:`${wt}-close`},Pt),[un]),[xn,at]=(0,Pe.Z)((0,Pe.w)(Qe),(0,Pe.w)(Nt),{closable:!0,closeIconRender:dn}),Rt=y.useMemo(()=>{var Pt,Ut;return!Tt&&!xn?null:y.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Pt=Nt.styles)===null||Pt===void 0?void 0:Pt.header),Dn),Xe==null?void 0:Xe.header),className:me()(`${wt}-header`,{[`${wt}-header-close-only`]:xn&&!Tt&&!tt},(Ut=Nt.classNames)===null||Ut===void 0?void 0:Ut.header,Xt==null?void 0:Xt.header)},y.createElement("div",{className:`${wt}-header-title`},at,Tt&&y.createElement("div",{className:`${wt}-title`},Tt)),tt&&y.createElement("div",{className:`${wt}-extra`},tt))},[xn,at,tt,Dn,wt,Tt]),en=y.useMemo(()=>{var Pt,Ut;if(!Je)return null;const Yt=`${wt}-footer`;return y.createElement("div",{className:me()(Yt,(Pt=Nt.classNames)===null||Pt===void 0?void 0:Pt.footer,Xt==null?void 0:Xt.footer),style:Object.assign(Object.assign(Object.assign({},(Ut=Nt.styles)===null||Ut===void 0?void 0:Ut.footer),Lt),Xe==null?void 0:Xe.footer)},Je)},[Je,Lt,wt]);return y.createElement(y.Fragment,null,Rt,y.createElement("div",{className:me()(`${wt}-body`,Xt==null?void 0:Xt.body,(Ke=Nt.classNames)===null||Ke===void 0?void 0:Ke.body),style:Object.assign(Object.assign(Object.assign({},(gt=Nt.styles)===null||gt===void 0?void 0:gt.body),yn),Xe==null?void 0:Xe.body)},Ht?y.createElement(ye.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${wt}-body-skeleton`}):cn),en)},Ct=E(36237),De=E(63356),mt=E(16931),dt=E(51636);const Gt=Qe=>{const Ke="100%";return{left:`translateX(-${Ke})`,right:`translateX(${Ke})`,top:`translateY(-${Ke})`,bottom:`translateY(${Ke})`}[Qe]},bt=(Qe,Ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},Qe),{"&-active":Ke}),"&-leave":Object.assign(Object.assign({},Ke),{"&-active":Qe})}),xt=(Qe,Ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ke}`}}},bt({opacity:Qe},{opacity:1})),pt=(Qe,Ke)=>[xt(.7,Ke),bt({transform:Gt(Qe)},{transform:"none"})];var Wt=Qe=>{const{componentCls:Ke,motionDurationSlow:gt}=Qe;return{[Ke]:{[`${Ke}-mask-motion`]:xt(0,gt),[`${Ke}-panel-motion`]:["left","right","top","bottom"].reduce((wt,Tt)=>Object.assign(Object.assign({},wt),{[`&-${Tt}`]:pt(Tt,gt)}),{})}}};const ue=Qe=>{const{borderRadiusSM:Ke,componentCls:gt,zIndexPopup:wt,colorBgMask:Tt,colorBgElevated:Je,motionDurationSlow:tt,motionDurationMid:Ht,paddingXS:un,padding:Dn,paddingLG:yn,fontSizeLG:Lt,lineHeightLG:cn,lineWidth:Xt,lineType:Xe,colorSplit:Nt,marginXS:dn,colorIcon:xn,colorIconHover:at,colorBgTextHover:Rt,colorBgTextActive:en,colorText:Pt,fontWeightStrong:Ut,footerPaddingBlock:Yt,footerPaddingInline:bn,calc:jn}=Qe,Bn=`${gt}-content-wrapper`;return{[gt]:{position:"fixed",inset:0,zIndex:wt,pointerEvents:"none",color:Pt,"&-pure":{position:"relative",background:Je,display:"flex",flexDirection:"column",[`&${gt}-left`]:{boxShadow:Qe.boxShadowDrawerLeft},[`&${gt}-right`]:{boxShadow:Qe.boxShadowDrawerRight},[`&${gt}-top`]:{boxShadow:Qe.boxShadowDrawerUp},[`&${gt}-bottom`]:{boxShadow:Qe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${gt}-mask`]:{position:"absolute",inset:0,zIndex:wt,background:Tt,pointerEvents:"auto"},[Bn]:{position:"absolute",zIndex:wt,maxWidth:"100vw",transition:`all ${tt}`,"&-hidden":{display:"none"}},[`&-left > ${Bn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Qe.boxShadowDrawerLeft},[`&-right > ${Bn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Qe.boxShadowDrawerRight},[`&-top > ${Bn}`]:{top:0,insetInline:0,boxShadow:Qe.boxShadowDrawerUp},[`&-bottom > ${Bn}`]:{bottom:0,insetInline:0,boxShadow:Qe.boxShadowDrawerDown},[`${gt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Je,pointerEvents:"auto"},[`${gt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Ct.unit)(Dn)} ${(0,Ct.unit)(yn)}`,fontSize:Lt,lineHeight:cn,borderBottom:`${(0,Ct.unit)(Xt)} ${Xe} ${Nt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${gt}-extra`]:{flex:"none"},[`${gt}-close`]:Object.assign({display:"inline-flex",width:jn(Lt).add(un).equal(),height:jn(Lt).add(un).equal(),borderRadius:Ke,justifyContent:"center",alignItems:"center",marginInlineEnd:dn,color:xn,fontWeight:Ut,fontSize:Lt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ht}`,textRendering:"auto","&:hover":{color:at,backgroundColor:Rt,textDecoration:"none"},"&:active":{backgroundColor:en}},(0,De.Qy)(Qe)),[`${gt}-title`]:{flex:1,margin:0,fontWeight:Qe.fontWeightStrong,fontSize:Lt,lineHeight:cn},[`${gt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:yn,overflow:"auto",[`${gt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${gt}-footer`]:{flexShrink:0,padding:`${(0,Ct.unit)(Yt)} ${(0,Ct.unit)(bn)}`,borderTop:`${(0,Ct.unit)(Xt)} ${Xe} ${Nt}`},"&-rtl":{direction:"rtl"}}}},ae=Qe=>({zIndexPopup:Qe.zIndexPopupBase,footerPaddingBlock:Qe.paddingXS,footerPaddingInline:Qe.padding});var re=(0,mt.I$)("Drawer",Qe=>{const Ke=(0,dt.mergeToken)(Qe,{});return[ue(Ke),Wt(Ke)]},ae),se=function(Qe,Ke){var gt={};for(var wt in Qe)Object.prototype.hasOwnProperty.call(Qe,wt)&&Ke.indexOf(wt)<0&&(gt[wt]=Qe[wt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,wt=Object.getOwnPropertySymbols(Qe);Tt<wt.length;Tt++)Ke.indexOf(wt[Tt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,wt[Tt])&&(gt[wt[Tt]]=Qe[wt[Tt]]);return gt};const ve=null,ie={distance:180},fe=Qe=>{var Ke;const{rootClassName:gt,width:wt,height:Tt,size:Je="default",mask:tt=!0,push:Ht=ie,open:un,afterOpenChange:Dn,onClose:yn,prefixCls:Lt,getContainer:cn,style:Xt,className:Xe,visible:Nt,afterVisibleChange:dn,maskStyle:xn,drawerStyle:at,contentWrapperStyle:Rt}=Qe,en=se(Qe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Pt,getPrefixCls:Ut,direction:Yt,className:bn,style:jn,classNames:Bn,styles:Zn}=(0,je.dj)("drawer"),Ot=Ut("drawer",Lt),[jt,on,En]=re(Ot),tn=cn===void 0&&Pt?()=>Pt(document.body):cn,In=me()({"no-mask":!tt,[`${Ot}-rtl`]:Yt==="rtl"},gt,on,En),pn=y.useMemo(()=>wt!=null?wt:Je==="large"?736:378,[wt,Je]),On=y.useMemo(()=>Tt!=null?Tt:Je==="large"?736:378,[Tt,Je]),fr={motionName:(0,Et.m)(Ot,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Qn=Pn=>({motionName:(0,Et.m)(Ot,`panel-motion-${Pn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),cr=(0,it.H)(),[Cr,gr]=(0,ce.Cn)("Drawer",en.zIndex),{classNames:Hr={},styles:Zr={}}=en;return jt(y.createElement(xe.Z,{form:!0,space:!0},y.createElement(Ye.Z.Provider,{value:gr},y.createElement(Le,Object.assign({prefixCls:Ot,onClose:yn,maskMotion:fr,motion:Qn},en,{classNames:{mask:me()(Hr.mask,Bn.mask),content:me()(Hr.content,Bn.content),wrapper:me()(Hr.wrapper,Bn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Zr.mask),xn),Zn.mask),content:Object.assign(Object.assign(Object.assign({},Zr.content),at),Zn.content),wrapper:Object.assign(Object.assign(Object.assign({},Zr.wrapper),Rt),Zn.wrapper)},open:un!=null?un:Nt,mask:tt,push:Ht,width:pn,height:On,style:Object.assign(Object.assign({},jn),Xt),className:me()(bn,Xe),rootClassName:In,getContainer:tn,afterOpenChange:Dn!=null?Dn:dn,panelRef:cr,zIndex:Cr}),y.createElement(zt,Object.assign({prefixCls:Ot},en,{onClose:yn}))))))},Ve=Qe=>{const{prefixCls:Ke,style:gt,className:wt,placement:Tt="right"}=Qe,Je=se(Qe,["prefixCls","style","className","placement"]),{getPrefixCls:tt}=y.useContext(je.E_),Ht=tt("drawer",Ke),[un,Dn,yn]=re(Ht),Lt=me()(Ht,`${Ht}-pure`,`${Ht}-${Tt}`,Dn,yn,wt);return un(y.createElement("div",{className:Lt,style:gt},y.createElement(zt,Object.assign({prefixCls:Ht},Je))))};fe._InternalPanelDoNotUseOrYouWillBeFired=Ve;var It=fe},19563:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ct}});var y=E(59301),ge=E(33853),me=E(38819),we=E(92310),Se=E.n(we),Ee=E(96478),Ce=E(6089),ke=E(18929),Fe=E(2738),de=E(75030),Te=De=>typeof De!="object"&&typeof De!="function"||De===null,ft=E(52838),Ge=E(45915),Ne=E(22703),Be=E(32383),Oe=E(55743),Ie=E(48755),nt=E(83397),St=E(93041),Ae=E(78857),_e=E(57700),et=E(36237),qe=E(63356),ut=E(46e3),yt=E(93873),st=E(34925),$e=E(37645),pe=E(36305),Le=E(16931),xe=E(51636),Et=De=>{const{componentCls:mt,menuCls:dt,colorError:Gt,colorTextLightSolid:bt}=De,xt=`${dt}-item`;return{[`${mt}, ${mt}-menu-submenu`]:{[`${dt} ${xt}`]:{[`&${xt}-danger:not(${xt}-disabled)`]:{color:Gt,"&:hover":{color:bt,backgroundColor:Gt}}}}}};const Ye=De=>{const{componentCls:mt,menuCls:dt,zIndexPopup:Gt,dropdownArrowDistance:bt,sizePopupArrow:xt,antCls:pt,iconCls:ln,motionDurationMid:Wt,paddingBlock:ue,fontSize:ae,dropdownEdgeChildPadding:re,colorTextDisabled:se,fontSizeIcon:ve,controlPaddingHorizontal:ie,colorBgElevated:fe}=De;return[{[mt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Gt,display:"block","&::before":{position:"absolute",insetBlock:De.calc(xt).div(2).sub(bt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${pt}-btn`]:{[`& > ${ln}-down, & > ${pt}-btn-icon > ${ln}-down`]:{fontSize:ve}},[`${mt}-wrap`]:{position:"relative",[`${pt}-btn > ${ln}-down`]:{fontSize:ve},[`${ln}-down::before`]:{transition:`transform ${Wt}`}},[`${mt}-wrap-open`]:{[`${ln}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${pt}-slide-down-enter${pt}-slide-down-enter-active${mt}-placement-bottomLeft,
|
|
|
&${pt}-slide-down-appear${pt}-slide-down-appear-active${mt}-placement-bottomLeft,
|
|
|
&${pt}-slide-down-enter${pt}-slide-down-enter-active${mt}-placement-bottom,
|
|
|
&${pt}-slide-down-appear${pt}-slide-down-appear-active${mt}-placement-bottom,
|
|
|
&${pt}-slide-down-enter${pt}-slide-down-enter-active${mt}-placement-bottomRight,
|
|
|
&${pt}-slide-down-appear${pt}-slide-down-appear-active${mt}-placement-bottomRight`]:{animationName:ut.fJ},[`&${pt}-slide-up-enter${pt}-slide-up-enter-active${mt}-placement-topLeft,
|
|
|
&${pt}-slide-up-appear${pt}-slide-up-appear-active${mt}-placement-topLeft,
|
|
|
&${pt}-slide-up-enter${pt}-slide-up-enter-active${mt}-placement-top,
|
|
|
&${pt}-slide-up-appear${pt}-slide-up-appear-active${mt}-placement-top,
|
|
|
&${pt}-slide-up-enter${pt}-slide-up-enter-active${mt}-placement-topRight,
|
|
|
&${pt}-slide-up-appear${pt}-slide-up-appear-active${mt}-placement-topRight`]:{animationName:ut.Qt},[`&${pt}-slide-down-leave${pt}-slide-down-leave-active${mt}-placement-bottomLeft,
|
|
|
&${pt}-slide-down-leave${pt}-slide-down-leave-active${mt}-placement-bottom,
|
|
|
&${pt}-slide-down-leave${pt}-slide-down-leave-active${mt}-placement-bottomRight`]:{animationName:ut.Uw},[`&${pt}-slide-up-leave${pt}-slide-up-leave-active${mt}-placement-topLeft,
|
|
|
&${pt}-slide-up-leave${pt}-slide-up-leave-active${mt}-placement-top,
|
|
|
&${pt}-slide-up-leave${pt}-slide-up-leave-active${mt}-placement-topRight`]:{animationName:ut.ly}}},(0,$e.ZP)(De,fe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${mt} ${dt}`]:{position:"relative",margin:0},[`${dt}-submenu-popup`]:{position:"absolute",zIndex:Gt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${mt}, ${mt}-menu-submenu`]:Object.assign(Object.assign({},(0,qe.Wf)(De)),{[dt]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:fe,backgroundClip:"padding-box",borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary},(0,qe.Qy)(De)),{"&:empty":{padding:0,boxShadow:"none"},[`${dt}-item-group-title`]:{padding:`${(0,et.unit)(ue)} ${(0,et.unit)(ie)}`,color:De.colorTextDescription,transition:`all ${Wt}`},[`${dt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${dt}-item-icon`]:{minWidth:ae,marginInlineEnd:De.marginXS,fontSize:De.fontSizeSM},[`${dt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Wt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${dt}-item-extra`]:{paddingInlineStart:De.padding,marginInlineStart:"auto",fontSize:De.fontSizeSM,color:De.colorTextDescription}},[`${dt}-item, ${dt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,et.unit)(ue)} ${(0,et.unit)(ie)}`,color:De.colorText,fontWeight:"normal",fontSize:ae,lineHeight:De.lineHeight,cursor:"pointer",transition:`all ${Wt}`,borderRadius:De.borderRadiusSM,"&:hover, &-active":{backgroundColor:De.controlItemBgHover}},(0,qe.Qy)(De)),{"&-selected":{color:De.colorPrimary,backgroundColor:De.controlItemBgActive,"&:hover, &-active":{backgroundColor:De.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:fe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,et.unit)(De.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:De.colorSplit},[`${mt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:De.paddingXS,[`${mt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:De.colorTextDescription,fontSize:ve,fontStyle:"normal"}}}),[`${dt}-item-group-list`]:{margin:`0 ${(0,et.unit)(De.marginXS)}`,padding:0,listStyle:"none"},[`${dt}-submenu-title`]:{paddingInlineEnd:De.calc(ie).add(De.fontSizeSM).equal()},[`${dt}-submenu-vertical`]:{position:"relative"},[`${dt}-submenu${dt}-submenu-disabled ${mt}-menu-submenu-title`]:{[`&, ${mt}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:fe,cursor:"not-allowed"}},[`${dt}-submenu-selected ${mt}-menu-submenu-title`]:{color:De.colorPrimary}})})},[(0,ut.oN)(De,"slide-up"),(0,ut.oN)(De,"slide-down"),(0,yt.Fm)(De,"move-up"),(0,yt.Fm)(De,"move-down"),(0,st._y)(De,"zoom-big")]]},je=De=>Object.assign(Object.assign({zIndexPopup:De.zIndexPopupBase+50,paddingBlock:(De.controlHeight-De.fontSize*De.lineHeight)/2},(0,$e.wZ)({contentRadius:De.borderRadiusLG,limitVerticalRadius:!0})),(0,pe.w)(De));var it=(0,Le.I$)("Dropdown",De=>{const{marginXXS:mt,sizePopupArrow:dt,paddingXXS:Gt,componentCls:bt}=De,xt=(0,xe.mergeToken)(De,{menuCls:`${bt}-menu`,dropdownArrowDistance:De.calc(dt).div(2).add(mt).equal(),dropdownEdgeChildPadding:Gt});return[Ye(xt),Et(xt)]},je,{resetStyle:!1});const Pe=null,ye=De=>{var mt;const{menu:dt,arrow:Gt,prefixCls:bt,children:xt,trigger:pt,disabled:ln,dropdownRender:Wt,getPopupContainer:ue,overlayClassName:ae,rootClassName:re,overlayStyle:se,open:ve,onOpenChange:ie,visible:fe,onVisibleChange:Ve,mouseEnterDelay:It=.15,mouseLeaveDelay:Qe=.1,autoAdjustOverflow:Ke=!0,placement:gt="",overlay:wt,transitionName:Tt}=De,{getPopupContainer:Je,getPrefixCls:tt,direction:Ht,dropdown:un}=y.useContext(Ie.E_),Dn=(0,Be.ln)("Dropdown"),yn=y.useMemo(()=>{const tn=tt();return Tt!==void 0?Tt:gt.includes("top")?`${tn}-slide-down`:`${tn}-slide-up`},[tt,gt,Tt]),Lt=y.useMemo(()=>gt?gt.includes("Center")?gt.slice(0,gt.indexOf("Center")):gt:Ht==="rtl"?"bottomRight":"bottomLeft",[gt,Ht]),cn=tt("dropdown",bt),Xt=(0,nt.Z)(cn),[Xe,Nt,dn]=it(cn,Xt),[,xn]=(0,_e.ZP)(),at=y.Children.only(Te(xt)?y.createElement("span",null,xt):xt),Rt=(0,Ne.Tm)(at,{className:Se()(`${cn}-trigger`,{[`${cn}-rtl`]:Ht==="rtl"},at.props.className),disabled:(mt=at.props.disabled)!==null&&mt!==void 0?mt:ln}),en=ln?[]:pt,Pt=!!(en!=null&&en.includes("contextMenu")),[Ut,Yt]=(0,ke.Z)(!1,{value:ve!=null?ve:fe}),bn=(0,Ce.Z)(tn=>{ie==null||ie(tn,{source:"trigger"}),Ve==null||Ve(tn),Yt(tn)}),jn=Se()(ae,re,Nt,dn,Xt,un==null?void 0:un.className,{[`${cn}-rtl`]:Ht==="rtl"}),Bn=(0,ft.Z)({arrowPointAtCenter:typeof Gt=="object"&&Gt.pointAtCenter,autoAdjustOverflow:Ke,offset:xn.marginXXS,arrowWidth:Gt?xn.sizePopupArrow:0,borderRadius:xn.borderRadius}),Zn=y.useCallback(()=>{dt!=null&&dt.selectable&&(dt!=null&&dt.multiple)||(ie==null||ie(!1,{source:"menu"}),Yt(!1))},[dt==null?void 0:dt.selectable,dt==null?void 0:dt.multiple]),Ot=()=>{let tn;return dt!=null&&dt.items?tn=y.createElement(St.default,Object.assign({},dt)):typeof wt=="function"?tn=wt():tn=wt,Wt&&(tn=Wt(tn)),tn=y.Children.only(typeof tn=="string"?y.createElement("span",null,tn):tn),y.createElement(Ae.J,{prefixCls:`${cn}-menu`,rootClassName:Se()(dn,Xt),expandIcon:y.createElement("span",{className:`${cn}-menu-submenu-arrow`},Ht==="rtl"?y.createElement(ge.Z,{className:`${cn}-menu-submenu-arrow-icon`}):y.createElement(me.Z,{className:`${cn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Zn,validator:In=>{let{mode:pn}=In}},tn)},[jt,on]=(0,de.Cn)("Dropdown",se==null?void 0:se.zIndex);let En=y.createElement(Ee.Z,Object.assign({alignPoint:Pt},(0,Fe.Z)(De,["rootClassName"]),{mouseEnterDelay:It,mouseLeaveDelay:Qe,visible:Ut,builtinPlacements:Bn,arrow:!!Gt,overlayClassName:jn,prefixCls:cn,getPopupContainer:ue||Je,transitionName:yn,trigger:en,overlay:Ot,placement:Lt,onVisibleChange:bn,overlayStyle:Object.assign(Object.assign(Object.assign({},un==null?void 0:un.style),se),{zIndex:jt})}),Rt);return jt&&(En=y.createElement(Oe.Z.Provider,{value:on},En)),Xe(En)},vt=(0,Ge.Z)(ye,"align",void 0,"dropdown",De=>De),zt=De=>y.createElement(vt,Object.assign({},De),y.createElement("span",null));ye._InternalPanelDoNotUseOrYouWillBeFired=zt;var Ct=ye},75727:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ge}});var y=E(19563),ge=E(59301),me=E(18785),we=E(92310),Se=E.n(we),Ee=E(7939),Ce=E(48755),ke=E(44104),Fe=E(70045),de=function(Ne,Be){var Oe={};for(var Ie in Ne)Object.prototype.hasOwnProperty.call(Ne,Ie)&&Be.indexOf(Ie)<0&&(Oe[Ie]=Ne[Ie]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ie=Object.getOwnPropertySymbols(Ne);nt<Ie.length;nt++)Be.indexOf(Ie[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Ie[nt])&&(Oe[Ie[nt]]=Ne[Ie[nt]]);return Oe};const We=Ne=>{const{getPopupContainer:Be,getPrefixCls:Oe,direction:Ie}=ge.useContext(Ce.E_),{prefixCls:nt,type:St="default",danger:Ae,disabled:_e,loading:et,onClick:qe,htmlType:ut,children:yt,className:st,menu:$e,arrow:pe,autoFocus:Le,overlay:xe,trigger:ce,align:Et,open:Ye,onOpenChange:je,placement:it,getPopupContainer:Pe,href:ye,icon:vt=ge.createElement(me.Z,null),title:zt,buttonsRender:Ct=It=>It,mouseEnterDelay:De,mouseLeaveDelay:mt,overlayClassName:dt,overlayStyle:Gt,destroyPopupOnHide:bt,dropdownRender:xt}=Ne,pt=de(Ne,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ln=Oe("dropdown",nt),Wt=`${ln}-button`,ue={menu:$e,arrow:pe,autoFocus:Le,align:Et,disabled:_e,trigger:_e?[]:ce,onOpenChange:je,getPopupContainer:Pe||Be,mouseEnterDelay:De,mouseLeaveDelay:mt,overlayClassName:dt,overlayStyle:Gt,destroyPopupOnHide:bt,dropdownRender:xt},{compactSize:ae,compactItemClassnames:re}=(0,Fe.ri)(ln,Ie),se=Se()(Wt,re,st);"overlay"in Ne&&(ue.overlay=xe),"open"in Ne&&(ue.open=Ye),"placement"in Ne?ue.placement=it:ue.placement=Ie==="rtl"?"bottomLeft":"bottomRight";const ve=ge.createElement(Ee.ZP,{type:St,danger:Ae,disabled:_e,loading:et,onClick:qe,htmlType:ut,href:ye,title:zt},yt),ie=ge.createElement(Ee.ZP,{type:St,danger:Ae,icon:vt}),[fe,Ve]=Ct([ve,ie]);return ge.createElement(ke.Z.Compact,Object.assign({className:se,size:ae,block:!0},pt),fe,ge.createElement(y.Z,Object.assign({},ue),Ve))};We.__ANT_BUTTON=!0;var Te=We;const ft=y.Z;ft.Button=Te;var Ge=ft},584:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return St}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(9017),Se=E(17835),Ee=E(57700),ke=()=>{const[,Ae]=(0,Ee.ZP)(),[_e]=(0,we.Z)("Empty"),qe=new Se.FastColor(Ae.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:qe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(_e==null?void 0:_e.description)||"Empty"),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(24 31.67)"},y.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),y.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),y.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),y.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),y.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),y.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),y.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},y.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),y.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},de=()=>{const[,Ae]=(0,Ee.ZP)(),[_e]=(0,we.Z)("Empty"),{colorFill:et,colorFillTertiary:qe,colorFillQuaternary:ut,colorBgContainer:yt}=Ae,{borderColor:st,shadowColor:$e,contentColor:pe}=(0,y.useMemo)(()=>({borderColor:new Se.FastColor(et).onBackground(yt).toHexString(),shadowColor:new Se.FastColor(qe).onBackground(yt).toHexString(),contentColor:new Se.FastColor(ut).onBackground(yt).toHexString()}),[et,qe,ut,yt]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(_e==null?void 0:_e.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:$e,cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{fillRule:"nonzero",stroke:st},y.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),y.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:pe}))))},We=E(16931),Te=E(51636);const ft=Ae=>{const{componentCls:_e,margin:et,marginXS:qe,marginXL:ut,fontSize:yt,lineHeight:st}=Ae;return{[_e]:{marginInline:qe,fontSize:yt,lineHeight:st,textAlign:"center",[`${_e}-image`]:{height:Ae.emptyImgHeight,marginBottom:qe,opacity:Ae.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${_e}-description`]:{color:Ae.colorTextDescription},[`${_e}-footer`]:{marginTop:et},"&-normal":{marginBlock:ut,color:Ae.colorTextDescription,[`${_e}-description`]:{color:Ae.colorTextDescription},[`${_e}-image`]:{height:Ae.emptyImgHeightMD}},"&-small":{marginBlock:qe,color:Ae.colorTextDescription,[`${_e}-image`]:{height:Ae.emptyImgHeightSM}}}}};var Ge=(0,We.I$)("Empty",Ae=>{const{componentCls:_e,controlHeightLG:et,calc:qe}=Ae,ut=(0,Te.mergeToken)(Ae,{emptyImgCls:`${_e}-img`,emptyImgHeight:qe(et).mul(2.5).equal(),emptyImgHeightMD:et,emptyImgHeightSM:qe(et).mul(.875).equal()});return[ft(ut)]}),Ne=E(48755),Be=function(Ae,_e){var et={};for(var qe in Ae)Object.prototype.hasOwnProperty.call(Ae,qe)&&_e.indexOf(qe)<0&&(et[qe]=Ae[qe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,qe=Object.getOwnPropertySymbols(Ae);ut<qe.length;ut++)_e.indexOf(qe[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ae,qe[ut])&&(et[qe[ut]]=Ae[qe[ut]]);return et};const Oe=y.createElement(ke,null),Ie=y.createElement(de,null),nt=Ae=>{const{className:_e,rootClassName:et,prefixCls:qe,image:ut=Oe,description:yt,children:st,imageStyle:$e,style:pe,classNames:Le,styles:xe}=Ae,ce=Be(Ae,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Et,direction:Ye,className:je,style:it,classNames:Pe,styles:ye}=(0,Ne.dj)("empty"),vt=Et("empty",qe),[zt,Ct,De]=Ge(vt),[mt]=(0,we.Z)("Empty"),dt=typeof yt!="undefined"?yt:mt==null?void 0:mt.description,Gt=typeof dt=="string"?dt:"empty";let bt=null;return typeof ut=="string"?bt=y.createElement("img",{alt:Gt,src:ut}):bt=ut,zt(y.createElement("div",Object.assign({className:me()(Ct,De,vt,je,{[`${vt}-normal`]:ut===Ie,[`${vt}-rtl`]:Ye==="rtl"},_e,et,Pe.root,Le==null?void 0:Le.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),it),xe==null?void 0:xe.root),pe)},ce),y.createElement("div",{className:me()(`${vt}-image`,Pe.image,Le==null?void 0:Le.image),style:Object.assign(Object.assign(Object.assign({},$e),ye.image),xe==null?void 0:xe.image)},bt),dt&&y.createElement("div",{className:me()(`${vt}-description`,Pe.description,Le==null?void 0:Le.description),style:Object.assign(Object.assign({},ye.description),xe==null?void 0:xe.description)},dt),st&&y.createElement("div",{className:me()(`${vt}-footer`,Pe.footer,Le==null?void 0:Le.footer),style:Object.assign(Object.assign({},ye.footer),xe==null?void 0:xe.footer)},st)))};nt.PRESENTED_IMAGE_DEFAULT=Oe,nt.PRESENTED_IMAGE_SIMPLE=Ie;var St=nt},28284:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return Qt}});var y=E(56553),ge=E(77654),me=E(59301),we=E(92310),Se=E.n(we),Ee=E(77900),Ce=E(86641),ke=E(83397);function Fe(ct){const[Zt,ot]=me.useState(ct);return me.useEffect(()=>{const Kt=setTimeout(()=>{ot(ct)},ct.length?0:10);return()=>{clearTimeout(Kt)}},[ct]),Zt}var de=E(36237),We=E(63356),Te=E(34925),ft=E(34961),Ge=E(51636),Ne=E(16931),Oe=ct=>{const{componentCls:Zt}=ct,ot=`${Zt}-show-help`,Kt=`${Zt}-show-help-item`;return{[ot]:{transition:`opacity ${ct.motionDurationFast} ${ct.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Kt]:{overflow:"hidden",transition:`height ${ct.motionDurationFast} ${ct.motionEaseInOut},
|
|
|
opacity ${ct.motionDurationFast} ${ct.motionEaseInOut},
|
|
|
transform ${ct.motionDurationFast} ${ct.motionEaseInOut} !important`,[`&${Kt}-appear, &${Kt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Kt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ie=ct=>({legend:{display:"block",width:"100%",marginBottom:ct.marginLG,padding:0,color:ct.colorTextDescription,fontSize:ct.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,de.unit)(ct.lineWidth)} ${ct.lineType} ${ct.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,de.unit)(ct.controlOutlineWidth)} ${ct.controlOutline}`},output:{display:"block",paddingTop:15,color:ct.colorText,fontSize:ct.fontSize,lineHeight:ct.lineHeight}}),nt=(ct,Zt)=>{const{formItemCls:ot}=ct;return{[ot]:{[`${ot}-label > label`]:{height:Zt},[`${ot}-control-input`]:{minHeight:Zt}}}},St=ct=>{const{componentCls:Zt}=ct;return{[ct.componentCls]:Object.assign(Object.assign(Object.assign({},(0,We.Wf)(ct)),Ie(ct)),{[`${Zt}-text`]:{display:"inline-block",paddingInlineEnd:ct.paddingSM},"&-small":Object.assign({},nt(ct,ct.controlHeightSM)),"&-large":Object.assign({},nt(ct,ct.controlHeightLG))})}},Ae=ct=>{const{formItemCls:Zt,iconCls:ot,rootPrefixCls:Kt,antCls:Ft,labelRequiredMarkColor:ar,labelColor:mr,labelFontSize:At,labelHeight:Mt,labelColonMarginInlineStart:kt,labelColonMarginInlineEnd:Vt,itemMarginBottom:Nn}=ct;return{[Zt]:Object.assign(Object.assign({},(0,We.Wf)(ct)),{marginBottom:Nn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Ft}-row`]:{display:"none"},"&-has-warning":{[`${Zt}-split`]:{color:ct.colorError}},"&-has-error":{[`${Zt}-split`]:{color:ct.colorWarning}},[`${Zt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ct.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Mt,color:mr,fontSize:At,[`> ${ot}`]:{fontSize:ct.fontSize,verticalAlign:"top"},[`&${Zt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ct.marginXXS,color:ar,fontSize:ct.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Zt}-required-mark-hidden, &${Zt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Zt}-optional`]:{display:"inline-block",marginInlineStart:ct.marginXXS,color:ct.colorTextDescription,[`&${Zt}-required-mark-hidden`]:{display:"none"}},[`${Zt}-tooltip`]:{color:ct.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ct.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:kt,marginInlineEnd:Vt},[`&${Zt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Zt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Kt}-col-'"]):not([class*="' ${Kt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ct.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Zt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ct.colorTextDescription,fontSize:ct.fontSize,lineHeight:ct.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ct.controlHeightSM,transition:`color ${ct.motionDurationMid} ${ct.motionEaseOut}`},"&-explain":{"&-error":{color:ct.colorError},"&-warning":{color:ct.colorWarning}}},[`&-with-help ${Zt}-explain`]:{height:"auto",opacity:1},[`${Zt}-feedback-icon`]:{fontSize:ct.fontSize,textAlign:"center",visibility:"visible",animationName:Te.kr,animationDuration:ct.motionDurationMid,animationTimingFunction:ct.motionEaseOutBack,pointerEvents:"none","&-success":{color:ct.colorSuccess},"&-error":{color:ct.colorError},"&-warning":{color:ct.colorWarning},"&-validating":{color:ct.colorPrimary}}})}},_e=(ct,Zt)=>{const{formItemCls:ot}=ct;return{[`${Zt}-horizontal`]:{[`${ot}-label`]:{flexGrow:0},[`${ot}-control`]:{flex:"1 1 0",minWidth:0},[`${ot}-label[class$='-24'], ${ot}-label[class*='-24 ']`]:{[`& + ${ot}-control`]:{minWidth:"unset"}}}}},et=ct=>{const{componentCls:Zt,formItemCls:ot,inlineItemMarginBottom:Kt}=ct;return{[`${Zt}-inline`]:{display:"flex",flexWrap:"wrap",[ot]:{flex:"none",marginInlineEnd:ct.margin,marginBottom:Kt,"&-row":{flexWrap:"nowrap"},[`> ${ot}-label,
|
|
|
> ${ot}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ot}-label`]:{flex:"none"},[`${Zt}-text`]:{display:"inline-block"},[`${ot}-has-feedback`]:{display:"inline-block"}}}}},qe=ct=>({padding:ct.verticalLabelPadding,margin:ct.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ut=ct=>{const{componentCls:Zt,formItemCls:ot,rootPrefixCls:Kt}=ct;return{[`${ot} ${ot}-label`]:qe(ct),[`${Zt}:not(${Zt}-inline)`]:{[ot]:{flexWrap:"wrap",[`${ot}-label, ${ot}-control`]:{[`&:not([class*=" ${Kt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},yt=ct=>{const{componentCls:Zt,formItemCls:ot,antCls:Kt}=ct;return{[`${Zt}-vertical`]:{[`${ot}:not(${ot}-horizontal)`]:{[`${ot}-row`]:{flexDirection:"column"},[`${ot}-label > label`]:{height:"auto"},[`${ot}-control`]:{width:"100%"},[`${ot}-label,
|
|
|
${Kt}-col-24${ot}-label,
|
|
|
${Kt}-col-xl-24${ot}-label`]:qe(ct)}},[`@media (max-width: ${(0,de.unit)(ct.screenXSMax)})`]:[ut(ct),{[Zt]:{[`${ot}:not(${ot}-horizontal)`]:{[`${Kt}-col-xs-24${ot}-label`]:qe(ct)}}}],[`@media (max-width: ${(0,de.unit)(ct.screenSMMax)})`]:{[Zt]:{[`${ot}:not(${ot}-horizontal)`]:{[`${Kt}-col-sm-24${ot}-label`]:qe(ct)}}},[`@media (max-width: ${(0,de.unit)(ct.screenMDMax)})`]:{[Zt]:{[`${ot}:not(${ot}-horizontal)`]:{[`${Kt}-col-md-24${ot}-label`]:qe(ct)}}},[`@media (max-width: ${(0,de.unit)(ct.screenLGMax)})`]:{[Zt]:{[`${ot}:not(${ot}-horizontal)`]:{[`${Kt}-col-lg-24${ot}-label`]:qe(ct)}}}}},st=ct=>{const{formItemCls:Zt,antCls:ot}=ct;return{[`${Zt}-vertical`]:{[`${Zt}-row`]:{flexDirection:"column"},[`${Zt}-label > label`]:{height:"auto"},[`${Zt}-control`]:{width:"100%"}},[`${Zt}-vertical ${Zt}-label,
|
|
|
${ot}-col-24${Zt}-label,
|
|
|
${ot}-col-xl-24${Zt}-label`]:qe(ct),[`@media (max-width: ${(0,de.unit)(ct.screenXSMax)})`]:[ut(ct),{[Zt]:{[`${ot}-col-xs-24${Zt}-label`]:qe(ct)}}],[`@media (max-width: ${(0,de.unit)(ct.screenSMMax)})`]:{[Zt]:{[`${ot}-col-sm-24${Zt}-label`]:qe(ct)}},[`@media (max-width: ${(0,de.unit)(ct.screenMDMax)})`]:{[Zt]:{[`${ot}-col-md-24${Zt}-label`]:qe(ct)}},[`@media (max-width: ${(0,de.unit)(ct.screenLGMax)})`]:{[Zt]:{[`${ot}-col-lg-24${Zt}-label`]:qe(ct)}}}},$e=ct=>({labelRequiredMarkColor:ct.colorError,labelColor:ct.colorTextHeading,labelFontSize:ct.fontSize,labelHeight:ct.controlHeight,labelColonMarginInlineStart:ct.marginXXS/2,labelColonMarginInlineEnd:ct.marginXS,itemMarginBottom:ct.marginLG,verticalLabelPadding:`0 0 ${ct.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),pe=(ct,Zt)=>(0,Ge.mergeToken)(ct,{formItemCls:`${ct.componentCls}-item`,rootPrefixCls:Zt});var Le=(0,Ne.I$)("Form",(ct,Zt)=>{let{rootPrefixCls:ot}=Zt;const Kt=pe(ct,ot);return[St(Kt),Ae(Kt),Oe(Kt),_e(Kt,Kt.componentCls),_e(Kt,Kt.formItemCls),et(Kt),yt(Kt),st(Kt),(0,ft.Z)(Kt),Te.kr]},$e,{order:-1e3});const xe=[];function ce(ct,Zt,ot){let Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ct=="string"?ct:`${Zt}-${Kt}`,error:ct,errorStatus:ot}}var Ye=ct=>{let{help:Zt,helpStatus:ot,errors:Kt=xe,warnings:Ft=xe,className:ar,fieldId:mr,onVisibleChanged:At}=ct;const{prefixCls:Mt}=me.useContext(y.Rk),kt=`${Mt}-item-explain`,Vt=(0,ke.Z)(Mt),[Nn,Hn,Un]=Le(Mt,Vt),Xn=me.useMemo(()=>(0,Ce.Z)(Mt),[Mt]),pr=Fe(Kt),wr=Fe(Ft),Or=me.useMemo(()=>Zt!=null?[ce(Zt,"help",ot)]:[].concat((0,ge.Z)(pr.map((Mr,Vr)=>ce(Mr,"error","error",Vr))),(0,ge.Z)(wr.map((Mr,Vr)=>ce(Mr,"warning","warning",Vr)))),[Zt,ot,pr,wr]),Lr=me.useMemo(()=>{const Mr={};return Or.forEach(Vr=>{let{key:oa}=Vr;Mr[oa]=(Mr[oa]||0)+1}),Or.map((Vr,oa)=>Object.assign(Object.assign({},Vr),{key:Mr[Vr.key]>1?`${Vr.key}-fallback-${oa}`:Vr.key}))},[Or]),Sr={};return mr&&(Sr.id=`${mr}_help`),Nn(me.createElement(Ee.default,{motionDeadline:Xn.motionDeadline,motionName:`${Mt}-show-help`,visible:!!Lr.length,onVisibleChanged:At},Mr=>{const{className:Vr,style:oa}=Mr;return me.createElement("div",Object.assign({},Sr,{className:Se()(kt,Vr,Un,Vt,ar,Hn),style:oa}),me.createElement(Ee.CSSMotionList,Object.assign({keys:Lr},(0,Ce.Z)(Mt),{motionName:`${Mt}-show-help-item`,component:!1}),ra=>{const{key:Oa,error:ba,errorStatus:Kr,className:ga,style:Qa}=ra;return me.createElement("div",{key:Oa,className:Se()(ga,{[`${kt}-${Kr}`]:Kr}),style:Qa},ba)}))}))},je=E(69180),it=E(48755),Pe=E(2171),ye=E(31756),vt=E(23069),zt=E(76846),Ct=E(16722);const De=["parentNode"],mt="form_item";function dt(ct){return ct===void 0||ct===!1?[]:Array.isArray(ct)?ct:[ct]}function Gt(ct,Zt){if(!ct.length)return;const ot=ct.join("_");return Zt?`${Zt}_${ot}`:De.includes(ot)?`${mt}_${ot}`:ot}function bt(ct,Zt,ot,Kt,Ft,ar){let mr=Kt;return ar!==void 0?mr=ar:ot.validating?mr="validating":ct.length?mr="error":Zt.length?mr="warning":(ot.touched||Ft&&ot.validated)&&(mr="success"),mr}var xt=function(ct,Zt){var ot={};for(var Kt in ct)Object.prototype.hasOwnProperty.call(ct,Kt)&&Zt.indexOf(Kt)<0&&(ot[Kt]=ct[Kt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Kt=Object.getOwnPropertySymbols(ct);Ft<Kt.length;Ft++)Zt.indexOf(Kt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(ct,Kt[Ft])&&(ot[Kt[Ft]]=ct[Kt[Ft]]);return ot};function pt(ct){return dt(ct).join("_")}function ln(ct,Zt){const ot=Zt.getFieldInstance(ct),Kt=(0,zt.bn)(ot);if(Kt)return Kt;const Ft=Gt(dt(ct),Zt.__INTERNAL__.name);if(Ft)return document.getElementById(Ft)}function Wt(ct){const[Zt]=(0,je.useForm)(),ot=me.useRef({}),Kt=me.useMemo(()=>ct!=null?ct:Object.assign(Object.assign({},Zt),{__INTERNAL__:{itemRef:Ft=>ar=>{const mr=pt(Ft);ar?ot.current[mr]=ar:delete ot.current[mr]}},scrollToField:function(Ft){let ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:mr}=ar,At=xt(ar,["focus"]),Mt=ln(Ft,Kt);Mt&&((0,Ct.Z)(Mt,Object.assign({scrollMode:"if-needed",block:"nearest"},At)),mr&&Kt.focusField(Ft))},focusField:Ft=>{var ar,mr;const At=Kt.getFieldInstance(Ft);typeof(At==null?void 0:At.focus)=="function"?At.focus():(mr=(ar=ln(Ft,Kt))===null||ar===void 0?void 0:ar.focus)===null||mr===void 0||mr.call(ar)},getFieldInstance:Ft=>{const ar=pt(Ft);return ot.current[ar]}}),[ct,Zt]);return[Kt]}var ue=E(98350),ae=function(ct,Zt){var ot={};for(var Kt in ct)Object.prototype.hasOwnProperty.call(ct,Kt)&&Zt.indexOf(Kt)<0&&(ot[Kt]=ct[Kt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Kt=Object.getOwnPropertySymbols(ct);Ft<Kt.length;Ft++)Zt.indexOf(Kt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(ct,Kt[Ft])&&(ot[Kt[Ft]]=ct[Kt[Ft]]);return ot};const re=(ct,Zt)=>{const ot=me.useContext(Pe.Z),{getPrefixCls:Kt,direction:Ft,requiredMark:ar,colon:mr,scrollToFirstError:At,className:Mt,style:kt}=(0,it.dj)("form"),{prefixCls:Vt,className:Nn,rootClassName:Hn,size:Un,disabled:Xn=ot,form:pr,colon:wr,labelAlign:Or,labelWrap:Lr,labelCol:Sr,wrapperCol:Mr,hideRequiredMark:Vr,layout:oa="horizontal",scrollToFirstError:ra,requiredMark:Oa,onFinishFailed:ba,name:Kr,style:ga,feedbackIcons:Qa,variant:Da}=ct,Ea=ae(ct,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Rr=(0,ye.Z)(Un),Za=me.useContext(ue.Z),Pa=me.useMemo(()=>Oa!==void 0?Oa:Vr?!1:ar!==void 0?ar:!0,[Vr,Oa,ar]),la=wr!=null?wr:mr,Xr=Kt("form",Vt),$a=(0,ke.Z)(Xr),[Mi,$i,Xa]=Le(Xr,$a),gi=Se()(Xr,`${Xr}-${oa}`,{[`${Xr}-hide-required-mark`]:Pa===!1,[`${Xr}-rtl`]:Ft==="rtl",[`${Xr}-${Rr}`]:Rr},Xa,$a,$i,Mt,Nn,Hn),[Ii]=Wt(pr),{__INTERNAL__:Ri}=Ii;Ri.name=Kr;const Bi=me.useMemo(()=>({name:Kr,labelAlign:Or,labelCol:Sr,labelWrap:Lr,wrapperCol:Mr,vertical:oa==="vertical",colon:la,requiredMark:Pa,itemRef:Ri.itemRef,form:Ii,feedbackIcons:Qa}),[Kr,Or,Sr,Mr,oa,la,Pa,Ii,Qa]),ei=me.useRef(null);me.useImperativeHandle(Zt,()=>{var yr;return Object.assign(Object.assign({},Ii),{nativeElement:(yr=ei.current)===null||yr===void 0?void 0:yr.nativeElement})});const Ar=(yr,Br)=>{if(yr){let qn={block:"nearest"};typeof yr=="object"&&(qn=Object.assign(Object.assign({},qn),yr)),Ii.scrollToField(Br,qn)}},tr=yr=>{if(ba==null||ba(yr),yr.errorFields.length){const Br=yr.errorFields[0].name;if(ra!==void 0){Ar(ra,Br);return}At!==void 0&&Ar(At,Br)}};return Mi(me.createElement(y.pg.Provider,{value:Da},me.createElement(Pe.n,{disabled:Xn},me.createElement(vt.Z.Provider,{value:Rr},me.createElement(y.RV,{validateMessages:Za},me.createElement(y.q3.Provider,{value:Bi},me.createElement(je.default,Object.assign({id:Kr},Ea,{name:Kr,onFinishFailed:tr,form:Ii,ref:ei,style:Object.assign(Object.assign({},kt),ga),className:gi}))))))))};var ve=me.forwardRef(re),ie=E(41799),fe=E(8654),Ve=E(22703),It=E(32383),Qe=E(11592);function Ke(ct){if(typeof ct=="function")return ct;const Zt=(0,Qe.Z)(ct);return Zt.length<=1?Zt[0]:Zt}const gt=()=>{const{status:ct,errors:Zt=[],warnings:ot=[]}=me.useContext(y.aM);return{status:ct,errors:Zt,warnings:ot}};gt.Context=y.aM;var wt=gt,Tt=E(16089);function Je(ct){const[Zt,ot]=me.useState(ct),Kt=me.useRef(null),Ft=me.useRef([]),ar=me.useRef(!1);me.useEffect(()=>(ar.current=!1,()=>{ar.current=!0,Tt.Z.cancel(Kt.current),Kt.current=null}),[]);function mr(At){ar.current||(Kt.current===null&&(Ft.current=[],Kt.current=(0,Tt.Z)(()=>{Kt.current=null,ot(Mt=>{let kt=Mt;return Ft.current.forEach(Vt=>{kt=Vt(kt)}),kt})})),Ft.current.push(At))}return[Zt,mr]}function tt(){const{itemRef:ct}=me.useContext(y.q3),Zt=me.useRef({});function ot(Kt,Ft){const ar=Ft&&typeof Ft=="object"&&(0,fe.C4)(Ft),mr=Kt.join("_");return(Zt.current.name!==mr||Zt.current.originRef!==ar)&&(Zt.current.name=mr,Zt.current.originRef=ar,Zt.current.ref=(0,fe.sQ)(ct(Kt),ar)),Zt.current.ref}return ot}var Ht=E(29194),un=E(34280),Dn=E(2738),yn=E(65970),Lt=E(70425),cn=E(5472);const Xt=ct=>{const{formItemCls:Zt}=ct;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Zt}-control`]:{display:"flex"}}}};var Xe=(0,Ne.bk)(["Form","item-item"],(ct,Zt)=>{let{rootPrefixCls:ot}=Zt;const Kt=pe(ct,ot);return[Xt(Kt)]}),Nt=function(ct,Zt){var ot={};for(var Kt in ct)Object.prototype.hasOwnProperty.call(ct,Kt)&&Zt.indexOf(Kt)<0&&(ot[Kt]=ct[Kt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Kt=Object.getOwnPropertySymbols(ct);Ft<Kt.length;Ft++)Zt.indexOf(Kt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(ct,Kt[Ft])&&(ot[Kt[Ft]]=ct[Kt[Ft]]);return ot};const dn=24;var at=ct=>{const{prefixCls:Zt,status:ot,labelCol:Kt,wrapperCol:Ft,children:ar,errors:mr,warnings:At,_internalItemRender:Mt,extra:kt,help:Vt,fieldId:Nn,marginBottom:Hn,onErrorVisibleChanged:Un,label:Xn}=ct,pr=`${Zt}-item`,wr=me.useContext(y.q3),Or=me.useMemo(()=>{let Ea=Object.assign({},Ft||wr.wrapperCol||{});return Xn===null&&!Kt&&!Ft&&wr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Za=>{const Pa=Za?[Za]:[],la=(0,Lt.U2)(wr.labelCol,Pa),Xr=typeof la=="object"?la:{},$a=(0,Lt.U2)(Ea,Pa),Mi=typeof $a=="object"?$a:{};"span"in Xr&&!("offset"in Mi)&&Xr.span<dn&&(Ea=(0,Lt.t8)(Ea,[].concat(Pa,["offset"]),Xr.span))}),Ea},[Ft,wr]),Lr=Se()(`${pr}-control`,Or.className),Sr=me.useMemo(()=>{const{labelCol:Ea,wrapperCol:Rr}=wr;return Nt(wr,["labelCol","wrapperCol"])},[wr]),Mr=me.useRef(null),[Vr,oa]=me.useState(0);(0,un.Z)(()=>{kt&&Mr.current?oa(Mr.current.clientHeight):oa(0)},[kt]);const ra=me.createElement("div",{className:`${pr}-control-input`},me.createElement("div",{className:`${pr}-control-input-content`},ar)),Oa=me.useMemo(()=>({prefixCls:Zt,status:ot}),[Zt,ot]),ba=Hn!==null||mr.length||At.length?me.createElement(y.Rk.Provider,{value:Oa},me.createElement(Ye,{fieldId:Nn,errors:mr,warnings:At,help:Vt,helpStatus:ot,className:`${pr}-explain-connected`,onVisibleChanged:Un})):null,Kr={};Nn&&(Kr.id=`${Nn}_extra`);const ga=kt?me.createElement("div",Object.assign({},Kr,{className:`${pr}-extra`,ref:Mr}),kt):null,Qa=ba||ga?me.createElement("div",{className:`${pr}-additional`,style:Hn?{minHeight:Hn+Vr}:{}},ba,ga):null,Da=Mt&&Mt.mark==="pro_table_render"&&Mt.render?Mt.render(ct,{input:ra,errorList:ba,extra:ga}):me.createElement(me.Fragment,null,ra,Qa);return me.createElement(y.q3.Provider,{value:Sr},me.createElement(cn.Z,Object.assign({},Or,{className:Lr}),Da),me.createElement(Xe,{prefixCls:Zt}))},Rt=E(61485),en=E(9017),Pt=E(85981),Ut=E(25399),Yt=function(ct,Zt){var ot={};for(var Kt in ct)Object.prototype.hasOwnProperty.call(ct,Kt)&&Zt.indexOf(Kt)<0&&(ot[Kt]=ct[Kt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Kt=Object.getOwnPropertySymbols(ct);Ft<Kt.length;Ft++)Zt.indexOf(Kt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(ct,Kt[Ft])&&(ot[Kt[Ft]]=ct[Kt[Ft]]);return ot};function bn(ct){return ct?typeof ct=="object"&&!me.isValidElement(ct)?ct:{title:ct}:null}var Bn=ct=>{let{prefixCls:Zt,label:ot,htmlFor:Kt,labelCol:Ft,labelAlign:ar,colon:mr,required:At,requiredMark:Mt,tooltip:kt,vertical:Vt}=ct;var Nn;const[Hn]=(0,en.Z)("Form"),{labelAlign:Un,labelCol:Xn,labelWrap:pr,colon:wr}=me.useContext(y.q3);if(!ot)return null;const Or=Ft||Xn||{},Lr=ar||Un,Sr=`${Zt}-item-label`,Mr=Se()(Sr,Lr==="left"&&`${Sr}-left`,Or.className,{[`${Sr}-wrap`]:!!pr});let Vr=ot;const oa=mr===!0||wr!==!1&&mr!==!1;oa&&!Vt&&typeof ot=="string"&&ot.trim()&&(Vr=ot.replace(/[:|:]\s*$/,""));const Oa=bn(kt);if(Oa){const{icon:Ea=me.createElement(Rt.Z,null)}=Oa,Rr=Yt(Oa,["icon"]),Za=me.createElement(Ut.Z,Object.assign({},Rr),me.cloneElement(Ea,{className:`${Zt}-item-tooltip`,title:"",onClick:Pa=>{Pa.preventDefault()},tabIndex:null}));Vr=me.createElement(me.Fragment,null,Vr,Za)}const ba=Mt==="optional",Kr=typeof Mt=="function",ga=Mt===!1;Kr?Vr=Mt(Vr,{required:!!At}):ba&&!At&&(Vr=me.createElement(me.Fragment,null,Vr,me.createElement("span",{className:`${Zt}-item-optional`,title:""},(Hn==null?void 0:Hn.optional)||((Nn=Pt.Z.Form)===null||Nn===void 0?void 0:Nn.optional))));let Qa;ga?Qa="hidden":(ba||Kr)&&(Qa="optional");const Da=Se()({[`${Zt}-item-required`]:At,[`${Zt}-item-required-mark-${Qa}`]:Qa,[`${Zt}-item-no-colon`]:!oa});return me.createElement(cn.Z,Object.assign({},Or,{className:Mr}),me.createElement("label",{htmlFor:Kt,className:Da,title:typeof ot=="string"?ot:""},Vr))},Zn=E(29679),Ot=E(19248),jt=E(96512),on=E(58617);const En={success:Zn.Z,warning:jt.Z,error:Ot.Z,validating:on.Z};function tn(ct){let{children:Zt,errors:ot,warnings:Kt,hasFeedback:Ft,validateStatus:ar,prefixCls:mr,meta:At,noStyle:Mt}=ct;const kt=`${mr}-item`,{feedbackIcons:Vt}=me.useContext(y.q3),Nn=bt(ot,Kt,At,null,!!Ft,ar),{isFormItemInput:Hn,status:Un,hasFeedback:Xn,feedbackIcon:pr}=me.useContext(y.aM),wr=me.useMemo(()=>{var Or;let Lr;if(Ft){const Mr=Ft!==!0&&Ft.icons||Vt,Vr=Nn&&((Or=Mr==null?void 0:Mr({status:Nn,errors:ot,warnings:Kt}))===null||Or===void 0?void 0:Or[Nn]),oa=Nn&&En[Nn];Lr=Vr!==!1&&oa?me.createElement("span",{className:Se()(`${kt}-feedback-icon`,`${kt}-feedback-icon-${Nn}`)},Vr||me.createElement(oa,null)):null}const Sr={status:Nn||"",errors:ot,warnings:Kt,hasFeedback:!!Ft,feedbackIcon:Lr,isFormItemInput:!0};return Mt&&(Sr.status=(Nn!=null?Nn:Un)||"",Sr.isFormItemInput=Hn,Sr.hasFeedback=!!(Ft!=null?Ft:Xn),Sr.feedbackIcon=Ft!==void 0?Sr.feedbackIcon:pr),Sr},[Nn,Ft,Mt,Hn,Un]);return me.createElement(y.aM.Provider,{value:wr},Zt)}var In=function(ct,Zt){var ot={};for(var Kt in ct)Object.prototype.hasOwnProperty.call(ct,Kt)&&Zt.indexOf(Kt)<0&&(ot[Kt]=ct[Kt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Kt=Object.getOwnPropertySymbols(ct);Ft<Kt.length;Ft++)Zt.indexOf(Kt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(ct,Kt[Ft])&&(ot[Kt[Ft]]=ct[Kt[Ft]]);return ot};function pn(ct){const{prefixCls:Zt,className:ot,rootClassName:Kt,style:Ft,help:ar,errors:mr,warnings:At,validateStatus:Mt,meta:kt,hasFeedback:Vt,hidden:Nn,children:Hn,fieldId:Un,required:Xn,isRequired:pr,onSubItemMetaChange:wr,layout:Or}=ct,Lr=In(ct,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Sr=`${Zt}-item`,{requiredMark:Mr,vertical:Vr}=me.useContext(y.q3),oa=Vr||Or==="vertical",ra=me.useRef(null),Oa=Fe(mr),ba=Fe(At),Kr=ar!=null,ga=!!(Kr||mr.length||At.length),Qa=!!ra.current&&(0,Ht.Z)(ra.current),[Da,Ea]=me.useState(null);(0,un.Z)(()=>{if(ga&&ra.current){const Xr=getComputedStyle(ra.current);Ea(parseInt(Xr.marginBottom,10))}},[ga,Qa]);const Rr=Xr=>{Xr||Ea(null)},Pa=function(){let Xr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const $a=Xr?Oa:kt.errors,Mi=Xr?ba:kt.warnings;return bt($a,Mi,kt,"",!!Vt,Mt)}(),la=Se()(Sr,ot,Kt,{[`${Sr}-with-help`]:Kr||Oa.length||ba.length,[`${Sr}-has-feedback`]:Pa&&Vt,[`${Sr}-has-success`]:Pa==="success",[`${Sr}-has-warning`]:Pa==="warning",[`${Sr}-has-error`]:Pa==="error",[`${Sr}-is-validating`]:Pa==="validating",[`${Sr}-hidden`]:Nn,[`${Sr}-${Or}`]:Or});return me.createElement("div",{className:la,style:Ft,ref:ra},me.createElement(yn.Z,Object.assign({className:`${Sr}-row`},(0,Dn.Z)(Lr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),me.createElement(Bn,Object.assign({htmlFor:Un},ct,{requiredMark:Mr,required:Xn!=null?Xn:pr,prefixCls:Zt,vertical:oa})),me.createElement(at,Object.assign({},ct,kt,{errors:Oa,warnings:ba,prefixCls:Zt,status:Pa,help:ar,marginBottom:Da,onErrorVisibleChanged:Rr}),me.createElement(y.qI.Provider,{value:wr},me.createElement(tn,{prefixCls:Zt,meta:kt,errors:kt.errors,warnings:kt.warnings,hasFeedback:Vt,validateStatus:Pa},Hn)))),!!Da&&me.createElement("div",{className:`${Sr}-margin-offset`,style:{marginBottom:-Da}}))}const On="__SPLIT__",fr=null;function Qn(ct,Zt){const ot=Object.keys(ct),Kt=Object.keys(Zt);return ot.length===Kt.length&&ot.every(Ft=>{const ar=ct[Ft],mr=Zt[Ft];return ar===mr||typeof ar=="function"||typeof mr=="function"})}const cr=me.memo(ct=>{let{children:Zt}=ct;return Zt},(ct,Zt)=>Qn(ct.control,Zt.control)&&ct.update===Zt.update&&ct.childProps.length===Zt.childProps.length&&ct.childProps.every((ot,Kt)=>ot===Zt.childProps[Kt]));function Cr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gr(ct){const{name:Zt,noStyle:ot,className:Kt,dependencies:Ft,prefixCls:ar,shouldUpdate:mr,rules:At,children:Mt,required:kt,label:Vt,messageVariables:Nn,trigger:Hn="onChange",validateTrigger:Un,hidden:Xn,help:pr,layout:wr}=ct,{getPrefixCls:Or}=me.useContext(it.E_),{name:Lr}=me.useContext(y.q3),Sr=Ke(Mt),Mr=typeof Sr=="function",Vr=me.useContext(y.qI),{validateTrigger:oa}=me.useContext(je.FieldContext),ra=Un!==void 0?Un:oa,Oa=Zt!=null,ba=Or("form",ar),Kr=(0,ke.Z)(ba),[ga,Qa,Da]=Le(ba,Kr),Ea=(0,It.ln)("Form.Item"),Rr=me.useContext(je.ListContext),Za=me.useRef(null),[Pa,la]=Je({}),[Xr,$a]=(0,ie.Z)(()=>Cr()),Mi=ei=>{const Ar=Rr==null?void 0:Rr.getKey(ei.name);if($a(ei.destroy?Cr():ei,!0),ot&&pr!==!1&&Vr){let tr=ei.name;if(ei.destroy)tr=Za.current||tr;else if(Ar!==void 0){const[yr,Br]=Ar;tr=[yr].concat((0,ge.Z)(Br)),Za.current=tr}Vr(ei,tr)}},$i=(ei,Ar)=>{la(tr=>{const yr=Object.assign({},tr),qn=[].concat((0,ge.Z)(ei.name.slice(0,-1)),(0,ge.Z)(Ar)).join(On);return ei.destroy?delete yr[qn]:yr[qn]=ei,yr})},[Xa,gi]=me.useMemo(()=>{const ei=(0,ge.Z)(Xr.errors),Ar=(0,ge.Z)(Xr.warnings);return Object.values(Pa).forEach(tr=>{ei.push.apply(ei,(0,ge.Z)(tr.errors||[])),Ar.push.apply(Ar,(0,ge.Z)(tr.warnings||[]))}),[ei,Ar]},[Pa,Xr.errors,Xr.warnings]),Ii=tt();function Ri(ei,Ar,tr){return ot&&!Xn?me.createElement(tn,{prefixCls:ba,hasFeedback:ct.hasFeedback,validateStatus:ct.validateStatus,meta:Xr,errors:Xa,warnings:gi,noStyle:!0},ei):me.createElement(pn,Object.assign({key:"row"},ct,{className:Se()(Kt,Da,Kr,Qa),prefixCls:ba,fieldId:Ar,isRequired:tr,errors:Xa,warnings:gi,meta:Xr,onSubItemMetaChange:$i,layout:wr}),ei)}if(!Oa&&!Mr&&!Ft)return ga(Ri(Sr));let Bi={};return typeof Vt=="string"?Bi.label=Vt:Zt&&(Bi.label=String(Zt)),Nn&&(Bi=Object.assign(Object.assign({},Bi),Nn)),ga(me.createElement(je.Field,Object.assign({},ct,{messageVariables:Bi,trigger:Hn,validateTrigger:ra,onMetaChange:Mi}),(ei,Ar,tr)=>{const yr=dt(Zt).length&&Ar?Ar.name:[],Br=Gt(yr,Lr),qn=kt!==void 0?kt:!!(At!=null&&At.some(Er=>{if(Er&&typeof Er=="object"&&Er.required&&!Er.warningOnly)return!0;if(typeof Er=="function"){const Dr=Er(tr);return(Dr==null?void 0:Dr.required)&&!(Dr!=null&&Dr.warningOnly)}return!1})),Jr=Object.assign({},ei);let Yr=null;if(Array.isArray(Sr)&&Oa)Yr=Sr;else if(!(Mr&&(!(mr||Ft)||Oa))){if(!(Ft&&!Mr&&!Oa))if(me.isValidElement(Sr)){const Er=Object.assign(Object.assign({},Sr.props),Jr);if(Er.id||(Er.id=Br),pr||Xa.length>0||gi.length>0||ct.extra){const qr=[];(pr||Xa.length>0)&&qr.push(`${Br}_help`),ct.extra&&qr.push(`${Br}_extra`),Er["aria-describedby"]=qr.join(" ")}Xa.length>0&&(Er["aria-invalid"]="true"),qn&&(Er["aria-required"]="true"),(0,fe.Yr)(Sr)&&(Er.ref=Ii(yr,Sr)),new Set([].concat((0,ge.Z)(dt(Hn)),(0,ge.Z)(dt(ra)))).forEach(qr=>{Er[qr]=function(){for(var Aa,Wa,na,li,di,zi=arguments.length,Hi=new Array(zi),Ji=0;Ji<zi;Ji++)Hi[Ji]=arguments[Ji];(na=Jr[qr])===null||na===void 0||(Aa=na).call.apply(Aa,[Jr].concat(Hi)),(di=(li=Sr.props)[qr])===null||di===void 0||(Wa=di).call.apply(Wa,[li].concat(Hi))}});const $r=[Er["aria-required"],Er["aria-invalid"],Er["aria-describedby"]];Yr=me.createElement(cr,{control:Jr,update:Sr,childProps:$r},(0,Ve.Tm)(Sr,Er))}else Mr&&(mr||Ft)&&!Oa?Yr=Sr(tr):Yr=Sr}return Ri(Yr,Br,qn)}))}const Hr=gr;Hr.useStatus=wt;var Zr=Hr,Pn=function(ct,Zt){var ot={};for(var Kt in ct)Object.prototype.hasOwnProperty.call(ct,Kt)&&Zt.indexOf(Kt)<0&&(ot[Kt]=ct[Kt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Kt=Object.getOwnPropertySymbols(ct);Ft<Kt.length;Ft++)Zt.indexOf(Kt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(ct,Kt[Ft])&&(ot[Kt[Ft]]=ct[Kt[Ft]]);return ot},dr=ct=>{var{prefixCls:Zt,children:ot}=ct,Kt=Pn(ct,["prefixCls","children"]);const{getPrefixCls:Ft}=me.useContext(it.E_),ar=Ft("form",Zt),mr=me.useMemo(()=>({prefixCls:ar,status:"error"}),[ar]);return me.createElement(je.List,Object.assign({},Kt),(At,Mt,kt)=>me.createElement(y.Rk.Provider,{value:mr},ot(At.map(Vt=>Object.assign(Object.assign({},Vt),{fieldKey:Vt.key})),Mt,{errors:kt.errors,warnings:kt.warnings})))};function hr(){const{form:ct}=me.useContext(y.q3);return ct}const _t=ve;_t.Item=Zr,_t.List=dr,_t.ErrorList=Ye,_t.useForm=Wt,_t.useFormInstance=hr,_t.useWatch=je.useWatch,_t.Provider=y.RV,_t.create=()=>{};var Qt=_t},4875:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return xn}});var y=E(59301),ge=E(84105),me=E(87395),we=E(92310),Se=E.n(we),Ee=E(60499),Ce=E(18642),ke=E(43749),Fe=E(72190),de=E(42244),We=E(38705),Te=E(17212);function ft(){return typeof BigInt=="function"}function Ge(at){return!at&&at!==0&&!Number.isNaN(at)||!String(at).trim()}function Ne(at){var Rt=at.trim(),en=Rt.startsWith("-");en&&(Rt=Rt.slice(1)),Rt=Rt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Rt.startsWith(".")&&(Rt="0".concat(Rt));var Pt=Rt||"0",Ut=Pt.split("."),Yt=Ut[0]||"0",bn=Ut[1]||"0";Yt==="0"&&bn==="0"&&(en=!1);var jn=en?"-":"";return{negative:en,negativeStr:jn,trimStr:Pt,integerStr:Yt,decimalStr:bn,fullStr:"".concat(jn).concat(Pt)}}function Be(at){var Rt=String(at);return!Number.isNaN(Number(Rt))&&Rt.includes("e")}function Oe(at){var Rt=String(at);if(Be(at)){var en=Number(Rt.slice(Rt.indexOf("e-")+2)),Pt=Rt.match(/\.(\d+)/);return Pt!=null&&Pt[1]&&(en+=Pt[1].length),en}return Rt.includes(".")&&nt(Rt)?Rt.length-Rt.indexOf(".")-1:0}function Ie(at){var Rt=String(at);if(Be(at)){if(at>Number.MAX_SAFE_INTEGER)return String(ft()?BigInt(at).toString():Number.MAX_SAFE_INTEGER);if(at<Number.MIN_SAFE_INTEGER)return String(ft()?BigInt(at).toString():Number.MIN_SAFE_INTEGER);Rt=at.toFixed(Oe(Rt))}return Ne(Rt).fullStr}function nt(at){return typeof at=="number"?!Number.isNaN(at):at?/^\s*-?\d+(\.\d+)?\s*$/.test(at)||/^\s*-?\d+\.\s*$/.test(at)||/^\s*-?\.\d+\s*$/.test(at):!1}var St=function(){function at(Rt){if((0,We.Z)(this,at),(0,Ce.Z)(this,"origin",""),(0,Ce.Z)(this,"negative",void 0),(0,Ce.Z)(this,"integer",void 0),(0,Ce.Z)(this,"decimal",void 0),(0,Ce.Z)(this,"decimalLen",void 0),(0,Ce.Z)(this,"empty",void 0),(0,Ce.Z)(this,"nan",void 0),Ge(Rt)){this.empty=!0;return}if(this.origin=String(Rt),Rt==="-"||Number.isNaN(Rt)){this.nan=!0;return}var en=Rt;if(Be(en)&&(en=Number(en)),en=typeof en=="string"?en:Ie(en),nt(en)){var Pt=Ne(en);this.negative=Pt.negative;var Ut=Pt.trimStr.split(".");this.integer=BigInt(Ut[0]);var Yt=Ut[1]||"0";this.decimal=BigInt(Yt),this.decimalLen=Yt.length}else this.nan=!0}return(0,Te.Z)(at,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(en){var Pt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(en,"0"));return BigInt(Pt)}},{key:"negate",value:function(){var en=new at(this.toString());return en.negative=!en.negative,en}},{key:"cal",value:function(en,Pt,Ut){var Yt=Math.max(this.getDecimalStr().length,en.getDecimalStr().length),bn=this.alignDecimal(Yt),jn=en.alignDecimal(Yt),Bn=Pt(bn,jn).toString(),Zn=Ut(Yt),Ot=Ne(Bn),jt=Ot.negativeStr,on=Ot.trimStr,En="".concat(jt).concat(on.padStart(Zn+1,"0"));return new at("".concat(En.slice(0,-Zn),".").concat(En.slice(-Zn)))}},{key:"add",value:function(en){if(this.isInvalidate())return new at(en);var Pt=new at(en);return Pt.isInvalidate()?this:this.cal(Pt,function(Ut,Yt){return Ut+Yt},function(Ut){return Ut})}},{key:"multi",value:function(en){var Pt=new at(en);return this.isInvalidate()||Pt.isInvalidate()?new at(NaN):this.cal(Pt,function(Ut,Yt){return Ut*Yt},function(Ut){return Ut*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(en){return this.toString()===(en==null?void 0:en.toString())}},{key:"lessEquals",value:function(en){return this.add(en.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return en?this.isInvalidate()?"":Ne("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),at}(),Ae=function(){function at(Rt){if((0,We.Z)(this,at),(0,Ce.Z)(this,"origin",""),(0,Ce.Z)(this,"number",void 0),(0,Ce.Z)(this,"empty",void 0),Ge(Rt)){this.empty=!0;return}this.origin=String(Rt),this.number=Number(Rt)}return(0,Te.Z)(at,[{key:"negate",value:function(){return new at(-this.toNumber())}},{key:"add",value:function(en){if(this.isInvalidate())return new at(en);var Pt=Number(en);if(Number.isNaN(Pt))return this;var Ut=this.number+Pt;if(Ut>Number.MAX_SAFE_INTEGER)return new at(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new at(Number.MIN_SAFE_INTEGER);var Yt=Math.max(Oe(this.number),Oe(Pt));return new at(Ut.toFixed(Yt))}},{key:"multi",value:function(en){var Pt=Number(en);if(this.isInvalidate()||Number.isNaN(Pt))return new at(NaN);var Ut=this.number*Pt;if(Ut>Number.MAX_SAFE_INTEGER)return new at(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new at(Number.MIN_SAFE_INTEGER);var Yt=Math.max(Oe(this.number),Oe(Pt));return new at(Ut.toFixed(Yt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(en){return this.toNumber()===(en==null?void 0:en.toNumber())}},{key:"lessEquals",value:function(en){return this.add(en.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return en?this.isInvalidate()?"":Ie(this.number):this.origin}}]),at}();function _e(at){return ft()?new St(at):new Ae(at)}function et(at,Rt,en){var Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(at==="")return"";var Ut=Ne(at),Yt=Ut.negativeStr,bn=Ut.integerStr,jn=Ut.decimalStr,Bn="".concat(Rt).concat(jn),Zn="".concat(Yt).concat(bn);if(en>=0){var Ot=Number(jn[en]);if(Ot>=5&&!Pt){var jt=_e(at).add("".concat(Yt,"0.").concat("0".repeat(en)).concat(10-Ot));return et(jt.toString(),Rt,en,Pt)}return en===0?Zn:"".concat(Zn).concat(Rt).concat(jn.padEnd(en,"0").slice(0,en))}return Bn===".0"?Zn:"".concat(Zn).concat(Bn)}var qe=_e,ut=E(36901),yt=E(34280);function st(at,Rt){return typeof Proxy!="undefined"&&at?new Proxy(at,{get:function(Pt,Ut){if(Rt[Ut])return Rt[Ut];var Yt=Pt[Ut];return typeof Yt=="function"?Yt.bind(Pt):Yt}}):at}var $e=E(8654),pe=E(48736);function Le(at,Rt){var en=(0,y.useRef)(null);function Pt(){try{var Yt=at.selectionStart,bn=at.selectionEnd,jn=at.value,Bn=jn.substring(0,Yt),Zn=jn.substring(bn);en.current={start:Yt,end:bn,value:jn,beforeTxt:Bn,afterTxt:Zn}}catch(Ot){}}function Ut(){if(at&&en.current&&Rt)try{var Yt=at.value,bn=en.current,jn=bn.beforeTxt,Bn=bn.afterTxt,Zn=bn.start,Ot=Yt.length;if(Yt.startsWith(jn))Ot=jn.length;else if(Yt.endsWith(Bn))Ot=Yt.length-en.current.afterTxt.length;else{var jt=jn[Zn-1],on=Yt.indexOf(jt,Zn-1);on!==-1&&(Ot=on+1)}at.setSelectionRange(Ot,Ot)}catch(En){(0,pe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(En.message))}}return[Pt,Ut]}var xe=E(49658),ce=function(){var Rt=(0,y.useState)(!1),en=(0,Fe.Z)(Rt,2),Pt=en[0],Ut=en[1];return(0,yt.Z)(function(){Ut((0,xe.Z)())},[]),Pt},Et=ce,Ye=E(16089),je=200,it=600;function Pe(at){var Rt=at.prefixCls,en=at.upNode,Pt=at.downNode,Ut=at.upDisabled,Yt=at.downDisabled,bn=at.onStep,jn=y.useRef(),Bn=y.useRef([]),Zn=y.useRef();Zn.current=bn;var Ot=function(){clearTimeout(jn.current)},jt=function(Qn,cr){Qn.preventDefault(),Ot(),Zn.current(cr);function Cr(){Zn.current(cr),jn.current=setTimeout(Cr,je)}jn.current=setTimeout(Cr,it)};y.useEffect(function(){return function(){Ot(),Bn.current.forEach(function(fr){return Ye.Z.cancel(fr)})}},[]);var on=Et();if(on)return null;var En="".concat(Rt,"-handler"),tn=Se()(En,"".concat(En,"-up"),(0,Ce.Z)({},"".concat(En,"-up-disabled"),Ut)),In=Se()(En,"".concat(En,"-down"),(0,Ce.Z)({},"".concat(En,"-down-disabled"),Yt)),pn=function(){return Bn.current.push((0,Ye.Z)(Ot))},On={unselectable:"on",role:"button",onMouseUp:pn,onMouseLeave:pn};return y.createElement("div",{className:"".concat(En,"-wrap")},y.createElement("span",(0,Ee.Z)({},On,{onMouseDown:function(Qn){jt(Qn,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:tn}),en||y.createElement("span",{unselectable:"on",className:"".concat(Rt,"-handler-up-inner")})),y.createElement("span",(0,Ee.Z)({},On,{onMouseDown:function(Qn){jt(Qn,!1)},"aria-label":"Decrease Value","aria-disabled":Yt,className:In}),Pt||y.createElement("span",{unselectable:"on",className:"".concat(Rt,"-handler-down-inner")})))}function ye(at){var Rt=typeof at=="number"?Ie(at):Ne(at).fullStr,en=Rt.includes(".");return en?Ne(Rt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:at+"0"}var vt=E(30292),zt=function(){var at=(0,y.useRef)(0),Rt=function(){Ye.Z.cancel(at.current)};return(0,y.useEffect)(function(){return Rt},[]),function(en){Rt(),at.current=(0,Ye.Z)(function(){en()})}},Ct=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],De=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],mt=function(Rt,en){return Rt||en.isEmpty()?en.toString():en.toNumber()},dt=function(Rt){var en=qe(Rt);return en.isInvalidate()?null:en},Gt=y.forwardRef(function(at,Rt){var en=at.prefixCls,Pt=at.className,Ut=at.style,Yt=at.min,bn=at.max,jn=at.step,Bn=jn===void 0?1:jn,Zn=at.defaultValue,Ot=at.value,jt=at.disabled,on=at.readOnly,En=at.upHandler,tn=at.downHandler,In=at.keyboard,pn=at.changeOnWheel,On=pn===void 0?!1:pn,fr=at.controls,Qn=fr===void 0?!0:fr,cr=at.classNames,Cr=at.stringMode,gr=at.parser,Hr=at.formatter,Zr=at.precision,Pn=at.decimalSeparator,$n=at.onChange,dr=at.onInput,hr=at.onPressEnter,_t=at.onStep,Qt=at.changeOnBlur,ct=Qt===void 0?!0:Qt,Zt=at.domRef,ot=(0,de.Z)(at,Ct),Kt="".concat(en,"-input"),Ft=y.useRef(null),ar=y.useState(!1),mr=(0,Fe.Z)(ar,2),At=mr[0],Mt=mr[1],kt=y.useRef(!1),Vt=y.useRef(!1),Nn=y.useRef(!1),Hn=y.useState(function(){return qe(Ot!=null?Ot:Zn)}),Un=(0,Fe.Z)(Hn,2),Xn=Un[0],pr=Un[1];function wr(Br){Ot===void 0&&pr(Br)}var Or=y.useCallback(function(Br,qn){if(!qn)return Zr>=0?Zr:Math.max(Oe(Br),Oe(Bn))},[Zr,Bn]),Lr=y.useCallback(function(Br){var qn=String(Br);if(gr)return gr(qn);var Jr=qn;return Pn&&(Jr=Jr.replace(Pn,".")),Jr.replace(/[^\w.-]+/g,"")},[gr,Pn]),Sr=y.useRef(""),Mr=y.useCallback(function(Br,qn){if(Hr)return Hr(Br,{userTyping:qn,input:String(Sr.current)});var Jr=typeof Br=="number"?Ie(Br):Br;if(!qn){var Yr=Or(Jr,qn);if(nt(Jr)&&(Pn||Yr>=0)){var Er=Pn||".";Jr=et(Jr,Er,Yr)}}return Jr},[Hr,Or,Pn]),Vr=y.useState(function(){var Br=Zn!=null?Zn:Ot;return Xn.isInvalidate()&&["string","number"].includes((0,ke.Z)(Br))?Number.isNaN(Br)?"":Br:Mr(Xn.toString(),!1)}),oa=(0,Fe.Z)(Vr,2),ra=oa[0],Oa=oa[1];Sr.current=ra;function ba(Br,qn){Oa(Mr(Br.isInvalidate()?Br.toString(!1):Br.toString(!qn),qn))}var Kr=y.useMemo(function(){return dt(bn)},[bn,Zr]),ga=y.useMemo(function(){return dt(Yt)},[Yt,Zr]),Qa=y.useMemo(function(){return!Kr||!Xn||Xn.isInvalidate()?!1:Kr.lessEquals(Xn)},[Kr,Xn]),Da=y.useMemo(function(){return!ga||!Xn||Xn.isInvalidate()?!1:Xn.lessEquals(ga)},[ga,Xn]),Ea=Le(Ft.current,At),Rr=(0,Fe.Z)(Ea,2),Za=Rr[0],Pa=Rr[1],la=function(qn){return Kr&&!qn.lessEquals(Kr)?Kr:ga&&!ga.lessEquals(qn)?ga:null},Xr=function(qn){return!la(qn)},$a=function(qn,Jr){var Yr=qn,Er=Xr(Yr)||Yr.isEmpty();if(!Yr.isEmpty()&&!Jr&&(Yr=la(Yr)||Yr,Er=!0),!on&&!jt&&Er){var Dr=Yr.toString(),$r=Or(Dr,Jr);return $r>=0&&(Yr=qe(et(Dr,".",$r)),Xr(Yr)||(Yr=qe(et(Dr,".",$r,!0)))),Yr.equals(Xn)||(wr(Yr),$n==null||$n(Yr.isEmpty()?null:mt(Cr,Yr)),Ot===void 0&&ba(Yr,Jr)),Yr}return Xn},Mi=zt(),$i=function Br(qn){if(Za(),Sr.current=qn,Oa(qn),!Vt.current){var Jr=Lr(qn),Yr=qe(Jr);Yr.isNaN()||$a(Yr,!0)}dr==null||dr(qn),Mi(function(){var Er=qn;gr||(Er=qn.replace(/。/g,".")),Er!==qn&&Br(Er)})},Xa=function(){Vt.current=!0},gi=function(){Vt.current=!1,$i(Ft.current.value)},Ii=function(qn){$i(qn.target.value)},Ri=function(qn){var Jr;if(!(qn&&Qa||!qn&&Da)){kt.current=!1;var Yr=qe(Nn.current?ye(Bn):Bn);qn||(Yr=Yr.negate());var Er=(Xn||qe(0)).add(Yr.toString()),Dr=$a(Er,!1);_t==null||_t(mt(Cr,Dr),{offset:Nn.current?ye(Bn):Bn,type:qn?"up":"down"}),(Jr=Ft.current)===null||Jr===void 0||Jr.focus()}},Bi=function(qn){var Jr=qe(Lr(ra)),Yr;Jr.isNaN()?Yr=$a(Xn,qn):Yr=$a(Jr,qn),Ot!==void 0?ba(Xn,!1):Yr.isNaN()||ba(Yr,!1)},ei=function(){kt.current=!0},Ar=function(qn){var Jr=qn.key,Yr=qn.shiftKey;kt.current=!0,Nn.current=Yr,Jr==="Enter"&&(Vt.current||(kt.current=!1),Bi(!1),hr==null||hr(qn)),In!==!1&&!Vt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Jr)&&(Ri(Jr==="Up"||Jr==="ArrowUp"),qn.preventDefault())},tr=function(){kt.current=!1,Nn.current=!1};y.useEffect(function(){if(On&&At){var Br=function(Yr){Ri(Yr.deltaY<0),Yr.preventDefault()},qn=Ft.current;if(qn)return qn.addEventListener("wheel",Br,{passive:!1}),function(){return qn.removeEventListener("wheel",Br)}}});var yr=function(){ct&&Bi(!1),Mt(!1),kt.current=!1};return(0,yt.o)(function(){Xn.isInvalidate()||ba(Xn,!1)},[Zr,Hr]),(0,yt.o)(function(){var Br=qe(Ot);pr(Br);var qn=qe(Lr(ra));(!Br.equals(qn)||!kt.current||Hr)&&ba(Br,kt.current)},[Ot]),(0,yt.o)(function(){Hr&&Pa()},[ra]),y.createElement("div",{ref:Zt,className:Se()(en,Pt,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(en,"-focused"),At),"".concat(en,"-disabled"),jt),"".concat(en,"-readonly"),on),"".concat(en,"-not-a-number"),Xn.isNaN()),"".concat(en,"-out-of-range"),!Xn.isInvalidate()&&!Xr(Xn))),style:Ut,onFocus:function(){Mt(!0)},onBlur:yr,onKeyDown:Ar,onKeyUp:tr,onCompositionStart:Xa,onCompositionEnd:gi,onBeforeInput:ei},Qn&&y.createElement(Pe,{prefixCls:en,upNode:En,downNode:tn,upDisabled:Qa,downDisabled:Da,onStep:Ri}),y.createElement("div",{className:"".concat(Kt,"-wrap")},y.createElement("input",(0,Ee.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Yt,"aria-valuemax":bn,"aria-valuenow":Xn.isInvalidate()?null:Xn.toString(),step:Bn},ot,{ref:(0,$e.sQ)(Ft,Rt),className:Kt,value:ra,onChange:Ii,disabled:jt,readOnly:on}))))}),bt=y.forwardRef(function(at,Rt){var en=at.disabled,Pt=at.style,Ut=at.prefixCls,Yt=Ut===void 0?"rc-input-number":Ut,bn=at.value,jn=at.prefix,Bn=at.suffix,Zn=at.addonBefore,Ot=at.addonAfter,jt=at.className,on=at.classNames,En=(0,de.Z)(at,De),tn=y.useRef(null),In=y.useRef(null),pn=y.useRef(null),On=function(Qn){pn.current&&(0,vt.nH)(pn.current,Qn)};return y.useImperativeHandle(Rt,function(){return st(pn.current,{focus:On,nativeElement:tn.current.nativeElement||In.current})}),y.createElement(ut.BaseInput,{className:jt,triggerFocus:On,prefixCls:Yt,value:bn,disabled:en,style:Pt,prefix:jn,suffix:Bn,addonAfter:Ot,addonBefore:Zn,classNames:on,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:tn},y.createElement(Gt,(0,Ee.Z)({prefixCls:Yt,disabled:en,ref:pn,domRef:In,className:on==null?void 0:on.input},En)))}),xt=bt,pt=xt,ln=E(62487),Wt=E(82855),ue=E(48755),ae=E(60840),re=E(2171),se=E(83397),ve=E(31756),ie=E(56553),fe=E(24971),Ve=E(70045),It=E(36237),Qe=E(53075),Ke=E(64910),gt=E(39082),wt=E(63356),Tt=E(56119),Je=E(16931),tt=E(51636),Ht=E(17835);const un=at=>{var Rt;const en=(Rt=at.handleVisible)!==null&&Rt!==void 0?Rt:"auto",Pt=at.controlHeightSM-at.lineWidth*2;return Object.assign(Object.assign({},(0,Ke.T)(at)),{controlWidth:90,handleWidth:Pt,handleFontSize:at.fontSize/2,handleVisible:en,handleActiveBg:at.colorFillAlter,handleBg:at.colorBgContainer,filledHandleBg:new Ht.FastColor(at.colorFillSecondary).onBackground(at.colorBgContainer).toHexString(),handleHoverColor:at.colorPrimary,handleBorderColor:at.colorBorder,handleOpacity:en===!0?1:0,handleVisibleWidth:en===!0?Pt:0})},Dn=(at,Rt)=>{let{componentCls:en,borderRadiusSM:Pt,borderRadiusLG:Ut}=at;const Yt=Rt==="lg"?Ut:Pt;return{[`&-${Rt}`]:{[`${en}-handler-wrap`]:{borderStartEndRadius:Yt,borderEndEndRadius:Yt},[`${en}-handler-up`]:{borderStartEndRadius:Yt},[`${en}-handler-down`]:{borderEndEndRadius:Yt}}}},yn=at=>{const{componentCls:Rt,lineWidth:en,lineType:Pt,borderRadius:Ut,inputFontSizeSM:Yt,inputFontSizeLG:bn,controlHeightLG:jn,controlHeightSM:Bn,colorError:Zn,paddingInlineSM:Ot,paddingBlockSM:jt,paddingBlockLG:on,paddingInlineLG:En,colorTextDescription:tn,motionDurationMid:In,handleHoverColor:pn,handleOpacity:On,paddingInline:fr,paddingBlock:Qn,handleBg:cr,handleActiveBg:Cr,colorTextDisabled:gr,borderRadiusSM:Hr,borderRadiusLG:Zr,controlWidth:Pn,handleBorderColor:$n,filledHandleBg:dr,lineHeightLG:hr,calc:_t}=at;return[{[Rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(at)),(0,Qe.ik)(at)),{display:"inline-block",width:Pn,margin:0,padding:0,borderRadius:Ut}),(0,gt.qG)(at,{[`${Rt}-handler-wrap`]:{background:cr,[`${Rt}-handler-down`]:{borderBlockStart:`${(0,It.unit)(en)} ${Pt} ${$n}`}}})),(0,gt.H8)(at,{[`${Rt}-handler-wrap`]:{background:dr,[`${Rt}-handler-down`]:{borderBlockStart:`${(0,It.unit)(en)} ${Pt} ${$n}`}},"&:focus-within":{[`${Rt}-handler-wrap`]:{background:cr}}})),(0,gt.vc)(at,{[`${Rt}-handler-wrap`]:{background:cr,[`${Rt}-handler-down`]:{borderBlockStart:`${(0,It.unit)(en)} ${Pt} ${$n}`}}})),(0,gt.Mu)(at)),{"&-rtl":{direction:"rtl",[`${Rt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:bn,lineHeight:hr,borderRadius:Zr,[`input${Rt}-input`]:{height:_t(jn).sub(_t(en).mul(2)).equal(),padding:`${(0,It.unit)(on)} ${(0,It.unit)(En)}`}},"&-sm":{padding:0,fontSize:Yt,borderRadius:Hr,[`input${Rt}-input`]:{height:_t(Bn).sub(_t(en).mul(2)).equal(),padding:`${(0,It.unit)(jt)} ${(0,It.unit)(Ot)}`}},"&-out-of-range":{[`${Rt}-input-wrap`]:{input:{color:Zn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(at)),(0,Qe.s7)(at)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Rt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Rt}-group-addon`]:{borderRadius:Zr,fontSize:at.fontSizeLG}},"&-sm":{[`${Rt}-group-addon`]:{borderRadius:Hr}}},(0,gt.ir)(at)),(0,gt.S5)(at)),{[`&:not(${Rt}-compact-first-item):not(${Rt}-compact-last-item)${Rt}-compact-item`]:{[`${Rt}, ${Rt}-group-addon`]:{borderRadius:0}},[`&:not(${Rt}-compact-last-item)${Rt}-compact-first-item`]:{[`${Rt}, ${Rt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Rt}-compact-first-item)${Rt}-compact-last-item`]:{[`${Rt}, ${Rt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Rt}-input`]:{cursor:"not-allowed"},[Rt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(at)),{width:"100%",padding:`${(0,It.unit)(Qn)} ${(0,It.unit)(fr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${In} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Qe.nz)(at.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Rt}-handler-wrap, &-focused ${Rt}-handler-wrap`]:{width:at.handleWidth,opacity:1}})},{[Rt]:Object.assign(Object.assign(Object.assign({[`${Rt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:at.handleVisibleWidth,opacity:On,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${In}`,overflow:"hidden",[`${Rt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Rt}-handler-up-inner,
|
|
|
${Rt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:at.handleFontSize}}},[`${Rt}-handler`]:{height:"50%",overflow:"hidden",color:tn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,It.unit)(en)} ${Pt} ${$n}`,transition:`all ${In} linear`,"&:active":{background:Cr},"&:hover":{height:"60%",[`
|
|
|
${Rt}-handler-up-inner,
|
|
|
${Rt}-handler-down-inner
|
|
|
`]:{color:pn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,wt.Ro)()),{color:tn,transition:`all ${In} linear`,userSelect:"none"})},[`${Rt}-handler-up`]:{borderStartEndRadius:Ut},[`${Rt}-handler-down`]:{borderEndEndRadius:Ut}},Dn(at,"lg")),Dn(at,"sm")),{"&-disabled, &-readonly":{[`${Rt}-handler-wrap`]:{display:"none"},[`${Rt}-input`]:{color:"inherit"}},[`
|
|
|
${Rt}-handler-up-disabled,
|
|
|
${Rt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Rt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Rt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:gr}})}]},Lt=at=>{const{componentCls:Rt,paddingBlock:en,paddingInline:Pt,inputAffixPadding:Ut,controlWidth:Yt,borderRadiusLG:bn,borderRadiusSM:jn,paddingInlineLG:Bn,paddingInlineSM:Zn,paddingBlockLG:Ot,paddingBlockSM:jt,motionDurationMid:on}=at;return{[`${Rt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Rt}-input`]:{padding:`${(0,It.unit)(en)} 0`}},(0,Qe.ik)(at)),{position:"relative",display:"inline-flex",alignItems:"center",width:Yt,padding:0,paddingInlineStart:Pt,"&-lg":{borderRadius:bn,paddingInlineStart:Bn,[`input${Rt}-input`]:{padding:`${(0,It.unit)(Ot)} 0`}},"&-sm":{borderRadius:jn,paddingInlineStart:Zn,[`input${Rt}-input`]:{padding:`${(0,It.unit)(jt)} 0`}},[`&:not(${Rt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Rt}-disabled`]:{background:"transparent"},[`> div${Rt}`]:{width:"100%",border:"none",outline:"none",[`&${Rt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Rt}-handler-wrap`]:{zIndex:2},[Rt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ut},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Pt,marginInlineStart:Ut,transition:`margin ${on}`}},[`&:hover ${Rt}-handler-wrap, &-focused ${Rt}-handler-wrap`]:{width:at.handleWidth,opacity:1},[`&:not(${Rt}-affix-wrapper-without-controls):hover ${Rt}-suffix`]:{marginInlineEnd:at.calc(at.handleWidth).add(Pt).equal()}})}};var cn=(0,Je.I$)("InputNumber",at=>{const Rt=(0,tt.mergeToken)(at,(0,Ke.e)(at));return[yn(Rt),Lt(Rt),(0,Tt.c)(Rt)]},un,{unitless:{handleOpacity:!0}}),Xt=function(at,Rt){var en={};for(var Pt in at)Object.prototype.hasOwnProperty.call(at,Pt)&&Rt.indexOf(Pt)<0&&(en[Pt]=at[Pt]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Pt=Object.getOwnPropertySymbols(at);Ut<Pt.length;Ut++)Rt.indexOf(Pt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(at,Pt[Ut])&&(en[Pt[Ut]]=at[Pt[Ut]]);return en};const Xe=y.forwardRef((at,Rt)=>{const{getPrefixCls:en,direction:Pt}=y.useContext(ue.E_),Ut=y.useRef(null);y.useImperativeHandle(Rt,()=>Ut.current);const{className:Yt,rootClassName:bn,size:jn,disabled:Bn,prefixCls:Zn,addonBefore:Ot,addonAfter:jt,prefix:on,suffix:En,bordered:tn,readOnly:In,status:pn,controls:On,variant:fr}=at,Qn=Xt(at,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),cr=en("input-number",Zn),Cr=(0,se.Z)(cr),[gr,Hr,Zr]=cn(cr,Cr),{compactSize:Pn,compactItemClassnames:$n}=(0,Ve.ri)(cr,Pt);let dr=y.createElement(me.Z,{className:`${cr}-handler-up-inner`}),hr=y.createElement(ge.Z,{className:`${cr}-handler-down-inner`});const _t=typeof On=="boolean"?On:void 0;typeof On=="object"&&(dr=typeof On.upIcon=="undefined"?dr:y.createElement("span",{className:`${cr}-handler-up-inner`},On.upIcon),hr=typeof On.downIcon=="undefined"?hr:y.createElement("span",{className:`${cr}-handler-down-inner`},On.downIcon));const{hasFeedback:Qt,status:ct,isFormItemInput:Zt,feedbackIcon:ot}=y.useContext(ie.aM),Kt=(0,Wt.F)(ct,pn),Ft=(0,ve.Z)(Un=>{var Xn;return(Xn=jn!=null?jn:Pn)!==null&&Xn!==void 0?Xn:Un}),ar=y.useContext(re.Z),mr=Bn!=null?Bn:ar,[At,Mt]=(0,fe.Z)("inputNumber",fr,tn),kt=Qt&&y.createElement(y.Fragment,null,ot),Vt=Se()({[`${cr}-lg`]:Ft==="large",[`${cr}-sm`]:Ft==="small",[`${cr}-rtl`]:Pt==="rtl",[`${cr}-in-form-item`]:Zt},Hr),Nn=`${cr}-group`,Hn=y.createElement(pt,Object.assign({ref:Ut,disabled:mr,className:Se()(Zr,Cr,Yt,bn,$n),upHandler:dr,downHandler:hr,prefixCls:cr,readOnly:In,controls:_t,prefix:on,suffix:kt||En,addonBefore:Ot&&y.createElement(ln.Z,{form:!0,space:!0},Ot),addonAfter:jt&&y.createElement(ln.Z,{form:!0,space:!0},jt),classNames:{input:Vt,variant:Se()({[`${cr}-${At}`]:Mt},(0,Wt.Z)(cr,Kt,Qt)),affixWrapper:Se()({[`${cr}-affix-wrapper-sm`]:Ft==="small",[`${cr}-affix-wrapper-lg`]:Ft==="large",[`${cr}-affix-wrapper-rtl`]:Pt==="rtl",[`${cr}-affix-wrapper-without-controls`]:On===!1||mr},Hr),wrapper:Se()({[`${Nn}-rtl`]:Pt==="rtl"},Hr),groupWrapper:Se()({[`${cr}-group-wrapper-sm`]:Ft==="small",[`${cr}-group-wrapper-lg`]:Ft==="large",[`${cr}-group-wrapper-rtl`]:Pt==="rtl",[`${cr}-group-wrapper-${At}`]:Mt},(0,Wt.Z)(`${cr}-group-wrapper`,Kt,Qt),Hr)}},Qn));return gr(Hn)}),Nt=Xe,dn=at=>y.createElement(ae.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(Xe,Object.assign({},at)));Nt._InternalPanelDoNotUseOrYouWillBeFired=dn;var xn=Nt},49397:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ae}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(36901),Se=E(8654),Ee=E(62487),Ce=E(86013),ke=E(82855),Fe=E(48755),de=E(2171),We=E(83397),Te=E(31756),ft=E(56553),Ge=E(24971),Ne=E(70045),Be=E(23826),Oe=E(53075);function Ie(_e){return!!(_e.prefix||_e.suffix||_e.allowClear||_e.showCount)}var nt=function(_e,et){var qe={};for(var ut in _e)Object.prototype.hasOwnProperty.call(_e,ut)&&et.indexOf(ut)<0&&(qe[ut]=_e[ut]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,ut=Object.getOwnPropertySymbols(_e);yt<ut.length;yt++)et.indexOf(ut[yt])<0&&Object.prototype.propertyIsEnumerable.call(_e,ut[yt])&&(qe[ut[yt]]=_e[ut[yt]]);return qe},Ae=(0,y.forwardRef)((_e,et)=>{const{prefixCls:qe,bordered:ut=!0,status:yt,size:st,disabled:$e,onBlur:pe,onFocus:Le,suffix:xe,allowClear:ce,addonAfter:Et,addonBefore:Ye,className:je,style:it,styles:Pe,rootClassName:ye,onChange:vt,classNames:zt,variant:Ct}=_e,De=nt(_e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:mt,direction:dt,allowClear:Gt,autoComplete:bt,className:xt,style:pt,classNames:ln,styles:Wt}=(0,Fe.dj)("input"),ue=mt("input",qe),ae=(0,y.useRef)(null),re=(0,We.Z)(ue),[se,ve,ie]=(0,Oe.TI)(ue,ye),[fe]=(0,Oe.ZP)(ue,re),{compactSize:Ve,compactItemClassnames:It}=(0,Ne.ri)(ue,dt),Qe=(0,Te.Z)(xn=>{var at;return(at=st!=null?st:Ve)!==null&&at!==void 0?at:xn}),Ke=y.useContext(de.Z),gt=$e!=null?$e:Ke,{status:wt,hasFeedback:Tt,feedbackIcon:Je}=(0,y.useContext)(ft.aM),tt=(0,ke.F)(wt,yt),Ht=Ie(_e)||!!Tt,un=(0,y.useRef)(Ht),Dn=(0,Be.Z)(ae,!0),yn=xn=>{Dn(),pe==null||pe(xn)},Lt=xn=>{Dn(),Le==null||Le(xn)},cn=xn=>{Dn(),vt==null||vt(xn)},Xt=(Tt||xe)&&y.createElement(y.Fragment,null,xe,Tt&&Je),Xe=(0,Ce.Z)(ce!=null?ce:Gt),[Nt,dn]=(0,Ge.Z)("input",Ct,ut);return se(fe(y.createElement(we.default,Object.assign({ref:(0,Se.sQ)(et,ae),prefixCls:ue,autoComplete:bt},De,{disabled:gt,onBlur:yn,onFocus:Lt,style:Object.assign(Object.assign({},pt),it),styles:Object.assign(Object.assign({},Wt),Pe),suffix:Xt,allowClear:Xe,className:me()(je,ye,ie,re,It,xt),onChange:cn,addonBefore:Ye&&y.createElement(Ee.Z,{form:!0,space:!0},Ye),addonAfter:Et&&y.createElement(Ee.Z,{form:!0,space:!0},Et),classNames:Object.assign(Object.assign(Object.assign({},zt),ln),{input:me()({[`${ue}-sm`]:Qe==="small",[`${ue}-lg`]:Qe==="large",[`${ue}-rtl`]:dt==="rtl"},zt==null?void 0:zt.input,ln.input,ve),variant:me()({[`${ue}-${Nt}`]:dn},(0,ke.Z)(ue,tt)),affixWrapper:me()({[`${ue}-affix-wrapper-sm`]:Qe==="small",[`${ue}-affix-wrapper-lg`]:Qe==="large",[`${ue}-affix-wrapper-rtl`]:dt==="rtl"},ve),wrapper:me()({[`${ue}-group-rtl`]:dt==="rtl"},ve),groupWrapper:me()({[`${ue}-group-wrapper-sm`]:Qe==="small",[`${ue}-group-wrapper-lg`]:Qe==="large",[`${ue}-group-wrapper-rtl`]:dt==="rtl",[`${ue}-group-wrapper-${Nt}`]:dn},(0,ke.Z)(`${ue}-group-wrapper`,tt,Tt),ve)})}))))})},79809:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return et}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(22711),Se=E(86013),Ee=E(82855),Ce=E(48755),ke=E(2171),Fe=E(83397),de=E(31756),We=E(56553),Te=E(24971),ft=E(70045),Ge=E(30292),Ne=E(53075),Be=E(16931),Oe=E(51636),Ie=E(64910);const nt=qe=>{const{componentCls:ut,paddingLG:yt}=qe,st=`${ut}-textarea`;return{[`textarea${ut}`]:{maxWidth:"100%",height:"auto",minHeight:qe.controlHeight,lineHeight:qe.lineHeight,verticalAlign:"bottom",transition:`all ${qe.motionDurationSlow}`,resize:"vertical",[`&${ut}-mouse-active`]:{transition:`all ${qe.motionDurationSlow}, height 0s, width 0s`}},[`${ut}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[st]:{position:"relative","&-show-count":{[`> ${ut}`]:{height:"100%"},[`${ut}-data-count`]:{position:"absolute",bottom:qe.calc(qe.fontSize).mul(qe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:qe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${ut},
|
|
|
&-affix-wrapper${st}-has-feedback ${ut}
|
|
|
`]:{paddingInlineEnd:yt},[`&-affix-wrapper${ut}-affix-wrapper`]:{padding:0,[`> textarea${ut}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:qe.calc(qe.controlHeight).sub(qe.calc(qe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ut}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ut}-clear-icon`]:{position:"absolute",insetInlineEnd:qe.paddingInline,insetBlockStart:qe.paddingXS},[`${st}-suffix`]:{position:"absolute",top:0,insetInlineEnd:qe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ut}-affix-wrapper-sm`]:{[`${ut}-suffix`]:{[`${ut}-clear-icon`]:{insetInlineEnd:qe.paddingInlineSM}}}}}};var St=(0,Be.I$)(["Input","TextArea"],qe=>{const ut=(0,Oe.mergeToken)(qe,(0,Ie.e)(qe));return[nt(ut)]},Ie.T,{resetFont:!1}),Ae=function(qe,ut){var yt={};for(var st in qe)Object.prototype.hasOwnProperty.call(qe,st)&&ut.indexOf(st)<0&&(yt[st]=qe[st]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,st=Object.getOwnPropertySymbols(qe);$e<st.length;$e++)ut.indexOf(st[$e])<0&&Object.prototype.propertyIsEnumerable.call(qe,st[$e])&&(yt[st[$e]]=qe[st[$e]]);return yt},et=(0,y.forwardRef)((qe,ut)=>{var yt;const{prefixCls:st,bordered:$e=!0,size:pe,disabled:Le,status:xe,allowClear:ce,classNames:Et,rootClassName:Ye,className:je,style:it,styles:Pe,variant:ye,showCount:vt,onMouseDown:zt,onResize:Ct}=qe,De=Ae(qe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:mt,direction:dt,allowClear:Gt,autoComplete:bt,className:xt,style:pt,classNames:ln,styles:Wt}=(0,Ce.dj)("textArea"),ue=y.useContext(ke.Z),ae=Le!=null?Le:ue,{status:re,hasFeedback:se,feedbackIcon:ve}=y.useContext(We.aM),ie=(0,Ee.F)(re,xe),fe=y.useRef(null);y.useImperativeHandle(ut,()=>{var dn;return{resizableTextArea:(dn=fe.current)===null||dn===void 0?void 0:dn.resizableTextArea,focus:xn=>{var at,Rt;(0,Ge.nH)((Rt=(at=fe.current)===null||at===void 0?void 0:at.resizableTextArea)===null||Rt===void 0?void 0:Rt.textArea,xn)},blur:()=>{var xn;return(xn=fe.current)===null||xn===void 0?void 0:xn.blur()}}});const Ve=mt("input",st),It=(0,Fe.Z)(Ve),[Qe,Ke,gt]=(0,Ne.TI)(Ve,Ye),[wt]=St(Ve,It),{compactSize:Tt,compactItemClassnames:Je}=(0,ft.ri)(Ve,dt),tt=(0,de.Z)(dn=>{var xn;return(xn=pe!=null?pe:Tt)!==null&&xn!==void 0?xn:dn}),[Ht,un]=(0,Te.Z)("textArea",ye,$e),Dn=(0,Se.Z)(ce!=null?ce:Gt),[yn,Lt]=y.useState(!1),[cn,Xt]=y.useState(!1),Xe=dn=>{Lt(!0),zt==null||zt(dn);const xn=()=>{Lt(!1),document.removeEventListener("mouseup",xn)};document.addEventListener("mouseup",xn)},Nt=dn=>{var xn,at;if(Ct==null||Ct(dn),yn&&typeof getComputedStyle=="function"){const Rt=(at=(xn=fe.current)===null||xn===void 0?void 0:xn.nativeElement)===null||at===void 0?void 0:at.querySelector("textarea");Rt&&getComputedStyle(Rt).resize==="both"&&Xt(!0)}};return Qe(wt(y.createElement(we.default,Object.assign({autoComplete:bt},De,{style:Object.assign(Object.assign({},pt),it),styles:Object.assign(Object.assign({},Wt),Pe),disabled:ae,allowClear:Dn,className:me()(gt,It,je,Ye,Je,xt,cn&&`${Ve}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Et),ln),{textarea:me()({[`${Ve}-sm`]:tt==="small",[`${Ve}-lg`]:tt==="large"},Ke,Et==null?void 0:Et.textarea,ln.textarea,yn&&`${Ve}-mouse-active`),variant:me()({[`${Ve}-${Ht}`]:un},(0,Ee.Z)(Ve,ie)),affixWrapper:me()(`${Ve}-textarea-affix-wrapper`,{[`${Ve}-affix-wrapper-rtl`]:dt==="rtl",[`${Ve}-affix-wrapper-sm`]:tt==="small",[`${Ve}-affix-wrapper-lg`]:tt==="large",[`${Ve}-textarea-show-count`]:vt||((yt=qe.count)===null||yt===void 0?void 0:yt.show)},Ke)}),prefixCls:Ve,suffix:se&&y.createElement("span",{className:`${Ve}-textarea-suffix`},ve),showCount:vt,ref:fe,onResize:Nt,onMouseDown:Xe}))))})},23826:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ge}});var y=E(59301);function ge(me,we){const Se=(0,y.useRef)([]),Ee=()=>{Se.current.push(setTimeout(()=>{var Ce,ke,Fe,de;!((Ce=me.current)===null||Ce===void 0)&&Ce.input&&((ke=me.current)===null||ke===void 0?void 0:ke.input.getAttribute("type"))==="password"&&(!((Fe=me.current)===null||Fe===void 0)&&Fe.input.hasAttribute("value"))&&((de=me.current)===null||de===void 0||de.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(we&&Ee(),()=>Se.current.forEach(Ce=>{Ce&&clearTimeout(Ce)})),[]),Ee}},37568:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return ln}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(48755),Se=E(56553),Ee=E(53075),ke=Wt=>{const{getPrefixCls:ue,direction:ae}=(0,y.useContext)(we.E_),{prefixCls:re,className:se}=Wt,ve=ue("input-group",re),ie=ue("input"),[fe,Ve,It]=(0,Ee.ZP)(ie),Qe=me()(ve,It,{[`${ve}-lg`]:Wt.size==="large",[`${ve}-sm`]:Wt.size==="small",[`${ve}-compact`]:Wt.compact,[`${ve}-rtl`]:ae==="rtl"},Ve,se),Ke=(0,y.useContext)(Se.aM),gt=(0,y.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return fe(y.createElement("span",{className:Qe,style:Wt.style,onMouseEnter:Wt.onMouseEnter,onMouseLeave:Wt.onMouseLeave,onFocus:Wt.onFocus,onBlur:Wt.onBlur},y.createElement(Se.aM.Provider,{value:gt},Wt.children)))},Fe=E(49397),de=E(77654),We=E(6089),Te=E(26112),ft=E(82855),Ge=E(31756),Ne=E(16931),Be=E(51636),Oe=E(64910);const Ie=Wt=>{const{componentCls:ue,paddingXS:ae}=Wt;return{[ue]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ae,"&-rtl":{direction:"rtl"},[`${ue}-input`]:{textAlign:"center",paddingInline:Wt.paddingXXS},[`&${ue}-sm ${ue}-input`]:{paddingInline:Wt.calc(Wt.paddingXXS).div(2).equal()},[`&${ue}-lg ${ue}-input`]:{paddingInline:Wt.paddingXS}}}};var nt=(0,Ne.I$)(["Input","OTP"],Wt=>{const ue=(0,Be.mergeToken)(Wt,(0,Oe.e)(Wt));return[Ie(ue)]},Oe.T),St=E(16089),Ae=function(Wt,ue){var ae={};for(var re in Wt)Object.prototype.hasOwnProperty.call(Wt,re)&&ue.indexOf(re)<0&&(ae[re]=Wt[re]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(Wt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(Wt,re[se])&&(ae[re[se]]=Wt[re[se]]);return ae},et=y.forwardRef((Wt,ue)=>{const{value:ae,onChange:re,onActiveChange:se,index:ve,mask:ie}=Wt,fe=Ae(Wt,["value","onChange","onActiveChange","index","mask"]),Ve=ae&&typeof ie=="string"?ie:ae,It=Tt=>{re(ve,Tt.target.value)},Qe=y.useRef(null);y.useImperativeHandle(ue,()=>Qe.current);const Ke=()=>{(0,St.Z)(()=>{var Tt;const Je=(Tt=Qe.current)===null||Tt===void 0?void 0:Tt.input;document.activeElement===Je&&Je&&Je.select()})},gt=Tt=>{const{key:Je,ctrlKey:tt,metaKey:Ht}=Tt;Je==="ArrowLeft"?se(ve-1):Je==="ArrowRight"?se(ve+1):Je==="z"&&(tt||Ht)&&Tt.preventDefault(),Ke()},wt=Tt=>{Tt.key==="Backspace"&&!ae&&se(ve-1),Ke()};return y.createElement(Fe.Z,Object.assign({type:ie===!0?"password":"text"},fe,{ref:Qe,value:Ve,onInput:It,onFocus:Ke,onKeyDown:gt,onKeyUp:wt,onMouseDown:Ke,onMouseUp:Ke}))}),qe=function(Wt,ue){var ae={};for(var re in Wt)Object.prototype.hasOwnProperty.call(Wt,re)&&ue.indexOf(re)<0&&(ae[re]=Wt[re]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(Wt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(Wt,re[se])&&(ae[re[se]]=Wt[re[se]]);return ae};function ut(Wt){return(Wt||"").split("")}const yt=Wt=>{const{index:ue,prefixCls:ae,separator:re}=Wt,se=typeof re=="function"?re(ue):re;return se?y.createElement("span",{className:`${ae}-separator`},se):null};var $e=y.forwardRef((Wt,ue)=>{const{prefixCls:ae,length:re=6,size:se,defaultValue:ve,value:ie,onChange:fe,formatter:Ve,separator:It,variant:Qe,disabled:Ke,status:gt,autoFocus:wt,mask:Tt,type:Je,onInput:tt,inputMode:Ht}=Wt,un=qe(Wt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Dn,direction:yn}=y.useContext(we.E_),Lt=Dn("otp",ae),cn=(0,Te.Z)(un,{aria:!0,data:!0,attr:!0}),[Xt,Xe,Nt]=nt(Lt),dn=(0,Ge.Z)(on=>se!=null?se:on),xn=y.useContext(Se.aM),at=(0,ft.F)(xn.status,gt),Rt=y.useMemo(()=>Object.assign(Object.assign({},xn),{status:at,hasFeedback:!1,feedbackIcon:null}),[xn,at]),en=y.useRef(null),Pt=y.useRef({});y.useImperativeHandle(ue,()=>({focus:()=>{var on;(on=Pt.current[0])===null||on===void 0||on.focus()},blur:()=>{var on;for(let En=0;En<re;En+=1)(on=Pt.current[En])===null||on===void 0||on.blur()},nativeElement:en.current}));const Ut=on=>Ve?Ve(on):on,[Yt,bn]=y.useState(()=>ut(Ut(ve||"")));y.useEffect(()=>{ie!==void 0&&bn(ut(ie))},[ie]);const jn=(0,We.Z)(on=>{bn(on),tt&&tt(on),fe&&on.length===re&&on.every(En=>En)&&on.some((En,tn)=>Yt[tn]!==En)&&fe(on.join(""))}),Bn=(0,We.Z)((on,En)=>{let tn=(0,de.Z)(Yt);for(let pn=0;pn<on;pn+=1)tn[pn]||(tn[pn]="");En.length<=1?tn[on]=En:tn=tn.slice(0,on).concat(ut(En)),tn=tn.slice(0,re);for(let pn=tn.length-1;pn>=0&&!tn[pn];pn-=1)tn.pop();const In=Ut(tn.map(pn=>pn||" ").join(""));return tn=ut(In).map((pn,On)=>pn===" "&&!tn[On]?tn[On]:pn),tn}),Zn=(on,En)=>{var tn;const In=Bn(on,En),pn=Math.min(on+En.length,re-1);pn!==on&&In[on]!==void 0&&((tn=Pt.current[pn])===null||tn===void 0||tn.focus()),jn(In)},Ot=on=>{var En;(En=Pt.current[on])===null||En===void 0||En.focus()},jt={variant:Qe,disabled:Ke,status:at,mask:Tt,type:Je,inputMode:Ht};return Xt(y.createElement("div",Object.assign({},cn,{ref:en,className:me()(Lt,{[`${Lt}-sm`]:dn==="small",[`${Lt}-lg`]:dn==="large",[`${Lt}-rtl`]:yn==="rtl"},Nt,Xe)}),y.createElement(Se.aM.Provider,{value:Rt},Array.from({length:re}).map((on,En)=>{const tn=`otp-${En}`,In=Yt[En]||"";return y.createElement(y.Fragment,{key:tn},y.createElement(et,Object.assign({ref:pn=>{Pt.current[En]=pn},index:En,size:dn,htmlSize:1,className:`${Lt}-input`,onChange:Zn,value:In,onActiveChange:Ot,autoFocus:En===0&&wt},jt)),En<re-1&&y.createElement(yt,{separator:It,index:En,prefixCls:Lt}))}))))}),pe=E(73331),Le=E(15277),xe=E(2738),ce=E(8654),Et=E(2171),Ye=E(23826),je=function(Wt,ue){var ae={};for(var re in Wt)Object.prototype.hasOwnProperty.call(Wt,re)&&ue.indexOf(re)<0&&(ae[re]=Wt[re]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(Wt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(Wt,re[se])&&(ae[re[se]]=Wt[re[se]]);return ae};const it=Wt=>Wt?y.createElement(Le.Z,null):y.createElement(pe.Z,null),Pe={click:"onClick",hover:"onMouseOver"};var vt=y.forwardRef((Wt,ue)=>{const{disabled:ae,action:re="click",visibilityToggle:se=!0,iconRender:ve=it}=Wt,ie=y.useContext(Et.Z),fe=ae!=null?ae:ie,Ve=typeof se=="object"&&se.visible!==void 0,[It,Qe]=(0,y.useState)(()=>Ve?se.visible:!1),Ke=(0,y.useRef)(null);y.useEffect(()=>{Ve&&Qe(se.visible)},[Ve,se]);const gt=(0,Ye.Z)(Ke),wt=()=>{var dn;if(fe)return;It&>();const xn=!It;Qe(xn),typeof se=="object"&&((dn=se.onVisibleChange)===null||dn===void 0||dn.call(se,xn))},Tt=dn=>{const xn=Pe[re]||"",at=ve(It),Rt={[xn]:wt,className:`${dn}-icon`,key:"passwordIcon",onMouseDown:en=>{en.preventDefault()},onMouseUp:en=>{en.preventDefault()}};return y.cloneElement(y.isValidElement(at)?at:y.createElement("span",null,at),Rt)},{className:Je,prefixCls:tt,inputPrefixCls:Ht,size:un}=Wt,Dn=je(Wt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:yn}=y.useContext(we.E_),Lt=yn("input",Ht),cn=yn("input-password",tt),Xt=se&&Tt(cn),Xe=me()(cn,Je,{[`${cn}-${un}`]:!!un}),Nt=Object.assign(Object.assign({},(0,xe.Z)(Dn,["suffix","iconRender","visibilityToggle"])),{type:It?"text":"password",className:Xe,prefixCls:Lt,suffix:Xt});return un&&(Nt.size=un),y.createElement(Fe.Z,Object.assign({ref:(0,ce.sQ)(ue,Ke)},Nt))}),zt=E(47472),Ct=E(22703),De=E(7939),mt=E(70045),dt=function(Wt,ue){var ae={};for(var re in Wt)Object.prototype.hasOwnProperty.call(Wt,re)&&ue.indexOf(re)<0&&(ae[re]=Wt[re]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(Wt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(Wt,re[se])&&(ae[re[se]]=Wt[re[se]]);return ae},bt=y.forwardRef((Wt,ue)=>{const{prefixCls:ae,inputPrefixCls:re,className:se,size:ve,suffix:ie,enterButton:fe=!1,addonAfter:Ve,loading:It,disabled:Qe,onSearch:Ke,onChange:gt,onCompositionStart:wt,onCompositionEnd:Tt}=Wt,Je=dt(Wt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:tt,direction:Ht}=y.useContext(we.E_),un=y.useRef(!1),Dn=tt("input-search",ae),yn=tt("input",re),{compactSize:Lt}=(0,mt.ri)(Dn,Ht),cn=(0,Ge.Z)(Zn=>{var Ot;return(Ot=ve!=null?ve:Lt)!==null&&Ot!==void 0?Ot:Zn}),Xt=y.useRef(null),Xe=Zn=>{Zn!=null&&Zn.target&&Zn.type==="click"&&Ke&&Ke(Zn.target.value,Zn,{source:"clear"}),gt==null||gt(Zn)},Nt=Zn=>{var Ot;document.activeElement===((Ot=Xt.current)===null||Ot===void 0?void 0:Ot.input)&&Zn.preventDefault()},dn=Zn=>{var Ot,jt;Ke&&Ke((jt=(Ot=Xt.current)===null||Ot===void 0?void 0:Ot.input)===null||jt===void 0?void 0:jt.value,Zn,{source:"input"})},xn=Zn=>{un.current||It||dn(Zn)},at=typeof fe=="boolean"?y.createElement(zt.Z,null):null,Rt=`${Dn}-button`;let en;const Pt=fe||{},Ut=Pt.type&&Pt.type.__ANT_BUTTON===!0;Ut||Pt.type==="button"?en=(0,Ct.Tm)(Pt,Object.assign({onMouseDown:Nt,onClick:Zn=>{var Ot,jt;(jt=(Ot=Pt==null?void 0:Pt.props)===null||Ot===void 0?void 0:Ot.onClick)===null||jt===void 0||jt.call(Ot,Zn),dn(Zn)},key:"enterButton"},Ut?{className:Rt,size:cn}:{})):en=y.createElement(De.ZP,{className:Rt,type:fe?"primary":void 0,size:cn,disabled:Qe,key:"enterButton",onMouseDown:Nt,onClick:dn,loading:It,icon:at},fe),Ve&&(en=[en,(0,Ct.Tm)(Ve,{key:"addonAfter"})]);const Yt=me()(Dn,{[`${Dn}-rtl`]:Ht==="rtl",[`${Dn}-${cn}`]:!!cn,[`${Dn}-with-button`]:!!fe},se),bn=Object.assign(Object.assign({},Je),{className:Yt,prefixCls:yn,type:"search"}),jn=Zn=>{un.current=!0,wt==null||wt(Zn)},Bn=Zn=>{un.current=!1,Tt==null||Tt(Zn)};return y.createElement(Fe.Z,Object.assign({ref:(0,ce.sQ)(Xt,ue),onPressEnter:xn},bn,{size:cn,onCompositionStart:jn,onCompositionEnd:Bn,addonAfter:en,suffix:ie,onChange:Xe,disabled:Qe}))}),xt=E(79809);const pt=Fe.Z;pt.Group=ke,pt.Search=bt,pt.TextArea=xt.Z,pt.Password=vt,pt.OTP=$e;var ln=pt},24303:function(Rn,qt,E){"use strict";E.d(qt,{D:function(){return qe},Z:function(){return st}});var y=E(59301),ge=E(60499),me={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},we=me,Se=E(7657),Ee=function(pe,Le){return y.createElement(Se.Z,(0,ge.Z)({},pe,{ref:Le,icon:we}))},Ce=y.forwardRef(Ee),ke=Ce,Fe=E(33853),de=E(38819),We=E(92310),Te=E.n(We),ft=E(2738),Ge=E(48755),Ne=E(6989),Be=E(36237),Oe=E(48923),Ie=E(16931);const nt=$e=>{const{componentCls:pe,siderBg:Le,motionDurationMid:xe,motionDurationSlow:ce,antCls:Et,triggerHeight:Ye,triggerColor:je,triggerBg:it,headerHeight:Pe,zeroTriggerWidth:ye,zeroTriggerHeight:vt,borderRadiusLG:zt,lightSiderBg:Ct,lightTriggerColor:De,lightTriggerBg:mt,bodyBg:dt}=$e;return{[pe]:{position:"relative",minWidth:0,background:Le,transition:`all ${xe}, background 0s`,"&-has-trigger":{paddingBottom:Ye},"&-right":{order:1},[`${pe}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Et}-menu${Et}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${pe}-children`]:{overflow:"hidden"},[`${pe}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ye,color:je,lineHeight:(0,Be.unit)(Ye),textAlign:"center",background:it,cursor:"pointer",transition:`all ${xe}`},[`${pe}-zero-width-trigger`]:{position:"absolute",top:Pe,insetInlineEnd:$e.calc(ye).mul(-1).equal(),zIndex:1,width:ye,height:vt,color:je,fontSize:$e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderRadius:`0 ${(0,Be.unit)(zt)} ${(0,Be.unit)(zt)} 0`,cursor:"pointer",transition:`background ${ce} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ce}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:$e.calc(ye).mul(-1).equal(),borderRadius:`${(0,Be.unit)(zt)} 0 0 ${(0,Be.unit)(zt)}`}},"&-light":{background:Ct,[`${pe}-trigger`]:{color:De,background:mt},[`${pe}-zero-width-trigger`]:{color:De,background:mt,border:`1px solid ${dt}`,borderInlineStart:0}}}}};var St=(0,Ie.I$)(["Layout","Sider"],$e=>[nt($e)],Oe.eh,{deprecatedTokens:Oe.jn}),Ae=function($e,pe){var Le={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&pe.indexOf(xe)<0&&(Le[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols($e);ce<xe.length;ce++)pe.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[ce])&&(Le[xe[ce]]=$e[xe[ce]]);return Le};const _e={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},et=$e=>!Number.isNaN(Number.parseFloat($e))&&isFinite($e),qe=y.createContext({}),ut=(()=>{let $e=0;return function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $e+=1,`${pe}${$e}`}})();var st=y.forwardRef(($e,pe)=>{const{prefixCls:Le,className:xe,trigger:ce,children:Et,defaultCollapsed:Ye=!1,theme:je="dark",style:it={},collapsible:Pe=!1,reverseArrow:ye=!1,width:vt=200,collapsedWidth:zt=80,zeroWidthTriggerStyle:Ct,breakpoint:De,onCollapse:mt,onBreakpoint:dt}=$e,Gt=Ae($e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:bt}=(0,y.useContext)(Ne.V),[xt,pt]=(0,y.useState)("collapsed"in $e?$e.collapsed:Ye),[ln,Wt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in $e&&pt($e.collapsed)},[$e.collapsed]);const ue=(cn,Xt)=>{"collapsed"in $e||pt(cn),mt==null||mt(cn,Xt)},{getPrefixCls:ae,direction:re}=(0,y.useContext)(Ge.E_),se=ae("layout-sider",Le),[ve,ie,fe]=St(se),Ve=(0,y.useRef)(null);Ve.current=cn=>{Wt(cn.matches),dt==null||dt(cn.matches),xt!==cn.matches&&ue(cn.matches,"responsive")},(0,y.useEffect)(()=>{function cn(Xe){return Ve.current(Xe)}let Xt;if(typeof window!="undefined"){const{matchMedia:Xe}=window;if(Xe&&De&&De in _e){Xt=Xe(`screen and (max-width: ${_e[De]})`);try{Xt.addEventListener("change",cn)}catch(Nt){Xt.addListener(cn)}cn(Xt)}}return()=>{try{Xt==null||Xt.removeEventListener("change",cn)}catch(Xe){Xt==null||Xt.removeListener(cn)}}},[De]),(0,y.useEffect)(()=>{const cn=ut("ant-sider-");return bt.addSider(cn),()=>bt.removeSider(cn)},[]);const It=()=>{ue(!xt,"clickTrigger")},Qe=(0,ft.Z)(Gt,["collapsed"]),Ke=xt?zt:vt,gt=et(Ke)?`${Ke}px`:String(Ke),wt=parseFloat(String(zt||0))===0?y.createElement("span",{onClick:It,className:Te()(`${se}-zero-width-trigger`,`${se}-zero-width-trigger-${ye?"right":"left"}`),style:Ct},ce||y.createElement(ke,null)):null,Tt=re==="rtl"==!ye,Ht={expanded:Tt?y.createElement(de.Z,null):y.createElement(Fe.Z,null),collapsed:Tt?y.createElement(Fe.Z,null):y.createElement(de.Z,null)}[xt?"collapsed":"expanded"],un=ce!==null?wt||y.createElement("div",{className:`${se}-trigger`,onClick:It,style:{width:gt}},ce||Ht):null,Dn=Object.assign(Object.assign({},it),{flex:`0 0 ${gt}`,maxWidth:gt,minWidth:gt,width:gt}),yn=Te()(se,`${se}-${je}`,{[`${se}-collapsed`]:!!xt,[`${se}-has-trigger`]:Pe&&ce!==null&&!wt,[`${se}-below`]:!!ln,[`${se}-zero-width`]:parseFloat(gt)===0},xe,ie,fe),Lt=y.useMemo(()=>({siderCollapsed:xt}),[xt]);return ve(y.createElement(qe.Provider,{value:Lt},y.createElement("aside",Object.assign({className:yn},Qe,{style:Dn,ref:pe}),y.createElement("div",{className:`${se}-children`},Et),Pe||ln&&wt?un:null)))})},6989:function(Rn,qt,E){"use strict";E.d(qt,{V:function(){return ge}});var y=E(59301);const ge=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Rn,qt,E){"use strict";E.d(qt,{eh:function(){return we},jn:function(){return Se}});var y=E(36237),ge=E(16931);const me=Ee=>{const{antCls:Ce,componentCls:ke,colorText:Fe,footerBg:de,headerHeight:We,headerPadding:Te,headerColor:ft,footerPadding:Ge,fontSize:Ne,bodyBg:Be,headerBg:Oe}=Ee;return{[ke]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Be,"&, *":{boxSizing:"border-box"},[`&${ke}-has-sider`]:{flexDirection:"row",[`> ${ke}, > ${ke}-content`]:{width:0}},[`${ke}-header, &${ke}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${ke}-header`]:{height:We,padding:Te,color:ft,lineHeight:(0,y.unit)(We),background:Oe,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${ke}-footer`]:{padding:Ge,color:Fe,fontSize:Ne,background:de},[`${ke}-content`]:{flex:"auto",color:Fe,minHeight:0}}},we=Ee=>{const{colorBgLayout:Ce,controlHeight:ke,controlHeightLG:Fe,colorText:de,controlHeightSM:We,marginXXS:Te,colorTextLightSolid:ft,colorBgContainer:Ge}=Ee,Ne=Fe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:ke*2,headerPadding:`0 ${Ne}px`,headerColor:de,footerPadding:`${We}px ${Ne}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Fe+Te*2,triggerBg:"#002140",triggerColor:ft,zeroTriggerWidth:Fe,zeroTriggerHeight:Fe,lightSiderBg:Ge,lightTriggerBg:Ge,lightTriggerColor:de}},Se=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];qt.ZP=(0,ge.I$)("Layout",Ee=>[me(Ee)],we,{deprecatedTokens:Se})},78857:function(Rn,qt,E){"use strict";E.d(qt,{J:function(){return Ee}});var y=E(59301),ge=E(8654),me=E(62487),we=function(Ce,ke){var Fe={};for(var de in Ce)Object.prototype.hasOwnProperty.call(Ce,de)&&ke.indexOf(de)<0&&(Fe[de]=Ce[de]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,de=Object.getOwnPropertySymbols(Ce);We<de.length;We++)ke.indexOf(de[We])<0&&Object.prototype.propertyIsEnumerable.call(Ce,de[We])&&(Fe[de[We]]=Ce[de[We]]);return Fe};const Se=y.createContext(null),Ee=y.forwardRef((Ce,ke)=>{const{children:Fe}=Ce,de=we(Ce,["children"]),We=y.useContext(Se),Te=y.useMemo(()=>Object.assign(Object.assign({},We),de),[We,de.prefixCls,de.mode,de.selectable,de.rootClassName]),ft=(0,ge.t4)(Fe),Ge=(0,ge.x1)(ke,ft?(0,ge.C4)(Fe):null);return y.createElement(Se.Provider,{value:Te},y.createElement(me.Z,{space:!0},ft?y.cloneElement(Fe,{ref:Ge}):Fe))});qt.Z=Se},93041:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return ve}});var y=E(59301),ge=E(28321),me=E(24303),we=E(18785),Se=E(92310),Ee=E.n(Se),Ce=E(6089),ke=E(2738),Fe=E(86641),de=E(22703),We=E(48755),Te=E(83397),Ge=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=function(ie,fe){var Ve={};for(var It in ie)Object.prototype.hasOwnProperty.call(ie,It)&&fe.indexOf(It)<0&&(Ve[It]=ie[It]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,It=Object.getOwnPropertySymbols(ie);Qe<It.length;Qe++)fe.indexOf(It[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ie,It[Qe])&&(Ve[It[Qe]]=ie[It[Qe]]);return Ve},Oe=ie=>{const{prefixCls:fe,className:Ve,dashed:It}=ie,Qe=Ne(ie,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=y.useContext(We.E_),gt=Ke("menu",fe),wt=Ee()({[`${gt}-item-divider-dashed`]:!!It},Ve);return y.createElement(ge.iz,Object.assign({className:wt},Qe))},Ie=E(11592),nt=E(25399),Ae=ie=>{var fe;const{className:Ve,children:It,icon:Qe,title:Ke,danger:gt,extra:wt}=ie,{prefixCls:Tt,firstLevel:Je,direction:tt,disableMenuItemTitleTooltip:Ht,inlineCollapsed:un}=y.useContext(Ge),Dn=Nt=>{const dn=It==null?void 0:It[0],xn=y.createElement("span",{className:Ee()(`${Tt}-title-content`,{[`${Tt}-title-content-with-extra`]:!!wt||wt===0})},It);return(!Qe||y.isValidElement(It)&&It.type==="span")&&It&&Nt&&Je&&typeof dn=="string"?y.createElement("div",{className:`${Tt}-inline-collapsed-noicon`},dn.charAt(0)):xn},{siderCollapsed:yn}=y.useContext(me.D);let Lt=Ke;typeof Ke=="undefined"?Lt=Je?It:"":Ke===!1&&(Lt="");const cn={title:Lt};!yn&&!un&&(cn.title=null,cn.open=!1);const Xt=(0,Ie.Z)(It).length;let Xe=y.createElement(ge.ck,Object.assign({},(0,ke.Z)(ie,["title","icon","danger"]),{className:Ee()({[`${Tt}-item-danger`]:gt,[`${Tt}-item-only-child`]:(Qe?Xt+1:Xt)===1},Ve),title:typeof Ke=="string"?Ke:void 0}),(0,de.Tm)(Qe,{className:Ee()(y.isValidElement(Qe)?(fe=Qe.props)===null||fe===void 0?void 0:fe.className:"",`${Tt}-item-icon`)}),Dn(un));return Ht||(Xe=y.createElement(nt.Z,Object.assign({},cn,{placement:tt==="rtl"?"left":"right",classNames:{root:`${Tt}-inline-collapsed-tooltip`}}),Xe)),Xe},_e=E(78857),et=E(36237),qe=E(17835),ut=E(63356),yt=E(34961),st=E(46e3),$e=E(34925),pe=E(16931),Le=E(51636),ce=ie=>{const{componentCls:fe,motionDurationSlow:Ve,horizontalLineHeight:It,colorSplit:Qe,lineWidth:Ke,lineType:gt,itemPaddingInline:wt}=ie;return{[`${fe}-horizontal`]:{lineHeight:It,border:0,borderBottom:`${(0,et.unit)(Ke)} ${gt} ${Qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${fe}-item, ${fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${fe}-item:hover,
|
|
|
> ${fe}-item-active,
|
|
|
> ${fe}-submenu ${fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${fe}-item, ${fe}-submenu-title`]:{transition:[`border-color ${Ve}`,`background ${Ve}`].join(",")},[`${fe}-submenu-arrow`]:{display:"none"}}}},Ye=ie=>{let{componentCls:fe,menuArrowOffset:Ve,calc:It}=ie;return{[`${fe}-rtl`]:{direction:"rtl"},[`${fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${fe}-rtl${fe}-vertical,
|
|
|
${fe}-submenu-rtl ${fe}-vertical`]:{[`${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,et.unit)(It(Ve).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,et.unit)(Ve)})`}}}}};const je=ie=>Object.assign({},(0,ut.oN)(ie));var Pe=(ie,fe)=>{const{componentCls:Ve,itemColor:It,itemSelectedColor:Qe,subMenuItemSelectedColor:Ke,groupTitleColor:gt,itemBg:wt,subMenuItemBg:Tt,itemSelectedBg:Je,activeBarHeight:tt,activeBarWidth:Ht,activeBarBorderWidth:un,motionDurationSlow:Dn,motionEaseInOut:yn,motionEaseOut:Lt,itemPaddingInline:cn,motionDurationMid:Xt,itemHoverColor:Xe,lineType:Nt,colorSplit:dn,itemDisabledColor:xn,dangerItemColor:at,dangerItemHoverColor:Rt,dangerItemSelectedColor:en,dangerItemActiveBg:Pt,dangerItemSelectedBg:Ut,popupBg:Yt,itemHoverBg:bn,itemActiveBg:jn,menuSubMenuBg:Bn,horizontalItemSelectedColor:Zn,horizontalItemSelectedBg:Ot,horizontalItemBorderRadius:jt,horizontalItemHoverBg:on}=ie;return{[`${Ve}-${fe}, ${Ve}-${fe} > ${Ve}`]:{color:It,background:wt,[`&${Ve}-root:focus-visible`]:Object.assign({},je(ie)),[`${Ve}-item`]:{"&-group-title, &-extra":{color:gt}},[`${Ve}-submenu-selected > ${Ve}-submenu-title`]:{color:Ke},[`${Ve}-item, ${Ve}-submenu-title`]:{color:It,[`&:not(${Ve}-item-disabled):focus-visible`]:Object.assign({},je(ie))},[`${Ve}-item-disabled, ${Ve}-submenu-disabled`]:{color:`${xn} !important`},[`${Ve}-item:not(${Ve}-item-selected):not(${Ve}-submenu-selected)`]:{[`&:hover, > ${Ve}-submenu-title:hover`]:{color:Xe}},[`&:not(${Ve}-horizontal)`]:{[`${Ve}-item:not(${Ve}-item-selected)`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:jn}},[`${Ve}-submenu-title`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:jn}}},[`${Ve}-item-danger`]:{color:at,[`&${Ve}-item:hover`]:{[`&:not(${Ve}-item-selected):not(${Ve}-submenu-selected)`]:{color:Rt}},[`&${Ve}-item:active`]:{background:Pt}},[`${Ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ve}-item-selected`]:{color:Qe,[`&${Ve}-item-danger`]:{color:en},"a, a:hover":{color:"inherit"}},[`& ${Ve}-item-selected`]:{backgroundColor:Je,[`&${Ve}-item-danger`]:{backgroundColor:Ut}},[`&${Ve}-submenu > ${Ve}`]:{backgroundColor:Bn},[`&${Ve}-popup > ${Ve}`]:{backgroundColor:Yt},[`&${Ve}-submenu-popup > ${Ve}`]:{backgroundColor:Yt},[`&${Ve}-horizontal`]:Object.assign(Object.assign({},fe==="dark"?{borderBottom:0}:{}),{[`> ${Ve}-item, > ${Ve}-submenu`]:{top:un,marginTop:ie.calc(un).mul(-1).equal(),marginBottom:0,borderRadius:jt,"&::after":{position:"absolute",insetInline:cn,bottom:0,borderBottom:`${(0,et.unit)(tt)} solid transparent`,transition:`border-color ${Dn} ${yn}`,content:'""'},"&:hover, &-active, &-open":{background:on,"&::after":{borderBottomWidth:tt,borderBottomColor:Zn}},"&-selected":{color:Zn,backgroundColor:Ot,"&:hover":{backgroundColor:Ot},"&::after":{borderBottomWidth:tt,borderBottomColor:Zn}}}}),[`&${Ve}-root`]:{[`&${Ve}-inline, &${Ve}-vertical`]:{borderInlineEnd:`${(0,et.unit)(un)} ${Nt} ${dn}`}},[`&${Ve}-inline`]:{[`${Ve}-sub${Ve}-inline`]:{background:Tt},[`${Ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,et.unit)(Ht)} solid ${Qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Xt} ${Lt}`,`opacity ${Xt} ${Lt}`].join(","),content:'""'},[`&${Ve}-item-danger`]:{"&::after":{borderInlineEndColor:en}}},[`${Ve}-selected, ${Ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Xt} ${yn}`,`opacity ${Xt} ${yn}`].join(",")}}}}}};const ye=ie=>{const{componentCls:fe,itemHeight:Ve,itemMarginInline:It,padding:Qe,menuArrowSize:Ke,marginXS:gt,itemMarginBlock:wt,itemWidth:Tt,itemPaddingInline:Je}=ie,tt=ie.calc(Ke).add(Qe).add(gt).equal();return{[`${fe}-item`]:{position:"relative",overflow:"hidden"},[`${fe}-item, ${fe}-submenu-title`]:{height:Ve,lineHeight:(0,et.unit)(Ve),paddingInline:Je,overflow:"hidden",textOverflow:"ellipsis",marginInline:It,marginBlock:wt,width:Tt},[`> ${fe}-item,
|
|
|
> ${fe}-submenu > ${fe}-submenu-title`]:{height:Ve,lineHeight:(0,et.unit)(Ve)},[`${fe}-item-group-list ${fe}-submenu-title,
|
|
|
${fe}-submenu-title`]:{paddingInlineEnd:tt}}};var zt=ie=>{const{componentCls:fe,iconCls:Ve,itemHeight:It,colorTextLightSolid:Qe,dropdownWidth:Ke,controlHeightLG:gt,motionEaseOut:wt,paddingXL:Tt,itemMarginInline:Je,fontSizeLG:tt,motionDurationFast:Ht,motionDurationSlow:un,paddingXS:Dn,boxShadowSecondary:yn,collapsedWidth:Lt,collapsedIconSize:cn}=ie,Xt={height:It,lineHeight:(0,et.unit)(It),listStylePosition:"inside",listStyleType:"disc"};return[{[fe]:{"&-inline, &-vertical":Object.assign({[`&${fe}-root`]:{boxShadow:"none"}},ye(ie))},[`${fe}-submenu-popup`]:{[`${fe}-vertical`]:Object.assign(Object.assign({},ye(ie)),{boxShadow:yn})}},{[`${fe}-submenu-popup ${fe}-vertical${fe}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${(0,et.unit)(ie.calc(gt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${fe}-inline`]:{width:"100%",[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${un}`,`background ${un}`,`padding ${Ht} ${wt}`].join(","),[`> ${fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${fe}-sub${fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${fe}-submenu > ${fe}-submenu-title`]:Xt,[`& ${fe}-item-group-title`]:{paddingInlineStart:Tt}},[`${fe}-item`]:Xt}},{[`${fe}-inline-collapsed`]:{width:Lt,[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu ${fe}-submenu-title`]:{[`> ${fe}-inline-collapsed-noicon`]:{fontSize:tt,textAlign:"center"}}},[`> ${fe}-item,
|
|
|
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-item,
|
|
|
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-submenu > ${fe}-submenu-title,
|
|
|
> ${fe}-submenu > ${fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,et.unit)(ie.calc(cn).div(2).equal())} - ${(0,et.unit)(Je)})`,textOverflow:"clip",[`
|
|
|
${fe}-submenu-arrow,
|
|
|
${fe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${fe}-item-icon, ${Ve}`]:{margin:0,fontSize:cn,lineHeight:(0,et.unit)(It),"+ span":{display:"inline-block",opacity:0}}},[`${fe}-item-icon, ${Ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${fe}-item-icon, ${Ve}`]:{display:"none"},"a, a:hover":{color:Qe}},[`${fe}-item-group-title`]:Object.assign(Object.assign({},ut.vS),{paddingInline:Dn})}}]};const Ct=ie=>{const{componentCls:fe,motionDurationSlow:Ve,motionDurationMid:It,motionEaseInOut:Qe,motionEaseOut:Ke,iconCls:gt,iconSize:wt,iconMarginInlineEnd:Tt}=ie;return{[`${fe}-item, ${fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ve}`,`background ${Ve}`,`padding calc(${Ve} + 0.1s) ${Qe}`].join(","),[`${fe}-item-icon, ${gt}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${It} ${Ke}`,`margin ${Ve} ${Qe}`,`color ${Ve}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${Ve} ${Qe}`,`margin ${Ve}`,`color ${Ve}`].join(",")}},[`${fe}-item-icon`]:Object.assign({},(0,ut.Ro)()),[`&${fe}-item-only-child`]:{[`> ${gt}, > ${fe}-item-icon`]:{marginInlineEnd:0}}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},De=ie=>{const{componentCls:fe,motionDurationSlow:Ve,motionEaseInOut:It,borderRadius:Qe,menuArrowSize:Ke,menuArrowOffset:gt}=ie;return{[`${fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ie.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ve} ${It}, opacity ${Ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ie.calc(Ke).mul(.6).equal(),height:ie.calc(Ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Qe,transition:[`background ${Ve} ${It}`,`transform ${Ve} ${It}`,`top ${Ve} ${It}`,`color ${Ve} ${It}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,et.unit)(ie.calc(gt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,et.unit)(gt)})`}}}}},mt=ie=>{const{antCls:fe,componentCls:Ve,fontSize:It,motionDurationSlow:Qe,motionDurationMid:Ke,motionEaseInOut:gt,paddingXS:wt,padding:Tt,colorSplit:Je,lineWidth:tt,zIndexPopup:Ht,borderRadiusLG:un,subMenuItemBorderRadius:Dn,menuArrowSize:yn,menuArrowOffset:Lt,lineType:cn,groupTitleLineHeight:Xt,groupTitleFontSize:Xe}=ie;return[{"":{[Ve]:Object.assign(Object.assign({},(0,ut.dF)()),{"&-hidden":{display:"none"}})},[`${Ve}-submenu-hidden`]:{display:"none"}},{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(ie)),(0,ut.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:It,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",[`${Ve}-item`]:{flex:"none"}},[`${Ve}-item, ${Ve}-submenu, ${Ve}-submenu-title`]:{borderRadius:ie.itemBorderRadius},[`${Ve}-item-group-title`]:{padding:`${(0,et.unit)(wt)} ${(0,et.unit)(Tt)}`,fontSize:Xe,lineHeight:Xt,transition:`all ${Qe}`},[`&-horizontal ${Ve}-submenu`]:{transition:[`border-color ${Qe} ${gt}`,`background ${Qe} ${gt}`].join(",")},[`${Ve}-submenu, ${Ve}-submenu-inline`]:{transition:[`border-color ${Qe} ${gt}`,`background ${Qe} ${gt}`,`padding ${Ke} ${gt}`].join(",")},[`${Ve}-submenu ${Ve}-sub`]:{cursor:"initial",transition:[`background ${Qe} ${gt}`,`padding ${Qe} ${gt}`].join(",")},[`${Ve}-title-content`]:{transition:`color ${Qe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${fe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ve}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ie.padding}},[`${Ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Je,borderStyle:cn,borderWidth:0,borderTopWidth:tt,marginBlock:tt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(ie)),{[`${Ve}-item-group`]:{[`${Ve}-item-group-list`]:{margin:0,padding:0,[`${Ve}-item, ${Ve}-submenu-title`]:{paddingInline:`${(0,et.unit)(ie.calc(It).mul(2).equal())} ${(0,et.unit)(Tt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:un,boxShadow:"none",transformOrigin:"0 0",[`&${Ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:un},Ct(ie)),De(ie)),{[`${Ve}-item, ${Ve}-submenu > ${Ve}-submenu-title`]:{borderRadius:Dn},[`${Ve}-submenu-title::after`]:{transition:`transform ${Qe} ${gt}`}})},"\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:ie.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ie.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ie.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ie.paddingXS}}}),De(ie)),{[`&-inline-collapsed ${Ve}-submenu-arrow,
|
|
|
&-inline ${Ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,et.unit)(Lt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,et.unit)(ie.calc(Lt).mul(-1).equal())})`}},[`${Ve}-submenu-open${Ve}-submenu-inline > ${Ve}-submenu-title > ${Ve}-submenu-arrow`]:{transform:`translateY(${(0,et.unit)(ie.calc(yn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,et.unit)(ie.calc(Lt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,et.unit)(Lt)})`}}})},{[`${fe}-layout-header`]:{[Ve]:{lineHeight:"inherit"}}}]},dt=ie=>{var fe,Ve,It;const{colorPrimary:Qe,colorError:Ke,colorTextDisabled:gt,colorErrorBg:wt,colorText:Tt,colorTextDescription:Je,colorBgContainer:tt,colorFillAlter:Ht,colorFillContent:un,lineWidth:Dn,lineWidthBold:yn,controlItemBgActive:Lt,colorBgTextHover:cn,controlHeightLG:Xt,lineHeight:Xe,colorBgElevated:Nt,marginXXS:dn,padding:xn,fontSize:at,controlHeightSM:Rt,fontSizeLG:en,colorTextLightSolid:Pt,colorErrorHover:Ut}=ie,Yt=(fe=ie.activeBarWidth)!==null&&fe!==void 0?fe:0,bn=(Ve=ie.activeBarBorderWidth)!==null&&Ve!==void 0?Ve:Dn,jn=(It=ie.itemMarginInline)!==null&&It!==void 0?It:ie.marginXXS,Bn=new qe.FastColor(Pt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ie.zIndexPopupBase+50,radiusItem:ie.borderRadiusLG,itemBorderRadius:ie.borderRadiusLG,radiusSubMenuItem:ie.borderRadiusSM,subMenuItemBorderRadius:ie.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:Qe,horizontalItemHoverColor:Qe,colorGroupTitle:Je,groupTitleColor:Je,colorItemTextSelected:Qe,itemSelectedColor:Qe,subMenuItemSelectedColor:Qe,colorItemTextSelectedHorizontal:Qe,horizontalItemSelectedColor:Qe,colorItemBg:tt,itemBg:tt,colorItemBgHover:cn,itemHoverBg:cn,colorItemBgActive:un,itemActiveBg:Lt,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:Lt,itemSelectedBg:Lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Yt,colorActiveBarHeight:yn,activeBarHeight:yn,colorActiveBarBorderSize:Dn,activeBarBorderWidth:bn,colorItemTextDisabled:gt,itemDisabledColor:gt,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:jn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Xt,groupTitleLineHeight:Xe,collapsedWidth:Xt*2,popupBg:Nt,itemMarginBlock:dn,itemPaddingInline:xn,horizontalLineHeight:`${Xt*1.15}px`,iconSize:at,iconMarginInlineEnd:Rt-at,collapsedIconSize:en,groupTitleFontSize:at,darkItemDisabledColor:new qe.FastColor(Pt).setA(.25).toRgbString(),darkItemColor:Bn,darkDangerItemColor:Ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Pt,darkItemSelectedBg:Qe,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:Bn,darkItemHoverColor:Pt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Ke,itemWidth:Yt?`calc(100% + ${bn}px)`:`calc(100% - ${jn*2}px)`}};var Gt=function(ie){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie,Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,pe.I$)("Menu",Qe=>{const{colorBgElevated:Ke,controlHeightLG:gt,fontSize:wt,darkItemColor:Tt,darkDangerItemColor:Je,darkItemBg:tt,darkSubMenuItemBg:Ht,darkItemSelectedColor:un,darkItemSelectedBg:Dn,darkDangerItemSelectedBg:yn,darkItemHoverBg:Lt,darkGroupTitleColor:cn,darkItemHoverColor:Xt,darkItemDisabledColor:Xe,darkDangerItemHoverColor:Nt,darkDangerItemSelectedColor:dn,darkDangerItemActiveBg:xn,popupBg:at,darkPopupBg:Rt}=Qe,en=Qe.calc(wt).div(7).mul(5).equal(),Pt=(0,Le.mergeToken)(Qe,{menuArrowSize:en,menuHorizontalHeight:Qe.calc(gt).mul(1.15).equal(),menuArrowOffset:Qe.calc(en).mul(.25).equal(),menuSubMenuBg:Ke,calc:Qe.calc,popupBg:at}),Ut=(0,Le.mergeToken)(Pt,{itemColor:Tt,itemHoverColor:Xt,groupTitleColor:cn,itemSelectedColor:un,subMenuItemSelectedColor:un,itemBg:tt,popupBg:Rt,subMenuItemBg:Ht,itemActiveBg:"transparent",itemSelectedBg:Dn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Lt,itemDisabledColor:Xe,dangerItemColor:Je,dangerItemHoverColor:Nt,dangerItemSelectedColor:dn,dangerItemActiveBg:xn,dangerItemSelectedBg:yn,menuSubMenuBg:Ht,horizontalItemSelectedColor:un,horizontalItemSelectedBg:Dn});return[mt(Pt),ce(Pt),zt(Pt),Pe(Pt,"light"),Pe(Ut,"dark"),Ye(Pt),(0,yt.Z)(Pt),(0,st.oN)(Pt,"slide-up"),(0,st.oN)(Pt,"slide-down"),(0,$e._y)(Pt,"zoom-big")]},dt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Ve,unitless:{groupTitleLineHeight:!0}})(ie,fe)},bt=E(75030),pt=ie=>{var fe;const{popupClassName:Ve,icon:It,title:Qe,theme:Ke}=ie,gt=y.useContext(Ge),{prefixCls:wt,inlineCollapsed:Tt,theme:Je}=gt,tt=(0,ge.Xl)();let Ht;if(!It)Ht=Tt&&!tt.length&&Qe&&typeof Qe=="string"?y.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Qe.charAt(0)):y.createElement("span",{className:`${wt}-title-content`},Qe);else{const yn=y.isValidElement(Qe)&&Qe.type==="span";Ht=y.createElement(y.Fragment,null,(0,de.Tm)(It,{className:Ee()(y.isValidElement(It)?(fe=It.props)===null||fe===void 0?void 0:fe.className:"",`${wt}-item-icon`)}),yn?Qe:y.createElement("span",{className:`${wt}-title-content`},Qe))}const un=y.useMemo(()=>Object.assign(Object.assign({},gt),{firstLevel:!1}),[gt]),[Dn]=(0,bt.Cn)("Menu");return y.createElement(Ge.Provider,{value:un},y.createElement(ge.Wd,Object.assign({},(0,ke.Z)(ie,["icon"]),{title:Ht,popupClassName:Ee()(wt,Ve,`${wt}-${Ke||Je}`),popupStyle:Object.assign({zIndex:Dn},ie.popupStyle)})))},ln=function(ie,fe){var Ve={};for(var It in ie)Object.prototype.hasOwnProperty.call(ie,It)&&fe.indexOf(It)<0&&(Ve[It]=ie[It]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,It=Object.getOwnPropertySymbols(ie);Qe<It.length;Qe++)fe.indexOf(It[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ie,It[Qe])&&(Ve[It[Qe]]=ie[It[Qe]]);return Ve};function Wt(ie){return ie===null||ie===!1}const ue={item:Ae,submenu:pt,divider:Oe};var re=(0,y.forwardRef)((ie,fe)=>{var Ve;const It=y.useContext(_e.Z),Qe=It||{},{getPrefixCls:Ke,getPopupContainer:gt,direction:wt,menu:Tt}=y.useContext(We.E_),Je=Ke(),{prefixCls:tt,className:Ht,style:un,theme:Dn="light",expandIcon:yn,_internalDisableMenuItemTitleTooltip:Lt,inlineCollapsed:cn,siderCollapsed:Xt,rootClassName:Xe,mode:Nt,selectable:dn,onClick:xn,overflowedIndicatorPopupClassName:at}=ie,Rt=ln(ie,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),en=(0,ke.Z)(Rt,["collapsedWidth"]);(Ve=Qe.validator)===null||Ve===void 0||Ve.call(Qe,{mode:Nt});const Pt=(0,Ce.Z)(function(){var pn;xn==null||xn.apply(void 0,arguments),(pn=Qe.onClick)===null||pn===void 0||pn.call(Qe)}),Ut=Qe.mode||Nt,Yt=dn!=null?dn:Qe.selectable,bn=cn!=null?cn:Xt,jn={horizontal:{motionName:`${Je}-slide-up`},inline:(0,Fe.Z)(Je),other:{motionName:`${Je}-zoom-big`}},Bn=Ke("menu",tt||Qe.prefixCls),Zn=(0,Te.Z)(Bn),[Ot,jt,on]=Gt(Bn,Zn,!It),En=Ee()(`${Bn}-${Dn}`,Tt==null?void 0:Tt.className,Ht),tn=y.useMemo(()=>{var pn,On;if(typeof yn=="function"||Wt(yn))return yn||null;if(typeof Qe.expandIcon=="function"||Wt(Qe.expandIcon))return Qe.expandIcon||null;if(typeof(Tt==null?void 0:Tt.expandIcon)=="function"||Wt(Tt==null?void 0:Tt.expandIcon))return(Tt==null?void 0:Tt.expandIcon)||null;const fr=(pn=yn!=null?yn:Qe==null?void 0:Qe.expandIcon)!==null&&pn!==void 0?pn:Tt==null?void 0:Tt.expandIcon;return(0,de.Tm)(fr,{className:Ee()(`${Bn}-submenu-expand-icon`,y.isValidElement(fr)?(On=fr.props)===null||On===void 0?void 0:On.className:void 0)})},[yn,Qe==null?void 0:Qe.expandIcon,Tt==null?void 0:Tt.expandIcon,Bn]),In=y.useMemo(()=>({prefixCls:Bn,inlineCollapsed:bn||!1,direction:wt,firstLevel:!0,theme:Dn,mode:Ut,disableMenuItemTitleTooltip:Lt}),[Bn,bn,wt,Lt,Dn]);return Ot(y.createElement(_e.Z.Provider,{value:null},y.createElement(Ge.Provider,{value:In},y.createElement(ge.ZP,Object.assign({getPopupContainer:gt,overflowedIndicator:y.createElement(we.Z,null),overflowedIndicatorPopupClassName:Ee()(Bn,`${Bn}-${Dn}`,at),mode:Ut,selectable:Yt,onClick:Pt},en,{inlineCollapsed:bn,style:Object.assign(Object.assign({},Tt==null?void 0:Tt.style),un),className:En,prefixCls:Bn,direction:wt,defaultMotions:jn,expandIcon:tn,ref:fe,rootClassName:Ee()(Xe,jt,Qe.rootClassName,on,Zn),_internalComponents:ue})))))});const se=(0,y.forwardRef)((ie,fe)=>{const Ve=(0,y.useRef)(null),It=y.useContext(me.D);return(0,y.useImperativeHandle)(fe,()=>({menu:Ve.current,focus:Qe=>{var Ke;(Ke=Ve.current)===null||Ke===void 0||Ke.focus(Qe)}})),y.createElement(re,Object.assign({ref:Ve},ie,It))});se.Item=Ae,se.SubMenu=pt,se.Divider=Oe,se.ItemGroup=ge.BW;var ve=se},31709:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Tt}});var y=E(59301),ge=E(60499),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},we=me,Se=E(7657),Ee=function(tt,Ht){return y.createElement(Se.Z,(0,ge.Z)({},tt,{ref:Ht,icon:we}))},Ce=y.forwardRef(Ee),ke=Ce,Fe=E(49198),de=E(33853),We=E(38819),Te=E(92310),ft=E.n(Te),Ge=E(18642),Ne=E(43749),Be=E(85899),Oe=E(72190),Ie=E(18929),nt=E(10228),St=E(26112),Ae=E(48736),_e=E(17119),et=[10,20,50,100],qe=function(tt){var Ht=tt.pageSizeOptions,un=Ht===void 0?et:Ht,Dn=tt.locale,yn=tt.changeSize,Lt=tt.pageSize,cn=tt.goButton,Xt=tt.quickGo,Xe=tt.rootPrefixCls,Nt=tt.disabled,dn=tt.buildOptionText,xn=tt.showSizeChanger,at=tt.sizeChangerRender,Rt=y.useState(""),en=(0,Oe.Z)(Rt,2),Pt=en[0],Ut=en[1],Yt=function(){return!Pt||Number.isNaN(Pt)?void 0:Number(Pt)},bn=typeof dn=="function"?dn:function(In){return"".concat(In," ").concat(Dn.items_per_page)},jn=function(pn){Ut(pn.target.value)},Bn=function(pn){cn||Pt===""||(Ut(""),!(pn.relatedTarget&&(pn.relatedTarget.className.indexOf("".concat(Xe,"-item-link"))>=0||pn.relatedTarget.className.indexOf("".concat(Xe,"-item"))>=0))&&(Xt==null||Xt(Yt())))},Zn=function(pn){Pt!==""&&(pn.keyCode===nt.Z.ENTER||pn.type==="click")&&(Ut(""),Xt==null||Xt(Yt()))},Ot=function(){return un.some(function(pn){return pn.toString()===Lt.toString()})?un:un.concat([Lt]).sort(function(pn,On){var fr=Number.isNaN(Number(pn))?0:Number(pn),Qn=Number.isNaN(Number(On))?0:Number(On);return fr-Qn})},jt="".concat(Xe,"-options");if(!xn&&!Xt)return null;var on=null,En=null,tn=null;return xn&&at&&(on=at({disabled:Nt,size:Lt,onSizeChange:function(pn){yn==null||yn(Number(pn))},"aria-label":Dn.page_size,className:"".concat(jt,"-size-changer"),options:Ot().map(function(In){return{label:bn(In),value:In}})})),Xt&&(cn&&(tn=typeof cn=="boolean"?y.createElement("button",{type:"button",onClick:Zn,onKeyUp:Zn,disabled:Nt,className:"".concat(jt,"-quick-jumper-button")},Dn.jump_to_confirm):y.createElement("span",{onClick:Zn,onKeyUp:Zn},cn)),En=y.createElement("div",{className:"".concat(jt,"-quick-jumper")},Dn.jump_to,y.createElement("input",{disabled:Nt,type:"text",value:Pt,onChange:jn,onKeyUp:Zn,onBlur:Bn,"aria-label":Dn.page}),Dn.page,tn)),y.createElement("li",{className:jt},on,En)},ut=qe,yt=function(tt){var Ht=tt.rootPrefixCls,un=tt.page,Dn=tt.active,yn=tt.className,Lt=tt.showTitle,cn=tt.onClick,Xt=tt.onKeyPress,Xe=tt.itemRender,Nt="".concat(Ht,"-item"),dn=ft()(Nt,"".concat(Nt,"-").concat(un),(0,Ge.Z)((0,Ge.Z)({},"".concat(Nt,"-active"),Dn),"".concat(Nt,"-disabled"),!un),yn),xn=function(){cn(un)},at=function(Pt){Xt(Pt,cn,un)},Rt=Xe(un,"page",y.createElement("a",{rel:"nofollow"},un));return Rt?y.createElement("li",{title:Lt?String(un):null,className:dn,onClick:xn,onKeyDown:at,tabIndex:0},Rt):null},st=yt,$e=function(tt,Ht,un){return un};function pe(){}function Le(Je){var tt=Number(Je);return typeof tt=="number"&&!Number.isNaN(tt)&&isFinite(tt)&&Math.floor(tt)===tt}function xe(Je,tt,Ht){var un=typeof Je=="undefined"?tt:Je;return Math.floor((Ht-1)/un)+1}var ce=function(tt){var Ht=tt.prefixCls,un=Ht===void 0?"rc-pagination":Ht,Dn=tt.selectPrefixCls,yn=Dn===void 0?"rc-select":Dn,Lt=tt.className,cn=tt.current,Xt=tt.defaultCurrent,Xe=Xt===void 0?1:Xt,Nt=tt.total,dn=Nt===void 0?0:Nt,xn=tt.pageSize,at=tt.defaultPageSize,Rt=at===void 0?10:at,en=tt.onChange,Pt=en===void 0?pe:en,Ut=tt.hideOnSinglePage,Yt=tt.align,bn=tt.showPrevNextJumpers,jn=bn===void 0?!0:bn,Bn=tt.showQuickJumper,Zn=tt.showLessItems,Ot=tt.showTitle,jt=Ot===void 0?!0:Ot,on=tt.onShowSizeChange,En=on===void 0?pe:on,tn=tt.locale,In=tn===void 0?_e.Z:tn,pn=tt.style,On=tt.totalBoundaryShowSizeChanger,fr=On===void 0?50:On,Qn=tt.disabled,cr=tt.simple,Cr=tt.showTotal,gr=tt.showSizeChanger,Hr=gr===void 0?dn>fr:gr,Zr=tt.sizeChangerRender,Pn=tt.pageSizeOptions,$n=tt.itemRender,dr=$n===void 0?$e:$n,hr=tt.jumpPrevIcon,_t=tt.jumpNextIcon,Qt=tt.prevIcon,ct=tt.nextIcon,Zt=y.useRef(null),ot=(0,Ie.Z)(10,{value:xn,defaultValue:Rt}),Kt=(0,Oe.Z)(ot,2),Ft=Kt[0],ar=Kt[1],mr=(0,Ie.Z)(1,{value:cn,defaultValue:Xe,postState:function(ni){return Math.max(1,Math.min(ni,xe(void 0,Ft,dn)))}}),At=(0,Oe.Z)(mr,2),Mt=At[0],kt=At[1],Vt=y.useState(Mt),Nn=(0,Oe.Z)(Vt,2),Hn=Nn[0],Un=Nn[1];(0,y.useEffect)(function(){Un(Mt)},[Mt]);var Xn=Pt!==pe,pr="current"in tt,wr=Math.max(1,Mt-(Zn?3:5)),Or=Math.min(xe(void 0,Ft,dn),Mt+(Zn?3:5));function Lr(fi,ni){var xo=fi||y.createElement("button",{type:"button","aria-label":ni,className:"".concat(un,"-item-link")});return typeof fi=="function"&&(xo=y.createElement(fi,(0,Be.Z)({},tt))),xo}function Sr(fi){var ni=fi.target.value,xo=xe(void 0,Ft,dn),mi;return ni===""?mi=ni:Number.isNaN(Number(ni))?mi=Hn:ni>=xo?mi=xo:mi=Number(ni),mi}function Mr(fi){return Le(fi)&&fi!==Mt&&Le(dn)&&dn>0}var Vr=dn>Ft?Bn:!1;function oa(fi){(fi.keyCode===nt.Z.UP||fi.keyCode===nt.Z.DOWN)&&fi.preventDefault()}function ra(fi){var ni=Sr(fi);switch(ni!==Hn&&Un(ni),fi.keyCode){case nt.Z.ENTER:Kr(ni);break;case nt.Z.UP:Kr(ni-1);break;case nt.Z.DOWN:Kr(ni+1);break;default:break}}function Oa(fi){Kr(Sr(fi))}function ba(fi){var ni=xe(fi,Ft,dn),xo=Mt>ni&&ni!==0?ni:Mt;ar(fi),Un(xo),En==null||En(Mt,fi),kt(xo),Pt==null||Pt(xo,fi)}function Kr(fi){if(Mr(fi)&&!Qn){var ni=xe(void 0,Ft,dn),xo=fi;return fi>ni?xo=ni:fi<1&&(xo=1),xo!==Hn&&Un(xo),kt(xo),Pt==null||Pt(xo,Ft),xo}return Mt}var ga=Mt>1,Qa=Mt<xe(void 0,Ft,dn);function Da(){ga&&Kr(Mt-1)}function Ea(){Qa&&Kr(Mt+1)}function Rr(){Kr(wr)}function Za(){Kr(Or)}function Pa(fi,ni){if(fi.key==="Enter"||fi.charCode===nt.Z.ENTER||fi.keyCode===nt.Z.ENTER){for(var xo=arguments.length,mi=new Array(xo>2?xo-2:0),rl=2;rl<xo;rl++)mi[rl-2]=arguments[rl];ni.apply(void 0,mi)}}function la(fi){Pa(fi,Da)}function Xr(fi){Pa(fi,Ea)}function $a(fi){Pa(fi,Rr)}function Mi(fi){Pa(fi,Za)}function $i(fi){var ni=dr(fi,"prev",Lr(Qt,"prev page"));return y.isValidElement(ni)?y.cloneElement(ni,{disabled:!ga}):ni}function Xa(fi){var ni=dr(fi,"next",Lr(ct,"next page"));return y.isValidElement(ni)?y.cloneElement(ni,{disabled:!Qa}):ni}function gi(fi){(fi.type==="click"||fi.keyCode===nt.Z.ENTER)&&Kr(Hn)}var Ii=null,Ri=(0,St.Z)(tt,{aria:!0,data:!0}),Bi=Cr&&y.createElement("li",{className:"".concat(un,"-total-text")},Cr(dn,[dn===0?0:(Mt-1)*Ft+1,Mt*Ft>dn?dn:Mt*Ft])),ei=null,Ar=xe(void 0,Ft,dn);if(Ut&&dn<=Ft)return null;var tr=[],yr={rootPrefixCls:un,onClick:Kr,onKeyPress:Pa,showTitle:jt,itemRender:dr,page:-1},Br=Mt-1>0?Mt-1:0,qn=Mt+1<Ar?Mt+1:Ar,Jr=Bn&&Bn.goButton,Yr=(0,Ne.Z)(cr)==="object"?cr.readOnly:!cr,Er=Jr,Dr=null;cr&&(Jr&&(typeof Jr=="boolean"?Er=y.createElement("button",{type:"button",onClick:gi,onKeyUp:gi},In.jump_to_confirm):Er=y.createElement("span",{onClick:gi,onKeyUp:gi},Jr),Er=y.createElement("li",{title:jt?"".concat(In.jump_to).concat(Mt,"/").concat(Ar):null,className:"".concat(un,"-simple-pager")},Er)),Dr=y.createElement("li",{title:jt?"".concat(Mt,"/").concat(Ar):null,className:"".concat(un,"-simple-pager")},Yr?Hn:y.createElement("input",{type:"text","aria-label":In.jump_to,value:Hn,disabled:Qn,onKeyDown:oa,onKeyUp:ra,onChange:ra,onBlur:Oa,size:3}),y.createElement("span",{className:"".concat(un,"-slash")},"/"),Ar));var $r=Zn?1:2;if(Ar<=3+$r*2){Ar||tr.push(y.createElement(st,(0,ge.Z)({},yr,{key:"noPager",page:1,className:"".concat(un,"-item-disabled")})));for(var qr=1;qr<=Ar;qr+=1)tr.push(y.createElement(st,(0,ge.Z)({},yr,{key:qr,page:qr,active:Mt===qr})))}else{var Aa=Zn?In.prev_3:In.prev_5,Wa=Zn?In.next_3:In.next_5,na=dr(wr,"jump-prev",Lr(hr,"prev page")),li=dr(Or,"jump-next",Lr(_t,"next page"));jn&&(Ii=na?y.createElement("li",{title:jt?Aa:null,key:"prev",onClick:Rr,tabIndex:0,onKeyDown:$a,className:ft()("".concat(un,"-jump-prev"),(0,Ge.Z)({},"".concat(un,"-jump-prev-custom-icon"),!!hr))},na):null,ei=li?y.createElement("li",{title:jt?Wa:null,key:"next",onClick:Za,tabIndex:0,onKeyDown:Mi,className:ft()("".concat(un,"-jump-next"),(0,Ge.Z)({},"".concat(un,"-jump-next-custom-icon"),!!_t))},li):null);var di=Math.max(1,Mt-$r),zi=Math.min(Mt+$r,Ar);Mt-1<=$r&&(zi=1+$r*2),Ar-Mt<=$r&&(di=Ar-$r*2);for(var Hi=di;Hi<=zi;Hi+=1)tr.push(y.createElement(st,(0,ge.Z)({},yr,{key:Hi,page:Hi,active:Mt===Hi})));if(Mt-1>=$r*2&&Mt!==3&&(tr[0]=y.cloneElement(tr[0],{className:ft()("".concat(un,"-item-after-jump-prev"),tr[0].props.className)}),tr.unshift(Ii)),Ar-Mt>=$r*2&&Mt!==Ar-2){var Ji=tr[tr.length-1];tr[tr.length-1]=y.cloneElement(Ji,{className:ft()("".concat(un,"-item-before-jump-next"),Ji.props.className)}),tr.push(ei)}di!==1&&tr.unshift(y.createElement(st,(0,ge.Z)({},yr,{key:1,page:1}))),zi!==Ar&&tr.push(y.createElement(st,(0,ge.Z)({},yr,{key:Ar,page:Ar})))}var Yi=$i(Br);if(Yi){var Eo=!ga||!Ar;Yi=y.createElement("li",{title:jt?In.prev_page:null,onClick:Da,tabIndex:Eo?null:0,onKeyDown:la,className:ft()("".concat(un,"-prev"),(0,Ge.Z)({},"".concat(un,"-disabled"),Eo)),"aria-disabled":Eo},Yi)}var Co=Xa(qn);if(Co){var zo,Go;cr?(zo=!Qa,Go=ga?0:null):(zo=!Qa||!Ar,Go=zo?null:0),Co=y.createElement("li",{title:jt?In.next_page:null,onClick:Ea,tabIndex:Go,onKeyDown:Xr,className:ft()("".concat(un,"-next"),(0,Ge.Z)({},"".concat(un,"-disabled"),zo)),"aria-disabled":zo},Co)}var Ta=ft()(un,Lt,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},"".concat(un,"-start"),Yt==="start"),"".concat(un,"-center"),Yt==="center"),"".concat(un,"-end"),Yt==="end"),"".concat(un,"-simple"),cr),"".concat(un,"-disabled"),Qn));return y.createElement("ul",(0,ge.Z)({className:Ta,style:pn,ref:Zt},Ri),Bi,Yi,cr?Dr:tr,Co,y.createElement(ut,{locale:In,rootPrefixCls:un,disabled:Qn,selectPrefixCls:yn,changeSize:ba,pageSize:Ft,pageSizeOptions:Pn,quickGo:Vr?Kr:null,goButton:Er,showSizeChanger:Hr,sizeChangerRender:Zr}))},Et=ce,Ye=E(61852),je=E(48755),it=E(31756),Pe=E(13783),ye=E(9017),vt=E(82326),zt=E(57700),Ct=E(36237),De=E(53075),mt=E(64910),dt=E(39082),Gt=E(63356),bt=E(51636),xt=E(16931);const pt=Je=>{const{componentCls:tt}=Je;return{[`${tt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed"}}},[`&${tt}-disabled`]:{cursor:"not-allowed",[`${tt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Je.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Je.colorBorder,backgroundColor:Je.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Je.itemActiveBgDisabled},a:{color:Je.itemActiveColorDisabled}}},[`${tt}-item-link`]:{color:Je.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${tt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${tt}-simple-pager`]:{color:Je.colorTextDisabled},[`${tt}-jump-prev, ${tt}-jump-next`]:{[`${tt}-item-link-icon`]:{opacity:0},[`${tt}-item-ellipsis`]:{opacity:1}}},[`&${tt}-simple`]:{[`${tt}-prev, ${tt}-next`]:{[`&${tt}-disabled ${tt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ln=Je=>{const{componentCls:tt}=Je;return{[`&${tt}-mini ${tt}-total-text, &${tt}-mini ${tt}-simple-pager`]:{height:Je.itemSizeSM,lineHeight:(0,Ct.unit)(Je.itemSizeSM)},[`&${tt}-mini ${tt}-item`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:(0,Ct.unit)(Je.calc(Je.itemSizeSM).sub(2).equal())},[`&${tt}-mini ${tt}-prev, &${tt}-mini ${tt}-next`]:{minWidth:Je.itemSizeSM,height:Je.itemSizeSM,margin:0,lineHeight:(0,Ct.unit)(Je.itemSizeSM)},[`&${tt}-mini:not(${tt}-disabled)`]:{[`${tt}-prev, ${tt}-next`]:{[`&:hover ${tt}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${tt}-disabled:hover ${tt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${tt}-mini ${tt}-prev ${tt}-item-link,
|
|
|
&${tt}-mini ${tt}-next ${tt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Je.itemSizeSM,lineHeight:(0,Ct.unit)(Je.itemSizeSM)}},[`&${tt}-mini ${tt}-jump-prev, &${tt}-mini ${tt}-jump-next`]:{height:Je.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Ct.unit)(Je.itemSizeSM)},[`&${tt}-mini ${tt}-options`]:{marginInlineStart:Je.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Je.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Je.itemSizeSM,lineHeight:(0,Ct.unit)(Je.itemSizeSM),input:Object.assign(Object.assign({},(0,De.x0)(Je)),{width:Je.paginationMiniQuickJumperInputWidth,height:Je.controlHeightSM})}}}},Wt=Je=>{const{componentCls:tt}=Je;return{[`
|
|
|
&${tt}-simple ${tt}-prev,
|
|
|
&${tt}-simple ${tt}-next
|
|
|
`]:{height:Je.itemSizeSM,lineHeight:(0,Ct.unit)(Je.itemSizeSM),verticalAlign:"top",[`${tt}-item-link`]:{height:Je.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive},"&::after":{height:Je.itemSizeSM,lineHeight:(0,Ct.unit)(Je.itemSizeSM)}}},[`&${tt}-simple ${tt}-simple-pager`]:{display:"inline-block",height:Je.itemSizeSM,marginInlineEnd:Je.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Ct.unit)(Je.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Je.itemInputBg,border:`${(0,Ct.unit)(Je.lineWidth)} ${Je.lineType} ${Je.colorBorder}`,borderRadius:Je.borderRadius,outline:"none",transition:`border-color ${Je.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Je.colorPrimary},"&:focus":{borderColor:Je.colorPrimaryHover,boxShadow:`${(0,Ct.unit)(Je.inputOutlineOffset)} 0 ${(0,Ct.unit)(Je.controlOutlineWidth)} ${Je.controlOutline}`},"&[disabled]":{color:Je.colorTextDisabled,backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,cursor:"not-allowed"}}}}},ue=Je=>{const{componentCls:tt}=Je;return{[`${tt}-jump-prev, ${tt}-jump-next`]:{outline:0,[`${tt}-item-container`]:{position:"relative",[`${tt}-item-link-icon`]:{color:Je.colorPrimary,fontSize:Je.fontSizeSM,opacity:0,transition:`all ${Je.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${tt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Je.colorTextDisabled,letterSpacing:Je.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Je.paginationEllipsisTextIndent,opacity:1,transition:`all ${Je.motionDurationMid}`}},"&:hover":{[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{marginInlineEnd:Je.marginXS},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-next,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,color:Je.colorText,fontFamily:Je.fontFamily,lineHeight:(0,Ct.unit)(Je.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Je.borderRadius,cursor:"pointer",transition:`all ${Je.motionDurationMid}`},[`${tt}-prev, ${tt}-next`]:{outline:0,button:{color:Je.colorText,cursor:"pointer",userSelect:"none"},[`${tt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Je.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Ct.unit)(Je.lineWidth)} ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:"none",transition:`all ${Je.motionDurationMid}`},[`&:hover ${tt}-item-link`]:{backgroundColor:Je.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Je.colorBgTextActive},[`&${tt}-disabled:hover`]:{[`${tt}-item-link`]:{backgroundColor:"transparent"}}},[`${tt}-slash`]:{marginInlineEnd:Je.paginationSlashMarginInlineEnd,marginInlineStart:Je.paginationSlashMarginInlineStart},[`${tt}-options`]:{display:"inline-block",marginInlineStart:Je.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Je.controlHeight,marginInlineStart:Je.marginXS,lineHeight:(0,Ct.unit)(Je.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,De.ik)(Je)),(0,dt.$U)(Je,{borderColor:Je.colorBorder,hoverBorderColor:Je.colorPrimaryHover,activeBorderColor:Je.colorPrimary,activeShadow:Je.activeShadow})),{"&[disabled]":Object.assign({},(0,dt.Xy)(Je)),width:Je.calc(Je.controlHeightLG).mul(1.25).equal(),height:Je.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Je.marginXS,marginInlineEnd:Je.marginXS})}}}},ae=Je=>{const{componentCls:tt}=Je;return{[`${tt}-item`]:{display:"inline-block",minWidth:Je.itemSize,height:Je.itemSize,marginInlineEnd:Je.marginXS,fontFamily:Je.fontFamily,lineHeight:(0,Ct.unit)(Je.calc(Je.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Je.itemBg,border:`${(0,Ct.unit)(Je.lineWidth)} ${Je.lineType} transparent`,borderRadius:Je.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Ct.unit)(Je.paginationItemPaddingInline)}`,color:Je.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${tt}-item-active)`]:{"&:hover":{transition:`all ${Je.motionDurationMid}`,backgroundColor:Je.colorBgTextHover},"&:active":{backgroundColor:Je.colorBgTextActive}},"&-active":{fontWeight:Je.fontWeightStrong,backgroundColor:Je.itemActiveBg,borderColor:Je.colorPrimary,a:{color:Je.colorPrimary},"&:hover":{borderColor:Je.colorPrimaryHover},"&:hover a":{color:Je.colorPrimaryHover}}}}},re=Je=>{const{componentCls:tt}=Je;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gt.Wf)(Je)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${tt}-total-text`]:{display:"inline-block",height:Je.itemSize,marginInlineEnd:Je.marginXS,lineHeight:(0,Ct.unit)(Je.calc(Je.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ae(Je)),ue(Je)),Wt(Je)),ln(Je)),pt(Je)),{[`@media only screen and (max-width: ${Je.screenLG}px)`]:{[`${tt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Je.screenSM}px)`]:{[`${tt}-options`]:{display:"none"}}}),[`&${Je.componentCls}-rtl`]:{direction:"rtl"}}},se=Je=>{const{componentCls:tt}=Je;return{[`${tt}:not(${tt}-disabled)`]:{[`${tt}-item`]:Object.assign({},(0,Gt.Qy)(Je)),[`${tt}-jump-prev, ${tt}-jump-next`]:{"&:focus-visible":Object.assign({[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}},(0,Gt.oN)(Je))},[`${tt}-prev, ${tt}-next`]:{[`&:focus-visible ${tt}-item-link`]:Object.assign({},(0,Gt.oN)(Je))}}}},ve=Je=>Object.assign({itemBg:Je.colorBgContainer,itemSize:Je.controlHeight,itemSizeSM:Je.controlHeightSM,itemActiveBg:Je.colorBgContainer,itemLinkBg:Je.colorBgContainer,itemActiveColorDisabled:Je.colorTextDisabled,itemActiveBgDisabled:Je.controlItemBgActiveDisabled,itemInputBg:Je.colorBgContainer,miniOptionsSizeChangerTop:0},(0,mt.T)(Je)),ie=Je=>(0,bt.mergeToken)(Je,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Je.calc(Je.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Je.calc(Je.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Je.calc(Je.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Je.calc(Je.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Je.marginSM,paginationSlashMarginInlineEnd:Je.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,mt.e)(Je));var fe=(0,xt.I$)("Pagination",Je=>{const tt=ie(Je);return[re(tt),se(tt)]},ve);const Ve=Je=>{const{componentCls:tt}=Je;return{[`${tt}${tt}-bordered${tt}-disabled:not(${tt}-mini)`]:{"&, &:hover":{[`${tt}-item-link`]:{borderColor:Je.colorBorder}},"&:focus-visible":{[`${tt}-item-link`]:{borderColor:Je.colorBorder}},[`${tt}-item, ${tt}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,[`&:hover:not(${tt}-item-active)`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,a:{color:Je.colorTextDisabled}},[`&${tt}-item-active`]:{backgroundColor:Je.itemActiveBgDisabled}},[`${tt}-prev, ${tt}-next`]:{"&:hover button":{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,color:Je.colorTextDisabled},[`${tt}-item-link`]:{backgroundColor:Je.colorBgContainerDisabled,borderColor:Je.colorBorder}}},[`${tt}${tt}-bordered:not(${tt}-mini)`]:{[`${tt}-prev, ${tt}-next`]:{"&:hover button":{borderColor:Je.colorPrimaryHover,backgroundColor:Je.itemBg},[`${tt}-item-link`]:{backgroundColor:Je.itemLinkBg,borderColor:Je.colorBorder},[`&:hover ${tt}-item-link`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,color:Je.colorPrimary},[`&${tt}-disabled`]:{[`${tt}-item-link`]:{borderColor:Je.colorBorder,color:Je.colorTextDisabled}}},[`${tt}-item`]:{backgroundColor:Je.itemBg,border:`${(0,Ct.unit)(Je.lineWidth)} ${Je.lineType} ${Je.colorBorder}`,[`&:hover:not(${tt}-item-active)`]:{borderColor:Je.colorPrimary,backgroundColor:Je.itemBg,a:{color:Je.colorPrimary}},"&-active":{borderColor:Je.colorPrimary}}}}};var It=(0,xt.bk)(["Pagination","bordered"],Je=>{const tt=ie(Je);return[Ve(tt)]},ve);function Qe(Je){return(0,y.useMemo)(()=>typeof Je=="boolean"?[Je,{}]:Je&&typeof Je=="object"?[!0,Je]:[void 0,void 0],[Je])}var Ke=function(Je,tt){var Ht={};for(var un in Je)Object.prototype.hasOwnProperty.call(Je,un)&&tt.indexOf(un)<0&&(Ht[un]=Je[un]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dn=0,un=Object.getOwnPropertySymbols(Je);Dn<un.length;Dn++)tt.indexOf(un[Dn])<0&&Object.prototype.propertyIsEnumerable.call(Je,un[Dn])&&(Ht[un[Dn]]=Je[un[Dn]]);return Ht},wt=Je=>{const{align:tt,prefixCls:Ht,selectPrefixCls:un,className:Dn,rootClassName:yn,style:Lt,size:cn,locale:Xt,responsive:Xe,showSizeChanger:Nt,selectComponentClass:dn,pageSizeOptions:xn}=Je,at=Ke(Je,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Rt}=(0,Pe.Z)(Xe),[,en]=(0,zt.ZP)(),{getPrefixCls:Pt,direction:Ut,showSizeChanger:Yt,className:bn,style:jn}=(0,je.dj)("pagination"),Bn=Pt("pagination",Ht),[Zn,Ot,jt]=fe(Bn),on=(0,it.Z)(cn),En=on==="small"||!!(Rt&&!on&&Xe),[tn]=(0,ye.Z)("Pagination",Ye.Z),In=Object.assign(Object.assign({},tn),Xt),[pn,On]=Qe(Nt),[fr,Qn]=Qe(Yt),cr=pn!=null?pn:fr,Cr=On!=null?On:Qn,gr=dn||vt.default,Hr=y.useMemo(()=>xn?xn.map(_t=>Number(_t)):void 0,[xn]),Zr=_t=>{var Qt;const{disabled:ct,size:Zt,onSizeChange:ot,"aria-label":Kt,className:Ft,options:ar}=_t,{className:mr,onChange:At}=Cr||{},Mt=(Qt=ar.find(kt=>String(kt.value)===String(Zt)))===null||Qt===void 0?void 0:Qt.value;return y.createElement(gr,Object.assign({disabled:ct,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:kt=>kt.parentNode,"aria-label":Kt,options:ar},Cr,{value:Mt,onChange:(kt,Vt)=>{ot==null||ot(kt),At==null||At(kt,Vt)},size:En?"small":"middle",className:ft()(Ft,mr)}))},Pn=y.useMemo(()=>{const _t=y.createElement("span",{className:`${Bn}-item-ellipsis`},"\u2022\u2022\u2022"),Qt=y.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?y.createElement(We.Z,null):y.createElement(de.Z,null)),ct=y.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},Ut==="rtl"?y.createElement(de.Z,null):y.createElement(We.Z,null)),Zt=y.createElement("a",{className:`${Bn}-item-link`},y.createElement("div",{className:`${Bn}-item-container`},Ut==="rtl"?y.createElement(Fe.Z,{className:`${Bn}-item-link-icon`}):y.createElement(ke,{className:`${Bn}-item-link-icon`}),_t)),ot=y.createElement("a",{className:`${Bn}-item-link`},y.createElement("div",{className:`${Bn}-item-container`},Ut==="rtl"?y.createElement(ke,{className:`${Bn}-item-link-icon`}):y.createElement(Fe.Z,{className:`${Bn}-item-link-icon`}),_t));return{prevIcon:Qt,nextIcon:ct,jumpPrevIcon:Zt,jumpNextIcon:ot}},[Ut,Bn]),$n=Pt("select",un),dr=ft()({[`${Bn}-${tt}`]:!!tt,[`${Bn}-mini`]:En,[`${Bn}-rtl`]:Ut==="rtl",[`${Bn}-bordered`]:en.wireframe},bn,Dn,yn,Ot,jt),hr=Object.assign(Object.assign({},jn),Lt);return Zn(y.createElement(y.Fragment,null,en.wireframe&&y.createElement(It,{prefixCls:Bn}),y.createElement(Et,Object.assign({},Pn,at,{style:hr,prefixCls:Bn,selectPrefixCls:$n,className:dr,locale:In,pageSizeOptions:Hr,showSizeChanger:cr,sizeChangerRender:Zr}))))},Tt=wt},93725:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return st}});var y=E(59301),ge=E(96512),me=E(92310),we=E.n(me),Se=E(18929),Ee=E(2738),Ce=E(48755),ke=E(37639),Fe=E(15565),de=E(54500),We=E(7939),Te=E(61670),ft=E(9017),Ge=E(85981),Ne=E(69106),Be=E(16931);const Oe=$e=>{const{componentCls:pe,iconCls:Le,antCls:xe,zIndexPopup:ce,colorText:Et,colorWarning:Ye,marginXXS:je,marginXS:it,fontSize:Pe,fontWeightStrong:ye,colorTextHeading:vt}=$e;return{[pe]:{zIndex:ce,[`&${xe}-popover`]:{fontSize:Pe},[`${pe}-message`]:{marginBottom:it,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${pe}-message-icon ${Le}`]:{color:Ye,fontSize:Pe,lineHeight:1,marginInlineEnd:it},[`${pe}-title`]:{fontWeight:ye,color:vt,"&:only-child":{fontWeight:"normal"}},[`${pe}-description`]:{marginTop:je,color:Et}},[`${pe}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:it}}}}},Ie=$e=>{const{zIndexPopupBase:pe}=$e;return{zIndexPopup:pe+60}};var nt=(0,Be.I$)("Popconfirm",$e=>Oe($e),Ie,{resetStyle:!1}),St=function($e,pe){var Le={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&pe.indexOf(xe)<0&&(Le[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols($e);ce<xe.length;ce++)pe.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[ce])&&(Le[xe[ce]]=$e[xe[ce]]);return Le};const Ae=$e=>{const{prefixCls:pe,okButtonProps:Le,cancelButtonProps:xe,title:ce,description:Et,cancelText:Ye,okText:je,okType:it="primary",icon:Pe=y.createElement(ge.Z,null),showCancel:ye=!0,close:vt,onConfirm:zt,onCancel:Ct,onPopupClick:De}=$e,{getPrefixCls:mt}=y.useContext(Ce.E_),[dt]=(0,ft.Z)("Popconfirm",Ge.Z.Popconfirm),Gt=(0,de.Z)(ce),bt=(0,de.Z)(Et);return y.createElement("div",{className:`${pe}-inner-content`,onClick:De},y.createElement("div",{className:`${pe}-message`},Pe&&y.createElement("span",{className:`${pe}-message-icon`},Pe),y.createElement("div",{className:`${pe}-message-text`},Gt&&y.createElement("div",{className:`${pe}-title`},Gt),bt&&y.createElement("div",{className:`${pe}-description`},bt))),y.createElement("div",{className:`${pe}-buttons`},ye&&y.createElement(We.ZP,Object.assign({onClick:Ct,size:"small"},xe),Ye||(dt==null?void 0:dt.cancelText)),y.createElement(Fe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Te.nx)(it)),Le),actionFn:zt,close:vt,prefixCls:mt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},je||(dt==null?void 0:dt.okText))))};var et=$e=>{const{prefixCls:pe,placement:Le,className:xe,style:ce}=$e,Et=St($e,["prefixCls","placement","className","style"]),{getPrefixCls:Ye}=y.useContext(Ce.E_),je=Ye("popconfirm",pe),[it]=nt(je);return it(y.createElement(Ne.ZP,{placement:Le,className:we()(je,xe),style:ce,content:y.createElement(Ae,Object.assign({prefixCls:je},Et))}))},qe=function($e,pe){var Le={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&pe.indexOf(xe)<0&&(Le[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols($e);ce<xe.length;ce++)pe.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[ce])&&(Le[xe[ce]]=$e[xe[ce]]);return Le};const yt=y.forwardRef(($e,pe)=>{var Le,xe;const{prefixCls:ce,placement:Et="top",trigger:Ye="click",okType:je="primary",icon:it=y.createElement(ge.Z,null),children:Pe,overlayClassName:ye,onOpenChange:vt,onVisibleChange:zt,overlayStyle:Ct,styles:De,classNames:mt}=$e,dt=qe($e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:Gt,className:bt,style:xt,classNames:pt,styles:ln}=(0,Ce.dj)("popconfirm"),[Wt,ue]=(0,Se.Z)(!1,{value:(Le=$e.open)!==null&&Le!==void 0?Le:$e.visible,defaultValue:(xe=$e.defaultOpen)!==null&&xe!==void 0?xe:$e.defaultVisible}),ae=(Ke,gt)=>{ue(Ke,!0),zt==null||zt(Ke),vt==null||vt(Ke,gt)},re=Ke=>{ae(!1,Ke)},se=Ke=>{var gt;return(gt=$e.onConfirm)===null||gt===void 0?void 0:gt.call(void 0,Ke)},ve=Ke=>{var gt;ae(!1,Ke),(gt=$e.onCancel)===null||gt===void 0||gt.call(void 0,Ke)},ie=(Ke,gt)=>{const{disabled:wt=!1}=$e;wt||ae(Ke,gt)},fe=Gt("popconfirm",ce),Ve=we()(fe,bt,ye,pt.root,mt==null?void 0:mt.root),It=we()(pt.body,mt==null?void 0:mt.body),[Qe]=nt(fe);return Qe(y.createElement(ke.Z,Object.assign({},(0,Ee.Z)(dt,["title"]),{trigger:Ye,placement:Et,onOpenChange:ie,open:Wt,ref:pe,classNames:{root:Ve,body:It},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ln.root),xt),Ct),De==null?void 0:De.root),body:Object.assign(Object.assign({},ln.body),De==null?void 0:De.body)},content:y.createElement(Ae,Object.assign({okType:je,icon:it},$e,{prefixCls:fe,close:re,onConfirm:se,onCancel:ve})),"data-popover-inject":!0}),Pe))});yt._InternalPanelDoNotUseOrYouWillBeFired=et;var st=yt},69106:function(Rn,qt,E){"use strict";E.d(qt,{aV:function(){return Fe},t5:function(){return de}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(29125),Se=E(54500),Ee=E(48755),Ce=E(85074),ke=function(Te,ft){var Ge={};for(var Ne in Te)Object.prototype.hasOwnProperty.call(Te,Ne)&&ft.indexOf(Ne)<0&&(Ge[Ne]=Te[Ne]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ne=Object.getOwnPropertySymbols(Te);Be<Ne.length;Be++)ft.indexOf(Ne[Be])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ne[Be])&&(Ge[Ne[Be]]=Te[Ne[Be]]);return Ge};const Fe=Te=>{let{title:ft,content:Ge,prefixCls:Ne}=Te;return!ft&&!Ge?null:y.createElement(y.Fragment,null,ft&&y.createElement("div",{className:`${Ne}-title`},ft),Ge&&y.createElement("div",{className:`${Ne}-inner-content`},Ge))},de=Te=>{const{hashId:ft,prefixCls:Ge,className:Ne,style:Be,placement:Oe="top",title:Ie,content:nt,children:St}=Te,Ae=(0,Se.Z)(Ie),_e=(0,Se.Z)(nt),et=me()(ft,Ge,`${Ge}-pure`,`${Ge}-placement-${Oe}`,Ne);return y.createElement("div",{className:et,style:Be},y.createElement("div",{className:`${Ge}-arrow`}),y.createElement(we.G,Object.assign({},Te,{className:ft,prefixCls:Ge}),St||y.createElement(Fe,{prefixCls:Ge,title:Ae,content:_e})))},We=Te=>{const{prefixCls:ft,className:Ge}=Te,Ne=ke(Te,["prefixCls","className"]),{getPrefixCls:Be}=y.useContext(Ee.E_),Oe=Be("popover",ft),[Ie,nt,St]=(0,Ce.Z)(Oe);return Ie(y.createElement(de,Object.assign({},Ne,{prefixCls:Oe,hashId:nt,className:me()(Ge,St)})))};qt.ZP=We},37639:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(92310),me=E.n(ge),we=E(18929),Se=E(10228),Ee=E(54500),Ce=E(86641),ke=E(22703),Fe=E(25399),de=E(69106),We=E(48755),Te=E(85074),ft=function(Be,Oe){var Ie={};for(var nt in Be)Object.prototype.hasOwnProperty.call(Be,nt)&&Oe.indexOf(nt)<0&&(Ie[nt]=Be[nt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,nt=Object.getOwnPropertySymbols(Be);St<nt.length;St++)Oe.indexOf(nt[St])<0&&Object.prototype.propertyIsEnumerable.call(Be,nt[St])&&(Ie[nt[St]]=Be[nt[St]]);return Ie};const Ne=y.forwardRef((Be,Oe)=>{var Ie,nt;const{prefixCls:St,title:Ae,content:_e,overlayClassName:et,placement:qe="top",trigger:ut="hover",children:yt,mouseEnterDelay:st=.1,mouseLeaveDelay:$e=.1,onOpenChange:pe,overlayStyle:Le={},styles:xe,classNames:ce}=Be,Et=ft(Be,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Ye,className:je,style:it,classNames:Pe,styles:ye}=(0,We.dj)("popover"),vt=Ye("popover",St),[zt,Ct,De]=(0,Te.Z)(vt),mt=Ye(),dt=me()(et,Ct,De,je,Pe.root,ce==null?void 0:ce.root),Gt=me()(Pe.body,ce==null?void 0:ce.body),[bt,xt]=(0,we.Z)(!1,{value:(Ie=Be.open)!==null&&Ie!==void 0?Ie:Be.visible,defaultValue:(nt=Be.defaultOpen)!==null&&nt!==void 0?nt:Be.defaultVisible}),pt=(re,se)=>{xt(re,!0),pe==null||pe(re,se)},ln=re=>{re.keyCode===Se.Z.ESC&&pt(!1,re)},Wt=re=>{pt(re)},ue=(0,Ee.Z)(Ae),ae=(0,Ee.Z)(_e);return zt(y.createElement(Fe.Z,Object.assign({placement:qe,trigger:ut,mouseEnterDelay:st,mouseLeaveDelay:$e},Et,{prefixCls:vt,classNames:{root:dt,body:Gt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),it),Le),xe==null?void 0:xe.root),body:Object.assign(Object.assign({},ye.body),xe==null?void 0:xe.body)},ref:Oe,open:bt,onOpenChange:Wt,overlay:ue||ae?y.createElement(de.aV,{prefixCls:vt,title:ue,content:ae}):null,transitionName:(0,Ce.m)(mt,"zoom-big",Et.transitionName),"data-popover-inject":!0}),(0,ke.Tm)(yt,{onKeyDown:re=>{var se,ve;y.isValidElement(yt)&&((ve=yt==null?void 0:(se=yt.props).onKeyDown)===null||ve===void 0||ve.call(se,re)),ln(re)}})))});Ne._InternalPanelDoNotUseOrYouWillBeFired=de.ZP,qt.Z=Ne},85074:function(Rn,qt,E){"use strict";var y=E(63356),ge=E(34925),me=E(37645),we=E(36305),Se=E(34998),Ee=E(16931),Ce=E(51636);const ke=We=>{const{componentCls:Te,popoverColor:ft,titleMinWidth:Ge,fontWeightStrong:Ne,innerPadding:Be,boxShadowSecondary:Oe,colorTextHeading:Ie,borderRadiusLG:nt,zIndexPopup:St,titleMarginBottom:Ae,colorBgElevated:_e,popoverBg:et,titleBorderBottom:qe,innerContentPadding:ut,titlePadding:yt}=We;return[{[Te]:Object.assign(Object.assign({},(0,y.Wf)(We)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:St,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":_e,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Te}-content`]:{position:"relative"},[`${Te}-inner`]:{backgroundColor:et,backgroundClip:"padding-box",borderRadius:nt,boxShadow:Oe,padding:Be},[`${Te}-title`]:{minWidth:Ge,marginBottom:Ae,color:Ie,fontWeight:Ne,borderBottom:qe,padding:yt},[`${Te}-inner-content`]:{color:ft,padding:ut}})},(0,me.ZP)(We,"var(--antd-arrow-background-color)"),{[`${Te}-pure`]:{position:"relative",maxWidth:"none",margin:We.sizePopupArrow,display:"inline-block",[`${Te}-content`]:{display:"inline-block"}}}]},Fe=We=>{const{componentCls:Te}=We;return{[Te]:Se.i.map(ft=>{const Ge=We[`${ft}6`];return{[`&${Te}-${ft}`]:{"--antd-arrow-background-color":Ge,[`${Te}-inner`]:{backgroundColor:Ge},[`${Te}-arrow`]:{background:"transparent"}}}})}},de=We=>{const{lineWidth:Te,controlHeight:ft,fontHeight:Ge,padding:Ne,wireframe:Be,zIndexPopupBase:Oe,borderRadiusLG:Ie,marginXS:nt,lineType:St,colorSplit:Ae,paddingSM:_e}=We,et=ft-Ge,qe=et/2,ut=et/2-Te,yt=Ne;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Oe+30},(0,we.w)(We)),(0,me.wZ)({contentRadius:Ie,limitVerticalRadius:!0})),{innerPadding:Be?0:12,titleMarginBottom:Be?0:nt,titlePadding:Be?`${qe}px ${yt}px ${ut}px`:0,titleBorderBottom:Be?`${Te}px ${St} ${Ae}`:"none",innerContentPadding:Be?`${_e}px ${yt}px`:0})};qt.Z=(0,Ee.I$)("Popover",We=>{const{colorBgElevated:Te,colorText:ft}=We,Ge=(0,Ce.mergeToken)(We,{popoverBg:Te,popoverColor:ft});return[ke(Ge),Fe(Ge),(0,ge._y)(Ge,"zoom-big")]},de,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Xt}});var y=E(59301),ge=E(17835),me=E(29679),we=E(40001),Se=E(19248),Ee=E(99267),Ce=E(92310),ke=E.n(Ce),Fe=E(2738),de=E(48755),We=E(60499),Te=E(85899),ft=E(42244),Ge={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ne=function(){var Nt=(0,y.useRef)([]),dn=(0,y.useRef)(null);return(0,y.useEffect)(function(){var xn=Date.now(),at=!1;Nt.current.forEach(function(Rt){if(Rt){at=!0;var en=Rt.style;en.transitionDuration=".3s, .3s, .3s, .06s",dn.current&&xn-dn.current<100&&(en.transitionDuration="0s, 0s")}}),at&&(dn.current=Date.now())}),Nt.current},Be=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Oe=function(Nt){var dn=(0,Te.Z)((0,Te.Z)({},Ge),Nt),xn=dn.className,at=dn.percent,Rt=dn.prefixCls,en=dn.strokeColor,Pt=dn.strokeLinecap,Ut=dn.strokeWidth,Yt=dn.style,bn=dn.trailColor,jn=dn.trailWidth,Bn=dn.transition,Zn=(0,ft.Z)(dn,Be);delete Zn.gapPosition;var Ot=Array.isArray(at)?at:[at],jt=Array.isArray(en)?en:[en],on=Ne(),En=Ut/2,tn=100-Ut/2,In="M ".concat(Pt==="round"?En:0,",").concat(En,`
|
|
|
L `).concat(Pt==="round"?tn:100,",").concat(En),pn="0 0 100 ".concat(Ut),On=0;return y.createElement("svg",(0,We.Z)({className:ke()("".concat(Rt,"-line"),xn),viewBox:pn,preserveAspectRatio:"none",style:Yt},Zn),y.createElement("path",{className:"".concat(Rt,"-line-trail"),d:In,strokeLinecap:Pt,stroke:bn,strokeWidth:jn||Ut,fillOpacity:"0"}),Ot.map(function(fr,Qn){var cr=1;switch(Pt){case"round":cr=1-Ut/100;break;case"square":cr=1-Ut/2/100;break;default:cr=1;break}var Cr={strokeDasharray:"".concat(fr*cr,"px, 100px"),strokeDashoffset:"-".concat(On,"px"),transition:Bn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},gr=jt[Qn]||jt[jt.length-1];return On+=fr,y.createElement("path",{key:Qn,className:"".concat(Rt,"-line-path"),d:In,strokeLinecap:Pt,stroke:gr,strokeWidth:Ut,fillOpacity:"0",ref:function(Zr){on[Qn]=Zr},style:Cr})}))},Ie=Oe,nt=E(43749),St=E(72190),Ae=E(47273),_e=0,et=(0,Ae.Z)();function qe(){var Xe;return et?(Xe=_e,_e+=1):Xe="TEST_OR_SSR",Xe}var ut=function(Xe){var Nt=y.useState(),dn=(0,St.Z)(Nt,2),xn=dn[0],at=dn[1];return y.useEffect(function(){at("rc_progress_".concat(qe()))},[]),Xe||xn},yt=function(Nt){var dn=Nt.bg,xn=Nt.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:dn}},xn)};function st(Xe,Nt){return Object.keys(Xe).map(function(dn){var xn=parseFloat(dn),at="".concat(Math.floor(xn*Nt),"%");return"".concat(Xe[dn]," ").concat(at)})}var $e=y.forwardRef(function(Xe,Nt){var dn=Xe.prefixCls,xn=Xe.color,at=Xe.gradientId,Rt=Xe.radius,en=Xe.style,Pt=Xe.ptg,Ut=Xe.strokeLinecap,Yt=Xe.strokeWidth,bn=Xe.size,jn=Xe.gapDegree,Bn=xn&&(0,nt.Z)(xn)==="object",Zn=Bn?"#FFF":void 0,Ot=bn/2,jt=y.createElement("circle",{className:"".concat(dn,"-circle-path"),r:Rt,cx:Ot,cy:Ot,stroke:Zn,strokeLinecap:Ut,strokeWidth:Yt,opacity:Pt===0?0:1,style:en,ref:Nt});if(!Bn)return jt;var on="".concat(at,"-conic"),En=jn?"".concat(180+jn/2,"deg"):"0deg",tn=st(xn,(360-jn)/360),In=st(xn,1),pn="conic-gradient(from ".concat(En,", ").concat(tn.join(", "),")"),On="linear-gradient(to ".concat(jn?"bottom":"top",", ").concat(In.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:on},jt),y.createElement("foreignObject",{x:0,y:0,width:bn,height:bn,mask:"url(#".concat(on,")")},y.createElement(yt,{bg:On},y.createElement(yt,{bg:pn}))))}),pe=$e,Le=100,xe=function(Nt,dn,xn,at,Rt,en,Pt,Ut,Yt,bn){var jn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Bn=xn/100*360*((360-en)/360),Zn=en===0?0:{bottom:0,top:180,left:90,right:-90}[Pt],Ot=(100-at)/100*dn;Yt==="round"&&at!==100&&(Ot+=bn/2,Ot>=dn&&(Ot=dn-.01));var jt=Le/2;return{stroke:typeof Ut=="string"?Ut:void 0,strokeDasharray:"".concat(dn,"px ").concat(Nt),strokeDashoffset:Ot+jn,transform:"rotate(".concat(Rt+Bn+Zn,"deg)"),transformOrigin:"".concat(jt,"px ").concat(jt,"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}},ce=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Et(Xe){var Nt=Xe!=null?Xe:[];return Array.isArray(Nt)?Nt:[Nt]}var Ye=function(Nt){var dn=(0,Te.Z)((0,Te.Z)({},Ge),Nt),xn=dn.id,at=dn.prefixCls,Rt=dn.steps,en=dn.strokeWidth,Pt=dn.trailWidth,Ut=dn.gapDegree,Yt=Ut===void 0?0:Ut,bn=dn.gapPosition,jn=dn.trailColor,Bn=dn.strokeLinecap,Zn=dn.style,Ot=dn.className,jt=dn.strokeColor,on=dn.percent,En=(0,ft.Z)(dn,ce),tn=Le/2,In=ut(xn),pn="".concat(In,"-gradient"),On=tn-en/2,fr=Math.PI*2*On,Qn=Yt>0?90+Yt/2:-90,cr=fr*((360-Yt)/360),Cr=(0,nt.Z)(Rt)==="object"?Rt:{count:Rt,gap:2},gr=Cr.count,Hr=Cr.gap,Zr=Et(on),Pn=Et(jt),$n=Pn.find(function(ot){return ot&&(0,nt.Z)(ot)==="object"}),dr=$n&&(0,nt.Z)($n)==="object",hr=dr?"butt":Bn,_t=xe(fr,cr,0,100,Qn,Yt,bn,jn,hr,en),Qt=Ne(),ct=function(){var Kt=0;return Zr.map(function(Ft,ar){var mr=Pn[ar]||Pn[Pn.length-1],At=xe(fr,cr,Kt,Ft,Qn,Yt,bn,mr,hr,en);return Kt+=Ft,y.createElement(pe,{key:ar,color:mr,ptg:Ft,radius:On,prefixCls:at,gradientId:pn,style:At,strokeLinecap:hr,strokeWidth:en,gapDegree:Yt,ref:function(kt){Qt[ar]=kt},size:Le})}).reverse()},Zt=function(){var Kt=Math.round(gr*(Zr[0]/100)),Ft=100/gr,ar=0;return new Array(gr).fill(null).map(function(mr,At){var Mt=At<=Kt-1?Pn[0]:jn,kt=Mt&&(0,nt.Z)(Mt)==="object"?"url(#".concat(pn,")"):void 0,Vt=xe(fr,cr,ar,Ft,Qn,Yt,bn,Mt,"butt",en,Hr);return ar+=(cr-Vt.strokeDashoffset+Hr)*100/cr,y.createElement("circle",{key:At,className:"".concat(at,"-circle-path"),r:On,cx:tn,cy:tn,stroke:kt,strokeWidth:en,opacity:1,style:Vt,ref:function(Hn){Qt[At]=Hn}})})};return y.createElement("svg",(0,We.Z)({className:ke()("".concat(at,"-circle"),Ot),viewBox:"0 0 ".concat(Le," ").concat(Le),style:Zn,id:xn,role:"presentation"},En),!gr&&y.createElement("circle",{className:"".concat(at,"-circle-trail"),r:On,cx:tn,cy:tn,stroke:jn,strokeLinecap:hr,strokeWidth:Pt||en,style:_t}),gr?Zt():ct())},je=Ye,it={Line:Ie,Circle:je},Pe=E(25399),ye=E(68361);function vt(Xe){return!Xe||Xe<0?0:Xe>100?100:Xe}function zt(Xe){let{success:Nt,successPercent:dn}=Xe,xn=dn;return Nt&&"progress"in Nt&&(xn=Nt.progress),Nt&&"percent"in Nt&&(xn=Nt.percent),xn}const Ct=Xe=>{let{percent:Nt,success:dn,successPercent:xn}=Xe;const at=vt(zt({success:dn,successPercent:xn}));return[at,vt(vt(Nt)-at)]},De=Xe=>{let{success:Nt={},strokeColor:dn}=Xe;const{strokeColor:xn}=Nt;return[xn||ye.presetPrimaryColors.green,dn||null]},mt=(Xe,Nt,dn)=>{var xn,at,Rt,en;let Pt=-1,Ut=-1;if(Nt==="step"){const Yt=dn.steps,bn=dn.strokeWidth;typeof Xe=="string"||typeof Xe=="undefined"?(Pt=Xe==="small"?2:14,Ut=bn!=null?bn:8):typeof Xe=="number"?[Pt,Ut]=[Xe,Xe]:[Pt=14,Ut=8]=Array.isArray(Xe)?Xe:[Xe.width,Xe.height],Pt*=Yt}else if(Nt==="line"){const Yt=dn==null?void 0:dn.strokeWidth;typeof Xe=="string"||typeof Xe=="undefined"?Ut=Yt||(Xe==="small"?6:8):typeof Xe=="number"?[Pt,Ut]=[Xe,Xe]:[Pt=-1,Ut=8]=Array.isArray(Xe)?Xe:[Xe.width,Xe.height]}else(Nt==="circle"||Nt==="dashboard")&&(typeof Xe=="string"||typeof Xe=="undefined"?[Pt,Ut]=Xe==="small"?[60,60]:[120,120]:typeof Xe=="number"?[Pt,Ut]=[Xe,Xe]:Array.isArray(Xe)&&(Pt=(at=(xn=Xe[0])!==null&&xn!==void 0?xn:Xe[1])!==null&&at!==void 0?at:120,Ut=(en=(Rt=Xe[0])!==null&&Rt!==void 0?Rt:Xe[1])!==null&&en!==void 0?en:120));return[Pt,Ut]},dt=3,Gt=Xe=>dt/Xe*100;var xt=Xe=>{const{prefixCls:Nt,trailColor:dn=null,strokeLinecap:xn="round",gapPosition:at,gapDegree:Rt,width:en=120,type:Pt,children:Ut,success:Yt,size:bn=en,steps:jn}=Xe,[Bn,Zn]=mt(bn,"circle");let{strokeWidth:Ot}=Xe;Ot===void 0&&(Ot=Math.max(Gt(Bn),6));const jt={width:Bn,height:Zn,fontSize:Bn*.15+6},on=y.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Pt==="dashboard")return 75},[Rt,Pt]),En=Ct(Xe),tn=at||Pt==="dashboard"&&"bottom"||void 0,In=Object.prototype.toString.call(Xe.strokeColor)==="[object Object]",pn=De({success:Yt,strokeColor:Xe.strokeColor}),On=ke()(`${Nt}-inner`,{[`${Nt}-circle-gradient`]:In}),fr=y.createElement(je,{steps:jn,percent:jn?En[1]:En,strokeWidth:Ot,trailWidth:Ot,strokeColor:jn?pn[1]:pn,strokeLinecap:xn,trailColor:dn,prefixCls:Nt,gapDegree:on,gapPosition:tn}),Qn=Bn<=20,cr=y.createElement("div",{className:On,style:jt},fr,!Qn&&Ut);return Qn?y.createElement(Pe.Z,{title:Ut},cr):cr},pt=E(36237),ln=E(63356),Wt=E(16931),ue=E(51636);const ae="--progress-line-stroke-color",re="--progress-percent",se=Xe=>{const Nt=Xe?"100%":"-100%";return new pt.Keyframes(`antProgress${Xe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Nt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Nt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ve=Xe=>{const{componentCls:Nt,iconCls:dn}=Xe;return{[Nt]:Object.assign(Object.assign({},(0,ln.Wf)(Xe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Xe.fontSize},[`${Nt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Nt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Xe.remainingColor,borderRadius:Xe.lineBorderRadius},[`${Nt}-inner:not(${Nt}-circle-gradient)`]:{[`${Nt}-circle-path`]:{stroke:Xe.defaultColor}},[`${Nt}-success-bg, ${Nt}-bg`]:{position:"relative",background:Xe.defaultColor,borderRadius:Xe.lineBorderRadius,transition:`all ${Xe.motionDurationSlow} ${Xe.motionEaseInOutCirc}`},[`${Nt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Nt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Xe.marginXXS}},[`${Nt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ae})`]},height:"100%",width:`calc(1 / var(${re}) * 100%)`,display:"block"},[`&${Nt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Nt}-text-inner`]:{color:Xe.colorWhite,[`&${Nt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Nt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Xe.colorSuccess},[`${Nt}-text`]:{display:"inline-block",marginInlineStart:Xe.marginXS,color:Xe.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[dn]:{fontSize:Xe.fontSize},[`&${Nt}-text-outer`]:{width:"max-content"},[`&${Nt}-text-outer${Nt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Xe.marginXS}},[`${Nt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,pt.unit)(Xe.paddingXXS)}`,[`&${Nt}-text-start`]:{justifyContent:"start"},[`&${Nt}-text-end`]:{justifyContent:"end"}},[`&${Nt}-status-active`]:{[`${Nt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Xe.colorBgContainer,borderRadius:Xe.lineBorderRadius,opacity:0,animationName:se(),animationDuration:Xe.progressActiveMotionDuration,animationTimingFunction:Xe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Nt}-rtl${Nt}-status-active`]:{[`${Nt}-bg::before`]:{animationName:se(!0)}},[`&${Nt}-status-exception`]:{[`${Nt}-bg`]:{backgroundColor:Xe.colorError},[`${Nt}-text`]:{color:Xe.colorError}},[`&${Nt}-status-exception ${Nt}-inner:not(${Nt}-circle-gradient)`]:{[`${Nt}-circle-path`]:{stroke:Xe.colorError}},[`&${Nt}-status-success`]:{[`${Nt}-bg`]:{backgroundColor:Xe.colorSuccess},[`${Nt}-text`]:{color:Xe.colorSuccess}},[`&${Nt}-status-success ${Nt}-inner:not(${Nt}-circle-gradient)`]:{[`${Nt}-circle-path`]:{stroke:Xe.colorSuccess}}})}},ie=Xe=>{const{componentCls:Nt,iconCls:dn}=Xe;return{[Nt]:{[`${Nt}-circle-trail`]:{stroke:Xe.remainingColor},[`&${Nt}-circle ${Nt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Nt}-circle ${Nt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Xe.circleTextColor,fontSize:Xe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[dn]:{fontSize:Xe.circleIconFontSize}},[`${Nt}-circle&-status-exception`]:{[`${Nt}-text`]:{color:Xe.colorError}},[`${Nt}-circle&-status-success`]:{[`${Nt}-text`]:{color:Xe.colorSuccess}}},[`${Nt}-inline-circle`]:{lineHeight:1,[`${Nt}-inner`]:{verticalAlign:"bottom"}}}},fe=Xe=>{const{componentCls:Nt}=Xe;return{[Nt]:{[`${Nt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Xe.progressStepMinWidth,marginInlineEnd:Xe.progressStepMarginInlineEnd,backgroundColor:Xe.remainingColor,transition:`all ${Xe.motionDurationSlow}`,"&-active":{backgroundColor:Xe.defaultColor}}}}}},Ve=Xe=>{const{componentCls:Nt,iconCls:dn}=Xe;return{[Nt]:{[`${Nt}-small&-line, ${Nt}-small&-line ${Nt}-text ${dn}`]:{fontSize:Xe.fontSizeSM}}}},It=Xe=>({circleTextColor:Xe.colorText,defaultColor:Xe.colorInfo,remainingColor:Xe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Xe.fontSize/Xe.fontSizeSM}em`});var Qe=(0,Wt.I$)("Progress",Xe=>{const Nt=Xe.calc(Xe.marginXXS).div(2).equal(),dn=(0,ue.mergeToken)(Xe,{progressStepMarginInlineEnd:Nt,progressStepMinWidth:Nt,progressActiveMotionDuration:"2.4s"});return[ve(dn),ie(dn),fe(dn),Ve(dn)]},It),Ke=function(Xe,Nt){var dn={};for(var xn in Xe)Object.prototype.hasOwnProperty.call(Xe,xn)&&Nt.indexOf(xn)<0&&(dn[xn]=Xe[xn]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,xn=Object.getOwnPropertySymbols(Xe);at<xn.length;at++)Nt.indexOf(xn[at])<0&&Object.prototype.propertyIsEnumerable.call(Xe,xn[at])&&(dn[xn[at]]=Xe[xn[at]]);return dn};const gt=Xe=>{let Nt=[];return Object.keys(Xe).forEach(dn=>{const xn=parseFloat(dn.replace(/%/g,""));Number.isNaN(xn)||Nt.push({key:xn,value:Xe[dn]})}),Nt=Nt.sort((dn,xn)=>dn.key-xn.key),Nt.map(dn=>{let{key:xn,value:at}=dn;return`${at} ${xn}%`}).join(", ")},wt=(Xe,Nt)=>{const{from:dn=ye.presetPrimaryColors.blue,to:xn=ye.presetPrimaryColors.blue,direction:at=Nt==="rtl"?"to left":"to right"}=Xe,Rt=Ke(Xe,["from","to","direction"]);if(Object.keys(Rt).length!==0){const Pt=gt(Rt),Ut=`linear-gradient(${at}, ${Pt})`;return{background:Ut,[ae]:Ut}}const en=`linear-gradient(${at}, ${dn}, ${xn})`;return{background:en,[ae]:en}};var Je=Xe=>{const{prefixCls:Nt,direction:dn,percent:xn,size:at,strokeWidth:Rt,strokeColor:en,strokeLinecap:Pt="round",children:Ut,trailColor:Yt=null,percentPosition:bn,success:jn}=Xe,{align:Bn,type:Zn}=bn,Ot=en&&typeof en!="string"?wt(en,dn):{[ae]:en,background:en},jt=Pt==="square"||Pt==="butt"?0:void 0,on=at!=null?at:[-1,Rt||(at==="small"?6:8)],[En,tn]=mt(on,"line",{strokeWidth:Rt}),In={backgroundColor:Yt||void 0,borderRadius:jt},pn=Object.assign(Object.assign({width:`${vt(xn)}%`,height:tn,borderRadius:jt},Ot),{[re]:vt(xn)/100}),On=zt(Xe),fr={width:`${vt(On)}%`,height:tn,borderRadius:jt,backgroundColor:jn==null?void 0:jn.strokeColor},Qn={width:En<0?"100%":En},cr=y.createElement("div",{className:`${Nt}-inner`,style:In},y.createElement("div",{className:ke()(`${Nt}-bg`,`${Nt}-bg-${Zn}`),style:pn},Zn==="inner"&&Ut),On!==void 0&&y.createElement("div",{className:`${Nt}-success-bg`,style:fr})),Cr=Zn==="outer"&&Bn==="start",gr=Zn==="outer"&&Bn==="end";return Zn==="outer"&&Bn==="center"?y.createElement("div",{className:`${Nt}-layout-bottom`},cr,Ut):y.createElement("div",{className:`${Nt}-outer`,style:Qn},Cr&&Ut,cr,gr&&Ut)},Ht=Xe=>{const{size:Nt,steps:dn,rounding:xn=Math.round,percent:at=0,strokeWidth:Rt=8,strokeColor:en,trailColor:Pt=null,prefixCls:Ut,children:Yt}=Xe,bn=xn(dn*(at/100)),jn=Nt==="small"?2:14,Bn=Nt!=null?Nt:[jn,Rt],[Zn,Ot]=mt(Bn,"step",{steps:dn,strokeWidth:Rt}),jt=Zn/dn,on=Array.from({length:dn});for(let En=0;En<dn;En++){const tn=Array.isArray(en)?en[En]:en;on[En]=y.createElement("div",{key:En,className:ke()(`${Ut}-steps-item`,{[`${Ut}-steps-item-active`]:En<=bn-1}),style:{backgroundColor:En<=bn-1?tn:Pt,width:jt,height:Ot}})}return y.createElement("div",{className:`${Ut}-steps-outer`},on,Yt)},un=function(Xe,Nt){var dn={};for(var xn in Xe)Object.prototype.hasOwnProperty.call(Xe,xn)&&Nt.indexOf(xn)<0&&(dn[xn]=Xe[xn]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,xn=Object.getOwnPropertySymbols(Xe);at<xn.length;at++)Nt.indexOf(xn[at])<0&&Object.prototype.propertyIsEnumerable.call(Xe,xn[at])&&(dn[xn[at]]=Xe[xn[at]]);return dn};const Dn=null,yn=["normal","exception","active","success"];var cn=y.forwardRef((Xe,Nt)=>{const{prefixCls:dn,className:xn,rootClassName:at,steps:Rt,strokeColor:en,percent:Pt=0,size:Ut="default",showInfo:Yt=!0,type:bn="line",status:jn,format:Bn,style:Zn,percentPosition:Ot={}}=Xe,jt=un(Xe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:on="end",type:En="outer"}=Ot,tn=Array.isArray(en)?en[0]:en,In=typeof en=="string"||Array.isArray(en)?en:void 0,pn=y.useMemo(()=>{if(tn){const ct=typeof tn=="string"?tn:Object.values(tn)[0];return new ge.FastColor(ct).isLight()}return!1},[en]),On=y.useMemo(()=>{var ct,Zt;const ot=zt(Xe);return parseInt(ot!==void 0?(ct=ot!=null?ot:0)===null||ct===void 0?void 0:ct.toString():(Zt=Pt!=null?Pt:0)===null||Zt===void 0?void 0:Zt.toString(),10)},[Pt,Xe.success,Xe.successPercent]),fr=y.useMemo(()=>!yn.includes(jn)&&On>=100?"success":jn||"normal",[jn,On]),{getPrefixCls:Qn,direction:cr,progress:Cr}=y.useContext(de.E_),gr=Qn("progress",dn),[Hr,Zr,Pn]=Qe(gr),$n=bn==="line",dr=$n&&!Rt,hr=y.useMemo(()=>{if(!Yt)return null;const ct=zt(Xe);let Zt;const ot=Bn||(Ft=>`${Ft}%`),Kt=$n&&pn&&En==="inner";return En==="inner"||Bn||fr!=="exception"&&fr!=="success"?Zt=ot(vt(Pt),vt(ct)):fr==="exception"?Zt=$n?y.createElement(Se.Z,null):y.createElement(Ee.Z,null):fr==="success"&&(Zt=$n?y.createElement(me.Z,null):y.createElement(we.Z,null)),y.createElement("span",{className:ke()(`${gr}-text`,{[`${gr}-text-bright`]:Kt,[`${gr}-text-${on}`]:dr,[`${gr}-text-${En}`]:dr}),title:typeof Zt=="string"?Zt:void 0},Zt)},[Yt,Pt,On,fr,bn,gr,Bn]);let _t;bn==="line"?_t=Rt?y.createElement(Ht,Object.assign({},Xe,{strokeColor:In,prefixCls:gr,steps:typeof Rt=="object"?Rt.count:Rt}),hr):y.createElement(Je,Object.assign({},Xe,{strokeColor:tn,prefixCls:gr,direction:cr,percentPosition:{align:on,type:En}}),hr):(bn==="circle"||bn==="dashboard")&&(_t=y.createElement(xt,Object.assign({},Xe,{strokeColor:tn,prefixCls:gr,progressStatus:fr}),hr));const Qt=ke()(gr,`${gr}-status-${fr}`,{[`${gr}-${bn==="dashboard"&&"circle"||bn}`]:bn!=="line",[`${gr}-inline-circle`]:bn==="circle"&&mt(Ut,"circle")[0]<=20,[`${gr}-line`]:dr,[`${gr}-line-align-${on}`]:dr,[`${gr}-line-position-${En}`]:dr,[`${gr}-steps`]:Rt,[`${gr}-show-info`]:Yt,[`${gr}-${Ut}`]:typeof Ut=="string",[`${gr}-rtl`]:cr==="rtl"},Cr==null?void 0:Cr.className,xn,at,Zr,Pn);return Hr(y.createElement("div",Object.assign({ref:Nt,style:Object.assign(Object.assign({},Cr==null?void 0:Cr.style),Zn),className:Qt,role:"progressbar","aria-valuenow":On,"aria-valuemin":0,"aria-valuemax":100},(0,Fe.Z)(jt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_t))}),Xt=cn},63139:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ct}});var y=E(59301),ge=E(60499),me={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"},we=me,Se=E(7657),Ee=function(mt,dt){return y.createElement(Se.Z,(0,ge.Z)({},mt,{ref:dt,icon:we}))},Ce=y.forwardRef(Ee),ke=Ce,Fe=E(92310),de=E.n(Fe),We=E(18642),Te=E(72190),ft=E(42244),Ge=E(18929),Ne=E(10228),Be=E(26112);function Oe(De,mt){var dt=De.disabled,Gt=De.prefixCls,bt=De.character,xt=De.characterRender,pt=De.index,ln=De.count,Wt=De.value,ue=De.allowHalf,ae=De.focused,re=De.onHover,se=De.onClick,ve=function(wt){re(wt,pt)},ie=function(wt){se(wt,pt)},fe=function(wt){wt.keyCode===Ne.Z.ENTER&&se(wt,pt)},Ve=pt+1,It=new Set([Gt]);Wt===0&&pt===0&&ae?It.add("".concat(Gt,"-focused")):ue&&Wt+.5>=Ve&&Wt<Ve?(It.add("".concat(Gt,"-half")),It.add("".concat(Gt,"-active")),ae&&It.add("".concat(Gt,"-focused"))):(Ve<=Wt?It.add("".concat(Gt,"-full")):It.add("".concat(Gt,"-zero")),Ve===Wt&&ae&&It.add("".concat(Gt,"-focused")));var Qe=typeof bt=="function"?bt(De):bt,Ke=y.createElement("li",{className:de()(Array.from(It)),ref:mt},y.createElement("div",{onClick:dt?null:ie,onKeyDown:dt?null:fe,onMouseMove:dt?null:ve,role:"radio","aria-checked":Wt>pt?"true":"false","aria-posinset":pt+1,"aria-setsize":ln,tabIndex:dt?-1:0},y.createElement("div",{className:"".concat(Gt,"-first")},Qe),y.createElement("div",{className:"".concat(Gt,"-second")},Qe)));return xt&&(Ke=xt(Ke,De)),Ke}var Ie=y.forwardRef(Oe);function nt(){var De=y.useRef({});function mt(Gt){return De.current[Gt]}function dt(Gt){return function(bt){De.current[Gt]=bt}}return[mt,dt]}function St(De){var mt=De.pageXOffset,dt="scrollLeft";if(typeof mt!="number"){var Gt=De.document;mt=Gt.documentElement[dt],typeof mt!="number"&&(mt=Gt.body[dt])}return mt}function Ae(De){var mt,dt,Gt=De.ownerDocument,bt=Gt.body,xt=Gt&&Gt.documentElement,pt=De.getBoundingClientRect();return mt=pt.left,dt=pt.top,mt-=xt.clientLeft||bt.clientLeft||0,dt-=xt.clientTop||bt.clientTop||0,{left:mt,top:dt}}function _e(De){var mt=Ae(De),dt=De.ownerDocument,Gt=dt.defaultView||dt.parentWindow;return mt.left+=St(Gt),mt.left}var et=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function qe(De,mt){var dt=De.prefixCls,Gt=dt===void 0?"rc-rate":dt,bt=De.className,xt=De.defaultValue,pt=De.value,ln=De.count,Wt=ln===void 0?5:ln,ue=De.allowHalf,ae=ue===void 0?!1:ue,re=De.allowClear,se=re===void 0?!0:re,ve=De.keyboard,ie=ve===void 0?!0:ve,fe=De.character,Ve=fe===void 0?"\u2605":fe,It=De.characterRender,Qe=De.disabled,Ke=De.direction,gt=Ke===void 0?"ltr":Ke,wt=De.tabIndex,Tt=wt===void 0?0:wt,Je=De.autoFocus,tt=De.onHoverChange,Ht=De.onChange,un=De.onFocus,Dn=De.onBlur,yn=De.onKeyDown,Lt=De.onMouseLeave,cn=(0,ft.Z)(De,et),Xt=nt(),Xe=(0,Te.Z)(Xt,2),Nt=Xe[0],dn=Xe[1],xn=y.useRef(null),at=function(){if(!Qe){var hr;(hr=xn.current)===null||hr===void 0||hr.focus()}};y.useImperativeHandle(mt,function(){return{focus:at,blur:function(){if(!Qe){var hr;(hr=xn.current)===null||hr===void 0||hr.blur()}}}});var Rt=(0,Ge.Z)(xt||0,{value:pt}),en=(0,Te.Z)(Rt,2),Pt=en[0],Ut=en[1],Yt=(0,Ge.Z)(null),bn=(0,Te.Z)(Yt,2),jn=bn[0],Bn=bn[1],Zn=function(hr,_t){var Qt=gt==="rtl",ct=hr+1;if(ae){var Zt=Nt(hr),ot=_e(Zt),Kt=Zt.clientWidth;(Qt&&_t-ot>Kt/2||!Qt&&_t-ot<Kt/2)&&(ct-=.5)}return ct},Ot=function(hr){Ut(hr),Ht==null||Ht(hr)},jt=y.useState(!1),on=(0,Te.Z)(jt,2),En=on[0],tn=on[1],In=function(){tn(!0),un==null||un()},pn=function(){tn(!1),Dn==null||Dn()},On=y.useState(null),fr=(0,Te.Z)(On,2),Qn=fr[0],cr=fr[1],Cr=function(hr,_t){var Qt=Zn(_t,hr.pageX);Qt!==jn&&(cr(Qt),Bn(null)),tt==null||tt(Qt)},gr=function(hr){Qe||(cr(null),Bn(null),tt==null||tt(void 0)),hr&&(Lt==null||Lt(hr))},Hr=function(hr,_t){var Qt=Zn(_t,hr.pageX),ct=!1;se&&(ct=Qt===Pt),gr(),Ot(ct?0:Qt),Bn(ct?Qt:null)},Zr=function(hr){var _t=hr.keyCode,Qt=gt==="rtl",ct=ae?.5:1;ie&&(_t===Ne.Z.RIGHT&&Pt<Wt&&!Qt?(Ot(Pt+ct),hr.preventDefault()):_t===Ne.Z.LEFT&&Pt>0&&!Qt||_t===Ne.Z.RIGHT&&Pt>0&&Qt?(Ot(Pt-ct),hr.preventDefault()):_t===Ne.Z.LEFT&&Pt<Wt&&Qt&&(Ot(Pt+ct),hr.preventDefault())),yn==null||yn(hr)};y.useEffect(function(){Je&&!Qe&&at()},[]);var Pn=new Array(Wt).fill(0).map(function(dr,hr){return y.createElement(Ie,{ref:dn(hr),index:hr,count:Wt,disabled:Qe,prefixCls:"".concat(Gt,"-star"),allowHalf:ae,value:Qn===null?Pt:Qn,onClick:Hr,onHover:Cr,key:dr||hr,character:Ve,characterRender:It,focused:En})}),$n=de()(Gt,bt,(0,We.Z)((0,We.Z)({},"".concat(Gt,"-disabled"),Qe),"".concat(Gt,"-rtl"),gt==="rtl"));return y.createElement("ul",(0,ge.Z)({className:$n,onMouseLeave:gr,tabIndex:Qe?-1:Tt,onFocus:Qe?null:In,onBlur:Qe?null:pn,onKeyDown:Qe?null:Zr,ref:xn},(0,Be.Z)(cn,{aria:!0,data:!0,attr:!0})),Pn)}var ut=y.forwardRef(qe),yt=ut,st=E(48755),$e=E(25399),pe=E(36237),Le=E(63356),xe=E(16931),ce=E(51636);const Et=De=>{const{componentCls:mt}=De;return{[`${mt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:De.marginXS},"> div":{transition:`all ${De.motionDurationMid}, outline 0s`,"&:hover":{transform:De.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,pe.unit)(De.lineWidth)} dashed ${De.starColor}`,transform:De.starHoverScale}},"&-first, &-second":{color:De.starBg,transition:`all ${De.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${mt}-star-first, &-half ${mt}-star-second`]:{opacity:1},[`&-half ${mt}-star-first, &-full ${mt}-star-second`]:{color:"inherit"}}}},Ye=De=>({[`&-rtl${De.componentCls}`]:{direction:"rtl"}}),je=De=>{const{componentCls:mt}=De;return{[mt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(De)),{display:"inline-block",margin:0,padding:0,color:De.starColor,fontSize:De.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${mt} ${mt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Et(De)),Ye(De))}},it=De=>({starColor:De.yellow6,starSize:De.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:De.colorFillContent});var Pe=(0,xe.I$)("Rate",De=>{const mt=(0,ce.mergeToken)(De,{});return[je(mt)]},it),ye=E(2171),vt=function(De,mt){var dt={};for(var Gt in De)Object.prototype.hasOwnProperty.call(De,Gt)&&mt.indexOf(Gt)<0&&(dt[Gt]=De[Gt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Gt=Object.getOwnPropertySymbols(De);bt<Gt.length;bt++)mt.indexOf(Gt[bt])<0&&Object.prototype.propertyIsEnumerable.call(De,Gt[bt])&&(dt[Gt[bt]]=De[Gt[bt]]);return dt},Ct=y.forwardRef((De,mt)=>{const{prefixCls:dt,className:Gt,rootClassName:bt,style:xt,tooltips:pt,character:ln=y.createElement(ke,null),disabled:Wt}=De,ue=vt(De,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ae=(wt,Tt)=>{let{index:Je}=Tt;return pt?y.createElement($e.Z,{title:pt[Je]},wt):wt},{getPrefixCls:re,direction:se,rate:ve}=y.useContext(st.E_),ie=re("rate",dt),[fe,Ve,It]=Pe(ie),Qe=Object.assign(Object.assign({},ve==null?void 0:ve.style),xt),Ke=y.useContext(ye.Z),gt=Wt!=null?Wt:Ke;return fe(y.createElement(yt,Object.assign({ref:mt,character:ln,characterRender:ae,disabled:gt},ue,{className:de()(Gt,bt,Ve,It,ve==null?void 0:ve.className),style:Qe,prefixCls:ie,direction:se})))})},82326:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(92310),me=E.n(ge),we=E(37463),Se=E(2738),Ee=E(75030),Ce=E(86641),ke=E(45915),Fe=E(82855),de=E(48755),We=E(38406),Te=E(2171),ft=E(83397),Ge=E(31756),Ne=E(56553),Be=E(24971),Oe=E(70045),Ie=E(57700),nt=E(1722),St=E(90376),Ae=E(68525),_e=E(90005),et=function($e,pe){var Le={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&pe.indexOf(xe)<0&&(Le[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols($e);ce<xe.length;ce++)pe.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[ce])&&(Le[xe[ce]]=$e[xe[ce]]);return Le};const qe="SECRET_COMBOBOX_MODE_DO_NOT_USE",ut=($e,pe)=>{var Le;const{prefixCls:xe,bordered:ce,className:Et,rootClassName:Ye,getPopupContainer:je,popupClassName:it,dropdownClassName:Pe,listHeight:ye=256,placement:vt,listItemHeight:zt,size:Ct,disabled:De,notFoundContent:mt,status:dt,builtinPlacements:Gt,dropdownMatchSelectWidth:bt,popupMatchSelectWidth:xt,direction:pt,style:ln,allowClear:Wt,variant:ue,dropdownStyle:ae,transitionName:re,tagRender:se,maxCount:ve,prefix:ie}=$e,fe=et($e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Ve,getPrefixCls:It,renderEmpty:Qe,direction:Ke,virtual:gt,popupMatchSelectWidth:wt,popupOverflow:Tt}=y.useContext(de.E_),Je=(0,de.dj)("select"),[,tt]=(0,Ie.ZP)(),Ht=zt!=null?zt:tt==null?void 0:tt.controlHeight,un=It("select",xe),Dn=It(),yn=pt!=null?pt:Ke,{compactSize:Lt,compactItemClassnames:cn}=(0,Oe.ri)(un,yn),[Xt,Xe]=(0,Be.Z)("select",ue,ce),Nt=(0,ft.Z)(un),[dn,xn,at]=(0,St.Z)(un,Nt),Rt=y.useMemo(()=>{const{mode:Zr}=$e;if(Zr!=="combobox")return Zr===qe?"combobox":Zr},[$e.mode]),en=Rt==="multiple"||Rt==="tags",Pt=(0,_e.Z)($e.suffixIcon,$e.showArrow),Ut=(Le=xt!=null?xt:bt)!==null&&Le!==void 0?Le:wt,{status:Yt,hasFeedback:bn,isFormItemInput:jn,feedbackIcon:Bn}=y.useContext(Ne.aM),Zn=(0,Fe.F)(Yt,dt);let Ot;mt!==void 0?Ot=mt:Rt==="combobox"?Ot=null:Ot=(Qe==null?void 0:Qe("Select"))||y.createElement(We.Z,{componentName:"Select"});const{suffixIcon:jt,itemIcon:on,removeIcon:En,clearIcon:tn}=(0,Ae.Z)(Object.assign(Object.assign({},fe),{multiple:en,hasFeedback:bn,feedbackIcon:Bn,showSuffixIcon:Pt,prefixCls:un,componentName:"Select"})),In=Wt===!0?{clearIcon:tn}:Wt,pn=(0,Se.Z)(fe,["suffixIcon","itemIcon"]),On=me()(it||Pe,{[`${un}-dropdown-${yn}`]:yn==="rtl"},Ye,at,Nt,xn),fr=(0,Ge.Z)(Zr=>{var Pn;return(Pn=Ct!=null?Ct:Lt)!==null&&Pn!==void 0?Pn:Zr}),Qn=y.useContext(Te.Z),cr=De!=null?De:Qn,Cr=me()({[`${un}-lg`]:fr==="large",[`${un}-sm`]:fr==="small",[`${un}-rtl`]:yn==="rtl",[`${un}-${Xt}`]:Xe,[`${un}-in-form-item`]:jn},(0,Fe.Z)(un,Zn,bn),cn,Je.className,Et,Ye,at,Nt,xn),gr=y.useMemo(()=>vt!==void 0?vt:yn==="rtl"?"bottomRight":"bottomLeft",[vt,yn]),[Hr]=(0,Ee.Cn)("SelectLike",ae==null?void 0:ae.zIndex);return dn(y.createElement(we.ZP,Object.assign({ref:pe,virtual:gt,showSearch:Je.showSearch},pn,{style:Object.assign(Object.assign({},Je.style),ln),dropdownMatchSelectWidth:Ut,transitionName:(0,Ce.m)(Dn,"slide-up",re),builtinPlacements:(0,nt.Z)(Gt,Tt),listHeight:ye,listItemHeight:Ht,mode:Rt,prefixCls:un,placement:gr,direction:yn,prefix:ie,suffixIcon:jt,menuItemSelectedIcon:on,removeIcon:En,allowClear:In,notFoundContent:Ot,className:Cr,getPopupContainer:je||Ve,dropdownClassName:On,disabled:cr,dropdownStyle:Object.assign(Object.assign({},ae),{zIndex:Hr}),maxCount:en?ve:void 0,tagRender:en?se:void 0})))},yt=y.forwardRef(ut),st=(0,ke.Z)(yt,"dropdownAlign");yt.SECRET_COMBOBOX_MODE_DO_NOT_USE=qe,yt.Option=we.Wx,yt.OptGroup=we.Xo,yt._InternalPanelDoNotUseOrYouWillBeFired=st,qt.default=yt},1722:function(Rn,qt){"use strict";const E=ge=>{const we={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ge==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},we),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},we),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},we),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},we),{points:["br","tr"],offset:[0,-4]})}};function y(ge,me){return ge||E(me)}qt.Z=y},90376:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return xe}});var y=E(63356),ge=E(56119),me=E(16931),we=E(51636),Se=E(46e3),Ee=E(93873);const Ce=ce=>{const{optionHeight:Et,optionFontSize:Ye,optionLineHeight:je,optionPadding:it}=ce;return{position:"relative",display:"block",minHeight:Et,padding:it,color:ce.colorText,fontWeight:"normal",fontSize:Ye,lineHeight:je,boxSizing:"border-box"}};var Fe=ce=>{const{antCls:Et,componentCls:Ye}=ce,je=`${Ye}-item`,it=`&${Et}-slide-up-enter${Et}-slide-up-enter-active`,Pe=`&${Et}-slide-up-appear${Et}-slide-up-appear-active`,ye=`&${Et}-slide-up-leave${Et}-slide-up-leave-active`,vt=`${Ye}-dropdown-placement-`,zt=`${je}-option-selected`;return[{[`${Ye}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(ce)),{position:"absolute",top:-9999,zIndex:ce.zIndexPopup,boxSizing:"border-box",padding:ce.paddingXXS,overflow:"hidden",fontSize:ce.fontSize,fontVariant:"initial",backgroundColor:ce.colorBgElevated,borderRadius:ce.borderRadiusLG,outline:"none",boxShadow:ce.boxShadowSecondary,[`
|
|
|
${it}${vt}bottomLeft,
|
|
|
${Pe}${vt}bottomLeft
|
|
|
`]:{animationName:Se.fJ},[`
|
|
|
${it}${vt}topLeft,
|
|
|
${Pe}${vt}topLeft,
|
|
|
${it}${vt}topRight,
|
|
|
${Pe}${vt}topRight
|
|
|
`]:{animationName:Se.Qt},[`${ye}${vt}bottomLeft`]:{animationName:Se.Uw},[`
|
|
|
${ye}${vt}topLeft,
|
|
|
${ye}${vt}topRight
|
|
|
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[je]:Object.assign(Object.assign({},Ce(ce)),{cursor:"pointer",transition:`background ${ce.motionDurationSlow} ease`,borderRadius:ce.borderRadiusSM,"&-group":{color:ce.colorTextDescription,fontSize:ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${je}-option-disabled)`]:{backgroundColor:ce.optionActiveBg},[`&-selected:not(${je}-option-disabled)`]:{color:ce.optionSelectedColor,fontWeight:ce.optionSelectedFontWeight,backgroundColor:ce.optionSelectedBg,[`${je}-option-state`]:{color:ce.colorPrimary}},"&-disabled":{[`&${je}-option-selected`]:{backgroundColor:ce.colorBgContainerDisabled},color:ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ce.calc(ce.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ce(ce)),{color:ce.colorTextDisabled})}),[`${zt}:has(+ ${zt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${zt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Se.oN)(ce,"slide-up"),(0,Se.oN)(ce,"slide-down"),(0,Ee.Fm)(ce,"move-up"),(0,Ee.Fm)(ce,"move-down")]},de=E(26743),We=E(36237);function Te(ce,Et){const{componentCls:Ye,inputPaddingHorizontalBase:je,borderRadius:it}=ce,Pe=ce.calc(ce.controlHeight).sub(ce.calc(ce.lineWidth).mul(2)).equal(),ye=Et?`${Ye}-${Et}`:"";return{[`${Ye}-single${ye}`]:{fontSize:ce.fontSize,height:ce.controlHeight,[`${Ye}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(ce,!0)),{display:"flex",borderRadius:it,flex:"1 1 auto",[`${Ye}-selection-wrap:after`]:{lineHeight:(0,We.unit)(Pe)},[`${Ye}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Ye}-selection-item,
|
|
|
${Ye}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,We.unit)(Pe),transition:`all ${ce.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ye}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ye}-selection-item:empty:after`,`${Ye}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ye}-show-arrow ${Ye}-selection-item,
|
|
|
&${Ye}-show-arrow ${Ye}-selection-search,
|
|
|
&${Ye}-show-arrow ${Ye}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ce.showArrowPaddingInlineEnd},[`&${Ye}-open ${Ye}-selection-item`]:{color:ce.colorTextPlaceholder},[`&:not(${Ye}-customize-input)`]:{[`${Ye}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,We.unit)(je)}`,[`${Ye}-selection-search-input`]:{height:Pe,fontSize:ce.fontSize},"&:after":{lineHeight:(0,We.unit)(Pe)}}},[`&${Ye}-customize-input`]:{[`${Ye}-selector`]:{"&:after":{display:"none"},[`${Ye}-selection-search`]:{position:"static",width:"100%"},[`${Ye}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,We.unit)(je)}`,"&:after":{display:"none"}}}}}}}function ft(ce){const{componentCls:Et}=ce,Ye=ce.calc(ce.controlPaddingHorizontalSM).sub(ce.lineWidth).equal();return[Te(ce),Te((0,we.mergeToken)(ce,{controlHeight:ce.controlHeightSM,borderRadius:ce.borderRadiusSM}),"sm"),{[`${Et}-single${Et}-sm`]:{[`&:not(${Et}-customize-input)`]:{[`${Et}-selector`]:{padding:`0 ${(0,We.unit)(Ye)}`},[`&${Et}-show-arrow ${Et}-selection-search`]:{insetInlineEnd:ce.calc(Ye).add(ce.calc(ce.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Et}-show-arrow ${Et}-selection-item,
|
|
|
&${Et}-show-arrow ${Et}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ce.calc(ce.fontSize).mul(1.5).equal()}}}},Te((0,we.mergeToken)(ce,{controlHeight:ce.singleItemHeightLG,fontSize:ce.fontSizeLG,borderRadius:ce.borderRadiusLG}),"lg")]}const Ge=ce=>{const{fontSize:Et,lineHeight:Ye,lineWidth:je,controlHeight:it,controlHeightSM:Pe,controlHeightLG:ye,paddingXXS:vt,controlPaddingHorizontal:zt,zIndexPopupBase:Ct,colorText:De,fontWeightStrong:mt,controlItemBgActive:dt,controlItemBgHover:Gt,colorBgContainer:bt,colorFillSecondary:xt,colorBgContainerDisabled:pt,colorTextDisabled:ln,colorPrimaryHover:Wt,colorPrimary:ue,controlOutline:ae}=ce,re=vt*2,se=je*2,ve=Math.min(it-re,it-se),ie=Math.min(Pe-re,Pe-se),fe=Math.min(ye-re,ye-se);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(vt/2),zIndexPopup:Ct+50,optionSelectedColor:De,optionSelectedFontWeight:mt,optionSelectedBg:dt,optionActiveBg:Gt,optionPadding:`${(it-Et*Ye)/2}px ${zt}px`,optionFontSize:Et,optionLineHeight:Ye,optionHeight:it,selectorBg:bt,clearBg:bt,singleItemHeightLG:ye,multipleItemBg:xt,multipleItemBorderColor:"transparent",multipleItemHeight:ve,multipleItemHeightSM:ie,multipleItemHeightLG:fe,multipleSelectorBgDisabled:pt,multipleItemColorDisabled:ln,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ce.fontSize*1.25),hoverBorderColor:Wt,activeBorderColor:ue,activeOutlineColor:ae,selectAffixPadding:vt}},Ne=(ce,Et)=>{const{componentCls:Ye,antCls:je,controlOutlineWidth:it}=ce;return{[`&:not(${Ye}-customize-input) ${Ye}-selector`]:{border:`${(0,We.unit)(ce.lineWidth)} ${ce.lineType} ${Et.borderColor}`,background:ce.selectorBg},[`&:not(${Ye}-disabled):not(${Ye}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Ye}-selector`]:{borderColor:Et.hoverBorderHover},[`${Ye}-focused& ${Ye}-selector`]:{borderColor:Et.activeBorderColor,boxShadow:`0 0 0 ${(0,We.unit)(it)} ${Et.activeOutlineColor}`,outline:0},[`${Ye}-prefix`]:{color:Et.color}}}},Be=(ce,Et)=>({[`&${ce.componentCls}-status-${Et.status}`]:Object.assign({},Ne(ce,Et))}),Oe=ce=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(ce,{borderColor:ce.colorBorder,hoverBorderHover:ce.hoverBorderColor,activeBorderColor:ce.activeBorderColor,activeOutlineColor:ce.activeOutlineColor,color:ce.colorText})),Be(ce,{status:"error",borderColor:ce.colorError,hoverBorderHover:ce.colorErrorHover,activeBorderColor:ce.colorError,activeOutlineColor:ce.colorErrorOutline,color:ce.colorError})),Be(ce,{status:"warning",borderColor:ce.colorWarning,hoverBorderHover:ce.colorWarningHover,activeBorderColor:ce.colorWarning,activeOutlineColor:ce.colorWarningOutline,color:ce.colorWarning})),{[`&${ce.componentCls}-disabled`]:{[`&:not(${ce.componentCls}-customize-input) ${ce.componentCls}-selector`]:{background:ce.colorBgContainerDisabled,color:ce.colorTextDisabled}},[`&${ce.componentCls}-multiple ${ce.componentCls}-selection-item`]:{background:ce.multipleItemBg,border:`${(0,We.unit)(ce.lineWidth)} ${ce.lineType} ${ce.multipleItemBorderColor}`}})}),Ie=(ce,Et)=>{const{componentCls:Ye,antCls:je}=ce;return{[`&:not(${Ye}-customize-input) ${Ye}-selector`]:{background:Et.bg,border:`${(0,We.unit)(ce.lineWidth)} ${ce.lineType} transparent`,color:Et.color},[`&:not(${Ye}-disabled):not(${Ye}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Ye}-selector`]:{background:Et.hoverBg},[`${Ye}-focused& ${Ye}-selector`]:{background:ce.selectorBg,borderColor:Et.activeBorderColor,outline:0}}}},nt=(ce,Et)=>({[`&${ce.componentCls}-status-${Et.status}`]:Object.assign({},Ie(ce,Et))}),St=ce=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ie(ce,{bg:ce.colorFillTertiary,hoverBg:ce.colorFillSecondary,activeBorderColor:ce.activeBorderColor,color:ce.colorText})),nt(ce,{status:"error",bg:ce.colorErrorBg,hoverBg:ce.colorErrorBgHover,activeBorderColor:ce.colorError,color:ce.colorError})),nt(ce,{status:"warning",bg:ce.colorWarningBg,hoverBg:ce.colorWarningBgHover,activeBorderColor:ce.colorWarning,color:ce.colorWarning})),{[`&${ce.componentCls}-disabled`]:{[`&:not(${ce.componentCls}-customize-input) ${ce.componentCls}-selector`]:{borderColor:ce.colorBorder,background:ce.colorBgContainerDisabled,color:ce.colorTextDisabled}},[`&${ce.componentCls}-multiple ${ce.componentCls}-selection-item`]:{background:ce.colorBgContainer,border:`${(0,We.unit)(ce.lineWidth)} ${ce.lineType} ${ce.colorSplit}`}})}),Ae=ce=>({"&-borderless":{[`${ce.componentCls}-selector`]:{background:"transparent",border:`${(0,We.unit)(ce.lineWidth)} ${ce.lineType} transparent`},[`&${ce.componentCls}-disabled`]:{[`&:not(${ce.componentCls}-customize-input) ${ce.componentCls}-selector`]:{color:ce.colorTextDisabled}},[`&${ce.componentCls}-multiple ${ce.componentCls}-selection-item`]:{background:ce.multipleItemBg,border:`${(0,We.unit)(ce.lineWidth)} ${ce.lineType} ${ce.multipleItemBorderColor}`},[`&${ce.componentCls}-status-error`]:{[`${ce.componentCls}-prefix, ${ce.componentCls}-selection-item`]:{color:ce.colorError}},[`&${ce.componentCls}-status-warning`]:{[`${ce.componentCls}-prefix, ${ce.componentCls}-selection-item`]:{color:ce.colorWarning}}}}),_e=(ce,Et)=>{const{componentCls:Ye,antCls:je}=ce;return{[`&:not(${Ye}-customize-input) ${Ye}-selector`]:{borderWidth:`0 0 ${(0,We.unit)(ce.lineWidth)} 0`,borderStyle:`none none ${ce.lineType} none`,borderColor:Et.borderColor,background:ce.selectorBg,borderRadius:0},[`&:not(${Ye}-disabled):not(${Ye}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Ye}-selector`]:{borderColor:Et.hoverBorderHover},[`${Ye}-focused& ${Ye}-selector`]:{borderColor:Et.activeBorderColor,outline:0},[`${Ye}-prefix`]:{color:Et.color}}}},et=(ce,Et)=>({[`&${ce.componentCls}-status-${Et.status}`]:Object.assign({},_e(ce,Et))}),qe=ce=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},_e(ce,{borderColor:ce.colorBorder,hoverBorderHover:ce.hoverBorderColor,activeBorderColor:ce.activeBorderColor,activeOutlineColor:ce.activeOutlineColor,color:ce.colorText})),et(ce,{status:"error",borderColor:ce.colorError,hoverBorderHover:ce.colorErrorHover,activeBorderColor:ce.colorError,activeOutlineColor:ce.colorErrorOutline,color:ce.colorError})),et(ce,{status:"warning",borderColor:ce.colorWarning,hoverBorderHover:ce.colorWarningHover,activeBorderColor:ce.colorWarning,activeOutlineColor:ce.colorWarningOutline,color:ce.colorWarning})),{[`&${ce.componentCls}-disabled`]:{[`&:not(${ce.componentCls}-customize-input) ${ce.componentCls}-selector`]:{color:ce.colorTextDisabled}},[`&${ce.componentCls}-multiple ${ce.componentCls}-selection-item`]:{background:ce.multipleItemBg,border:`${(0,We.unit)(ce.lineWidth)} ${ce.lineType} ${ce.multipleItemBorderColor}`}})});var yt=ce=>({[ce.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Oe(ce)),St(ce)),Ae(ce)),qe(ce))});const st=ce=>{const{componentCls:Et}=ce;return{position:"relative",transition:`all ${ce.motionDurationMid} ${ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Et}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Et}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},$e=ce=>{const{componentCls:Et}=ce;return{[`${Et}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},pe=ce=>{const{antCls:Et,componentCls:Ye,inputPaddingHorizontalBase:je,iconCls:it}=ce;return{[Ye]:Object.assign(Object.assign({},(0,y.Wf)(ce)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ye}-customize-input) ${Ye}-selector`]:Object.assign(Object.assign({},st(ce)),$e(ce)),[`${Ye}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${Et}-typography`]:{display:"inline"}}),[`${Ye}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Ye}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:ce.fontSizeIcon,marginTop:ce.calc(ce.fontSizeIcon).mul(-1).div(2).equal(),color:ce.colorTextQuaternary,fontSize:ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ce.motionDurationSlow} ease`,[it]:{verticalAlign:"top",transition:`transform ${ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ye}-suffix)`]:{pointerEvents:"auto"}},[`${Ye}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ye}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ye}-prefix`]:{flex:"none",marginInlineEnd:ce.selectAffixPadding},[`${Ye}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:ce.fontSizeIcon,height:ce.fontSizeIcon,marginTop:ce.calc(ce.fontSizeIcon).mul(-1).div(2).equal(),color:ce.colorTextQuaternary,fontSize:ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ce.motionDurationMid} ease, opacity ${ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ce.colorTextTertiary}},[`&:hover ${Ye}-clear`]:{opacity:1,background:ce.colorBgBase,borderRadius:"50%"}}),[`${Ye}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ye}-has-feedback`]:{[`${Ye}-clear`]:{insetInlineEnd:ce.calc(je).add(ce.fontSize).add(ce.paddingXS).equal()}}}}}},Le=ce=>{const{componentCls:Et}=ce;return[{[Et]:{[`&${Et}-in-form-item`]:{width:"100%"}}},pe(ce),ft(ce),(0,de.ZP)(ce),Fe(ce),{[`${Et}-rtl`]:{direction:"rtl"}},(0,ge.c)(ce,{borderElCls:`${Et}-selector`,focusElCls:`${Et}-focused`})]};var xe=(0,me.I$)("Select",(ce,Et)=>{let{rootPrefixCls:Ye}=Et;const je=(0,we.mergeToken)(ce,{rootPrefixCls:Ye,inputPaddingHorizontalBase:ce.calc(ce.paddingSM).sub(1).equal(),multipleSelectItemHeight:ce.multipleItemHeight,selectHeight:ce.controlHeight});return[Le(je),yt(je)]},Ge,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Rn,qt,E){"use strict";E.d(qt,{_z:function(){return Ee},gp:function(){return we}});var y=E(36237),ge=E(63356),me=E(51636);const we=de=>{const{multipleSelectItemHeight:We,paddingXXS:Te,lineWidth:ft,INTERNAL_FIXED_ITEM_MARGIN:Ge}=de,Ne=de.max(de.calc(Te).sub(ft).equal(),0),Be=de.max(de.calc(Ne).sub(Ge).equal(),0);return{basePadding:Ne,containerPadding:Be,itemHeight:(0,y.unit)(We),itemLineHeight:(0,y.unit)(de.calc(We).sub(de.calc(de.lineWidth).mul(2)).equal())}},Se=de=>{const{multipleSelectItemHeight:We,selectHeight:Te,lineWidth:ft}=de;return de.calc(Te).sub(We).div(2).sub(ft).equal()},Ee=de=>{const{componentCls:We,iconCls:Te,borderRadiusSM:ft,motionDurationSlow:Ge,paddingXS:Ne,multipleItemColorDisabled:Be,multipleItemBorderColorDisabled:Oe,colorIcon:Ie,colorIconHover:nt,INTERNAL_FIXED_ITEM_MARGIN:St}=de;return{[`${We}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${We}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:St,borderRadius:ft,cursor:"default",transition:`font-size ${Ge}, line-height ${Ge}, height ${Ge}`,marginInlineEnd:de.calc(St).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:de.calc(Ne).div(2).equal(),[`${We}-disabled&`]:{color:Be,borderColor:Oe,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:de.calc(Ne).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ge.Ro)()),{display:"inline-flex",alignItems:"center",color:Ie,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Te}`]:{verticalAlign:"-0.2em"},"&:hover":{color:nt}})}}}},Ce=(de,We)=>{const{componentCls:Te,INTERNAL_FIXED_ITEM_MARGIN:ft}=de,Ge=`${Te}-selection-overflow`,Ne=de.multipleSelectItemHeight,Be=Se(de),Oe=We?`${Te}-${We}`:"",Ie=we(de);return{[`${Te}-multiple${Oe}`]:Object.assign(Object.assign({},Ee(de)),{[`${Te}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ie.basePadding,paddingBlock:Ie.containerPadding,borderRadius:de.borderRadius,[`${Te}-disabled&`]:{background:de.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(ft)} 0`,lineHeight:(0,y.unit)(Ne),visibility:"hidden",content:'"\\a0"'}},[`${Te}-selection-item`]:{height:Ie.itemHeight,lineHeight:(0,y.unit)(Ie.itemLineHeight)},[`${Te}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(Ne),marginBlock:ft}},[`${Te}-prefix`]:{marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(Ie.basePadding).equal()},[`${Ge}-item + ${Ge}-item,
|
|
|
${Te}-prefix + ${Te}-selection-wrap
|
|
|
`]:{[`${Te}-selection-search`]:{marginInlineStart:0},[`${Te}-selection-placeholder`]:{insetInlineStart:0}},[`${Ge}-item-suffix`]:{minHeight:Ie.itemHeight,marginBlock:ft},[`${Te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(Be).equal(),"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:de.fontFamily,lineHeight:(0,y.unit)(Ne),transition:`all ${de.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Te}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(Ie.basePadding).equal(),insetInlineEnd:de.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${de.motionDurationSlow}`}})}};function ke(de,We){const{componentCls:Te}=de,ft=We?`${Te}-${We}`:"",Ge={[`${Te}-multiple${ft}`]:{fontSize:de.fontSize,[`${Te}-selector`]:{[`${Te}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Te}-show-arrow ${Te}-selector,
|
|
|
&${Te}-allow-clear ${Te}-selector
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSizeIcon).add(de.controlPaddingHorizontal).equal()}}};return[Ce(de,We),Ge]}const Fe=de=>{const{componentCls:We}=de,Te=(0,me.mergeToken)(de,{selectHeight:de.controlHeightSM,multipleSelectItemHeight:de.multipleItemHeightSM,borderRadius:de.borderRadiusSM,borderRadiusSM:de.borderRadiusXS}),ft=(0,me.mergeToken)(de,{fontSize:de.fontSizeLG,selectHeight:de.controlHeightLG,multipleSelectItemHeight:de.multipleItemHeightLG,borderRadius:de.borderRadiusLG,borderRadiusSM:de.borderRadius});return[ke(de),ke(Te,"sm"),{[`${We}-multiple${We}-sm`]:{[`${We}-selection-placeholder`]:{insetInline:de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal()},[`${We}-selection-search`]:{marginInlineStart:2}}},ke(ft,"lg")]};qt.ZP=Fe},68525:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(59301),ge=E(40001),me=E(19248),we=E(99267),Se=E(84105),Ee=E(58617),Ce=E(47472);function ke(Fe){let{suffixIcon:de,clearIcon:We,menuItemSelectedIcon:Te,removeIcon:ft,loading:Ge,multiple:Ne,hasFeedback:Be,prefixCls:Oe,showSuffixIcon:Ie,feedbackIcon:nt,showArrow:St,componentName:Ae}=Fe;const _e=We!=null?We:y.createElement(me.Z,null),et=st=>de===null&&!Be&&!St?null:y.createElement(y.Fragment,null,Ie!==!1&&st,Be&&nt);let qe=null;if(de!==void 0)qe=et(de);else if(Ge)qe=et(y.createElement(Ee.Z,{spin:!0}));else{const st=`${Oe}-suffix`;qe=$e=>{let{open:pe,showSearch:Le}=$e;return et(pe&&Le?y.createElement(Ce.Z,{className:st}):y.createElement(Se.Z,{className:st}))}}let ut=null;Te!==void 0?ut=Te:Ne?ut=y.createElement(ge.Z,null):ut=null;let yt=null;return ft!==void 0?yt=ft:yt=y.createElement(we.Z,null),{clearIcon:_e,suffixIcon:qe,itemIcon:ut,removeIcon:yt}}},90005:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return y}});function y(ge,me){return me!==void 0?me:ge!==null}},11938:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return $e}});var y=E(59301),ge=E(40192),me=E(22703),we=E(92310),Se=E.n(we),Ee=E(26112),Ce=E(48755),ke=E(458),de=pe=>{const{value:Le,formatter:xe,precision:ce,decimalSeparator:Et,groupSeparator:Ye="",prefixCls:je}=pe;let it;if(typeof xe=="function")it=xe(Le);else{const Pe=String(Le),ye=Pe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ye||Pe==="-")it=Pe;else{const vt=ye[1];let zt=ye[2]||"0",Ct=ye[4]||"";zt=zt.replace(/\B(?=(\d{3})+(?!\d))/g,Ye),typeof ce=="number"&&(Ct=Ct.padEnd(ce,"0").slice(0,ce>0?ce:0)),Ct&&(Ct=`${Et}${Ct}`),it=[y.createElement("span",{key:"int",className:`${je}-content-value-int`},vt,zt),Ct&&y.createElement("span",{key:"decimal",className:`${je}-content-value-decimal`},Ct)]}}return y.createElement("span",{className:`${je}-content-value`},it)},We=E(63356),Te=E(16931),ft=E(51636);const Ge=pe=>{const{componentCls:Le,marginXXS:xe,padding:ce,colorTextDescription:Et,titleFontSize:Ye,colorTextHeading:je,contentFontSize:it,fontFamily:Pe}=pe;return{[Le]:Object.assign(Object.assign({},(0,We.Wf)(pe)),{[`${Le}-title`]:{marginBottom:xe,color:Et,fontSize:Ye},[`${Le}-skeleton`]:{paddingTop:ce},[`${Le}-content`]:{color:je,fontSize:it,fontFamily:Pe,[`${Le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Le}-content-prefix, ${Le}-content-suffix`]:{display:"inline-block"},[`${Le}-content-prefix`]:{marginInlineEnd:xe},[`${Le}-content-suffix`]:{marginInlineStart:xe}}})}},Ne=pe=>{const{fontSizeHeading3:Le,fontSize:xe}=pe;return{titleFontSize:xe,contentFontSize:Le}};var Be=(0,Te.I$)("Statistic",pe=>{const Le=(0,ft.mergeToken)(pe,{});return[Ge(Le)]},Ne),Oe=function(pe,Le){var xe={};for(var ce in pe)Object.prototype.hasOwnProperty.call(pe,ce)&&Le.indexOf(ce)<0&&(xe[ce]=pe[ce]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,ce=Object.getOwnPropertySymbols(pe);Et<ce.length;Et++)Le.indexOf(ce[Et])<0&&Object.prototype.propertyIsEnumerable.call(pe,ce[Et])&&(xe[ce[Et]]=pe[ce[Et]]);return xe},nt=pe=>{const{prefixCls:Le,className:xe,rootClassName:ce,style:Et,valueStyle:Ye,value:je=0,title:it,valueRender:Pe,prefix:ye,suffix:vt,loading:zt=!1,formatter:Ct,precision:De,decimalSeparator:mt=".",groupSeparator:dt=",",onMouseEnter:Gt,onMouseLeave:bt}=pe,xt=Oe(pe,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:pt,direction:ln,className:Wt,style:ue}=(0,Ce.dj)("statistic"),ae=pt("statistic",Le),[re,se,ve]=Be(ae),ie=y.createElement(de,{decimalSeparator:mt,groupSeparator:dt,prefixCls:ae,formatter:Ct,precision:De,value:je}),fe=Se()(ae,{[`${ae}-rtl`]:ln==="rtl"},Wt,xe,ce,se,ve),Ve=(0,Ee.Z)(xt,{aria:!0,data:!0});return re(y.createElement("div",Object.assign({},Ve,{className:fe,style:Object.assign(Object.assign({},ue),Et),onMouseEnter:Gt,onMouseLeave:bt}),it&&y.createElement("div",{className:`${ae}-title`},it),y.createElement(ke.Z,{paragraph:!1,loading:zt,className:`${ae}-skeleton`},y.createElement("div",{style:Ye,className:`${ae}-content`},ye&&y.createElement("span",{className:`${ae}-content-prefix`},ye),Pe?Pe(ie):ie,vt&&y.createElement("span",{className:`${ae}-content-suffix`},vt)))))};const St=[["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 Ae(pe,Le){let xe=pe;const ce=/\[[^\]]*]/g,Et=(Le.match(ce)||[]).map(Pe=>Pe.slice(1,-1)),Ye=Le.replace(ce,"[]"),je=St.reduce((Pe,ye)=>{let[vt,zt]=ye;if(Pe.includes(vt)){const Ct=Math.floor(xe/zt);return xe-=Ct*zt,Pe.replace(new RegExp(`${vt}+`,"g"),De=>{const mt=De.length;return Ct.toString().padStart(mt,"0")})}return Pe},Ye);let it=0;return je.replace(ce,()=>{const Pe=Et[it];return it+=1,Pe})}function _e(pe,Le){const{format:xe=""}=Le,ce=new Date(pe).getTime(),Et=Date.now(),Ye=Math.max(ce-Et,0);return Ae(Ye,xe)}var et=function(pe,Le){var xe={};for(var ce in pe)Object.prototype.hasOwnProperty.call(pe,ce)&&Le.indexOf(ce)<0&&(xe[ce]=pe[ce]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,ce=Object.getOwnPropertySymbols(pe);Et<ce.length;Et++)Le.indexOf(ce[Et])<0&&Object.prototype.propertyIsEnumerable.call(pe,ce[Et])&&(xe[ce[Et]]=pe[ce[Et]]);return xe};const qe=1e3/30;function ut(pe){return new Date(pe).getTime()}const yt=pe=>{const{value:Le,format:xe="HH:mm:ss",onChange:ce,onFinish:Et}=pe,Ye=et(pe,["value","format","onChange","onFinish"]),je=(0,ge.Z)(),it=y.useRef(null),Pe=()=>{Et==null||Et(),it.current&&(clearInterval(it.current),it.current=null)},ye=()=>{const Ct=ut(Le);Ct>=Date.now()&&(it.current=setInterval(()=>{je(),ce==null||ce(Ct-Date.now()),Ct<Date.now()&&Pe()},qe))};y.useEffect(()=>(ye(),()=>{it.current&&(clearInterval(it.current),it.current=null)}),[Le]);const vt=(Ct,De)=>_e(Ct,Object.assign(Object.assign({},De),{format:xe})),zt=Ct=>(0,me.Tm)(Ct,{title:void 0});return y.createElement(nt,Object.assign({},Ye,{value:Le,valueRender:zt,formatter:vt}))};var st=y.memo(yt);nt.Countdown=st;var $e=nt},58755:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Et}});var y=E(59301),ge=E(58617),me=E(92310),we=E.n(me),Se=E(60499),Ee=E(18642),Ce=E(72190),ke=E(42244),Fe=E(18929),de=E(10228),We=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Te=y.forwardRef(function(Ye,je){var it,Pe=Ye.prefixCls,ye=Pe===void 0?"rc-switch":Pe,vt=Ye.className,zt=Ye.checked,Ct=Ye.defaultChecked,De=Ye.disabled,mt=Ye.loadingIcon,dt=Ye.checkedChildren,Gt=Ye.unCheckedChildren,bt=Ye.onClick,xt=Ye.onChange,pt=Ye.onKeyDown,ln=(0,ke.Z)(Ye,We),Wt=(0,Fe.Z)(!1,{value:zt,defaultValue:Ct}),ue=(0,Ce.Z)(Wt,2),ae=ue[0],re=ue[1];function se(Ve,It){var Qe=ae;return De||(Qe=Ve,re(Qe),xt==null||xt(Qe,It)),Qe}function ve(Ve){Ve.which===de.Z.LEFT?se(!1,Ve):Ve.which===de.Z.RIGHT&&se(!0,Ve),pt==null||pt(Ve)}function ie(Ve){var It=se(!ae,Ve);bt==null||bt(It,Ve)}var fe=we()(ye,vt,(it={},(0,Ee.Z)(it,"".concat(ye,"-checked"),ae),(0,Ee.Z)(it,"".concat(ye,"-disabled"),De),it));return y.createElement("button",(0,Se.Z)({},ln,{type:"button",role:"switch","aria-checked":ae,disabled:De,className:fe,ref:je,onKeyDown:ve,onClick:ie}),mt,y.createElement("span",{className:"".concat(ye,"-inner")},y.createElement("span",{className:"".concat(ye,"-inner-checked")},dt),y.createElement("span",{className:"".concat(ye,"-inner-unchecked")},Gt)))});Te.displayName="Switch";var ft=Te,Ge=E(12919),Ne=E(48755),Be=E(2171),Oe=E(31756),Ie=E(36237),nt=E(17835),St=E(63356),Ae=E(16931),_e=E(51636);const et=Ye=>{const{componentCls:je,trackHeightSM:it,trackPadding:Pe,trackMinWidthSM:ye,innerMinMarginSM:vt,innerMaxMarginSM:zt,handleSizeSM:Ct,calc:De}=Ye,mt=`${je}-inner`,dt=(0,Ie.unit)(De(Ct).add(De(Pe).mul(2)).equal()),Gt=(0,Ie.unit)(De(zt).mul(2).equal());return{[je]:{[`&${je}-small`]:{minWidth:ye,height:it,lineHeight:(0,Ie.unit)(it),[`${je}-inner`]:{paddingInlineStart:zt,paddingInlineEnd:vt,[`${mt}-checked, ${mt}-unchecked`]:{minHeight:it},[`${mt}-checked`]:{marginInlineStart:`calc(-100% + ${dt} - ${Gt})`,marginInlineEnd:`calc(100% - ${dt} + ${Gt})`},[`${mt}-unchecked`]:{marginTop:De(it).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${je}-handle`]:{width:Ct,height:Ct},[`${je}-loading-icon`]:{top:De(De(Ct).sub(Ye.switchLoadingIconSize)).div(2).equal(),fontSize:Ye.switchLoadingIconSize},[`&${je}-checked`]:{[`${je}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:zt,[`${mt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${mt}-unchecked`]:{marginInlineStart:`calc(100% - ${dt} + ${Gt})`,marginInlineEnd:`calc(-100% + ${dt} - ${Gt})`}},[`${je}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ie.unit)(De(Ct).add(Pe).equal())})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${mt}`]:{[`${mt}-unchecked`]:{marginInlineStart:De(Ye.marginXXS).div(2).equal(),marginInlineEnd:De(Ye.marginXXS).mul(-1).div(2).equal()}},[`&${je}-checked ${mt}`]:{[`${mt}-checked`]:{marginInlineStart:De(Ye.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:De(Ye.marginXXS).div(2).equal()}}}}}}},qe=Ye=>{const{componentCls:je,handleSize:it,calc:Pe}=Ye;return{[je]:{[`${je}-loading-icon${Ye.iconCls}`]:{position:"relative",top:Pe(Pe(it).sub(Ye.fontSize)).div(2).equal(),color:Ye.switchLoadingIconColor,verticalAlign:"top"},[`&${je}-checked ${je}-loading-icon`]:{color:Ye.switchColor}}}},ut=Ye=>{const{componentCls:je,trackPadding:it,handleBg:Pe,handleShadow:ye,handleSize:vt,calc:zt}=Ye,Ct=`${je}-handle`;return{[je]:{[Ct]:{position:"absolute",top:it,insetInlineStart:it,width:vt,height:vt,transition:`all ${Ye.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Pe,borderRadius:zt(vt).div(2).equal(),boxShadow:ye,transition:`all ${Ye.switchDuration} ease-in-out`,content:'""'}},[`&${je}-checked ${Ct}`]:{insetInlineStart:`calc(100% - ${(0,Ie.unit)(zt(vt).add(it).equal())})`},[`&:not(${je}-disabled):active`]:{[`${Ct}::before`]:{insetInlineEnd:Ye.switchHandleActiveInset,insetInlineStart:0},[`&${je}-checked ${Ct}::before`]:{insetInlineEnd:0,insetInlineStart:Ye.switchHandleActiveInset}}}}},yt=Ye=>{const{componentCls:je,trackHeight:it,trackPadding:Pe,innerMinMargin:ye,innerMaxMargin:vt,handleSize:zt,calc:Ct}=Ye,De=`${je}-inner`,mt=(0,Ie.unit)(Ct(zt).add(Ct(Pe).mul(2)).equal()),dt=(0,Ie.unit)(Ct(vt).mul(2).equal());return{[je]:{[De]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vt,paddingInlineEnd:ye,transition:`padding-inline-start ${Ye.switchDuration} ease-in-out, padding-inline-end ${Ye.switchDuration} ease-in-out`,[`${De}-checked, ${De}-unchecked`]:{display:"block",color:Ye.colorTextLightSolid,fontSize:Ye.fontSizeSM,transition:`margin-inline-start ${Ye.switchDuration} ease-in-out, margin-inline-end ${Ye.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:it},[`${De}-checked`]:{marginInlineStart:`calc(-100% + ${mt} - ${dt})`,marginInlineEnd:`calc(100% - ${mt} + ${dt})`},[`${De}-unchecked`]:{marginTop:Ct(it).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${je}-checked ${De}`]:{paddingInlineStart:ye,paddingInlineEnd:vt,[`${De}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${De}-unchecked`]:{marginInlineStart:`calc(100% - ${mt} + ${dt})`,marginInlineEnd:`calc(-100% + ${mt} - ${dt})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${De}`]:{[`${De}-unchecked`]:{marginInlineStart:Ct(Pe).mul(2).equal(),marginInlineEnd:Ct(Pe).mul(-1).mul(2).equal()}},[`&${je}-checked ${De}`]:{[`${De}-checked`]:{marginInlineStart:Ct(Pe).mul(-1).mul(2).equal(),marginInlineEnd:Ct(Pe).mul(2).equal()}}}}}},st=Ye=>{const{componentCls:je,trackHeight:it,trackMinWidth:Pe}=Ye;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Ye)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Pe,height:it,lineHeight:(0,Ie.unit)(it),verticalAlign:"middle",background:Ye.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ye.motionDurationMid}`,userSelect:"none",[`&:hover:not(${je}-disabled)`]:{background:Ye.colorTextTertiary}}),(0,St.Qy)(Ye)),{[`&${je}-checked`]:{background:Ye.switchColor,[`&:hover:not(${je}-disabled)`]:{background:Ye.colorPrimaryHover}},[`&${je}-loading, &${je}-disabled`]:{cursor:"not-allowed",opacity:Ye.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${je}-rtl`]:{direction:"rtl"}})}},$e=Ye=>{const{fontSize:je,lineHeight:it,controlHeight:Pe,colorWhite:ye}=Ye,vt=je*it,zt=Pe/2,Ct=2,De=vt-Ct*2,mt=zt-Ct*2;return{trackHeight:vt,trackHeightSM:zt,trackMinWidth:De*2+Ct*4,trackMinWidthSM:mt*2+Ct*2,trackPadding:Ct,handleBg:ye,handleSize:De,handleSizeSM:mt,handleShadow:`0 2px 4px 0 ${new nt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:De/2,innerMaxMargin:De+Ct+Ct*2,innerMinMarginSM:mt/2,innerMaxMarginSM:mt+Ct+Ct*2}};var pe=(0,Ae.I$)("Switch",Ye=>{const je=(0,_e.mergeToken)(Ye,{switchDuration:Ye.motionDurationMid,switchColor:Ye.colorPrimary,switchDisabledOpacity:Ye.opacityLoading,switchLoadingIconSize:Ye.calc(Ye.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ye.opacityLoading})`,switchHandleActiveInset:"-30%"});return[st(je),yt(je),ut(je),qe(je),et(je)]},$e),Le=function(Ye,je){var it={};for(var Pe in Ye)Object.prototype.hasOwnProperty.call(Ye,Pe)&&je.indexOf(Pe)<0&&(it[Pe]=Ye[Pe]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Pe=Object.getOwnPropertySymbols(Ye);ye<Pe.length;ye++)je.indexOf(Pe[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Pe[ye])&&(it[Pe[ye]]=Ye[Pe[ye]]);return it};const ce=y.forwardRef((Ye,je)=>{const{prefixCls:it,size:Pe,disabled:ye,loading:vt,className:zt,rootClassName:Ct,style:De,checked:mt,value:dt,defaultChecked:Gt,defaultValue:bt,onChange:xt}=Ye,pt=Le(Ye,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[ln,Wt]=(0,Fe.Z)(!1,{value:mt!=null?mt:dt,defaultValue:Gt!=null?Gt:bt}),{getPrefixCls:ue,direction:ae,switch:re}=y.useContext(Ne.E_),se=y.useContext(Be.Z),ve=(ye!=null?ye:se)||vt,ie=ue("switch",it),fe=y.createElement("div",{className:`${ie}-handle`},vt&&y.createElement(ge.Z,{className:`${ie}-loading-icon`})),[Ve,It,Qe]=pe(ie),Ke=(0,Oe.Z)(Pe),gt=we()(re==null?void 0:re.className,{[`${ie}-small`]:Ke==="small",[`${ie}-loading`]:vt,[`${ie}-rtl`]:ae==="rtl"},zt,Ct,It,Qe),wt=Object.assign(Object.assign({},re==null?void 0:re.style),De),Tt=function(){Wt(arguments.length<=0?void 0:arguments[0]),xt==null||xt.apply(void 0,arguments)};return Ve(y.createElement(Ge.Z,{component:"Switch"},y.createElement(ft,Object.assign({},pt,{checked:ln,onChange:Tt,prefixCls:ie,className:gt,style:wt,disabled:ve,ref:je,loadingIcon:fe}))))});ce.__ANT_SWITCH=!0;var Et=ce},70858:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return kl}});var y=E(59301),ge={},me="rc-table-internal-hook",we=E(72190),Se=E(6089),Ee=E(34280),Ce=E(13697),ke=E(4676);function Fe(Ze){var Re=y.createContext(void 0),Dt=function(an){var gn=an.value,Mn=an.children,Fn=y.useRef(gn);Fn.current=gn;var zn=y.useState(function(){return{getValue:function(){return Fn.current},listeners:new Set}}),Ln=(0,we.Z)(zn,1),xr=Ln[0];return(0,Ee.Z)(function(){(0,ke.unstable_batchedUpdates)(function(){xr.listeners.forEach(function(lr){lr(gn)})})},[gn]),y.createElement(Re.Provider,{value:xr},Mn)};return{Context:Re,Provider:Dt,defaultValue:Ze}}function de(Ze,Re){var Dt=(0,Se.Z)(typeof Re=="function"?Re:function(lr){if(Re===void 0)return lr;if(!Array.isArray(Re))return lr[Re];var rr={};return Re.forEach(function(Gn){rr[Gn]=lr[Gn]}),rr}),$t=y.useContext(Ze==null?void 0:Ze.Context),an=$t||{},gn=an.listeners,Mn=an.getValue,Fn=y.useRef();Fn.current=Dt($t?Mn():Ze==null?void 0:Ze.defaultValue);var zn=y.useState({}),Ln=(0,we.Z)(zn,2),xr=Ln[1];return(0,Ee.Z)(function(){if(!$t)return;function lr(rr){var Gn=Dt(rr);(0,Ce.Z)(Fn.current,Gn,!0)||xr({})}return gn.add(lr),function(){gn.delete(lr)}},[$t]),Fn.current}var We=E(60499),Te=E(8654);function ft(){var Ze=y.createContext(null);function Re(){return y.useContext(Ze)}function Dt(an,gn){var Mn=(0,Te.Yr)(an),Fn=function(Ln,xr){var lr=Mn?{ref:xr}:{},rr=y.useRef(0),Gn=y.useRef(Ln),Kn=Re();return Kn!==null?y.createElement(an,(0,We.Z)({},Ln,lr)):((!gn||gn(Gn.current,Ln))&&(rr.current+=1),Gn.current=Ln,y.createElement(Ze.Provider,{value:rr.current},y.createElement(an,(0,We.Z)({},Ln,lr))))};return Mn?y.forwardRef(Fn):Fn}function $t(an,gn){var Mn=(0,Te.Yr)(an),Fn=function(Ln,xr){var lr=Mn?{ref:xr}:{};return Re(),y.createElement(an,(0,We.Z)({},Ln,lr))};return Mn?y.memo(y.forwardRef(Fn),gn):y.memo(Fn,gn)}return{makeImmutable:Dt,responseImmutable:$t,useImmutableMark:Re}}var Ge=ft(),Ne=Ge.makeImmutable,Be=Ge.responseImmutable,Oe=Ge.useImmutableMark,Ie=ft(),nt=Ie.makeImmutable,St=Ie.responseImmutable,Ae=Ie.useImmutableMark,_e=Fe(),et=_e;function qe(Ze,Re){var Dt=React.useRef(0);Dt.current+=1;var $t=React.useRef(Ze),an=[];Object.keys(Ze||{}).map(function(Mn){var Fn;(Ze==null?void 0:Ze[Mn])!==((Fn=$t.current)===null||Fn===void 0?void 0:Fn[Mn])&&an.push(Mn)}),$t.current=Ze;var gn=React.useRef([]);return an.length&&(gn.current=an),React.useDebugValue(Dt.current),React.useDebugValue(gn.current.join(", ")),Re&&console.log("".concat(Re,":"),Dt.current,gn.current),Dt.current}var ut=null,yt=null,st=E(43749),$e=E(85899),pe=E(18642),Le=E(92310),xe=E.n(Le),ce=E(80547),Et=E(97938),Ye=E(48736),je=y.createContext({renderWithProps:!1}),it=je,Pe="RC_TABLE_KEY";function ye(Ze){return Ze==null?[]:Array.isArray(Ze)?Ze:[Ze]}function vt(Ze){var Re=[],Dt={};return Ze.forEach(function($t){for(var an=$t||{},gn=an.key,Mn=an.dataIndex,Fn=gn||ye(Mn).join("-")||Pe;Dt[Fn];)Fn="".concat(Fn,"_next");Dt[Fn]=!0,Re.push(Fn)}),Re}function zt(Ze){return Ze!=null}function Ct(Ze){return typeof Ze=="number"&&!Number.isNaN(Ze)}function De(Ze){return Ze&&(0,st.Z)(Ze)==="object"&&!Array.isArray(Ze)&&!y.isValidElement(Ze)}function mt(Ze,Re,Dt,$t,an,gn){var Mn=y.useContext(it),Fn=Ae(),zn=(0,ce.Z)(function(){if(zt($t))return[$t];var Ln=Re==null||Re===""?[]:Array.isArray(Re)?Re:[Re],xr=(0,Et.Z)(Ze,Ln),lr=xr,rr=void 0;if(an){var Gn=an(xr,Ze,Dt);De(Gn)?(lr=Gn.children,rr=Gn.props,Mn.renderWithProps=!0):lr=Gn}return[lr,rr]},[Fn,Ze,$t,Re,an,Dt],function(Ln,xr){if(gn){var lr=(0,we.Z)(Ln,2),rr=lr[1],Gn=(0,we.Z)(xr,2),Kn=Gn[1];return gn(Kn,rr)}return Mn.renderWithProps?!0:!(0,Ce.Z)(Ln,xr,!0)});return zn}function dt(Ze,Re,Dt,$t){var an=Ze+Re-1;return Ze<=$t&&an>=Dt}function Gt(Ze,Re){return de(et,function(Dt){var $t=dt(Ze,Re||1,Dt.hoverStartRow,Dt.hoverEndRow);return[$t,Dt.onHover]})}var bt=E(70425),xt=function(Re){var Dt=Re.ellipsis,$t=Re.rowType,an=Re.children,gn,Mn=Dt===!0?{showTitle:!0}:Dt;return Mn&&(Mn.showTitle||$t==="header")&&(typeof an=="string"||typeof an=="number"?gn=an.toString():y.isValidElement(an)&&typeof an.props.children=="string"&&(gn=an.props.children)),gn};function pt(Ze){var Re,Dt,$t,an,gn,Mn,Fn,zn,Ln=Ze.component,xr=Ze.children,lr=Ze.ellipsis,rr=Ze.scope,Gn=Ze.prefixCls,Kn=Ze.className,ia=Ze.align,Tr=Ze.record,ca=Ze.render,xa=Ze.dataIndex,da=Ze.renderIndex,ha=Ze.shouldCellUpdate,La=Ze.index,Ja=Ze.rowType,Ka=Ze.colSpan,to=Ze.rowSpan,wi=Ze.fixLeft,hi=Ze.fixRight,Wi=Ze.firstFixLeft,qa=Ze.lastFixLeft,ti=Ze.firstFixRight,Ma=Ze.lastFixRight,Sa=Ze.appendNode,Ya=Ze.additionalProps,ri=Ya===void 0?{}:Ya,Ci=Ze.isSticky,Ra="".concat(Gn,"-cell"),lo=de(et,["supportSticky","allColumnsFixedLeft","rowHoverable"]),uo=lo.supportSticky,sl=lo.allColumnsFixedLeft,ul=lo.rowHoverable,el=mt(Tr,xa,da,xr,ca,ha),cl=(0,we.Z)(el,2),gl=cl[0],fo=cl[1],vo={},El=typeof wi=="number"&&uo,dl=typeof hi=="number"&&uo;El&&(vo.position="sticky",vo.left=wi),dl&&(vo.position="sticky",vo.right=hi);var ai=(Re=(Dt=($t=fo==null?void 0:fo.colSpan)!==null&&$t!==void 0?$t:ri.colSpan)!==null&&Dt!==void 0?Dt:Ka)!==null&&Re!==void 0?Re:1,Xi=(an=(gn=(Mn=fo==null?void 0:fo.rowSpan)!==null&&Mn!==void 0?Mn:ri.rowSpan)!==null&&gn!==void 0?gn:to)!==null&&an!==void 0?an:1,ci=Gt(La,Xi),Ua=(0,we.Z)(ci,2),Po=Ua[0],Bo=Ua[1],ol=(0,bt.zX)(function(ko){var jo;Tr&&Bo(La,La+Xi-1),ri==null||(jo=ri.onMouseEnter)===null||jo===void 0||jo.call(ri,ko)}),Yo=(0,bt.zX)(function(ko){var jo;Tr&&Bo(-1,-1),ri==null||(jo=ri.onMouseLeave)===null||jo===void 0||jo.call(ri,ko)});if(ai===0||Xi===0)return null;var $o=(Fn=ri.title)!==null&&Fn!==void 0?Fn:xt({rowType:Ja,ellipsis:lr,children:gl}),Cl=xe()(Ra,Kn,(zn={},(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)(zn,"".concat(Ra,"-fix-left"),El&&uo),"".concat(Ra,"-fix-left-first"),Wi&&uo),"".concat(Ra,"-fix-left-last"),qa&&uo),"".concat(Ra,"-fix-left-all"),qa&&sl&&uo),"".concat(Ra,"-fix-right"),dl&&uo),"".concat(Ra,"-fix-right-first"),ti&&uo),"".concat(Ra,"-fix-right-last"),Ma&&uo),"".concat(Ra,"-ellipsis"),lr),"".concat(Ra,"-with-append"),Sa),"".concat(Ra,"-fix-sticky"),(El||dl)&&Ci&&uo),(0,pe.Z)(zn,"".concat(Ra,"-row-hover"),!fo&&Po)),ri.className,fo==null?void 0:fo.className),xi={};ia&&(xi.textAlign=ia);var Li=(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({},fo==null?void 0:fo.style),vo),xi),ri.style),Mo=gl;return(0,st.Z)(Mo)==="object"&&!Array.isArray(Mo)&&!y.isValidElement(Mo)&&(Mo=null),lr&&(qa||ti)&&(Mo=y.createElement("span",{className:"".concat(Ra,"-content")},Mo)),y.createElement(Ln,(0,We.Z)({},fo,ri,{className:Cl,style:Li,title:$o,scope:rr,onMouseEnter:ul?ol:void 0,onMouseLeave:ul?Yo:void 0,colSpan:ai!==1?ai:null,rowSpan:Xi!==1?Xi:null}),Sa,Mo)}var ln=y.memo(pt);function Wt(Ze,Re,Dt,$t,an){var gn=Dt[Ze]||{},Mn=Dt[Re]||{},Fn,zn;gn.fixed==="left"?Fn=$t.left[an==="rtl"?Re:Ze]:Mn.fixed==="right"&&(zn=$t.right[an==="rtl"?Ze:Re]);var Ln=!1,xr=!1,lr=!1,rr=!1,Gn=Dt[Re+1],Kn=Dt[Ze-1],ia=Gn&&!Gn.fixed||Kn&&!Kn.fixed||Dt.every(function(ha){return ha.fixed==="left"});if(an==="rtl"){if(Fn!==void 0){var Tr=Kn&&Kn.fixed==="left";rr=!Tr&&ia}else if(zn!==void 0){var ca=Gn&&Gn.fixed==="right";lr=!ca&&ia}}else if(Fn!==void 0){var xa=Gn&&Gn.fixed==="left";Ln=!xa&&ia}else if(zn!==void 0){var da=Kn&&Kn.fixed==="right";xr=!da&&ia}return{fixLeft:Fn,fixRight:zn,lastFixLeft:Ln,firstFixRight:xr,lastFixRight:lr,firstFixLeft:rr,isSticky:$t.isSticky}}var ue=y.createContext({}),ae=ue;function re(Ze){var Re=Ze.className,Dt=Ze.index,$t=Ze.children,an=Ze.colSpan,gn=an===void 0?1:an,Mn=Ze.rowSpan,Fn=Ze.align,zn=de(et,["prefixCls","direction"]),Ln=zn.prefixCls,xr=zn.direction,lr=y.useContext(ae),rr=lr.scrollColumnIndex,Gn=lr.stickyOffsets,Kn=lr.flattenColumns,ia=Dt+gn-1,Tr=ia+1===rr?gn+1:gn,ca=Wt(Dt,Dt+Tr-1,Kn,Gn,xr);return y.createElement(ln,(0,We.Z)({className:Re,index:Dt,component:"td",prefixCls:Ln,record:null,dataIndex:null,align:Fn,colSpan:Tr,rowSpan:Mn,render:function(){return $t}},ca))}var se=E(42244),ve=["children"];function ie(Ze){var Re=Ze.children,Dt=(0,se.Z)(Ze,ve);return y.createElement("tr",Dt,Re)}function fe(Ze){var Re=Ze.children;return Re}fe.Row=ie,fe.Cell=re;var Ve=fe;function It(Ze){var Re=Ze.children,Dt=Ze.stickyOffsets,$t=Ze.flattenColumns,an=de(et,"prefixCls"),gn=$t.length-1,Mn=$t[gn],Fn=y.useMemo(function(){return{stickyOffsets:Dt,flattenColumns:$t,scrollColumnIndex:Mn!=null&&Mn.scrollbar?gn:null}},[Mn,$t,gn,Dt]);return y.createElement(ae.Provider,{value:Fn},y.createElement("tfoot",{className:"".concat(an,"-summary")},Re))}var Qe=St(It),Ke=Ve,gt=E(29301),wt=E(24514),Tt=E(75152),Je=E(26112);function tt(Ze,Re,Dt,$t,an,gn,Mn){Ze.push({record:Re,indent:Dt,index:Mn});var Fn=gn(Re),zn=an==null?void 0:an.has(Fn);if(Re&&Array.isArray(Re[$t])&&zn)for(var Ln=0;Ln<Re[$t].length;Ln+=1)tt(Ze,Re[$t][Ln],Dt+1,$t,an,gn,Ln)}function Ht(Ze,Re,Dt,$t){var an=y.useMemo(function(){if(Dt!=null&&Dt.size){for(var gn=[],Mn=0;Mn<(Ze==null?void 0:Ze.length);Mn+=1){var Fn=Ze[Mn];tt(gn,Fn,0,Re,Dt,$t,Mn)}return gn}return Ze==null?void 0:Ze.map(function(zn,Ln){return{record:zn,indent:0,index:Ln}})},[Ze,Re,Dt,$t]);return an}function un(Ze,Re,Dt,$t){var an=de(et,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),gn=an.flattenColumns,Mn=an.expandableType,Fn=an.expandedKeys,zn=an.childrenColumnName,Ln=an.onTriggerExpand,xr=an.rowExpandable,lr=an.onRow,rr=an.expandRowByClick,Gn=an.rowClassName,Kn=Mn==="nest",ia=Mn==="row"&&(!xr||xr(Ze)),Tr=ia||Kn,ca=Fn&&Fn.has(Re),xa=zn&&Ze&&Ze[zn],da=(0,bt.zX)(Ln),ha=lr==null?void 0:lr(Ze,Dt),La=ha==null?void 0:ha.onClick,Ja=function(hi){rr&&Tr&&Ln(Ze,hi);for(var Wi=arguments.length,qa=new Array(Wi>1?Wi-1:0),ti=1;ti<Wi;ti++)qa[ti-1]=arguments[ti];La==null||La.apply(void 0,[hi].concat(qa))},Ka;typeof Gn=="string"?Ka=Gn:typeof Gn=="function"&&(Ka=Gn(Ze,Dt,$t));var to=vt(gn);return(0,$e.Z)((0,$e.Z)({},an),{},{columnsKey:to,nestExpandable:Kn,expanded:ca,hasNestChildren:xa,record:Ze,onTriggerExpand:da,rowSupportExpand:ia,expandable:Tr,rowProps:(0,$e.Z)((0,$e.Z)({},ha),{},{className:xe()(Ka,ha==null?void 0:ha.className),onClick:Ja})})}function Dn(Ze){var Re=Ze.prefixCls,Dt=Ze.children,$t=Ze.component,an=Ze.cellComponent,gn=Ze.className,Mn=Ze.expanded,Fn=Ze.colSpan,zn=Ze.isEmpty,Ln=de(et,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),xr=Ln.scrollbarSize,lr=Ln.fixHeader,rr=Ln.fixColumn,Gn=Ln.componentWidth,Kn=Ln.horizonScroll,ia=Dt;return(zn?Kn&&Gn:rr)&&(ia=y.createElement("div",{style:{width:Gn-(lr&&!zn?xr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Re,"-expanded-row-fixed")},ia)),y.createElement($t,{className:gn,style:{display:Mn?null:"none"}},y.createElement(ln,{component:an,prefixCls:Re,colSpan:Fn},ia))}var yn=Dn;function Lt(Ze){var Re=Ze.prefixCls,Dt=Ze.record,$t=Ze.onExpand,an=Ze.expanded,gn=Ze.expandable,Mn="".concat(Re,"-row-expand-icon");if(!gn)return y.createElement("span",{className:xe()(Mn,"".concat(Re,"-row-spaced"))});var Fn=function(Ln){$t(Dt,Ln),Ln.stopPropagation()};return y.createElement("span",{className:xe()(Mn,(0,pe.Z)((0,pe.Z)({},"".concat(Re,"-row-expanded"),an),"".concat(Re,"-row-collapsed"),!an)),onClick:Fn})}function cn(Ze,Re,Dt){var $t=[];function an(gn){(gn||[]).forEach(function(Mn,Fn){$t.push(Re(Mn,Fn)),an(Mn[Dt])})}return an(Ze),$t}function Xt(Ze,Re,Dt,$t){return typeof Ze=="string"?Ze:typeof Ze=="function"?Ze(Re,Dt,$t):""}function Xe(Ze,Re,Dt,$t,an){var gn=Ze.record,Mn=Ze.prefixCls,Fn=Ze.columnsKey,zn=Ze.fixedInfoList,Ln=Ze.expandIconColumnIndex,xr=Ze.nestExpandable,lr=Ze.indentSize,rr=Ze.expandIcon,Gn=Ze.expanded,Kn=Ze.hasNestChildren,ia=Ze.onTriggerExpand,Tr=Fn[Dt],ca=zn[Dt],xa;Dt===(Ln||0)&&xr&&(xa=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(lr*$t,"px")},className:"".concat(Mn,"-row-indent indent-level-").concat($t)}),rr({prefixCls:Mn,expanded:Gn,expandable:Kn,record:gn,onExpand:ia})));var da;return Re.onCell&&(da=Re.onCell(gn,an)),{key:Tr,fixedInfo:ca,appendCellNode:xa,additionalCellProps:da||{}}}function Nt(Ze){var Re=Ze.className,Dt=Ze.style,$t=Ze.record,an=Ze.index,gn=Ze.renderIndex,Mn=Ze.rowKey,Fn=Ze.indent,zn=Fn===void 0?0:Fn,Ln=Ze.rowComponent,xr=Ze.cellComponent,lr=Ze.scopeCellComponent,rr=un($t,Mn,an,zn),Gn=rr.prefixCls,Kn=rr.flattenColumns,ia=rr.expandedRowClassName,Tr=rr.expandedRowRender,ca=rr.rowProps,xa=rr.expanded,da=rr.rowSupportExpand,ha=y.useRef(!1);ha.current||(ha.current=xa);var La=Xt(ia,$t,an,zn),Ja=y.createElement(Ln,(0,We.Z)({},ca,{"data-row-key":Mn,className:xe()(Re,"".concat(Gn,"-row"),"".concat(Gn,"-row-level-").concat(zn),ca==null?void 0:ca.className,(0,pe.Z)({},La,zn>=1)),style:(0,$e.Z)((0,$e.Z)({},Dt),ca==null?void 0:ca.style)}),Kn.map(function(wi,hi){var Wi=wi.render,qa=wi.dataIndex,ti=wi.className,Ma=Xe(rr,wi,hi,zn,an),Sa=Ma.key,Ya=Ma.fixedInfo,ri=Ma.appendCellNode,Ci=Ma.additionalCellProps;return y.createElement(ln,(0,We.Z)({className:ti,ellipsis:wi.ellipsis,align:wi.align,scope:wi.rowScope,component:wi.rowScope?lr:xr,prefixCls:Gn,key:Sa,record:$t,index:an,renderIndex:gn,dataIndex:qa,render:Wi,shouldCellUpdate:wi.shouldCellUpdate},Ya,{appendNode:ri,additionalProps:Ci}))})),Ka;if(da&&(ha.current||xa)){var to=Tr($t,an,zn+1,xa);Ka=y.createElement(yn,{expanded:xa,className:xe()("".concat(Gn,"-expanded-row"),"".concat(Gn,"-expanded-row-level-").concat(zn+1),La),prefixCls:Gn,component:Ln,cellComponent:xr,colSpan:Kn.length,isEmpty:!1},to)}return y.createElement(y.Fragment,null,Ja,Ka)}var dn=St(Nt);function xn(Ze){var Re=Ze.columnKey,Dt=Ze.onColumnResize,$t=y.useRef();return(0,Ee.Z)(function(){$t.current&&Dt(Re,$t.current.offsetWidth)},[]),y.createElement(gt.Z,{data:Re},y.createElement("td",{ref:$t,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var at=E(29194);function Rt(Ze){var Re=Ze.prefixCls,Dt=Ze.columnsKey,$t=Ze.onColumnResize,an=y.useRef(null);return y.createElement("tr",{"aria-hidden":"true",className:"".concat(Re,"-measure-row"),style:{height:0,fontSize:0},ref:an},y.createElement(gt.Z.Collection,{onBatchResize:function(Mn){(0,at.Z)(an.current)&&Mn.forEach(function(Fn){var zn=Fn.data,Ln=Fn.size;$t(zn,Ln.offsetWidth)})}},Dt.map(function(gn){return y.createElement(xn,{key:gn,columnKey:gn,onColumnResize:$t})})))}function en(Ze){var Re=Ze.data,Dt=Ze.measureColumnWidth,$t=de(et,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),an=$t.prefixCls,gn=$t.getComponent,Mn=$t.onColumnResize,Fn=$t.flattenColumns,zn=$t.getRowKey,Ln=$t.expandedKeys,xr=$t.childrenColumnName,lr=$t.emptyNode,rr=Ht(Re,xr,Ln,zn),Gn=y.useRef({renderWithProps:!1}),Kn=gn(["body","wrapper"],"tbody"),ia=gn(["body","row"],"tr"),Tr=gn(["body","cell"],"td"),ca=gn(["body","cell"],"th"),xa;Re.length?xa=rr.map(function(ha,La){var Ja=ha.record,Ka=ha.indent,to=ha.index,wi=zn(Ja,La);return y.createElement(dn,{key:wi,rowKey:wi,record:Ja,index:La,renderIndex:to,rowComponent:ia,cellComponent:Tr,scopeCellComponent:ca,indent:Ka})}):xa=y.createElement(yn,{expanded:!0,className:"".concat(an,"-placeholder"),prefixCls:an,component:ia,cellComponent:Tr,colSpan:Fn.length,isEmpty:!0},lr);var da=vt(Fn);return y.createElement(it.Provider,{value:Gn.current},y.createElement(Kn,{className:"".concat(an,"-tbody")},Dt&&y.createElement(Rt,{prefixCls:an,columnsKey:da,onColumnResize:Mn}),xa))}var Pt=St(en),Ut=["expandable"],Yt="RC_TABLE_INTERNAL_COL_DEFINE";function bn(Ze){var Re=Ze.expandable,Dt=(0,se.Z)(Ze,Ut),$t;return"expandable"in Ze?$t=(0,$e.Z)((0,$e.Z)({},Dt),Re):$t=Dt,$t.showExpandColumn===!1&&($t.expandIconColumnIndex=-1),$t}var jn=["columnType"];function Bn(Ze){for(var Re=Ze.colWidths,Dt=Ze.columns,$t=Ze.columCount,an=de(et,["tableLayout"]),gn=an.tableLayout,Mn=[],Fn=$t||Dt.length,zn=!1,Ln=Fn-1;Ln>=0;Ln-=1){var xr=Re[Ln],lr=Dt&&Dt[Ln],rr=void 0,Gn=void 0;if(lr&&(rr=lr[Yt],gn==="auto"&&(Gn=lr.minWidth)),xr||Gn||rr||zn){var Kn=rr||{},ia=Kn.columnType,Tr=(0,se.Z)(Kn,jn);Mn.unshift(y.createElement("col",(0,We.Z)({key:Ln,style:{width:xr,minWidth:Gn}},Tr))),zn=!0}}return y.createElement("colgroup",null,Mn)}var Zn=Bn,Ot=E(77654),jt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function on(Ze,Re){return(0,y.useMemo)(function(){for(var Dt=[],$t=0;$t<Re;$t+=1){var an=Ze[$t];if(an!==void 0)Dt[$t]=an;else return null}return Dt},[Ze.join("_"),Re])}var En=y.forwardRef(function(Ze,Re){var Dt=Ze.className,$t=Ze.noData,an=Ze.columns,gn=Ze.flattenColumns,Mn=Ze.colWidths,Fn=Ze.columCount,zn=Ze.stickyOffsets,Ln=Ze.direction,xr=Ze.fixHeader,lr=Ze.stickyTopOffset,rr=Ze.stickyBottomOffset,Gn=Ze.stickyClassName,Kn=Ze.onScroll,ia=Ze.maxContentScroll,Tr=Ze.children,ca=(0,se.Z)(Ze,jt),xa=de(et,["prefixCls","scrollbarSize","isSticky","getComponent"]),da=xa.prefixCls,ha=xa.scrollbarSize,La=xa.isSticky,Ja=xa.getComponent,Ka=Ja(["header","table"],"table"),to=La&&!xr?0:ha,wi=y.useRef(null),hi=y.useCallback(function(Ci){(0,Te.mH)(Re,Ci),(0,Te.mH)(wi,Ci)},[]);y.useEffect(function(){var Ci;function Ra(lo){var uo=lo,sl=uo.currentTarget,ul=uo.deltaX;ul&&(Kn({currentTarget:sl,scrollLeft:sl.scrollLeft+ul}),lo.preventDefault())}return(Ci=wi.current)===null||Ci===void 0||Ci.addEventListener("wheel",Ra,{passive:!1}),function(){var lo;(lo=wi.current)===null||lo===void 0||lo.removeEventListener("wheel",Ra)}},[]);var Wi=y.useMemo(function(){return gn.every(function(Ci){return Ci.width})},[gn]),qa=gn[gn.length-1],ti={fixed:qa?qa.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(da,"-cell-scrollbar")}}},Ma=(0,y.useMemo)(function(){return to?[].concat((0,Ot.Z)(an),[ti]):an},[to,an]),Sa=(0,y.useMemo)(function(){return to?[].concat((0,Ot.Z)(gn),[ti]):gn},[to,gn]),Ya=(0,y.useMemo)(function(){var Ci=zn.right,Ra=zn.left;return(0,$e.Z)((0,$e.Z)({},zn),{},{left:Ln==="rtl"?[].concat((0,Ot.Z)(Ra.map(function(lo){return lo+to})),[0]):Ra,right:Ln==="rtl"?Ci:[].concat((0,Ot.Z)(Ci.map(function(lo){return lo+to})),[0]),isSticky:La})},[to,zn,La]),ri=on(Mn,Fn);return y.createElement("div",{style:(0,$e.Z)({overflow:"hidden"},La?{top:lr,bottom:rr}:{}),ref:hi,className:xe()(Dt,(0,pe.Z)({},Gn,!!Gn))},y.createElement(Ka,{style:{tableLayout:"fixed",visibility:$t||ri?null:"hidden"}},(!$t||!ia||Wi)&&y.createElement(Zn,{colWidths:ri?[].concat((0,Ot.Z)(ri),[to]):[],columCount:Fn+1,columns:Sa}),Tr((0,$e.Z)((0,$e.Z)({},ca),{},{stickyOffsets:Ya,columns:Ma,flattenColumns:Sa}))))}),tn=y.memo(En),In=function(Re){var Dt=Re.cells,$t=Re.stickyOffsets,an=Re.flattenColumns,gn=Re.rowComponent,Mn=Re.cellComponent,Fn=Re.onHeaderRow,zn=Re.index,Ln=de(et,["prefixCls","direction"]),xr=Ln.prefixCls,lr=Ln.direction,rr;Fn&&(rr=Fn(Dt.map(function(Kn){return Kn.column}),zn));var Gn=vt(Dt.map(function(Kn){return Kn.column}));return y.createElement(gn,rr,Dt.map(function(Kn,ia){var Tr=Kn.column,ca=Wt(Kn.colStart,Kn.colEnd,an,$t,lr),xa;return Tr&&Tr.onHeaderCell&&(xa=Kn.column.onHeaderCell(Tr)),y.createElement(ln,(0,We.Z)({},Kn,{scope:Tr.title?Kn.colSpan>1?"colgroup":"col":null,ellipsis:Tr.ellipsis,align:Tr.align,component:Mn,prefixCls:xr,key:Gn[ia]},ca,{additionalProps:xa,rowType:"header"}))}))},pn=In;function On(Ze){var Re=[];function Dt(Mn,Fn){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[zn]=Re[zn]||[];var Ln=Fn,xr=Mn.filter(Boolean).map(function(lr){var rr={key:lr.key,className:lr.className||"",children:lr.title,column:lr,colStart:Ln},Gn=1,Kn=lr.children;return Kn&&Kn.length>0&&(Gn=Dt(Kn,Ln,zn+1).reduce(function(ia,Tr){return ia+Tr},0),rr.hasSubColumns=!0),"colSpan"in lr&&(Gn=lr.colSpan),"rowSpan"in lr&&(rr.rowSpan=lr.rowSpan),rr.colSpan=Gn,rr.colEnd=rr.colStart+Gn-1,Re[zn].push(rr),Ln+=Gn,Gn});return xr}Dt(Ze,0);for(var $t=Re.length,an=function(Fn){Re[Fn].forEach(function(zn){!("rowSpan"in zn)&&!zn.hasSubColumns&&(zn.rowSpan=$t-Fn)})},gn=0;gn<$t;gn+=1)an(gn);return Re}var fr=function(Re){var Dt=Re.stickyOffsets,$t=Re.columns,an=Re.flattenColumns,gn=Re.onHeaderRow,Mn=de(et,["prefixCls","getComponent"]),Fn=Mn.prefixCls,zn=Mn.getComponent,Ln=y.useMemo(function(){return On($t)},[$t]),xr=zn(["header","wrapper"],"thead"),lr=zn(["header","row"],"tr"),rr=zn(["header","cell"],"th");return y.createElement(xr,{className:"".concat(Fn,"-thead")},Ln.map(function(Gn,Kn){var ia=y.createElement(pn,{key:Kn,flattenColumns:an,cells:Gn,stickyOffsets:Dt,rowComponent:lr,cellComponent:rr,onHeaderRow:gn,index:Kn});return ia}))},Qn=St(fr),cr=E(11592);function Cr(Ze){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Re=="number"?Re:Re.endsWith("%")?Ze*parseFloat(Re)/100:null}function gr(Ze,Re,Dt){return y.useMemo(function(){if(Re&&Re>0){var $t=0,an=0;Ze.forEach(function(rr){var Gn=Cr(Re,rr.width);Gn?$t+=Gn:an+=1});var gn=Math.max(Re,Dt),Mn=Math.max(gn-$t,an),Fn=an,zn=Mn/an,Ln=0,xr=Ze.map(function(rr){var Gn=(0,$e.Z)({},rr),Kn=Cr(Re,Gn.width);if(Kn)Gn.width=Kn;else{var ia=Math.floor(zn);Gn.width=Fn===1?Mn:ia,Mn-=ia,Fn-=1}return Ln+=Gn.width,Gn});if(Ln<gn){var lr=gn/Ln;Mn=gn,xr.forEach(function(rr,Gn){var Kn=Math.floor(rr.width*lr);rr.width=Gn===xr.length-1?Mn:Kn,Mn-=Kn})}return[xr,Math.max(Ln,gn)]}return[Ze,Re]},[Ze,Re,Dt])}var Hr=["children"],Zr=["fixed"];function Pn(Ze){return(0,cr.Z)(Ze).filter(function(Re){return y.isValidElement(Re)}).map(function(Re){var Dt=Re.key,$t=Re.props,an=$t.children,gn=(0,se.Z)($t,Hr),Mn=(0,$e.Z)({key:Dt},gn);return an&&(Mn.children=Pn(an)),Mn})}function $n(Ze){return Ze.filter(function(Re){return Re&&(0,st.Z)(Re)==="object"&&!Re.hidden}).map(function(Re){var Dt=Re.children;return Dt&&Dt.length>0?(0,$e.Z)((0,$e.Z)({},Re),{},{children:$n(Dt)}):Re})}function dr(Ze){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ze.filter(function(Dt){return Dt&&(0,st.Z)(Dt)==="object"}).reduce(function(Dt,$t,an){var gn=$t.fixed,Mn=gn===!0?"left":gn,Fn="".concat(Re,"-").concat(an),zn=$t.children;return zn&&zn.length>0?[].concat((0,Ot.Z)(Dt),(0,Ot.Z)(dr(zn,Fn).map(function(Ln){return(0,$e.Z)({fixed:Mn},Ln)}))):[].concat((0,Ot.Z)(Dt),[(0,$e.Z)((0,$e.Z)({key:Fn},$t),{},{fixed:Mn})])},[])}function hr(Ze){return Ze.map(function(Re){var Dt=Re.fixed,$t=(0,se.Z)(Re,Zr),an=Dt;return Dt==="left"?an="right":Dt==="right"&&(an="left"),(0,$e.Z)({fixed:an},$t)})}function _t(Ze,Re){var Dt=Ze.prefixCls,$t=Ze.columns,an=Ze.children,gn=Ze.expandable,Mn=Ze.expandedKeys,Fn=Ze.columnTitle,zn=Ze.getRowKey,Ln=Ze.onTriggerExpand,xr=Ze.expandIcon,lr=Ze.rowExpandable,rr=Ze.expandIconColumnIndex,Gn=Ze.direction,Kn=Ze.expandRowByClick,ia=Ze.columnWidth,Tr=Ze.fixed,ca=Ze.scrollWidth,xa=Ze.clientWidth,da=y.useMemo(function(){var qa=$t||Pn(an)||[];return $n(qa.slice())},[$t,an]),ha=y.useMemo(function(){if(gn){var qa=da.slice();if(!qa.includes(ge)){var ti=rr||0;ti>=0&&(ti||Tr==="left"||!Tr)&&qa.splice(ti,0,ge),Tr==="right"&&qa.splice(da.length,0,ge)}var Ma=qa.indexOf(ge);qa=qa.filter(function(Ci,Ra){return Ci!==ge||Ra===Ma});var Sa=da[Ma],Ya;Tr?Ya=Tr:Ya=Sa?Sa.fixed:null;var ri=(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},Yt,{className:"".concat(Dt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Fn),"fixed",Ya),"className","".concat(Dt,"-row-expand-icon-cell")),"width",ia),"render",function(Ra,lo,uo){var sl=zn(lo,uo),ul=Mn.has(sl),el=lr?lr(lo):!0,cl=xr({prefixCls:Dt,expanded:ul,expandable:el,record:lo,onExpand:Ln});return Kn?y.createElement("span",{onClick:function(fo){return fo.stopPropagation()}},cl):cl});return qa.map(function(Ci){return Ci===ge?ri:Ci})}return da.filter(function(Ci){return Ci!==ge})},[gn,da,zn,Mn,xr,Gn]),La=y.useMemo(function(){var qa=ha;return Re&&(qa=Re(qa)),qa.length||(qa=[{render:function(){return null}}]),qa},[Re,ha,Gn]),Ja=y.useMemo(function(){return Gn==="rtl"?hr(dr(La)):dr(La)},[La,Gn,ca]),Ka=y.useMemo(function(){for(var qa=-1,ti=Ja.length-1;ti>=0;ti-=1){var Ma=Ja[ti].fixed;if(Ma==="left"||Ma===!0){qa=ti;break}}if(qa>=0)for(var Sa=0;Sa<=qa;Sa+=1){var Ya=Ja[Sa].fixed;if(Ya!=="left"&&Ya!==!0)return!0}var ri=Ja.findIndex(function(lo){var uo=lo.fixed;return uo==="right"});if(ri>=0)for(var Ci=ri;Ci<Ja.length;Ci+=1){var Ra=Ja[Ci].fixed;if(Ra!=="right")return!0}return!1},[Ja]),to=gr(Ja,ca,xa),wi=(0,we.Z)(to,2),hi=wi[0],Wi=wi[1];return[La,hi,Wi,Ka]}var Qt=_t;function ct(Ze,Re,Dt){var $t=bn(Ze),an=$t.expandIcon,gn=$t.expandedRowKeys,Mn=$t.defaultExpandedRowKeys,Fn=$t.defaultExpandAllRows,zn=$t.expandedRowRender,Ln=$t.onExpand,xr=$t.onExpandedRowsChange,lr=$t.childrenColumnName,rr=an||Lt,Gn=lr||"children",Kn=y.useMemo(function(){return zn?"row":Ze.expandable&&Ze.internalHooks===me&&Ze.expandable.__PARENT_RENDER_ICON__||Re.some(function(La){return La&&(0,st.Z)(La)==="object"&&La[Gn]})?"nest":!1},[!!zn,Re]),ia=y.useState(function(){return Mn||(Fn?cn(Re,Dt,Gn):[])}),Tr=(0,we.Z)(ia,2),ca=Tr[0],xa=Tr[1],da=y.useMemo(function(){return new Set(gn||ca||[])},[gn,ca]),ha=y.useCallback(function(La){var Ja=Dt(La,Re.indexOf(La)),Ka,to=da.has(Ja);to?(da.delete(Ja),Ka=(0,Ot.Z)(da)):Ka=[].concat((0,Ot.Z)(da),[Ja]),xa(Ka),Ln&&Ln(!to,La),xr&&xr(Ka)},[Dt,da,Re,Ln,xr]);return[$t,Kn,da,rr,Gn,ha]}function Zt(Ze,Re,Dt){var $t=Ze.map(function(an,gn){return Wt(gn,gn,Ze,Re,Dt)});return(0,ce.Z)(function(){return $t},[$t],function(an,gn){return!(0,Ce.Z)(an,gn)})}function ot(Ze){var Re=(0,y.useRef)(Ze),Dt=(0,y.useState)({}),$t=(0,we.Z)(Dt,2),an=$t[1],gn=(0,y.useRef)(null),Mn=(0,y.useRef)([]);function Fn(zn){Mn.current.push(zn);var Ln=Promise.resolve();gn.current=Ln,Ln.then(function(){if(gn.current===Ln){var xr=Mn.current,lr=Re.current;Mn.current=[],xr.forEach(function(rr){Re.current=rr(Re.current)}),gn.current=null,lr!==Re.current&&an({})}})}return(0,y.useEffect)(function(){return function(){gn.current=null}},[]),[Re.current,Fn]}function Kt(Ze){var Re=(0,y.useRef)(Ze||null),Dt=(0,y.useRef)();function $t(){window.clearTimeout(Dt.current)}function an(Mn){Re.current=Mn,$t(),Dt.current=window.setTimeout(function(){Re.current=null,Dt.current=void 0},100)}function gn(){return Re.current}return(0,y.useEffect)(function(){return $t},[]),[an,gn]}function Ft(){var Ze=y.useState(-1),Re=(0,we.Z)(Ze,2),Dt=Re[0],$t=Re[1],an=y.useState(-1),gn=(0,we.Z)(an,2),Mn=gn[0],Fn=gn[1],zn=y.useCallback(function(Ln,xr){$t(Ln),Fn(xr)},[]);return[Dt,Mn,zn]}var ar=E(47273),mr=(0,ar.Z)()?window:null;function At(Ze,Re){var Dt=(0,st.Z)(Ze)==="object"?Ze:{},$t=Dt.offsetHeader,an=$t===void 0?0:$t,gn=Dt.offsetSummary,Mn=gn===void 0?0:gn,Fn=Dt.offsetScroll,zn=Fn===void 0?0:Fn,Ln=Dt.getContainer,xr=Ln===void 0?function(){return mr}:Ln,lr=xr()||mr,rr=!!Ze;return y.useMemo(function(){return{isSticky:rr,stickyClassName:rr?"".concat(Re,"-sticky-holder"):"",offsetHeader:an,offsetSummary:Mn,offsetScroll:zn,container:lr}},[rr,zn,an,Mn,Re,lr])}function Mt(Ze,Re,Dt){var $t=(0,y.useMemo)(function(){var an=Re.length,gn=function(Ln,xr,lr){for(var rr=[],Gn=0,Kn=Ln;Kn!==xr;Kn+=lr)rr.push(Gn),Re[Kn].fixed&&(Gn+=Ze[Kn]||0);return rr},Mn=gn(0,an,1),Fn=gn(an-1,-1,-1).reverse();return Dt==="rtl"?{left:Fn,right:Mn}:{left:Mn,right:Fn}},[Ze,Re,Dt]);return $t}var kt=Mt;function Vt(Ze){var Re=Ze.className,Dt=Ze.children;return y.createElement("div",{className:Re},Dt)}var Nn=Vt,Hn=E(8224),Un=E(16089),Xn=E(76846);function pr(Ze){var Re=(0,Xn.bn)(Ze),Dt=Re.getBoundingClientRect(),$t=document.documentElement;return{left:Dt.left+(window.pageXOffset||$t.scrollLeft)-($t.clientLeft||document.body.clientLeft||0),top:Dt.top+(window.pageYOffset||$t.scrollTop)-($t.clientTop||document.body.clientTop||0)}}var wr=function(Re,Dt){var $t,an,gn=Re.scrollBodyRef,Mn=Re.onScroll,Fn=Re.offsetScroll,zn=Re.container,Ln=Re.direction,xr=de(et,"prefixCls"),lr=(($t=gn.current)===null||$t===void 0?void 0:$t.scrollWidth)||0,rr=((an=gn.current)===null||an===void 0?void 0:an.clientWidth)||0,Gn=lr&&rr*(rr/lr),Kn=y.useRef(),ia=ot({scrollLeft:0,isHiddenScrollBar:!0}),Tr=(0,we.Z)(ia,2),ca=Tr[0],xa=Tr[1],da=y.useRef({delta:0,x:0}),ha=y.useState(!1),La=(0,we.Z)(ha,2),Ja=La[0],Ka=La[1],to=y.useRef(null);y.useEffect(function(){return function(){Un.Z.cancel(to.current)}},[]);var wi=function(){Ka(!1)},hi=function(Sa){Sa.persist(),da.current.delta=Sa.pageX-ca.scrollLeft,da.current.x=0,Ka(!0),Sa.preventDefault()},Wi=function(Sa){var Ya,ri=Sa||((Ya=window)===null||Ya===void 0?void 0:Ya.event),Ci=ri.buttons;if(!Ja||Ci===0){Ja&&Ka(!1);return}var Ra=da.current.x+Sa.pageX-da.current.x-da.current.delta,lo=Ln==="rtl";Ra=Math.max(lo?Gn-rr:0,Math.min(lo?0:rr-Gn,Ra));var uo=!lo||Math.abs(Ra)+Math.abs(Gn)<rr;uo&&(Mn({scrollLeft:Ra/rr*(lr+2)}),da.current.x=Sa.pageX)},qa=function(){Un.Z.cancel(to.current),to.current=(0,Un.Z)(function(){if(gn.current){var Sa=pr(gn.current).top,Ya=Sa+gn.current.offsetHeight,ri=zn===window?document.documentElement.scrollTop+window.innerHeight:pr(zn).top+zn.clientHeight;Ya-(0,Tt.Z)()<=ri||Sa>=ri-Fn?xa(function(Ci){return(0,$e.Z)((0,$e.Z)({},Ci),{},{isHiddenScrollBar:!0})}):xa(function(Ci){return(0,$e.Z)((0,$e.Z)({},Ci),{},{isHiddenScrollBar:!1})})}})},ti=function(Sa){xa(function(Ya){return(0,$e.Z)((0,$e.Z)({},Ya),{},{scrollLeft:Sa/lr*rr||0})})};return y.useImperativeHandle(Dt,function(){return{setScrollLeft:ti,checkScrollBarVisible:qa}}),y.useEffect(function(){var Ma=(0,Hn.Z)(document.body,"mouseup",wi,!1),Sa=(0,Hn.Z)(document.body,"mousemove",Wi,!1);return qa(),function(){Ma.remove(),Sa.remove()}},[Gn,Ja]),y.useEffect(function(){if(gn.current){for(var Ma=[],Sa=(0,Xn.bn)(gn.current);Sa;)Ma.push(Sa),Sa=Sa.parentElement;return Ma.forEach(function(Ya){return Ya.addEventListener("scroll",qa,!1)}),window.addEventListener("resize",qa,!1),window.addEventListener("scroll",qa,!1),zn.addEventListener("scroll",qa,!1),function(){Ma.forEach(function(Ya){return Ya.removeEventListener("scroll",qa)}),window.removeEventListener("resize",qa),window.removeEventListener("scroll",qa),zn.removeEventListener("scroll",qa)}}},[zn]),y.useEffect(function(){ca.isHiddenScrollBar||xa(function(Ma){var Sa=gn.current;return Sa?(0,$e.Z)((0,$e.Z)({},Ma),{},{scrollLeft:Sa.scrollLeft/Sa.scrollWidth*Sa.clientWidth}):Ma})},[ca.isHiddenScrollBar]),lr<=rr||!Gn||ca.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,Tt.Z)(),width:rr,bottom:Fn},className:"".concat(xr,"-sticky-scroll")},y.createElement("div",{onMouseDown:hi,ref:Kn,className:xe()("".concat(xr,"-sticky-scroll-bar"),(0,pe.Z)({},"".concat(xr,"-sticky-scroll-bar-active"),Ja)),style:{width:"".concat(Gn,"px"),transform:"translate3d(".concat(ca.scrollLeft,"px, 0, 0)")}}))},Or=y.forwardRef(wr);function Lr(Ze){return null}var Sr=Lr;function Mr(Ze){return null}var Vr=Mr,oa="rc-table",ra=[],Oa={};function ba(){return"No Data"}function Kr(Ze,Re){var Dt=(0,$e.Z)({rowKey:"key",prefixCls:oa,emptyText:ba},Ze),$t=Dt.prefixCls,an=Dt.className,gn=Dt.rowClassName,Mn=Dt.style,Fn=Dt.data,zn=Dt.rowKey,Ln=Dt.scroll,xr=Dt.tableLayout,lr=Dt.direction,rr=Dt.title,Gn=Dt.footer,Kn=Dt.summary,ia=Dt.caption,Tr=Dt.id,ca=Dt.showHeader,xa=Dt.components,da=Dt.emptyText,ha=Dt.onRow,La=Dt.onHeaderRow,Ja=Dt.onScroll,Ka=Dt.internalHooks,to=Dt.transformColumns,wi=Dt.internalRefs,hi=Dt.tailor,Wi=Dt.getContainerWidth,qa=Dt.sticky,ti=Dt.rowHoverable,Ma=ti===void 0?!0:ti,Sa=Fn||ra,Ya=!!Sa.length,ri=Ka===me,Ci=y.useCallback(function(yo,No){return(0,Et.Z)(xa,yo)||No},[xa]),Ra=y.useMemo(function(){return typeof zn=="function"?zn:function(yo){var No=yo&&yo[zn];return No}},[zn]),lo=Ci(["body"]),uo=Ft(),sl=(0,we.Z)(uo,3),ul=sl[0],el=sl[1],cl=sl[2],gl=ct(Dt,Sa,Ra),fo=(0,we.Z)(gl,6),vo=fo[0],El=fo[1],dl=fo[2],ai=fo[3],Xi=fo[4],ci=fo[5],Ua=Ln==null?void 0:Ln.x,Po=y.useState(0),Bo=(0,we.Z)(Po,2),ol=Bo[0],Yo=Bo[1],$o=Qt((0,$e.Z)((0,$e.Z)((0,$e.Z)({},Dt),vo),{},{expandable:!!vo.expandedRowRender,columnTitle:vo.columnTitle,expandedKeys:dl,getRowKey:Ra,onTriggerExpand:ci,expandIcon:ai,expandIconColumnIndex:vo.expandIconColumnIndex,direction:lr,scrollWidth:ri&&hi&&typeof Ua=="number"?Ua:null,clientWidth:ol}),ri?to:null),Cl=(0,we.Z)($o,4),xi=Cl[0],Li=Cl[1],Mo=Cl[2],ko=Cl[3],jo=Mo!=null?Mo:Ua,Tl=y.useMemo(function(){return{columns:xi,flattenColumns:Li}},[xi,Li]),xl=y.useRef(),rs=y.useRef(),tl=y.useRef(),go=y.useRef();y.useImperativeHandle(Re,function(){return{nativeElement:xl.current,scrollTo:function(No){var Ql;if(tl.current instanceof HTMLElement){var hs=No.index,Jl=No.top,su=No.key;if(Ct(Jl)){var Es;(Es=tl.current)===null||Es===void 0||Es.scrollTo({top:Jl})}else{var $s,qs=su!=null?su:Ra(Sa[hs]);($s=tl.current.querySelector('[data-row-key="'.concat(qs,'"]')))===null||$s===void 0||$s.scrollIntoView()}}else(Ql=tl.current)!==null&&Ql!==void 0&&Ql.scrollTo&&tl.current.scrollTo(No)}}});var Qo=y.useRef(),nl=y.useState(!1),Ol=(0,we.Z)(nl,2),pl=Ol[0],Oo=Ol[1],fl=y.useState(!1),Ro=(0,we.Z)(fl,2),Vl=Ro[0],Bl=Ro[1],Ll=y.useState(new Map),as=(0,we.Z)(Ll,2),As=as[0],Jo=as[1],gu=vt(Li),es=gu.map(function(yo){return As.get(yo)}),Bs=y.useMemo(function(){return es},[es.join("_")]),ms=kt(Bs,Li,lr),ss=Ln&&zt(Ln.y),Ho=Ln&&zt(jo)||!!vo.fixed,ps=Ho&&Li.some(function(yo){var No=yo.fixed;return No}),Os=y.useRef(),Ns=At(qa,$t),_s=Ns.isSticky,Bu=Ns.offsetHeader,ru=Ns.offsetSummary,yu=Ns.offsetScroll,Du=Ns.stickyClassName,Ru=Ns.container,io=y.useMemo(function(){return Kn==null?void 0:Kn(Sa)},[Kn,Sa]),Do=(ss||_s)&&y.isValidElement(io)&&io.type===Ve&&io.props.fixed,hl,Sl,Zl;ss&&(Sl={overflowY:Ya?"scroll":"auto",maxHeight:Ln.y}),Ho&&(hl={overflowX:"auto"},ss||(Sl={overflowY:"hidden"}),Zl={width:jo===!0?"auto":jo,minWidth:"100%"});var Ml=y.useCallback(function(yo,No){Jo(function(Ql){if(Ql.get(yo)!==No){var hs=new Map(Ql);return hs.set(yo,No),hs}return Ql})},[]),us=Kt(null),Yl=(0,we.Z)(us,2),Qs=Yl[0],au=Yl[1];function iu(yo,No){No&&(typeof No=="function"?No(yo):No.scrollLeft!==yo&&(No.scrollLeft=yo,No.scrollLeft!==yo&&setTimeout(function(){No.scrollLeft=yo},0)))}var Ks=(0,Se.Z)(function(yo){var No=yo.currentTarget,Ql=yo.scrollLeft,hs=lr==="rtl",Jl=typeof Ql=="number"?Ql:No.scrollLeft,su=No||Oa;if(!au()||au()===su){var Es;Qs(su),iu(Jl,rs.current),iu(Jl,tl.current),iu(Jl,Qo.current),iu(Jl,(Es=Os.current)===null||Es===void 0?void 0:Es.setScrollLeft)}var $s=No||rs.current;if($s){var qs=ri&&hi&&typeof jo=="number"?jo:$s.scrollWidth,Ku=$s.clientWidth;if(qs===Ku){Oo(!1),Bl(!1);return}hs?(Oo(-Jl<qs-Ku),Bl(-Jl>0)):(Oo(Jl>0),Bl(Jl<qs-Ku))}}),Fu=(0,Se.Z)(function(yo){Ks(yo),Ja==null||Ja(yo)}),Gs=function(){if(Ho&&tl.current){var No;Ks({currentTarget:(0,Xn.bn)(tl.current),scrollLeft:(No=tl.current)===null||No===void 0?void 0:No.scrollLeft})}else Oo(!1),Bl(!1)},ku=function(No){var Ql,hs=No.width;(Ql=Os.current)===null||Ql===void 0||Ql.checkScrollBarVisible();var Jl=xl.current?xl.current.offsetWidth:hs;ri&&Wi&&xl.current&&(Jl=Wi(xl.current,Jl)||Jl),Jl!==ol&&(Gs(),Yo(Jl))},Iu=y.useRef(!1);y.useEffect(function(){Iu.current&&Gs()},[Ho,Fn,xi.length]),y.useEffect(function(){Iu.current=!0},[]);var Us=y.useState(0),tc=(0,we.Z)(Us,2),Xs=tc[0],Lu=tc[1],lc=y.useState(!0),bu=(0,we.Z)(lc,2),Eu=bu[0],sc=bu[1];(0,Ee.Z)(function(){(!hi||!ri)&&(tl.current instanceof Element?Lu((0,Tt.o)(tl.current).width):Lu((0,Tt.o)(go.current).width)),sc((0,wt.G)("position","sticky"))},[]),y.useEffect(function(){ri&&wi&&(wi.body.current=tl.current)});var uc=y.useCallback(function(yo){return y.createElement(y.Fragment,null,y.createElement(Qn,yo),Do==="top"&&y.createElement(Qe,yo,io))},[Do,io]),Cu=y.useCallback(function(yo){return y.createElement(Qe,yo,io)},[io]),Zu=Ci(["table"],"table"),xu=y.useMemo(function(){return xr||(ps?jo==="max-content"?"auto":"fixed":ss||_s||Li.some(function(yo){var No=yo.ellipsis;return No})?"fixed":"auto")},[ss,ps,Li,xr,_s]),$u,ou={colWidths:Bs,columCount:Li.length,stickyOffsets:ms,onHeaderRow:La,fixHeader:ss,scroll:Ln},ju=y.useMemo(function(){return Ya?null:typeof da=="function"?da():da},[Ya,da]),nc=y.createElement(Pt,{data:Sa,measureColumnWidth:ss||Ho||_s}),Wu=y.createElement(Zn,{colWidths:Li.map(function(yo){var No=yo.width;return No}),columns:Li}),zu=ia!=null?y.createElement("caption",{className:"".concat($t,"-caption")},ia):void 0,rc=(0,Je.Z)(Dt,{data:!0}),Pu=(0,Je.Z)(Dt,{aria:!0});if(ss||_s){var Js;typeof lo=="function"?(Js=lo(Sa,{scrollbarSize:Xs,ref:tl,onScroll:Ks}),ou.colWidths=Li.map(function(yo,No){var Ql=yo.width,hs=No===Li.length-1?Ql-Xs:Ql;return typeof hs=="number"&&!Number.isNaN(hs)?hs:0})):Js=y.createElement("div",{style:(0,$e.Z)((0,$e.Z)({},hl),Sl),onScroll:Fu,ref:tl,className:xe()("".concat($t,"-body"))},y.createElement(Zu,(0,We.Z)({style:(0,$e.Z)((0,$e.Z)({},Zl),{},{tableLayout:xu})},Pu),zu,Wu,nc,!Do&&io&&y.createElement(Qe,{stickyOffsets:ms,flattenColumns:Li},io)));var lu=(0,$e.Z)((0,$e.Z)((0,$e.Z)({noData:!Sa.length,maxContentScroll:Ho&&jo==="max-content"},ou),Tl),{},{direction:lr,stickyClassName:Du,onScroll:Ks});$u=y.createElement(y.Fragment,null,ca!==!1&&y.createElement(tn,(0,We.Z)({},lu,{stickyTopOffset:Bu,className:"".concat($t,"-header"),ref:rs}),uc),Js,Do&&Do!=="top"&&y.createElement(tn,(0,We.Z)({},lu,{stickyBottomOffset:ru,className:"".concat($t,"-summary"),ref:Qo}),Cu),_s&&tl.current&&tl.current instanceof Element&&y.createElement(Or,{ref:Os,offsetScroll:yu,scrollBodyRef:tl,onScroll:Ks,container:Ru,direction:lr}))}else $u=y.createElement("div",{style:(0,$e.Z)((0,$e.Z)({},hl),Sl),className:xe()("".concat($t,"-content")),onScroll:Ks,ref:tl},y.createElement(Zu,(0,We.Z)({style:(0,$e.Z)((0,$e.Z)({},Zl),{},{tableLayout:xu})},Pu),zu,Wu,ca!==!1&&y.createElement(Qn,(0,We.Z)({},ou,Tl)),nc,io&&y.createElement(Qe,{stickyOffsets:ms,flattenColumns:Li},io)));var Hu=y.createElement("div",(0,We.Z)({className:xe()($t,an,(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat($t,"-rtl"),lr==="rtl"),"".concat($t,"-ping-left"),pl),"".concat($t,"-ping-right"),Vl),"".concat($t,"-layout-fixed"),xr==="fixed"),"".concat($t,"-fixed-header"),ss),"".concat($t,"-fixed-column"),ps),"".concat($t,"-fixed-column-gapped"),ps&&ko),"".concat($t,"-scroll-horizontal"),Ho),"".concat($t,"-has-fix-left"),Li[0]&&Li[0].fixed),"".concat($t,"-has-fix-right"),Li[Li.length-1]&&Li[Li.length-1].fixed==="right")),style:Mn,id:Tr,ref:xl},rc),rr&&y.createElement(Nn,{className:"".concat($t,"-title")},rr(Sa)),y.createElement("div",{ref:go,className:"".concat($t,"-container")},$u),Gn&&y.createElement(Nn,{className:"".concat($t,"-footer")},Gn(Sa)));Ho&&(Hu=y.createElement(gt.Z,{onResize:ku},Hu));var Vu=Zt(Li,ms,lr),cc=y.useMemo(function(){return{scrollX:jo,prefixCls:$t,getComponent:Ci,scrollbarSize:Xs,direction:lr,fixedInfoList:Vu,isSticky:_s,supportSticky:Eu,componentWidth:ol,fixHeader:ss,fixColumn:ps,horizonScroll:Ho,tableLayout:xu,rowClassName:gn,expandedRowClassName:vo.expandedRowClassName,expandIcon:ai,expandableType:El,expandRowByClick:vo.expandRowByClick,expandedRowRender:vo.expandedRowRender,onTriggerExpand:ci,expandIconColumnIndex:vo.expandIconColumnIndex,indentSize:vo.indentSize,allColumnsFixedLeft:Li.every(function(yo){return yo.fixed==="left"}),emptyNode:ju,columns:xi,flattenColumns:Li,onColumnResize:Ml,hoverStartRow:ul,hoverEndRow:el,onHover:cl,rowExpandable:vo.rowExpandable,onRow:ha,getRowKey:Ra,expandedKeys:dl,childrenColumnName:Xi,rowHoverable:Ma}},[jo,$t,Ci,Xs,lr,Vu,_s,Eu,ol,ss,ps,Ho,xu,gn,vo.expandedRowClassName,ai,El,vo.expandRowByClick,vo.expandedRowRender,ci,vo.expandIconColumnIndex,vo.indentSize,ju,xi,Li,Ml,ul,el,cl,vo.rowExpandable,ha,Ra,dl,Xi,Ma]);return y.createElement(et.Provider,{value:cc},Hu)}var ga=y.forwardRef(Kr);function Qa(Ze){return nt(ga,Ze)}var Da=Qa();Da.EXPAND_COLUMN=ge,Da.INTERNAL_HOOKS=me,Da.Column=Sr,Da.ColumnGroup=Vr,Da.Summary=Ke;var Ea=Da,Rr=E(48911),Za=Fe(null),Pa=Fe(null);function la(Ze,Re,Dt){var $t=Re||1;return Dt[Ze+$t]-(Dt[Ze]||0)}function Xr(Ze){var Re=Ze.rowInfo,Dt=Ze.column,$t=Ze.colIndex,an=Ze.indent,gn=Ze.index,Mn=Ze.component,Fn=Ze.renderIndex,zn=Ze.record,Ln=Ze.style,xr=Ze.className,lr=Ze.inverse,rr=Ze.getHeight,Gn=Dt.render,Kn=Dt.dataIndex,ia=Dt.className,Tr=Dt.width,ca=de(Pa,["columnsOffset"]),xa=ca.columnsOffset,da=Xe(Re,Dt,$t,an,gn),ha=da.key,La=da.fixedInfo,Ja=da.appendCellNode,Ka=da.additionalCellProps,to=Ka.style,wi=Ka.colSpan,hi=wi===void 0?1:wi,Wi=Ka.rowSpan,qa=Wi===void 0?1:Wi,ti=$t-1,Ma=la(ti,hi,xa),Sa=hi>1?Tr-Ma:0,Ya=(0,$e.Z)((0,$e.Z)((0,$e.Z)({},to),Ln),{},{flex:"0 0 ".concat(Ma,"px"),width:"".concat(Ma,"px"),marginRight:Sa,pointerEvents:"auto"}),ri=y.useMemo(function(){return lr?qa<=1:hi===0||qa===0||qa>1},[qa,hi,lr]);ri?Ya.visibility="hidden":lr&&(Ya.height=rr==null?void 0:rr(qa));var Ci=ri?function(){return null}:Gn,Ra={};return(qa===0||hi===0)&&(Ra.rowSpan=1,Ra.colSpan=1),y.createElement(ln,(0,We.Z)({className:xe()(ia,xr),ellipsis:Dt.ellipsis,align:Dt.align,scope:Dt.rowScope,component:Mn,prefixCls:Re.prefixCls,key:ha,record:zn,index:gn,renderIndex:Fn,dataIndex:Kn,render:Ci,shouldCellUpdate:Dt.shouldCellUpdate},La,{appendNode:Ja,additionalProps:(0,$e.Z)((0,$e.Z)({},Ka),{},{style:Ya},Ra)}))}var $a=Xr,Mi=["data","index","className","rowKey","style","extra","getHeight"],$i=y.forwardRef(function(Ze,Re){var Dt=Ze.data,$t=Ze.index,an=Ze.className,gn=Ze.rowKey,Mn=Ze.style,Fn=Ze.extra,zn=Ze.getHeight,Ln=(0,se.Z)(Ze,Mi),xr=Dt.record,lr=Dt.indent,rr=Dt.index,Gn=de(et,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Kn=Gn.scrollX,ia=Gn.flattenColumns,Tr=Gn.prefixCls,ca=Gn.fixColumn,xa=Gn.componentWidth,da=de(Za,["getComponent"]),ha=da.getComponent,La=un(xr,gn,$t,lr),Ja=ha(["body","row"],"div"),Ka=ha(["body","cell"],"div"),to=La.rowSupportExpand,wi=La.expanded,hi=La.rowProps,Wi=La.expandedRowRender,qa=La.expandedRowClassName,ti;if(to&&wi){var Ma=Wi(xr,$t,lr+1,wi),Sa=Xt(qa,xr,$t,lr),Ya={};ca&&(Ya={style:(0,pe.Z)({},"--virtual-width","".concat(xa,"px"))});var ri="".concat(Tr,"-expanded-row-cell");ti=y.createElement(Ja,{className:xe()("".concat(Tr,"-expanded-row"),"".concat(Tr,"-expanded-row-level-").concat(lr+1),Sa)},y.createElement(ln,{component:Ka,prefixCls:Tr,className:xe()(ri,(0,pe.Z)({},"".concat(ri,"-fixed"),ca)),additionalProps:Ya},Ma))}var Ci=(0,$e.Z)((0,$e.Z)({},Mn),{},{width:Kn});Fn&&(Ci.position="absolute",Ci.pointerEvents="none");var Ra=y.createElement(Ja,(0,We.Z)({},hi,Ln,{"data-row-key":gn,ref:to?null:Re,className:xe()(an,"".concat(Tr,"-row"),hi==null?void 0:hi.className,(0,pe.Z)({},"".concat(Tr,"-row-extra"),Fn)),style:(0,$e.Z)((0,$e.Z)({},Ci),hi==null?void 0:hi.style)}),ia.map(function(lo,uo){return y.createElement($a,{key:uo,component:Ka,rowInfo:La,column:lo,colIndex:uo,indent:lr,index:$t,renderIndex:rr,record:xr,inverse:Fn,getHeight:zn})}));return to?y.createElement("div",{ref:Re},Ra,ti):Ra}),Xa=St($i),gi=Xa,Ii=y.forwardRef(function(Ze,Re){var Dt=Ze.data,$t=Ze.onScroll,an=de(et,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),gn=an.flattenColumns,Mn=an.onColumnResize,Fn=an.getRowKey,zn=an.expandedKeys,Ln=an.prefixCls,xr=an.childrenColumnName,lr=an.scrollX,rr=an.direction,Gn=de(Za),Kn=Gn.sticky,ia=Gn.scrollY,Tr=Gn.listItemHeight,ca=Gn.getComponent,xa=Gn.onScroll,da=y.useRef(),ha=Ht(Dt,xr,zn,Fn),La=y.useMemo(function(){var ti=0;return gn.map(function(Ma){var Sa=Ma.width,Ya=Ma.key;return ti+=Sa,[Ya,Sa,ti]})},[gn]),Ja=y.useMemo(function(){return La.map(function(ti){return ti[2]})},[La]);y.useEffect(function(){La.forEach(function(ti){var Ma=(0,we.Z)(ti,2),Sa=Ma[0],Ya=Ma[1];Mn(Sa,Ya)})},[La]),y.useImperativeHandle(Re,function(){var ti,Ma={scrollTo:function(Ya){var ri;(ri=da.current)===null||ri===void 0||ri.scrollTo(Ya)},nativeElement:(ti=da.current)===null||ti===void 0?void 0:ti.nativeElement};return Object.defineProperty(Ma,"scrollLeft",{get:function(){var Ya;return((Ya=da.current)===null||Ya===void 0?void 0:Ya.getScrollInfo().x)||0},set:function(Ya){var ri;(ri=da.current)===null||ri===void 0||ri.scrollTo({left:Ya})}}),Ma});var Ka=function(Ma,Sa){var Ya,ri=(Ya=ha[Sa])===null||Ya===void 0?void 0:Ya.record,Ci=Ma.onCell;if(Ci){var Ra,lo=Ci(ri,Sa);return(Ra=lo==null?void 0:lo.rowSpan)!==null&&Ra!==void 0?Ra:1}return 1},to=function(Ma){var Sa=Ma.start,Ya=Ma.end,ri=Ma.getSize,Ci=Ma.offsetY;if(Ya<0)return null;for(var Ra=gn.filter(function(ai){return Ka(ai,Sa)===0}),lo=Sa,uo=function(Xi){if(Ra=Ra.filter(function(ci){return Ka(ci,Xi)===0}),!Ra.length)return lo=Xi,1},sl=Sa;sl>=0&&!uo(sl);sl-=1);for(var ul=gn.filter(function(ai){return Ka(ai,Ya)!==1}),el=Ya,cl=function(Xi){if(ul=ul.filter(function(ci){return Ka(ci,Xi)!==1}),!ul.length)return el=Math.max(Xi-1,Ya),1},gl=Ya;gl<ha.length&&!cl(gl);gl+=1);for(var fo=[],vo=function(Xi){var ci=ha[Xi];if(!ci)return 1;gn.some(function(Ua){return Ka(Ua,Xi)>1})&&fo.push(Xi)},El=lo;El<=el;El+=1)vo(El);var dl=fo.map(function(ai){var Xi=ha[ai],ci=Fn(Xi.record,ai),Ua=function(ol){var Yo=ai+ol-1,$o=Fn(ha[Yo].record,Yo),Cl=ri(ci,$o);return Cl.bottom-Cl.top},Po=ri(ci);return y.createElement(gi,{key:ai,data:Xi,rowKey:ci,index:ai,style:{top:-Ci+Po.top},extra:!0,getHeight:Ua})});return dl},wi=y.useMemo(function(){return{columnsOffset:Ja}},[Ja]),hi="".concat(Ln,"-tbody"),Wi=ca(["body","wrapper"]),qa={};return Kn&&(qa.position="sticky",qa.bottom=0,(0,st.Z)(Kn)==="object"&&Kn.offsetScroll&&(qa.bottom=Kn.offsetScroll)),y.createElement(Pa.Provider,{value:wi},y.createElement(Rr.Z,{fullHeight:!1,ref:da,prefixCls:"".concat(hi,"-virtual"),styles:{horizontalScrollBar:qa},className:hi,height:ia,itemHeight:Tr||24,data:ha,itemKey:function(Ma){return Fn(Ma.record)},component:Wi,scrollWidth:lr,direction:rr,onVirtualScroll:function(Ma){var Sa,Ya=Ma.x;$t({currentTarget:(Sa=da.current)===null||Sa===void 0?void 0:Sa.nativeElement,scrollLeft:Ya})},onScroll:xa,extraRender:to},function(ti,Ma,Sa){var Ya=Fn(ti.record,Ma);return y.createElement(gi,{data:ti,rowKey:Ya,index:Ma,style:Sa.style})}))}),Ri=St(Ii),Bi=Ri,ei=function(Re,Dt){var $t=Dt.ref,an=Dt.onScroll;return y.createElement(Bi,{ref:$t,data:Re,onScroll:an})};function Ar(Ze,Re){var Dt=Ze.data,$t=Ze.columns,an=Ze.scroll,gn=Ze.sticky,Mn=Ze.prefixCls,Fn=Mn===void 0?oa:Mn,zn=Ze.className,Ln=Ze.listItemHeight,xr=Ze.components,lr=Ze.onScroll,rr=an||{},Gn=rr.x,Kn=rr.y;typeof Gn!="number"&&(Gn=1),typeof Kn!="number"&&(Kn=500);var ia=(0,bt.zX)(function(xa,da){return(0,Et.Z)(xr,xa)||da}),Tr=(0,bt.zX)(lr),ca=y.useMemo(function(){return{sticky:gn,scrollY:Kn,listItemHeight:Ln,getComponent:ia,onScroll:Tr}},[gn,Kn,Ln,ia,Tr]);return y.createElement(Za.Provider,{value:ca},y.createElement(Ea,(0,We.Z)({},Ze,{className:xe()(zn,"".concat(Fn,"-virtual")),scroll:(0,$e.Z)((0,$e.Z)({},an),{},{x:Gn}),components:(0,$e.Z)((0,$e.Z)({},xr),{},{body:Dt!=null&&Dt.length?ei:void 0}),columns:$t,internalHooks:me,tailor:!0,ref:Re})))}var tr=y.forwardRef(Ar);function yr(Ze){return nt(tr,Ze)}var Br=yr(),qn=null,Yr=Ze=>null,Dr=Ze=>null,$r=E(84105),qr=E(82661),Aa=E(34643),Wa=E(34061),na=E(18929);function li(Ze){const[Re,Dt]=(0,y.useState)(null);return[(0,y.useCallback)((gn,Mn,Fn)=>{const zn=Re!=null?Re:gn,Ln=Math.min(zn||0,gn),xr=Math.max(zn||0,gn),lr=Mn.slice(Ln,xr+1).map(Kn=>Ze(Kn)),rr=lr.some(Kn=>!Fn.has(Kn)),Gn=[];return lr.forEach(Kn=>{rr?(Fn.has(Kn)||Gn.push(Kn),Fn.add(Kn)):(Fn.delete(Kn),Gn.push(Kn))}),Dt(rr?xr:null),Gn},[Re]),gn=>{Dt(gn)}]}var di=E(32383),zi=E(62673),Hi=E(75727),Ji=E(47889);const Yi={},Eo="SELECT_ALL",Co="SELECT_INVERT",zo="SELECT_NONE",Go=[],Ta=(Ze,Re)=>{let Dt=[];return(Re||[]).forEach($t=>{Dt.push($t),$t&&typeof $t=="object"&&Ze in $t&&(Dt=[].concat((0,Ot.Z)(Dt),(0,Ot.Z)(Ta(Ze,$t[Ze]))))}),Dt};var ni=(Ze,Re)=>{const{preserveSelectedRowKeys:Dt,selectedRowKeys:$t,defaultSelectedRowKeys:an,getCheckboxProps:gn,onChange:Mn,onSelect:Fn,onSelectAll:zn,onSelectInvert:Ln,onSelectNone:xr,onSelectMultiple:lr,columnWidth:rr,type:Gn,selections:Kn,fixed:ia,renderCell:Tr,hideSelectAll:ca,checkStrictly:xa=!0}=Re||{},{prefixCls:da,data:ha,pageData:La,getRecordByKey:Ja,getRowKey:Ka,expandType:to,childrenColumnName:wi,locale:hi,getPopupContainer:Wi}=Ze,qa=(0,di.ln)("Table"),[ti,Ma]=li(ai=>ai),[Sa,Ya]=(0,na.Z)($t||an||Go,{value:$t}),ri=y.useRef(new Map),Ci=(0,y.useCallback)(ai=>{if(Dt){const Xi=new Map;ai.forEach(ci=>{let Ua=Ja(ci);!Ua&&ri.current.has(ci)&&(Ua=ri.current.get(ci)),Xi.set(ci,Ua)}),ri.current=Xi}},[Ja,Dt]);y.useEffect(()=>{Ci(Sa)},[Sa]);const Ra=(0,y.useMemo)(()=>Ta(wi,La),[wi,La]),{keyEntities:lo}=(0,y.useMemo)(()=>{if(xa)return{keyEntities:null};let ai=ha;if(Dt){const Xi=new Set(Ra.map((Ua,Po)=>Ka(Ua,Po))),ci=Array.from(ri.current).reduce((Ua,Po)=>{let[Bo,ol]=Po;return Xi.has(Bo)?Ua:Ua.concat(ol)},[]);ai=[].concat((0,Ot.Z)(ai),(0,Ot.Z)(ci))}return(0,Wa.I8)(ai,{externalGetKey:Ka,childrenPropName:wi})},[ha,Ka,xa,wi,Dt,Ra]),uo=(0,y.useMemo)(()=>{const ai=new Map;return Ra.forEach((Xi,ci)=>{const Ua=Ka(Xi,ci),Po=(gn?gn(Xi):null)||{};ai.set(Ua,Po)}),ai},[Ra,Ka,gn]),sl=(0,y.useCallback)(ai=>{const Xi=Ka(ai);let ci;return uo.has(Xi)?ci=uo.get(Ka(ai)):ci=gn?gn(ai):void 0,!!(ci!=null&&ci.disabled)},[uo,Ka]),[ul,el]=(0,y.useMemo)(()=>{if(xa)return[Sa||[],[]];const{checkedKeys:ai,halfCheckedKeys:Xi}=(0,Aa.S)(Sa,!0,lo,sl);return[ai||[],Xi]},[Sa,xa,lo,sl]),cl=(0,y.useMemo)(()=>{const ai=Gn==="radio"?ul.slice(0,1):ul;return new Set(ai)},[ul,Gn]),gl=(0,y.useMemo)(()=>Gn==="radio"?new Set:new Set(el),[el,Gn]);y.useEffect(()=>{Re||Ya(Go)},[!!Re]);const fo=(0,y.useCallback)((ai,Xi)=>{let ci,Ua;Ci(ai),Dt?(ci=ai,Ua=ai.map(Po=>ri.current.get(Po))):(ci=[],Ua=[],ai.forEach(Po=>{const Bo=Ja(Po);Bo!==void 0&&(ci.push(Po),Ua.push(Bo))})),Ya(ci),Mn==null||Mn(ci,Ua,{type:Xi})},[Ya,Ja,Mn,Dt]),vo=(0,y.useCallback)((ai,Xi,ci,Ua)=>{if(Fn){const Po=ci.map(Bo=>Ja(Bo));Fn(Ja(ai),Xi,Po,Ua)}fo(ci,"single")},[Fn,Ja,fo]),El=(0,y.useMemo)(()=>!Kn||ca?null:(Kn===!0?[Eo,Co,zo]:Kn).map(Xi=>Xi===Eo?{key:"all",text:hi.selectionAll,onSelect(){fo(ha.map((ci,Ua)=>Ka(ci,Ua)).filter(ci=>{const Ua=uo.get(ci);return!(Ua!=null&&Ua.disabled)||cl.has(ci)}),"all")}}:Xi===Co?{key:"invert",text:hi.selectInvert,onSelect(){const ci=new Set(cl);La.forEach((Po,Bo)=>{const ol=Ka(Po,Bo),Yo=uo.get(ol);Yo!=null&&Yo.disabled||(ci.has(ol)?ci.delete(ol):ci.add(ol))});const Ua=Array.from(ci);Ln&&(qa.deprecated(!1,"onSelectInvert","onChange"),Ln(Ua)),fo(Ua,"invert")}}:Xi===zo?{key:"none",text:hi.selectNone,onSelect(){xr==null||xr(),fo(Array.from(cl).filter(ci=>{const Ua=uo.get(ci);return Ua==null?void 0:Ua.disabled}),"none")}}:Xi).map(Xi=>Object.assign(Object.assign({},Xi),{onSelect:function(){for(var ci,Ua,Po=arguments.length,Bo=new Array(Po),ol=0;ol<Po;ol++)Bo[ol]=arguments[ol];(Ua=Xi.onSelect)===null||Ua===void 0||(ci=Ua).call.apply(ci,[Xi].concat(Bo)),Ma(null)}})),[Kn,cl,La,Ka,Ln,fo]);return[(0,y.useCallback)(ai=>{var Xi;if(!Re)return ai.filter(go=>go!==Yi);let ci=(0,Ot.Z)(ai);const Ua=new Set(cl),Po=Ra.map(Ka).filter(go=>!uo.get(go).disabled),Bo=Po.every(go=>Ua.has(go)),ol=Po.some(go=>Ua.has(go)),Yo=()=>{const go=[];Bo?Po.forEach(nl=>{Ua.delete(nl),go.push(nl)}):Po.forEach(nl=>{Ua.has(nl)||(Ua.add(nl),go.push(nl))});const Qo=Array.from(Ua);zn==null||zn(!Bo,Qo.map(nl=>Ja(nl)),go.map(nl=>Ja(nl))),fo(Qo,"all"),Ma(null)};let $o,Cl;if(Gn!=="radio"){let go;if(El){const Oo={getPopupContainer:Wi,items:El.map((fl,Ro)=>{const{key:Vl,text:Bl,onSelect:Ll}=fl;return{key:Vl!=null?Vl:Ro,onClick:()=>{Ll==null||Ll(Po)},label:Bl}})};go=y.createElement("div",{className:`${da}-selection-extra`},y.createElement(Hi.Z,{menu:Oo,getPopupContainer:Wi},y.createElement("span",null,y.createElement($r.Z,null))))}const Qo=Ra.map((Oo,fl)=>{const Ro=Ka(Oo,fl),Vl=uo.get(Ro)||{};return Object.assign({checked:Ua.has(Ro)},Vl)}).filter(Oo=>{let{disabled:fl}=Oo;return fl}),nl=!!Qo.length&&Qo.length===Ra.length,Ol=nl&&Qo.every(Oo=>{let{checked:fl}=Oo;return fl}),pl=nl&&Qo.some(Oo=>{let{checked:fl}=Oo;return fl});Cl=y.createElement(zi.default,{checked:nl?Ol:!!Ra.length&&Bo,indeterminate:nl?!Ol&&pl:!Bo&&ol,onChange:Yo,disabled:Ra.length===0||nl,"aria-label":go?"Custom selection":"Select all",skipGroup:!0}),$o=!ca&&y.createElement("div",{className:`${da}-selection`},Cl,go)}let xi;Gn==="radio"?xi=(go,Qo,nl)=>{const Ol=Ka(Qo,nl),pl=Ua.has(Ol),Oo=uo.get(Ol);return{node:y.createElement(Ji.ZP,Object.assign({},Oo,{checked:pl,onClick:fl=>{var Ro;fl.stopPropagation(),(Ro=Oo==null?void 0:Oo.onClick)===null||Ro===void 0||Ro.call(Oo,fl)},onChange:fl=>{var Ro;Ua.has(Ol)||vo(Ol,!0,[Ol],fl.nativeEvent),(Ro=Oo==null?void 0:Oo.onChange)===null||Ro===void 0||Ro.call(Oo,fl)}})),checked:pl}}:xi=(go,Qo,nl)=>{var Ol;const pl=Ka(Qo,nl),Oo=Ua.has(pl),fl=gl.has(pl),Ro=uo.get(pl);let Vl;return to==="nest"?Vl=fl:Vl=(Ol=Ro==null?void 0:Ro.indeterminate)!==null&&Ol!==void 0?Ol:fl,{node:y.createElement(zi.default,Object.assign({},Ro,{indeterminate:Vl,checked:Oo,skipGroup:!0,onClick:Bl=>{var Ll;Bl.stopPropagation(),(Ll=Ro==null?void 0:Ro.onClick)===null||Ll===void 0||Ll.call(Ro,Bl)},onChange:Bl=>{var Ll;const{nativeEvent:as}=Bl,{shiftKey:As}=as,Jo=Po.findIndex(es=>es===pl),gu=ul.some(es=>Po.includes(es));if(As&&xa&&gu){const es=ti(Jo,Po,Ua),Bs=Array.from(Ua);lr==null||lr(!Oo,Bs.map(ms=>Ja(ms)),es.map(ms=>Ja(ms))),fo(Bs,"multiple")}else{const es=ul;if(xa){const Bs=Oo?(0,qr._5)(es,pl):(0,qr.L0)(es,pl);vo(pl,!Oo,Bs,as)}else{const Bs=(0,Aa.S)([].concat((0,Ot.Z)(es),[pl]),!0,lo,sl),{checkedKeys:ms,halfCheckedKeys:ss}=Bs;let Ho=ms;if(Oo){const ps=new Set(ms);ps.delete(pl),Ho=(0,Aa.S)(Array.from(ps),{checked:!1,halfCheckedKeys:ss},lo,sl).checkedKeys}vo(pl,!Oo,Ho,as)}}Ma(Oo?null:Jo),(Ll=Ro==null?void 0:Ro.onChange)===null||Ll===void 0||Ll.call(Ro,Bl)}})),checked:Oo}};const Li=(go,Qo,nl)=>{const{node:Ol,checked:pl}=xi(go,Qo,nl);return Tr?Tr(pl,Qo,nl,Ol):Ol};if(!ci.includes(Yi))if(ci.findIndex(go=>{var Qo;return((Qo=go[Yt])===null||Qo===void 0?void 0:Qo.columnType)==="EXPAND_COLUMN"})===0){const[go,...Qo]=ci;ci=[go,Yi].concat((0,Ot.Z)(Qo))}else ci=[Yi].concat((0,Ot.Z)(ci));const Mo=ci.indexOf(Yi);ci=ci.filter((go,Qo)=>go!==Yi||Qo===Mo);const ko=ci[Mo-1],jo=ci[Mo+1];let Tl=ia;Tl===void 0&&((jo==null?void 0:jo.fixed)!==void 0?Tl=jo.fixed:(ko==null?void 0:ko.fixed)!==void 0&&(Tl=ko.fixed)),Tl&&ko&&((Xi=ko[Yt])===null||Xi===void 0?void 0:Xi.columnType)==="EXPAND_COLUMN"&&ko.fixed===void 0&&(ko.fixed=Tl);const xl=xe()(`${da}-selection-col`,{[`${da}-selection-col-with-dropdown`]:Kn&&Gn==="checkbox"}),rs=()=>Re!=null&&Re.columnTitle?typeof Re.columnTitle=="function"?Re.columnTitle(Cl):Re.columnTitle:$o,tl={fixed:Tl,width:rr,className:`${da}-selection-column`,title:rs(),render:Li,onCell:Re.onCell,[Yt]:{className:xl}};return ci.map(go=>go===Yi?tl:go)},[Ka,Ra,Re,ul,cl,gl,rr,El,to,uo,lr,vo,sl]),cl]},xo=E(2738);function mi(Ze,Re){return Ze._antProxy=Ze._antProxy||{},Object.keys(Re).forEach(Dt=>{if(!(Dt in Ze._antProxy)){const $t=Ze[Dt];Ze._antProxy[Dt]=$t,Ze[Dt]=Re[Dt]}}),Ze}function rl(Ze,Re){return(0,y.useImperativeHandle)(Ze,()=>{const Dt=Re(),{nativeElement:$t}=Dt;return typeof Proxy!="undefined"?new Proxy($t,{get(an,gn){return Dt[gn]?Dt[gn]:Reflect.get(an,gn)}}):mi($t,Dt)})}var zl=E(83010),Il=E(48755),qo=E(38406),Xo=E(83397),no=E(31756),Pl=E(13783),Gl=E(85981),Hl=E(31709),So=E(29787),fs=E(57700);function Ul(Ze){return Re=>{const{prefixCls:Dt,onExpand:$t,record:an,expanded:gn,expandable:Mn}=Re,Fn=`${Dt}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:zn=>{$t(an,zn),zn.stopPropagation()},className:xe()(Fn,{[`${Fn}-spaced`]:!Mn,[`${Fn}-expanded`]:Mn&&gn,[`${Fn}-collapsed`]:Mn&&!gn}),"aria-label":gn?Ze.collapse:Ze.expand,"aria-expanded":gn})}}var _i=Ul;function Ui(Ze){return(Dt,$t)=>{const an=Dt.querySelector(`.${Ze}-container`);let gn=$t;if(an){const Mn=getComputedStyle(an),Fn=parseInt(Mn.borderLeftWidth,10),zn=parseInt(Mn.borderRightWidth,10);gn=$t-Fn-zn}return gn}}const Pi=(Ze,Re)=>"key"in Ze&&Ze.key!==void 0&&Ze.key!==null?Ze.key:Ze.dataIndex?Array.isArray(Ze.dataIndex)?Ze.dataIndex.join("."):Ze.dataIndex:Re;function vi(Ze,Re){return Re?`${Re}-${Ze}`:`${Ze}`}const Gi=(Ze,Re)=>typeof Ze=="function"?Ze(Re):Ze,so=(Ze,Re)=>{const Dt=Gi(Ze,Re);return Object.prototype.toString.call(Dt)==="[object Object]"?"":Dt};var wl={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"},Lo=wl,po=E(7657),al=function(Re,Dt){return y.createElement(po.Z,(0,We.Z)({},Re,{ref:Dt,icon:Lo}))},hn=y.forwardRef(al),vn=hn,Tn=E(9981),br=E(40192);function _r(Ze){const Re=y.useRef(Ze),Dt=(0,br.Z)();return[()=>Re.current,$t=>{Re.current=$t,Dt()}]}var nr=E(7939),ir=E(584),kn=E(93041),er=E(78857),Pr=E(18287),Gr=E(47472),Si=E(49397),oo=Ze=>{const{value:Re,filterSearch:Dt,tablePrefixCls:$t,locale:an,onChange:gn}=Ze;return Dt?y.createElement("div",{className:`${$t}-filter-dropdown-search`},y.createElement(Si.Z,{prefix:y.createElement(Gr.Z,null),placeholder:an.filterSearchPlaceholder,onChange:gn,value:Re,htmlSize:1,className:`${$t}-filter-dropdown-search-input`})):null},ro=E(10228);const Va=Ze=>{const{keyCode:Re}=Ze;Re===ro.Z.ENTER&&Ze.stopPropagation()};var Wr=y.forwardRef((Ze,Re)=>y.createElement("div",{className:Ze.className,onClick:Dt=>Dt.stopPropagation(),onKeyDown:Va,ref:Re},Ze.children));function Ni(Ze){let Re=[];return(Ze||[]).forEach(Dt=>{let{value:$t,children:an}=Dt;Re.push($t),an&&(Re=[].concat((0,Ot.Z)(Re),(0,Ot.Z)(Ni(an))))}),Re}function Zi(Ze){return Ze.some(Re=>{let{children:Dt}=Re;return Dt})}function co(Ze,Re){return typeof Re=="string"||typeof Re=="number"?Re==null?void 0:Re.toString().toLowerCase().includes(Ze.trim().toLowerCase()):!1}function _o(Ze){let{filters:Re,prefixCls:Dt,filteredKeys:$t,filterMultiple:an,searchValue:gn,filterSearch:Mn}=Ze;return Re.map((Fn,zn)=>{const Ln=String(Fn.value);if(Fn.children)return{key:Ln||zn,label:Fn.text,popupClassName:`${Dt}-dropdown-submenu`,children:_o({filters:Fn.children,prefixCls:Dt,filteredKeys:$t,filterMultiple:an,searchValue:gn,filterSearch:Mn})};const xr=an?zi.default:Ji.ZP,lr={key:Fn.value!==void 0?Ln:zn,label:y.createElement(y.Fragment,null,y.createElement(xr,{checked:$t.includes(Ln)}),y.createElement("span",null,Fn.text))};return gn.trim()?typeof Mn=="function"?Mn(gn,Fn)?lr:null:co(gn,Fn.text)?lr:null:lr})}function Ai(Ze){return Ze||[]}var Di=Ze=>{var Re,Dt,$t,an;const{tablePrefixCls:gn,prefixCls:Mn,column:Fn,dropdownPrefixCls:zn,columnKey:Ln,filterOnClose:xr,filterMultiple:lr,filterMode:rr="menu",filterSearch:Gn=!1,filterState:Kn,triggerFilter:ia,locale:Tr,children:ca,getPopupContainer:xa,rootClassName:da}=Ze,{filterResetToDefaultFilteredValue:ha,defaultFilteredValue:La,filterDropdownProps:Ja={},filterDropdownOpen:Ka,filterDropdownVisible:to,onFilterDropdownVisibleChange:wi,onFilterDropdownOpenChange:hi}=Fn,[Wi,qa]=y.useState(!1),ti=!!(Kn&&(!((Re=Kn.filteredKeys)===null||Re===void 0)&&Re.length||Kn.forceFiltered)),Ma=xi=>{var Li;qa(xi),(Li=Ja.onOpenChange)===null||Li===void 0||Li.call(Ja,xi),hi==null||hi(xi),wi==null||wi(xi)},Sa=(an=($t=(Dt=Ja.open)!==null&&Dt!==void 0?Dt:Ka)!==null&&$t!==void 0?$t:to)!==null&&an!==void 0?an:Wi,Ya=Kn==null?void 0:Kn.filteredKeys,[ri,Ci]=_r(Ai(Ya)),Ra=xi=>{let{selectedKeys:Li}=xi;Ci(Li)},lo=(xi,Li)=>{let{node:Mo,checked:ko}=Li;Ra(lr?{selectedKeys:xi}:{selectedKeys:ko&&Mo.key?[Mo.key]:[]})};y.useEffect(()=>{Wi&&Ra({selectedKeys:Ai(Ya)})},[Ya]);const[uo,sl]=y.useState([]),ul=xi=>{sl(xi)},[el,cl]=y.useState(""),gl=xi=>{const{value:Li}=xi.target;cl(Li)};y.useEffect(()=>{Wi||cl("")},[Wi]);const fo=xi=>{const Li=xi!=null&&xi.length?xi:null;if(Li===null&&(!Kn||!Kn.filteredKeys)||(0,Ce.Z)(Li,Kn==null?void 0:Kn.filteredKeys,!0))return null;ia({column:Fn,key:Ln,filteredKeys:Li})},vo=()=>{Ma(!1),fo(ri())},El=function(){let{confirm:xi,closeDropdown:Li}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};xi&&fo([]),Li&&Ma(!1),cl(""),Ci(ha?(La||[]).map(Mo=>String(Mo)):[])},dl=function(){let{closeDropdown:xi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};xi&&Ma(!1),fo(ri())},ai=(xi,Li)=>{Li.source==="trigger"&&(xi&&Ya!==void 0&&Ci(Ai(Ya)),Ma(xi),!xi&&!Fn.filterDropdown&&xr&&vo())},Xi=xe()({[`${zn}-menu-without-submenu`]:!Zi(Fn.filters||[])}),ci=xi=>{if(xi.target.checked){const Li=Ni(Fn==null?void 0:Fn.filters).map(Mo=>String(Mo));Ci(Li)}else Ci([])},Ua=xi=>{let{filters:Li}=xi;return(Li||[]).map((Mo,ko)=>{const jo=String(Mo.value),Tl={title:Mo.text,key:Mo.value!==void 0?jo:String(ko)};return Mo.children&&(Tl.children=Ua({filters:Mo.children})),Tl})},Po=xi=>{var Li;return Object.assign(Object.assign({},xi),{text:xi.title,value:xi.key,children:((Li=xi.children)===null||Li===void 0?void 0:Li.map(Mo=>Po(Mo)))||[]})};let Bo;const{direction:ol,renderEmpty:Yo}=y.useContext(Il.E_);if(typeof Fn.filterDropdown=="function")Bo=Fn.filterDropdown({prefixCls:`${zn}-custom`,setSelectedKeys:xi=>Ra({selectedKeys:xi}),selectedKeys:ri(),confirm:dl,clearFilters:El,filters:Fn.filters,visible:Sa,close:()=>{Ma(!1)}});else if(Fn.filterDropdown)Bo=Fn.filterDropdown;else{const xi=ri()||[],Li=()=>{var ko,jo;const Tl=(ko=Yo==null?void 0:Yo("Table.filter"))!==null&&ko!==void 0?ko:y.createElement(ir.Z,{image:ir.Z.PRESENTED_IMAGE_SIMPLE,description:Tr.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Fn.filters||[]).length===0)return Tl;if(rr==="tree")return y.createElement(y.Fragment,null,y.createElement(oo,{filterSearch:Gn,value:el,onChange:gl,tablePrefixCls:gn,locale:Tr}),y.createElement("div",{className:`${gn}-filter-dropdown-tree`},lr?y.createElement(zi.default,{checked:xi.length===Ni(Fn.filters).length,indeterminate:xi.length>0&&xi.length<Ni(Fn.filters).length,className:`${gn}-filter-dropdown-checkall`,onChange:ci},(jo=Tr==null?void 0:Tr.filterCheckall)!==null&&jo!==void 0?jo:Tr==null?void 0:Tr.filterCheckAll):null,y.createElement(Pr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:lr,checkStrictly:!lr,className:`${zn}-menu`,onCheck:lo,checkedKeys:xi,selectedKeys:xi,showIcon:!1,treeData:Ua({filters:Fn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:el.trim()?tl=>typeof Gn=="function"?Gn(el,Po(tl)):co(el,tl.title):void 0})));const xl=_o({filters:Fn.filters||[],filterSearch:Gn,prefixCls:Mn,filteredKeys:ri(),filterMultiple:lr,searchValue:el}),rs=xl.every(tl=>tl===null);return y.createElement(y.Fragment,null,y.createElement(oo,{filterSearch:Gn,value:el,onChange:gl,tablePrefixCls:gn,locale:Tr}),rs?Tl:y.createElement(kn.default,{selectable:!0,multiple:lr,prefixCls:`${zn}-menu`,className:Xi,onSelect:Ra,onDeselect:Ra,selectedKeys:xi,getPopupContainer:xa,openKeys:uo,onOpenChange:ul,items:xl}))},Mo=()=>ha?(0,Ce.Z)((La||[]).map(ko=>String(ko)),xi,!0):xi.length===0;Bo=y.createElement(y.Fragment,null,Li(),y.createElement("div",{className:`${Mn}-dropdown-btns`},y.createElement(nr.ZP,{type:"link",size:"small",disabled:Mo(),onClick:()=>El()},Tr.filterReset),y.createElement(nr.ZP,{type:"primary",size:"small",onClick:vo},Tr.filterConfirm)))}Fn.filterDropdown&&(Bo=y.createElement(er.J,{selectable:void 0},Bo)),Bo=y.createElement(Wr,{className:`${Mn}-dropdown`},Bo);const $o=()=>{let xi;return typeof Fn.filterIcon=="function"?xi=Fn.filterIcon(ti):Fn.filterIcon?xi=Fn.filterIcon:xi=y.createElement(vn,null),y.createElement("span",{role:"button",tabIndex:-1,className:xe()(`${Mn}-trigger`,{active:ti}),onClick:Li=>{Li.stopPropagation()}},xi)},Cl=(0,Tn.Z)({trigger:["click"],placement:ol==="rtl"?"bottomLeft":"bottomRight",children:$o(),getPopupContainer:xa},Object.assign(Object.assign({},Ja),{rootClassName:xe()(da,Ja.rootClassName),open:Sa,onOpenChange:ai,dropdownRender:()=>typeof(Ja==null?void 0:Ja.dropdownRender)=="function"?Ja.dropdownRender(Bo):Bo}));return y.createElement("div",{className:`${Mn}-column`},y.createElement("span",{className:`${gn}-column-title`},ca),y.createElement(Hi.Z,Object.assign({},Cl)))};const ya=(Ze,Re,Dt)=>{let $t=[];return(Ze||[]).forEach((an,gn)=>{var Mn;const Fn=vi(gn,Dt);if(an.filters||"filterDropdown"in an||"onFilter"in an)if("filteredValue"in an){let zn=an.filteredValue;"filterDropdown"in an||(zn=(Mn=zn==null?void 0:zn.map(String))!==null&&Mn!==void 0?Mn:zn),$t.push({column:an,key:Pi(an,Fn),filteredKeys:zn,forceFiltered:an.filtered})}else $t.push({column:an,key:Pi(an,Fn),filteredKeys:Re&&an.defaultFilteredValue?an.defaultFilteredValue:void 0,forceFiltered:an.filtered});"children"in an&&($t=[].concat((0,Ot.Z)($t),(0,Ot.Z)(ya(an.children,Re,Fn))))}),$t};function si(Ze,Re,Dt,$t,an,gn,Mn,Fn,zn){return Dt.map((Ln,xr)=>{const lr=vi(xr,Fn),{filterOnClose:rr=!0,filterMultiple:Gn=!0,filterMode:Kn,filterSearch:ia}=Ln;let Tr=Ln;if(Tr.filters||Tr.filterDropdown){const ca=Pi(Tr,lr),xa=$t.find(da=>{let{key:ha}=da;return ca===ha});Tr=Object.assign(Object.assign({},Tr),{title:da=>y.createElement(Di,{tablePrefixCls:Ze,prefixCls:`${Ze}-filter`,dropdownPrefixCls:Re,column:Tr,columnKey:ca,filterState:xa,filterOnClose:rr,filterMultiple:Gn,filterMode:Kn,filterSearch:ia,triggerFilter:gn,locale:an,getPopupContainer:Mn,rootClassName:zn},Gi(Ln.title,da))})}return"children"in Tr&&(Tr=Object.assign(Object.assign({},Tr),{children:si(Ze,Re,Tr.children,$t,an,gn,Mn,lr,zn)})),Tr})}const pi=Ze=>{const Re={};return Ze.forEach(Dt=>{let{key:$t,filteredKeys:an,column:gn}=Dt;const Mn=$t,{filters:Fn,filterDropdown:zn}=gn;if(zn)Re[Mn]=an||null;else if(Array.isArray(an)){const Ln=Ni(Fn);Re[Mn]=Ln.filter(xr=>an.includes(String(xr)))}else Re[Mn]=null}),Re},Ei=(Ze,Re,Dt)=>Re.reduce((an,gn)=>{const{column:{onFilter:Mn,filters:Fn},filteredKeys:zn}=gn;return Mn&&zn&&zn.length?an.map(Ln=>Object.assign({},Ln)).filter(Ln=>zn.some(xr=>{const lr=Ni(Fn),rr=lr.findIndex(Kn=>String(Kn)===String(xr)),Gn=rr!==-1?lr[rr]:xr;return Ln[Dt]&&(Ln[Dt]=Ei(Ln[Dt],Re,Dt)),Mn(Gn,Ln)})):an},Ze),Bt=Ze=>Ze.flatMap(Re=>"children"in Re?[Re].concat((0,Ot.Z)(Bt(Re.children||[]))):[Re]);var rn=Ze=>{const{prefixCls:Re,dropdownPrefixCls:Dt,mergedColumns:$t,onFilterChange:an,getPopupContainer:gn,locale:Mn,rootClassName:Fn}=Ze,zn=(0,di.ln)("Table"),Ln=y.useMemo(()=>Bt($t||[]),[$t]),[xr,lr]=y.useState(()=>ya(Ln,!0)),rr=y.useMemo(()=>{const Tr=ya(Ln,!1);if(Tr.length===0)return Tr;let ca=!0,xa=!0;if(Tr.forEach(da=>{let{filteredKeys:ha}=da;ha!==void 0?ca=!1:xa=!1}),ca){const da=(Ln||[]).map((ha,La)=>Pi(ha,vi(La)));return xr.filter(ha=>{let{key:La}=ha;return da.includes(La)}).map(ha=>{const La=Ln[da.findIndex(Ja=>Ja===ha.key)];return Object.assign(Object.assign({},ha),{column:Object.assign(Object.assign({},ha.column),La),forceFiltered:La.filtered})})}return Tr},[Ln,xr]),Gn=y.useMemo(()=>pi(rr),[rr]),Kn=Tr=>{const ca=rr.filter(xa=>{let{key:da}=xa;return da!==Tr.key});ca.push(Tr),lr(ca),an(pi(ca),ca)};return[Tr=>si(Re,Dt,Tr,rr,Mn,Kn,gn,void 0,Fn),rr,Gn]},za=(Ze,Re,Dt)=>{const $t=y.useRef({});function an(gn){var Mn;if(!$t.current||$t.current.data!==Ze||$t.current.childrenColumnName!==Re||$t.current.getRowKey!==Dt){let zn=function(Ln){Ln.forEach((xr,lr)=>{const rr=Dt(xr,lr);Fn.set(rr,xr),xr&&typeof xr=="object"&&Re in xr&&zn(xr[Re]||[])})};const Fn=new Map;zn(Ze),$t.current={data:Ze,childrenColumnName:Re,kvMap:Fn,getRowKey:Dt}}return(Mn=$t.current.kvMap)===null||Mn===void 0?void 0:Mn.get(gn)}return[an]},zr=function(Ze,Re){var Dt={};for(var $t in Ze)Object.prototype.hasOwnProperty.call(Ze,$t)&&Re.indexOf($t)<0&&(Dt[$t]=Ze[$t]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,$t=Object.getOwnPropertySymbols(Ze);an<$t.length;an++)Re.indexOf($t[an])<0&&Object.prototype.propertyIsEnumerable.call(Ze,$t[an])&&(Dt[$t[an]]=Ze[$t[an]]);return Dt};const Jn=10;function vr(Ze,Re){const Dt={current:Ze.current,pageSize:Ze.pageSize};return Object.keys(Re&&typeof Re=="object"?Re:{}).forEach(an=>{const gn=Ze[an];typeof gn!="function"&&(Dt[an]=gn)}),Dt}function Fr(Ze,Re,Dt){const $t=Dt&&typeof Dt=="object"?Dt:{},{total:an=0}=$t,gn=zr($t,["total"]),[Mn,Fn]=(0,y.useState)(()=>({current:"defaultCurrent"in gn?gn.defaultCurrent:1,pageSize:"defaultPageSize"in gn?gn.defaultPageSize:Jn})),zn=(0,Tn.Z)(Mn,gn,{total:an>0?an:Ze}),Ln=Math.ceil((an||Ze)/zn.pageSize);zn.current>Ln&&(zn.current=Ln||1);const xr=(rr,Gn)=>{Fn({current:rr!=null?rr:1,pageSize:Gn||zn.pageSize})},lr=(rr,Gn)=>{var Kn;Dt&&((Kn=Dt.onChange)===null||Kn===void 0||Kn.call(Dt,rr,Gn)),xr(rr,Gn),Re(rr,Gn||(zn==null?void 0:zn.pageSize))};return Dt===!1?[{},()=>{}]:[Object.assign(Object.assign({},zn),{onChange:lr}),xr]}var ea=Fr,jr=E(89489),or=E(59477),pa=E(25399);const ma="ascend",Nr="descend",Ba=Ze=>typeof Ze.sorter=="object"&&typeof Ze.sorter.multiple=="number"?Ze.sorter.multiple:!1,ja=Ze=>typeof Ze=="function"?Ze:Ze&&typeof Ze=="object"&&Ze.compare?Ze.compare:!1,sa=(Ze,Re)=>Re?Ze[Ze.indexOf(Re)+1]:Ze[0],ur=(Ze,Re,Dt)=>{let $t=[];const an=(gn,Mn)=>{$t.push({column:gn,key:Pi(gn,Mn),multiplePriority:Ba(gn),sortOrder:gn.sortOrder})};return(Ze||[]).forEach((gn,Mn)=>{const Fn=vi(Mn,Dt);gn.children?("sortOrder"in gn&&an(gn,Fn),$t=[].concat((0,Ot.Z)($t),(0,Ot.Z)(ur(gn.children,Re,Fn)))):gn.sorter&&("sortOrder"in gn?an(gn,Fn):Re&&gn.defaultSortOrder&&$t.push({column:gn,key:Pi(gn,Fn),multiplePriority:Ba(gn),sortOrder:gn.defaultSortOrder}))}),$t},Qr=(Ze,Re,Dt,$t,an,gn,Mn,Fn)=>(Re||[]).map((Ln,xr)=>{const lr=vi(xr,Fn);let rr=Ln;if(rr.sorter){const Gn=rr.sortDirections||an,Kn=rr.showSorterTooltip===void 0?Mn:rr.showSorterTooltip,ia=Pi(rr,lr),Tr=Dt.find(wi=>{let{key:hi}=wi;return hi===ia}),ca=Tr?Tr.sortOrder:null,xa=sa(Gn,ca);let da;if(Ln.sortIcon)da=Ln.sortIcon({sortOrder:ca});else{const wi=Gn.includes(ma)&&y.createElement(or.Z,{className:xe()(`${Ze}-column-sorter-up`,{active:ca===ma})}),hi=Gn.includes(Nr)&&y.createElement(jr.Z,{className:xe()(`${Ze}-column-sorter-down`,{active:ca===Nr})});da=y.createElement("span",{className:xe()(`${Ze}-column-sorter`,{[`${Ze}-column-sorter-full`]:!!(wi&&hi)})},y.createElement("span",{className:`${Ze}-column-sorter-inner`,"aria-hidden":"true"},wi,hi))}const{cancelSort:ha,triggerAsc:La,triggerDesc:Ja}=gn||{};let Ka=ha;xa===Nr?Ka=Ja:xa===ma&&(Ka=La);const to=typeof Kn=="object"?Object.assign({title:Ka},Kn):{title:Ka};rr=Object.assign(Object.assign({},rr),{className:xe()(rr.className,{[`${Ze}-column-sort`]:ca}),title:wi=>{const hi=`${Ze}-column-sorters`,Wi=y.createElement("span",{className:`${Ze}-column-title`},Gi(Ln.title,wi)),qa=y.createElement("div",{className:hi},Wi,da);return Kn?typeof Kn!="boolean"&&(Kn==null?void 0:Kn.target)==="sorter-icon"?y.createElement("div",{className:`${hi} ${Ze}-column-sorters-tooltip-target-sorter`},Wi,y.createElement(pa.Z,Object.assign({},to),da)):y.createElement(pa.Z,Object.assign({},to),qa):qa},onHeaderCell:wi=>{var hi;const Wi=((hi=Ln.onHeaderCell)===null||hi===void 0?void 0:hi.call(Ln,wi))||{},qa=Wi.onClick,ti=Wi.onKeyDown;Wi.onClick=Ya=>{$t({column:Ln,key:ia,sortOrder:xa,multiplePriority:Ba(Ln)}),qa==null||qa(Ya)},Wi.onKeyDown=Ya=>{Ya.keyCode===ro.Z.ENTER&&($t({column:Ln,key:ia,sortOrder:xa,multiplePriority:Ba(Ln)}),ti==null||ti(Ya))};const Ma=so(Ln.title,{}),Sa=Ma==null?void 0:Ma.toString();return ca&&(Wi["aria-sort"]=ca==="ascend"?"ascending":"descending"),Wi["aria-label"]=Sa||"",Wi.className=xe()(Wi.className,`${Ze}-column-has-sorters`),Wi.tabIndex=0,Ln.ellipsis&&(Wi.title=(Ma!=null?Ma:"").toString()),Wi}})}return"children"in rr&&(rr=Object.assign(Object.assign({},rr),{children:Qr(Ze,rr.children,Dt,$t,an,gn,Mn,lr)})),rr}),ui=Ze=>{const{column:Re,sortOrder:Dt}=Ze;return{column:Re,order:Dt,field:Re.dataIndex,columnKey:Re.key}},Ca=Ze=>{const Re=Ze.filter(Dt=>{let{sortOrder:$t}=Dt;return $t}).map(ui);if(Re.length===0&&Ze.length){const Dt=Ze.length-1;return Object.assign(Object.assign({},ui(Ze[Dt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Re.length<=1?Re[0]||{}:Re},ua=(Ze,Re,Dt)=>{const $t=Re.slice().sort((Mn,Fn)=>Fn.multiplePriority-Mn.multiplePriority),an=Ze.slice(),gn=$t.filter(Mn=>{let{column:{sorter:Fn},sortOrder:zn}=Mn;return ja(Fn)&&zn});return gn.length?an.sort((Mn,Fn)=>{for(let zn=0;zn<gn.length;zn+=1){const Ln=gn[zn],{column:{sorter:xr},sortOrder:lr}=Ln,rr=ja(xr);if(rr&&lr){const Gn=rr(Mn,Fn,lr);if(Gn!==0)return lr===ma?Gn:-Gn}}return 0}).map(Mn=>{const Fn=Mn[Dt];return Fn?Object.assign(Object.assign({},Mn),{[Dt]:ua(Fn,Re,Dt)}):Mn}):an};var Fa=Ze=>{const{prefixCls:Re,mergedColumns:Dt,sortDirections:$t,tableLocale:an,showSorterTooltip:gn,onSorterChange:Mn}=Ze,[Fn,zn]=y.useState(ur(Dt,!0)),Ln=(ia,Tr)=>{const ca=[];return ia.forEach((xa,da)=>{const ha=vi(da,Tr);if(ca.push(Pi(xa,ha)),Array.isArray(xa.children)){const La=Ln(xa.children,ha);ca.push.apply(ca,(0,Ot.Z)(La))}}),ca},xr=y.useMemo(()=>{let ia=!0;const Tr=ur(Dt,!1);if(!Tr.length){const ha=Ln(Dt);return Fn.filter(La=>{let{key:Ja}=La;return ha.includes(Ja)})}const ca=[];function xa(ha){ia?ca.push(ha):ca.push(Object.assign(Object.assign({},ha),{sortOrder:null}))}let da=null;return Tr.forEach(ha=>{da===null?(xa(ha),ha.sortOrder&&(ha.multiplePriority===!1?ia=!1:da=!0)):(da&&ha.multiplePriority!==!1||(ia=!1),xa(ha))}),ca},[Dt,Fn]),lr=y.useMemo(()=>{var ia,Tr;const ca=xr.map(xa=>{let{column:da,sortOrder:ha}=xa;return{column:da,order:ha}});return{sortColumns:ca,sortColumn:(ia=ca[0])===null||ia===void 0?void 0:ia.column,sortOrder:(Tr=ca[0])===null||Tr===void 0?void 0:Tr.order}},[xr]),rr=ia=>{let Tr;ia.multiplePriority===!1||!xr.length||xr[0].multiplePriority===!1?Tr=[ia]:Tr=[].concat((0,Ot.Z)(xr.filter(ca=>{let{key:xa}=ca;return xa!==ia.key})),[ia]),zn(Tr),Mn(Ca(Tr),Tr)};return[ia=>Qr(Re,ia,xr,rr,$t,an,gn),xr,lr,()=>Ca(xr)]};const ao=(Ze,Re)=>Ze.map($t=>{const an=Object.assign({},$t);return an.title=Gi($t.title,Re),"children"in an&&(an.children=ao(an.children,Re)),an});var Ko=Ze=>[y.useCallback(Dt=>ao(Dt,Ze),[Ze])],Oi=Qa((Ze,Re)=>{const{_renderTimes:Dt}=Ze,{_renderTimes:$t}=Re;return Dt!==$t}),Al=yr((Ze,Re)=>{const{_renderTimes:Dt}=Ze,{_renderTimes:$t}=Re;return Dt!==$t}),Ur=E(36237),Fo=E(17835),wo=E(63356),Io=E(16931),vl=E(51636),zs=Ze=>{const{componentCls:Re,lineWidth:Dt,lineType:$t,tableBorderColor:an,tableHeaderBg:gn,tablePaddingVertical:Mn,tablePaddingHorizontal:Fn,calc:zn}=Ze,Ln=`${(0,Ur.unit)(Dt)} ${$t} ${an}`,xr=(lr,rr,Gn)=>({[`&${Re}-${lr}`]:{[`> ${Re}-container`]:{[`> ${Re}-content, > ${Re}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Re}-expanded-row-fixed`]:{margin:`${(0,Ur.unit)(zn(rr).mul(-1).equal())}
|
|
|
${(0,Ur.unit)(zn(zn(Gn).add(Dt)).mul(-1).equal())}`}}}}}});return{[`${Re}-wrapper`]:{[`${Re}${Re}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Re}-title`]:{border:Ln,borderBottom:0},[`> ${Re}-container`]:{borderInlineStart:Ln,borderTop:Ln,[`
|
|
|
> ${Re}-content,
|
|
|
> ${Re}-header,
|
|
|
> ${Re}-body,
|
|
|
> ${Re}-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:Ln},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ln},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Re}-cell-fix-right-first::after`]:{borderInlineEnd:Ln}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Re}-expanded-row-fixed`]:{margin:`${(0,Ur.unit)(zn(Mn).mul(-1).equal())} ${(0,Ur.unit)(zn(zn(Fn).add(Dt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Dt,bottom:0,borderInlineEnd:Ln,content:'""'}}}}}},[`&${Re}-scroll-horizontal`]:{[`> ${Re}-container > ${Re}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Re}-expanded-row,
|
|
|
> tr${Re}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},xr("middle",Ze.tablePaddingVerticalMiddle,Ze.tablePaddingHorizontalMiddle)),xr("small",Ze.tablePaddingVerticalSmall,Ze.tablePaddingHorizontalSmall)),{[`> ${Re}-footer`]:{border:Ln,borderTop:0}}),[`${Re}-cell`]:{[`${Re}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Ur.unit)(Dt)} 0 ${(0,Ur.unit)(Dt)} ${gn}`}},[`${Re}-bordered ${Re}-cell-scrollbar`]:{borderInlineEnd:Ln}}}},Ds=Ze=>{const{componentCls:Re}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-cell-ellipsis`]:Object.assign(Object.assign({},wo.vS),{wordBreak:"keep-all",[`
|
|
|
&${Re}-cell-fix-left-last,
|
|
|
&${Re}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Re}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Re}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},tu=Ze=>{const{componentCls:Re}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-tbody > tr${Re}-placeholder`]:{textAlign:"center",color:Ze.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ze.colorBgContainer}}}}},Rs=Ze=>{const{componentCls:Re,antCls:Dt,motionDurationSlow:$t,lineWidth:an,paddingXS:gn,lineType:Mn,tableBorderColor:Fn,tableExpandIconBg:zn,tableExpandColumnWidth:Ln,borderRadius:xr,tablePaddingVertical:lr,tablePaddingHorizontal:rr,tableExpandedRowBg:Gn,paddingXXS:Kn,expandIconMarginTop:ia,expandIconSize:Tr,expandIconHalfInner:ca,expandIconScale:xa,calc:da}=Ze,ha=`${(0,Ur.unit)(an)} ${Mn} ${Fn}`,La=da(Kn).sub(an).equal();return{[`${Re}-wrapper`]:{[`${Re}-expand-icon-col`]:{width:Ln},[`${Re}-row-expand-icon-cell`]:{textAlign:"center",[`${Re}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Re}-row-indent`]:{height:1,float:"left"},[`${Re}-row-expand-icon`]:Object.assign(Object.assign({},(0,wo.Nd)(Ze)),{position:"relative",float:"left",width:Tr,height:Tr,color:"inherit",lineHeight:(0,Ur.unit)(Tr),background:zn,border:ha,borderRadius:xr,transform:`scale(${xa})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${$t} ease-out`,content:'""'},"&::before":{top:ca,insetInlineEnd:La,insetInlineStart:La,height:an},"&::after":{top:La,bottom:La,insetInlineStart:ca,width:an,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"}}),[`${Re}-row-indent + ${Re}-row-expand-icon`]:{marginTop:ia,marginInlineEnd:gn},[`tr${Re}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Gn}},[`${Dt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Re}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Ur.unit)(da(lr).mul(-1).equal())} ${(0,Ur.unit)(da(rr).mul(-1).equal())}`,padding:`${(0,Ur.unit)(lr)} ${(0,Ur.unit)(rr)}`}}}},nu=Ze=>{const{componentCls:Re,antCls:Dt,iconCls:$t,tableFilterDropdownWidth:an,tableFilterDropdownSearchWidth:gn,paddingXXS:Mn,paddingXS:Fn,colorText:zn,lineWidth:Ln,lineType:xr,tableBorderColor:lr,headerIconColor:rr,fontSizeSM:Gn,tablePaddingHorizontal:Kn,borderRadius:ia,motionDurationSlow:Tr,colorTextDescription:ca,colorPrimary:xa,tableHeaderFilterActiveBg:da,colorTextDisabled:ha,tableFilterDropdownBg:La,tableFilterDropdownHeight:Ja,controlItemBgHover:Ka,controlItemBgActive:to,boxShadowSecondary:wi,filterDropdownMenuBg:hi,calc:Wi}=Ze,qa=`${Dt}-dropdown`,ti=`${Re}-filter-dropdown`,Ma=`${Dt}-tree`,Sa=`${(0,Ur.unit)(Ln)} ${xr} ${lr}`;return[{[`${Re}-wrapper`]:{[`${Re}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Re}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Wi(Mn).mul(-1).equal(),marginInline:`${(0,Ur.unit)(Mn)} ${(0,Ur.unit)(Wi(Kn).div(2).mul(-1).equal())}`,padding:`0 ${(0,Ur.unit)(Mn)}`,color:rr,fontSize:Gn,borderRadius:ia,cursor:"pointer",transition:`all ${Tr}`,"&:hover":{color:ca,background:da},"&.active":{color:xa}}}},{[`${Dt}-dropdown`]:{[ti]:Object.assign(Object.assign({},(0,wo.Wf)(Ze)),{minWidth:an,backgroundColor:La,borderRadius:ia,boxShadow:wi,overflow:"hidden",[`${qa}-menu`]:{maxHeight:Ja,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:hi,"&:empty::after":{display:"block",padding:`${(0,Ur.unit)(Fn)} 0`,color:ha,fontSize:Gn,textAlign:"center",content:'"Not Found"'}},[`${ti}-tree`]:{paddingBlock:`${(0,Ur.unit)(Fn)} 0`,paddingInline:Fn,[Ma]:{padding:0},[`${Ma}-treenode ${Ma}-node-content-wrapper:hover`]:{backgroundColor:Ka},[`${Ma}-treenode-checkbox-checked ${Ma}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:to}}},[`${ti}-search`]:{padding:Fn,borderBottom:Sa,"&-input":{input:{minWidth:gn},[$t]:{color:ha}}},[`${ti}-checkall`]:{width:"100%",marginBottom:Mn,marginInlineStart:Mn},[`${ti}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Ur.unit)(Wi(Fn).sub(Ln).equal())} ${(0,Ur.unit)(Fn)}`,overflow:"hidden",borderTop:Sa}})}},{[`${Dt}-dropdown ${ti}, ${ti}-submenu`]:{[`${Dt}-checkbox-wrapper + span`]:{paddingInlineStart:Fn,color:zn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ss=Ze=>{const{componentCls:Re,lineWidth:Dt,colorSplit:$t,motionDurationSlow:an,zIndexTableFixed:gn,tableBg:Mn,zIndexTableSticky:Fn,calc:zn}=Ze,Ln=$t;return{[`${Re}-wrapper`]:{[`
|
|
|
${Re}-cell-fix-left,
|
|
|
${Re}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:gn,background:Mn},[`
|
|
|
${Re}-cell-fix-left-first::after,
|
|
|
${Re}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:zn(Dt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${an}`,content:'""',pointerEvents:"none"},[`${Re}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Re}-cell-fix-right-first::after,
|
|
|
${Re}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:zn(Dt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${an}`,content:'""',pointerEvents:"none"},[`${Re}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zn(Fn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${an}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Re}-ping-left`]:{[`&:not(${Re}-has-fix-left) ${Re}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Ln}`},[`
|
|
|
${Re}-cell-fix-left-first::after,
|
|
|
${Re}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ln}`},[`${Re}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Re}-ping-right`]:{[`&:not(${Re}-has-fix-right) ${Re}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Ln}`},[`
|
|
|
${Re}-cell-fix-right-first::after,
|
|
|
${Re}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ln}`}},[`${Re}-fixed-column-gapped`]:{[`
|
|
|
${Re}-cell-fix-left-first::after,
|
|
|
${Re}-cell-fix-left-last::after,
|
|
|
${Re}-cell-fix-right-first::after,
|
|
|
${Re}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},Ls=Ze=>{const{componentCls:Re,antCls:Dt,margin:$t}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-pagination${Dt}-pagination`]:{margin:`${(0,Ur.unit)($t)} 0`},[`${Re}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ze.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Vs=Ze=>{const{componentCls:Re,tableRadius:Dt}=Ze;return{[`${Re}-wrapper`]:{[Re]:{[`${Re}-title, ${Re}-header`]:{borderRadius:`${(0,Ur.unit)(Dt)} ${(0,Ur.unit)(Dt)} 0 0`},[`${Re}-title + ${Re}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Re}-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:Dt,borderStartEndRadius:Dt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Dt},"> *:last-child":{borderStartEndRadius:Dt}}},"&-footer":{borderRadius:`0 0 ${(0,Ur.unit)(Dt)} ${(0,Ur.unit)(Dt)}`}}}}},vu=Ze=>{const{componentCls:Re}=Ze;return{[`${Re}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Re}-pagination-left`]:{justifyContent:"flex-end"},[`${Re}-pagination-right`]:{justifyContent:"flex-start"},[`${Re}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Re}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Re}-row-indent`]:{float:"right"}}}}},Ps=Ze=>{const{componentCls:Re,antCls:Dt,iconCls:$t,fontSizeIcon:an,padding:gn,paddingXS:Mn,headerIconColor:Fn,headerIconHoverColor:zn,tableSelectionColumnWidth:Ln,tableSelectedRowBg:xr,tableSelectedRowHoverBg:lr,tableRowHoverBg:rr,tablePaddingHorizontal:Gn,calc:Kn}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-selection-col`]:{width:Ln,[`&${Re}-selection-col-with-dropdown`]:{width:Kn(Ln).add(an).add(Kn(gn).div(4)).equal()}},[`${Re}-bordered ${Re}-selection-col`]:{width:Kn(Ln).add(Kn(Mn).mul(2)).equal(),[`&${Re}-selection-col-with-dropdown`]:{width:Kn(Ln).add(an).add(Kn(gn).div(4)).add(Kn(Mn).mul(2)).equal()}},[`
|
|
|
table tr th${Re}-selection-column,
|
|
|
table tr td${Re}-selection-column,
|
|
|
${Re}-selection-column
|
|
|
`]:{paddingInlineEnd:Ze.paddingXS,paddingInlineStart:Ze.paddingXS,textAlign:"center",[`${Dt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Re}-selection-column${Re}-cell-fix-left`]:{zIndex:Kn(Ze.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${Re}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Re}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Re}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ze.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Ur.unit)(Kn(Gn).div(4).equal()),[$t]:{color:Fn,fontSize:an,verticalAlign:"baseline","&:hover":{color:zn}}},[`${Re}-tbody`]:{[`${Re}-row`]:{[`&${Re}-row-selected`]:{[`> ${Re}-cell`]:{background:xr,"&-row-hover":{background:lr}}},[`> ${Re}-cell-row-hover`]:{background:rr}}}}}},Su=Ze=>{const{componentCls:Re,tableExpandColumnWidth:Dt,calc:$t}=Ze,an=(gn,Mn,Fn,zn)=>({[`${Re}${Re}-${gn}`]:{fontSize:zn,[`
|
|
|
${Re}-title,
|
|
|
${Re}-footer,
|
|
|
${Re}-cell,
|
|
|
${Re}-thead > tr > th,
|
|
|
${Re}-tbody > tr > th,
|
|
|
${Re}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,Ur.unit)(Mn)} ${(0,Ur.unit)(Fn)}`},[`${Re}-filter-trigger`]:{marginInlineEnd:(0,Ur.unit)($t(Fn).div(2).mul(-1).equal())},[`${Re}-expanded-row-fixed`]:{margin:`${(0,Ur.unit)($t(Mn).mul(-1).equal())} ${(0,Ur.unit)($t(Fn).mul(-1).equal())}`},[`${Re}-tbody`]:{[`${Re}-wrapper:only-child ${Re}`]:{marginBlock:(0,Ur.unit)($t(Mn).mul(-1).equal()),marginInline:`${(0,Ur.unit)($t(Dt).sub(Fn).equal())} ${(0,Ur.unit)($t(Fn).mul(-1).equal())}`}},[`${Re}-selection-extra`]:{paddingInlineStart:(0,Ur.unit)($t(Fn).div(4).equal())}}});return{[`${Re}-wrapper`]:Object.assign(Object.assign({},an("middle",Ze.tablePaddingVerticalMiddle,Ze.tablePaddingHorizontalMiddle,Ze.tableFontSizeMiddle)),an("small",Ze.tablePaddingVerticalSmall,Ze.tablePaddingHorizontalSmall,Ze.tableFontSizeSmall))}},wu=Ze=>{const{componentCls:Re,marginXXS:Dt,fontSizeIcon:$t,headerIconColor:an,headerIconHoverColor:gn}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-thead th${Re}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ze.motionDurationSlow}, left 0s`,"&:hover":{background:Ze.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ze.colorPrimary},[`
|
|
|
&${Re}-cell-fix-left:hover,
|
|
|
&${Re}-cell-fix-right:hover
|
|
|
`]:{background:Ze.tableFixedHeaderSortActiveBg}},[`${Re}-thead th${Re}-column-sort`]:{background:Ze.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Re}-column-sort`]:{background:Ze.tableBodySortBg},[`${Re}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${Re}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Re}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Re}-column-sorter`]:{marginInlineStart:Dt,color:an,fontSize:0,transition:`color ${Ze.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:$t,"&.active":{color:Ze.colorPrimary}},[`${Re}-column-sorter-up + ${Re}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Re}-column-sorters:hover ${Re}-column-sorter`]:{color:gn}}}},Na=Ze=>{const{componentCls:Re,opacityLoading:Dt,tableScrollThumbBg:$t,tableScrollThumbBgHover:an,tableScrollThumbSize:gn,tableScrollBg:Mn,zIndexTableSticky:Fn,stickyScrollBarBorderRadius:zn,lineWidth:Ln,lineType:xr,tableBorderColor:lr}=Ze,rr=`${(0,Ur.unit)(Ln)} ${xr} ${lr}`;return{[`${Re}-wrapper`]:{[`${Re}-sticky`]:{"&-holder":{position:"sticky",zIndex:Fn,background:Ze.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Ur.unit)(gn)} !important`,zIndex:Fn,display:"flex",alignItems:"center",background:Mn,borderTop:rr,opacity:Dt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:gn,backgroundColor:$t,borderRadius:zn,transition:`all ${Ze.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:an}}}}}}},_a=Ze=>{const{componentCls:Re,lineWidth:Dt,tableBorderColor:$t,calc:an}=Ze,gn=`${(0,Ur.unit)(Dt)} ${Ze.lineType} ${$t}`;return{[`${Re}-wrapper`]:{[`${Re}-summary`]:{position:"relative",zIndex:Ze.zIndexTableFixed,background:Ze.tableBg,"> tr":{"> th, > td":{borderBottom:gn}}},[`div${Re}-summary`]:{boxShadow:`0 ${(0,Ur.unit)(an(Dt).mul(-1).equal())} 0 ${$t}`}}}},ki=Ze=>{const{componentCls:Re,motionDurationMid:Dt,lineWidth:$t,lineType:an,tableBorderColor:gn,calc:Mn}=Ze,Fn=`${(0,Ur.unit)($t)} ${an} ${gn}`,zn=`${Re}-expanded-row-cell`;return{[`${Re}-wrapper`]:{[`${Re}-tbody-virtual`]:{[`${Re}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${Re}-row,
|
|
|
& > div:not(${Re}-row) > ${Re}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${Re}-cell`]:{borderBottom:Fn,transition:`background ${Dt}`},[`${Re}-expanded-row`]:{[`${zn}${zn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Ur.unit)($t)})`,borderInlineEnd:"none"}}},[`${Re}-bordered`]:{[`${Re}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Fn,position:"absolute"},[`${Re}-cell`]:{borderInlineEnd:Fn,[`&${Re}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Mn($t).mul(-1).equal(),borderInlineStart:Fn}}},[`&${Re}-virtual`]:{[`${Re}-placeholder ${Re}-cell`]:{borderInlineEnd:Fn,borderBottom:Fn}}}}}};const Vi=Ze=>{const{componentCls:Re,fontWeightStrong:Dt,tablePaddingVertical:$t,tablePaddingHorizontal:an,tableExpandColumnWidth:gn,lineWidth:Mn,lineType:Fn,tableBorderColor:zn,tableFontSize:Ln,tableBg:xr,tableRadius:lr,tableHeaderTextColor:rr,motionDurationMid:Gn,tableHeaderBg:Kn,tableHeaderCellSplitColor:ia,tableFooterTextColor:Tr,tableFooterBg:ca,calc:xa}=Ze,da=`${(0,Ur.unit)(Mn)} ${Fn} ${zn}`;return{[`${Re}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,wo.dF)()),{[Re]:Object.assign(Object.assign({},(0,wo.Wf)(Ze)),{fontSize:Ln,background:xr,borderRadius:`${(0,Ur.unit)(lr)} ${(0,Ur.unit)(lr)} 0 0`,scrollbarColor:`${Ze.tableScrollThumbBg} ${Ze.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Ur.unit)(lr)} ${(0,Ur.unit)(lr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Re}-cell,
|
|
|
${Re}-thead > tr > th,
|
|
|
${Re}-tbody > tr > th,
|
|
|
${Re}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,Ur.unit)($t)} ${(0,Ur.unit)(an)}`,overflowWrap:"break-word"},[`${Re}-title`]:{padding:`${(0,Ur.unit)($t)} ${(0,Ur.unit)(an)}`},[`${Re}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:rr,fontWeight:Dt,textAlign:"start",background:Kn,borderBottom:da,transition:`background ${Gn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Re}-selection-column):not(${Re}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ia,transform:"translateY(-50%)",transition:`background-color ${Gn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Re}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Gn}, border-color ${Gn}`,borderBottom:da,[`
|
|
|
> ${Re}-wrapper:only-child,
|
|
|
> ${Re}-expanded-row-fixed > ${Re}-wrapper:only-child
|
|
|
`]:{[Re]:{marginBlock:(0,Ur.unit)(xa($t).mul(-1).equal()),marginInline:`${(0,Ur.unit)(xa(gn).sub(an).equal())}
|
|
|
${(0,Ur.unit)(xa(an).mul(-1).equal())}`,[`${Re}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:rr,fontWeight:Dt,textAlign:"start",background:Kn,borderBottom:da,transition:`background ${Gn} ease`}}},[`${Re}-footer`]:{padding:`${(0,Ur.unit)($t)} ${(0,Ur.unit)(an)}`,color:Tr,background:ca}})}},Zo=Ze=>{const{colorFillAlter:Re,colorBgContainer:Dt,colorTextHeading:$t,colorFillSecondary:an,colorFillContent:gn,controlItemBgActive:Mn,controlItemBgActiveHover:Fn,padding:zn,paddingSM:Ln,paddingXS:xr,colorBorderSecondary:lr,borderRadiusLG:rr,controlHeight:Gn,colorTextPlaceholder:Kn,fontSize:ia,fontSizeSM:Tr,lineHeight:ca,lineWidth:xa,colorIcon:da,colorIconHover:ha,opacityLoading:La,controlInteractiveSize:Ja}=Ze,Ka=new Fo.FastColor(an).onBackground(Dt).toHexString(),to=new Fo.FastColor(gn).onBackground(Dt).toHexString(),wi=new Fo.FastColor(Re).onBackground(Dt).toHexString(),hi=new Fo.FastColor(da),Wi=new Fo.FastColor(ha),qa=Ja/2-xa,ti=qa*2+xa*3;return{headerBg:wi,headerColor:$t,headerSortActiveBg:Ka,headerSortHoverBg:to,bodySortBg:wi,rowHoverBg:wi,rowSelectedBg:Mn,rowSelectedHoverBg:Fn,rowExpandedBg:Re,cellPaddingBlock:zn,cellPaddingInline:zn,cellPaddingBlockMD:Ln,cellPaddingInlineMD:xr,cellPaddingBlockSM:xr,cellPaddingInlineSM:xr,borderColor:lr,headerBorderRadius:rr,footerBg:wi,footerColor:$t,cellFontSize:ia,cellFontSizeMD:ia,cellFontSizeSM:ia,headerSplitColor:lr,fixedHeaderSortActiveBg:Ka,headerFilterHoverBg:gn,filterDropdownMenuBg:Dt,filterDropdownBg:Dt,expandIconBg:Dt,selectionColumnWidth:Gn,stickyScrollBarBg:Kn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(ia*ca-xa*3)/2-Math.ceil((Tr*1.4-xa*3)/2),headerIconColor:hi.clone().setA(hi.a*La).toRgbString(),headerIconHoverColor:Wi.clone().setA(Wi.a*La).toRgbString(),expandIconHalfInner:qa,expandIconSize:ti,expandIconScale:Ja/ti}},eo=2;var ll=(0,Io.I$)("Table",Ze=>{const{colorTextHeading:Re,colorSplit:Dt,colorBgContainer:$t,controlInteractiveSize:an,headerBg:gn,headerColor:Mn,headerSortActiveBg:Fn,headerSortHoverBg:zn,bodySortBg:Ln,rowHoverBg:xr,rowSelectedBg:lr,rowSelectedHoverBg:rr,rowExpandedBg:Gn,cellPaddingBlock:Kn,cellPaddingInline:ia,cellPaddingBlockMD:Tr,cellPaddingInlineMD:ca,cellPaddingBlockSM:xa,cellPaddingInlineSM:da,borderColor:ha,footerBg:La,footerColor:Ja,headerBorderRadius:Ka,cellFontSize:to,cellFontSizeMD:wi,cellFontSizeSM:hi,headerSplitColor:Wi,fixedHeaderSortActiveBg:qa,headerFilterHoverBg:ti,filterDropdownBg:Ma,expandIconBg:Sa,selectionColumnWidth:Ya,stickyScrollBarBg:ri,calc:Ci}=Ze,Ra=(0,vl.mergeToken)(Ze,{tableFontSize:to,tableBg:$t,tableRadius:Ka,tablePaddingVertical:Kn,tablePaddingHorizontal:ia,tablePaddingVerticalMiddle:Tr,tablePaddingHorizontalMiddle:ca,tablePaddingVerticalSmall:xa,tablePaddingHorizontalSmall:da,tableBorderColor:ha,tableHeaderTextColor:Mn,tableHeaderBg:gn,tableFooterTextColor:Ja,tableFooterBg:La,tableHeaderCellSplitColor:Wi,tableHeaderSortBg:Fn,tableHeaderSortHoverBg:zn,tableBodySortBg:Ln,tableFixedHeaderSortActiveBg:qa,tableHeaderFilterActiveBg:ti,tableFilterDropdownBg:Ma,tableRowHoverBg:xr,tableSelectedRowBg:lr,tableSelectedRowHoverBg:rr,zIndexTableFixed:eo,zIndexTableSticky:Ci(eo).add(1).equal({unit:!1}),tableFontSizeMiddle:wi,tableFontSizeSmall:hi,tableSelectionColumnWidth:Ya,tableExpandIconBg:Sa,tableExpandColumnWidth:Ci(an).add(Ci(Ze.padding).mul(2)).equal(),tableExpandedRowBg:Gn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ri,tableScrollThumbBgHover:Re,tableScrollBg:Dt});return[Vi(Ra),Ls(Ra),_a(Ra),wu(Ra),nu(Ra),zs(Ra),Vs(Ra),Rs(Ra),_a(Ra),tu(Ra),Ps(Ra),Ss(Ra),Na(Ra),Ds(Ra),Su(Ra),vu(Ra),ki(Ra)]},Zo,{unitless:{expandIconScale:!0}});const To=[],ls=(Ze,Re)=>{var Dt,$t;const{prefixCls:an,className:gn,rootClassName:Mn,style:Fn,size:zn,bordered:Ln,dropdownPrefixCls:xr,dataSource:lr,pagination:rr,rowSelection:Gn,rowKey:Kn="key",rowClassName:ia,columns:Tr,children:ca,childrenColumnName:xa,onChange:da,getPopupContainer:ha,loading:La,expandIcon:Ja,expandable:Ka,expandedRowRender:to,expandIconColumnIndex:wi,indentSize:hi,scroll:Wi,sortDirections:qa,locale:ti,showSorterTooltip:Ma={target:"full-header"},virtual:Sa}=Ze,Ya=(0,di.ln)("Table"),ri=y.useMemo(()=>Tr||Pn(ca),[Tr,ca]),Ci=y.useMemo(()=>ri.some(io=>io.responsive),[ri]),Ra=(0,Pl.Z)(Ci),lo=y.useMemo(()=>{const io=new Set(Object.keys(Ra).filter(Do=>Ra[Do]));return ri.filter(Do=>!Do.responsive||Do.responsive.some(hl=>io.has(hl)))},[ri,Ra]),uo=(0,xo.Z)(Ze,["className","style","columns"]),{locale:sl=Gl.Z,direction:ul,table:el,renderEmpty:cl,getPrefixCls:gl,getPopupContainer:fo}=y.useContext(Il.E_),vo=(0,no.Z)(zn),El=Object.assign(Object.assign({},sl.Table),ti),dl=lr||To,ai=gl("table",an),Xi=gl("dropdown",xr),[,ci]=(0,fs.ZP)(),Ua=(0,Xo.Z)(ai),[Po,Bo,ol]=ll(ai,Ua),Yo=Object.assign(Object.assign({childrenColumnName:xa,expandIconColumnIndex:wi},Ka),{expandIcon:(Dt=Ka==null?void 0:Ka.expandIcon)!==null&&Dt!==void 0?Dt:($t=el==null?void 0:el.expandable)===null||$t===void 0?void 0:$t.expandIcon}),{childrenColumnName:$o="children"}=Yo,Cl=y.useMemo(()=>dl.some(io=>io==null?void 0:io[$o])?"nest":to||Ka!=null&&Ka.expandedRowRender?"row":null,[dl]),xi={body:y.useRef(null)},Li=Ui(ai),Mo=y.useRef(null),ko=y.useRef(null);rl(Re,()=>Object.assign(Object.assign({},ko.current),{nativeElement:Mo.current}));const jo=y.useMemo(()=>typeof Kn=="function"?Kn:io=>io==null?void 0:io[Kn],[Kn]),[Tl]=za(dl,$o,jo),xl={},rs=function(io,Do){let hl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Sl,Zl,Ml,us;const Yl=Object.assign(Object.assign({},xl),io);hl&&((Sl=xl.resetPagination)===null||Sl===void 0||Sl.call(xl),!((Zl=Yl.pagination)===null||Zl===void 0)&&Zl.current&&(Yl.pagination.current=1),rr&&((Ml=rr.onChange)===null||Ml===void 0||Ml.call(rr,1,(us=Yl.pagination)===null||us===void 0?void 0:us.pageSize))),Wi&&Wi.scrollToFirstRowOnChange!==!1&&xi.body.current&&(0,zl.Z)(0,{getContainer:()=>xi.body.current}),da==null||da(Yl.pagination,Yl.filters,Yl.sorter,{currentDataSource:Ei(ua(dl,Yl.sorterStates,$o),Yl.filterStates,$o),action:Do})},tl=(io,Do)=>{rs({sorter:io,sorterStates:Do},"sort",!1)},[go,Qo,nl,Ol]=Fa({prefixCls:ai,mergedColumns:lo,onSorterChange:tl,sortDirections:qa||["ascend","descend"],tableLocale:El,showSorterTooltip:Ma}),pl=y.useMemo(()=>ua(dl,Qo,$o),[dl,Qo]);xl.sorter=Ol(),xl.sorterStates=Qo;const Oo=(io,Do)=>{rs({filters:io,filterStates:Do},"filter",!0)},[fl,Ro,Vl]=rn({prefixCls:ai,locale:El,dropdownPrefixCls:Xi,mergedColumns:lo,onFilterChange:Oo,getPopupContainer:ha||fo,rootClassName:xe()(Mn,Ua)}),Bl=Ei(pl,Ro,$o);xl.filters=Vl,xl.filterStates=Ro;const Ll=y.useMemo(()=>{const io={};return Object.keys(Vl).forEach(Do=>{Vl[Do]!==null&&(io[Do]=Vl[Do])}),Object.assign(Object.assign({},nl),{filters:io})},[nl,Vl]),[as]=Ko(Ll),As=(io,Do)=>{rs({pagination:Object.assign(Object.assign({},xl.pagination),{current:io,pageSize:Do})},"paginate")},[Jo,gu]=ea(Bl.length,As,rr);xl.pagination=rr===!1?{}:vr(Jo,rr),xl.resetPagination=gu;const es=y.useMemo(()=>{if(rr===!1||!Jo.pageSize)return Bl;const{current:io=1,total:Do,pageSize:hl=Jn}=Jo;return Bl.length<Do?Bl.length>hl?Bl.slice((io-1)*hl,io*hl):Bl:Bl.slice((io-1)*hl,io*hl)},[!!rr,Bl,Jo==null?void 0:Jo.current,Jo==null?void 0:Jo.pageSize,Jo==null?void 0:Jo.total]),[Bs,ms]=ni({prefixCls:ai,data:Bl,pageData:es,getRowKey:jo,getRecordByKey:Tl,expandType:Cl,childrenColumnName:$o,locale:El,getPopupContainer:ha||fo},Gn),ss=(io,Do,hl)=>{let Sl;return typeof ia=="function"?Sl=xe()(ia(io,Do,hl)):Sl=xe()(ia),xe()({[`${ai}-row-selected`]:ms.has(jo(io,Do))},Sl)};Yo.__PARENT_RENDER_ICON__=Yo.expandIcon,Yo.expandIcon=Yo.expandIcon||Ja||_i(El),Cl==="nest"&&Yo.expandIconColumnIndex===void 0?Yo.expandIconColumnIndex=Gn?1:0:Yo.expandIconColumnIndex>0&&Gn&&(Yo.expandIconColumnIndex-=1),typeof Yo.indentSize!="number"&&(Yo.indentSize=typeof hi=="number"?hi:15);const Ho=y.useCallback(io=>as(Bs(fl(go(io)))),[go,fl,Bs]);let ps,Os;if(rr!==!1&&(Jo!=null&&Jo.total)){let io;Jo.size?io=Jo.size:io=vo==="small"||vo==="middle"?"small":void 0;const Do=Zl=>y.createElement(Hl.Z,Object.assign({},Jo,{className:xe()(`${ai}-pagination ${ai}-pagination-${Zl}`,Jo.className),size:io})),hl=ul==="rtl"?"left":"right",{position:Sl}=Jo;if(Sl!==null&&Array.isArray(Sl)){const Zl=Sl.find(Yl=>Yl.includes("top")),Ml=Sl.find(Yl=>Yl.includes("bottom")),us=Sl.every(Yl=>`${Yl}`=="none");!Zl&&!Ml&&!us&&(Os=Do(hl)),Zl&&(ps=Do(Zl.toLowerCase().replace("top",""))),Ml&&(Os=Do(Ml.toLowerCase().replace("bottom","")))}else Os=Do(hl)}let Ns;typeof La=="boolean"?Ns={spinning:La}:typeof La=="object"&&(Ns=Object.assign({spinning:!0},La));const _s=xe()(ol,Ua,`${ai}-wrapper`,el==null?void 0:el.className,{[`${ai}-wrapper-rtl`]:ul==="rtl"},gn,Mn,Bo),Bu=Object.assign(Object.assign({},el==null?void 0:el.style),Fn),ru=typeof(ti==null?void 0:ti.emptyText)!="undefined"?ti.emptyText:(cl==null?void 0:cl("Table"))||y.createElement(qo.Z,{componentName:"Table"}),yu=Sa?Al:Oi,Du={},Ru=y.useMemo(()=>{const{fontSize:io,lineHeight:Do,lineWidth:hl,padding:Sl,paddingXS:Zl,paddingSM:Ml}=ci,us=Math.floor(io*Do);switch(vo){case"middle":return Ml*2+us+hl;case"small":return Zl*2+us+hl;default:return Sl*2+us+hl}},[ci,vo]);return Sa&&(Du.listItemHeight=Ru),Po(y.createElement("div",{ref:Mo,className:_s,style:Bu},y.createElement(So.Z,Object.assign({spinning:!1},Ns),ps,y.createElement(yu,Object.assign({},Du,uo,{ref:ko,columns:lo,direction:ul,expandable:Yo,prefixCls:ai,className:xe()({[`${ai}-middle`]:vo==="middle",[`${ai}-small`]:vo==="small",[`${ai}-bordered`]:Ln,[`${ai}-empty`]:dl.length===0},ol,Ua,Bo),data:es,rowKey:jo,rowClassName:ss,emptyText:ru,internalHooks:me,internalRefs:xi,transformColumns:Ho,getContainerWidth:Li})),Os)))};var Ys=y.forwardRef(ls);const yi=(Ze,Re)=>{const Dt=y.useRef(0);return Dt.current+=1,y.createElement(Ys,Object.assign({},Ze,{ref:Re,_renderTimes:Dt.current}))},bl=y.forwardRef(yi);bl.SELECTION_COLUMN=Yi,bl.EXPAND_COLUMN=ge,bl.SELECTION_ALL=Eo,bl.SELECTION_INVERT=Co,bl.SELECTION_NONE=zo,bl.Column=Yr,bl.ColumnGroup=Dr,bl.Summary=Ke;var ns=bl,kl=ns},96599:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return xe}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(2738),Se=E(29509),Ee=E(78776),Ce=E(22703),ke=E(12919),Fe=E(48755),de=E(36237),We=E(17835),Te=E(63356),ft=E(51636),Ge=E(16931);const Ne=ce=>{const{paddingXXS:Et,lineWidth:Ye,tagPaddingHorizontal:je,componentCls:it,calc:Pe}=ce,ye=Pe(je).sub(Ye).equal(),vt=Pe(Et).sub(Ye).equal();return{[it]:Object.assign(Object.assign({},(0,Te.Wf)(ce)),{display:"inline-block",height:"auto",marginInlineEnd:ce.marginXS,paddingInline:ye,fontSize:ce.tagFontSize,lineHeight:ce.tagLineHeight,whiteSpace:"nowrap",background:ce.defaultBg,border:`${(0,de.unit)(ce.lineWidth)} ${ce.lineType} ${ce.colorBorder}`,borderRadius:ce.borderRadiusSM,opacity:1,transition:`all ${ce.motionDurationMid}`,textAlign:"start",position:"relative",[`&${it}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ce.defaultColor},[`${it}-close-icon`]:{marginInlineStart:vt,fontSize:ce.tagIconSize,color:ce.colorTextDescription,cursor:"pointer",transition:`all ${ce.motionDurationMid}`,"&:hover":{color:ce.colorTextHeading}},[`&${it}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ce.iconCls}-close, ${ce.iconCls}-close:hover`]:{color:ce.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${it}-checkable-checked):hover`]:{color:ce.colorPrimary,backgroundColor:ce.colorFillSecondary},"&:active, &-checked":{color:ce.colorTextLightSolid},"&-checked":{backgroundColor:ce.colorPrimary,"&:hover":{backgroundColor:ce.colorPrimaryHover}},"&:active":{backgroundColor:ce.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ce.iconCls} + span, > span + ${ce.iconCls}`]:{marginInlineStart:ye}}),[`${it}-borderless`]:{borderColor:"transparent",background:ce.tagBorderlessBg}}},Be=ce=>{const{lineWidth:Et,fontSizeIcon:Ye,calc:je}=ce,it=ce.fontSizeSM;return(0,ft.mergeToken)(ce,{tagFontSize:it,tagLineHeight:(0,de.unit)(je(ce.lineHeightSM).mul(it).equal()),tagIconSize:je(Ye).sub(je(Et).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ce.defaultBg})},Oe=ce=>({defaultBg:new We.FastColor(ce.colorFillQuaternary).onBackground(ce.colorBgContainer).toHexString(),defaultColor:ce.colorText});var Ie=(0,Ge.I$)("Tag",ce=>{const Et=Be(ce);return Ne(Et)},Oe),nt=function(ce,Et){var Ye={};for(var je in ce)Object.prototype.hasOwnProperty.call(ce,je)&&Et.indexOf(je)<0&&(Ye[je]=ce[je]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,je=Object.getOwnPropertySymbols(ce);it<je.length;it++)Et.indexOf(je[it])<0&&Object.prototype.propertyIsEnumerable.call(ce,je[it])&&(Ye[je[it]]=ce[je[it]]);return Ye},Ae=y.forwardRef((ce,Et)=>{const{prefixCls:Ye,style:je,className:it,checked:Pe,onChange:ye,onClick:vt}=ce,zt=nt(ce,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ct,tag:De}=y.useContext(Fe.E_),mt=ln=>{ye==null||ye(!Pe),vt==null||vt(ln)},dt=Ct("tag",Ye),[Gt,bt,xt]=Ie(dt),pt=me()(dt,`${dt}-checkable`,{[`${dt}-checkable-checked`]:Pe},De==null?void 0:De.className,it,bt,xt);return Gt(y.createElement("span",Object.assign({},zt,{ref:Et,style:Object.assign(Object.assign({},je),De==null?void 0:De.style),className:pt,onClick:mt})))}),_e=E(93427);const et=ce=>(0,_e.Z)(ce,(Et,Ye)=>{let{textColor:je,lightBorderColor:it,lightColor:Pe,darkColor:ye}=Ye;return{[`${ce.componentCls}${ce.componentCls}-${Et}`]:{color:je,background:Pe,borderColor:it,"&-inverse":{color:ce.colorTextLightSolid,background:ye,borderColor:ye},[`&${ce.componentCls}-borderless`]:{borderColor:"transparent"}}}});var qe=(0,Ge.bk)(["Tag","preset"],ce=>{const Et=Be(ce);return et(Et)},Oe);function ut(ce){return typeof ce!="string"?ce:ce.charAt(0).toUpperCase()+ce.slice(1)}const yt=(ce,Et,Ye)=>{const je=ut(Ye);return{[`${ce.componentCls}${ce.componentCls}-${Et}`]:{color:ce[`color${Ye}`],background:ce[`color${je}Bg`],borderColor:ce[`color${je}Border`],[`&${ce.componentCls}-borderless`]:{borderColor:"transparent"}}}};var st=(0,Ge.bk)(["Tag","status"],ce=>{const Et=Be(ce);return[yt(Et,"success","Success"),yt(Et,"processing","Info"),yt(Et,"error","Error"),yt(Et,"warning","Warning")]},Oe),$e=function(ce,Et){var Ye={};for(var je in ce)Object.prototype.hasOwnProperty.call(ce,je)&&Et.indexOf(je)<0&&(Ye[je]=ce[je]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,je=Object.getOwnPropertySymbols(ce);it<je.length;it++)Et.indexOf(je[it])<0&&Object.prototype.propertyIsEnumerable.call(ce,je[it])&&(Ye[je[it]]=ce[je[it]]);return Ye};const Le=y.forwardRef((ce,Et)=>{const{prefixCls:Ye,className:je,rootClassName:it,style:Pe,children:ye,icon:vt,color:zt,onClose:Ct,bordered:De=!0,visible:mt}=ce,dt=$e(ce,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Gt,direction:bt,tag:xt}=y.useContext(Fe.E_),[pt,ln]=y.useState(!0),Wt=(0,we.Z)(dt,["closeIcon","closable"]);y.useEffect(()=>{mt!==void 0&&ln(mt)},[mt]);const ue=(0,Se.o2)(zt),ae=(0,Se.yT)(zt),re=ue||ae,se=Object.assign(Object.assign({backgroundColor:zt&&!re?zt:void 0},xt==null?void 0:xt.style),Pe),ve=Gt("tag",Ye),[ie,fe,Ve]=Ie(ve),It=me()(ve,xt==null?void 0:xt.className,{[`${ve}-${zt}`]:re,[`${ve}-has-color`]:zt&&!re,[`${ve}-hidden`]:!pt,[`${ve}-rtl`]:bt==="rtl",[`${ve}-borderless`]:!De},je,it,fe,Ve),Qe=tt=>{tt.stopPropagation(),Ct==null||Ct(tt),!tt.defaultPrevented&&ln(!1)},[,Ke]=(0,Ee.Z)((0,Ee.w)(ce),(0,Ee.w)(xt),{closable:!1,closeIconRender:tt=>{const Ht=y.createElement("span",{className:`${ve}-close-icon`,onClick:Qe},tt);return(0,Ce.wm)(tt,Ht,un=>({onClick:Dn=>{var yn;(yn=un==null?void 0:un.onClick)===null||yn===void 0||yn.call(un,Dn),Qe(Dn)},className:me()(un==null?void 0:un.className,`${ve}-close-icon`)}))}}),gt=typeof dt.onClick=="function"||ye&&ye.type==="a",wt=vt||null,Tt=wt?y.createElement(y.Fragment,null,wt,ye&&y.createElement("span",null,ye)):ye,Je=y.createElement("span",Object.assign({},Wt,{ref:Et,className:It,style:se}),Tt,Ke,ue&&y.createElement(qe,{key:"preset",prefixCls:ve}),ae&&y.createElement(st,{key:"status",prefixCls:ve}));return ie(gt?y.createElement(ke.Z,{component:"Tag"},Je):Je)});Le.CheckableTag=Ae;var xe=Le},71114:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return st}});var y=E(59301),ge=E(92310),me=E.n(ge),we=E(48755),Se=E(83397),Ee=E(36237),Ce=E(63356),ke=E(16931),Fe=E(51636);const de=$e=>{const{componentCls:pe,calc:Le}=$e;return{[pe]:Object.assign(Object.assign({},(0,Ce.Wf)($e)),{margin:0,padding:0,listStyle:"none",[`${pe}-item`]:{position:"relative",margin:0,paddingBottom:$e.itemPaddingBottom,fontSize:$e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:$e.itemHeadSize,insetInlineStart:Le(Le($e.itemHeadSize).sub($e.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,Ee.unit)($e.itemHeadSize)})`,borderInlineStart:`${(0,Ee.unit)($e.tailWidth)} ${$e.lineType} ${$e.tailColor}`},"&-pending":{[`${pe}-item-head`]:{fontSize:$e.fontSizeSM,backgroundColor:"transparent"},[`${pe}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:$e.itemHeadSize,height:$e.itemHeadSize,backgroundColor:$e.dotBg,border:`${(0,Ee.unit)($e.dotBorderWidth)} ${$e.lineType} transparent`,borderRadius:"50%","&-blue":{color:$e.colorPrimary,borderColor:$e.colorPrimary},"&-red":{color:$e.colorError,borderColor:$e.colorError},"&-green":{color:$e.colorSuccess,borderColor:$e.colorSuccess},"&-gray":{color:$e.colorTextDisabled,borderColor:$e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:Le($e.itemHeadSize).div(2).equal(),insetInlineStart:Le($e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:$e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:Le(Le($e.fontSize).mul($e.lineHeight).sub($e.fontSize)).mul(-1).add($e.lineWidth).equal(),marginInlineStart:Le($e.margin).add($e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${pe}-item-tail`]:{display:"none"},[`> ${pe}-item-content`]:{minHeight:Le($e.controlHeightLG).mul(1.2).equal()}}},[`&${pe}-alternate,
|
|
|
&${pe}-right,
|
|
|
&${pe}-label`]:{[`${pe}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:Le($e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:Le($e.tailWidth).div(2).equal()}},"&-left":{[`${pe}-item-content`]:{insetInlineStart:`calc(50% - ${(0,Ee.unit)($e.marginXXS)})`,width:`calc(50% - ${(0,Ee.unit)($e.marginSM)})`,textAlign:"start"}},"&-right":{[`${pe}-item-content`]:{width:`calc(50% - ${(0,Ee.unit)($e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${pe}-right`]:{[`${pe}-item-right`]:{[`${pe}-item-tail,
|
|
|
${pe}-item-head,
|
|
|
${pe}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)(Le(Le($e.itemHeadSize).add($e.tailWidth)).div(2).equal())})`},[`${pe}-item-content`]:{width:`calc(100% - ${(0,Ee.unit)(Le($e.itemHeadSize).add($e.marginXS).equal())})`}}},[`&${pe}-pending
|
|
|
${pe}-item-last
|
|
|
${pe}-item-tail`]:{display:"block",height:`calc(100% - ${(0,Ee.unit)($e.margin)})`,borderInlineStart:`${(0,Ee.unit)($e.tailWidth)} dotted ${$e.tailColor}`},[`&${pe}-reverse
|
|
|
${pe}-item-last
|
|
|
${pe}-item-tail`]:{display:"none"},[`&${pe}-reverse ${pe}-item-pending`]:{[`${pe}-item-tail`]:{insetBlockStart:$e.margin,display:"block",height:`calc(100% - ${(0,Ee.unit)($e.margin)})`,borderInlineStart:`${(0,Ee.unit)($e.tailWidth)} dotted ${$e.tailColor}`},[`${pe}-item-content`]:{minHeight:Le($e.controlHeightLG).mul(1.2).equal()}},[`&${pe}-label`]:{[`${pe}-item-label`]:{position:"absolute",insetBlockStart:Le(Le($e.fontSize).mul($e.lineHeight).sub($e.fontSize)).mul(-1).add($e.tailWidth).equal(),width:`calc(50% - ${(0,Ee.unit)($e.marginSM)})`,textAlign:"end"},[`${pe}-item-right`]:{[`${pe}-item-label`]:{insetInlineStart:`calc(50% + ${(0,Ee.unit)($e.marginSM)})`,width:`calc(50% - ${(0,Ee.unit)($e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${pe}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},We=$e=>({tailColor:$e.colorSplit,tailWidth:$e.lineWidthBold,dotBorderWidth:$e.wireframe?$e.lineWidthBold:$e.lineWidth*3,dotBg:$e.colorBgContainer,itemPaddingBottom:$e.padding*1.25});var Te=(0,ke.I$)("Timeline",$e=>{const pe=(0,Fe.mergeToken)($e,{itemHeadSize:10,customHeadPaddingVertical:$e.paddingXXS,paddingInlineEnd:2});return[de(pe)]},We),ft=function($e,pe){var Le={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&pe.indexOf(xe)<0&&(Le[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols($e);ce<xe.length;ce++)pe.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[ce])&&(Le[xe[ce]]=$e[xe[ce]]);return Le},Ne=$e=>{var{prefixCls:pe,className:Le,color:xe="blue",dot:ce,pending:Et=!1,position:Ye,label:je,children:it}=$e,Pe=ft($e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:ye}=y.useContext(we.E_),vt=ye("timeline",pe),zt=me()(`${vt}-item`,{[`${vt}-item-pending`]:Et},Le),Ct=/blue|red|green|gray/.test(xe||"")?void 0:xe,De=me()(`${vt}-item-head`,{[`${vt}-item-head-custom`]:!!ce,[`${vt}-item-head-${xe}`]:!Ct});return y.createElement("li",Object.assign({},Pe,{className:zt}),je&&y.createElement("div",{className:`${vt}-item-label`},je),y.createElement("div",{className:`${vt}-item-tail`}),y.createElement("div",{className:De,style:{borderColor:Ct,color:Ct}},ce),y.createElement("div",{className:`${vt}-item-content`},it))},Be=E(77654),Oe=E(58617),Ie=function($e,pe){var Le={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&pe.indexOf(xe)<0&&(Le[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols($e);ce<xe.length;ce++)pe.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[ce])&&(Le[xe[ce]]=$e[xe[ce]]);return Le},St=$e=>{var{prefixCls:pe,className:Le,pending:xe=!1,children:ce,items:Et,rootClassName:Ye,reverse:je=!1,direction:it,hashId:Pe,pendingDot:ye,mode:vt=""}=$e,zt=Ie($e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const Ct=(ln,Wt)=>vt==="alternate"?ln==="right"?`${pe}-item-right`:ln==="left"?`${pe}-item-left`:Wt%2===0?`${pe}-item-left`:`${pe}-item-right`:vt==="left"?`${pe}-item-left`:vt==="right"?`${pe}-item-right`:ln==="right"?`${pe}-item-right`:"",De=(0,Be.Z)(Et||[]),mt=typeof xe=="boolean"?null:xe;xe&&De.push({pending:!!xe,dot:ye||y.createElement(Oe.Z,null),children:mt}),je&&De.reverse();const dt=De.length,Gt=`${pe}-item-last`,bt=De.filter(ln=>!!ln).map((ln,Wt)=>{var ue;const ae=Wt===dt-2?Gt:"",re=Wt===dt-1?Gt:"",{className:se}=ln,ve=Ie(ln,["className"]);return y.createElement(Ne,Object.assign({},ve,{className:me()([se,!je&&xe?ae:re,Ct((ue=ln==null?void 0:ln.position)!==null&&ue!==void 0?ue:"",Wt)]),key:(ln==null?void 0:ln.key)||Wt}))}),xt=De.some(ln=>!!(ln!=null&&ln.label)),pt=me()(pe,{[`${pe}-pending`]:!!xe,[`${pe}-reverse`]:!!je,[`${pe}-${vt}`]:!!vt&&!xt,[`${pe}-label`]:xt,[`${pe}-rtl`]:it==="rtl"},Le,Ye,Pe);return y.createElement("ul",Object.assign({},zt,{className:pt}),bt)},Ae=E(11592);function _e($e,pe){return $e&&Array.isArray($e)?$e:(0,Ae.Z)(pe).map(Le=>{var xe,ce;return Object.assign({children:(ce=(xe=Le==null?void 0:Le.props)===null||xe===void 0?void 0:xe.children)!==null&&ce!==void 0?ce:""},Le.props)})}var et=_e,qe=function($e,pe){var Le={};for(var xe in $e)Object.prototype.hasOwnProperty.call($e,xe)&&pe.indexOf(xe)<0&&(Le[xe]=$e[xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,xe=Object.getOwnPropertySymbols($e);ce<xe.length;ce++)pe.indexOf(xe[ce])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[ce])&&(Le[xe[ce]]=$e[xe[ce]]);return Le};const ut=$e=>{const{getPrefixCls:pe,direction:Le,timeline:xe}=y.useContext(we.E_),{prefixCls:ce,children:Et,items:Ye,className:je,style:it}=$e,Pe=qe($e,["prefixCls","children","items","className","style"]),ye=pe("timeline",ce),vt=(0,Se.Z)(ye),[zt,Ct,De]=Te(ye,vt),mt=et(Ye,Et);return zt(y.createElement(St,Object.assign({},Pe,{className:me()(xe==null?void 0:xe.className,je,De,vt),style:Object.assign(Object.assign({},xe==null?void 0:xe.style),it),prefixCls:ye,direction:Le,items:mt,hashId:Ct})))};ut.Item=Ne;var yt=ut,st=yt},18287:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return Ct}});var y=E(87632),ge=E(77654),me=E(59301),we=E(52671),Se=E(8657),Ee=E(60499),Ce={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"},ke=Ce,Fe=E(7657),de=function(mt,dt){return me.createElement(Fe.Z,(0,Ee.Z)({},mt,{ref:dt,icon:ke}))},We=me.forwardRef(de),Te=We,ft=E(92310),Ge=E.n(ft),Ne=E(82661),Be=E(34061),Oe=E(48755),Ie=E(56082),nt=E(86641),St=E(57700),Ae=E(12425);const _e=4;function et(De){const{dropPosition:mt,dropLevelOffset:dt,prefixCls:Gt,indent:bt,direction:xt="ltr"}=De,pt=xt==="ltr"?"left":"right",ln=xt==="ltr"?"right":"left",Wt={[pt]:-dt*bt+_e,[ln]:0};switch(mt){case-1:Wt.top=-3;break;case 1:Wt.bottom=-3;break;default:Wt.bottom=-3,Wt[pt]=bt+_e;break}return me.createElement("div",{style:Wt,className:`${Gt}-drop-indicator`})}var qe=et,ut=E(85278),st=me.forwardRef((De,mt)=>{var dt;const{getPrefixCls:Gt,direction:bt,virtual:xt,tree:pt}=me.useContext(Oe.E_),{prefixCls:ln,className:Wt,showIcon:ue=!1,showLine:ae,switcherIcon:re,switcherLoadingIcon:se,blockNode:ve=!1,children:ie,checkable:fe=!1,selectable:Ve=!0,draggable:It,motion:Qe,style:Ke}=De,gt=Gt("tree",ln),wt=Gt(),Tt=Qe!=null?Qe:Object.assign(Object.assign({},(0,nt.Z)(wt)),{motionAppear:!1}),Je=Object.assign(Object.assign({},De),{checkable:fe,selectable:Ve,showIcon:ue,motion:Tt,blockNode:ve,showLine:!!ae,dropIndicatorRender:qe}),[tt,Ht,un]=(0,Ae.ZP)(gt),[,Dn]=(0,St.ZP)(),yn=Dn.paddingXS/2+(((dt=Dn.Tree)===null||dt===void 0?void 0:dt.titleHeight)||Dn.controlHeightSM),Lt=me.useMemo(()=>{if(!It)return!1;let Xt={};switch(typeof It){case"function":Xt.nodeDraggable=It;break;case"object":Xt=Object.assign({},It);break;default:break}return Xt.icon!==!1&&(Xt.icon=Xt.icon||me.createElement(Ie.Z,null)),Xt},[It]),cn=Xt=>me.createElement(ut.Z,{prefixCls:gt,switcherIcon:re,switcherLoadingIcon:se,treeNodeProps:Xt,showLine:ae});return tt(me.createElement(y.ZP,Object.assign({itemHeight:yn,ref:mt,virtual:xt},Je,{style:Object.assign(Object.assign({},pt==null?void 0:pt.style),Ke),prefixCls:gt,className:Ge()({[`${gt}-icon-hide`]:!ue,[`${gt}-block-node`]:ve,[`${gt}-unselectable`]:!Ve,[`${gt}-rtl`]:bt==="rtl"},pt==null?void 0:pt.className,Wt,Ht,un),direction:bt,checkable:fe&&me.createElement("span",{className:`${gt}-checkbox-inner`}),selectable:Ve,switcherIcon:cn,draggable:Lt}),ie))});const $e=0,pe=1,Le=2;function xe(De,mt,dt){const{key:Gt,children:bt}=dt;function xt(pt){const ln=pt[Gt],Wt=pt[bt];mt(ln,pt)!==!1&&xe(Wt||[],mt,dt)}De.forEach(xt)}function ce(De){let{treeData:mt,expandedKeys:dt,startKey:Gt,endKey:bt,fieldNames:xt}=De;const pt=[];let ln=$e;if(Gt&&Gt===bt)return[Gt];if(!Gt||!bt)return[];function Wt(ue){return ue===Gt||ue===bt}return xe(mt,ue=>{if(ln===Le)return!1;if(Wt(ue)){if(pt.push(ue),ln===$e)ln=pe;else if(ln===pe)return ln=Le,!1}else ln===pe&&pt.push(ue);return dt.includes(ue)},(0,Be.w$)(xt)),pt}function Et(De,mt,dt){const Gt=(0,ge.Z)(mt),bt=[];return xe(De,(xt,pt)=>{const ln=Gt.indexOf(xt);return ln!==-1&&(bt.push(pt),Gt.splice(ln,1)),!!Gt.length},(0,Be.w$)(dt)),bt}var Ye=function(De,mt){var dt={};for(var Gt in De)Object.prototype.hasOwnProperty.call(De,Gt)&&mt.indexOf(Gt)<0&&(dt[Gt]=De[Gt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Gt=Object.getOwnPropertySymbols(De);bt<Gt.length;bt++)mt.indexOf(Gt[bt])<0&&Object.prototype.propertyIsEnumerable.call(De,Gt[bt])&&(dt[Gt[bt]]=De[Gt[bt]]);return dt};function je(De){const{isLeaf:mt,expanded:dt}=De;return mt?me.createElement(we.Z,null):dt?me.createElement(Se.Z,null):me.createElement(Te,null)}function it(De){let{treeData:mt,children:dt}=De;return mt||(0,Be.zn)(dt)}const Pe=(De,mt)=>{var{defaultExpandAll:dt,defaultExpandParent:Gt,defaultExpandedKeys:bt}=De,xt=Ye(De,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const pt=me.useRef(null),ln=me.useRef(null),Wt=()=>{const{keyEntities:tt}=(0,Be.I8)(it(xt));let Ht;return dt?Ht=Object.keys(tt):Gt?Ht=(0,Ne.r7)(xt.expandedKeys||bt||[],tt):Ht=xt.expandedKeys||bt||[],Ht},[ue,ae]=me.useState(xt.selectedKeys||xt.defaultSelectedKeys||[]),[re,se]=me.useState(()=>Wt());me.useEffect(()=>{"selectedKeys"in xt&&ae(xt.selectedKeys)},[xt.selectedKeys]),me.useEffect(()=>{"expandedKeys"in xt&&se(xt.expandedKeys)},[xt.expandedKeys]);const ve=(tt,Ht)=>{var un;return"expandedKeys"in xt||se(tt),(un=xt.onExpand)===null||un===void 0?void 0:un.call(xt,tt,Ht)},ie=(tt,Ht)=>{var un;const{multiple:Dn,fieldNames:yn}=xt,{node:Lt,nativeEvent:cn}=Ht,{key:Xt=""}=Lt,Xe=it(xt),Nt=Object.assign(Object.assign({},Ht),{selected:!0}),dn=(cn==null?void 0:cn.ctrlKey)||(cn==null?void 0:cn.metaKey),xn=cn==null?void 0:cn.shiftKey;let at;Dn&&dn?(at=tt,pt.current=Xt,ln.current=at,Nt.selectedNodes=Et(Xe,at,yn)):Dn&&xn?(at=Array.from(new Set([].concat((0,ge.Z)(ln.current||[]),(0,ge.Z)(ce({treeData:Xe,expandedKeys:re,startKey:Xt,endKey:pt.current,fieldNames:yn}))))),Nt.selectedNodes=Et(Xe,at,yn)):(at=[Xt],pt.current=Xt,ln.current=at,Nt.selectedNodes=Et(Xe,at,yn)),(un=xt.onSelect)===null||un===void 0||un.call(xt,at,Nt),"selectedKeys"in xt||ae(at)},{getPrefixCls:fe,direction:Ve}=me.useContext(Oe.E_),{prefixCls:It,className:Qe,showIcon:Ke=!0,expandAction:gt="click"}=xt,wt=Ye(xt,["prefixCls","className","showIcon","expandAction"]),Tt=fe("tree",It),Je=Ge()(`${Tt}-directory`,{[`${Tt}-directory-rtl`]:Ve==="rtl"},Qe);return me.createElement(st,Object.assign({icon:je,ref:mt,blockNode:!0},wt,{showIcon:Ke,expandAction:gt,prefixCls:Tt,className:Je,expandedKeys:re,selectedKeys:ue,onSelect:ie,onExpand:ve}))};var vt=me.forwardRef(Pe);const zt=st;zt.DirectoryTree=vt,zt.TreeNode=y.OF;var Ct=zt},12425:function(Rn,qt,E){"use strict";E.d(qt,{ZP:function(){return Ne},Yk:function(){return Te},TM:function(){return ft}});var y=E(36237),ge=E(36170),me=E(63356),we=E(34961),Se=E(51636),Ee=E(16931);const Ce=Be=>{let{treeCls:Oe,treeNodeCls:Ie,directoryNodeSelectedBg:nt,directoryNodeSelectedColor:St,motionDurationMid:Ae,borderRadius:_e,controlItemBgHover:et}=Be;return{[`${Oe}${Oe}-directory ${Ie}`]:{[`${Oe}-node-content-wrapper`]:{position:"static",[`> *:not(${Oe}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Ae}`,content:'""',borderRadius:_e},"&:hover:before":{background:et}},[`${Oe}-switcher, ${Oe}-checkbox, ${Oe}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Oe}-switcher, ${Oe}-draggable-icon`]:{color:St},[`${Oe}-node-content-wrapper`]:{color:St,background:"transparent","&:before, &:hover:before":{background:nt}}}}}},ke=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Fe=(Be,Oe)=>({[`.${Be}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Oe.motionDurationSlow}`}}}),de=(Be,Oe)=>({[`.${Be}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Oe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(Oe.lineWidthBold)} solid ${Oe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),We=(Be,Oe)=>{const{treeCls:Ie,treeNodeCls:nt,treeNodePadding:St,titleHeight:Ae,indentSize:_e,nodeSelectedBg:et,nodeHoverBg:qe,colorTextQuaternary:ut,controlItemBgActiveDisabled:yt}=Oe;return{[Ie]:Object.assign(Object.assign({},(0,me.Wf)(Oe)),{background:Oe.colorBgContainer,borderRadius:Oe.borderRadius,transition:`background-color ${Oe.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Ie}-rtl ${Ie}-switcher_close ${Ie}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Ie}-active-focused)`]:Object.assign({},(0,me.oN)(Oe)),[`${Ie}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ie}-block-node`]:{[`${Ie}-list-holder-inner`]:{alignItems:"stretch",[`${Ie}-node-content-wrapper`]:{flex:"auto"},[`${nt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Oe.colorPrimary}`,opacity:0,animationName:ke,animationDuration:Oe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Oe.borderRadius}}},[nt]:{display:"flex",alignItems:"flex-start",marginBottom:St,lineHeight:(0,y.unit)(Ae),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:St},[`&-disabled ${Ie}-node-content-wrapper`]:{color:Oe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Ie}-checkbox-disabled + ${Ie}-node-selected,&${nt}-disabled${nt}-selected ${Ie}-node-content-wrapper`]:{backgroundColor:yt},[`${Ie}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${nt}-disabled)`]:{[`${Ie}-node-content-wrapper`]:{"&:hover":{color:Oe.nodeHoverColor}}},[`&-active ${Ie}-node-content-wrapper`]:{background:Oe.controlItemBgHover},[`&:not(${nt}-disabled).filter-node ${Ie}-title`]:{color:Oe.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Ie}-draggable-icon`]:{flexShrink:0,width:Ae,textAlign:"center",visibility:"visible",color:ut},[`&${nt}-disabled ${Ie}-draggable-icon`]:{visibility:"hidden"}}},[`${Ie}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:_e}},[`${Ie}-draggable-icon`]:{visibility:"hidden"},[`${Ie}-switcher, ${Ie}-checkbox`]:{marginInlineEnd:Oe.calc(Oe.calc(Ae).sub(Oe.controlInteractiveSize)).div(2).equal()},[`${Ie}-switcher`]:Object.assign(Object.assign({},Fe(Be,Oe)),{position:"relative",flex:"none",alignSelf:"stretch",width:Ae,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Oe.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Ae,height:Ae,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Oe.borderRadius,transition:`all ${Oe.motionDurationSlow}`},[`&:not(${Ie}-switcher-noop):hover:before`]:{backgroundColor:Oe.colorBgTextHover},[`&_close ${Ie}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Oe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Oe.calc(Ae).div(2).equal(),bottom:Oe.calc(St).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Oe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Oe.calc(Oe.calc(Ae).div(2).equal()).mul(.8).equal(),height:Oe.calc(Ae).div(2).equal(),borderBottom:`1px solid ${Oe.colorBorder}`,content:'""'}}}),[`${Ie}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Ae,paddingBlock:0,paddingInline:Oe.paddingXS,background:"transparent",borderRadius:Oe.borderRadius,cursor:"pointer",transition:`all ${Oe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},de(Be,Oe)),{"&:hover":{backgroundColor:qe},[`&${Ie}-node-selected`]:{color:Oe.nodeSelectedColor,backgroundColor:et},[`${Ie}-iconEle`]:{display:"inline-block",width:Ae,height:Ae,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Ie}-unselectable ${Ie}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${nt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Oe.colorPrimary}`},"&-show-line":{[`${Ie}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Oe.calc(Ae).div(2).equal(),bottom:Oe.calc(St).mul(-1).equal(),borderInlineEnd:`1px solid ${Oe.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Ie}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${nt}-leaf-last ${Ie}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(Oe.calc(Ae).div(2).equal())} !important`}})}},Te=function(Be,Oe){let Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const nt=`.${Be}`,St=`${nt}-treenode`,Ae=Oe.calc(Oe.paddingXS).div(2).equal(),_e=(0,Se.mergeToken)(Oe,{treeCls:nt,treeNodeCls:St,treeNodePadding:Ae});return[We(Be,_e),Ie&&Ce(_e)].filter(Boolean)},ft=Be=>{const{controlHeightSM:Oe,controlItemBgHover:Ie,controlItemBgActive:nt}=Be,St=Oe;return{titleHeight:St,indentSize:St,nodeHoverBg:Ie,nodeHoverColor:Be.colorText,nodeSelectedBg:nt,nodeSelectedColor:Be.colorText}},Ge=Be=>{const{colorTextLightSolid:Oe,colorPrimary:Ie}=Be;return Object.assign(Object.assign({},ft(Be)),{directoryNodeSelectedColor:Oe,directoryNodeSelectedBg:Ie})};var Ne=(0,Ee.I$)("Tree",(Be,Oe)=>{let{prefixCls:Ie}=Oe;return[{[Be.componentCls]:(0,ge.C2)(`${Ie}-checkbox`,Be)},Te(Ie,Be),(0,we.Z)(Be)]},Ge)},85278:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Oe}});var y=E(59301),ge=E(60499),me={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},we=me,Se=E(7657),Ee=function(nt,St){return y.createElement(Se.Z,(0,ge.Z)({},nt,{ref:St,icon:we}))},Ce=y.forwardRef(Ee),ke=Ce,Fe=E(52671),de=E(58617),We=E(15075),Te=E(43531),ft=E(92310),Ge=E.n(ft),Ne=E(22703),Oe=Ie=>{const{prefixCls:nt,switcherIcon:St,treeNodeProps:Ae,showLine:_e,switcherLoadingIcon:et}=Ie,{isLeaf:qe,expanded:ut,loading:yt}=Ae;if(yt)return y.isValidElement(et)?et:y.createElement(de.Z,{className:`${nt}-switcher-loading-icon`});let st;if(_e&&typeof _e=="object"&&(st=_e.showLeafIcon),qe){if(!_e)return null;if(typeof st!="boolean"&&st){const Le=typeof st=="function"?st(Ae):st,xe=`${nt}-switcher-line-custom-icon`;return y.isValidElement(Le)?(0,Ne.Tm)(Le,{className:Ge()(Le.props.className||"",xe)}):Le}return st?y.createElement(Fe.Z,{className:`${nt}-switcher-line-icon`}):y.createElement("span",{className:`${nt}-switcher-leaf-line`})}const $e=`${nt}-switcher-icon`,pe=typeof St=="function"?St(Ae):St;return y.isValidElement(pe)?(0,Ne.Tm)(pe,{className:Ge()(pe.props.className||"",$e)}):pe!==void 0?pe:_e?ut?y.createElement(We.Z,{className:`${nt}-switcher-line-icon`}):y.createElement(Te.Z,{className:`${nt}-switcher-line-icon`}):y.createElement(ke,{className:$e})}},99498:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){y.defineOption("placeholder","",function(ke,Fe,de){var We=de&&de!=y.Init;if(Fe&&!We)ke.on("blur",Se),ke.on("change",Ee),ke.on("swapDoc",Ee),y.on(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose=function(){we(ke)}),Ee(ke);else if(!Fe&&We){ke.off("blur",Se),ke.off("change",Ee),ke.off("swapDoc",Ee),y.off(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose),ge(ke);var Te=ke.getWrapperElement();Te.className=Te.className.replace(" CodeMirror-empty","")}Fe&&!ke.hasFocus()&&Se(ke)});function ge(ke){ke.state.placeholder&&(ke.state.placeholder.parentNode.removeChild(ke.state.placeholder),ke.state.placeholder=null)}function me(ke){ge(ke);var Fe=ke.state.placeholder=document.createElement("pre");Fe.style.cssText="height: 0; overflow: visible",Fe.style.direction=ke.getOption("direction"),Fe.className="CodeMirror-placeholder CodeMirror-line-like";var de=ke.getOption("placeholder");typeof de=="string"&&(de=document.createTextNode(de)),Fe.appendChild(de),ke.display.lineSpace.insertBefore(Fe,ke.display.lineSpace.firstChild)}function we(ke){setTimeout(function(){var Fe=!1,de=ke.getInputField();de.nodeName=="TEXTAREA"?Fe=!de.value:ke.lineCount()==1&&(Fe=!/[^\u200b]/.test(de.querySelector(".CodeMirror-line").textContent)),Fe?me(ke):ge(ke)},20)}function Se(ke){Ce(ke)&&me(ke)}function Ee(ke){var Fe=ke.getWrapperElement(),de=Ce(ke);Fe.className=Fe.className.replace(" CodeMirror-empty","")+(de?" CodeMirror-empty":""),de?me(ke):ge(ke)}function Ce(ke){return ke.lineCount()===1&&ke.getLine(0)===""}})},25717:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){var ge={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},me=y.Pos;y.defineOption("autoCloseBrackets",!1,function(Ne,Be,Oe){Oe&&Oe!=y.Init&&(Ne.removeKeyMap(Se),Ne.state.closeBrackets=null),Be&&(Ee(we(Be,"pairs")),Ne.state.closeBrackets=Be,Ne.addKeyMap(Se))});function we(Ne,Be){return Be=="pairs"&&typeof Ne=="string"?Ne:typeof Ne=="object"&&Ne[Be]!=null?Ne[Be]:ge[Be]}var Se={Backspace:Fe,Enter:de};function Ee(Ne){for(var Be=0;Be<Ne.length;Be++){var Oe=Ne.charAt(Be),Ie="'"+Oe+"'";Se[Ie]||(Se[Ie]=Ce(Oe))}}Ee(ge.pairs+"`");function Ce(Ne){return function(Be){return Te(Be,Ne)}}function ke(Ne){var Be=Ne.state.closeBrackets;if(!Be||Be.override)return Be;var Oe=Ne.getModeAt(Ne.getCursor());return Oe.closeBrackets||Be}function Fe(Ne){var Be=ke(Ne);if(!Be||Ne.getOption("disableInput"))return y.Pass;for(var Oe=we(Be,"pairs"),Ie=Ne.listSelections(),nt=0;nt<Ie.length;nt++){if(!Ie[nt].empty())return y.Pass;var St=ft(Ne,Ie[nt].head);if(!St||Oe.indexOf(St)%2!=0)return y.Pass}for(var nt=Ie.length-1;nt>=0;nt--){var Ae=Ie[nt].head;Ne.replaceRange("",me(Ae.line,Ae.ch-1),me(Ae.line,Ae.ch+1),"+delete")}}function de(Ne){var Be=ke(Ne),Oe=Be&&we(Be,"explode");if(!Oe||Ne.getOption("disableInput"))return y.Pass;for(var Ie=Ne.listSelections(),nt=0;nt<Ie.length;nt++){if(!Ie[nt].empty())return y.Pass;var St=ft(Ne,Ie[nt].head);if(!St||Oe.indexOf(St)%2!=0)return y.Pass}Ne.operation(function(){var Ae=Ne.lineSeparator()||`
|
|
|
`;Ne.replaceSelection(Ae+Ae,null),Ne.execCommand("goCharLeft"),Ie=Ne.listSelections();for(var _e=0;_e<Ie.length;_e++){var et=Ie[_e].head.line;Ne.indentLine(et,null,!0),Ne.indentLine(et+1,null,!0)}})}function We(Ne){var Be=y.cmpPos(Ne.anchor,Ne.head)>0;return{anchor:new me(Ne.anchor.line,Ne.anchor.ch+(Be?-1:1)),head:new me(Ne.head.line,Ne.head.ch+(Be?1:-1))}}function Te(Ne,Be){var Oe=ke(Ne);if(!Oe||Ne.getOption("disableInput"))return y.Pass;var Ie=we(Oe,"pairs"),nt=Ie.indexOf(Be);if(nt==-1)return y.Pass;for(var St=we(Oe,"closeBefore"),Ae=we(Oe,"triples"),_e=Ie.charAt(nt+1)==Be,et=Ne.listSelections(),qe=nt%2==0,ut,yt=0;yt<et.length;yt++){var st=et[yt],$e=st.head,pe,Le=Ne.getRange($e,me($e.line,$e.ch+1));if(qe&&!st.empty())pe="surround";else if((_e||!qe)&&Le==Be)_e&&Ge(Ne,$e)?pe="both":Ae.indexOf(Be)>=0&&Ne.getRange($e,me($e.line,$e.ch+3))==Be+Be+Be?pe="skipThree":pe="skip";else if(_e&&$e.ch>1&&Ae.indexOf(Be)>=0&&Ne.getRange(me($e.line,$e.ch-2),$e)==Be+Be){if($e.ch>2&&/\bstring/.test(Ne.getTokenTypeAt(me($e.line,$e.ch-2))))return y.Pass;pe="addFour"}else if(_e){var xe=$e.ch==0?" ":Ne.getRange(me($e.line,$e.ch-1),$e);if(!y.isWordChar(Le)&&xe!=Be&&!y.isWordChar(xe))pe="both";else return y.Pass}else if(qe&&(Le.length===0||/\s/.test(Le)||St.indexOf(Le)>-1))pe="both";else return y.Pass;if(!ut)ut=pe;else if(ut!=pe)return y.Pass}var ce=nt%2?Ie.charAt(nt-1):Be,Et=nt%2?Be:Ie.charAt(nt+1);Ne.operation(function(){if(ut=="skip")Ne.execCommand("goCharRight");else if(ut=="skipThree")for(var Ye=0;Ye<3;Ye++)Ne.execCommand("goCharRight");else if(ut=="surround"){for(var je=Ne.getSelections(),Ye=0;Ye<je.length;Ye++)je[Ye]=ce+je[Ye]+Et;Ne.replaceSelections(je,"around"),je=Ne.listSelections().slice();for(var Ye=0;Ye<je.length;Ye++)je[Ye]=We(je[Ye]);Ne.setSelections(je)}else ut=="both"?(Ne.replaceSelection(ce+Et,null),Ne.triggerElectric(ce+Et),Ne.execCommand("goCharLeft")):ut=="addFour"&&(Ne.replaceSelection(ce+ce+ce+ce,"before"),Ne.execCommand("goCharRight"))})}function ft(Ne,Be){var Oe=Ne.getRange(me(Be.line,Be.ch-1),me(Be.line,Be.ch+1));return Oe.length==2?Oe:null}function Ge(Ne,Be){var Oe=Ne.getTokenAt(me(Be.line,Be.ch+1));return/\bstring/.test(Oe.type)&&Oe.start==Be.ch&&(Be.ch==0||!/\bstring/.test(Ne.getTokenTypeAt(Be)))}})},6313:function(Rn,qt,E){(function(y){y(E(89780),E(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(Fe,de,We){if(We!=y.Init&&We&&Fe.removeKeyMap("autoCloseTags"),!!de){var Te={name:"autoCloseTags"};(typeof de!="object"||de.whenClosing!==!1)&&(Te["'/'"]=function(ft){return Ee(ft)}),(typeof de!="object"||de.whenOpening!==!1)&&(Te["'>'"]=function(ft){return we(ft)}),Fe.addKeyMap(Te)}});var ge=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],me=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function we(Fe){if(Fe.getOption("disableInput"))return y.Pass;for(var de=Fe.listSelections(),We=[],Te=Fe.getOption("autoCloseTags"),ft=0;ft<de.length;ft++){if(!de[ft].empty())return y.Pass;var Ge=de[ft].head,Ne=Fe.getTokenAt(Ge),Be=y.innerMode(Fe.getMode(),Ne.state),Oe=Be.state,Ie=Be.mode.xmlCurrentTag&&Be.mode.xmlCurrentTag(Oe),nt=Ie&&Ie.name;if(!nt)return y.Pass;var St=Be.mode.configuration=="html",Ae=typeof Te=="object"&&Te.dontCloseTags||St&&ge,_e=typeof Te=="object"&&Te.indentTags||St&&me;Ne.end>Ge.ch&&(nt=nt.slice(0,nt.length-Ne.end+Ge.ch));var et=nt.toLowerCase();if(!nt||Ne.type=="string"&&(Ne.end!=Ge.ch||!/[\"\']/.test(Ne.string.charAt(Ne.string.length-1))||Ne.string.length==1)||Ne.type=="tag"&&Ie.close||Ne.string.indexOf("/")==Ge.ch-Ne.start-1||Ae&&Ce(Ae,et)>-1||ke(Fe,Be.mode.xmlCurrentContext&&Be.mode.xmlCurrentContext(Oe)||[],nt,Ge,!0))return y.Pass;var qe=typeof Te=="object"&&Te.emptyTags;if(qe&&Ce(qe,nt)>-1){We[ft]={text:"/>",newPos:y.Pos(Ge.line,Ge.ch+2)};continue}var ut=_e&&Ce(_e,et)>-1;We[ft]={indent:ut,text:">"+(ut?`
|
|
|
|
|
|
`:"")+"</"+nt+">",newPos:ut?y.Pos(Ge.line+1,0):y.Pos(Ge.line,Ge.ch+1)}}for(var yt=typeof Te=="object"&&Te.dontIndentOnAutoClose,ft=de.length-1;ft>=0;ft--){var st=We[ft];Fe.replaceRange(st.text,de[ft].head,de[ft].anchor,"+insert");var $e=Fe.listSelections().slice(0);$e[ft]={head:st.newPos,anchor:st.newPos},Fe.setSelections($e),!yt&&st.indent&&(Fe.indentLine(st.newPos.line,null,!0),Fe.indentLine(st.newPos.line+1,null,!0))}}function Se(Fe,de){for(var We=Fe.listSelections(),Te=[],ft=de?"/":"</",Ge=Fe.getOption("autoCloseTags"),Ne=typeof Ge=="object"&&Ge.dontIndentOnSlash,Be=0;Be<We.length;Be++){if(!We[Be].empty())return y.Pass;var Oe=We[Be].head,Ie=Fe.getTokenAt(Oe),nt=y.innerMode(Fe.getMode(),Ie.state),St=nt.state;if(de&&(Ie.type=="string"||Ie.string.charAt(0)!="<"||Ie.start!=Oe.ch-1))return y.Pass;var Ae,_e=nt.mode.name!="xml"&&Fe.getMode().name=="htmlmixed";if(_e&&nt.mode.name=="javascript")Ae=ft+"script";else if(_e&&nt.mode.name=="css")Ae=ft+"style";else{var et=nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(St);if(!et||et.length&&ke(Fe,et,et[et.length-1],Oe))return y.Pass;Ae=ft+et[et.length-1]}Fe.getLine(Oe.line).charAt(Ie.end)!=">"&&(Ae+=">"),Te[Be]=Ae}if(Fe.replaceSelections(Te),We=Fe.listSelections(),!Ne)for(var Be=0;Be<We.length;Be++)(Be==We.length-1||We[Be].head.line<We[Be+1].head.line)&&Fe.indentLine(We[Be].head.line)}function Ee(Fe){return Fe.getOption("disableInput")?y.Pass:Se(Fe,!0)}y.commands.closeTag=function(Fe){return Se(Fe)};function Ce(Fe,de){if(Fe.indexOf)return Fe.indexOf(de);for(var We=0,Te=Fe.length;We<Te;++We)if(Fe[We]==de)return We;return-1}function ke(Fe,de,We,Te,ft){if(!y.scanForClosingTag)return!1;var Ge=Math.min(Fe.lastLine()+1,Te.line+500),Ne=y.scanForClosingTag(Fe,Te,null,Ge);if(!Ne||Ne.tag!=We)return!1;for(var Be=ft?1:0,Oe=de.length-1;Oe>=0&&de[Oe]==We;Oe--)++Be;Te=Ne.to;for(var Oe=1;Oe<Be;Oe++){var Ie=y.scanForClosingTag(Fe,Te,null,Ge);if(!Ie||Ie.tag!=We)return!1;Te=Ie.to}return!0}})},32855:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){"use strict";var ge=y.Pos;function me(Oe,Ie){return Oe.line-Ie.line||Oe.ch-Ie.ch}var we="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Se=we+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+we+"]["+Se+"]*)","g");function Ce(Oe,Ie,nt,St){this.line=Ie,this.ch=nt,this.cm=Oe,this.text=Oe.getLine(Ie),this.min=St?Math.max(St.from,Oe.firstLine()):Oe.firstLine(),this.max=St?Math.min(St.to-1,Oe.lastLine()):Oe.lastLine()}function ke(Oe,Ie){var nt=Oe.cm.getTokenTypeAt(ge(Oe.line,Ie));return nt&&/\btag\b/.test(nt)}function Fe(Oe){if(!(Oe.line>=Oe.max))return Oe.ch=0,Oe.text=Oe.cm.getLine(++Oe.line),!0}function de(Oe){if(!(Oe.line<=Oe.min))return Oe.text=Oe.cm.getLine(--Oe.line),Oe.ch=Oe.text.length,!0}function We(Oe){for(;;){var Ie=Oe.text.indexOf(">",Oe.ch);if(Ie==-1){if(Fe(Oe))continue;return}if(!ke(Oe,Ie+1)){Oe.ch=Ie+1;continue}var nt=Oe.text.lastIndexOf("/",Ie),St=nt>-1&&!/\S/.test(Oe.text.slice(nt+1,Ie));return Oe.ch=Ie+1,St?"selfClose":"regular"}}function Te(Oe){for(;;){var Ie=Oe.ch?Oe.text.lastIndexOf("<",Oe.ch-1):-1;if(Ie==-1){if(de(Oe))continue;return}if(!ke(Oe,Ie+1)){Oe.ch=Ie;continue}Ee.lastIndex=Ie,Oe.ch=Ie;var nt=Ee.exec(Oe.text);if(nt&&nt.index==Ie)return nt}}function ft(Oe){for(;;){Ee.lastIndex=Oe.ch;var Ie=Ee.exec(Oe.text);if(!Ie){if(Fe(Oe))continue;return}if(!ke(Oe,Ie.index+1)){Oe.ch=Ie.index+1;continue}return Oe.ch=Ie.index+Ie[0].length,Ie}}function Ge(Oe){for(;;){var Ie=Oe.ch?Oe.text.lastIndexOf(">",Oe.ch-1):-1;if(Ie==-1){if(de(Oe))continue;return}if(!ke(Oe,Ie+1)){Oe.ch=Ie;continue}var nt=Oe.text.lastIndexOf("/",Ie),St=nt>-1&&!/\S/.test(Oe.text.slice(nt+1,Ie));return Oe.ch=Ie+1,St?"selfClose":"regular"}}function Ne(Oe,Ie){for(var nt=[];;){var St=ft(Oe),Ae,_e=Oe.line,et=Oe.ch-(St?St[0].length:0);if(!St||!(Ae=We(Oe)))return;if(Ae!="selfClose")if(St[1]){for(var qe=nt.length-1;qe>=0;--qe)if(nt[qe]==St[2]){nt.length=qe;break}if(qe<0&&(!Ie||Ie==St[2]))return{tag:St[2],from:ge(_e,et),to:ge(Oe.line,Oe.ch)}}else nt.push(St[2])}}function Be(Oe,Ie){for(var nt=[];;){var St=Ge(Oe);if(!St)return;if(St=="selfClose"){Te(Oe);continue}var Ae=Oe.line,_e=Oe.ch,et=Te(Oe);if(!et)return;if(et[1])nt.push(et[2]);else{for(var qe=nt.length-1;qe>=0;--qe)if(nt[qe]==et[2]){nt.length=qe;break}if(qe<0&&(!Ie||Ie==et[2]))return{tag:et[2],from:ge(Oe.line,Oe.ch),to:ge(Ae,_e)}}}}y.registerHelper("fold","xml",function(Oe,Ie){for(var nt=new Ce(Oe,Ie.line,0);;){var St=ft(nt);if(!St||nt.line!=Ie.line)return;var Ae=We(nt);if(!Ae)return;if(!St[1]&&Ae!="selfClose"){var _e=ge(nt.line,nt.ch),et=Ne(nt,St[2]);return et&&me(et.from,_e)>0?{from:_e,to:et.from}:null}}}),y.findMatchingTag=function(Oe,Ie,nt){var St=new Ce(Oe,Ie.line,Ie.ch,nt);if(!(St.text.indexOf(">")==-1&&St.text.indexOf("<")==-1)){var Ae=We(St),_e=Ae&&ge(St.line,St.ch),et=Ae&&Te(St);if(!(!Ae||!et||me(St,Ie)>0)){var qe={from:ge(St.line,St.ch),to:_e,tag:et[2]};return Ae=="selfClose"?{open:qe,close:null,at:"open"}:et[1]?{open:Be(St,et[2]),close:qe,at:"close"}:(St=new Ce(Oe,_e.line,_e.ch,nt),{open:qe,close:Ne(St,et[2]),at:"open"})}}},y.findEnclosingTag=function(Oe,Ie,nt,St){for(var Ae=new Ce(Oe,Ie.line,Ie.ch,nt);;){var _e=Be(Ae,St);if(!_e)break;var et=new Ce(Oe,Ie.line,Ie.ch,nt),qe=Ne(et,_e.tag);if(qe)return{open:_e,close:qe}}},y.scanForClosingTag=function(Oe,Ie,nt,St){var Ae=new Ce(Oe,Ie.line,Ie.ch,St?{from:0,to:St}:null);return Ne(Ae,nt)}})},89780:function(Rn){(function(qt,E){Rn.exports=E()})(this,function(){"use strict";var qt=navigator.userAgent,E=navigator.platform,y=/gecko\/\d/i.test(qt),ge=/MSIE \d/.test(qt),me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qt),we=/Edge\/(\d+)/.exec(qt),Se=ge||me||we,Ee=Se&&(ge?document.documentMode||6:+(we||me)[1]),Ce=!we&&/WebKit\//.test(qt),ke=Ce&&/Qt\/\d+\.\d+/.test(qt),Fe=!we&&/Chrome\//.test(qt),de=/Opera\//.test(qt),We=/Apple Computer/.test(navigator.vendor),Te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(qt),ft=/PhantomJS/.test(qt),Ge=!we&&/AppleWebKit/.test(qt)&&/Mobile\/\w+/.test(qt),Ne=/Android/.test(qt),Be=Ge||Ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(qt),Oe=Ge||/Mac/.test(E),Ie=/\bCrOS\b/.test(qt),nt=/win/i.test(E),St=de&&qt.match(/Version\/(\d*\.\d*)/);St&&(St=Number(St[1])),St&&St>=15&&(de=!1,Ce=!0);var Ae=Oe&&(ke||de&&(St==null||St<12.11)),_e=y||Se&&Ee>=9;function et(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var qe=function(a,b){var z=a.className,x=et(b).exec(z);if(x){var ee=z.slice(x.index+x[0].length);a.className=z.slice(0,x.index)+(ee?x[1]+ee:"")}};function ut(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function yt(a,b){return ut(a).appendChild(b)}function st(a,b,z,x){var ee=document.createElement(a);if(z&&(ee.className=z),x&&(ee.style.cssText=x),typeof b=="string")ee.appendChild(document.createTextNode(b));else if(b)for(var le=0;le<b.length;++le)ee.appendChild(b[le]);return ee}function $e(a,b,z,x){var ee=st(a,b,z,x);return ee.setAttribute("role","presentation"),ee}var pe;document.createRange?pe=function(a,b,z,x){var ee=document.createRange();return ee.setEnd(x||a,z),ee.setStart(a,b),ee}:pe=function(a,b,z){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(ee){return x}return x.collapse(!0),x.moveEnd("character",z),x.moveStart("character",b),x};function Le(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function xe(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function ce(a,b){var z=a.className;et(b).test(z)||(a.className+=(z?" ":"")+b)}function Et(a,b){for(var z=a.split(" "),x=0;x<z.length;x++)z[x]&&!et(z[x]).test(b)&&(b+=" "+z[x]);return b}var Ye=function(a){a.select()};Ge?Ye=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Se&&(Ye=function(a){try{a.select()}catch(b){}});function je(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function it(a,b,z){b||(b={});for(var x in a)a.hasOwnProperty(x)&&(z!==!1||!b.hasOwnProperty(x))&&(b[x]=a[x]);return b}function Pe(a,b,z,x,ee){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var le=x||0,be=ee||0;;){var Me=a.indexOf(" ",le);if(Me<0||Me>=b)return be+(b-le);be+=Me-le,be+=z-be%z,le=Me+1}}var ye=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};ye.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ye.prototype.set=function(a,b){this.f=b;var z=+new Date+a;(!this.id||z<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=z)};function vt(a,b){for(var z=0;z<a.length;++z)if(a[z]==b)return z;return-1}var zt=50,Ct={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},mt={origin:"*mouse"},dt={origin:"+move"};function Gt(a,b,z){for(var x=0,ee=0;;){var le=a.indexOf(" ",x);le==-1&&(le=a.length);var be=le-x;if(le==a.length||ee+be>=b)return x+Math.min(be,b-ee);if(ee+=le-x,ee+=z-ee%z,x=le+1,ee>=b)return x}}var bt=[""];function xt(a){for(;bt.length<=a;)bt.push(pt(bt)+" ");return bt[a]}function pt(a){return a[a.length-1]}function ln(a,b){for(var z=[],x=0;x<a.length;x++)z[x]=b(a[x],x);return z}function Wt(a,b,z){for(var x=0,ee=z(b);x<a.length&&z(a[x])<=ee;)x++;a.splice(x,0,b)}function ue(){}function ae(a,b){var z;return Object.create?z=Object.create(a):(ue.prototype=a,z=new ue),b&&it(b,z),z}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function se(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||re.test(a))}function ve(a,b){return b?b.source.indexOf("\\w")>-1&&se(a)?!0:b.test(a):se(a)}function ie(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ve(a){return a.charCodeAt(0)>=768&&fe.test(a)}function It(a,b,z){for(;(z<0?b>0:b<a.length)&&Ve(a.charAt(b));)b+=z;return b}function Qe(a,b,z){for(var x=b>z?-1:1;;){if(b==z)return b;var ee=(b+z)/2,le=x<0?Math.ceil(ee):Math.floor(ee);if(le==b)return a(le)?b:z;a(le)?z=le:b=le+x}}function Ke(a,b,z,x){if(!a)return x(b,z,"ltr",0);for(var ee=!1,le=0;le<a.length;++le){var be=a[le];(be.from<z&&be.to>b||b==z&&be.to==b)&&(x(Math.max(be.from,b),Math.min(be.to,z),be.level==1?"rtl":"ltr",le),ee=!0)}ee||x(b,z,"ltr")}var gt=null;function wt(a,b,z){var x;gt=null;for(var ee=0;ee<a.length;++ee){var le=a[ee];if(le.from<b&&le.to>b)return ee;le.to==b&&(le.from!=le.to&&z=="before"?x=ee:gt=ee),le.from==b&&(le.from!=le.to&&z!="before"?x=ee:gt=ee)}return x!=null?x:gt}var Tt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function z(lt){return lt<=247?a.charAt(lt):1424<=lt&<<=1524?"R":1536<=lt&<<=1785?b.charAt(lt-1536):1774<=lt&<<=2220?"r":8192<=lt&<<=8203?"w":lt==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,le=/[LRr]/,be=/[Lb1n]/,Me=/[1n]/;function Ue(lt,fn,Sn){this.level=lt,this.from=fn,this.to=Sn}return function(lt,fn){var Sn=fn=="ltr"?"L":"R";if(lt.length==0||fn=="ltr"&&!x.test(lt))return!1;for(var Yn=lt.length,Vn=[],kr=0;kr<Yn;++kr)Vn.push(z(lt.charCodeAt(kr)));for(var ta=0,wa=Sn;ta<Yn;++ta){var Ga=Vn[ta];Ga=="m"?Vn[ta]=wa:wa=Ga}for(var oi=0,Ha=Sn;oi<Yn;++oi){var bi=Vn[oi];bi=="1"&&Ha=="r"?Vn[oi]="n":le.test(bi)&&(Ha=bi,bi=="r"&&(Vn[oi]="R"))}for(var qi=1,Ki=Vn[0];qi<Yn-1;++qi){var Ao=Vn[qi];Ao=="+"&&Ki=="1"&&Vn[qi+1]=="1"?Vn[qi]="1":Ao==","&&Ki==Vn[qi+1]&&(Ki=="1"||Ki=="n")&&(Vn[qi]=Ki),Ki=Ao}for(var ml=0;ml<Yn;++ml){var ql=Vn[ml];if(ql==",")Vn[ml]="N";else if(ql=="%"){var Dl=void 0;for(Dl=ml+1;Dl<Yn&&Vn[Dl]=="%";++Dl);for(var Cs=ml&&Vn[ml-1]=="!"||Dl<Yn&&Vn[Dl]=="1"?"1":"N",vs=ml;vs<Dl;++vs)Vn[vs]=Cs;ml=Dl-1}}for(var $l=0,cs=Sn;$l<Yn;++$l){var ts=Vn[$l];cs=="L"&&ts=="1"?Vn[$l]="L":le.test(ts)&&(cs=ts)}for(var Kl=0;Kl<Yn;++Kl)if(ee.test(Vn[Kl])){var Nl=void 0;for(Nl=Kl+1;Nl<Yn&&ee.test(Vn[Nl]);++Nl);for(var Fl=(Kl?Vn[Kl-1]:Sn)=="L",gs=(Nl<Yn?Vn[Nl]:Sn)=="L",Nu=Fl==gs?Fl?"L":"R":Sn,cu=Kl;cu<Nl;++cu)Vn[cu]=Nu;Kl=Nl-1}for(var is=[],js,te=0;te<Yn;)if(be.test(Vn[te])){var ne=te;for(++te;te<Yn&&be.test(Vn[te]);++te);is.push(new Ue(0,ne,te))}else{var oe=te,he=is.length,ze=fn=="rtl"?1:0;for(++te;te<Yn&&Vn[te]!="L";++te);for(var He=oe;He<te;)if(Me.test(Vn[He])){oe<He&&(is.splice(he,0,new Ue(1,oe,He)),he+=ze);var rt=He;for(++He;He<te&&Me.test(Vn[He]);++He);is.splice(he,0,new Ue(2,rt,He)),he+=ze,oe=He}else++He;oe<te&&is.splice(he,0,new Ue(1,oe,te))}return fn=="ltr"&&(is[0].level==1&&(js=lt.match(/^\s+/))&&(is[0].from=js[0].length,is.unshift(new Ue(0,0,js[0].length))),pt(is).level==1&&(js=lt.match(/\s+$/))&&(pt(is).to-=js[0].length,is.push(new Ue(0,Yn-js[0].length,Yn)))),fn=="rtl"?is.reverse():is}}();function Je(a,b){var z=a.order;return z==null&&(z=a.order=Tt(a.text,b)),z}var tt=[],Ht=function(a,b,z){if(a.addEventListener)a.addEventListener(b,z,!1);else if(a.attachEvent)a.attachEvent("on"+b,z);else{var x=a._handlers||(a._handlers={});x[b]=(x[b]||tt).concat(z)}};function un(a,b){return a._handlers&&a._handlers[b]||tt}function Dn(a,b,z){if(a.removeEventListener)a.removeEventListener(b,z,!1);else if(a.detachEvent)a.detachEvent("on"+b,z);else{var x=a._handlers,ee=x&&x[b];if(ee){var le=vt(ee,z);le>-1&&(x[b]=ee.slice(0,le).concat(ee.slice(le+1)))}}}function yn(a,b){var z=un(a,b);if(z.length)for(var x=Array.prototype.slice.call(arguments,2),ee=0;ee<z.length;++ee)z[ee].apply(null,x)}function Lt(a,b,z){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),yn(a,z||b.type,a,b),xn(b)||b.codemirrorIgnore}function cn(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var z=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),x=0;x<b.length;++x)vt(z,b[x])==-1&&z.push(b[x])}function Xt(a,b){return un(a,b).length>0}function Xe(a){a.prototype.on=function(b,z){Ht(this,b,z)},a.prototype.off=function(b,z){Dn(this,b,z)}}function Nt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function dn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function xn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function at(a){Nt(a),dn(a)}function Rt(a){return a.target||a.srcElement}function en(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),Oe&&a.ctrlKey&&b==1&&(b=3),b}var Pt=function(){if(Se&&Ee<9)return!1;var a=st("div");return"draggable"in a||"dragDrop"in a}(),Ut;function Yt(a){if(Ut==null){var b=st("span","\u200B");yt(a,st("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Ut=b.offsetWidth<=1&&b.offsetHeight>2&&!(Se&&Ee<8))}var z=Ut?st("span","\u200B"):st("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return z.setAttribute("cm-text",""),z}var bn;function jn(a){if(bn!=null)return bn;var b=yt(a,document.createTextNode("A\u062EA")),z=pe(b,0,1).getBoundingClientRect(),x=pe(b,1,2).getBoundingClientRect();return ut(a),!z||z.left==z.right?!1:bn=x.right-z.right<3}var Bn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var b=0,z=[],x=a.length;b<=x;){var ee=a.indexOf(`
|
|
|
`,b);ee==-1&&(ee=a.length);var le=a.slice(b,a.charAt(ee-1)=="\r"?ee-1:ee),be=le.indexOf("\r");be!=-1?(z.push(le.slice(0,be)),b+=be+1):(z.push(le),b=ee+1)}return z}:function(a){return a.split(/\r\n?|\n/)},Zn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(z){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Ot=function(){var a=st("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),jt=null;function on(a){if(jt!=null)return jt;var b=yt(a,st("span","x")),z=b.getBoundingClientRect(),x=pe(b,0,1).getBoundingClientRect();return jt=Math.abs(z.left-x.left)>1}var En={},tn={};function In(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),En[a]=b}function pn(a,b){tn[a]=b}function On(a){if(typeof a=="string"&&tn.hasOwnProperty(a))a=tn[a];else if(a&&typeof a.name=="string"&&tn.hasOwnProperty(a.name)){var b=tn[a.name];typeof b=="string"&&(b={name:b}),a=ae(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return On("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return On("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function fr(a,b){b=On(b);var z=En[b.name];if(!z)return fr(a,"text/plain");var x=z(a,b);if(Qn.hasOwnProperty(b.name)){var ee=Qn[b.name];for(var le in ee)ee.hasOwnProperty(le)&&(x.hasOwnProperty(le)&&(x["_"+le]=x[le]),x[le]=ee[le])}if(x.name=b.name,b.helperType&&(x.helperType=b.helperType),b.modeProps)for(var be in b.modeProps)x[be]=b.modeProps[be];return x}var Qn={};function cr(a,b){var z=Qn.hasOwnProperty(a)?Qn[a]:Qn[a]={};it(b,z)}function Cr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var z={};for(var x in b){var ee=b[x];ee instanceof Array&&(ee=ee.concat([])),z[x]=ee}return z}function gr(a,b){for(var z;a.innerMode&&(z=a.innerMode(b),!(!z||z.mode==a));)b=z.state,a=z.mode;return z||{mode:a,state:b}}function Hr(a,b,z){return a.startState?a.startState(b,z):!0}var Zr=function(a,b,z){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=z};Zr.prototype.eol=function(){return this.pos>=this.string.length},Zr.prototype.sol=function(){return this.pos==this.lineStart},Zr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zr.prototype.eat=function(a){var b=this.string.charAt(this.pos),z;if(typeof a=="string"?z=b==a:z=b&&(a.test?a.test(b):a(b)),z)return++this.pos,b},Zr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},Zr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Zr.prototype.skipToEnd=function(){this.pos=this.string.length},Zr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},Zr.prototype.backUp=function(a){this.pos-=a},Zr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Pe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},Zr.prototype.indentation=function(){return Pe(this.string,null,this.tabSize)-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},Zr.prototype.match=function(a,b,z){if(typeof a=="string"){var x=function(be){return z?be.toLowerCase():be},ee=this.string.substr(this.pos,a.length);if(x(ee)==x(a))return b!==!1&&(this.pos+=a.length),!0}else{var le=this.string.slice(this.pos).match(a);return le&&le.index>0?null:(le&&b!==!1&&(this.pos+=le[0].length),le)}},Zr.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},Zr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},Zr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Pn(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var z=a;!z.lines;)for(var x=0;;++x){var ee=z.children[x],le=ee.chunkSize();if(b<le){z=ee;break}b-=le}return z.lines[b]}function $n(a,b,z){var x=[],ee=b.line;return a.iter(b.line,z.line+1,function(le){var be=le.text;ee==z.line&&(be=be.slice(0,z.ch)),ee==b.line&&(be=be.slice(b.ch)),x.push(be),++ee}),x}function dr(a,b,z){var x=[];return a.iter(b,z,function(ee){x.push(ee.text)}),x}function hr(a,b){var z=b-a.height;if(z)for(var x=a;x;x=x.parent)x.height+=z}function _t(a){if(a.parent==null)return null;for(var b=a.parent,z=vt(b.lines,a),x=b.parent;x;b=x,x=x.parent)for(var ee=0;x.children[ee]!=b;++ee)z+=x.children[ee].chunkSize();return z+b.first}function Qt(a,b){var z=a.first;e:do{for(var x=0;x<a.children.length;++x){var ee=a.children[x],le=ee.height;if(b<le){a=ee;continue e}b-=le,z+=ee.chunkSize()}return z}while(!a.lines);for(var be=0;be<a.lines.length;++be){var Me=a.lines[be],Ue=Me.height;if(b<Ue)break;b-=Ue}return z+be}function ct(a,b){return b>=a.first&&b<a.first+a.size}function Zt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function ot(a,b,z){if(z===void 0&&(z=null),!(this instanceof ot))return new ot(a,b,z);this.line=a,this.ch=b,this.sticky=z}function Kt(a,b){return a.line-b.line||a.ch-b.ch}function Ft(a,b){return a.sticky==b.sticky&&Kt(a,b)==0}function ar(a){return ot(a.line,a.ch)}function mr(a,b){return Kt(a,b)<0?b:a}function At(a,b){return Kt(a,b)<0?a:b}function Mt(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function kt(a,b){if(b.line<a.first)return ot(a.first,0);var z=a.first+a.size-1;return b.line>z?ot(z,Pn(a,z).text.length):Vt(b,Pn(a,b.line).text.length)}function Vt(a,b){var z=a.ch;return z==null||z>b?ot(a.line,b):z<0?ot(a.line,0):a}function Nn(a,b){for(var z=[],x=0;x<b.length;x++)z[x]=kt(a,b[x]);return z}var Hn=function(a,b){this.state=a,this.lookAhead=b},Un=function(a,b,z,x){this.state=b,this.doc=a,this.line=z,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Un.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(a,b,z){return b instanceof Hn?new Un(a,Cr(a.mode,b.state),z,b.lookAhead):new Un(a,Cr(a.mode,b),z)},Un.prototype.save=function(a){var b=a!==!1?Cr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(b,this.maxLookAhead):b};function Xn(a,b,z,x){var ee=[a.state.modeGen],le={};ra(a,b.text,a.doc.mode,z,function(lt,fn){return ee.push(lt,fn)},le,x);for(var be=z.state,Me=function(lt){z.baseTokens=ee;var fn=a.state.overlays[lt],Sn=1,Yn=0;z.state=!0,ra(a,b.text,fn.mode,z,function(Vn,kr){for(var ta=Sn;Yn<Vn;){var wa=ee[Sn];wa>Vn&&ee.splice(Sn,1,Vn,ee[Sn+1],wa),Sn+=2,Yn=Math.min(Vn,wa)}if(kr)if(fn.opaque)ee.splice(ta,Sn-ta,Vn,"overlay "+kr),Sn=ta+2;else for(;ta<Sn;ta+=2){var Ga=ee[ta+1];ee[ta+1]=(Ga?Ga+" ":"")+"overlay "+kr}},le),z.state=be,z.baseTokens=null,z.baseTokenPos=1},Ue=0;Ue<a.state.overlays.length;++Ue)Me(Ue);return{styles:ee,classes:le.bgClass||le.textClass?le:null}}function pr(a,b,z){if(!b.styles||b.styles[0]!=a.state.modeGen){var x=wr(a,_t(b)),ee=b.text.length>a.options.maxHighlightLength&&Cr(a.doc.mode,x.state),le=Xn(a,b,x);ee&&(x.state=ee),b.stateAfter=x.save(!ee),b.styles=le.styles,le.classes?b.styleClasses=le.classes:b.styleClasses&&(b.styleClasses=null),z===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function wr(a,b,z){var x=a.doc,ee=a.display;if(!x.mode.startState)return new Un(x,!0,b);var le=Oa(a,b,z),be=le>x.first&&Pn(x,le-1).stateAfter,Me=be?Un.fromSaved(x,be,le):new Un(x,Hr(x.mode),le);return x.iter(le,b,function(Ue){Or(a,Ue.text,Me);var lt=Me.line;Ue.stateAfter=lt==b-1||lt%5==0||lt>=ee.viewFrom&<<ee.viewTo?Me.save():null,Me.nextLine()}),z&&(x.modeFrontier=Me.line),Me}function Or(a,b,z,x){var ee=a.doc.mode,le=new Zr(b,a.options.tabSize,z);for(le.start=le.pos=x||0,b==""&&Lr(ee,z.state);!le.eol();)Sr(ee,le,z.state),le.start=le.pos}function Lr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var z=gr(a,b);if(z.mode.blankLine)return z.mode.blankLine(z.state)}}function Sr(a,b,z,x){for(var ee=0;ee<10;ee++){x&&(x[0]=gr(a,z).mode);var le=a.token(b,z);if(b.pos>b.start)return le}throw new Error("Mode "+a.name+" failed to advance stream.")}var Mr=function(a,b,z){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=z};function Vr(a,b,z,x){var ee=a.doc,le=ee.mode,be;b=kt(ee,b);var Me=Pn(ee,b.line),Ue=wr(a,b.line,z),lt=new Zr(Me.text,a.options.tabSize,Ue),fn;for(x&&(fn=[]);(x||lt.pos<b.ch)&&!lt.eol();)lt.start=lt.pos,be=Sr(le,lt,Ue.state),x&&fn.push(new Mr(lt,be,Cr(ee.mode,Ue.state)));return x?fn:new Mr(lt,be,Ue.state)}function oa(a,b){if(a)for(;;){var z=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!z)break;a=a.slice(0,z.index)+a.slice(z.index+z[0].length);var x=z[1]?"bgClass":"textClass";b[x]==null?b[x]=z[2]:new RegExp("(?:^|\\s)"+z[2]+"(?:$|\\s)").test(b[x])||(b[x]+=" "+z[2])}return a}function ra(a,b,z,x,ee,le,be){var Me=z.flattenSpans;Me==null&&(Me=a.options.flattenSpans);var Ue=0,lt=null,fn=new Zr(b,a.options.tabSize,x),Sn,Yn=a.options.addModeClass&&[null];for(b==""&&oa(Lr(z,x.state),le);!fn.eol();){if(fn.pos>a.options.maxHighlightLength?(Me=!1,be&&Or(a,b,x,fn.pos),fn.pos=b.length,Sn=null):Sn=oa(Sr(z,fn,x.state,Yn),le),Yn){var Vn=Yn[0].name;Vn&&(Sn="m-"+(Sn?Vn+" "+Sn:Vn))}if(!Me||lt!=Sn){for(;Ue<fn.start;)Ue=Math.min(fn.start,Ue+5e3),ee(Ue,lt);lt=Sn}fn.start=fn.pos}for(;Ue<fn.pos;){var kr=Math.min(fn.pos,Ue+5e3);ee(kr,lt),Ue=kr}}function Oa(a,b,z){for(var x,ee,le=a.doc,be=z?-1:b-(a.doc.mode.innerMode?1e3:100),Me=b;Me>be;--Me){if(Me<=le.first)return le.first;var Ue=Pn(le,Me-1),lt=Ue.stateAfter;if(lt&&(!z||Me+(lt instanceof Hn?lt.lookAhead:0)<=le.modeFrontier))return Me;var fn=Pe(Ue.text,null,a.options.tabSize);(ee==null||x>fn)&&(ee=Me-1,x=fn)}return ee}function ba(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var z=a.first,x=b-1;x>z;x--){var ee=Pn(a,x).stateAfter;if(ee&&(!(ee instanceof Hn)||x+ee.lookAhead<b)){z=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,z)}}var Kr=!1,ga=!1;function Qa(){Kr=!0}function Da(){ga=!0}function Ea(a,b,z){this.marker=a,this.from=b,this.to=z}function Rr(a,b){if(a)for(var z=0;z<a.length;++z){var x=a[z];if(x.marker==b)return x}}function Za(a,b){for(var z,x=0;x<a.length;++x)a[x]!=b&&(z||(z=[])).push(a[x]);return z}function Pa(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function la(a,b,z){var x;if(a)for(var ee=0;ee<a.length;++ee){var le=a[ee],be=le.marker,Me=le.from==null||(be.inclusiveLeft?le.from<=b:le.from<b);if(Me||le.from==b&&be.type=="bookmark"&&(!z||!le.marker.insertLeft)){var Ue=le.to==null||(be.inclusiveRight?le.to>=b:le.to>b);(x||(x=[])).push(new Ea(be,le.from,Ue?null:le.to))}}return x}function Xr(a,b,z){var x;if(a)for(var ee=0;ee<a.length;++ee){var le=a[ee],be=le.marker,Me=le.to==null||(be.inclusiveRight?le.to>=b:le.to>b);if(Me||le.from==b&&be.type=="bookmark"&&(!z||le.marker.insertLeft)){var Ue=le.from==null||(be.inclusiveLeft?le.from<=b:le.from<b);(x||(x=[])).push(new Ea(be,Ue?null:le.from-b,le.to==null?null:le.to-b))}}return x}function $a(a,b){if(b.full)return null;var z=ct(a,b.from.line)&&Pn(a,b.from.line).markedSpans,x=ct(a,b.to.line)&&Pn(a,b.to.line).markedSpans;if(!z&&!x)return null;var ee=b.from.ch,le=b.to.ch,be=Kt(b.from,b.to)==0,Me=la(z,ee,be),Ue=Xr(x,le,be),lt=b.text.length==1,fn=pt(b.text).length+(lt?ee:0);if(Me)for(var Sn=0;Sn<Me.length;++Sn){var Yn=Me[Sn];if(Yn.to==null){var Vn=Rr(Ue,Yn.marker);Vn?lt&&(Yn.to=Vn.to==null?null:Vn.to+fn):Yn.to=ee}}if(Ue)for(var kr=0;kr<Ue.length;++kr){var ta=Ue[kr];if(ta.to!=null&&(ta.to+=fn),ta.from==null){var wa=Rr(Me,ta.marker);wa||(ta.from=fn,lt&&(Me||(Me=[])).push(ta))}else ta.from+=fn,lt&&(Me||(Me=[])).push(ta)}Me&&(Me=Mi(Me)),Ue&&Ue!=Me&&(Ue=Mi(Ue));var Ga=[Me];if(!lt){var oi=b.text.length-2,Ha;if(oi>0&&Me)for(var bi=0;bi<Me.length;++bi)Me[bi].to==null&&(Ha||(Ha=[])).push(new Ea(Me[bi].marker,null,null));for(var qi=0;qi<oi;++qi)Ga.push(Ha);Ga.push(Ue)}return Ga}function Mi(a){for(var b=0;b<a.length;++b){var z=a[b];z.from!=null&&z.from==z.to&&z.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function $i(a,b,z){var x=null;if(a.iter(b.line,z.line+1,function(Vn){if(Vn.markedSpans)for(var kr=0;kr<Vn.markedSpans.length;++kr){var ta=Vn.markedSpans[kr].marker;ta.readOnly&&(!x||vt(x,ta)==-1)&&(x||(x=[])).push(ta)}}),!x)return null;for(var ee=[{from:b,to:z}],le=0;le<x.length;++le)for(var be=x[le],Me=be.find(0),Ue=0;Ue<ee.length;++Ue){var lt=ee[Ue];if(!(Kt(lt.to,Me.from)<0||Kt(lt.from,Me.to)>0)){var fn=[Ue,1],Sn=Kt(lt.from,Me.from),Yn=Kt(lt.to,Me.to);(Sn<0||!be.inclusiveLeft&&!Sn)&&fn.push({from:lt.from,to:Me.from}),(Yn>0||!be.inclusiveRight&&!Yn)&&fn.push({from:Me.to,to:lt.to}),ee.splice.apply(ee,fn),Ue+=fn.length-3}}return ee}function Xa(a){var b=a.markedSpans;if(b){for(var z=0;z<b.length;++z)b[z].marker.detachLine(a);a.markedSpans=null}}function gi(a,b){if(b){for(var z=0;z<b.length;++z)b[z].marker.attachLine(a);a.markedSpans=b}}function Ii(a){return a.inclusiveLeft?-1:0}function Ri(a){return a.inclusiveRight?1:0}function Bi(a,b){var z=a.lines.length-b.lines.length;if(z!=0)return z;var x=a.find(),ee=b.find(),le=Kt(x.from,ee.from)||Ii(a)-Ii(b);if(le)return-le;var be=Kt(x.to,ee.to)||Ri(a)-Ri(b);return be||b.id-a.id}function ei(a,b){var z=ga&&a.markedSpans,x;if(z)for(var ee=void 0,le=0;le<z.length;++le)ee=z[le],ee.marker.collapsed&&(b?ee.from:ee.to)==null&&(!x||Bi(x,ee.marker)<0)&&(x=ee.marker);return x}function Ar(a){return ei(a,!0)}function tr(a){return ei(a,!1)}function yr(a,b){var z=ga&&a.markedSpans,x;if(z)for(var ee=0;ee<z.length;++ee){var le=z[ee];le.marker.collapsed&&(le.from==null||le.from<b)&&(le.to==null||le.to>b)&&(!x||Bi(x,le.marker)<0)&&(x=le.marker)}return x}function Br(a,b,z,x,ee){var le=Pn(a,b),be=ga&&le.markedSpans;if(be)for(var Me=0;Me<be.length;++Me){var Ue=be[Me];if(Ue.marker.collapsed){var lt=Ue.marker.find(0),fn=Kt(lt.from,z)||Ii(Ue.marker)-Ii(ee),Sn=Kt(lt.to,x)||Ri(Ue.marker)-Ri(ee);if(!(fn>=0&&Sn<=0||fn<=0&&Sn>=0)&&(fn<=0&&(Ue.marker.inclusiveRight&&ee.inclusiveLeft?Kt(lt.to,z)>=0:Kt(lt.to,z)>0)||fn>=0&&(Ue.marker.inclusiveRight&&ee.inclusiveLeft?Kt(lt.from,x)<=0:Kt(lt.from,x)<0)))return!0}}}function qn(a){for(var b;b=Ar(a);)a=b.find(-1,!0).line;return a}function Jr(a){for(var b;b=tr(a);)a=b.find(1,!0).line;return a}function Yr(a){for(var b,z;b=tr(a);)a=b.find(1,!0).line,(z||(z=[])).push(a);return z}function Er(a,b){var z=Pn(a,b),x=qn(z);return z==x?b:_t(x)}function Dr(a,b){if(b>a.lastLine())return b;var z=Pn(a,b),x;if(!$r(a,z))return b;for(;x=tr(z);)z=x.find(1,!0).line;return _t(z)+1}function $r(a,b){var z=ga&&b.markedSpans;if(z){for(var x=void 0,ee=0;ee<z.length;++ee)if(x=z[ee],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&qr(a,b,x))return!0}}}function qr(a,b,z){if(z.to==null){var x=z.marker.find(1,!0);return qr(a,x.line,Rr(x.line.markedSpans,z.marker))}if(z.marker.inclusiveRight&&z.to==b.text.length)return!0;for(var ee=void 0,le=0;le<b.markedSpans.length;++le)if(ee=b.markedSpans[le],ee.marker.collapsed&&!ee.marker.widgetNode&&ee.from==z.to&&(ee.to==null||ee.to!=z.from)&&(ee.marker.inclusiveLeft||z.marker.inclusiveRight)&&qr(a,b,ee))return!0}function Aa(a){a=qn(a);for(var b=0,z=a.parent,x=0;x<z.lines.length;++x){var ee=z.lines[x];if(ee==a)break;b+=ee.height}for(var le=z.parent;le;z=le,le=z.parent)for(var be=0;be<le.children.length;++be){var Me=le.children[be];if(Me==z)break;b+=Me.height}return b}function Wa(a){if(a.height==0)return 0;for(var b=a.text.length,z,x=a;z=Ar(x);){var ee=z.find(0,!0);x=ee.from.line,b+=ee.from.ch-ee.to.ch}for(x=a;z=tr(x);){var le=z.find(0,!0);b-=x.text.length-le.from.ch,x=le.to.line,b+=x.text.length-le.to.ch}return b}function na(a){var b=a.display,z=a.doc;b.maxLine=Pn(z,z.first),b.maxLineLength=Wa(b.maxLine),b.maxLineChanged=!0,z.iter(function(x){var ee=Wa(x);ee>b.maxLineLength&&(b.maxLineLength=ee,b.maxLine=x)})}var li=function(a,b,z){this.text=a,gi(this,b),this.height=z?z(this):1};li.prototype.lineNo=function(){return _t(this)},Xe(li);function di(a,b,z,x){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Xa(a),gi(a,z);var ee=x?x(a):1;ee!=a.height&&hr(a,ee)}function zi(a){a.parent=null,Xa(a)}var Hi={},Ji={};function Yi(a,b){if(!a||/^\s*$/.test(a))return null;var z=b.addModeClass?Ji:Hi;return z[a]||(z[a]=a.replace(/\S+/g,"cm-$&"))}function Eo(a,b){var z=$e("span",null,null,Ce?"padding-right: .1px":null),x={pre:$e("pre",[z],"CodeMirror-line"),content:z,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ee=0;ee<=(b.rest?b.rest.length:0);ee++){var le=ee?b.rest[ee-1]:b.line,be=void 0;x.pos=0,x.addToken=zo,jn(a.display.measure)&&(be=Je(le,a.doc.direction))&&(x.addToken=Ta(x.addToken,be)),x.map=[];var Me=b!=a.display.externalMeasured&&_t(le);ni(le,x,pr(a,le,Me)),le.styleClasses&&(le.styleClasses.bgClass&&(x.bgClass=Et(le.styleClasses.bgClass,x.bgClass||"")),le.styleClasses.textClass&&(x.textClass=Et(le.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Yt(a.display.measure))),ee==0?(b.measure.map=x.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(x.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(Ce){var Ue=x.content.lastChild;(/\bcm-tab\b/.test(Ue.className)||Ue.querySelector&&Ue.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return yn(a,"renderLine",a,b.line,x.pre),x.pre.className&&(x.textClass=Et(x.pre.className,x.textClass||"")),x}function Co(a){var b=st("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function zo(a,b,z,x,ee,le,be){if(b){var Me=a.splitSpaces?Go(b,a.trailingSpace):b,Ue=a.cm.state.specialChars,lt=!1,fn;if(!Ue.test(b))a.col+=b.length,fn=document.createTextNode(Me),a.map.push(a.pos,a.pos+b.length,fn),Se&&Ee<9&&(lt=!0),a.pos+=b.length;else{fn=document.createDocumentFragment();for(var Sn=0;;){Ue.lastIndex=Sn;var Yn=Ue.exec(b),Vn=Yn?Yn.index-Sn:b.length-Sn;if(Vn){var kr=document.createTextNode(Me.slice(Sn,Sn+Vn));Se&&Ee<9?fn.appendChild(st("span",[kr])):fn.appendChild(kr),a.map.push(a.pos,a.pos+Vn,kr),a.col+=Vn,a.pos+=Vn}if(!Yn)break;Sn+=Vn+1;var ta=void 0;if(Yn[0]==" "){var wa=a.cm.options.tabSize,Ga=wa-a.col%wa;ta=fn.appendChild(st("span",xt(Ga),"cm-tab")),ta.setAttribute("role","presentation"),ta.setAttribute("cm-text"," "),a.col+=Ga}else Yn[0]=="\r"||Yn[0]==`
|
|
|
`?(ta=fn.appendChild(st("span",Yn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ta.setAttribute("cm-text",Yn[0]),a.col+=1):(ta=a.cm.options.specialCharPlaceholder(Yn[0]),ta.setAttribute("cm-text",Yn[0]),Se&&Ee<9?fn.appendChild(st("span",[ta])):fn.appendChild(ta),a.col+=1);a.map.push(a.pos,a.pos+1,ta),a.pos++}}if(a.trailingSpace=Me.charCodeAt(b.length-1)==32,z||x||ee||lt||le||be){var oi=z||"";x&&(oi+=x),ee&&(oi+=ee);var Ha=st("span",[fn],oi,le);if(be)for(var bi in be)be.hasOwnProperty(bi)&&bi!="style"&&bi!="class"&&Ha.setAttribute(bi,be[bi]);return a.content.appendChild(Ha)}a.content.appendChild(fn)}}function Go(a,b){if(a.length>1&&!/ /.test(a))return a;for(var z=b,x="",ee=0;ee<a.length;ee++){var le=a.charAt(ee);le==" "&&z&&(ee==a.length-1||a.charCodeAt(ee+1)==32)&&(le="\xA0"),x+=le,z=le==" "}return x}function Ta(a,b){return function(z,x,ee,le,be,Me,Ue){ee=ee?ee+" cm-force-border":"cm-force-border";for(var lt=z.pos,fn=lt+x.length;;){for(var Sn=void 0,Yn=0;Yn<b.length&&(Sn=b[Yn],!(Sn.to>lt&&Sn.from<=lt));Yn++);if(Sn.to>=fn)return a(z,x,ee,le,be,Me,Ue);a(z,x.slice(0,Sn.to-lt),ee,le,null,Me,Ue),le=null,x=x.slice(Sn.to-lt),lt=Sn.to}}}function fi(a,b,z,x){var ee=!x&&z.widgetNode;ee&&a.map.push(a.pos,a.pos+b,ee),!x&&a.cm.display.input.needsContentAttribute&&(ee||(ee=a.content.appendChild(document.createElement("span"))),ee.setAttribute("cm-marker",z.id)),ee&&(a.cm.display.input.setUneditable(ee),a.content.appendChild(ee)),a.pos+=b,a.trailingSpace=!1}function ni(a,b,z){var x=a.markedSpans,ee=a.text,le=0;if(!x){for(var be=1;be<z.length;be+=2)b.addToken(b,ee.slice(le,le=z[be]),Yi(z[be+1],b.cm.options));return}for(var Me=ee.length,Ue=0,lt=1,fn="",Sn,Yn,Vn=0,kr,ta,wa,Ga,oi;;){if(Vn==Ue){kr=ta=wa=Yn="",oi=null,Ga=null,Vn=1/0;for(var Ha=[],bi=void 0,qi=0;qi<x.length;++qi){var Ki=x[qi],Ao=Ki.marker;if(Ao.type=="bookmark"&&Ki.from==Ue&&Ao.widgetNode)Ha.push(Ao);else if(Ki.from<=Ue&&(Ki.to==null||Ki.to>Ue||Ao.collapsed&&Ki.to==Ue&&Ki.from==Ue)){if(Ki.to!=null&&Ki.to!=Ue&&Vn>Ki.to&&(Vn=Ki.to,ta=""),Ao.className&&(kr+=" "+Ao.className),Ao.css&&(Yn=(Yn?Yn+";":"")+Ao.css),Ao.startStyle&&Ki.from==Ue&&(wa+=" "+Ao.startStyle),Ao.endStyle&&Ki.to==Vn&&(bi||(bi=[])).push(Ao.endStyle,Ki.to),Ao.title&&((oi||(oi={})).title=Ao.title),Ao.attributes)for(var ml in Ao.attributes)(oi||(oi={}))[ml]=Ao.attributes[ml];Ao.collapsed&&(!Ga||Bi(Ga.marker,Ao)<0)&&(Ga=Ki)}else Ki.from>Ue&&Vn>Ki.from&&(Vn=Ki.from)}if(bi)for(var ql=0;ql<bi.length;ql+=2)bi[ql+1]==Vn&&(ta+=" "+bi[ql]);if(!Ga||Ga.from==Ue)for(var Dl=0;Dl<Ha.length;++Dl)fi(b,0,Ha[Dl]);if(Ga&&(Ga.from||0)==Ue){if(fi(b,(Ga.to==null?Me+1:Ga.to)-Ue,Ga.marker,Ga.from==null),Ga.to==null)return;Ga.to==Ue&&(Ga=!1)}}if(Ue>=Me)break;for(var Cs=Math.min(Me,Vn);;){if(fn){var vs=Ue+fn.length;if(!Ga){var $l=vs>Cs?fn.slice(0,Cs-Ue):fn;b.addToken(b,$l,Sn?Sn+kr:kr,wa,Ue+$l.length==Vn?ta:"",Yn,oi)}if(vs>=Cs){fn=fn.slice(Cs-Ue),Ue=Cs;break}Ue=vs,wa=""}fn=ee.slice(le,le=z[lt++]),Sn=Yi(z[lt++],b.cm.options)}}}function xo(a,b,z){this.line=b,this.rest=Yr(b),this.size=this.rest?_t(pt(this.rest))-z+1:1,this.node=this.text=null,this.hidden=$r(a,b)}function mi(a,b,z){for(var x=[],ee,le=b;le<z;le=ee){var be=new xo(a.doc,Pn(a.doc,le),le);ee=le+be.size,x.push(be)}return x}var rl=null;function zl(a){rl?rl.ops.push(a):a.ownsGroup=rl={ops:[a],delayedCallbacks:[]}}function Il(a){var b=a.delayedCallbacks,z=0;do{for(;z<b.length;z++)b[z].call(null);for(var x=0;x<a.ops.length;x++){var ee=a.ops[x];if(ee.cursorActivityHandlers)for(;ee.cursorActivityCalled<ee.cursorActivityHandlers.length;)ee.cursorActivityHandlers[ee.cursorActivityCalled++].call(null,ee.cm)}}while(z<b.length)}function qo(a,b){var z=a.ownsGroup;if(z)try{Il(z)}finally{rl=null,b(z)}}var Xo=null;function no(a,b){var z=un(a,b);if(z.length){var x=Array.prototype.slice.call(arguments,2),ee;rl?ee=rl.delayedCallbacks:Xo?ee=Xo:(ee=Xo=[],setTimeout(Pl,0));for(var le=function(Me){ee.push(function(){return z[Me].apply(null,x)})},be=0;be<z.length;++be)le(be)}}function Pl(){var a=Xo;Xo=null;for(var b=0;b<a.length;++b)a[b]()}function Gl(a,b,z,x){for(var ee=0;ee<b.changes.length;ee++){var le=b.changes[ee];le=="text"?Ul(a,b):le=="gutter"?Ui(a,b,z,x):le=="class"?_i(a,b):le=="widget"&&Pi(a,b,x)}b.changes=null}function Hl(a){return a.node==a.text&&(a.node=st("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Se&&Ee<8&&(a.node.style.zIndex=2)),a.node}function So(a,b){var z=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(z&&(z+=" CodeMirror-linebackground"),b.background)z?b.background.className=z:(b.background.parentNode.removeChild(b.background),b.background=null);else if(z){var x=Hl(b);b.background=x.insertBefore(st("div",null,z),x.firstChild),a.display.input.setUneditable(b.background)}}function fs(a,b){var z=a.display.externalMeasured;return z&&z.line==b.line?(a.display.externalMeasured=null,b.measure=z.measure,z.built):Eo(a,b)}function Ul(a,b){var z=b.text.className,x=fs(a,b);b.text==b.node&&(b.node=x.pre),b.text.parentNode.replaceChild(x.pre,b.text),b.text=x.pre,x.bgClass!=b.bgClass||x.textClass!=b.textClass?(b.bgClass=x.bgClass,b.textClass=x.textClass,_i(a,b)):z&&(b.text.className=z)}function _i(a,b){So(a,b),b.line.wrapClass?Hl(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var z=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=z||""}function Ui(a,b,z,x){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ee=Hl(b);b.gutterBackground=st("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ee.insertBefore(b.gutterBackground,b.text)}var le=b.line.gutterMarkers;if(a.options.lineNumbers||le){var be=Hl(b),Me=b.gutter=st("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(Me),be.insertBefore(Me,b.text),b.line.gutterClass&&(Me.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!le||!le["CodeMirror-linenumbers"])&&(b.lineNumber=Me.appendChild(st("div",Zt(a.options,z),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),le)for(var Ue=0;Ue<a.display.gutterSpecs.length;++Ue){var lt=a.display.gutterSpecs[Ue].className,fn=le.hasOwnProperty(lt)&&le[lt];fn&&Me.appendChild(st("div",[fn],"CodeMirror-gutter-elt","left: "+x.gutterLeft[lt]+"px; width: "+x.gutterWidth[lt]+"px"))}}}function Pi(a,b,z){b.alignable&&(b.alignable=null);for(var x=et("CodeMirror-linewidget"),ee=b.node.firstChild,le=void 0;ee;ee=le)le=ee.nextSibling,x.test(ee.className)&&b.node.removeChild(ee);Gi(a,b,z)}function vi(a,b,z,x){var ee=fs(a,b);return b.text=b.node=ee.pre,ee.bgClass&&(b.bgClass=ee.bgClass),ee.textClass&&(b.textClass=ee.textClass),_i(a,b),Ui(a,b,z,x),Gi(a,b,x),b.node}function Gi(a,b,z){if(so(a,b.line,b,z,!0),b.rest)for(var x=0;x<b.rest.length;x++)so(a,b.rest[x],b,z,!1)}function so(a,b,z,x,ee){if(b.widgets)for(var le=Hl(z),be=0,Me=b.widgets;be<Me.length;++be){var Ue=Me[be],lt=st("div",[Ue.node],"CodeMirror-linewidget"+(Ue.className?" "+Ue.className:""));Ue.handleMouseEvents||lt.setAttribute("cm-ignore-events","true"),wl(Ue,lt,z,x),a.display.input.setUneditable(lt),ee&&Ue.above?le.insertBefore(lt,z.gutter||z.text):le.appendChild(lt),no(Ue,"redraw")}}function wl(a,b,z,x){if(a.noHScroll){(z.alignable||(z.alignable=[])).push(b);var ee=x.wrapperWidth;b.style.left=x.fixedPos+"px",a.coverGutter||(ee-=x.gutterTotalWidth,b.style.paddingLeft=x.gutterTotalWidth+"px"),b.style.width=ee+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-x.gutterTotalWidth+"px"))}function Lo(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Le(document.body,a.node)){var z="position: relative;";a.coverGutter&&(z+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(z+="width: "+b.display.wrapper.clientWidth+"px;"),yt(b.display.measure,st("div",[a.node],null,z))}return a.height=a.node.parentNode.offsetHeight}function po(a,b){for(var z=Rt(b);z!=a.wrapper;z=z.parentNode)if(!z||z.nodeType==1&&z.getAttribute("cm-ignore-events")=="true"||z.parentNode==a.sizer&&z!=a.mover)return!0}function al(a){return a.lineSpace.offsetTop}function hn(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function vn(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=yt(a.measure,st("pre","x","CodeMirror-line-like")),z=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,x={left:parseInt(z.paddingLeft),right:parseInt(z.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(a.cachedPaddingH=x),x}function Tn(a){return zt-a.display.nativeBarWidth}function br(a){return a.display.scroller.clientWidth-Tn(a)-a.display.barWidth}function _r(a){return a.display.scroller.clientHeight-Tn(a)-a.display.barHeight}function nr(a,b,z){var x=a.options.lineWrapping,ee=x&&br(a);if(!b.measure.heights||x&&b.measure.width!=ee){var le=b.measure.heights=[];if(x){b.measure.width=ee;for(var be=b.text.firstChild.getClientRects(),Me=0;Me<be.length-1;Me++){var Ue=be[Me],lt=be[Me+1];Math.abs(Ue.bottom-lt.bottom)>2&&le.push((Ue.bottom+lt.top)/2-z.top)}}le.push(z.bottom-z.top)}}function ir(a,b,z){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;x<a.rest.length;x++)if(a.rest[x]==b)return{map:a.measure.maps[x],cache:a.measure.caches[x]};for(var ee=0;ee<a.rest.length;ee++)if(_t(a.rest[ee])>z)return{map:a.measure.maps[ee],cache:a.measure.caches[ee],before:!0}}function kn(a,b){b=qn(b);var z=_t(b),x=a.display.externalMeasured=new xo(a.doc,b,z);x.lineN=z;var ee=x.built=Eo(a,x);return x.text=ee.pre,yt(a.display.lineMeasure,ee.pre),x}function er(a,b,z,x){return Si(a,Gr(a,b),z,x)}function Pr(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Ba(a,b)];var z=a.display.externalMeasured;if(z&&b>=z.lineN&&b<z.lineN+z.size)return z}function Gr(a,b){var z=_t(b),x=Pr(a,z);x&&!x.text?x=null:x&&x.changes&&(Gl(a,x,z,jr(a)),a.curOp.forceUpdate=!0),x||(x=kn(a,b));var ee=ir(x,b,z);return{line:b,view:x,rect:null,map:ee.map,cache:ee.cache,before:ee.before,hasHeights:!1}}function Si(a,b,z,x,ee){b.before&&(z=-1);var le=z+(x||""),be;return b.cache.hasOwnProperty(le)?be=b.cache[le]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(nr(a,b.view,b.rect),b.hasHeights=!0),be=Va(a,b,z,x),be.bogus||(b.cache[le]=be)),{left:be.left,right:be.right,top:ee?be.rtop:be.top,bottom:ee?be.rbottom:be.bottom}}var Qi={left:0,right:0,top:0,bottom:0};function oo(a,b,z){for(var x,ee,le,be,Me,Ue,lt=0;lt<a.length;lt+=3)if(Me=a[lt],Ue=a[lt+1],b<Me?(ee=0,le=1,be="left"):b<Ue?(ee=b-Me,le=ee+1):(lt==a.length-3||b==Ue&&a[lt+3]>b)&&(le=Ue-Me,ee=le-1,b>=Ue&&(be="right")),ee!=null){if(x=a[lt+2],Me==Ue&&z==(x.insertLeft?"left":"right")&&(be=z),z=="left"&&ee==0)for(;lt&&a[lt-2]==a[lt-3]&&a[lt-1].insertLeft;)x=a[(lt-=3)+2],be="left";if(z=="right"&&ee==Ue-Me)for(;lt<a.length-3&&a[lt+3]==a[lt+4]&&!a[lt+5].insertLeft;)x=a[(lt+=3)+2],be="right";break}return{node:x,start:ee,end:le,collapse:be,coverStart:Me,coverEnd:Ue}}function ro(a,b){var z=Qi;if(b=="left")for(var x=0;x<a.length&&(z=a[x]).left==z.right;x++);else for(var ee=a.length-1;ee>=0&&(z=a[ee]).left==z.right;ee--);return z}function Va(a,b,z,x){var ee=oo(b.map,z,x),le=ee.node,be=ee.start,Me=ee.end,Ue=ee.collapse,lt;if(le.nodeType==3){for(var fn=0;fn<4;fn++){for(;be&&Ve(b.line.text.charAt(ee.coverStart+be));)--be;for(;ee.coverStart+Me<ee.coverEnd&&Ve(b.line.text.charAt(ee.coverStart+Me));)++Me;if(Se&&Ee<9&&be==0&&Me==ee.coverEnd-ee.coverStart?lt=le.parentNode.getBoundingClientRect():lt=ro(pe(le,be,Me).getClientRects(),x),lt.left||lt.right||be==0)break;Me=be,be=be-1,Ue="right"}Se&&Ee<11&&(lt=fa(a.display.measure,lt))}else{be>0&&(Ue=x="right");var Sn;a.options.lineWrapping&&(Sn=le.getClientRects()).length>1?lt=Sn[x=="right"?Sn.length-1:0]:lt=le.getBoundingClientRect()}if(Se&&Ee<9&&!be&&(!lt||!lt.left&&!lt.right)){var Yn=le.parentNode.getClientRects()[0];Yn?lt={left:Yn.left,right:Yn.left+ea(a.display),top:Yn.top,bottom:Yn.bottom}:lt=Qi}for(var Vn=lt.top-b.rect.top,kr=lt.bottom-b.rect.top,ta=(Vn+kr)/2,wa=b.view.measure.heights,Ga=0;Ga<wa.length-1&&!(ta<wa[Ga]);Ga++);var oi=Ga?wa[Ga-1]:0,Ha=wa[Ga],bi={left:(Ue=="right"?lt.right:lt.left)-b.rect.left,right:(Ue=="left"?lt.left:lt.right)-b.rect.left,top:oi,bottom:Ha};return!lt.left&&!lt.right&&(bi.bogus=!0),a.options.singleCursorHeightPerLine||(bi.rtop=Vn,bi.rbottom=kr),bi}function fa(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!on(a))return b;var z=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*z,right:b.right*z,top:b.top*x,bottom:b.bottom*x}}function Wr(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function Ni(a){a.display.externalMeasure=null,ut(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Wr(a.display.view[b])}function Zi(a){Ni(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function co(){return Fe&&Ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function _o(){return Fe&&Ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ai(a){var b=0;if(a.widgets)for(var z=0;z<a.widgets.length;++z)a.widgets[z].above&&(b+=Lo(a.widgets[z]));return b}function ho(a,b,z,x,ee){if(!ee){var le=Ai(b);z.top+=le,z.bottom+=le}if(x=="line")return z;x||(x="local");var be=Aa(b);if(x=="local"?be+=al(a.display):be-=a.display.viewOffset,x=="page"||x=="window"){var Me=a.display.lineSpace.getBoundingClientRect();be+=Me.top+(x=="window"?0:_o());var Ue=Me.left+(x=="window"?0:co());z.left+=Ue,z.right+=Ue}return z.top+=be,z.bottom+=be,z}function Di(a,b,z){if(z=="div")return b;var x=b.left,ee=b.top;if(z=="page")x-=co(),ee-=_o();else if(z=="local"||!z){var le=a.display.sizer.getBoundingClientRect();x+=le.left,ee+=le.top}var be=a.display.lineSpace.getBoundingClientRect();return{left:x-be.left,top:ee-be.top}}function ya(a,b,z,x,ee){return x||(x=Pn(a.doc,b.line)),ho(a,x,er(a,x,b.ch,ee),z)}function si(a,b,z,x,ee,le){x=x||Pn(a.doc,b.line),ee||(ee=Gr(a,x));function be(kr,ta){var wa=Si(a,ee,kr,ta?"right":"left",le);return ta?wa.left=wa.right:wa.right=wa.left,ho(a,x,wa,z)}var Me=Je(x,a.doc.direction),Ue=b.ch,lt=b.sticky;if(Ue>=x.text.length?(Ue=x.text.length,lt="before"):Ue<=0&&(Ue=0,lt="after"),!Me)return be(lt=="before"?Ue-1:Ue,lt=="before");function fn(kr,ta,wa){var Ga=Me[ta],oi=Ga.level==1;return be(wa?kr-1:kr,oi!=wa)}var Sn=wt(Me,Ue,lt),Yn=gt,Vn=fn(Ue,Sn,lt=="before");return Yn!=null&&(Vn.other=fn(Ue,Yn,lt!="before")),Vn}function pi(a,b){var z=0;b=kt(a.doc,b),a.options.lineWrapping||(z=ea(a.display)*b.ch);var x=Pn(a.doc,b.line),ee=Aa(x)+al(a.display);return{left:z,right:z,top:ee,bottom:ee+x.height}}function Ei(a,b,z,x,ee){var le=ot(a,b,z);return le.xRel=ee,x&&(le.outside=x),le}function Bt(a,b,z){var x=a.doc;if(z+=a.display.viewOffset,z<0)return Ei(x.first,0,null,-1,-1);var ee=Qt(x,z),le=x.first+x.size-1;if(ee>le)return Ei(x.first+x.size-1,Pn(x,le).text.length,null,1,1);b<0&&(b=0);for(var be=Pn(x,ee);;){var Me=za(a,be,ee,b,z),Ue=yr(be,Me.ch+(Me.xRel>0||Me.outside>0?1:0));if(!Ue)return Me;var lt=Ue.find(1);if(lt.line==ee)return lt;be=Pn(x,ee=lt.line)}}function Jt(a,b,z,x){x-=Ai(b);var ee=b.text.length,le=Qe(function(be){return Si(a,z,be-1).bottom<=x},ee,0);return ee=Qe(function(be){return Si(a,z,be).top>x},le,ee),{begin:le,end:ee}}function rn(a,b,z,x){z||(z=Gr(a,b));var ee=ho(a,b,Si(a,z,x),"line").top;return Jt(a,b,z,ee)}function An(a,b,z,x){return a.bottom<=z?!1:a.top>z?!0:(x?a.left:a.right)>b}function za(a,b,z,x,ee){ee-=Aa(b);var le=Gr(a,b),be=Ai(b),Me=0,Ue=b.text.length,lt=!0,fn=Je(b,a.doc.direction);if(fn){var Sn=(a.options.lineWrapping?Jn:zr)(a,b,z,le,fn,x,ee);lt=Sn.level!=1,Me=lt?Sn.from:Sn.to-1,Ue=lt?Sn.to:Sn.from-1}var Yn=null,Vn=null,kr=Qe(function(qi){var Ki=Si(a,le,qi);return Ki.top+=be,Ki.bottom+=be,An(Ki,x,ee,!1)?(Ki.top<=ee&&Ki.left<=x&&(Yn=qi,Vn=Ki),!0):!1},Me,Ue),ta,wa,Ga=!1;if(Vn){var oi=x-Vn.left<Vn.right-x,Ha=oi==lt;kr=Yn+(Ha?0:1),wa=Ha?"after":"before",ta=oi?Vn.left:Vn.right}else{!lt&&(kr==Ue||kr==Me)&&kr++,wa=kr==0?"after":kr==b.text.length?"before":Si(a,le,kr-(lt?1:0)).bottom+be<=ee==lt?"after":"before";var bi=si(a,ot(z,kr,wa),"line",b,le);ta=bi.left,Ga=ee<bi.top?-1:ee>=bi.bottom?1:0}return kr=It(b.text,kr,1),Ei(z,kr,wa,Ga,x-ta)}function zr(a,b,z,x,ee,le,be){var Me=Qe(function(Sn){var Yn=ee[Sn],Vn=Yn.level!=1;return An(si(a,ot(z,Vn?Yn.to:Yn.from,Vn?"before":"after"),"line",b,x),le,be,!0)},0,ee.length-1),Ue=ee[Me];if(Me>0){var lt=Ue.level!=1,fn=si(a,ot(z,lt?Ue.from:Ue.to,lt?"after":"before"),"line",b,x);An(fn,le,be,!0)&&fn.top>be&&(Ue=ee[Me-1])}return Ue}function Jn(a,b,z,x,ee,le,be){var Me=Jt(a,b,x,be),Ue=Me.begin,lt=Me.end;/\s/.test(b.text.charAt(lt-1))&<--;for(var fn=null,Sn=null,Yn=0;Yn<ee.length;Yn++){var Vn=ee[Yn];if(!(Vn.from>=lt||Vn.to<=Ue)){var kr=Vn.level!=1,ta=Si(a,x,kr?Math.min(lt,Vn.to)-1:Math.max(Ue,Vn.from)).right,wa=ta<le?le-ta+1e9:ta-le;(!fn||Sn>wa)&&(fn=Vn,Sn=wa)}}return fn||(fn=ee[ee.length-1]),fn.from<Ue&&(fn={from:Ue,to:fn.to,level:fn.level}),fn.to>lt&&(fn={from:fn.from,to:lt,level:fn.level}),fn}var vr;function Fr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(vr==null){vr=st("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)vr.appendChild(document.createTextNode("x")),vr.appendChild(st("br"));vr.appendChild(document.createTextNode("x"))}yt(a.measure,vr);var z=vr.offsetHeight/50;return z>3&&(a.cachedTextHeight=z),ut(a.measure),z||1}function ea(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=st("span","xxxxxxxxxx"),z=st("pre",[b],"CodeMirror-line-like");yt(a.measure,z);var x=b.getBoundingClientRect(),ee=(x.right-x.left)/10;return ee>2&&(a.cachedCharWidth=ee),ee||10}function jr(a){for(var b=a.display,z={},x={},ee=b.gutters.clientLeft,le=b.gutters.firstChild,be=0;le;le=le.nextSibling,++be){var Me=a.display.gutterSpecs[be].className;z[Me]=le.offsetLeft+le.clientLeft+ee,x[Me]=le.clientWidth}return{fixedPos:or(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:z,gutterWidth:x,wrapperWidth:b.wrapper.clientWidth}}function or(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function pa(a){var b=Fr(a.display),z=a.options.lineWrapping,x=z&&Math.max(5,a.display.scroller.clientWidth/ea(a.display)-3);return function(ee){if($r(a.doc,ee))return 0;var le=0;if(ee.widgets)for(var be=0;be<ee.widgets.length;be++)ee.widgets[be].height&&(le+=ee.widgets[be].height);return z?le+(Math.ceil(ee.text.length/x)||1)*b:le+b}}function ma(a){var b=a.doc,z=pa(a);b.iter(function(x){var ee=z(x);ee!=x.height&&hr(x,ee)})}function Nr(a,b,z,x){var ee=a.display;if(!z&&Rt(b).getAttribute("cm-not-content")=="true")return null;var le,be,Me=ee.lineSpace.getBoundingClientRect();try{le=b.clientX-Me.left,be=b.clientY-Me.top}catch(Sn){return null}var Ue=Bt(a,le,be),lt;if(x&&Ue.xRel>0&&(lt=Pn(a.doc,Ue.line).text).length==Ue.ch){var fn=Pe(lt,lt.length,a.options.tabSize)-lt.length;Ue=ot(Ue.line,Math.max(0,Math.round((le-vn(a.display).left)/ea(a.display))-fn))}return Ue}function Ba(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var z=a.display.view,x=0;x<z.length;x++)if(b-=z[x].size,b<0)return x}function ja(a,b,z,x){b==null&&(b=a.doc.first),z==null&&(z=a.doc.first+a.doc.size),x||(x=0);var ee=a.display;if(x&&z<ee.viewTo&&(ee.updateLineNumbers==null||ee.updateLineNumbers>b)&&(ee.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ee.viewTo)ga&&Er(a.doc,b)<ee.viewTo&&ur(a);else if(z<=ee.viewFrom)ga&&Dr(a.doc,z+x)>ee.viewFrom?ur(a):(ee.viewFrom+=x,ee.viewTo+=x);else if(b<=ee.viewFrom&&z>=ee.viewTo)ur(a);else if(b<=ee.viewFrom){var le=Qr(a,z,z+x,1);le?(ee.view=ee.view.slice(le.index),ee.viewFrom=le.lineN,ee.viewTo+=x):ur(a)}else if(z>=ee.viewTo){var be=Qr(a,b,b,-1);be?(ee.view=ee.view.slice(0,be.index),ee.viewTo=be.lineN):ur(a)}else{var Me=Qr(a,b,b,-1),Ue=Qr(a,z,z+x,1);Me&&Ue?(ee.view=ee.view.slice(0,Me.index).concat(mi(a,Me.lineN,Ue.lineN)).concat(ee.view.slice(Ue.index)),ee.viewTo+=x):ur(a)}var lt=ee.externalMeasured;lt&&(z<lt.lineN?lt.lineN+=x:b<lt.lineN+lt.size&&(ee.externalMeasured=null))}function sa(a,b,z){a.curOp.viewChanged=!0;var x=a.display,ee=a.display.externalMeasured;if(ee&&b>=ee.lineN&&b<ee.lineN+ee.size&&(x.externalMeasured=null),!(b<x.viewFrom||b>=x.viewTo)){var le=x.view[Ba(a,b)];if(le.node!=null){var be=le.changes||(le.changes=[]);vt(be,z)==-1&&be.push(z)}}}function ur(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Qr(a,b,z,x){var ee=Ba(a,b),le,be=a.display.view;if(!ga||z==a.doc.first+a.doc.size)return{index:ee,lineN:z};for(var Me=a.display.viewFrom,Ue=0;Ue<ee;Ue++)Me+=be[Ue].size;if(Me!=b){if(x>0){if(ee==be.length-1)return null;le=Me+be[ee].size-b,ee++}else le=Me-b;b+=le,z+=le}for(;Er(a.doc,z)!=z;){if(ee==(x<0?0:be.length-1))return null;z+=x*be[ee-(x<0?1:0)].size,ee+=x}return{index:ee,lineN:z}}function ui(a,b,z){var x=a.display,ee=x.view;ee.length==0||b>=x.viewTo||z<=x.viewFrom?(x.view=mi(a,b,z),x.viewFrom=b):(x.viewFrom>b?x.view=mi(a,b,x.viewFrom).concat(x.view):x.viewFrom<b&&(x.view=x.view.slice(Ba(a,b))),x.viewFrom=b,x.viewTo<z?x.view=x.view.concat(mi(a,x.viewTo,z)):x.viewTo>z&&(x.view=x.view.slice(0,Ba(a,z)))),x.viewTo=z}function Ca(a){for(var b=a.display.view,z=0,x=0;x<b.length;x++){var ee=b[x];!ee.hidden&&(!ee.node||ee.changes)&&++z}return z}function ua(a){a.display.input.showSelection(a.display.input.prepareSelection())}function aa(a,b){b===void 0&&(b=!0);for(var z=a.doc,x={},ee=x.cursors=document.createDocumentFragment(),le=x.selection=document.createDocumentFragment(),be=0;be<z.sel.ranges.length;be++)if(!(!b&&be==z.sel.primIndex)){var Me=z.sel.ranges[be];if(!(Me.from().line>=a.display.viewTo||Me.to().line<a.display.viewFrom)){var Ue=Me.empty();(Ue||a.options.showCursorWhenSelecting)&&Fa(a,Me.head,ee),Ue||il(a,Me,le)}}return x}function Fa(a,b,z){var x=si(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ee=z.appendChild(st("div","\xA0","CodeMirror-cursor"));if(ee.style.left=x.left+"px",ee.style.top=x.top+"px",ee.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var le=z.appendChild(st("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));le.style.display="",le.style.left=x.other.left+"px",le.style.top=x.other.top+"px",le.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function ao(a,b){return a.top-b.top||a.left-b.left}function il(a,b,z){var x=a.display,ee=a.doc,le=document.createDocumentFragment(),be=vn(a.display),Me=be.left,Ue=Math.max(x.sizerWidth,br(a)-x.sizer.offsetLeft)-be.right,lt=ee.direction=="ltr";function fn(Ha,bi,qi,Ki){bi<0&&(bi=0),bi=Math.round(bi),Ki=Math.round(Ki),le.appendChild(st("div",null,"CodeMirror-selected","position: absolute; left: "+Ha+`px;
|
|
|
top: `+bi+"px; width: "+(qi==null?Ue-Ha:qi)+`px;
|
|
|
height: `+(Ki-bi)+"px"))}function Sn(Ha,bi,qi){var Ki=Pn(ee,Ha),Ao=Ki.text.length,ml,ql;function Dl($l,cs){return ya(a,ot(Ha,$l),"div",Ki,cs)}function Cs($l,cs,ts){var Kl=rn(a,Ki,null,$l),Nl=cs=="ltr"==(ts=="after")?"left":"right",Fl=ts=="after"?Kl.begin:Kl.end-(/\s/.test(Ki.text.charAt(Kl.end-1))?2:1);return Dl(Fl,Nl)[Nl]}var vs=Je(Ki,ee.direction);return Ke(vs,bi||0,qi==null?Ao:qi,function($l,cs,ts,Kl){var Nl=ts=="ltr",Fl=Dl($l,Nl?"left":"right"),gs=Dl(cs-1,Nl?"right":"left"),Nu=bi==null&&$l==0,cu=qi==null&&cs==Ao,is=Kl==0,js=!vs||Kl==vs.length-1;if(gs.top-Fl.top<=3){var te=(lt?Nu:cu)&&is,ne=(lt?cu:Nu)&&js,oe=te?Me:(Nl?Fl:gs).left,he=ne?Ue:(Nl?gs:Fl).right;fn(oe,Fl.top,he-oe,Fl.bottom)}else{var ze,He,rt,ht;Nl?(ze=lt&&Nu&&is?Me:Fl.left,He=lt?Ue:Cs($l,ts,"before"),rt=lt?Me:Cs(cs,ts,"after"),ht=lt&&cu&&js?Ue:gs.right):(ze=lt?Cs($l,ts,"before"):Me,He=!lt&&Nu&&is?Ue:Fl.right,rt=!lt&&cu&&js?Me:gs.left,ht=lt?Cs(cs,ts,"after"):Ue),fn(ze,Fl.top,He-ze,Fl.bottom),Fl.bottom<gs.top&&fn(Me,Fl.bottom,null,gs.top),fn(rt,gs.top,ht-rt,gs.bottom)}(!ml||ao(Fl,ml)<0)&&(ml=Fl),ao(gs,ml)<0&&(ml=gs),(!ql||ao(Fl,ql)<0)&&(ql=Fl),ao(gs,ql)<0&&(ql=gs)}),{start:ml,end:ql}}var Yn=b.from(),Vn=b.to();if(Yn.line==Vn.line)Sn(Yn.line,Yn.ch,Vn.ch);else{var kr=Pn(ee,Yn.line),ta=Pn(ee,Vn.line),wa=qn(kr)==qn(ta),Ga=Sn(Yn.line,Yn.ch,wa?kr.text.length+1:null).end,oi=Sn(Vn.line,wa?0:null,Vn.ch).start;wa&&(Ga.top<oi.top-2?(fn(Ga.right,Ga.top,null,Ga.bottom),fn(Me,oi.top,oi.left,oi.bottom)):fn(Ga.right,Ga.top,oi.left-Ga.right,Ga.bottom)),Ga.bottom<oi.top&&fn(Me,Ga.bottom,null,oi.top)}z.appendChild(le)}function Ko(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var z=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Al(a),b.cursorDiv.style.visibility=(z=!z)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Xl(a){a.state.focused||(a.display.input.focus(),_l(a))}function Oi(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Al(a))},100)}function _l(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(yn(a,"focus",a,b),a.state.focused=!0,ce(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ce&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ko(a))}function Al(a,b){a.state.delayingBlurEvent||(a.state.focused&&(yn(a,"blur",a,b),a.state.focused=!1,qe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ur(a){for(var b=a.display,z=b.lineDiv.offsetTop,x=0;x<b.view.length;x++){var ee=b.view[x],le=a.options.lineWrapping,be=void 0,Me=0;if(!ee.hidden){if(Se&&Ee<8){var Ue=ee.node.offsetTop+ee.node.offsetHeight;be=Ue-z,z=Ue}else{var lt=ee.node.getBoundingClientRect();be=lt.bottom-lt.top,!le&&ee.text.firstChild&&(Me=ee.text.firstChild.getBoundingClientRect().right-lt.left-1)}var fn=ee.line.height-be;if((fn>.005||fn<-.005)&&(hr(ee.line,be),Fo(ee.line),ee.rest))for(var Sn=0;Sn<ee.rest.length;Sn++)Fo(ee.rest[Sn]);if(Me>a.display.sizerWidth){var Yn=Math.ceil(Me/ea(a.display));Yn>a.display.maxLineLength&&(a.display.maxLineLength=Yn,a.display.maxLine=ee.line,a.display.maxLineChanged=!0)}}}}function Fo(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var z=a.widgets[b],x=z.node.parentNode;x&&(z.height=x.offsetHeight)}}function wo(a,b,z){var x=z&&z.top!=null?Math.max(0,z.top):a.scroller.scrollTop;x=Math.floor(x-al(a));var ee=z&&z.bottom!=null?z.bottom:x+a.wrapper.clientHeight,le=Qt(b,x),be=Qt(b,ee);if(z&&z.ensure){var Me=z.ensure.from.line,Ue=z.ensure.to.line;Me<le?(le=Me,be=Qt(b,Aa(Pn(b,Me))+a.wrapper.clientHeight)):Math.min(Ue,b.lastLine())>=be&&(le=Qt(b,Aa(Pn(b,Ue))-a.wrapper.clientHeight),be=Ue)}return{from:le,to:Math.max(be,le+1)}}function Io(a,b){if(!Lt(a,"scrollCursorIntoView")){var z=a.display,x=z.sizer.getBoundingClientRect(),ee=null;if(b.top+x.top<0?ee=!0:b.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(ee=!1),ee!=null&&!ft){var le=st("div","\u200B",null,`position: absolute;
|
|
|
top: `+(b.top-z.viewOffset-al(a.display))+`px;
|
|
|
height: `+(b.bottom-b.top+Tn(a)+z.barHeight)+`px;
|
|
|
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(le),le.scrollIntoView(ee),a.display.lineSpace.removeChild(le)}}}function vl(a,b,z,x){x==null&&(x=0);var ee;!a.options.lineWrapping&&b==z&&(b=b.ch?ot(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,z=b.sticky=="before"?ot(b.line,b.ch+1,"before"):b);for(var le=0;le<5;le++){var be=!1,Me=si(a,b),Ue=!z||z==b?Me:si(a,z);ee={left:Math.min(Me.left,Ue.left),top:Math.min(Me.top,Ue.top)-x,right:Math.max(Me.left,Ue.left),bottom:Math.max(Me.bottom,Ue.bottom)+x};var lt=zs(a,ee),fn=a.doc.scrollTop,Sn=a.doc.scrollLeft;if(lt.scrollTop!=null&&(Is(a,lt.scrollTop),Math.abs(a.doc.scrollTop-fn)>1&&(be=!0)),lt.scrollLeft!=null&&(os(a,lt.scrollLeft),Math.abs(a.doc.scrollLeft-Sn)>1&&(be=!0)),!be)break}return ee}function Ms(a,b){var z=zs(a,b);z.scrollTop!=null&&Is(a,z.scrollTop),z.scrollLeft!=null&&os(a,z.scrollLeft)}function zs(a,b){var z=a.display,x=Fr(a.display);b.top<0&&(b.top=0);var ee=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:z.scroller.scrollTop,le=_r(a),be={};b.bottom-b.top>le&&(b.bottom=b.top+le);var Me=a.doc.height+hn(z),Ue=b.top<x,lt=b.bottom>Me-x;if(b.top<ee)be.scrollTop=Ue?0:b.top;else if(b.bottom>ee+le){var fn=Math.min(b.top,(lt?Me:b.bottom)-le);fn!=ee&&(be.scrollTop=fn)}var Sn=a.options.fixedGutter?0:z.gutters.offsetWidth,Yn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:z.scroller.scrollLeft-Sn,Vn=br(a)-z.gutters.offsetWidth,kr=b.right-b.left>Vn;return kr&&(b.right=b.left+Vn),b.left<10?be.scrollLeft=0:b.left<Yn?be.scrollLeft=Math.max(0,b.left+Sn-(kr?0:10)):b.right>Vn+Yn-3&&(be.scrollLeft=b.right+(kr?0:10)-Vn),be}function Hs(a,b){b!=null&&(xs(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Ds(a){xs(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function Fs(a,b,z){(b!=null||z!=null)&&xs(a),b!=null&&(a.curOp.scrollLeft=b),z!=null&&(a.curOp.scrollTop=z)}function tu(a,b){xs(a),a.curOp.scrollToPos=b}function xs(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var z=pi(a,b.from),x=pi(a,b.to);Rs(a,z,x,b.margin)}}function Rs(a,b,z,x){var ee=zs(a,{left:Math.min(b.left,z.left),top:Math.min(b.top,z.top)-x,right:Math.max(b.right,z.right),bottom:Math.max(b.bottom,z.bottom)+x});Fs(a,ee.scrollLeft,ee.scrollTop)}function Is(a,b){Math.abs(a.doc.scrollTop-b)<2||(y||ns(a,{top:b}),nu(a,b,!0),y&&ns(a),Zo(a,100))}function nu(a,b,z){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!z)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function os(a,b,z,x){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((z?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!x)&&(a.doc.scrollLeft=b,Dt(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Ss(a){var b=a.display,z=b.gutters.offsetWidth,x=Math.round(a.doc.height+hn(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?z:0,docHeight:x,scrollHeight:x+Tn(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:z}}var ks=function(a,b,z){this.cm=z;var x=this.vert=st("div",[st("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ee=this.horiz=st("div",[st("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=ee.tabIndex=-1,a(x),a(ee),Ht(x,"scroll",function(){x.clientHeight&&b(x.scrollTop,"vertical")}),Ht(ee,"scroll",function(){ee.clientWidth&&b(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ks.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,z=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(z){this.vert.style.display="block",this.vert.style.bottom=b?x+"px":"0";var ee=a.viewHeight-(b?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ee)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=z?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var le=a.viewWidth-a.barLeft-(z?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+le)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:z?x:0,bottom:b?x:0}},ks.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ks.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ks.prototype.zeroWidthHack=function(){var a=Oe&&!Te?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ye,this.disableVert=new ye},ks.prototype.enableZeroWidthBar=function(a,b,z){a.style.pointerEvents="auto";function x(){var ee=a.getBoundingClientRect(),le=z=="vert"?document.elementFromPoint(ee.right-1,(ee.top+ee.bottom)/2):document.elementFromPoint((ee.right+ee.left)/2,ee.bottom-1);le!=a?a.style.pointerEvents="none":b.set(1e3,x)}b.set(1e3,x)},ks.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Ls=function(){};Ls.prototype.update=function(){return{bottom:0,right:0}},Ls.prototype.setScrollLeft=function(){},Ls.prototype.setScrollTop=function(){},Ls.prototype.clear=function(){};function Zs(a,b){b||(b=Ss(a));var z=a.display.barWidth,x=a.display.barHeight;Vs(a,b);for(var ee=0;ee<4&&z!=a.display.barWidth||x!=a.display.barHeight;ee++)z!=a.display.barWidth&&a.options.lineWrapping&&Ur(a),Vs(a,Ss(a)),z=a.display.barWidth,x=a.display.barHeight}function Vs(a,b){var z=a.display,x=z.scrollbars.update(b);z.sizer.style.paddingRight=(z.barWidth=x.right)+"px",z.sizer.style.paddingBottom=(z.barHeight=x.bottom)+"px",z.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(z.scrollbarFiller.style.display="block",z.scrollbarFiller.style.height=x.bottom+"px",z.scrollbarFiller.style.width=x.right+"px"):z.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(z.gutterFiller.style.display="block",z.gutterFiller.style.height=x.bottom+"px",z.gutterFiller.style.width=b.gutterWidth+"px"):z.gutterFiller.style.display=""}var Mu={native:ks,null:Ls};function vu(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&qe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Mu[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Ht(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,z){z=="horizontal"?os(a,b):Is(a,b)},a),a.display.scrollbars.addClass&&ce(a.display.wrapper,a.display.scrollbars.addClass)}var qu=0;function Ps(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qu},zl(a.curOp)}function ws(a){var b=a.curOp;b&&qo(b,function(z){for(var x=0;x<z.ops.length;x++)z.ops[x].cm.curOp=null;Su(z)})}function Su(a){for(var b=a.ops,z=0;z<b.length;z++)ec(b[z]);for(var x=0;x<b.length;x++)wu(b[x]);for(var ee=0;ee<b.length;ee++)Wn(b[ee]);for(var le=0;le<b.length;le++)Na(b[le]);for(var be=0;be<b.length;be++)ji(b[be])}function ec(a){var b=a.cm,z=b.display;To(b),a.updateMaxLine&&na(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<z.viewFrom||a.scrollToPos.to.line>=z.viewTo)||z.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new ll(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function wu(a){a.updatedDisplay=a.mustUpdate&&yi(a.cm,a.update)}function Wn(a){var b=a.cm,z=b.display;a.updatedDisplay&&Ur(b),a.barMeasure=Ss(b),z.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=er(b,z.maxLine,z.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(z.scroller.clientWidth,z.sizer.offsetLeft+a.adjustWidthTo+Tn(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,z.sizer.offsetLeft+a.adjustWidthTo-br(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=z.input.prepareSelection())}function Na(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&os(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var z=a.focus&&a.focus==xe();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,z),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Zs(b,a.barMeasure),a.updatedDisplay&&Re(b,a.barMeasure),a.selectionChanged&&Ko(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),z&&Xl(a.cm)}function ji(a){var b=a.cm,z=b.display,x=b.doc;if(a.updatedDisplay&&bl(b,a.update),z.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(z.wheelStartX=z.wheelStartY=null),a.scrollTop!=null&&nu(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&os(b,a.scrollLeft,!0,!0),a.scrollToPos){var ee=vl(b,kt(x,a.scrollToPos.from),kt(x,a.scrollToPos.to),a.scrollToPos.margin);Io(b,ee)}var le=a.maybeHiddenMarkers,be=a.maybeUnhiddenMarkers;if(le)for(var Me=0;Me<le.length;++Me)le[Me].lines.length||yn(le[Me],"hide");if(be)for(var Ue=0;Ue<be.length;++Ue)be[Ue].lines.length&&yn(be[Ue],"unhide");z.wrapper.offsetHeight&&(x.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&yn(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function _a(a,b){if(a.curOp)return b();Ps(a);try{return b()}finally{ws(a)}}function Ir(a,b){return function(){if(a.curOp)return b.apply(a,arguments);Ps(a);try{return b.apply(a,arguments)}finally{ws(a)}}}function ki(a){return function(){if(this.curOp)return a.apply(this,arguments);Ps(this);try{return a.apply(this,arguments)}finally{ws(this)}}}function Vi(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);Ps(b);try{return a.apply(this,arguments)}finally{ws(b)}}}function Zo(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,je(eo,a))}function eo(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var z=+new Date+a.options.workTime,x=wr(a,b.highlightFrontier),ee=[];b.iter(x.line,Math.min(b.first+b.size,a.display.viewTo+500),function(le){if(x.line>=a.display.viewFrom){var be=le.styles,Me=le.text.length>a.options.maxHighlightLength?Cr(b.mode,x.state):null,Ue=Xn(a,le,x,!0);Me&&(x.state=Me),le.styles=Ue.styles;var lt=le.styleClasses,fn=Ue.classes;fn?le.styleClasses=fn:lt&&(le.styleClasses=null);for(var Sn=!be||be.length!=le.styles.length||lt!=fn&&(!lt||!fn||lt.bgClass!=fn.bgClass||lt.textClass!=fn.textClass),Yn=0;!Sn&&Yn<be.length;++Yn)Sn=be[Yn]!=le.styles[Yn];Sn&&ee.push(x.line),le.stateAfter=x.save(),x.nextLine()}else le.text.length<=a.options.maxHighlightLength&&Or(a,le.text,x),le.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>z)return Zo(a,a.options.workDelay),!0}),b.highlightFrontier=x.line,b.modeFrontier=Math.max(b.modeFrontier,x.line),ee.length&&_a(a,function(){for(var le=0;le<ee.length;le++)sa(a,ee[le],"text")})}}var ll=function(a,b,z){var x=a.display;this.viewport=b,this.visible=wo(x,a.doc,b),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=br(a),this.force=z,this.dims=jr(a),this.events=[]};ll.prototype.signal=function(a,b){Xt(a,b)&&this.events.push(arguments)},ll.prototype.finish=function(){for(var a=0;a<this.events.length;a++)yn.apply(null,this.events[a])};function To(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Tn(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Tn(a)+"px",b.scrollbarsClipped=!0)}function ls(a){if(a.hasFocus())return null;var b=xe();if(!b||!Le(a.display.lineDiv,b))return null;var z={activeElt:b};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&Le(a.display.lineDiv,x.anchorNode)&&(z.anchorNode=x.anchorNode,z.anchorOffset=x.anchorOffset,z.focusNode=x.focusNode,z.focusOffset=x.focusOffset)}return z}function Ys(a){if(!(!a||!a.activeElt||a.activeElt==xe())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Le(document.body,a.anchorNode)&&Le(document.body,a.focusNode))){var b=window.getSelection(),z=document.createRange();z.setEnd(a.anchorNode,a.anchorOffset),z.collapse(!1),b.removeAllRanges(),b.addRange(z),b.extend(a.focusNode,a.focusOffset)}}function yi(a,b){var z=a.display,x=a.doc;if(b.editorIsHidden)return ur(a),!1;if(!b.force&&b.visible.from>=z.viewFrom&&b.visible.to<=z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>=z.viewTo)&&z.renderedView==z.view&&Ca(a)==0)return!1;$t(a)&&(ur(a),b.dims=jr(a));var ee=x.first+x.size,le=Math.max(b.visible.from-a.options.viewportMargin,x.first),be=Math.min(ee,b.visible.to+a.options.viewportMargin);z.viewFrom<le&&le-z.viewFrom<20&&(le=Math.max(x.first,z.viewFrom)),z.viewTo>be&&z.viewTo-be<20&&(be=Math.min(ee,z.viewTo)),ga&&(le=Er(a.doc,le),be=Dr(a.doc,be));var Me=le!=z.viewFrom||be!=z.viewTo||z.lastWrapHeight!=b.wrapperHeight||z.lastWrapWidth!=b.wrapperWidth;ui(a,le,be),z.viewOffset=Aa(Pn(a.doc,z.viewFrom)),a.display.mover.style.top=z.viewOffset+"px";var Ue=Ca(a);if(!Me&&Ue==0&&!b.force&&z.renderedView==z.view&&(z.updateLineNumbers==null||z.updateLineNumbers>=z.viewTo))return!1;var lt=ls(a);return Ue>4&&(z.lineDiv.style.display="none"),kl(a,z.updateLineNumbers,b.dims),Ue>4&&(z.lineDiv.style.display=""),z.renderedView=z.view,Ys(lt),ut(z.cursorDiv),ut(z.selectionDiv),z.gutters.style.height=z.sizer.style.minHeight=0,Me&&(z.lastWrapHeight=b.wrapperHeight,z.lastWrapWidth=b.wrapperWidth,Zo(a,400)),z.updateLineNumbers=null,!0}function bl(a,b){for(var z=b.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||b.oldDisplayWidth==br(a)){if(z&&z.top!=null&&(z={top:Math.min(a.doc.height+hn(a.display)-_r(a),z.top)}),b.visible=wo(a.display,a.doc,z),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else x&&(b.visible=wo(a.display,a.doc,z));if(!yi(a,b))break;Ur(a);var ee=Ss(a);ua(a),Zs(a,ee),Re(a,ee),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function ns(a,b){var z=new ll(a,b);if(yi(a,z)){Ur(a),bl(a,z);var x=Ss(a);ua(a),Zs(a,x),Re(a,x),z.finish()}}function kl(a,b,z){var x=a.display,ee=a.options.lineNumbers,le=x.lineDiv,be=le.firstChild;function Me(kr){var ta=kr.nextSibling;return Ce&&Oe&&a.display.currentWheelTarget==kr?kr.style.display="none":kr.parentNode.removeChild(kr),ta}for(var Ue=x.view,lt=x.viewFrom,fn=0;fn<Ue.length;fn++){var Sn=Ue[fn];if(!Sn.hidden)if(!Sn.node||Sn.node.parentNode!=le){var Yn=vi(a,Sn,lt,z);le.insertBefore(Yn,be)}else{for(;be!=Sn.node;)be=Me(be);var Vn=ee&&b!=null&&b<=lt&&Sn.lineNumber;Sn.changes&&(vt(Sn.changes,"gutter")>-1&&(Vn=!1),Gl(a,Sn,lt,z)),Vn&&(ut(Sn.lineNumber),Sn.lineNumber.appendChild(document.createTextNode(Zt(a.options,lt)))),be=Sn.node.nextSibling}lt+=Sn.size}for(;be;)be=Me(be)}function Ze(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function Re(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+Tn(a)+"px"}function Dt(a){var b=a.display,z=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var x=or(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ee=b.gutters.offsetWidth,le=x+"px",be=0;be<z.length;be++)if(!z[be].hidden){a.options.fixedGutter&&(z[be].gutter&&(z[be].gutter.style.left=le),z[be].gutterBackground&&(z[be].gutterBackground.style.left=le));var Me=z[be].alignable;if(Me)for(var Ue=0;Ue<Me.length;Ue++)Me[Ue].style.left=le}a.options.fixedGutter&&(b.gutters.style.left=x+ee+"px")}}function $t(a){if(!a.options.lineNumbers)return!1;var b=a.doc,z=Zt(a.options,b.first+b.size-1),x=a.display;if(z.length!=x.lineNumChars){var ee=x.measure.appendChild(st("div",[st("div",z)],"CodeMirror-linenumber CodeMirror-gutter-elt")),le=ee.firstChild.offsetWidth,be=ee.offsetWidth-le;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(le,x.lineGutter.offsetWidth-be)+1,x.lineNumWidth=x.lineNumInnerWidth+be,x.lineNumChars=x.lineNumInnerWidth?z.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",Ze(a.display),!0}return!1}function an(a,b){for(var z=[],x=!1,ee=0;ee<a.length;ee++){var le=a[ee],be=null;if(typeof le!="string"&&(be=le.style,le=le.className),le=="CodeMirror-linenumbers")if(b)x=!0;else continue;z.push({className:le,style:be})}return b&&!x&&z.push({className:"CodeMirror-linenumbers",style:null}),z}function gn(a){var b=a.gutters,z=a.gutterSpecs;ut(b),a.lineGutter=null;for(var x=0;x<z.length;++x){var ee=z[x],le=ee.className,be=ee.style,Me=b.appendChild(st("div",null,"CodeMirror-gutter "+le));be&&(Me.style.cssText=be),le=="CodeMirror-linenumbers"&&(a.lineGutter=Me,Me.style.width=(a.lineNumWidth||1)+"px")}b.style.display=z.length?"":"none",Ze(a)}function Mn(a){gn(a.display),ja(a),Dt(a)}function Fn(a,b,z,x){var ee=this;this.input=z,ee.scrollbarFiller=st("div",null,"CodeMirror-scrollbar-filler"),ee.scrollbarFiller.setAttribute("cm-not-content","true"),ee.gutterFiller=st("div",null,"CodeMirror-gutter-filler"),ee.gutterFiller.setAttribute("cm-not-content","true"),ee.lineDiv=$e("div",null,"CodeMirror-code"),ee.selectionDiv=st("div",null,null,"position: relative; z-index: 1"),ee.cursorDiv=st("div",null,"CodeMirror-cursors"),ee.measure=st("div",null,"CodeMirror-measure"),ee.lineMeasure=st("div",null,"CodeMirror-measure"),ee.lineSpace=$e("div",[ee.measure,ee.lineMeasure,ee.selectionDiv,ee.cursorDiv,ee.lineDiv],null,"position: relative; outline: none");var le=$e("div",[ee.lineSpace],"CodeMirror-lines");ee.mover=st("div",[le],null,"position: relative"),ee.sizer=st("div",[ee.mover],"CodeMirror-sizer"),ee.sizerWidth=null,ee.heightForcer=st("div",null,null,"position: absolute; height: "+zt+"px; width: 1px;"),ee.gutters=st("div",null,"CodeMirror-gutters"),ee.lineGutter=null,ee.scroller=st("div",[ee.sizer,ee.heightForcer,ee.gutters],"CodeMirror-scroll"),ee.scroller.setAttribute("tabIndex","-1"),ee.wrapper=st("div",[ee.scrollbarFiller,ee.gutterFiller,ee.scroller],"CodeMirror"),Se&&Ee<8&&(ee.gutters.style.zIndex=-1,ee.scroller.style.paddingRight=0),!Ce&&!(y&&Be)&&(ee.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ee.wrapper):a(ee.wrapper)),ee.viewFrom=ee.viewTo=b.first,ee.reportedViewFrom=ee.reportedViewTo=b.first,ee.view=[],ee.renderedView=null,ee.externalMeasured=null,ee.viewOffset=0,ee.lastWrapHeight=ee.lastWrapWidth=0,ee.updateLineNumbers=null,ee.nativeBarWidth=ee.barHeight=ee.barWidth=0,ee.scrollbarsClipped=!1,ee.lineNumWidth=ee.lineNumInnerWidth=ee.lineNumChars=null,ee.alignWidgets=!1,ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.maxLine=null,ee.maxLineLength=0,ee.maxLineChanged=!1,ee.wheelDX=ee.wheelDY=ee.wheelStartX=ee.wheelStartY=null,ee.shift=!1,ee.selForContextMenu=null,ee.activeTouch=null,ee.gutterSpecs=an(x.gutters,x.lineNumbers),gn(ee),z.init(ee)}var zn=0,Ln=null;Se?Ln=-.53:y?Ln=15:Fe?Ln=-.7:We&&(Ln=-1/3);function xr(a){var b=a.wheelDeltaX,z=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),z==null&&a.detail&&a.axis==a.VERTICAL_AXIS?z=a.detail:z==null&&(z=a.wheelDelta),{x:b,y:z}}function lr(a){var b=xr(a);return b.x*=Ln,b.y*=Ln,b}function rr(a,b){var z=xr(b),x=z.x,ee=z.y,le=a.display,be=le.scroller,Me=be.scrollWidth>be.clientWidth,Ue=be.scrollHeight>be.clientHeight;if(x&&Me||ee&&Ue){if(ee&&Oe&&Ce){e:for(var lt=b.target,fn=le.view;lt!=be;lt=lt.parentNode)for(var Sn=0;Sn<fn.length;Sn++)if(fn[Sn].node==lt){a.display.currentWheelTarget=lt;break e}}if(x&&!y&&!de&&Ln!=null){ee&&Ue&&Is(a,Math.max(0,be.scrollTop+ee*Ln)),os(a,Math.max(0,be.scrollLeft+x*Ln)),(!ee||ee&&Ue)&&Nt(b),le.wheelStartX=null;return}if(ee&&Ln!=null){var Yn=ee*Ln,Vn=a.doc.scrollTop,kr=Vn+le.wrapper.clientHeight;Yn<0?Vn=Math.max(0,Vn+Yn-50):kr=Math.min(a.doc.height,kr+Yn+50),ns(a,{top:Vn,bottom:kr})}zn<20&&(le.wheelStartX==null?(le.wheelStartX=be.scrollLeft,le.wheelStartY=be.scrollTop,le.wheelDX=x,le.wheelDY=ee,setTimeout(function(){if(le.wheelStartX!=null){var ta=be.scrollLeft-le.wheelStartX,wa=be.scrollTop-le.wheelStartY,Ga=wa&&le.wheelDY&&wa/le.wheelDY||ta&&le.wheelDX&&ta/le.wheelDX;le.wheelStartX=le.wheelStartY=null,Ga&&(Ln=(Ln*zn+Ga)/(zn+1),++zn)}},200)):(le.wheelDX+=x,le.wheelDY+=ee))}}var Gn=function(a,b){this.ranges=a,this.primIndex=b};Gn.prototype.primary=function(){return this.ranges[this.primIndex]},Gn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var z=this.ranges[b],x=a.ranges[b];if(!Ft(z.anchor,x.anchor)||!Ft(z.head,x.head))return!1}return!0},Gn.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Kn(ar(this.ranges[b].anchor),ar(this.ranges[b].head));return new Gn(a,this.primIndex)},Gn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Gn.prototype.contains=function(a,b){b||(b=a);for(var z=0;z<this.ranges.length;z++){var x=this.ranges[z];if(Kt(b,x.from())>=0&&Kt(a,x.to())<=0)return z}return-1};var Kn=function(a,b){this.anchor=a,this.head=b};Kn.prototype.from=function(){return At(this.anchor,this.head)},Kn.prototype.to=function(){return mr(this.anchor,this.head)},Kn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ia(a,b,z){var x=a&&a.options.selectionsMayTouch,ee=b[z];b.sort(function(Yn,Vn){return Kt(Yn.from(),Vn.from())}),z=vt(b,ee);for(var le=1;le<b.length;le++){var be=b[le],Me=b[le-1],Ue=Kt(Me.to(),be.from());if(x&&!be.empty()?Ue>0:Ue>=0){var lt=At(Me.from(),be.from()),fn=mr(Me.to(),be.to()),Sn=Me.empty()?be.from()==be.head:Me.from()==Me.head;le<=z&&--z,b.splice(--le,2,new Kn(Sn?fn:lt,Sn?lt:fn))}}return new Gn(b,z)}function Tr(a,b){return new Gn([new Kn(a,b||a)],0)}function ca(a){return a.text?ot(a.from.line+a.text.length-1,pt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function xa(a,b){if(Kt(a,b.from)<0)return a;if(Kt(a,b.to)<=0)return ca(b);var z=a.line+b.text.length-(b.to.line-b.from.line)-1,x=a.ch;return a.line==b.to.line&&(x+=ca(b).ch-b.to.ch),ot(z,x)}function da(a,b){for(var z=[],x=0;x<a.sel.ranges.length;x++){var ee=a.sel.ranges[x];z.push(new Kn(xa(ee.anchor,b),xa(ee.head,b)))}return ia(a.cm,z,a.sel.primIndex)}function ha(a,b,z){return a.line==b.line?ot(z.line,a.ch-b.ch+z.ch):ot(z.line+(a.line-b.line),a.ch)}function La(a,b,z){for(var x=[],ee=ot(a.first,0),le=ee,be=0;be<b.length;be++){var Me=b[be],Ue=ha(Me.from,ee,le),lt=ha(ca(Me),ee,le);if(ee=Me.to,le=lt,z=="around"){var fn=a.sel.ranges[be],Sn=Kt(fn.head,fn.anchor)<0;x[be]=new Kn(Sn?lt:Ue,Sn?Ue:lt)}else x[be]=new Kn(Ue,Ue)}return new Gn(x,a.sel.primIndex)}function Ja(a){a.doc.mode=fr(a.options,a.doc.modeOption),Ka(a)}function Ka(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Zo(a,100),a.state.modeGen++,a.curOp&&ja(a)}function to(a,b){return b.from.ch==0&&b.to.ch==0&&pt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function wi(a,b,z,x){function ee(oi){return z?z[oi]:null}function le(oi,Ha,bi){di(oi,Ha,bi,x),no(oi,"change",oi,b)}function be(oi,Ha){for(var bi=[],qi=oi;qi<Ha;++qi)bi.push(new li(lt[qi],ee(qi),x));return bi}var Me=b.from,Ue=b.to,lt=b.text,fn=Pn(a,Me.line),Sn=Pn(a,Ue.line),Yn=pt(lt),Vn=ee(lt.length-1),kr=Ue.line-Me.line;if(b.full)a.insert(0,be(0,lt.length)),a.remove(lt.length,a.size-lt.length);else if(to(a,b)){var ta=be(0,lt.length-1);le(Sn,Sn.text,Vn),kr&&a.remove(Me.line,kr),ta.length&&a.insert(Me.line,ta)}else if(fn==Sn)if(lt.length==1)le(fn,fn.text.slice(0,Me.ch)+Yn+fn.text.slice(Ue.ch),Vn);else{var wa=be(1,lt.length-1);wa.push(new li(Yn+fn.text.slice(Ue.ch),Vn,x)),le(fn,fn.text.slice(0,Me.ch)+lt[0],ee(0)),a.insert(Me.line+1,wa)}else if(lt.length==1)le(fn,fn.text.slice(0,Me.ch)+lt[0]+Sn.text.slice(Ue.ch),ee(0)),a.remove(Me.line+1,kr);else{le(fn,fn.text.slice(0,Me.ch)+lt[0],ee(0)),le(Sn,Yn+Sn.text.slice(Ue.ch),Vn);var Ga=be(1,lt.length-1);kr>1&&a.remove(Me.line+1,kr-1),a.insert(Me.line+1,Ga)}no(a,"change",a,b)}function hi(a,b,z){function x(ee,le,be){if(ee.linked)for(var Me=0;Me<ee.linked.length;++Me){var Ue=ee.linked[Me];if(Ue.doc!=le){var lt=be&&Ue.sharedHist;z&&!lt||(b(Ue.doc,lt),x(Ue.doc,ee,lt))}}}x(a,null,!0)}function Wi(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,ma(a),Ja(a),qa(a),a.options.lineWrapping||na(a),a.options.mode=b.modeOption,ja(a)}function qa(a){(a.doc.direction=="rtl"?ce:qe)(a.display.lineDiv,"CodeMirror-rtl")}function ti(a){_a(a,function(){qa(a),ja(a)})}function Ma(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function Sa(a,b){var z={from:ar(b.from),to:ca(b),text:$n(a,b.from,b.to)};return sl(a,z,b.from.line,b.to.line+1),hi(a,function(x){return sl(x,z,b.from.line,b.to.line+1)},!0),z}function Ya(a){for(;a.length;){var b=pt(a);if(b.ranges)a.pop();else break}}function ri(a,b){if(b)return Ya(a.done),pt(a.done);if(a.done.length&&!pt(a.done).ranges)return pt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),pt(a.done)}function Ci(a,b,z,x){var ee=a.history;ee.undone.length=0;var le=+new Date,be,Me;if((ee.lastOp==x||ee.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ee.lastModTime>le-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(be=ri(ee,ee.lastOp==x)))Me=pt(be.changes),Kt(b.from,b.to)==0&&Kt(b.from,Me.to)==0?Me.to=ca(b):be.changes.push(Sa(a,b));else{var Ue=pt(ee.done);for((!Ue||!Ue.ranges)&&uo(a.sel,ee.done),be={changes:[Sa(a,b)],generation:ee.generation},ee.done.push(be);ee.done.length>ee.undoDepth;)ee.done.shift(),ee.done[0].ranges||ee.done.shift()}ee.done.push(z),ee.generation=++ee.maxGeneration,ee.lastModTime=ee.lastSelTime=le,ee.lastOp=ee.lastSelOp=x,ee.lastOrigin=ee.lastSelOrigin=b.origin,Me||yn(a,"historyAdded")}function Ra(a,b,z,x){var ee=b.charAt(0);return ee=="*"||ee=="+"&&z.ranges.length==x.ranges.length&&z.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function lo(a,b,z,x){var ee=a.history,le=x&&x.origin;z==ee.lastSelOp||le&&ee.lastSelOrigin==le&&(ee.lastModTime==ee.lastSelTime&&ee.lastOrigin==le||Ra(a,le,pt(ee.done),b))?ee.done[ee.done.length-1]=b:uo(b,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=le,ee.lastSelOp=z,x&&x.clearRedo!==!1&&Ya(ee.undone)}function uo(a,b){var z=pt(b);z&&z.ranges&&z.equals(a)||b.push(a)}function sl(a,b,z,x){var ee=b["spans_"+a.id],le=0;a.iter(Math.max(a.first,z),Math.min(a.first+a.size,x),function(be){be.markedSpans&&((ee||(ee=b["spans_"+a.id]={}))[le]=be.markedSpans),++le})}function ul(a){if(!a)return null;for(var b,z=0;z<a.length;++z)a[z].marker.explicitlyCleared?b||(b=a.slice(0,z)):b&&b.push(a[z]);return b?b.length?b:null:a}function el(a,b){var z=b["spans_"+a.id];if(!z)return null;for(var x=[],ee=0;ee<b.text.length;++ee)x.push(ul(z[ee]));return x}function cl(a,b){var z=el(a,b),x=$a(a,b);if(!z)return x;if(!x)return z;for(var ee=0;ee<z.length;++ee){var le=z[ee],be=x[ee];if(le&&be)e:for(var Me=0;Me<be.length;++Me){for(var Ue=be[Me],lt=0;lt<le.length;++lt)if(le[lt].marker==Ue.marker)continue e;le.push(Ue)}else be&&(z[ee]=be)}return z}function gl(a,b,z){for(var x=[],ee=0;ee<a.length;++ee){var le=a[ee];if(le.ranges){x.push(z?Gn.prototype.deepCopy.call(le):le);continue}var be=le.changes,Me=[];x.push({changes:Me});for(var Ue=0;Ue<be.length;++Ue){var lt=be[Ue],fn=void 0;if(Me.push({from:lt.from,to:lt.to,text:lt.text}),b)for(var Sn in lt)(fn=Sn.match(/^spans_(\d+)$/))&&vt(b,Number(fn[1]))>-1&&(pt(Me)[Sn]=lt[Sn],delete lt[Sn])}}return x}function fo(a,b,z,x){if(x){var ee=a.anchor;if(z){var le=Kt(b,ee)<0;le!=Kt(z,ee)<0?(ee=b,b=z):le!=Kt(b,z)<0&&(b=z)}return new Kn(ee,b)}else return new Kn(z||b,b)}function vo(a,b,z,x,ee){ee==null&&(ee=a.cm&&(a.cm.display.shift||a.extend)),Ua(a,new Gn([fo(a.sel.primary(),b,z,ee)],0),x)}function El(a,b,z){for(var x=[],ee=a.cm&&(a.cm.display.shift||a.extend),le=0;le<a.sel.ranges.length;le++)x[le]=fo(a.sel.ranges[le],b[le],null,ee);var be=ia(a.cm,x,a.sel.primIndex);Ua(a,be,z)}function dl(a,b,z,x){var ee=a.sel.ranges.slice(0);ee[b]=z,Ua(a,ia(a.cm,ee,a.sel.primIndex),x)}function ai(a,b,z,x){Ua(a,Tr(b,z),x)}function Xi(a,b,z){var x={ranges:b.ranges,update:function(ee){this.ranges=[];for(var le=0;le<ee.length;le++)this.ranges[le]=new Kn(kt(a,ee[le].anchor),kt(a,ee[le].head))},origin:z&&z.origin};return yn(a,"beforeSelectionChange",a,x),a.cm&&yn(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=b.ranges?ia(a.cm,x.ranges,x.ranges.length-1):b}function ci(a,b,z){var x=a.history.done,ee=pt(x);ee&&ee.ranges?(x[x.length-1]=b,Po(a,b,z)):Ua(a,b,z)}function Ua(a,b,z){Po(a,b,z),lo(a,a.sel,a.cm?a.cm.curOp.id:NaN,z)}function Po(a,b,z){(Xt(a,"beforeSelectionChange")||a.cm&&Xt(a.cm,"beforeSelectionChange"))&&(b=Xi(a,b,z));var x=z&&z.bias||(Kt(b.primary().head,a.sel.primary().head)<0?-1:1);Bo(a,Yo(a,b,x,!0)),!(z&&z.scroll===!1)&&a.cm&&Ds(a.cm)}function Bo(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,cn(a.cm)),no(a,"cursorActivity",a))}function ol(a){Bo(a,Yo(a,a.sel,null,!1))}function Yo(a,b,z,x){for(var ee,le=0;le<b.ranges.length;le++){var be=b.ranges[le],Me=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[le],Ue=Cl(a,be.anchor,Me&&Me.anchor,z,x),lt=Cl(a,be.head,Me&&Me.head,z,x);(ee||Ue!=be.anchor||lt!=be.head)&&(ee||(ee=b.ranges.slice(0,le)),ee[le]=new Kn(Ue,lt))}return ee?ia(a.cm,ee,b.primIndex):b}function $o(a,b,z,x,ee){var le=Pn(a,b.line);if(le.markedSpans)for(var be=0;be<le.markedSpans.length;++be){var Me=le.markedSpans[be],Ue=Me.marker,lt="selectLeft"in Ue?!Ue.selectLeft:Ue.inclusiveLeft,fn="selectRight"in Ue?!Ue.selectRight:Ue.inclusiveRight;if((Me.from==null||(lt?Me.from<=b.ch:Me.from<b.ch))&&(Me.to==null||(fn?Me.to>=b.ch:Me.to>b.ch))){if(ee&&(yn(Ue,"beforeCursorEnter"),Ue.explicitlyCleared))if(le.markedSpans){--be;continue}else break;if(!Ue.atomic)continue;if(z){var Sn=Ue.find(x<0?1:-1),Yn=void 0;if((x<0?fn:lt)&&(Sn=xi(a,Sn,-x,Sn&&Sn.line==b.line?le:null)),Sn&&Sn.line==b.line&&(Yn=Kt(Sn,z))&&(x<0?Yn<0:Yn>0))return $o(a,Sn,b,x,ee)}var Vn=Ue.find(x<0?-1:1);return(x<0?lt:fn)&&(Vn=xi(a,Vn,x,Vn.line==b.line?le:null)),Vn?$o(a,Vn,b,x,ee):null}}return b}function Cl(a,b,z,x,ee){var le=x||1,be=$o(a,b,z,le,ee)||!ee&&$o(a,b,z,le,!0)||$o(a,b,z,-le,ee)||!ee&&$o(a,b,z,-le,!0);return be||(a.cantEdit=!0,ot(a.first,0))}function xi(a,b,z,x){return z<0&&b.ch==0?b.line>a.first?kt(a,ot(b.line-1)):null:z>0&&b.ch==(x||Pn(a,b.line)).text.length?b.line<a.first+a.size-1?ot(b.line+1,0):null:new ot(b.line,b.ch+z)}function Li(a){a.setSelection(ot(a.firstLine(),0),ot(a.lastLine()),De)}function Mo(a,b,z){var x={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return x.canceled=!0}};return z&&(x.update=function(ee,le,be,Me){ee&&(x.from=kt(a,ee)),le&&(x.to=kt(a,le)),be&&(x.text=be),Me!==void 0&&(x.origin=Me)}),yn(a,"beforeChange",a,x),a.cm&&yn(a.cm,"beforeChange",a.cm,x),x.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:x.from,to:x.to,text:x.text,origin:x.origin}}function ko(a,b,z){if(a.cm){if(!a.cm.curOp)return Ir(a.cm,ko)(a,b,z);if(a.cm.state.suppressEdits)return}if(!((Xt(a,"beforeChange")||a.cm&&Xt(a.cm,"beforeChange"))&&(b=Mo(a,b,!0),!b))){var x=Kr&&!z&&$i(a,b.from,b.to);if(x)for(var ee=x.length-1;ee>=0;--ee)jo(a,{from:x[ee].from,to:x[ee].to,text:ee?[""]:b.text,origin:b.origin});else jo(a,b)}}function jo(a,b){if(!(b.text.length==1&&b.text[0]==""&&Kt(b.from,b.to)==0)){var z=da(a,b);Ci(a,b,z,a.cm?a.cm.curOp.id:NaN),rs(a,b,z,$a(a,b));var x=[];hi(a,function(ee,le){!le&&vt(x,ee.history)==-1&&(Ol(ee.history,b),x.push(ee.history)),rs(ee,b,null,$a(ee,b))})}}function Tl(a,b,z){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!z)){for(var ee=a.history,le,be=a.sel,Me=b=="undo"?ee.done:ee.undone,Ue=b=="undo"?ee.undone:ee.done,lt=0;lt<Me.length&&(le=Me[lt],!(z?le.ranges&&!le.equals(a.sel):!le.ranges));lt++);if(lt!=Me.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(le=Me.pop(),le.ranges){if(uo(le,Ue),z&&!le.equals(a.sel)){Ua(a,le,{clearRedo:!1});return}be=le}else if(x){Me.push(le);return}else break;var fn=[];uo(be,Ue),Ue.push({changes:fn,generation:ee.generation}),ee.generation=le.generation||++ee.maxGeneration;for(var Sn=Xt(a,"beforeChange")||a.cm&&Xt(a.cm,"beforeChange"),Yn=function(ta){var wa=le.changes[ta];if(wa.origin=b,Sn&&!Mo(a,wa,!1))return Me.length=0,{};fn.push(Sa(a,wa));var Ga=ta?da(a,wa):pt(Me);rs(a,wa,Ga,cl(a,wa)),!ta&&a.cm&&a.cm.scrollIntoView({from:wa.from,to:ca(wa)});var oi=[];hi(a,function(Ha,bi){!bi&&vt(oi,Ha.history)==-1&&(Ol(Ha.history,wa),oi.push(Ha.history)),rs(Ha,wa,null,cl(Ha,wa))})},Vn=le.changes.length-1;Vn>=0;--Vn){var kr=Yn(Vn);if(kr)return kr.v}}}}function xl(a,b){if(b!=0&&(a.first+=b,a.sel=new Gn(ln(a.sel.ranges,function(ee){return new Kn(ot(ee.anchor.line+b,ee.anchor.ch),ot(ee.head.line+b,ee.head.ch))}),a.sel.primIndex),a.cm)){ja(a.cm,a.first,a.first-b,b);for(var z=a.cm.display,x=z.viewFrom;x<z.viewTo;x++)sa(a.cm,x,"gutter")}}function rs(a,b,z,x){if(a.cm&&!a.cm.curOp)return Ir(a.cm,rs)(a,b,z,x);if(b.to.line<a.first){xl(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ee=b.text.length-1-(a.first-b.from.line);xl(a,ee),b={from:ot(a.first,0),to:ot(b.to.line+ee,b.to.ch),text:[pt(b.text)],origin:b.origin}}var le=a.lastLine();b.to.line>le&&(b={from:b.from,to:ot(le,Pn(a,le).text.length),text:[b.text[0]],origin:b.origin}),b.removed=$n(a,b.from,b.to),z||(z=da(a,b)),a.cm?tl(a.cm,b,x):wi(a,b,x),Po(a,z,De),a.cantEdit&&Cl(a,ot(a.firstLine(),0))&&(a.cantEdit=!1)}}function tl(a,b,z){var x=a.doc,ee=a.display,le=b.from,be=b.to,Me=!1,Ue=le.line;a.options.lineWrapping||(Ue=_t(qn(Pn(x,le.line))),x.iter(Ue,be.line+1,function(Vn){if(Vn==ee.maxLine)return Me=!0,!0})),x.sel.contains(b.from,b.to)>-1&&cn(a),wi(x,b,z,pa(a)),a.options.lineWrapping||(x.iter(Ue,le.line+b.text.length,function(Vn){var kr=Wa(Vn);kr>ee.maxLineLength&&(ee.maxLine=Vn,ee.maxLineLength=kr,ee.maxLineChanged=!0,Me=!1)}),Me&&(a.curOp.updateMaxLine=!0)),ba(x,le.line),Zo(a,400);var lt=b.text.length-(be.line-le.line)-1;b.full?ja(a):le.line==be.line&&b.text.length==1&&!to(a.doc,b)?sa(a,le.line,"text"):ja(a,le.line,be.line+1,lt);var fn=Xt(a,"changes"),Sn=Xt(a,"change");if(Sn||fn){var Yn={from:le,to:be,text:b.text,removed:b.removed,origin:b.origin};Sn&&no(a,"change",a,Yn),fn&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Yn)}a.display.selForContextMenu=null}function go(a,b,z,x,ee){var le;x||(x=z),Kt(x,z)<0&&(le=[x,z],z=le[0],x=le[1]),typeof b=="string"&&(b=a.splitLines(b)),ko(a,{from:z,to:x,text:b,origin:ee})}function Qo(a,b,z,x){z<a.line?a.line+=x:b<a.line&&(a.line=b,a.ch=0)}function nl(a,b,z,x){for(var ee=0;ee<a.length;++ee){var le=a[ee],be=!0;if(le.ranges){le.copied||(le=a[ee]=le.deepCopy(),le.copied=!0);for(var Me=0;Me<le.ranges.length;Me++)Qo(le.ranges[Me].anchor,b,z,x),Qo(le.ranges[Me].head,b,z,x);continue}for(var Ue=0;Ue<le.changes.length;++Ue){var lt=le.changes[Ue];if(z<lt.from.line)lt.from=ot(lt.from.line+x,lt.from.ch),lt.to=ot(lt.to.line+x,lt.to.ch);else if(b<=lt.to.line){be=!1;break}}be||(a.splice(0,ee+1),ee=0)}}function Ol(a,b){var z=b.from.line,x=b.to.line,ee=b.text.length-(x-z)-1;nl(a.done,z,x,ee),nl(a.undone,z,x,ee)}function pl(a,b,z,x){var ee=b,le=b;return typeof b=="number"?le=Pn(a,Mt(a,b)):ee=_t(b),ee==null?null:(x(le,ee)&&a.cm&&sa(a.cm,ee,z),le)}function Oo(a){this.lines=a,this.parent=null;for(var b=0,z=0;z<a.length;++z)a[z].parent=this,b+=a[z].height;this.height=b}Oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var z=a,x=a+b;z<x;++z){var ee=this.lines[z];this.height-=ee.height,zi(ee),no(ee,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,z){this.height+=z,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var x=0;x<b.length;++x)b[x].parent=this},iterN:function(a,b,z){for(var x=a+b;a<x;++a)if(z(this.lines[a]))return!0}};function fl(a){this.children=a;for(var b=0,z=0,x=0;x<a.length;++x){var ee=a[x];b+=ee.chunkSize(),z+=ee.height,ee.parent=this}this.size=b,this.height=z,this.parent=null}fl.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var z=0;z<this.children.length;++z){var x=this.children[z],ee=x.chunkSize();if(a<ee){var le=Math.min(b,ee-a),be=x.height;if(x.removeInner(a,le),this.height-=be-x.height,ee==le&&(this.children.splice(z--,1),x.parent=null),(b-=le)==0)break;a=0}else a-=ee}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Oo))){var Me=[];this.collapse(Me),this.children=[new Oo(Me)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,z){this.size+=b.length,this.height+=z;for(var x=0;x<this.children.length;++x){var ee=this.children[x],le=ee.chunkSize();if(a<=le){if(ee.insertInner(a,b,z),ee.lines&&ee.lines.length>50){for(var be=ee.lines.length%25+25,Me=be;Me<ee.lines.length;){var Ue=new Oo(ee.lines.slice(Me,Me+=25));ee.height-=Ue.height,this.children.splice(++x,0,Ue),Ue.parent=this}ee.lines=ee.lines.slice(0,be),this.maybeSpill()}break}a-=le}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),z=new fl(b);if(a.parent){a.size-=z.size,a.height-=z.height;var ee=vt(a.parent.children,a);a.parent.children.splice(ee+1,0,z)}else{var x=new fl(a.children);x.parent=a,a.children=[x,z],a=x}z.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,z){for(var x=0;x<this.children.length;++x){var ee=this.children[x],le=ee.chunkSize();if(a<le){var be=Math.min(b,le-a);if(ee.iterN(a,be,z))return!0;if((b-=be)==0)break;a=0}else a-=le}}};var Ro=function(a,b,z){if(z)for(var x in z)z.hasOwnProperty(x)&&(this[x]=z[x]);this.doc=a,this.node=b};Ro.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,z=this.line,x=_t(z);if(!(x==null||!b)){for(var ee=0;ee<b.length;++ee)b[ee]==this&&b.splice(ee--,1);b.length||(z.widgets=null);var le=Lo(this);hr(z,Math.max(0,z.height-le)),a&&(_a(a,function(){Vl(a,z,-le),sa(a,x,"widget")}),no(a,"lineWidgetCleared",a,this,x))}},Ro.prototype.changed=function(){var a=this,b=this.height,z=this.doc.cm,x=this.line;this.height=null;var ee=Lo(this)-b;ee&&($r(this.doc,x)||hr(x,x.height+ee),z&&_a(z,function(){z.curOp.forceUpdate=!0,Vl(z,x,ee),no(z,"lineWidgetChanged",z,a,_t(x))}))},Xe(Ro);function Vl(a,b,z){Aa(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Hs(a,z)}function Bl(a,b,z,x){var ee=new Ro(a,z,x),le=a.cm;return le&&ee.noHScroll&&(le.display.alignWidgets=!0),pl(a,b,"widget",function(be){var Me=be.widgets||(be.widgets=[]);if(ee.insertAt==null?Me.push(ee):Me.splice(Math.min(Me.length-1,Math.max(0,ee.insertAt)),0,ee),ee.line=be,le&&!$r(a,be)){var Ue=Aa(be)<a.scrollTop;hr(be,be.height+Lo(ee)),Ue&&Hs(le,ee.height),le.curOp.forceUpdate=!0}return!0}),le&&no(le,"lineWidgetAdded",le,ee,typeof b=="number"?b:_t(b)),ee}var Ll=0,as=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++Ll};as.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&Ps(a),Xt(this,"clear")){var z=this.find();z&&no(this,"clear",z.from,z.to)}for(var x=null,ee=null,le=0;le<this.lines.length;++le){var be=this.lines[le],Me=Rr(be.markedSpans,this);a&&!this.collapsed?sa(a,_t(be),"text"):a&&(Me.to!=null&&(ee=_t(be)),Me.from!=null&&(x=_t(be))),be.markedSpans=Za(be.markedSpans,Me),Me.from==null&&this.collapsed&&!$r(this.doc,be)&&a&&hr(be,Fr(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Ue=0;Ue<this.lines.length;++Ue){var lt=qn(this.lines[Ue]),fn=Wa(lt);fn>a.display.maxLineLength&&(a.display.maxLine=lt,a.display.maxLineLength=fn,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&ja(a,x,ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ol(a.doc)),a&&no(a,"markerCleared",a,this,x,ee),b&&ws(a),this.parent&&this.parent.clear()}},as.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var z,x,ee=0;ee<this.lines.length;++ee){var le=this.lines[ee],be=Rr(le.markedSpans,this);if(be.from!=null&&(z=ot(b?le:_t(le),be.from),a==-1))return z;if(be.to!=null&&(x=ot(b?le:_t(le),be.to),a==1))return x}return z&&{from:z,to:x}},as.prototype.changed=function(){var a=this,b=this.find(-1,!0),z=this,x=this.doc.cm;!b||!x||_a(x,function(){var ee=b.line,le=_t(b.line),be=Pr(x,le);if(be&&(Wr(be),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!$r(z.doc,ee)&&z.height!=null){var Me=z.height;z.height=null;var Ue=Lo(z)-Me;Ue&&hr(ee,ee.height+Ue)}no(x,"markerChanged",x,a)})},as.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||vt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},as.prototype.detachLine=function(a){if(this.lines.splice(vt(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Xe(as);function As(a,b,z,x,ee){if(x&&x.shared)return gu(a,b,z,x,ee);if(a.cm&&!a.cm.curOp)return Ir(a.cm,As)(a,b,z,x,ee);var le=new as(a,ee),be=Kt(b,z);if(x&&it(x,le,!1),be>0||be==0&&le.clearWhenEmpty!==!1)return le;if(le.replacedWith&&(le.collapsed=!0,le.widgetNode=$e("span",[le.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||le.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(le.widgetNode.insertLeft=!0)),le.collapsed){if(Br(a,b.line,b,z,le)||b.line!=z.line&&Br(a,z.line,b,z,le))throw new Error("Inserting collapsed marker partially overlapping an existing one");Da()}le.addToHistory&&Ci(a,{from:b,to:z,origin:"markText"},a.sel,NaN);var Me=b.line,Ue=a.cm,lt;if(a.iter(Me,z.line+1,function(Sn){Ue&&le.collapsed&&!Ue.options.lineWrapping&&qn(Sn)==Ue.display.maxLine&&(lt=!0),le.collapsed&&Me!=b.line&&hr(Sn,0),Pa(Sn,new Ea(le,Me==b.line?b.ch:null,Me==z.line?z.ch:null)),++Me}),le.collapsed&&a.iter(b.line,z.line+1,function(Sn){$r(a,Sn)&&hr(Sn,0)}),le.clearOnEnter&&Ht(le,"beforeCursorEnter",function(){return le.clear()}),le.readOnly&&(Qa(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),le.collapsed&&(le.id=++Ll,le.atomic=!0),Ue){if(lt&&(Ue.curOp.updateMaxLine=!0),le.collapsed)ja(Ue,b.line,z.line+1);else if(le.className||le.startStyle||le.endStyle||le.css||le.attributes||le.title)for(var fn=b.line;fn<=z.line;fn++)sa(Ue,fn,"text");le.atomic&&ol(Ue.doc),no(Ue,"markerAdded",Ue,le)}return le}var Jo=function(a,b){this.markers=a,this.primary=b;for(var z=0;z<a.length;++z)a[z].parent=this};Jo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();no(this,"clear")}},Jo.prototype.find=function(a,b){return this.primary.find(a,b)},Xe(Jo);function gu(a,b,z,x,ee){x=it(x),x.shared=!1;var le=[As(a,b,z,x,ee)],be=le[0],Me=x.widgetNode;return hi(a,function(Ue){Me&&(x.widgetNode=Me.cloneNode(!0)),le.push(As(Ue,kt(Ue,b),kt(Ue,z),x,ee));for(var lt=0;lt<Ue.linked.length;++lt)if(Ue.linked[lt].isParent)return;be=pt(le)}),new Jo(le,be)}function es(a){return a.findMarks(ot(a.first,0),a.clipPos(ot(a.lastLine())),function(b){return b.parent})}function Bs(a,b){for(var z=0;z<b.length;z++){var x=b[z],ee=x.find(),le=a.clipPos(ee.from),be=a.clipPos(ee.to);if(Kt(le,be)){var Me=As(a,le,be,x.primary,x.primary.type);x.markers.push(Me),Me.parent=x}}}function ms(a){for(var b=function(x){var ee=a[x],le=[ee.primary.doc];hi(ee.primary.doc,function(Ue){return le.push(Ue)});for(var be=0;be<ee.markers.length;be++){var Me=ee.markers[be];vt(le,Me.doc)==-1&&(Me.parent=null,ee.markers.splice(be--,1))}},z=0;z<a.length;z++)b(z)}var ss=0,Ho=function(a,b,z,x,ee){if(!(this instanceof Ho))return new Ho(a,b,z,x,ee);z==null&&(z=0),fl.call(this,[new Oo([new li("",null)])]),this.first=z,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=z;var le=ot(z,0);this.sel=Tr(le),this.history=new Ma(null),this.id=++ss,this.modeOption=b,this.lineSep=x,this.direction=ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),wi(this,{from:le,to:le,text:a}),Ua(this,Tr(le),De)};Ho.prototype=ae(fl.prototype,{constructor:Ho,iter:function(a,b,z){z?this.iterN(a-this.first,b-a,z):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var z=0,x=0;x<b.length;++x)z+=b[x].height;this.insertInner(a-this.first,b,z)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=dr(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Vi(function(a){var b=ot(this.first,0),z=this.first+this.size-1;ko(this,{from:b,to:ot(z,Pn(this,z).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Fs(this.cm,0,0),Ua(this,Tr(b),De)}),replaceRange:function(a,b,z,x){b=kt(this,b),z=z?kt(this,z):b,go(this,a,b,z,x)},getRange:function(a,b,z){var x=$n(this,kt(this,a),kt(this,b));return z===!1?x:x.join(z||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(ct(this,a))return Pn(this,a)},getLineNumber:function(a){return _t(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Pn(this,a)),qn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return kt(this,a)},getCursor:function(a){var b=this.sel.primary(),z;return a==null||a=="head"?z=b.head:a=="anchor"?z=b.anchor:a=="end"||a=="to"||a===!1?z=b.to():z=b.from(),z},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vi(function(a,b,z){ai(this,kt(this,typeof a=="number"?ot(a,b||0):a),null,z)}),setSelection:Vi(function(a,b,z){ai(this,kt(this,a),kt(this,b||a),z)}),extendSelection:Vi(function(a,b,z){vo(this,kt(this,a),b&&kt(this,b),z)}),extendSelections:Vi(function(a,b){El(this,Nn(this,a),b)}),extendSelectionsBy:Vi(function(a,b){var z=ln(this.sel.ranges,a);El(this,Nn(this,z),b)}),setSelections:Vi(function(a,b,z){if(a.length){for(var x=[],ee=0;ee<a.length;ee++)x[ee]=new Kn(kt(this,a[ee].anchor),kt(this,a[ee].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Ua(this,ia(this.cm,x,b),z)}}),addSelection:Vi(function(a,b,z){var x=this.sel.ranges.slice(0);x.push(new Kn(kt(this,a),kt(this,b||a))),Ua(this,ia(this.cm,x,x.length-1),z)}),getSelection:function(a){for(var b=this.sel.ranges,z,x=0;x<b.length;x++){var ee=$n(this,b[x].from(),b[x].to());z=z?z.concat(ee):ee}return a===!1?z:z.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],z=this.sel.ranges,x=0;x<z.length;x++){var ee=$n(this,z[x].from(),z[x].to());a!==!1&&(ee=ee.join(a||this.lineSeparator())),b[x]=ee}return b},replaceSelection:function(a,b,z){for(var x=[],ee=0;ee<this.sel.ranges.length;ee++)x[ee]=a;this.replaceSelections(x,b,z||"+input")},replaceSelections:Vi(function(a,b,z){for(var x=[],ee=this.sel,le=0;le<ee.ranges.length;le++){var be=ee.ranges[le];x[le]={from:be.from(),to:be.to(),text:this.splitLines(a[le]),origin:z}}for(var Me=b&&b!="end"&&La(this,x,b),Ue=x.length-1;Ue>=0;Ue--)ko(this,x[Ue]);Me?ci(this,Me):this.cm&&Ds(this.cm)}),undo:Vi(function(){Tl(this,"undo")}),redo:Vi(function(){Tl(this,"redo")}),undoSelection:Vi(function(){Tl(this,"undo",!0)}),redoSelection:Vi(function(){Tl(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,z=0,x=0;x<a.done.length;x++)a.done[x].ranges||++b;for(var ee=0;ee<a.undone.length;ee++)a.undone[ee].ranges||++z;return{undo:b,redo:z}},clearHistory:function(){var a=this;this.history=new Ma(this.history.maxGeneration),hi(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:gl(this.history.done),undone:gl(this.history.undone)}},setHistory:function(a){var b=this.history=new Ma(this.history.maxGeneration);b.done=gl(a.done.slice(0),null,!0),b.undone=gl(a.undone.slice(0),null,!0)},setGutterMarker:Vi(function(a,b,z){return pl(this,a,"gutter",function(x){var ee=x.gutterMarkers||(x.gutterMarkers={});return ee[b]=z,!z&&ie(ee)&&(x.gutterMarkers=null),!0})}),clearGutter:Vi(function(a){var b=this;this.iter(function(z){z.gutterMarkers&&z.gutterMarkers[a]&&pl(b,z,"gutter",function(){return z.gutterMarkers[a]=null,ie(z.gutterMarkers)&&(z.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!ct(this,a)||(b=a,a=Pn(this,a),!a))return null}else if(b=_t(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Vi(function(a,b,z){return pl(this,a,b=="gutter"?"gutter":"class",function(x){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!x[ee])x[ee]=z;else{if(et(z).test(x[ee]))return!1;x[ee]+=" "+z}return!0})}),removeLineClass:Vi(function(a,b,z){return pl(this,a,b=="gutter"?"gutter":"class",function(x){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",le=x[ee];if(le)if(z==null)x[ee]=null;else{var be=le.match(et(z));if(!be)return!1;var Me=be.index+be[0].length;x[ee]=le.slice(0,be.index)+(!be.index||Me==le.length?"":" ")+le.slice(Me)||null}else return!1;return!0})}),addLineWidget:Vi(function(a,b,z){return Bl(this,a,b,z)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,z){return As(this,kt(this,a),kt(this,b),z,z&&z.type||"range")},setBookmark:function(a,b){var z={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=kt(this,a),As(this,a,a,z,"bookmark")},findMarksAt:function(a){a=kt(this,a);var b=[],z=Pn(this,a.line).markedSpans;if(z)for(var x=0;x<z.length;++x){var ee=z[x];(ee.from==null||ee.from<=a.ch)&&(ee.to==null||ee.to>=a.ch)&&b.push(ee.marker.parent||ee.marker)}return b},findMarks:function(a,b,z){a=kt(this,a),b=kt(this,b);var x=[],ee=a.line;return this.iter(a.line,b.line+1,function(le){var be=le.markedSpans;if(be)for(var Me=0;Me<be.length;Me++){var Ue=be[Me];!(Ue.to!=null&&ee==a.line&&a.ch>=Ue.to||Ue.from==null&&ee!=a.line||Ue.from!=null&&ee==b.line&&Ue.from>=b.ch)&&(!z||z(Ue.marker))&&x.push(Ue.marker.parent||Ue.marker)}++ee}),x},getAllMarks:function(){var a=[];return this.iter(function(b){var z=b.markedSpans;if(z)for(var x=0;x<z.length;++x)z[x].from!=null&&a.push(z[x].marker)}),a},posFromIndex:function(a){var b,z=this.first,x=this.lineSeparator().length;return this.iter(function(ee){var le=ee.text.length+x;if(le>a)return b=a,!0;a-=le,++z}),kt(this,ot(z,b))},indexFromPos:function(a){a=kt(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var z=this.lineSeparator().length;return this.iter(this.first,a.line,function(x){b+=x.text.length+z}),b},copy:function(a){var b=new Ho(dr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,z=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<z&&(z=a.to);var x=new Ho(dr(this,b,z),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(x.history=this.history),(this.linked||(this.linked=[])).push({doc:x,sharedHist:a.sharedHist}),x.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Bs(x,es(this)),x},unlinkDoc:function(a){if(a instanceof yl&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var z=this.linked[b];if(z.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),ms(es(this));break}}if(a.history==this.history){var x=[a.id];hi(a,function(ee){return x.push(ee.id)},!0),a.history=new Ma(null),a.history.done=gl(this.history.done,x),a.history.undone=gl(this.history.undone,x)}},iterLinkedDocs:function(a){hi(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Bn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Vi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&ti(this.cm))})}),Ho.prototype.eachLine=Ho.prototype.iter;var ps=0;function Os(a){var b=this;if(Bu(b),!(Lt(b,a)||po(b.display,a))){Nt(a),Se&&(ps=+new Date);var z=Nr(b,a,!0),x=a.dataTransfer.files;if(!(!z||b.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var ee=x.length,le=Array(ee),be=0,Me=function(){++be==ee&&Ir(b,function(){z=kt(b.doc,z);var Vn={from:z,to:z,text:b.doc.splitLines(le.filter(function(kr){return kr!=null}).join(b.doc.lineSeparator())),origin:"paste"};ko(b.doc,Vn),ci(b.doc,Tr(kt(b.doc,z),kt(b.doc,ca(Vn))))})()},Ue=function(Vn,kr){if(b.options.allowDropFileTypes&&vt(b.options.allowDropFileTypes,Vn.type)==-1){Me();return}var ta=new FileReader;ta.onerror=function(){return Me()},ta.onload=function(){var wa=ta.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(wa)){Me();return}le[kr]=wa,Me()},ta.readAsText(Vn)},lt=0;lt<x.length;lt++)Ue(x[lt],lt);else{if(b.state.draggingText&&b.doc.sel.contains(z)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var fn=a.dataTransfer.getData("Text");if(fn){var Sn;if(b.state.draggingText&&!b.state.draggingText.copy&&(Sn=b.listSelections()),Po(b.doc,Tr(z,z)),Sn)for(var Yn=0;Yn<Sn.length;++Yn)go(b.doc,"",Sn[Yn].anchor,Sn[Yn].head,"drag");b.replaceSelection(fn,"around","paste"),b.display.input.focus()}}catch(Vn){}}}}function Ns(a,b){if(Se&&(!a.state.draggingText||+new Date-ps<100)){at(b);return}if(!(Lt(a,b)||po(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!We)){var z=st("img",null,null,"position: fixed; left: 0; top: 0;");z.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",de&&(z.width=z.height=1,a.display.wrapper.appendChild(z),z._top=z.offsetTop),b.dataTransfer.setDragImage(z,0,0),de&&z.parentNode.removeChild(z)}}function _s(a,b){var z=Nr(a,b);if(z){var x=document.createDocumentFragment();Fa(a,z,x),a.display.dragCursor||(a.display.dragCursor=st("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),yt(a.display.dragCursor,x)}}function Bu(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function ru(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),z=[],x=0;x<b.length;x++){var ee=b[x].CodeMirror;ee&&z.push(ee)}z.length&&z[0].operation(function(){for(var le=0;le<z.length;le++)a(z[le])})}}var yu=!1;function Du(){yu||(Ru(),yu=!0)}function Ru(){var a;Ht(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,ru(io)},100))}),Ht(window,"blur",function(){return ru(Al)})}function io(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var Do={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hl=0;hl<10;hl++)Do[hl+48]=Do[hl+96]=String(hl);for(var Sl=65;Sl<=90;Sl++)Do[Sl]=String.fromCharCode(Sl);for(var Zl=1;Zl<=12;Zl++)Do[Zl+111]=Do[Zl+63235]="F"+Zl;var Ml={};Ml.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ml.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ml.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ml.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ml.default=Oe?Ml.macDefault:Ml.pcDefault;function us(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var z,x,ee,le,be=0;be<b.length-1;be++){var Me=b[be];if(/^(cmd|meta|m)$/i.test(Me))le=!0;else if(/^a(lt)?$/i.test(Me))z=!0;else if(/^(c|ctrl|control)$/i.test(Me))x=!0;else if(/^s(hift)?$/i.test(Me))ee=!0;else throw new Error("Unrecognized modifier name: "+Me)}return z&&(a="Alt-"+a),x&&(a="Ctrl-"+a),le&&(a="Cmd-"+a),ee&&(a="Shift-"+a),a}function Yl(a){var b={};for(var z in a)if(a.hasOwnProperty(z)){var x=a[z];if(/^(name|fallthrough|(de|at)tach)$/.test(z))continue;if(x=="..."){delete a[z];continue}for(var ee=ln(z.split(" "),us),le=0;le<ee.length;le++){var be=void 0,Me=void 0;le==ee.length-1?(Me=ee.join(" "),be=x):(Me=ee.slice(0,le+1).join(" "),be="...");var Ue=b[Me];if(!Ue)b[Me]=be;else if(Ue!=be)throw new Error("Inconsistent bindings for "+Me)}delete a[z]}for(var lt in b)a[lt]=b[lt];return a}function Qs(a,b,z,x){b=Fu(b);var ee=b.call?b.call(a,x):b[a];if(ee===!1)return"nothing";if(ee==="...")return"multi";if(ee!=null&&z(ee))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Qs(a,b.fallthrough,z,x);for(var le=0;le<b.fallthrough.length;le++){var be=Qs(a,b.fallthrough[le],z,x);if(be)return be}}}function au(a){var b=typeof a=="string"?a:Do[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function iu(a,b,z){var x=a;return b.altKey&&x!="Alt"&&(a="Alt-"+a),(Ae?b.metaKey:b.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(Ae?b.ctrlKey:b.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!z&&b.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function Ks(a,b){if(de&&a.keyCode==34&&a.char)return!1;var z=Do[a.keyCode];return z==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(z=a.code),iu(z,a,b))}function Fu(a){return typeof a=="string"?Ml[a]:a}function Gs(a,b){for(var z=a.doc.sel.ranges,x=[],ee=0;ee<z.length;ee++){for(var le=b(z[ee]);x.length&&Kt(le.from,pt(x).to)<=0;){var be=x.pop();if(Kt(be.from,le.from)<0){le.from=be.from;break}}x.push(le)}_a(a,function(){for(var Me=x.length-1;Me>=0;Me--)go(a.doc,"",x[Me].from,x[Me].to,"+delete");Ds(a)})}function ku(a,b,z){var x=It(a.text,b+z,z);return x<0||x>a.text.length?null:x}function Iu(a,b,z){var x=ku(a,b.ch,z);return x==null?null:new ot(b.line,x,z<0?"after":"before")}function Us(a,b,z,x,ee){if(a){b.doc.direction=="rtl"&&(ee=-ee);var le=Je(z,b.doc.direction);if(le){var be=ee<0?pt(le):le[0],Me=ee<0==(be.level==1),Ue=Me?"after":"before",lt;if(be.level>0||b.doc.direction=="rtl"){var fn=Gr(b,z);lt=ee<0?z.text.length-1:0;var Sn=Si(b,fn,lt).top;lt=Qe(function(Yn){return Si(b,fn,Yn).top==Sn},ee<0==(be.level==1)?be.from:be.to-1,lt),Ue=="before"&&(lt=ku(z,lt,1))}else lt=ee<0?be.to:be.from;return new ot(x,lt,Ue)}}return new ot(x,ee<0?z.text.length:0,ee<0?"before":"after")}function tc(a,b,z,x){var ee=Je(b,a.doc.direction);if(!ee)return Iu(b,z,x);z.ch>=b.text.length?(z.ch=b.text.length,z.sticky="before"):z.ch<=0&&(z.ch=0,z.sticky="after");var le=wt(ee,z.ch,z.sticky),be=ee[le];if(a.doc.direction=="ltr"&&be.level%2==0&&(x>0?be.to>z.ch:be.from<z.ch))return Iu(b,z,x);var Me=function(Ga,oi){return ku(b,Ga instanceof ot?Ga.ch:Ga,oi)},Ue,lt=function(Ga){return a.options.lineWrapping?(Ue=Ue||Gr(a,b),rn(a,b,Ue,Ga)):{begin:0,end:b.text.length}},fn=lt(z.sticky=="before"?Me(z,-1):z.ch);if(a.doc.direction=="rtl"||be.level==1){var Sn=be.level==1==x<0,Yn=Me(z,Sn?1:-1);if(Yn!=null&&(Sn?Yn<=be.to&&Yn<=fn.end:Yn>=be.from&&Yn>=fn.begin)){var Vn=Sn?"before":"after";return new ot(z.line,Yn,Vn)}}var kr=function(Ga,oi,Ha){for(var bi=function(ml,ql){return ql?new ot(z.line,Me(ml,1),"before"):new ot(z.line,ml,"after")};Ga>=0&&Ga<ee.length;Ga+=oi){var qi=ee[Ga],Ki=oi>0==(qi.level!=1),Ao=Ki?Ha.begin:Me(Ha.end,-1);if(qi.from<=Ao&&Ao<qi.to||(Ao=Ki?qi.from:Me(qi.to,-1),Ha.begin<=Ao&&Ao<Ha.end))return bi(Ao,Ki)}},ta=kr(le+x,x,fn);if(ta)return ta;var wa=x>0?fn.end:Me(fn.begin,-1);return wa!=null&&!(x>0&&wa==b.text.length)&&(ta=kr(x>0?0:ee.length-1,x,lt(wa)),ta)?ta:null}var Xs={selectAll:Li,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),De)},killLine:function(a){return Gs(a,function(b){if(b.empty()){var z=Pn(a.doc,b.head.line).text.length;return b.head.ch==z&&b.head.line<a.lastLine()?{from:b.head,to:ot(b.head.line+1,0)}:{from:b.head,to:ot(b.head.line,z)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return Gs(a,function(b){return{from:ot(b.from().line,0),to:kt(a.doc,ot(b.to().line+1,0))}})},delLineLeft:function(a){return Gs(a,function(b){return{from:ot(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return Gs(a,function(b){var z=a.charCoords(b.head,"div").top+5,x=a.coordsChar({left:0,top:z},"div");return{from:x,to:b.from()}})},delWrappedLineRight:function(a){return Gs(a,function(b){var z=a.charCoords(b.head,"div").top+5,x=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:z},"div");return{from:b.from(),to:x}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ot(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ot(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Lu(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return bu(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return lc(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var z=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:z},"div")},dt)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var z=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:z},"div")},dt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var z=a.cursorCoords(b.head,"div").top+5,x=a.coordsChar({left:0,top:z},"div");return x.ch<a.getLine(x.line).search(/\S/)?bu(a,b.head):x},dt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],z=a.listSelections(),x=a.options.tabSize,ee=0;ee<z.length;ee++){var le=z[ee].from(),be=Pe(a.getLine(le.line),le.ch,x);b.push(xt(x-be%x))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return _a(a,function(){for(var b=a.listSelections(),z=[],x=0;x<b.length;x++)if(b[x].empty()){var ee=b[x].head,le=Pn(a.doc,ee.line).text;if(le){if(ee.ch==le.length&&(ee=new ot(ee.line,ee.ch-1)),ee.ch>0)ee=new ot(ee.line,ee.ch+1),a.replaceRange(le.charAt(ee.ch-1)+le.charAt(ee.ch-2),ot(ee.line,ee.ch-2),ee,"+transpose");else if(ee.line>a.doc.first){var be=Pn(a.doc,ee.line-1).text;be&&(ee=new ot(ee.line,1),a.replaceRange(le.charAt(0)+a.doc.lineSeparator()+be.charAt(be.length-1),ot(ee.line-1,be.length-1),ee,"+transpose"))}}z.push(new Kn(ee,ee))}a.setSelections(z)})},newlineAndIndent:function(a){return _a(a,function(){for(var b=a.listSelections(),z=b.length-1;z>=0;z--)a.replaceRange(a.doc.lineSeparator(),b[z].anchor,b[z].head,"+input");b=a.listSelections();for(var x=0;x<b.length;x++)a.indentLine(b[x].from().line,null,!0);Ds(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Lu(a,b){var z=Pn(a.doc,b),x=qn(z);return x!=z&&(b=_t(x)),Us(!0,a,x,b,1)}function lc(a,b){var z=Pn(a.doc,b),x=Jr(z);return x!=z&&(b=_t(x)),Us(!0,a,z,b,-1)}function bu(a,b){var z=Lu(a,b.line),x=Pn(a.doc,z.line),ee=Je(x,a.doc.direction);if(!ee||ee[0].level==0){var le=Math.max(z.ch,x.text.search(/\S/)),be=b.line==z.line&&b.ch<=le&&b.ch;return ot(z.line,be?0:le,z.sticky)}return z}function Eu(a,b,z){if(typeof b=="string"&&(b=Xs[b],!b))return!1;a.display.input.ensurePolled();var x=a.display.shift,ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),z&&(a.display.shift=!1),ee=b(a)!=Ct}finally{a.display.shift=x,a.state.suppressEdits=!1}return ee}function sc(a,b,z){for(var x=0;x<a.state.keyMaps.length;x++){var ee=Qs(b,a.state.keyMaps[x],z,a);if(ee)return ee}return a.options.extraKeys&&Qs(b,a.options.extraKeys,z,a)||Qs(b,a.options.keyMap,z,a)}var uc=new ye;function Cu(a,b,z,x){var ee=a.state.keySeq;if(ee){if(au(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:uc.set(50,function(){a.state.keySeq==ee&&(a.state.keySeq=null,a.display.input.reset())}),Zu(a,ee+" "+b,z,x))return!0}return Zu(a,b,z,x)}function Zu(a,b,z,x){var ee=sc(a,b,x);return ee=="multi"&&(a.state.keySeq=b),ee=="handled"&&no(a,"keyHandled",a,b,z),(ee=="handled"||ee=="multi")&&(Nt(z),Ko(a)),!!ee}function xu(a,b){var z=Ks(b,!0);return z?b.shiftKey&&!a.state.keySeq?Cu(a,"Shift-"+z,b,function(x){return Eu(a,x,!0)})||Cu(a,z,b,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return Eu(a,x)}):Cu(a,z,b,function(x){return Eu(a,x)}):!1}function $u(a,b,z){return Cu(a,"'"+z+"'",b,function(x){return Eu(a,x,!0)})}var ou=null;function ju(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=xe(),!Lt(b,a))){Se&&Ee<11&&a.keyCode==27&&(a.returnValue=!1);var z=a.keyCode;b.display.shift=z==16||a.shiftKey;var x=xu(b,a);de&&(ou=x?z:null,!x&&z==88&&!Ot&&(Oe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),y&&!Oe&&!x&&z==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),z==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&nc(b)}}function nc(a){var b=a.display.lineDiv;ce(b,"CodeMirror-crosshair");function z(x){(x.keyCode==18||!x.altKey)&&(qe(b,"CodeMirror-crosshair"),Dn(document,"keyup",z),Dn(document,"mouseover",z))}Ht(document,"keyup",z),Ht(document,"mouseover",z)}function Wu(a){a.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,a)}function zu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(po(b.display,a)||Lt(b,a)||a.ctrlKey&&!a.altKey||Oe&&a.metaKey)){var z=a.keyCode,x=a.charCode;if(de&&z==ou){ou=null,Nt(a);return}if(!(de&&(!a.which||a.which<10)&&xu(b,a))){var ee=String.fromCharCode(x==null?z:x);ee!="\b"&&($u(b,a,ee)||b.display.input.onKeyPress(a))}}}var rc=400,Pu=function(a,b,z){this.time=a,this.pos=b,this.button=z};Pu.prototype.compare=function(a,b,z){return this.time+rc>a&&Kt(b,this.pos)==0&&z==this.button};var Js,lu;function Hu(a,b){var z=+new Date;return lu&&lu.compare(z,a,b)?(Js=lu=null,"triple"):Js&&Js.compare(z,a,b)?(lu=new Pu(z,a,b),Js=null,"double"):(Js=new Pu(z,a,b),lu=null,"single")}function Vu(a){var b=this,z=b.display;if(!(Lt(b,a)||z.activeTouch&&z.input.supportsTouch())){if(z.input.ensurePolled(),z.shift=a.shiftKey,po(z,a)){Ce||(z.scroller.draggable=!1,setTimeout(function(){return z.scroller.draggable=!0},100));return}if(!$s(b,a)){var x=Nr(b,a),ee=en(a),le=x?Hu(x,ee):"single";window.focus(),ee==1&&b.state.selectingText&&b.state.selectingText(a),!(x&&cc(b,ee,x,le,a))&&(ee==1?x?No(b,x,le,a):Rt(a)==z.scroller&&Nt(a):ee==2?(x&&vo(b.doc,x),setTimeout(function(){return z.input.focus()},20)):ee==3&&(_e?b.display.input.onContextMenu(a):Oi(b)))}}}function cc(a,b,z,x,ee){var le="Click";return x=="double"?le="Double"+le:x=="triple"&&(le="Triple"+le),le=(b==1?"Left":b==2?"Middle":"Right")+le,Cu(a,iu(le,ee),ee,function(be){if(typeof be=="string"&&(be=Xs[be]),!be)return!1;var Me=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Me=be(a,z)!=Ct}finally{a.state.suppressEdits=!1}return Me})}function yo(a,b,z){var x=a.getOption("configureMouse"),ee=x?x(a,b,z):{};if(ee.unit==null){var le=Ie?z.shiftKey&&z.metaKey:z.altKey;ee.unit=le?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ee.extend==null||a.doc.extend)&&(ee.extend=a.doc.extend||z.shiftKey),ee.addNew==null&&(ee.addNew=Oe?z.metaKey:z.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(Oe?z.altKey:z.ctrlKey)),ee}function No(a,b,z,x){Se?setTimeout(je(Xl,a),0):a.curOp.focus=xe();var ee=yo(a,z,x),le=a.doc.sel,be;a.options.dragDrop&&Pt&&!a.isReadOnly()&&z=="single"&&(be=le.contains(b))>-1&&(Kt((be=le.ranges[be]).from(),b)<0||b.xRel>0)&&(Kt(be.to(),b)>0||b.xRel<0)?Ql(a,x,b,ee):Jl(a,x,b,ee)}function Ql(a,b,z,x){var ee=a.display,le=!1,be=Ir(a,function(lt){Ce&&(ee.scroller.draggable=!1),a.state.draggingText=!1,Dn(ee.wrapper.ownerDocument,"mouseup",be),Dn(ee.wrapper.ownerDocument,"mousemove",Me),Dn(ee.scroller,"dragstart",Ue),Dn(ee.scroller,"drop",be),le||(Nt(lt),x.addNew||vo(a.doc,z,null,null,x.extend),Ce&&!We||Se&&Ee==9?setTimeout(function(){ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),ee.input.focus()},20):ee.input.focus())}),Me=function(lt){le=le||Math.abs(b.clientX-lt.clientX)+Math.abs(b.clientY-lt.clientY)>=10},Ue=function(){return le=!0};Ce&&(ee.scroller.draggable=!0),a.state.draggingText=be,be.copy=!x.moveOnDrag,ee.scroller.dragDrop&&ee.scroller.dragDrop(),Ht(ee.wrapper.ownerDocument,"mouseup",be),Ht(ee.wrapper.ownerDocument,"mousemove",Me),Ht(ee.scroller,"dragstart",Ue),Ht(ee.scroller,"drop",be),Oi(a),setTimeout(function(){return ee.input.focus()},20)}function hs(a,b,z){if(z=="char")return new Kn(b,b);if(z=="word")return a.findWordAt(b);if(z=="line")return new Kn(ot(b.line,0),kt(a.doc,ot(b.line+1,0)));var x=z(a,b);return new Kn(x.from,x.to)}function Jl(a,b,z,x){var ee=a.display,le=a.doc;Nt(b);var be,Me,Ue=le.sel,lt=Ue.ranges;if(x.addNew&&!x.extend?(Me=le.sel.contains(z),Me>-1?be=lt[Me]:be=new Kn(z,z)):(be=le.sel.primary(),Me=le.sel.primIndex),x.unit=="rectangle")x.addNew||(be=new Kn(z,z)),z=Nr(a,b,!0,!0),Me=-1;else{var fn=hs(a,z,x.unit);x.extend?be=fo(be,fn.anchor,fn.head,x.extend):be=fn}x.addNew?Me==-1?(Me=lt.length,Ua(le,ia(a,lt.concat([be]),Me),{scroll:!1,origin:"*mouse"})):lt.length>1&<[Me].empty()&&x.unit=="char"&&!x.extend?(Ua(le,ia(a,lt.slice(0,Me).concat(lt.slice(Me+1)),0),{scroll:!1,origin:"*mouse"}),Ue=le.sel):dl(le,Me,be,mt):(Me=0,Ua(le,new Gn([be],0),mt),Ue=le.sel);var Sn=z;function Yn(Ha){if(Kt(Sn,Ha)!=0)if(Sn=Ha,x.unit=="rectangle"){for(var bi=[],qi=a.options.tabSize,Ki=Pe(Pn(le,z.line).text,z.ch,qi),Ao=Pe(Pn(le,Ha.line).text,Ha.ch,qi),ml=Math.min(Ki,Ao),ql=Math.max(Ki,Ao),Dl=Math.min(z.line,Ha.line),Cs=Math.min(a.lastLine(),Math.max(z.line,Ha.line));Dl<=Cs;Dl++){var vs=Pn(le,Dl).text,$l=Gt(vs,ml,qi);ml==ql?bi.push(new Kn(ot(Dl,$l),ot(Dl,$l))):vs.length>$l&&bi.push(new Kn(ot(Dl,$l),ot(Dl,Gt(vs,ql,qi))))}bi.length||bi.push(new Kn(z,z)),Ua(le,ia(a,Ue.ranges.slice(0,Me).concat(bi),Me),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Ha)}else{var cs=be,ts=hs(a,Ha,x.unit),Kl=cs.anchor,Nl;Kt(ts.anchor,Kl)>0?(Nl=ts.head,Kl=At(cs.from(),ts.anchor)):(Nl=ts.anchor,Kl=mr(cs.to(),ts.head));var Fl=Ue.ranges.slice(0);Fl[Me]=su(a,new Kn(kt(le,Kl),Nl)),Ua(le,ia(a,Fl,Me),mt)}}var Vn=ee.wrapper.getBoundingClientRect(),kr=0;function ta(Ha){var bi=++kr,qi=Nr(a,Ha,!0,x.unit=="rectangle");if(qi)if(Kt(qi,Sn)!=0){a.curOp.focus=xe(),Yn(qi);var Ki=wo(ee,le);(qi.line>=Ki.to||qi.line<Ki.from)&&setTimeout(Ir(a,function(){kr==bi&&ta(Ha)}),150)}else{var Ao=Ha.clientY<Vn.top?-20:Ha.clientY>Vn.bottom?20:0;Ao&&setTimeout(Ir(a,function(){kr==bi&&(ee.scroller.scrollTop+=Ao,ta(Ha))}),50)}}function wa(Ha){a.state.selectingText=!1,kr=1/0,Ha&&(Nt(Ha),ee.input.focus()),Dn(ee.wrapper.ownerDocument,"mousemove",Ga),Dn(ee.wrapper.ownerDocument,"mouseup",oi),le.history.lastSelOrigin=null}var Ga=Ir(a,function(Ha){Ha.buttons===0||!en(Ha)?wa(Ha):ta(Ha)}),oi=Ir(a,wa);a.state.selectingText=oi,Ht(ee.wrapper.ownerDocument,"mousemove",Ga),Ht(ee.wrapper.ownerDocument,"mouseup",oi)}function su(a,b){var z=b.anchor,x=b.head,ee=Pn(a.doc,z.line);if(Kt(z,x)==0&&z.sticky==x.sticky)return b;var le=Je(ee);if(!le)return b;var be=wt(le,z.ch,z.sticky),Me=le[be];if(Me.from!=z.ch&&Me.to!=z.ch)return b;var Ue=be+(Me.from==z.ch==(Me.level!=1)?0:1);if(Ue==0||Ue==le.length)return b;var lt;if(x.line!=z.line)lt=(x.line-z.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var fn=wt(le,x.ch,x.sticky),Sn=fn-be||(x.ch-z.ch)*(Me.level==1?-1:1);fn==Ue-1||fn==Ue?lt=Sn<0:lt=Sn>0}var Yn=le[Ue+(lt?-1:0)],Vn=lt==(Yn.level==1),kr=Vn?Yn.from:Yn.to,ta=Vn?"after":"before";return z.ch==kr&&z.sticky==ta?b:new Kn(new ot(z.line,kr,ta),x)}function Es(a,b,z,x){var ee,le;if(b.touches)ee=b.touches[0].clientX,le=b.touches[0].clientY;else try{ee=b.clientX,le=b.clientY}catch(Yn){return!1}if(ee>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&Nt(b);var be=a.display,Me=be.lineDiv.getBoundingClientRect();if(le>Me.bottom||!Xt(a,z))return xn(b);le-=Me.top-be.viewOffset;for(var Ue=0;Ue<a.display.gutterSpecs.length;++Ue){var lt=be.gutters.childNodes[Ue];if(lt&<.getBoundingClientRect().right>=ee){var fn=Qt(a.doc,le),Sn=a.display.gutterSpecs[Ue];return yn(a,z,a,fn,Sn.className,b),xn(b)}}}function $s(a,b){return Es(a,b,"gutterClick",!0)}function qs(a,b){po(a.display,b)||Ku(a,b)||Lt(a,b,"contextmenu")||_e||a.display.input.onContextMenu(b)}function Ku(a,b){return Xt(a,"gutterContextMenu")?Es(a,b,"gutterContextMenu",!1):!1}function yc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zi(a)}var Gu={toString:function(){return"CodeMirror.Init"}},bc={},Au={};function _c(a){var b=a.optionHandlers;function z(x,ee,le,be){a.defaults[x]=ee,le&&(b[x]=be?function(Me,Ue,lt){lt!=Gu&&le(Me,Ue,lt)}:le)}a.defineOption=z,a.Init=Gu,z("value","",function(x,ee){return x.setValue(ee)},!0),z("mode",null,function(x,ee){x.doc.modeOption=ee,Ja(x)},!0),z("indentUnit",2,Ja,!0),z("indentWithTabs",!1),z("smartIndent",!0),z("tabSize",4,function(x){Ka(x),Zi(x),ja(x)},!0),z("lineSeparator",null,function(x,ee){if(x.doc.lineSep=ee,!!ee){var le=[],be=x.doc.first;x.doc.iter(function(Ue){for(var lt=0;;){var fn=Ue.text.indexOf(ee,lt);if(fn==-1)break;lt=fn+ee.length,le.push(ot(be,fn))}be++});for(var Me=le.length-1;Me>=0;Me--)go(x.doc,ee,le[Me],ot(le[Me].line,le[Me].ch+ee.length))}}),z("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,ee,le){x.state.specialChars=new RegExp(ee.source+(ee.test(" ")?"":"| "),"g"),le!=Gu&&x.refresh()}),z("specialCharPlaceholder",Co,function(x){return x.refresh()},!0),z("electricChars",!0),z("inputStyle",Be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),z("spellcheck",!1,function(x,ee){return x.getInputField().spellcheck=ee},!0),z("autocorrect",!1,function(x,ee){return x.getInputField().autocorrect=ee},!0),z("autocapitalize",!1,function(x,ee){return x.getInputField().autocapitalize=ee},!0),z("rtlMoveVisually",!nt),z("wholeLineUpdateBefore",!0),z("theme","default",function(x){yc(x),Mn(x)},!0),z("keyMap","default",function(x,ee,le){var be=Fu(ee),Me=le!=Gu&&Fu(le);Me&&Me.detach&&Me.detach(x,be),be.attach&&be.attach(x,Me||null)}),z("extraKeys",null),z("configureMouse",null),z("lineWrapping",!1,Mc,!0),z("gutters",[],function(x,ee){x.display.gutterSpecs=an(ee,x.options.lineNumbers),Mn(x)},!0),z("fixedGutter",!0,function(x,ee){x.display.gutters.style.left=ee?or(x.display)+"px":"0",x.refresh()},!0),z("coverGutterNextToScrollbar",!1,function(x){return Zs(x)},!0),z("scrollbarStyle","native",function(x){vu(x),Zs(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),z("lineNumbers",!1,function(x,ee){x.display.gutterSpecs=an(x.options.gutters,ee),Mn(x)},!0),z("firstLineNumber",1,Mn,!0),z("lineNumberFormatter",function(x){return x},Mn,!0),z("showCursorWhenSelecting",!1,ua,!0),z("resetSelectionOnContextMenu",!0),z("lineWiseCopyCut",!0),z("pasteLinesPerSelection",!0),z("selectionsMayTouch",!1),z("readOnly",!1,function(x,ee){ee=="nocursor"&&(Al(x),x.display.input.blur()),x.display.input.readOnlyChanged(ee)}),z("screenReaderLabel",null,function(x,ee){ee=ee===""?null:ee,x.display.input.screenReaderLabelChanged(ee)}),z("disableInput",!1,function(x,ee){ee||x.display.input.reset()},!0),z("dragDrop",!0,Tc),z("allowDropFileTypes",null),z("cursorBlinkRate",530),z("cursorScrollMargin",0),z("cursorHeight",1,ua,!0),z("singleCursorHeightPerLine",!0,ua,!0),z("workTime",100),z("workDelay",100),z("flattenSpans",!0,Ka,!0),z("addModeClass",!1,Ka,!0),z("pollInterval",100),z("undoDepth",200,function(x,ee){return x.doc.history.undoDepth=ee}),z("historyEventDelay",1250),z("viewportMargin",10,function(x){return x.refresh()},!0),z("maxHighlightLength",1e4,Ka,!0),z("moveInputWithCursor",!0,function(x,ee){ee||x.display.input.resetPosition()}),z("tabindex",null,function(x,ee){return x.display.input.getField().tabIndex=ee||""}),z("autofocus",null),z("direction","ltr",function(x,ee){return x.doc.setDirection(ee)},!0),z("phrases",null)}function Tc(a,b,z){var x=z&&z!=Gu;if(!b!=!x){var ee=a.display.dragFunctions,le=b?Ht:Dn;le(a.display.scroller,"dragstart",ee.start),le(a.display.scroller,"dragenter",ee.enter),le(a.display.scroller,"dragover",ee.over),le(a.display.scroller,"dragleave",ee.leave),le(a.display.scroller,"drop",ee.drop)}}function Mc(a){a.options.lineWrapping?(ce(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(qe(a.display.wrapper,"CodeMirror-wrap"),na(a)),ma(a),ja(a),Zi(a),setTimeout(function(){return Zs(a)},100)}function yl(a,b){var z=this;if(!(this instanceof yl))return new yl(a,b);this.options=b=b?it(b):{},it(bc,b,!1);var x=b.value;typeof x=="string"?x=new Ho(x,b.mode,null,b.lineSeparator,b.direction):b.mode&&(x.modeOption=b.mode),this.doc=x;var ee=new yl.inputStyles[b.inputStyle](this),le=this.display=new Fn(a,x,ee,b);le.wrapper.CodeMirror=this,yc(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ye,keySeq:null,specialChars:null},b.autofocus&&!Be&&le.input.focus(),Se&&Ee<11&&setTimeout(function(){return z.display.input.reset(!0)},20),Rc(this),Du(),Ps(this),this.curOp.forceUpdate=!0,Wi(this,x),b.autofocus&&!Be||this.hasFocus()?setTimeout(function(){z.hasFocus()&&!z.state.focused&&_l(z)},20):Al(this);for(var be in Au)Au.hasOwnProperty(be)&&Au[be](this,b[be],Gu);$t(this),b.finishInit&&b.finishInit(this);for(var Me=0;Me<ac.length;++Me)ac[Me](this);ws(this),Ce&&b.lineWrapping&&getComputedStyle(le.lineDiv).textRendering=="optimizelegibility"&&(le.lineDiv.style.textRendering="auto")}yl.defaults=bc,yl.optionHandlers=Au;function Rc(a){var b=a.display;Ht(b.scroller,"mousedown",Ir(a,Vu)),Se&&Ee<11?Ht(b.scroller,"dblclick",Ir(a,function(Ue){if(!Lt(a,Ue)){var lt=Nr(a,Ue);if(!(!lt||$s(a,Ue)||po(a.display,Ue))){Nt(Ue);var fn=a.findWordAt(lt);vo(a.doc,fn.anchor,fn.head)}}})):Ht(b.scroller,"dblclick",function(Ue){return Lt(a,Ue)||Nt(Ue)}),Ht(b.scroller,"contextmenu",function(Ue){return qs(a,Ue)}),Ht(b.input.getField(),"contextmenu",function(Ue){b.scroller.contains(Ue.target)||qs(a,Ue)});var z,x={end:0};function ee(){b.activeTouch&&(z=setTimeout(function(){return b.activeTouch=null},1e3),x=b.activeTouch,x.end=+new Date)}function le(Ue){if(Ue.touches.length!=1)return!1;var lt=Ue.touches[0];return lt.radiusX<=1&<.radiusY<=1}function be(Ue,lt){if(lt.left==null)return!0;var fn=lt.left-Ue.left,Sn=lt.top-Ue.top;return fn*fn+Sn*Sn>20*20}Ht(b.scroller,"touchstart",function(Ue){if(!Lt(a,Ue)&&!le(Ue)&&!$s(a,Ue)){b.input.ensurePolled(),clearTimeout(z);var lt=+new Date;b.activeTouch={start:lt,moved:!1,prev:lt-x.end<=300?x:null},Ue.touches.length==1&&(b.activeTouch.left=Ue.touches[0].pageX,b.activeTouch.top=Ue.touches[0].pageY)}}),Ht(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Ht(b.scroller,"touchend",function(Ue){var lt=b.activeTouch;if(lt&&!po(b,Ue)&<.left!=null&&!lt.moved&&new Date-lt.start<300){var fn=a.coordsChar(b.activeTouch,"page"),Sn;!lt.prev||be(lt,lt.prev)?Sn=new Kn(fn,fn):!lt.prev.prev||be(lt,lt.prev.prev)?Sn=a.findWordAt(fn):Sn=new Kn(ot(fn.line,0),kt(a.doc,ot(fn.line+1,0))),a.setSelection(Sn.anchor,Sn.head),a.focus(),Nt(Ue)}ee()}),Ht(b.scroller,"touchcancel",ee),Ht(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Is(a,b.scroller.scrollTop),os(a,b.scroller.scrollLeft,!0),yn(a,"scroll",a))}),Ht(b.scroller,"mousewheel",function(Ue){return rr(a,Ue)}),Ht(b.scroller,"DOMMouseScroll",function(Ue){return rr(a,Ue)}),Ht(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(Ue){Lt(a,Ue)||at(Ue)},over:function(Ue){Lt(a,Ue)||(_s(a,Ue),at(Ue))},start:function(Ue){return Ns(a,Ue)},drop:Ir(a,Os),leave:function(Ue){Lt(a,Ue)||Bu(a)}};var Me=b.input.getField();Ht(Me,"keyup",function(Ue){return Wu.call(a,Ue)}),Ht(Me,"keydown",Ir(a,ju)),Ht(Me,"keypress",Ir(a,zu)),Ht(Me,"focus",function(Ue){return _l(a,Ue)}),Ht(Me,"blur",function(Ue){return Al(a,Ue)})}var ac=[];yl.defineInitHook=function(a){return ac.push(a)};function Uu(a,b,z,x){var ee=a.doc,le;z==null&&(z="add"),z=="smart"&&(ee.mode.indent?le=wr(a,b).state:z="prev");var be=a.options.tabSize,Me=Pn(ee,b),Ue=Pe(Me.text,null,be);Me.stateAfter&&(Me.stateAfter=null);var lt=Me.text.match(/^\s*/)[0],fn;if(!x&&!/\S/.test(Me.text))fn=0,z="not";else if(z=="smart"&&(fn=ee.mode.indent(le,Me.text.slice(lt.length),Me.text),fn==Ct||fn>150)){if(!x)return;z="prev"}z=="prev"?b>ee.first?fn=Pe(Pn(ee,b-1).text,null,be):fn=0:z=="add"?fn=Ue+a.options.indentUnit:z=="subtract"?fn=Ue-a.options.indentUnit:typeof z=="number"&&(fn=Ue+z),fn=Math.max(0,fn);var Sn="",Yn=0;if(a.options.indentWithTabs)for(var Vn=Math.floor(fn/be);Vn;--Vn)Yn+=be,Sn+=" ";if(Yn<fn&&(Sn+=xt(fn-Yn)),Sn!=lt)return go(ee,Sn,ot(b,0),ot(b,lt.length),"+input"),Me.stateAfter=null,!0;for(var kr=0;kr<ee.sel.ranges.length;kr++){var ta=ee.sel.ranges[kr];if(ta.head.line==b&&ta.head.ch<lt.length){var wa=ot(b,lt.length);dl(ee,kr,new Kn(wa,wa));break}}}var Ts=null;function dc(a){Ts=a}function Xu(a,b,z,x,ee){var le=a.doc;a.display.shift=!1,x||(x=le.sel);var be=+new Date-200,Me=ee=="paste"||a.state.pasteIncoming>be,Ue=Bn(b),lt=null;if(Me&&x.ranges.length>1)if(Ts&&Ts.text.join(`
|
|
|
`)==b){if(x.ranges.length%Ts.text.length==0){lt=[];for(var fn=0;fn<Ts.text.length;fn++)lt.push(le.splitLines(Ts.text[fn]))}}else Ue.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(lt=ln(Ue,function(Ga){return[Ga]}));for(var Sn=a.curOp.updateInput,Yn=x.ranges.length-1;Yn>=0;Yn--){var Vn=x.ranges[Yn],kr=Vn.from(),ta=Vn.to();Vn.empty()&&(z&&z>0?kr=ot(kr.line,kr.ch-z):a.state.overwrite&&!Me?ta=ot(ta.line,Math.min(Pn(le,ta.line).text.length,ta.ch+pt(Ue).length)):Me&&Ts&&Ts.lineWise&&Ts.text.join(`
|
|
|
`)==Ue.join(`
|
|
|
`)&&(kr=ta=ot(kr.line,0)));var wa={from:kr,to:ta,text:lt?lt[Yn%lt.length]:Ue,origin:ee||(Me?"paste":a.state.cutIncoming>be?"cut":"+input")};ko(a.doc,wa),no(a,"inputRead",a,wa)}b&&!Me&&Cc(a,b),Ds(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Sn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ec(a,b){var z=a.clipboardData&&a.clipboardData.getData("Text");if(z)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&_a(b,function(){return Xu(b,z,0,null,"paste")}),!0}function Cc(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var z=a.doc.sel,x=z.ranges.length-1;x>=0;x--){var ee=z.ranges[x];if(!(ee.head.ch>100||x&&z.ranges[x-1].head.line==ee.head.line)){var le=a.getModeAt(ee.head),be=!1;if(le.electricChars){for(var Me=0;Me<le.electricChars.length;Me++)if(b.indexOf(le.electricChars.charAt(Me))>-1){be=Uu(a,ee.head.line,"smart");break}}else le.electricInput&&le.electricInput.test(Pn(a.doc,ee.head.line).text.slice(0,ee.head.ch))&&(be=Uu(a,ee.head.line,"smart"));be&&no(a,"electricInput",a,ee.head.line)}}}function xc(a){for(var b=[],z=[],x=0;x<a.doc.sel.ranges.length;x++){var ee=a.doc.sel.ranges[x].head.line,le={anchor:ot(ee,0),head:ot(ee+1,0)};z.push(le),b.push(a.getRange(le.anchor,le.head))}return{text:b,ranges:z}}function Sc(a,b,z,x){a.setAttribute("autocorrect",z?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!b)}function wc(){var a=st("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=st("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ce?a.style.width="1000px":a.setAttribute("wrap","off"),Ge&&(a.style.border="1px solid black"),Sc(a),b}function kc(a){var b=a.optionHandlers,z=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,ee){var le=this.options,be=le[x];le[x]==ee&&x!="mode"||(le[x]=ee,b.hasOwnProperty(x)&&Ir(this,b[x])(this,ee,be),yn(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,ee){this.state.keyMaps[ee?"push":"unshift"](Fu(x))},removeKeyMap:function(x){for(var ee=this.state.keyMaps,le=0;le<ee.length;++le)if(ee[le]==x||ee[le].name==x)return ee.splice(le,1),!0},addOverlay:ki(function(x,ee){var le=x.token?x:a.getMode(this.options,x);if(le.startState)throw new Error("Overlays may not be stateful.");Wt(this.state.overlays,{mode:le,modeSpec:x,opaque:ee&&ee.opaque,priority:ee&&ee.priority||0},function(be){return be.priority}),this.state.modeGen++,ja(this)}),removeOverlay:ki(function(x){for(var ee=this.state.overlays,le=0;le<ee.length;++le){var be=ee[le].modeSpec;if(be==x||typeof x=="string"&&be.name==x){ee.splice(le,1),this.state.modeGen++,ja(this);return}}}),indentLine:ki(function(x,ee,le){typeof ee!="string"&&typeof ee!="number"&&(ee==null?ee=this.options.smartIndent?"smart":"prev":ee=ee?"add":"subtract"),ct(this.doc,x)&&Uu(this,x,ee,le)}),indentSelection:ki(function(x){for(var ee=this.doc.sel.ranges,le=-1,be=0;be<ee.length;be++){var Me=ee[be];if(Me.empty())Me.head.line>le&&(Uu(this,Me.head.line,x,!0),le=Me.head.line,be==this.doc.sel.primIndex&&Ds(this));else{var Ue=Me.from(),lt=Me.to(),fn=Math.max(le,Ue.line);le=Math.min(this.lastLine(),lt.line-(lt.ch?0:1))+1;for(var Sn=fn;Sn<le;++Sn)Uu(this,Sn,x);var Yn=this.doc.sel.ranges;Ue.ch==0&&ee.length==Yn.length&&Yn[be].from().ch>0&&dl(this.doc,be,new Kn(Ue,Yn[be].to()),De)}}}),getTokenAt:function(x,ee){return Vr(this,x,ee)},getLineTokens:function(x,ee){return Vr(this,ot(x),ee,!0)},getTokenTypeAt:function(x){x=kt(this.doc,x);var ee=pr(this,Pn(this.doc,x.line)),le=0,be=(ee.length-1)/2,Me=x.ch,Ue;if(Me==0)Ue=ee[2];else for(;;){var lt=le+be>>1;if((lt?ee[lt*2-1]:0)>=Me)be=lt;else if(ee[lt*2+1]<Me)le=lt+1;else{Ue=ee[lt*2+2];break}}var fn=Ue?Ue.indexOf("overlay "):-1;return fn<0?Ue:fn==0?null:Ue.slice(0,fn-1)},getModeAt:function(x){var ee=this.doc.mode;return ee.innerMode?a.innerMode(ee,this.getTokenAt(x).state).mode:ee},getHelper:function(x,ee){return this.getHelpers(x,ee)[0]},getHelpers:function(x,ee){var le=[];if(!z.hasOwnProperty(ee))return le;var be=z[ee],Me=this.getModeAt(x);if(typeof Me[ee]=="string")be[Me[ee]]&&le.push(be[Me[ee]]);else if(Me[ee])for(var Ue=0;Ue<Me[ee].length;Ue++){var lt=be[Me[ee][Ue]];lt&&le.push(lt)}else Me.helperType&&be[Me.helperType]?le.push(be[Me.helperType]):be[Me.name]&&le.push(be[Me.name]);for(var fn=0;fn<be._global.length;fn++){var Sn=be._global[fn];Sn.pred(Me,this)&&vt(le,Sn.val)==-1&&le.push(Sn.val)}return le},getStateAfter:function(x,ee){var le=this.doc;return x=Mt(le,x==null?le.first+le.size-1:x),wr(this,x+1,ee).state},cursorCoords:function(x,ee){var le,be=this.doc.sel.primary();return x==null?le=be.head:typeof x=="object"?le=kt(this.doc,x):le=x?be.from():be.to(),si(this,le,ee||"page")},charCoords:function(x,ee){return ya(this,kt(this.doc,x),ee||"page")},coordsChar:function(x,ee){return x=Di(this,x,ee||"page"),Bt(this,x.left,x.top)},lineAtHeight:function(x,ee){return x=Di(this,{top:x,left:0},ee||"page").top,Qt(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,ee,le){var be=!1,Me;if(typeof x=="number"){var Ue=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>Ue&&(x=Ue,be=!0),Me=Pn(this.doc,x)}else Me=x;return ho(this,Me,{top:0,left:0},ee||"page",le||be).top+(be?this.doc.height-Aa(Me):0)},defaultTextHeight:function(){return Fr(this.display)},defaultCharWidth:function(){return ea(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,ee,le,be,Me){var Ue=this.display;x=si(this,kt(this.doc,x));var lt=x.bottom,fn=x.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),Ue.sizer.appendChild(ee),be=="over")lt=x.top;else if(be=="above"||be=="near"){var Sn=Math.max(Ue.wrapper.clientHeight,this.doc.height),Yn=Math.max(Ue.sizer.clientWidth,Ue.lineSpace.clientWidth);(be=="above"||x.bottom+ee.offsetHeight>Sn)&&x.top>ee.offsetHeight?lt=x.top-ee.offsetHeight:x.bottom+ee.offsetHeight<=Sn&&(lt=x.bottom),fn+ee.offsetWidth>Yn&&(fn=Yn-ee.offsetWidth)}ee.style.top=lt+"px",ee.style.left=ee.style.right="",Me=="right"?(fn=Ue.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(Me=="left"?fn=0:Me=="middle"&&(fn=(Ue.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=fn+"px"),le&&Ms(this,{left:fn,top:lt,right:fn+ee.offsetWidth,bottom:lt+ee.offsetHeight})},triggerOnKeyDown:ki(ju),triggerOnKeyPress:ki(zu),triggerOnKeyUp:Wu,triggerOnMouseDown:ki(Vu),execCommand:function(x){if(Xs.hasOwnProperty(x))return Xs[x].call(null,this)},triggerElectric:ki(function(x){Cc(this,x)}),findPosH:function(x,ee,le,be){var Me=1;ee<0&&(Me=-1,ee=-ee);for(var Ue=kt(this.doc,x),lt=0;lt<ee&&(Ue=fc(this.doc,Ue,Me,le,be),!Ue.hitSide);++lt);return Ue},moveH:ki(function(x,ee){var le=this;this.extendSelectionsBy(function(be){return le.display.shift||le.doc.extend||be.empty()?fc(le.doc,be.head,x,ee,le.options.rtlMoveVisually):x<0?be.from():be.to()},dt)}),deleteH:ki(function(x,ee){var le=this.doc.sel,be=this.doc;le.somethingSelected()?be.replaceSelection("",null,"+delete"):Gs(this,function(Me){var Ue=fc(be,Me.head,x,ee,!1);return x<0?{from:Ue,to:Me.head}:{from:Me.head,to:Ue}})}),findPosV:function(x,ee,le,be){var Me=1,Ue=be;ee<0&&(Me=-1,ee=-ee);for(var lt=kt(this.doc,x),fn=0;fn<ee;++fn){var Sn=si(this,lt,"div");if(Ue==null?Ue=Sn.left:Sn.left=Ue,lt=mc(this,Sn,Me,le),lt.hitSide)break}return lt},moveV:ki(function(x,ee){var le=this,be=this.doc,Me=[],Ue=!this.display.shift&&!be.extend&&be.sel.somethingSelected();if(be.extendSelectionsBy(function(fn){if(Ue)return x<0?fn.from():fn.to();var Sn=si(le,fn.head,"div");fn.goalColumn!=null&&(Sn.left=fn.goalColumn),Me.push(Sn.left);var Yn=mc(le,Sn,x,ee);return ee=="page"&&fn==be.sel.primary()&&Hs(le,ya(le,Yn,"div").top-Sn.top),Yn},dt),Me.length)for(var lt=0;lt<be.sel.ranges.length;lt++)be.sel.ranges[lt].goalColumn=Me[lt]}),findWordAt:function(x){var ee=this.doc,le=Pn(ee,x.line).text,be=x.ch,Me=x.ch;if(le){var Ue=this.getHelper(x,"wordChars");(x.sticky=="before"||Me==le.length)&&be?--be:++Me;for(var lt=le.charAt(be),fn=ve(lt,Ue)?function(Sn){return ve(Sn,Ue)}:/\s/.test(lt)?function(Sn){return/\s/.test(Sn)}:function(Sn){return!/\s/.test(Sn)&&!ve(Sn)};be>0&&fn(le.charAt(be-1));)--be;for(;Me<le.length&&fn(le.charAt(Me));)++Me}return new Kn(ot(x.line,be),ot(x.line,Me))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ce(this.display.cursorDiv,"CodeMirror-overwrite"):qe(this.display.cursorDiv,"CodeMirror-overwrite"),yn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==xe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ki(function(x,ee){Fs(this,x,ee)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-Tn(this)-this.display.barHeight,width:x.scrollWidth-Tn(this)-this.display.barWidth,clientHeight:_r(this),clientWidth:br(this)}},scrollIntoView:ki(function(x,ee){x==null?(x={from:this.doc.sel.primary().head,to:null},ee==null&&(ee=this.options.cursorScrollMargin)):typeof x=="number"?x={from:ot(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=ee||0,x.from.line!=null?tu(this,x):Rs(this,x.from,x.to,x.margin)}),setSize:ki(function(x,ee){var le=this,be=function(Ue){return typeof Ue=="number"||/^\d+$/.test(String(Ue))?Ue+"px":Ue};x!=null&&(this.display.wrapper.style.width=be(x)),ee!=null&&(this.display.wrapper.style.height=be(ee)),this.options.lineWrapping&&Ni(this);var Me=this.display.viewFrom;this.doc.iter(Me,this.display.viewTo,function(Ue){if(Ue.widgets){for(var lt=0;lt<Ue.widgets.length;lt++)if(Ue.widgets[lt].noHScroll){sa(le,Me,"widget");break}}++Me}),this.curOp.forceUpdate=!0,yn(this,"refresh",this)}),operation:function(x){return _a(this,x)},startOperation:function(){return Ps(this)},endOperation:function(){return ws(this)},refresh:ki(function(){var x=this.display.cachedTextHeight;ja(this),this.curOp.forceUpdate=!0,Zi(this),Fs(this,this.doc.scrollLeft,this.doc.scrollTop),Ze(this.display),(x==null||Math.abs(x-Fr(this.display))>.5||this.options.lineWrapping)&&ma(this),yn(this,"refresh",this)}),swapDoc:ki(function(x){var ee=this.doc;return ee.cm=null,this.state.selectingText&&this.state.selectingText(),Wi(this,x),Zi(this),this.display.input.reset(),Fs(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,no(this,"swapDoc",this,ee),ee}),phrase:function(x){var ee=this.options.phrases;return ee&&Object.prototype.hasOwnProperty.call(ee,x)?ee[x]:x},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Xe(a),a.registerHelper=function(x,ee,le){z.hasOwnProperty(x)||(z[x]=a[x]={_global:[]}),z[x][ee]=le},a.registerGlobalHelper=function(x,ee,le,be){a.registerHelper(x,ee,be),z[x]._global.push({pred:le,val:be})}}function fc(a,b,z,x,ee){var le=b,be=z,Me=Pn(a,b.line),Ue=ee&&a.direction=="rtl"?-z:z;function lt(){var oi=b.line+Ue;return oi<a.first||oi>=a.first+a.size?!1:(b=new ot(oi,b.ch,b.sticky),Me=Pn(a,oi))}function fn(oi){var Ha;if(x=="codepoint"){var bi=Me.text.charCodeAt(b.ch+(x>0?0:-1));isNaN(bi)?Ha=null:Ha=new ot(b.line,Math.max(0,Math.min(Me.text.length,b.ch+z*(bi>=55296&&bi<56320?2:1))),-z)}else ee?Ha=tc(a.cm,Me,b,z):Ha=Iu(Me,b,z);if(Ha==null)if(!oi&<())b=Us(ee,a.cm,Me,b.line,Ue);else return!1;else b=Ha;return!0}if(x=="char"||x=="codepoint")fn();else if(x=="column")fn(!0);else if(x=="word"||x=="group")for(var Sn=null,Yn=x=="group",Vn=a.cm&&a.cm.getHelper(b,"wordChars"),kr=!0;!(z<0&&!fn(!kr));kr=!1){var ta=Me.text.charAt(b.ch)||`
|
|
|
`,wa=ve(ta,Vn)?"w":Yn&&ta==`
|
|
|
`?"n":!Yn||/\s/.test(ta)?null:"p";if(Yn&&!kr&&!wa&&(wa="s"),Sn&&Sn!=wa){z<0&&(z=1,fn(),b.sticky="after");break}if(wa&&(Sn=wa),z>0&&!fn(!kr))break}var Ga=Cl(a,b,le,be,!0);return Ft(le,Ga)&&(Ga.hitSide=!0),Ga}function mc(a,b,z,x){var ee=a.doc,le=b.left,be;if(x=="page"){var Me=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ue=Math.max(Me-.5*Fr(a.display),3);be=(z>0?b.bottom:b.top)+z*Ue}else x=="line"&&(be=z>0?b.bottom+3:b.top-3);for(var lt;lt=Bt(a,le,be),!!lt.outside;){if(z<0?be<=0:be>=ee.height){lt.hitSide=!0;break}be+=z*5}return lt}var Uo=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ye,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Uo.prototype.init=function(a){var b=this,z=this,x=z.cm,ee=z.div=a.lineDiv;Sc(ee,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function le(Me){for(var Ue=Me.target;Ue;Ue=Ue.parentNode){if(Ue==ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ue.className))break}return!1}Ht(ee,"paste",function(Me){!le(Me)||Lt(x,Me)||Ec(Me,x)||Ee<=11&&setTimeout(Ir(x,function(){return b.updateFromDOM()}),20)}),Ht(ee,"compositionstart",function(Me){b.composing={data:Me.data,done:!1}}),Ht(ee,"compositionupdate",function(Me){b.composing||(b.composing={data:Me.data,done:!1})}),Ht(ee,"compositionend",function(Me){b.composing&&(Me.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Ht(ee,"touchstart",function(){return z.forceCompositionEnd()}),Ht(ee,"input",function(){b.composing||b.readFromDOMSoon()});function be(Me){if(!(!le(Me)||Lt(x,Me))){if(x.somethingSelected())dc({lineWise:!1,text:x.getSelections()}),Me.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var Ue=xc(x);dc({lineWise:!0,text:Ue.text}),Me.type=="cut"&&x.operation(function(){x.setSelections(Ue.ranges,0,De),x.replaceSelection("",null,"cut")})}else return;if(Me.clipboardData){Me.clipboardData.clearData();var lt=Ts.text.join(`
|
|
|
`);if(Me.clipboardData.setData("Text",lt),Me.clipboardData.getData("Text")==lt){Me.preventDefault();return}}var fn=wc(),Sn=fn.firstChild;x.display.lineSpace.insertBefore(fn,x.display.lineSpace.firstChild),Sn.value=Ts.text.join(`
|
|
|
`);var Yn=document.activeElement;Ye(Sn),setTimeout(function(){x.display.lineSpace.removeChild(fn),Yn.focus(),Yn==ee&&z.showPrimarySelection()},50)}}Ht(ee,"copy",be),Ht(ee,"cut",be)},Uo.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Uo.prototype.prepareSelection=function(){var a=aa(this.cm,!1);return a.focus=document.activeElement==this.div,a},Uo.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Uo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Uo.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,z=b.doc.sel.primary(),x=z.from(),ee=z.to();if(b.display.viewTo==b.display.viewFrom||x.line>=b.display.viewTo||ee.line<b.display.viewFrom){a.removeAllRanges();return}var le=ic(b,a.anchorNode,a.anchorOffset),be=ic(b,a.focusNode,a.focusOffset);if(!(le&&!le.bad&&be&&!be.bad&&Kt(At(le,be),x)==0&&Kt(mr(le,be),ee)==0)){var Me=b.display.view,Ue=x.line>=b.display.viewFrom&&Yu(b,x)||{node:Me[0].measure.map[2],offset:0},lt=ee.line<b.display.viewTo&&Yu(b,ee);if(!lt){var fn=Me[Me.length-1].measure,Sn=fn.maps?fn.maps[fn.maps.length-1]:fn.map;lt={node:Sn[Sn.length-1],offset:Sn[Sn.length-2]-Sn[Sn.length-3]}}if(!Ue||!lt){a.removeAllRanges();return}var Yn=a.rangeCount&&a.getRangeAt(0),Vn;try{Vn=pe(Ue.node,Ue.offset,lt.offset,lt.node)}catch(kr){}Vn&&(!y&&b.state.focused?(a.collapse(Ue.node,Ue.offset),Vn.collapsed||(a.removeAllRanges(),a.addRange(Vn))):(a.removeAllRanges(),a.addRange(Vn)),Yn&&a.anchorNode==null?a.addRange(Yn):y&&this.startGracePeriod()),this.rememberSelection()}},Uo.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Uo.prototype.showMultipleSelections=function(a){yt(this.cm.display.cursorDiv,a.cursors),yt(this.cm.display.selectionDiv,a.selection)},Uo.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Uo.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Le(this.div,b)},Uo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Uo.prototype.blur=function(){this.div.blur()},Uo.prototype.getField=function(){return this.div},Uo.prototype.supportsTouch=function(){return!0},Uo.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():_a(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},Uo.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Uo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(Ne&&Fe&&this.cm.display.gutterSpecs.length&&Lc(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var z=ic(b,a.anchorNode,a.anchorOffset),x=ic(b,a.focusNode,a.focusOffset);z&&x&&_a(b,function(){Ua(b.doc,Tr(z,x),De),(z.bad||x.bad)&&(b.curOp.selectionChanged=!0)})}}},Uo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,z=a.doc.sel.primary(),x=z.from(),ee=z.to();if(x.ch==0&&x.line>a.firstLine()&&(x=ot(x.line-1,Pn(a.doc,x.line-1).length)),ee.ch==Pn(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=ot(ee.line+1,0)),x.line<b.viewFrom||ee.line>b.viewTo-1)return!1;var le,be,Me;x.line==b.viewFrom||(le=Ba(a,x.line))==0?(be=_t(b.view[0].line),Me=b.view[0].node):(be=_t(b.view[le].line),Me=b.view[le-1].node.nextSibling);var Ue=Ba(a,ee.line),lt,fn;if(Ue==b.view.length-1?(lt=b.viewTo-1,fn=b.lineDiv.lastChild):(lt=_t(b.view[Ue+1].line)-1,fn=b.view[Ue+1].node.previousSibling),!Me)return!1;for(var Sn=a.doc.splitLines(Bc(a,Me,fn,be,lt)),Yn=$n(a.doc,ot(be,0),ot(lt,Pn(a.doc,lt).text.length));Sn.length>1&&Yn.length>1;)if(pt(Sn)==pt(Yn))Sn.pop(),Yn.pop(),lt--;else if(Sn[0]==Yn[0])Sn.shift(),Yn.shift(),be++;else break;for(var Vn=0,kr=0,ta=Sn[0],wa=Yn[0],Ga=Math.min(ta.length,wa.length);Vn<Ga&&ta.charCodeAt(Vn)==wa.charCodeAt(Vn);)++Vn;for(var oi=pt(Sn),Ha=pt(Yn),bi=Math.min(oi.length-(Sn.length==1?Vn:0),Ha.length-(Yn.length==1?Vn:0));kr<bi&&oi.charCodeAt(oi.length-kr-1)==Ha.charCodeAt(Ha.length-kr-1);)++kr;if(Sn.length==1&&Yn.length==1&&be==x.line)for(;Vn&&Vn>x.ch&&oi.charCodeAt(oi.length-kr-1)==Ha.charCodeAt(Ha.length-kr-1);)Vn--,kr++;Sn[Sn.length-1]=oi.slice(0,oi.length-kr).replace(/^\u200b+/,""),Sn[0]=Sn[0].slice(Vn).replace(/\u200b+$/,"");var qi=ot(be,Vn),Ki=ot(lt,Yn.length?pt(Yn).length-kr:0);if(Sn.length>1||Sn[0]||Kt(qi,Ki))return go(a.doc,Sn,qi,Ki,"+input"),!0},Uo.prototype.ensurePolled=function(){this.forceCompositionEnd()},Uo.prototype.reset=function(){this.forceCompositionEnd()},Uo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Uo.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Uo.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&_a(this.cm,function(){return ja(a.cm)})},Uo.prototype.setUneditable=function(a){a.contentEditable="false"},Uo.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ir(this.cm,Xu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Uo.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Uo.prototype.onContextMenu=function(){},Uo.prototype.resetPosition=function(){},Uo.prototype.needsContentAttribute=!0;function Yu(a,b){var z=Pr(a,b.line);if(!z||z.hidden)return null;var x=Pn(a.doc,b.line),ee=ir(z,x,b.line),le=Je(x,a.doc.direction),be="left";if(le){var Me=wt(le,b.ch);be=Me%2?"right":"left"}var Ue=oo(ee.map,b.ch,be);return Ue.offset=Ue.collapse=="right"?Ue.end:Ue.start,Ue}function Lc(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function uu(a,b){return b&&(a.bad=!0),a}function Bc(a,b,z,x,ee){var le="",be=!1,Me=a.doc.lineSeparator(),Ue=!1;function lt(Vn){return function(kr){return kr.id==Vn}}function fn(){be&&(le+=Me,Ue&&(le+=Me),be=Ue=!1)}function Sn(Vn){Vn&&(fn(),le+=Vn)}function Yn(Vn){if(Vn.nodeType==1){var kr=Vn.getAttribute("cm-text");if(kr){Sn(kr);return}var ta=Vn.getAttribute("cm-marker"),wa;if(ta){var Ga=a.findMarks(ot(x,0),ot(ee+1,0),lt(+ta));Ga.length&&(wa=Ga[0].find(0))&&Sn($n(a.doc,wa.from,wa.to).join(Me));return}if(Vn.getAttribute("contenteditable")=="false")return;var oi=/^(pre|div|p|li|table|br)$/i.test(Vn.nodeName);if(!/^br$/i.test(Vn.nodeName)&&Vn.textContent.length==0)return;oi&&fn();for(var Ha=0;Ha<Vn.childNodes.length;Ha++)Yn(Vn.childNodes[Ha]);/^(pre|p)$/i.test(Vn.nodeName)&&(Ue=!0),oi&&(be=!0)}else Vn.nodeType==3&&Sn(Vn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Yn(b),b!=z;)b=b.nextSibling,Ue=!1;return le}function ic(a,b,z){var x;if(b==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[z],!x)return uu(a.clipPos(ot(a.display.viewTo-1)),!0);b=null,z=0}else for(x=b;;x=x.parentNode){if(!x||x==a.display.lineDiv)return null;if(x.parentNode&&x.parentNode==a.display.lineDiv)break}for(var ee=0;ee<a.display.view.length;ee++){var le=a.display.view[ee];if(le.node==x)return Zc(le,b,z)}}function Zc(a,b,z){var x=a.text.firstChild,ee=!1;if(!b||!Le(x,b))return uu(ot(_t(a.line),0),!0);if(b==x&&(ee=!0,b=x.childNodes[z],z=0,!b)){var le=a.rest?pt(a.rest):a.line;return uu(ot(_t(le),le.text.length),ee)}var be=b.nodeType==3?b:null,Me=b;for(!be&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(be=b.firstChild,z&&(z=be.nodeValue.length));Me.parentNode!=x;)Me=Me.parentNode;var Ue=a.measure,lt=Ue.maps;function fn(wa,Ga,oi){for(var Ha=-1;Ha<(lt?lt.length:0);Ha++)for(var bi=Ha<0?Ue.map:lt[Ha],qi=0;qi<bi.length;qi+=3){var Ki=bi[qi+2];if(Ki==wa||Ki==Ga){var Ao=_t(Ha<0?a.line:a.rest[Ha]),ml=bi[qi]+oi;return(oi<0||Ki!=wa)&&(ml=bi[qi+(oi?1:0)]),ot(Ao,ml)}}}var Sn=fn(be,Me,z);if(Sn)return uu(Sn,ee);for(var Yn=Me.nextSibling,Vn=be?be.nodeValue.length-z:0;Yn;Yn=Yn.nextSibling){if(Sn=fn(Yn,Yn.firstChild,0),Sn)return uu(ot(Sn.line,Sn.ch-Vn),ee);Vn+=Yn.textContent.length}for(var kr=Me.previousSibling,ta=z;kr;kr=kr.previousSibling){if(Sn=fn(kr,kr.firstChild,-1),Sn)return uu(ot(Sn.line,Sn.ch+ta),ee);ta+=kr.textContent.length}}var Rl=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ye,this.hasSelection=!1,this.composing=null};Rl.prototype.init=function(a){var b=this,z=this,x=this.cm;this.createField(a);var ee=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ge&&(ee.style.width="0px"),Ht(ee,"input",function(){Se&&Ee>=9&&b.hasSelection&&(b.hasSelection=null),z.poll()}),Ht(ee,"paste",function(be){Lt(x,be)||Ec(be,x)||(x.state.pasteIncoming=+new Date,z.fastPoll())});function le(be){if(!Lt(x,be)){if(x.somethingSelected())dc({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var Me=xc(x);dc({lineWise:!0,text:Me.text}),be.type=="cut"?x.setSelections(Me.ranges,null,De):(z.prevInput="",ee.value=Me.text.join(`
|
|
|
`),Ye(ee))}else return;be.type=="cut"&&(x.state.cutIncoming=+new Date)}}Ht(ee,"cut",le),Ht(ee,"copy",le),Ht(a.scroller,"paste",function(be){if(!(po(a,be)||Lt(x,be))){if(!ee.dispatchEvent){x.state.pasteIncoming=+new Date,z.focus();return}var Me=new Event("paste");Me.clipboardData=be.clipboardData,ee.dispatchEvent(Me)}}),Ht(a.lineSpace,"selectstart",function(be){po(a,be)||Nt(be)}),Ht(ee,"compositionstart",function(){var be=x.getCursor("from");z.composing&&z.composing.range.clear(),z.composing={start:be,range:x.markText(be,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Ht(ee,"compositionend",function(){z.composing&&(z.poll(),z.composing.range.clear(),z.composing=null)})},Rl.prototype.createField=function(a){this.wrapper=wc(),this.textarea=this.wrapper.firstChild},Rl.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Rl.prototype.prepareSelection=function(){var a=this.cm,b=a.display,z=a.doc,x=aa(a);if(a.options.moveInputWithCursor){var ee=si(a,z.sel.primary().head,"div"),le=b.wrapper.getBoundingClientRect(),be=b.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ee.top+be.top-le.top)),x.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ee.left+be.left-le.left))}return x},Rl.prototype.showSelection=function(a){var b=this.cm,z=b.display;yt(z.cursorDiv,a.cursors),yt(z.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Rl.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var z=b.getSelection();this.textarea.value=z,b.state.focused&&Ye(this.textarea),Se&&Ee>=9&&(this.hasSelection=z)}else a||(this.prevInput=this.textarea.value="",Se&&Ee>=9&&(this.hasSelection=null))}},Rl.prototype.getField=function(){return this.textarea},Rl.prototype.supportsTouch=function(){return!1},Rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Be||xe()!=this.textarea))try{this.textarea.focus()}catch(a){}},Rl.prototype.blur=function(){this.textarea.blur()},Rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Rl.prototype.receivedFocus=function(){this.slowPoll()},Rl.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Rl.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function z(){var x=b.poll();!x&&!a?(a=!0,b.polling.set(60,z)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,z)},Rl.prototype.poll=function(){var a=this,b=this.cm,z=this.textarea,x=this.prevInput;if(this.contextMenuPending||!b.state.focused||Zn(z)&&!x&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ee=z.value;if(ee==x&&!b.somethingSelected())return!1;if(Se&&Ee>=9&&this.hasSelection===ee||Oe&&/[\uf700-\uf7ff]/.test(ee))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var le=ee.charCodeAt(0);if(le==8203&&!x&&(x="\u200B"),le==8666)return this.reset(),this.cm.execCommand("undo")}for(var be=0,Me=Math.min(x.length,ee.length);be<Me&&x.charCodeAt(be)==ee.charCodeAt(be);)++be;return _a(b,function(){Xu(b,ee.slice(be),x.length-be,null,a.composing?"*compose":null),ee.length>1e3||ee.indexOf(`
|
|
|
`)>-1?z.value=a.prevInput="":a.prevInput=ee,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Rl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Rl.prototype.onKeyPress=function(){Se&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},Rl.prototype.onContextMenu=function(a){var b=this,z=b.cm,x=z.display,ee=b.textarea;b.contextMenuPending&&b.contextMenuPending();var le=Nr(z,a),be=x.scroller.scrollTop;if(!le||de)return;var Me=z.options.resetSelectionOnContextMenu;Me&&z.doc.sel.contains(le)==-1&&Ir(z,Ua)(z.doc,Tr(le),De);var Ue=ee.style.cssText,lt=b.wrapper.style.cssText,fn=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ee.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-fn.top-5)+"px; left: "+(a.clientX-fn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Sn;Ce&&(Sn=window.scrollY),x.input.focus(),Ce&&window.scrollTo(null,Sn),x.input.reset(),z.somethingSelected()||(ee.value=b.prevInput=" "),b.contextMenuPending=Vn,x.selForContextMenu=z.doc.sel,clearTimeout(x.detectingSelectAll);function Yn(){if(ee.selectionStart!=null){var ta=z.somethingSelected(),wa="\u200B"+(ta?ee.value:"");ee.value="\u21DA",ee.value=wa,b.prevInput=ta?"":"\u200B",ee.selectionStart=1,ee.selectionEnd=wa.length,x.selForContextMenu=z.doc.sel}}function Vn(){if(b.contextMenuPending==Vn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=lt,ee.style.cssText=Ue,Se&&Ee<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=be),ee.selectionStart!=null)){(!Se||Se&&Ee<9)&&Yn();var ta=0,wa=function(){x.selForContextMenu==z.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&b.prevInput=="\u200B"?Ir(z,Li)(z):ta++<10?x.detectingSelectAll=setTimeout(wa,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(wa,200)}}if(Se&&Ee>=9&&Yn(),_e){at(a);var kr=function(){Dn(window,"mouseup",kr),setTimeout(Vn,20)};Ht(window,"mouseup",kr)}else setTimeout(Vn,50)},Rl.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Rl.prototype.setUneditable=function(){},Rl.prototype.needsContentAttribute=!1;function $c(a,b){if(b=b?it(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var z=xe();b.autofocus=z==a||a.getAttribute("autofocus")!=null&&z==document.body}function x(){a.value=Me.getValue()}var ee;if(a.form&&(Ht(a.form,"submit",x),!b.leaveSubmitMethodAlone)){var le=a.form;ee=le.submit;try{var be=le.submit=function(){x(),le.submit=ee,le.submit(),le.submit=be}}catch(Ue){}}b.finishInit=function(Ue){Ue.save=x,Ue.getTextArea=function(){return a},Ue.toTextArea=function(){Ue.toTextArea=isNaN,x(),a.parentNode.removeChild(Ue.getWrapperElement()),a.style.display="",a.form&&(Dn(a.form,"submit",x),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ee))}},a.style.display="none";var Me=yl(function(Ue){return a.parentNode.insertBefore(Ue,a.nextSibling)},b);return Me}function pc(a){a.off=Dn,a.on=Ht,a.wheelEventPixels=lr,a.Doc=Ho,a.splitLines=Bn,a.countColumn=Pe,a.findColumn=Gt,a.isWordChar=se,a.Pass=Ct,a.signal=yn,a.Line=li,a.changeEnd=ca,a.scrollbarModel=Mu,a.Pos=ot,a.cmpPos=Kt,a.modes=En,a.mimeModes=tn,a.resolveMode=On,a.getMode=fr,a.modeExtensions=Qn,a.extendMode=cr,a.copyState=Cr,a.startState=Hr,a.innerMode=gr,a.commands=Xs,a.keyMap=Ml,a.keyName=Ks,a.isModifierKey=au,a.lookupKey=Qs,a.normalizeKeyMap=Yl,a.StringStream=Zr,a.SharedTextMarker=Jo,a.TextMarker=as,a.LineWidget=Ro,a.e_preventDefault=Nt,a.e_stopPropagation=dn,a.e_stop=at,a.addClass=ce,a.contains=Le,a.rmClass=qe,a.keyNames=Do}_c(yl),kc(yl);var Dc="iter insert remove copy getEditor constructor".split(" ");for(var Ou in Ho.prototype)Ho.prototype.hasOwnProperty(Ou)&&vt(Dc,Ou)<0&&(yl.prototype[Ou]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ho.prototype[Ou]));return Xe(Ho),yl.inputStyles={textarea:Rl,contenteditable:Uo},yl.defineMode=function(a){!yl.defaults.mode&&a!="null"&&(yl.defaults.mode=a),In.apply(this,arguments)},yl.defineMIME=pn,yl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),yl.defineMIME("text/plain","null"),yl.defineExtension=function(a,b){yl.prototype[a]=b},yl.defineDocExtension=function(a,b){Ho.prototype[a]=b},yl.fromTextArea=$c,pc(yl),yl.version="5.58.2",yl})},25419:function(Rn,qt,E){(function(y){y(E(89780),E(15525),E(98101))})(function(y){"use strict";y.defineMode("markdown",function(ge,me){var we=y.getMode(ge,"text/html"),Se=we.name=="null";function Ee(Pe){if(y.findModeByName){var ye=y.findModeByName(Pe);ye&&(Pe=ye.mime||ye.mimes[0])}var vt=y.getMode(ge,Pe);return vt.name=="null"?null:vt}me.highlightFormatting===void 0&&(me.highlightFormatting=!1),me.maxBlockquoteDepth===void 0&&(me.maxBlockquoteDepth=0),me.taskLists===void 0&&(me.taskLists=!1),me.strikethrough===void 0&&(me.strikethrough=!1),me.emoji===void 0&&(me.emoji=!1),me.fencedCodeBlockHighlighting===void 0&&(me.fencedCodeBlockHighlighting=!0),me.fencedCodeBlockDefaultMode===void 0&&(me.fencedCodeBlockDefaultMode="text/plain"),me.xml===void 0&&(me.xml=!0),me.tokenTypeOverrides===void 0&&(me.tokenTypeOverrides={});var Ce={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var ke in Ce)Ce.hasOwnProperty(ke)&&me.tokenTypeOverrides[ke]&&(Ce[ke]=me.tokenTypeOverrides[ke]);var Fe=/^([*\-_])(?:\s*\1){2,}\s*$/,de=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,We=/^\[(x| )\](?=\s)/i,Te=me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ft=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ge=/^[^#!\[\]*_\\<>` "'(~:]+/,Ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Be=/^\s*\[[^\]]+?\]:.*$/,Oe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Ie=" ";function nt(Pe,ye,vt){return ye.f=ye.inline=vt,vt(Pe,ye)}function St(Pe,ye,vt){return ye.f=ye.block=vt,vt(Pe,ye)}function Ae(Pe){return!Pe||!/\S/.test(Pe.string)}function _e(Pe){if(Pe.linkTitle=!1,Pe.linkHref=!1,Pe.linkText=!1,Pe.em=!1,Pe.strong=!1,Pe.strikethrough=!1,Pe.quote=0,Pe.indentedCode=!1,Pe.f==qe){var ye=Se;if(!ye){var vt=y.innerMode(we,Pe.htmlState);ye=vt.mode.name=="xml"&&vt.state.tagStart===null&&!vt.state.context&&vt.state.tokenize.isInText}ye&&(Pe.f=$e,Pe.block=et,Pe.htmlState=null)}return Pe.trailingSpace=0,Pe.trailingSpaceNewLine=!1,Pe.prevLine=Pe.thisLine,Pe.thisLine={stream:null},null}function et(Pe,ye){var vt=Pe.column()===ye.indentation,zt=Ae(ye.prevLine.stream),Ct=ye.indentedCode,De=ye.prevLine.hr,mt=ye.list!==!1,dt=(ye.listStack[ye.listStack.length-1]||0)+3;ye.indentedCode=!1;var Gt=ye.indentation;if(ye.indentationDiff===null&&(ye.indentationDiff=ye.indentation,mt)){for(ye.list=null;Gt<ye.listStack[ye.listStack.length-1];)ye.listStack.pop(),ye.listStack.length?ye.indentation=ye.listStack[ye.listStack.length-1]:ye.list=!1;ye.list!==!1&&(ye.indentationDiff=Gt-ye.listStack[ye.listStack.length-1])}var bt=!zt&&!De&&!ye.prevLine.header&&(!mt||!Ct)&&!ye.prevLine.fencedCodeEnd,xt=(ye.list===!1||De||zt)&&ye.indentation<=dt&&Pe.match(Fe),pt=null;if(ye.indentationDiff>=4&&(Ct||ye.prevLine.fencedCodeEnd||ye.prevLine.header||zt))return Pe.skipToEnd(),ye.indentedCode=!0,Ce.code;if(Pe.eatSpace())return null;if(vt&&ye.indentation<=dt&&(pt=Pe.match(Te))&&pt[1].length<=6)return ye.quote=0,ye.header=pt[1].length,ye.thisLine.header=!0,me.highlightFormatting&&(ye.formatting="header"),ye.f=ye.inline,yt(ye);if(ye.indentation<=dt&&Pe.eat(">"))return ye.quote=vt?1:ye.quote+1,me.highlightFormatting&&(ye.formatting="quote"),Pe.eatSpace(),yt(ye);if(!xt&&!ye.setext&&vt&&ye.indentation<=dt&&(pt=Pe.match(de))){var ln=pt[1]?"ol":"ul";return ye.indentation=Gt+Pe.current().length,ye.list=!0,ye.quote=0,ye.listStack.push(ye.indentation),ye.em=!1,ye.strong=!1,ye.code=!1,ye.strikethrough=!1,me.taskLists&&Pe.match(We,!1)&&(ye.taskList=!0),ye.f=ye.inline,me.highlightFormatting&&(ye.formatting=["list","list-"+ln]),yt(ye)}else{if(vt&&ye.indentation<=dt&&(pt=Pe.match(Ne,!0)))return ye.quote=0,ye.fencedEndRE=new RegExp(pt[1]+"+ *$"),ye.localMode=me.fencedCodeBlockHighlighting&&Ee(pt[2]||me.fencedCodeBlockDefaultMode),ye.localMode&&(ye.localState=y.startState(ye.localMode)),ye.f=ye.block=ut,me.highlightFormatting&&(ye.formatting="code-block"),ye.code=-1,yt(ye);if(ye.setext||(!bt||!mt)&&!ye.quote&&ye.list===!1&&!ye.code&&!xt&&!Be.test(Pe.string)&&(pt=Pe.lookAhead(1))&&(pt=pt.match(ft)))return ye.setext?(ye.header=ye.setext,ye.setext=0,Pe.skipToEnd(),me.highlightFormatting&&(ye.formatting="header")):(ye.header=pt[0].charAt(0)=="="?1:2,ye.setext=ye.header),ye.thisLine.header=!0,ye.f=ye.inline,yt(ye);if(xt)return Pe.skipToEnd(),ye.hr=!0,ye.thisLine.hr=!0,Ce.hr;if(Pe.peek()==="[")return nt(Pe,ye,Et)}return nt(Pe,ye,ye.inline)}function qe(Pe,ye){var vt=we.token(Pe,ye.htmlState);if(!Se){var zt=y.innerMode(we,ye.htmlState);(zt.mode.name=="xml"&&zt.state.tagStart===null&&!zt.state.context&&zt.state.tokenize.isInText||ye.md_inside&&Pe.current().indexOf(">")>-1)&&(ye.f=$e,ye.block=et,ye.htmlState=null)}return vt}function ut(Pe,ye){var vt=ye.listStack[ye.listStack.length-1]||0,zt=ye.indentation<vt,Ct=vt+3;if(ye.fencedEndRE&&ye.indentation<=Ct&&(zt||Pe.match(ye.fencedEndRE))){me.highlightFormatting&&(ye.formatting="code-block");var De;return zt||(De=yt(ye)),ye.localMode=ye.localState=null,ye.block=et,ye.f=$e,ye.fencedEndRE=null,ye.code=0,ye.thisLine.fencedCodeEnd=!0,zt?St(Pe,ye,ye.block):De}else return ye.localMode?ye.localMode.token(Pe,ye.localState):(Pe.skipToEnd(),Ce.code)}function yt(Pe){var ye=[];if(Pe.formatting){ye.push(Ce.formatting),typeof Pe.formatting=="string"&&(Pe.formatting=[Pe.formatting]);for(var vt=0;vt<Pe.formatting.length;vt++)ye.push(Ce.formatting+"-"+Pe.formatting[vt]),Pe.formatting[vt]==="header"&&ye.push(Ce.formatting+"-"+Pe.formatting[vt]+"-"+Pe.header),Pe.formatting[vt]==="quote"&&(!me.maxBlockquoteDepth||me.maxBlockquoteDepth>=Pe.quote?ye.push(Ce.formatting+"-"+Pe.formatting[vt]+"-"+Pe.quote):ye.push("error"))}if(Pe.taskOpen)return ye.push("meta"),ye.length?ye.join(" "):null;if(Pe.taskClosed)return ye.push("property"),ye.length?ye.join(" "):null;if(Pe.linkHref?ye.push(Ce.linkHref,"url"):(Pe.strong&&ye.push(Ce.strong),Pe.em&&ye.push(Ce.em),Pe.strikethrough&&ye.push(Ce.strikethrough),Pe.emoji&&ye.push(Ce.emoji),Pe.linkText&&ye.push(Ce.linkText),Pe.code&&ye.push(Ce.code),Pe.image&&ye.push(Ce.image),Pe.imageAltText&&ye.push(Ce.imageAltText,"link"),Pe.imageMarker&&ye.push(Ce.imageMarker)),Pe.header&&ye.push(Ce.header,Ce.header+"-"+Pe.header),Pe.quote&&(ye.push(Ce.quote),!me.maxBlockquoteDepth||me.maxBlockquoteDepth>=Pe.quote?ye.push(Ce.quote+"-"+Pe.quote):ye.push(Ce.quote+"-"+me.maxBlockquoteDepth)),Pe.list!==!1){var zt=(Pe.listStack.length-1)%3;zt?zt===1?ye.push(Ce.list2):ye.push(Ce.list3):ye.push(Ce.list1)}return Pe.trailingSpaceNewLine?ye.push("trailing-space-new-line"):Pe.trailingSpace&&ye.push("trailing-space-"+(Pe.trailingSpace%2?"a":"b")),ye.length?ye.join(" "):null}function st(Pe,ye){if(Pe.match(Ge,!0))return yt(ye)}function $e(Pe,ye){var vt=ye.text(Pe,ye);if(typeof vt!="undefined")return vt;if(ye.list)return ye.list=null,yt(ye);if(ye.taskList){var zt=Pe.match(We,!0)[1]===" ";return zt?ye.taskOpen=!0:ye.taskClosed=!0,me.highlightFormatting&&(ye.formatting="task"),ye.taskList=!1,yt(ye)}if(ye.taskOpen=!1,ye.taskClosed=!1,ye.header&&Pe.match(/^#+$/,!0))return me.highlightFormatting&&(ye.formatting="header"),yt(ye);var Ct=Pe.next();if(ye.linkTitle){ye.linkTitle=!1;var De=Ct;Ct==="("&&(De=")"),De=(De+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var mt="^\\s*(?:[^"+De+"\\\\]+|\\\\\\\\|\\\\.)"+De;if(Pe.match(new RegExp(mt),!0))return Ce.linkHref}if(Ct==="`"){var dt=ye.formatting;me.highlightFormatting&&(ye.formatting="code"),Pe.eatWhile("`");var Gt=Pe.current().length;if(ye.code==0&&(!ye.quote||Gt==1))return ye.code=Gt,yt(ye);if(Gt==ye.code){var bt=yt(ye);return ye.code=0,bt}else return ye.formatting=dt,yt(ye)}else if(ye.code)return yt(ye);if(Ct==="\\"&&(Pe.next(),me.highlightFormatting)){var xt=yt(ye),pt=Ce.formatting+"-escape";return xt?xt+" "+pt:pt}if(Ct==="!"&&Pe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ye.imageMarker=!0,ye.image=!0,me.highlightFormatting&&(ye.formatting="image"),yt(ye);if(Ct==="["&&ye.imageMarker&&Pe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ye.imageMarker=!1,ye.imageAltText=!0,me.highlightFormatting&&(ye.formatting="image"),yt(ye);if(Ct==="]"&&ye.imageAltText){me.highlightFormatting&&(ye.formatting="image");var xt=yt(ye);return ye.imageAltText=!1,ye.image=!1,ye.inline=ye.f=Le,xt}if(Ct==="["&&!ye.image)return ye.linkText&&Pe.match(/^.*?\]/)||(ye.linkText=!0,me.highlightFormatting&&(ye.formatting="link")),yt(ye);if(Ct==="]"&&ye.linkText){me.highlightFormatting&&(ye.formatting="link");var xt=yt(ye);return ye.linkText=!1,ye.inline=ye.f=Pe.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:$e,xt}if(Ct==="<"&&Pe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=pe,me.highlightFormatting&&(ye.formatting="link");var xt=yt(ye);return xt?xt+=" ":xt="",xt+Ce.linkInline}if(Ct==="<"&&Pe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=pe,me.highlightFormatting&&(ye.formatting="link");var xt=yt(ye);return xt?xt+=" ":xt="",xt+Ce.linkEmail}if(me.xml&&Ct==="<"&&Pe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ln=Pe.string.indexOf(">",Pe.pos);if(ln!=-1){var Wt=Pe.string.substring(Pe.start,ln);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Wt)&&(ye.md_inside=!0)}return Pe.backUp(1),ye.htmlState=y.startState(we),St(Pe,ye,qe)}if(me.xml&&Ct==="<"&&Pe.match(/^\/\w*?>/))return ye.md_inside=!1,"tag";if(Ct==="*"||Ct==="_"){for(var ue=1,ae=Pe.pos==1?" ":Pe.string.charAt(Pe.pos-2);ue<3&&Pe.eat(Ct);)ue++;var re=Pe.peek()||" ",se=!/\s/.test(re)&&(!Oe.test(re)||/\s/.test(ae)||Oe.test(ae)),ve=!/\s/.test(ae)&&(!Oe.test(ae)||/\s/.test(re)||Oe.test(re)),ie=null,fe=null;if(ue%2&&(!ye.em&&se&&(Ct==="*"||!ve||Oe.test(ae))?ie=!0:ye.em==Ct&&ve&&(Ct==="*"||!se||Oe.test(re))&&(ie=!1)),ue>1&&(!ye.strong&&se&&(Ct==="*"||!ve||Oe.test(ae))?fe=!0:ye.strong==Ct&&ve&&(Ct==="*"||!se||Oe.test(re))&&(fe=!1)),fe!=null||ie!=null){me.highlightFormatting&&(ye.formatting=ie==null?"strong":fe==null?"em":"strong em"),ie===!0&&(ye.em=Ct),fe===!0&&(ye.strong=Ct);var bt=yt(ye);return ie===!1&&(ye.em=!1),fe===!1&&(ye.strong=!1),bt}}else if(Ct===" "&&(Pe.eat("*")||Pe.eat("_"))){if(Pe.peek()===" ")return yt(ye);Pe.backUp(1)}if(me.strikethrough){if(Ct==="~"&&Pe.eatWhile(Ct)){if(ye.strikethrough){me.highlightFormatting&&(ye.formatting="strikethrough");var bt=yt(ye);return ye.strikethrough=!1,bt}else if(Pe.match(/^[^\s]/,!1))return ye.strikethrough=!0,me.highlightFormatting&&(ye.formatting="strikethrough"),yt(ye)}else if(Ct===" "&&Pe.match(/^~~/,!0)){if(Pe.peek()===" ")return yt(ye);Pe.backUp(2)}}if(me.emoji&&Ct===":"&&Pe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ye.emoji=!0,me.highlightFormatting&&(ye.formatting="emoji");var Ve=yt(ye);return ye.emoji=!1,Ve}return Ct===" "&&(Pe.match(/^ +$/,!1)?ye.trailingSpace++:ye.trailingSpace&&(ye.trailingSpaceNewLine=!0)),yt(ye)}function pe(Pe,ye){var vt=Pe.next();if(vt===">"){ye.f=ye.inline=$e,me.highlightFormatting&&(ye.formatting="link");var zt=yt(ye);return zt?zt+=" ":zt="",zt+Ce.linkInline}return Pe.match(/^[^>]+/,!0),Ce.linkInline}function Le(Pe,ye){if(Pe.eatSpace())return null;var vt=Pe.next();return vt==="("||vt==="["?(ye.f=ye.inline=ce(vt==="("?")":"]"),me.highlightFormatting&&(ye.formatting="link-string"),ye.linkHref=!0,yt(ye)):"error"}var xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ce(Pe){return function(ye,vt){var zt=ye.next();if(zt===Pe){vt.f=vt.inline=$e,me.highlightFormatting&&(vt.formatting="link-string");var Ct=yt(vt);return vt.linkHref=!1,Ct}return ye.match(xe[Pe]),vt.linkHref=!0,yt(vt)}}function Et(Pe,ye){return Pe.match(/^([^\]\\]|\\.)*\]:/,!1)?(ye.f=Ye,Pe.next(),me.highlightFormatting&&(ye.formatting="link"),ye.linkText=!0,yt(ye)):nt(Pe,ye,$e)}function Ye(Pe,ye){if(Pe.match(/^\]:/,!0)){ye.f=ye.inline=je,me.highlightFormatting&&(ye.formatting="link");var vt=yt(ye);return ye.linkText=!1,vt}return Pe.match(/^([^\]\\]|\\.)+/,!0),Ce.linkText}function je(Pe,ye){return Pe.eatSpace()?null:(Pe.match(/^[^\s]+/,!0),Pe.peek()===void 0?ye.linkTitle=!0:Pe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ye.f=ye.inline=$e,Ce.linkHref+" url")}var it={startState:function(){return{f:et,prevLine:{stream:null},thisLine:{stream:null},block:et,htmlState:null,indentation:0,inline:$e,text:st,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Pe){return{f:Pe.f,prevLine:Pe.prevLine,thisLine:Pe.thisLine,block:Pe.block,htmlState:Pe.htmlState&&y.copyState(we,Pe.htmlState),indentation:Pe.indentation,localMode:Pe.localMode,localState:Pe.localMode?y.copyState(Pe.localMode,Pe.localState):null,inline:Pe.inline,text:Pe.text,formatting:!1,linkText:Pe.linkText,linkTitle:Pe.linkTitle,linkHref:Pe.linkHref,code:Pe.code,em:Pe.em,strong:Pe.strong,strikethrough:Pe.strikethrough,emoji:Pe.emoji,header:Pe.header,setext:Pe.setext,hr:Pe.hr,taskList:Pe.taskList,list:Pe.list,listStack:Pe.listStack.slice(0),quote:Pe.quote,indentedCode:Pe.indentedCode,trailingSpace:Pe.trailingSpace,trailingSpaceNewLine:Pe.trailingSpaceNewLine,md_inside:Pe.md_inside,fencedEndRE:Pe.fencedEndRE}},token:function(Pe,ye){if(ye.formatting=!1,Pe!=ye.thisLine.stream){if(ye.header=0,ye.hr=!1,Pe.match(/^\s*$/,!0))return _e(ye),null;if(ye.prevLine=ye.thisLine,ye.thisLine={stream:Pe},ye.taskList=!1,ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,!ye.localState&&(ye.f=ye.block,ye.f!=qe)){var vt=Pe.match(/^\s*/,!0)[0].replace(/\t/g,Ie).length;if(ye.indentation=vt,ye.indentationDiff=null,vt>0)return null}}return ye.f(Pe,ye)},innerMode:function(Pe){return Pe.block==qe?{state:Pe.htmlState,mode:we}:Pe.localState?{state:Pe.localState,mode:Pe.localMode}:{state:Pe,mode:it}},indent:function(Pe,ye,vt){return Pe.block==qe&&we.indent?we.indent(Pe.htmlState,ye,vt):Pe.localState&&Pe.localMode.indent?Pe.localMode.indent(Pe.localState,ye,vt):y.Pass},blankLine:_e,getType:yt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return it},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ge=0;ge<y.modeInfo.length;ge++){var me=y.modeInfo[ge];me.mimes&&(me.mime=me.mimes[0])}y.findModeByMIME=function(we){we=we.toLowerCase();for(var Se=0;Se<y.modeInfo.length;Se++){var Ee=y.modeInfo[Se];if(Ee.mime==we)return Ee;if(Ee.mimes){for(var Ce=0;Ce<Ee.mimes.length;Ce++)if(Ee.mimes[Ce]==we)return Ee}}if(/\+xml$/.test(we))return y.findModeByMIME("application/xml");if(/\+json$/.test(we))return y.findModeByMIME("application/json")},y.findModeByExtension=function(we){we=we.toLowerCase();for(var Se=0;Se<y.modeInfo.length;Se++){var Ee=y.modeInfo[Se];if(Ee.ext){for(var Ce=0;Ce<Ee.ext.length;Ce++)if(Ee.ext[Ce]==we)return Ee}}},y.findModeByFileName=function(we){for(var Se=0;Se<y.modeInfo.length;Se++){var Ee=y.modeInfo[Se];if(Ee.file&&Ee.file.test(we))return Ee}var Ce=we.lastIndexOf("."),ke=Ce>-1&&we.substring(Ce+1,we.length);if(ke)return y.findModeByExtension(ke)},y.findModeByName=function(we){we=we.toLowerCase();for(var Se=0;Se<y.modeInfo.length;Se++){var Ee=y.modeInfo[Se];if(Ee.name.toLowerCase()==we)return Ee;if(Ee.alias){for(var Ce=0;Ce<Ee.alias.length;Ce++)if(Ee.alias[Ce].toLowerCase()==we)return Ee}}}})},67549:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){"use strict";y.defineMode("stex",function(ge,me){"use strict";function we(Ge,Ne){Ge.cmdState.push(Ne)}function Se(Ge){return Ge.cmdState.length>0?Ge.cmdState[Ge.cmdState.length-1]:null}function Ee(Ge){var Ne=Ge.cmdState.pop();Ne&&Ne.closeBracket()}function Ce(Ge){for(var Ne=Ge.cmdState,Be=Ne.length-1;Be>=0;Be--){var Oe=Ne[Be];if(Oe.name!="DEFAULT")return Oe}return{styleIdentifier:function(){return null}}}function ke(Ge,Ne,Be){return function(){this.name=Ge,this.bracketNo=0,this.style=Ne,this.styles=Be,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Fe={};Fe.importmodule=ke("importmodule","tag",["string","builtin"]),Fe.documentclass=ke("documentclass","tag",["","atom"]),Fe.usepackage=ke("usepackage","tag",["atom"]),Fe.begin=ke("begin","tag",["atom"]),Fe.end=ke("end","tag",["atom"]),Fe.label=ke("label","tag",["atom"]),Fe.ref=ke("ref","tag",["atom"]),Fe.eqref=ke("eqref","tag",["atom"]),Fe.cite=ke("cite","tag",["atom"]),Fe.bibitem=ke("bibitem","tag",["atom"]),Fe.Bibitem=ke("Bibitem","tag",["atom"]),Fe.RBibitem=ke("RBibitem","tag",["atom"]),Fe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function de(Ge,Ne){Ge.f=Ne}function We(Ge,Ne){var Be;if(Ge.match(/^\\[a-zA-Z@]+/)){var Oe=Ge.current().slice(1);return Be=Fe.hasOwnProperty(Oe)?Fe[Oe]:Fe.DEFAULT,Be=new Be,we(Ne,Be),de(Ne,ft),Be.style}if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/\\]/))return"tag";if(Ge.match("\\["))return de(Ne,function(nt,St){return Te(nt,St,"\\]")}),"keyword";if(Ge.match("\\("))return de(Ne,function(nt,St){return Te(nt,St,"\\)")}),"keyword";if(Ge.match("$$"))return de(Ne,function(nt,St){return Te(nt,St,"$$")}),"keyword";if(Ge.match("$"))return de(Ne,function(nt,St){return Te(nt,St,"$")}),"keyword";var Ie=Ge.next();if(Ie=="%")return Ge.skipToEnd(),"comment";if(Ie=="}"||Ie=="]"){if(Be=Se(Ne),Be)Be.closeBracket(Ie),de(Ne,ft);else return"error";return"bracket"}else return Ie=="{"||Ie=="["?(Be=Fe.DEFAULT,Be=new Be,we(Ne,Be),"bracket"):/\d/.test(Ie)?(Ge.eatWhile(/[\w.%]/),"atom"):(Ge.eatWhile(/[\w\-_]/),Be=Ce(Ne),Be.name=="begin"&&(Be.argument=Ge.current()),Be.styleIdentifier())}function Te(Ge,Ne,Be){if(Ge.eatSpace())return null;if(Be&&Ge.match(Be))return de(Ne,We),"keyword";if(Ge.match(/^\\[a-zA-Z@]+/))return"tag";if(Ge.match(/^[a-zA-Z]+/))return"variable-2";if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/]/)||Ge.match(/^[\^_&]/))return"tag";if(Ge.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ge.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Oe=Ge.next();return Oe=="{"||Oe=="}"||Oe=="["||Oe=="]"||Oe=="("||Oe==")"?"bracket":Oe=="%"?(Ge.skipToEnd(),"comment"):"error"}function ft(Ge,Ne){var Be=Ge.peek(),Oe;return Be=="{"||Be=="["?(Oe=Se(Ne),Oe.openBracket(Be),Ge.eat(Be),de(Ne,We),"bracket"):/[ \t\r]/.test(Be)?(Ge.eat(Be),null):(de(Ne,We),Ee(Ne),We(Ge,Ne))}return{startState:function(){var Ge=me.inMathMode?function(Ne,Be){return Te(Ne,Be)}:We;return{cmdState:[],f:Ge}},copyState:function(Ge){return{cmdState:Ge.cmdState.slice(),f:Ge.f}},token:function(Ge,Ne){return Ne.f(Ge,Ne)},blankLine:function(Ge){Ge.f=We,Ge.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){"use strict";var ge={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(we,Se){var Ee=we.indentUnit,Ce={},ke=Se.htmlMode?ge:me;for(var Fe in ke)Ce[Fe]=ke[Fe];for(var Fe in Se)Ce[Fe]=Se[Fe];var de,We;function Te(pe,Le){function xe(Ye){return Le.tokenize=Ye,Ye(pe,Le)}var ce=pe.next();if(ce=="<")return pe.eat("!")?pe.eat("[")?pe.match("CDATA[")?xe(Ne("atom","]]>")):null:pe.match("--")?xe(Ne("comment","-->")):pe.match("DOCTYPE",!0,!0)?(pe.eatWhile(/[\w\._\-]/),xe(Be(1))):null:pe.eat("?")?(pe.eatWhile(/[\w\._\-]/),Le.tokenize=Ne("meta","?>"),"meta"):(de=pe.eat("/")?"closeTag":"openTag",Le.tokenize=ft,"tag bracket");if(ce=="&"){var Et;return pe.eat("#")?pe.eat("x")?Et=pe.eatWhile(/[a-fA-F\d]/)&&pe.eat(";"):Et=pe.eatWhile(/[\d]/)&&pe.eat(";"):Et=pe.eatWhile(/[\w\.\-:]/)&&pe.eat(";"),Et?"atom":"error"}else return pe.eatWhile(/[^&<]/),null}Te.isInText=!0;function ft(pe,Le){var xe=pe.next();if(xe==">"||xe=="/"&&pe.eat(">"))return Le.tokenize=Te,de=xe==">"?"endTag":"selfcloseTag","tag bracket";if(xe=="=")return de="equals",null;if(xe=="<"){Le.tokenize=Te,Le.state=St,Le.tagName=Le.tagStart=null;var ce=Le.tokenize(pe,Le);return ce?ce+" tag error":"tag error"}else return/[\'\"]/.test(xe)?(Le.tokenize=Ge(xe),Le.stringStartCol=pe.column(),Le.tokenize(pe,Le)):(pe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ge(pe){var Le=function(xe,ce){for(;!xe.eol();)if(xe.next()==pe){ce.tokenize=ft;break}return"string"};return Le.isInAttribute=!0,Le}function Ne(pe,Le){return function(xe,ce){for(;!xe.eol();){if(xe.match(Le)){ce.tokenize=Te;break}xe.next()}return pe}}function Be(pe){return function(Le,xe){for(var ce;(ce=Le.next())!=null;){if(ce=="<")return xe.tokenize=Be(pe+1),xe.tokenize(Le,xe);if(ce==">")if(pe==1){xe.tokenize=Te;break}else return xe.tokenize=Be(pe-1),xe.tokenize(Le,xe)}return"meta"}}function Oe(pe,Le,xe){this.prev=pe.context,this.tagName=Le,this.indent=pe.indented,this.startOfLine=xe,(Ce.doNotIndent.hasOwnProperty(Le)||pe.context&&pe.context.noIndent)&&(this.noIndent=!0)}function Ie(pe){pe.context&&(pe.context=pe.context.prev)}function nt(pe,Le){for(var xe;;){if(!pe.context||(xe=pe.context.tagName,!Ce.contextGrabbers.hasOwnProperty(xe)||!Ce.contextGrabbers[xe].hasOwnProperty(Le)))return;Ie(pe)}}function St(pe,Le,xe){return pe=="openTag"?(xe.tagStart=Le.column(),Ae):pe=="closeTag"?_e:St}function Ae(pe,Le,xe){return pe=="word"?(xe.tagName=Le.current(),We="tag",ut):Ce.allowMissingTagName&&pe=="endTag"?(We="tag bracket",ut(pe,Le,xe)):(We="error",Ae)}function _e(pe,Le,xe){if(pe=="word"){var ce=Le.current();return xe.context&&xe.context.tagName!=ce&&Ce.implicitlyClosed.hasOwnProperty(xe.context.tagName)&&Ie(xe),xe.context&&xe.context.tagName==ce||Ce.matchClosing===!1?(We="tag",et):(We="tag error",qe)}else return Ce.allowMissingTagName&&pe=="endTag"?(We="tag bracket",et(pe,Le,xe)):(We="error",qe)}function et(pe,Le,xe){return pe!="endTag"?(We="error",et):(Ie(xe),St)}function qe(pe,Le,xe){return We="error",et(pe,Le,xe)}function ut(pe,Le,xe){if(pe=="word")return We="attribute",yt;if(pe=="endTag"||pe=="selfcloseTag"){var ce=xe.tagName,Et=xe.tagStart;return xe.tagName=xe.tagStart=null,pe=="selfcloseTag"||Ce.autoSelfClosers.hasOwnProperty(ce)?nt(xe,ce):(nt(xe,ce),xe.context=new Oe(xe,ce,Et==xe.indented)),St}return We="error",ut}function yt(pe,Le,xe){return pe=="equals"?st:(Ce.allowMissing||(We="error"),ut(pe,Le,xe))}function st(pe,Le,xe){return pe=="string"?$e:pe=="word"&&Ce.allowUnquoted?(We="string",ut):(We="error",ut(pe,Le,xe))}function $e(pe,Le,xe){return pe=="string"?$e:ut(pe,Le,xe)}return{startState:function(pe){var Le={tokenize:Te,state:St,indented:pe||0,tagName:null,tagStart:null,context:null};return pe!=null&&(Le.baseIndent=pe),Le},token:function(pe,Le){if(!Le.tagName&&pe.sol()&&(Le.indented=pe.indentation()),pe.eatSpace())return null;de=null;var xe=Le.tokenize(pe,Le);return(xe||de)&&xe!="comment"&&(We=null,Le.state=Le.state(de||xe,pe,Le),We&&(xe=We=="error"?xe+" error":We)),xe},indent:function(pe,Le,xe){var ce=pe.context;if(pe.tokenize.isInAttribute)return pe.tagStart==pe.indented?pe.stringStartCol+1:pe.indented+Ee;if(ce&&ce.noIndent)return y.Pass;if(pe.tokenize!=ft&&pe.tokenize!=Te)return xe?xe.match(/^(\s*)/)[0].length:0;if(pe.tagName)return Ce.multilineTagIndentPastTag!==!1?pe.tagStart+pe.tagName.length+2:pe.tagStart+Ee*(Ce.multilineTagIndentFactor||1);if(Ce.alignCDATA&&/<!\[CDATA\[/.test(Le))return 0;var Et=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(Et&&Et[1])for(;ce;)if(ce.tagName==Et[2]){ce=ce.prev;break}else if(Ce.implicitlyClosed.hasOwnProperty(ce.tagName))ce=ce.prev;else break;else if(Et)for(;ce;){var Ye=Ce.contextGrabbers[ce.tagName];if(Ye&&Ye.hasOwnProperty(Et[2]))ce=ce.prev;else break}for(;ce&&ce.prev&&!ce.startOfLine;)ce=ce.prev;return ce?ce.indent+Ee:pe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ce.htmlMode?"html":"xml",helperType:Ce.htmlMode?"html":"xml",skipAttribute:function(pe){pe.state==st&&(pe.state=ut)},xmlCurrentTag:function(pe){return pe.tagName?{name:pe.tagName,close:pe.type=="closeTag"}:null},xmlCurrentContext:function(pe){for(var Le=[],xe=pe.context;xe;xe=xe.prev)xe.tagName&&Le.push(xe.tagName);return Le.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Rn,qt,E){var y,ge;(function(me,we){Rn.exports=we(me)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof E.g!="undefined"?E.g:this,function(me){"use strict";me=me||{};var we=me.Base64,Se="2.6.4",Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ce=function(xe){for(var ce={},Et=0,Ye=xe.length;Et<Ye;Et++)ce[xe.charAt(Et)]=Et;return ce}(Ee),ke=String.fromCharCode,Fe=function(xe){if(xe.length<2){var ce=xe.charCodeAt(0);return ce<128?xe:ce<2048?ke(192|ce>>>6)+ke(128|ce&63):ke(224|ce>>>12&15)+ke(128|ce>>>6&63)+ke(128|ce&63)}else{var ce=65536+(xe.charCodeAt(0)-55296)*1024+(xe.charCodeAt(1)-56320);return ke(240|ce>>>18&7)+ke(128|ce>>>12&63)+ke(128|ce>>>6&63)+ke(128|ce&63)}},de=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,We=function(xe){return xe.replace(de,Fe)},Te=function(xe){var ce=[0,2,1][xe.length%3],Et=xe.charCodeAt(0)<<16|(xe.length>1?xe.charCodeAt(1):0)<<8|(xe.length>2?xe.charCodeAt(2):0),Ye=[Ee.charAt(Et>>>18),Ee.charAt(Et>>>12&63),ce>=2?"=":Ee.charAt(Et>>>6&63),ce>=1?"=":Ee.charAt(Et&63)];return Ye.join("")},ft=me.btoa&&typeof me.btoa=="function"?function(xe){return me.btoa(xe)}:function(xe){if(xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return xe.replace(/[\s\S]{1,3}/g,Te)},Ge=function(xe){return ft(We(String(xe)))},Ne=function(xe){return xe.replace(/[+\/]/g,function(ce){return ce=="+"?"-":"_"}).replace(/=/g,"")},Be=function(xe,ce){return ce?Ne(Ge(xe)):Ge(xe)},Oe=function(xe){return Be(xe,!0)},Ie;me.Uint8Array&&(Ie=function(xe,ce){for(var Et="",Ye=0,je=xe.length;Ye<je;Ye+=3){var it=xe[Ye],Pe=xe[Ye+1],ye=xe[Ye+2],vt=it<<16|Pe<<8|ye;Et+=Ee.charAt(vt>>>18)+Ee.charAt(vt>>>12&63)+(typeof Pe!="undefined"?Ee.charAt(vt>>>6&63):"=")+(typeof ye!="undefined"?Ee.charAt(vt&63):"=")}return ce?Ne(Et):Et});var nt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,St=function(xe){switch(xe.length){case 4:var ce=(7&xe.charCodeAt(0))<<18|(63&xe.charCodeAt(1))<<12|(63&xe.charCodeAt(2))<<6|63&xe.charCodeAt(3),Et=ce-65536;return ke((Et>>>10)+55296)+ke((Et&1023)+56320);case 3:return ke((15&xe.charCodeAt(0))<<12|(63&xe.charCodeAt(1))<<6|63&xe.charCodeAt(2));default:return ke((31&xe.charCodeAt(0))<<6|63&xe.charCodeAt(1))}},Ae=function(xe){return xe.replace(nt,St)},_e=function(xe){var ce=xe.length,Et=ce%4,Ye=(ce>0?Ce[xe.charAt(0)]<<18:0)|(ce>1?Ce[xe.charAt(1)]<<12:0)|(ce>2?Ce[xe.charAt(2)]<<6:0)|(ce>3?Ce[xe.charAt(3)]:0),je=[ke(Ye>>>16),ke(Ye>>>8&255),ke(Ye&255)];return je.length-=[0,0,2,1][Et],je.join("")},et=me.atob&&typeof me.atob=="function"?function(xe){return me.atob(xe)}:function(xe){return xe.replace(/\S{1,4}/g,_e)},qe=function(xe){return et(String(xe).replace(/[^A-Za-z0-9\+\/]/g,""))},ut=function(xe){return Ae(et(xe))},yt=function(xe){return String(xe).replace(/[-_]/g,function(ce){return ce=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},st=function(xe){return ut(yt(xe))},$e;me.Uint8Array&&($e=function(xe){return Uint8Array.from(qe(yt(xe)),function(ce){return ce.charCodeAt(0)})});var pe=function(){var xe=me.Base64;return me.Base64=we,xe};if(me.Base64={VERSION:Se,atob:qe,btoa:ft,fromBase64:st,toBase64:Be,utob:We,encode:Be,encodeURI:Oe,btou:Ae,decode:st,noConflict:pe,fromUint8Array:Ie,toUint8Array:$e},typeof Object.defineProperty=="function"){var Le=function(xe){return{value:xe,enumerable:!1,writable:!0,configurable:!0}};me.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Le(function(){return st(this)})),Object.defineProperty(String.prototype,"toBase64",Le(function(xe){return Be(this,xe)})),Object.defineProperty(String.prototype,"toBase64URI",Le(function(){return Be(this,!0)}))}}return me.Meteor&&(Base64=me.Base64),Rn.exports?Rn.exports.Base64=me.Base64:(y=[],ge=function(){return me.Base64}.apply(qt,y),ge!==void 0&&(Rn.exports=ge)),{Base64:me.Base64}})},2859:function(Rn,qt,E){"use strict";E.d(qt,{hP:function(){return Wt}});var y=function(ue,ae){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,se){re.__proto__=se}||function(re,se){for(var ve in se)Object.prototype.hasOwnProperty.call(se,ve)&&(re[ve]=se[ve])})(ue,ae)};function ge(ue,ae){function re(){this.constructor=ue}y(ue,ae),ue.prototype=ae===null?Object.create(ae):(re.prototype=ae.prototype,new re)}function me(ue,ae,re,se){return new(re||(re=Promise))(function(ve,ie){function fe(Qe){try{It(se.next(Qe))}catch(Ke){ie(Ke)}}function Ve(Qe){try{It(se.throw(Qe))}catch(Ke){ie(Ke)}}function It(Qe){var Ke;Qe.done?ve(Qe.value):(Ke=Qe.value,Ke instanceof re?Ke:new re(function(gt){gt(Ke)})).then(fe,Ve)}It((se=se.apply(ue,ae||[])).next())})}function we(ue,ae){var re,se,ve,ie,fe={label:0,sent:function(){if(1&ve[0])throw ve[1];return ve[1]},trys:[],ops:[]};return ie={next:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function Ve(It){return function(Qe){return function(Ke){if(re)throw new TypeError("Generator is already executing.");for(;fe;)try{if(re=1,se&&(ve=2&Ke[0]?se.return:Ke[0]?se.throw||((ve=se.return)&&ve.call(se),0):se.next)&&!(ve=ve.call(se,Ke[1])).done)return ve;switch(se=0,ve&&(Ke=[2&Ke[0],ve.value]),Ke[0]){case 0:case 1:ve=Ke;break;case 4:return fe.label++,{value:Ke[1],done:!1};case 5:fe.label++,se=Ke[1],Ke=[0];continue;case 7:Ke=fe.ops.pop(),fe.trys.pop();continue;default:if(ve=fe.trys,!((ve=ve.length>0&&ve[ve.length-1])||Ke[0]!==6&&Ke[0]!==2)){fe=0;continue}if(Ke[0]===3&&(!ve||Ke[1]>ve[0]&&Ke[1]<ve[3])){fe.label=Ke[1];break}if(Ke[0]===6&&fe.label<ve[1]){fe.label=ve[1],ve=Ke;break}if(ve&&fe.label<ve[2]){fe.label=ve[2],fe.ops.push(Ke);break}ve[2]&&fe.ops.pop(),fe.trys.pop();continue}Ke=ae.call(ue,fe)}catch(gt){Ke=[6,gt],se=0}finally{re=ve=0}if(5&Ke[0])throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}([It,Qe])}}}function Se(){for(var ue=0,ae=0,re=arguments.length;ae<re;ae++)ue+=arguments[ae].length;var se=Array(ue),ve=0;for(ae=0;ae<re;ae++)for(var ie=arguments[ae],fe=0,Ve=ie.length;fe<Ve;fe++,ve++)se[ve]=ie[fe];return se}var Ee=function(){function ue(){}return ue.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ue.setAttributes=function(ae,re){for(var se=0,ve=re;se<ve.length;se++){var ie=ve[se],fe=ie[0],Ve=ie[1];ae.setAttribute(fe,Ve)}},ue.createRect=function(ae,re,se){var ve=document.createElementNS("http://www.w3.org/2000/svg","rect");return ve.setAttribute("width",ae.toString()),ve.setAttribute("height",re.toString()),se&&ue.setAttributes(ve,se),ve},ue.createLine=function(ae,re,se,ve,ie){var fe=document.createElementNS("http://www.w3.org/2000/svg","line");return fe.setAttribute("x1",ae.toString()),fe.setAttribute("y1",re.toString()),fe.setAttribute("x2",se.toString()),fe.setAttribute("y2",ve.toString()),ie&&ue.setAttributes(fe,ie),fe},ue.createPolygon=function(ae,re){var se=document.createElementNS("http://www.w3.org/2000/svg","polygon");return se.setAttribute("points",ae),re&&ue.setAttributes(se,re),se},ue.createCircle=function(ae,re){var se=document.createElementNS("http://www.w3.org/2000/svg","circle");return se.setAttribute("cx",(ae/2).toString()),se.setAttribute("cy",(ae/2).toString()),se.setAttribute("r",ae.toString()),re&&ue.setAttributes(se,re),se},ue.createEllipse=function(ae,re,se){var ve=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ve.setAttribute("cx",(ae/2).toString()),ve.setAttribute("cy",(re/2).toString()),ve.setAttribute("rx",(ae/2).toString()),ve.setAttribute("ry",(re/2).toString()),se&&ue.setAttributes(ve,se),ve},ue.createGroup=function(ae){var re=document.createElementNS("http://www.w3.org/2000/svg","g");return ae&&ue.setAttributes(re,ae),re},ue.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ue.createMarker=function(ae,re,se,ve,ie,fe,Ve){var It=document.createElementNS("http://www.w3.org/2000/svg","marker");return ue.setAttributes(It,[["id",ae],["orient",re],["markerWidth",se.toString()],["markerHeight",ve.toString()],["refX",ie.toString()],["refY",fe.toString()]]),It.appendChild(Ve),It},ue.createText=function(ae){var re=document.createElementNS("http://www.w3.org/2000/svg","text");return re.setAttribute("x","0"),re.setAttribute("y","0"),ae&&ue.setAttributes(re,ae),re},ue.createTSpan=function(ae,re){var se=document.createElementNS("http://www.w3.org/2000/svg","tspan");return se.textContent=ae,re&&ue.setAttributes(se,re),se},ue.createImage=function(ae){var re=document.createElementNS("http://www.w3.org/2000/svg","image");return ae&&ue.setAttributes(re,ae),re},ue.createPoint=function(ae,re){var se=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return se.x=ae,se.y=re,se},ue.createPath=function(ae,re){var se=document.createElementNS("http://www.w3.org/2000/svg","path");return se.setAttribute("d",ae),re&&ue.setAttributes(se,re),se},ue}(),Ce=function(){function ue(){}return ue.addKey=function(ae){ue.key=ae},Object.defineProperty(ue,"isLicensed",{get:function(){return!!ue.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ue.key)},enumerable:!1,configurable:!0}),ue}(),ke=function(){function ue(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ue.prototype.rasterize=function(ae,re,se){var ve=this;return new Promise(function(ie){var fe=se!==void 0?se:document.createElement("canvas");ae===null&&(ve.markersOnly=!0,ve.naturalSize=!1);var Ve=document.createElementNS("http://www.w3.org/2000/svg","svg");Ve.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ve.setAttribute("width",re.width.baseVal.valueAsString),Ve.setAttribute("height",re.height.baseVal.valueAsString),Ve.setAttribute("viewBox","0 0 "+re.viewBox.baseVal.width.toString()+" "+re.viewBox.baseVal.height.toString()),Ve.innerHTML=re.innerHTML,ve.naturalSize===!0?(Ve.width.baseVal.value=ae.naturalWidth,Ve.height.baseVal.value=ae.naturalHeight):ve.width!==void 0&&ve.height!==void 0&&(Ve.width.baseVal.value=ve.width,Ve.height.baseVal.value=ve.height),fe.width=Ve.width.baseVal.value,fe.height=Ve.height.baseVal.value;var It=Ve.outerHTML,Qe=fe.getContext("2d");ve.markersOnly!==!0&&Qe.drawImage(ae,0,0,fe.width,fe.height);var Ke=window.URL,gt=new Image(fe.width,fe.height);gt.setAttribute("crossOrigin","anonymous");var wt=new Blob([It],{type:"image/svg+xml"}),Tt=Ke.createObjectURL(wt);gt.onload=function(){Qe.drawImage(gt,0,0),Ke.revokeObjectURL(Tt);var Je=fe.toDataURL(ve.imageType,ve.imageQuality);ie(Je)},gt.src=Tt})},ue}(),Fe=function(){},de=function(){function ue(ae){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ae+"_"}return Object.defineProperty(ue.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ue.prototype.addClass=function(ae){return this.styleSheet===void 0&&this.addStyleSheet(),ae.name=""+this.classNamePrefix+ae.localName,this.classes.push(ae),this.styleSheet.sheet.insertRule("."+ae.name+" {"+ae.style+"}",this.styleSheet.sheet.cssRules.length),ae},ue.prototype.addRule=function(ae){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ae),this.styleSheet.sheet.insertRule(ae.selector+" {"+ae.style+"}",this.styleSheet.sheet.cssRules.length)},ue.prototype.addStyleSheet=function(){var ae;this.styleSheet=document.createElement("style"),((ae=this.styleSheetRoot)!==null&&ae!==void 0?ae:document.head).appendChild(this.styleSheet),this.addRule(new We("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new We("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Te("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Te("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ue.prototype.removeStyleSheet=function(){var ae;this.styleSheet&&(((ae=this.styleSheetRoot)!==null&&ae!==void 0?ae:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ue}(),We=function(ue,ae){this.selector=ue,this.style=ae},Te=function(ue,ae){this.localName=ue,this.style=ae},ft=function(){function ue(ae,re,se,ve,ie){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ae,this.displayMode=re,this.markerItems=se,this.uiStyleSettings=ve,this.styles=ie,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ue.prototype.show=function(ae){var re=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ae,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ie){var fe=document.createElement("div");fe.className=""+re.toolbarButtonStyleClass.name,fe.setAttribute("data-type-name",ie.typeName),fe.innerHTML=ie.icon,fe.addEventListener("click",function(){re.markerToolbarButtonClicked(fe,ie)}),re.buttons.push(fe),re.markerButtons.push(fe)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ve=document.createElement("div");ve.className=this.toolbarBlockStyleClass.name,ve.style.whiteSpace="nowrap",ve.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ve),this.addActionButton(ve,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ve,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ue.prototype.addButtonClickListener=function(ae){this.buttonClickListeners.push(ae)},ue.prototype.removeButtonClickListener=function(ae){this.buttonClickListeners.indexOf(ae)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ae),1)},ue.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ue.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ae=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var re=0;re<this.markerButtons.length;re++)re<ae||re===ae&&this.markerButtons.length-1===ae?this.markerButtonBlock.appendChild(this.markerButtons[re]):(re===ae&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[re]))}},ue.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ue.prototype.resetButtonStyles=function(){var ae=this;this.buttons.forEach(function(re){re.className=re.className.replace(ae.uiStyleSettings.toolbarButtonStyleColorsClassName?ae.uiStyleSettings.toolbarButtonStyleColorsClassName:ae.toolbarButtonStyleColorsClass.name,"").trim(),re.className=re.className.replace(ae.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ae.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ae.toolbarActiveButtonStyleColorsClass.name,"").trim(),re.className+=" "+(ae.uiStyleSettings.toolbarButtonStyleColorsClassName?ae.uiStyleSettings.toolbarButtonStyleColorsClassName:ae.toolbarButtonStyleColorsClass.name)})},ue.prototype.addActionButton=function(ae,re,se){var ve=this,ie=document.createElement("div");switch(ie.className=""+this.toolbarButtonStyleClass.name,ie.innerHTML=re,ie.setAttribute("data-action",se),ie.addEventListener("click",function(){ve.actionToolbarButtonClicked(ie,se)}),se){case"select":ie.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ie.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ie.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ie.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ie.style.fill=this.uiStyleSettings.closeButtonColor}ae.appendChild(ie),this.buttons.push(ie)},ue.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Te("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Te("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Te("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Te("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Te("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ae=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Te("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ae)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ae)+`px;
|
|
|
padding: `+ae+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Te("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Te("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new We("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ue.prototype.markerToolbarButtonClicked=function(ae,re){this.setActiveButton(ae),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(se){return se("marker",re)}),this.markerButtonOverflowBlock.style.display="none"},ue.prototype.actionToolbarButtonClicked=function(ae,re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(se){return se("action",re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ue.prototype.setActiveButton=function(ae){this.resetButtonStyles(),ae.className=ae.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ae.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ue.prototype.setActiveMarkerButton=function(ae){var re=this.markerButtons.find(function(se){return se.getAttribute("data-type-name")===ae});re&&this.setActiveButton(re)},ue.prototype.setCurrentMarker=function(ae){var re=this;this.currentMarker=ae,this.buttons.filter(function(se){return/delete|notes/.test(se.getAttribute("data-action"))}).forEach(function(se){re.currentMarker===void 0?(se.style.fillOpacity="0.4",se.style.pointerEvents="none"):(se.style.fillOpacity="1",se.style.pointerEvents="all")})},ue}(),Ge=function(){function ue(ae,re,se,ve){this.panels=[],this.panelButtons=[],this.markerjsContainer=ae,this.displayMode=re,this.uiStyleSettings=se,this.styles=ve,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ue.prototype.addStyles=function(){var ae;this.toolboxStyleClass=this.styles.addClass(new Te("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Te("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Te("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Te("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Te("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Te("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ae=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ae!==void 0?ae:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Te("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*re)+`px;
|
|
|
padding: `+re+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Te("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Te("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new We("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ue.prototype.show=function(ae){var re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ae,this.uiContainer.className=this.toolboxStyleClass.name+" "+((re=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ue.prototype.setPanelButtons=function(ae){var re,se,ve=this;this.panels=ae,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((re=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((se=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ie){var fe;ie.uiStyleSettings=ve.uiStyleSettings;var Ve=document.createElement("div");Ve.className=ve.toolboxButtonStyleClass.name+" "+((fe=ve.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&fe!==void 0?fe:ve.toolboxButtonStyleColorsClass.name),Ve.innerHTML=ie.icon,Ve.title=ie.title,Ve.addEventListener("click",function(){ve.panelButtonClick(ie)}),ve.panelButtons.push(Ve),ve.buttonRow.appendChild(Ve)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ue.prototype.panelButtonClick=function(ae){var re=this,se=-1;if(ae!==this.activePanel){se=this.panels.indexOf(ae),this.panelRow.innerHTML="";var ve=ae.getUi();ve.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ve),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ae}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){re.displayMode==="inline"?re.panelRow.style.display="none":re.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ie,fe){var Ve,It;ie.className=re.toolboxButtonStyleClass.name+" "+(fe===se?""+((Ve=re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:re.toolboxActiveButtonStyleColorsClass.name):""+((It=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&It!==void 0?It:re.toolboxButtonStyleColorsClass.name))})},ue}(),Ne=function(ue,ae){this.title=ue,this.icon=ae},Be=function(ue){function ae(re,se,ve,ie){var fe=ue.call(this,re,ie||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return fe.colors=[],fe.addTransparent=!1,fe.colorBoxes=[],fe.colors=se,fe.currentColor=ve,fe.setCurrentColor=fe.setCurrentColor.bind(fe),fe.getColorBox=fe.getColorBox.bind(fe),fe}return ge(ae,ue),ae.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.overflow="hidden",se.style.whiteSpace="nowrap",this.colors.forEach(function(ve){var ie=re.getColorBox(ve);se.appendChild(ie),re.colorBoxes.push(ie)}),se},ae.prototype.getColorBox=function(re){var se=this,ve=this.uiStyleSettings.toolbarHeight/4,ie=this.uiStyleSettings.toolbarHeight-ve,fe=document.createElement("div");fe.style.display="inline-block",fe.style.boxSizing="content-box",fe.style.width=ie-2+"px",fe.style.height=ie-2+"px",fe.style.padding="1px",fe.style.marginRight="2px",fe.style.marginBottom="2px",fe.style.borderWidth="2px",fe.style.borderStyle="solid",fe.style.borderRadius=(ie+2)/2+"px",fe.style.borderColor=re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",fe.addEventListener("click",function(){se.setCurrentColor(re,fe)});var Ve=document.createElement("div");return Ve.style.display="inline-block",Ve.style.width=ie-2+"px",Ve.style.height=ie-2+"px",Ve.style.backgroundColor=re,Ve.style.borderRadius=ie/2+"px",re==="transparent"&&(Ve.style.fill=this.uiStyleSettings.toolboxAccentColor,Ve.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),fe.appendChild(Ve),fe},ae.prototype.setCurrentColor=function(re,se){var ve=this;this.currentColor=re,this.colorBoxes.forEach(function(ie){ie.style.borderColor=ie===se?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(re)},ae}(Ne),Oe=function(){function ue(ae,re,se){this._state="new",this._isSelected=!1,this._container=ae,this._overlayContainer=re,this.globalSettings=se,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ue.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ae){return!1},Object.defineProperty(ue.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ue.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ue.prototype.pointerDown=function(ae,re){},ue.prototype.dblClick=function(ae,re){},ue.prototype.manipulate=function(ae){},ue.prototype.pointerUp=function(ae){this.stateChanged()},ue.prototype.dispose=function(){},ue.prototype.addMarkerVisualToContainer=function(ae){this.container.childNodes.length>0?this.container.insertBefore(ae,this.container.childNodes[0]):this.container.appendChild(ae)},ue.prototype.getState=function(){return{typeName:ue.typeName,state:this.state,notes:this.notes}},ue.prototype.restoreState=function(ae){this._state=ae.state,this.notes=ae.notes},ue.prototype.scale=function(ae,re){},ue.prototype.colorChanged=function(ae){this.onColorChanged&&this.onColorChanged(ae),this.stateChanged()},ue.prototype.fillColorChanged=function(ae){this.onFillColorChanged&&this.onFillColorChanged(ae),this.stateChanged()},ue.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ae=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ae.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ae)&&this.onStateChanged(this)}},ue.typeName="MarkerBase",ue}(),Ie=function(){function ue(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ue.prototype.findGripByVisual=function(ae){return this.topLeft.ownsTarget(ae)?this.topLeft:this.topCenter.ownsTarget(ae)?this.topCenter:this.topRight.ownsTarget(ae)?this.topRight:this.centerLeft.ownsTarget(ae)?this.centerLeft:this.centerRight.ownsTarget(ae)?this.centerRight:this.bottomLeft.ownsTarget(ae)?this.bottomLeft:this.bottomCenter.ownsTarget(ae)?this.bottomCenter:this.bottomRight.ownsTarget(ae)?this.bottomRight:void 0},ue}(),nt=function(){function ue(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ue.prototype.ownsTarget=function(ae){return ae===this.visual||ae===this.visual.childNodes[0]||ae===this.visual.childNodes[1]},ue}(),St=function(){function ue(){}return ue.toITransformMatrix=function(ae){return{a:ae.a,b:ae.b,c:ae.c,d:ae.d,e:ae.e,f:ae.f}},ue.toSVGMatrix=function(ae,re){return ae.a=re.a,ae.b=re.b,ae.c=re.c,ae.d=re.d,ae.e=re.e,ae.f=re.f,ae},ue}(),Ae=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.left=0,ie.top=0,ie.width=0,ie.height=0,ie.defaultSize={x:50,y:20},ie.offsetX=0,ie.offsetY=0,ie.rotationAngle=0,ie.CB_DISTANCE=10,ie._suppressMarkerCreateEvent=!1,ie.container.transform.baseVal.appendItem(Ee.createTransform()),ie.setupControlBox(),ie}return ge(ae,ue),Object.defineProperty(ae.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"visual",{get:function(){return this._visual},set:function(re){this._visual=re;var se=Ee.createTransform();this._visual.transform.baseVal.appendItem(se)},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(re){return!!ue.prototype.ownsTarget.call(this,re)||!!(this.controlGrips.findGripByVisual(re)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(re))},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.left=re.x,this.top=re.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ve=this.unrotatePoint(re);if(this.manipulationStartX=ve.x,this.manipulationStartY=ve.y,this.offsetX=ve.x-this.left,this.offsetY=ve.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(se),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(se)){this.activeGrip=this.rotatorGrip;var ie=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ie.x-this.width/2,this.top=ie.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var fe=this.container.transform.baseVal.getItem(0);fe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(fe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ae.prototype.pointerUp=function(re){var se=this.state;ue.prototype.pointerUp.call(this,re),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(re),this._state="select",se==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ae.prototype.moveVisual=function(re){this.visual.style.transform="translate("+re.x+"px, "+re.y+"px)"},ae.prototype.manipulate=function(re){var se=this.unrotatePoint(re);this.state==="creating"?this.resize(re):this.state==="move"?(this.left=this.manipulationStartLeft+(se.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(se.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(se):this.state==="rotate"&&this.rotate(re)},ae.prototype.resize=function(re){var se=this.manipulationStartLeft,ve=this.manipulationStartWidth,ie=this.manipulationStartTop,fe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:se=this.manipulationStartLeft+re.x-this.manipulationStartX,ve=this.manipulationStartWidth+this.manipulationStartLeft-se;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ve=this.manipulationStartWidth+re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ie=this.manipulationStartTop+re.y-this.manipulationStartY,fe=this.manipulationStartHeight+this.manipulationStartTop-ie;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:fe=this.manipulationStartHeight+re.y-this.manipulationStartY}ve>=0?(this.left=se,this.width=ve):(this.left=se+ve,this.width=-ve),fe>=0?(this.top=ie,this.height=fe):(this.top=ie+fe,this.height=-fe),this.setSize()},ae.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ae.prototype.rotate=function(re){if(Math.abs(re.x-this.centerX)>.1){var se=Math.sign(re.x-this.centerX);this.rotationAngle=180*Math.atan((re.y-this.centerY)/(re.x-this.centerX))/Math.PI+90*se,this.applyRotation()}},ae.prototype.applyRotation=function(){var re=this.container.transform.baseVal.getItem(0);re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(re,0)},ae.prototype.rotatePoint=function(re){if(this.rotationAngle===0)return re;var se=this.container.getCTM(),ve=Ee.createPoint(re.x,re.y);return{x:(ve=ve.matrixTransform(se)).x,y:ve.y}},ae.prototype.unrotatePoint=function(re){if(this.rotationAngle===0)return re;var se=this.container.getCTM();se=se.inverse();var ve=Ee.createPoint(re.x,re.y);return{x:(ve=ve.matrixTransform(se)).x,y:ve.y}},ae.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ae.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},ae.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var re=Ee.createTransform();re.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(re),this.container.appendChild(this.controlBox),this.controlRect=Ee.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Ee.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ie,this.addControlGrips(),this.controlBox.style.display="none"},ae.prototype.adjustControlBox=function(){var re=this.controlBox.transform.baseVal.getItem(0);re.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(re,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ae.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ae.prototype.createGrip=function(){var re=new nt;return re.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(re.visual),re},ae.prototype.positionGrips=function(){var re=this.controlGrips.topLeft.GRIP_SIZE,se=-re/2,ve=se,ie=(this.width+this.CB_DISTANCE)/2-re/2,fe=(this.height+this.CB_DISTANCE)/2-re/2,Ve=this.height+this.CB_DISTANCE-re/2,It=this.width+this.CB_DISTANCE-re/2;this.positionGrip(this.controlGrips.topLeft.visual,se,ve),this.positionGrip(this.controlGrips.topCenter.visual,ie,ve),this.positionGrip(this.controlGrips.topRight.visual,It,ve),this.positionGrip(this.controlGrips.centerLeft.visual,se,fe),this.positionGrip(this.controlGrips.centerRight.visual,It,fe),this.positionGrip(this.controlGrips.bottomLeft.visual,se,Ve),this.positionGrip(this.controlGrips.bottomCenter.visual,ie,Ve),this.positionGrip(this.controlGrips.bottomRight.visual,It,Ve),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ie,ve-3*this.CB_DISTANCE)},ae.prototype.positionGrip=function(re,se,ve){var ie=re.transform.baseVal.getItem(0);ie.setTranslate(se,ve),re.transform.baseVal.replaceItem(ie,0)},ae.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ae.prototype.showControlBox=function(){this.controlBox.style.display=""},ae.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:St.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:St.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ue.prototype.getState.call(this))},ae.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var se=re;this.left=se.left,this.top=se.top,this.width=se.width,this.height=se.height,this.rotationAngle=se.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(St.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,se.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(St.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,se.containerTransformMatrix))},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se);var ve=this.rotatePoint({x:this.left,y:this.top}),ie=this.unrotatePoint({x:ve.x*re,y:ve.y*se});this.left=ie.x,this.top=ie.y,this.width=this.width*re,this.height=this.height*se,this.adjustControlBox()},ae}(Oe),_e=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.fillColor="transparent",ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.opacity=1,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setFillColor=ie.setFillColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.createVisual=ie.createVisual.bind(ie),ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual)},ae.prototype.createVisual=function(){this.visual=Ee.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ae.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re)},ae.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ae.prototype.setSize=function(){ue.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ae.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize()},ae.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ae.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ae.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ae.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ae.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ue.prototype.getState.call(this))},ae.prototype.restoreState=function(re){var se=re;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.opacity=se.opacity,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se),this.setSize()},ae.title="Rectangle marker",ae}(Ae),et=function(ue){function ae(re,se,ve,ie){var fe=ue.call(this,re,ie||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return fe.widths=[],fe.widthBoxes=[],fe.widths=se,fe.currentWidth=ve,fe.setCurrentWidth=fe.setCurrentWidth.bind(fe),fe}return ge(ae,ue),ae.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",this.widths.forEach(function(ve){var ie=document.createElement("div");ie.style.display="flex",ie.style.flexGrow="2",ie.style.alignItems="center",ie.style.justifyContent="space-between",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.borderColor=ve===re.currentWidth?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentWidth(ve,ie)}),se.appendChild(ie);var fe=document.createElement("div");fe.innerText=ve.toString(),fe.style.marginRight="5px",ie.appendChild(fe);var Ve=document.createElement("div");Ve.style.minHeight="20px",Ve.style.flexGrow="2",Ve.style.display="flex",Ve.style.alignItems="center";var It=document.createElement("hr");It.style.minWidth="20px",It.style.border="0px",It.style.borderTop=ve+"px solid "+re.uiStyleSettings.toolboxColor,It.style.flexGrow="2",Ve.appendChild(It),ie.appendChild(Ve),re.widthBoxes.push(ie)}),se},ae.prototype.setCurrentWidth=function(re,se){var ve=this;this.currentWidth=re,this.widthBoxes.forEach(function(ie){ie.style.borderColor=ie===se?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ae}(Ne),qe=function(ue){function ae(re,se,ve,ie){var fe=ue.call(this,re,ie||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return fe.styles=[],fe.styleBoxes=[],fe.styles=se,fe.currentStyle=ve,fe.setCurrentStyle=fe.setCurrentStyle.bind(fe),fe}return ge(ae,ue),ae.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",this.styles.forEach(function(ve){var ie=document.createElement("div");ie.style.display="flex",ie.style.alignItems="center",ie.style.justifyContent="space-between",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.overflow="hidden",ie.style.maxWidth=100/re.styles.length-5+"%",ie.style.borderColor=ve===re.currentStyle?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentStyle(ve,ie)}),se.appendChild(ie);var fe=document.createElement("div");fe.style.minHeight="20px",fe.style.flexGrow="2",fe.style.overflow="hidden";var Ve=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ve!==""?'stroke-dasharray="'+ve+'"':"")+` />
|
|
|
</svg>`;fe.innerHTML=Ve,ie.appendChild(fe),re.styleBoxes.push(ie)}),se},ae.prototype.setCurrentStyle=function(re,se){var ve=this;this.currentStyle=re,this.styleBoxes.forEach(function(ie){ie.style.borderColor=ie===se?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ae}(Ne),ut=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.strokeColor=ve.defaultColor,ie.strokeWidth=ve.defaultStrokeWidth,ie.strokeDasharray=ve.defaultStrokeDasharray,ie.strokePanel=new Be("Line color",ve.defaultColorSet,ve.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new et("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new qe("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie}return ge(ae,ue),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ae.typeName,re},ae.typeName="FrameMarker",ae.title="Frame marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ae}(_e),yt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},st=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.x1=0,ie.y1=0,ie.x2=0,ie.y2=0,ie.defaultLength=50,ie.manipulationStartX=0,ie.manipulationStartY=0,ie.manipulationStartX1=0,ie.manipulationStartY1=0,ie.manipulationStartX2=0,ie.manipulationStartY2=0,ie.setupControlBox(),ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!!ue.prototype.ownsTarget.call(this,re)||!(!this.grip1.ownsTarget(re)&&!this.grip2.ownsTarget(re))},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.state==="new"&&(this.x1=re.x,this.y1=re.y,this.x2=re.x,this.y2=re.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(se)?this.activeGrip=this.grip1:this.grip2.ownsTarget(se)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ae.prototype.pointerUp=function(re){var se=this.state;ue.prototype.pointerUp.call(this,re),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(re),this._state="select",se==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ae.prototype.adjustVisual=function(){},ae.prototype.manipulate=function(re){this.state==="creating"?this.resize(re):this.state==="move"?(this.x1=this.manipulationStartX1+re.x-this.manipulationStartX,this.y1=this.manipulationStartY1+re.y-this.manipulationStartY,this.x2=this.manipulationStartX2+re.x-this.manipulationStartX,this.y2=this.manipulationStartY2+re.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(re)},ae.prototype.resize=function(re){switch(this.activeGrip){case this.grip1:this.x1=re.x,this.y1=re.y;break;case this.grip2:case void 0:this.x2=re.x,this.y2=re.y}this.adjustVisual(),this.adjustControlBox()},ae.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ae.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},ae.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ae.prototype.adjustControlBox=function(){this.positionGrips()},ae.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ae.prototype.createGrip=function(){var re=new nt;return re.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(re.visual),re},ae.prototype.positionGrips=function(){var re=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-re/2,this.y1-re/2),this.positionGrip(this.grip2.visual,this.x2-re/2,this.y2-re/2)},ae.prototype.positionGrip=function(re,se,ve){var ie=re.transform.baseVal.getItem(0);ie.setTranslate(se,ve),re.transform.baseVal.replaceItem(ie,0)},ae.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ue.prototype.getState.call(this))},ae.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var se=re;this.x1=se.x1,this.y1=se.y1,this.x2=se.x2,this.y2=se.y2},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se),this.x1=this.x1*re,this.y1=this.y1*se,this.x2=this.x2*re,this.y2=this.y2*se,this.adjustVisual(),this.adjustControlBox()},ae}(Oe),$e=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.strokeColor=ve.defaultColor,ie.strokeWidth=ve.defaultStrokeWidth,ie.strokeDasharray=ve.defaultStrokeDasharray,ie.strokePanel=new Be("Line color",ve.defaultColorSet,ve.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new et("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new qe("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorLine&&re!==this.visibleLine)},ae.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ae.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ae.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},ae.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},ae.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ue.prototype.getState.call(this));return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var se=re;this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.createVisual(),this.adjustVisual()},ae.typeName="LineMarker",ae.title="Line marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ae}(st),pe=function(ue){function ae(re,se,ve,ie){var fe=ue.call(this,re,ie||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return fe.fonts=[],fe.fontBoxes=[],fe.fonts=se,fe.currentFont=ve,fe.setCurrentFont=fe.setCurrentFont.bind(fe),fe}return ge(ae,ue),ae.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.overflow="hidden",se.style.flexGrow="2",this.fonts.forEach(function(ve){var ie=document.createElement("div");ie.style.display="inline-block",ie.style.alignItems="center",ie.style.justifyContent="space-between",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.overflow="hidden",ie.style.maxWidth=100/re.fonts.length-5+"%",ie.style.borderColor=ve===re.currentFont?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentFont(ve,ie)}),se.appendChild(ie);var fe=document.createElement("div");fe.style.display="flex",fe.style.minHeight="20px",fe.style.flexGrow="2",fe.style.fontFamily=ve,fe.style.overflow="hidden";var Ve=document.createElement("div");Ve.style.whiteSpace="nowrap",Ve.style.overflow="hidden",Ve.style.textOverflow="ellipsis",Ve.innerHTML="The quick brown fox jumps over the lazy dog",fe.appendChild(Ve),ie.appendChild(fe),re.fontBoxes.push(ie)}),se},ae.prototype.setCurrentFont=function(re,se){var ve=this;this.currentFont=re,this.fontBoxes.forEach(function(ie){ie.style.borderColor=ie===se?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ae}(Ne),Le=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.color="transparent",ie.padding=5,ie.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ie.text=ie.DEFAULT_TEXT,ie.isMoved=!1,ie.color=ve.defaultColor,ie.fontFamily=ve.defaultFontFamily,ie.defaultSize={x:100,y:30},ie.setColor=ie.setColor.bind(ie),ie.setFont=ie.setFont.bind(ie),ie.renderText=ie.renderText.bind(ie),ie.sizeText=ie.sizeText.bind(ie),ie.textEditDivClicked=ie.textEditDivClicked.bind(ie),ie.showTextEditor=ie.showTextEditor.bind(ie),ie.setSize=ie.setSize.bind(ie),ie.positionTextEditor=ie.positionTextEditor.bind(ie),ie.colorPanel=new Be("Color",ve.defaultColorSet,ve.defaultColor),ie.colorPanel.onColorChanged=ie.setColor,ie.fontFamilyPanel=new pe("Font",ve.defaultFontFamilies,ve.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){if(ue.prototype.ownsTarget.call(this,re)||re===this.visual||re===this.textElement||re===this.bgRectangle)return!0;var se=!1;return this.textElement.childNodes.forEach(function(ve){ve===re&&(se=!0)}),se},ae.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ae.prototype.renderText=function(){var re=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(se){re.textElement.appendChild(Ee.createTSpan(se.trim()===""?" ":se.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ae.prototype.getTextScale=function(){var re=this.textElement.getBBox(),se=1;if(re.width>0&&re.height>0){var ve=(1*this.width-this.width*this.padding*2/100)/re.width,ie=(1*this.height-this.height*this.padding*2/100)/re.height;se=Math.min(ve,ie)}return se},ae.prototype.getTextPosition=function(re){var se=this.textElement.getBBox(),ve=0,ie=0;return se.width>0&&se.height>0&&(ve=(this.width-se.width*re)/2,ie=this.height/2-se.height*re/2),{x:ve,y:ie}},ae.prototype.sizeText=function(){var re=this.textElement.getBBox(),se=this.getTextScale(),ve=this.getTextPosition(se);ve.y-=re.y*se,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ve.x+"px, "+ve.y+"px) scale("+se+", "+se+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ve.x,ve.y),this.textElement.transform.baseVal.getItem(1).setScale(se,se))},ae.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},ae.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.isMoved=!0,this.setSize(),this.sizeText()},ae.prototype.setSize=function(){ue.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ae.prototype.pointerUp=function(re){var se=this.state;se==="creating"&&(this._suppressMarkerCreateEvent=!0),ue.prototype.pointerUp.call(this,re),this.setSize(),(se==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ae.prototype.showTextEditor=function(){var re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(se){se.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var se=Number.parseFloat(re.textEditor.style.fontSize);re.textEditor.clientWidth>=Number.parseInt(re.textEditor.style.maxWidth)&&se>.9;)se-=.1,re.textEditor.style.fontSize=Math.max(se,.9)+"em"}),this.textEditor.addEventListener("keyup",function(se){se.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(se){if(se.clipboardData){var ve=se.clipboardData.getData("text"),ie=window.getSelection();if(!ie.rangeCount)return!1;ie.deleteFromDocument(),ie.getRangeAt(0).insertNode(document.createTextNode(ve)),se.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){re.textEditDivClicked(re.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ae.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var re=this.getTextScale(),se=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ve=this.textElement.getBBox(),ie={x:ve.width*re,y:ve.height*re};se.x-=ie.x/2,se.y-=ie.y/2,this.textEditor.style.top=se.y+"px",this.textEditor.style.left=se.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-se.x+"px",this.textEditor.style.fontSize=Math.max(16*re,12)+"px",this.textElement.style.display="none"}},ae.prototype.textEditDivClicked=function(re){this.text=re.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ae.prototype.select=function(){ue.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ae.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ue.prototype.deselect.call(this)},ae.prototype.dblClick=function(re,se){ue.prototype.dblClick.call(this,re,se),this.showTextEditor()},ae.prototype.setColor=function(re){this.textElement&&Ee.setAttributes(this.textElement,[["fill",re]]),this.color=re,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(re)},ae.prototype.setFont=function(re){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",re]]),this.fontFamily=re,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ae.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ae.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ue.prototype.getState.call(this));return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){var se=re;this.color=se.color,this.fontFamily=se.fontFamily,this.padding=se.padding,this.text=se.text,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se),this.setSize(),this.sizeText(),this.positionTextEditor()},ae.typeName="TextMarker",ae.title="Text marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ae}(Ae),xe=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.color="transparent",ie.lineWidth=3,ie.drawing=!1,ie.pixelRatio=1,ie.color=ve.defaultColor,ie.lineWidth=ve.defaultStrokeWidth,ie.pixelRatio=ve.freehandPixelRatio,ie.setColor=ie.setColor.bind(ie),ie.addCanvas=ie.addCanvas.bind(ie),ie.finishCreation=ie.finishCreation.bind(ie),ie.setLineWidth=ie.setLineWidth.bind(ie),ie.colorPanel=new Be("Color",ve.defaultColorSet,ve.defaultColor),ie.colorPanel.onColorChanged=ie.setColor,ie.lineWidthPanel=new et("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),ie.lineWidthPanel.onWidthChanged=ie.setLineWidth,ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.drawingImage)},ae.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var re=Ee.createTransform();this.visual.transform.baseVal.appendItem(re),this.addMarkerVisualToContainer(this.visual)},ae.prototype.pointerDown=function(re,se){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(re.x,re.y),this.drawing=!0):ue.prototype.pointerDown.call(this,re,se)},ae.prototype.manipulate=function(re){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(re.x,re.y),this.canvasContext.stroke()):ue.prototype.manipulate.call(this,re)},ae.prototype.resize=function(re){ue.prototype.resize.call(this,re),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ae.prototype.pointerUp=function(re){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ue.prototype.pointerUp.call(this,re)},ae.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ae.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.select.call(this)},ae.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.deselect.call(this)},ae.prototype.finishCreation=function(){for(var re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),se=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ve=se[0],ie=se[1],fe=se[2],Ve=se[3],It=!1,Qe=0;Qe<this.canvasElement.height;Qe++)for(var Ke=0;Ke<this.canvasElement.width;Ke++)re.data[Qe*this.canvasElement.width*4+4*Ke+3]>0&&(It=!0,Qe<ie&&(ie=Qe),Ke<ve&&(ve=Ke),Qe>Ve&&(Ve=Qe),Ke>fe&&(fe=Ke));if(It){this.left=ve/this.pixelRatio,this.top=ie/this.pixelRatio,this.width=(fe-ve)/this.pixelRatio,this.height=(Ve-ie)/this.pixelRatio;var gt=document.createElement("canvas");gt.width=fe-ve,gt.height=Ve-ie,gt.getContext("2d").putImageData(this.canvasContext.getImageData(ve,ie,fe-ve,Ve-ie),0,0),this.drawingImgUrl=gt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ae.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ae.prototype.setColor=function(re){this.color=re,this.colorChanged(re)},ae.prototype.setLineWidth=function(re){this.lineWidth=re},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=Object.assign({drawingImgUrl:this.drawingImgUrl},ue.prototype.getState.call(this));return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){this.createVisual(),ue.prototype.restoreState.call(this,re),this.drawingImgUrl=re.drawingImgUrl,this.setDrawingImage()},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se),this.setDrawingImage()},ae.typeName="FreehandMarker",ae.title="Freehand marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ae}(Ae),ce=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,ve||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ie.typeBoxes=[],ie.currentType=se,ie.setCurrentType=ie.setCurrentType.bind(ie),ie}return ge(ae,ue),ae.prototype.getUi=function(){var re=this,se=document.createElement("div");se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2";for(var ve=function(Ve){var It="both";switch(Ve){case 0:It="both";break;case 1:It="start";break;case 2:It="end";break;case 3:It="none"}var Qe=document.createElement("div");if(Qe.style.display="flex",Qe.style.flexGrow="2",Qe.style.alignItems="center",Qe.style.justifyContent="space-between",Qe.style.padding="5px",Qe.style.borderWidth="2px",Qe.style.borderStyle="solid",Qe.style.borderColor=It===ie.currentType?ie.uiStyleSettings.toolboxAccentColor:"transparent",Qe.addEventListener("click",function(){re.setCurrentType(It,Qe)}),se.appendChild(Qe),It==="both"||It==="start"){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(ie.uiStyleSettings!==void 0?ie.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ke.style.marginLeft="5px",Qe.appendChild(Ke)}var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.style.flexGrow="2";var wt=document.createElement("hr");if(wt.style.minWidth="20px",wt.style.border="0px",wt.style.borderTop="3px solid "+(ie.uiStyleSettings!==void 0?ie.uiStyleSettings.toolboxColor:"#eeeeee"),wt.style.flexGrow="2",gt.appendChild(wt),Qe.appendChild(gt),It==="both"||It==="end"){var Tt=document.createElement("div");Tt.style.display="flex",Tt.style.alignItems="center",Tt.style.minHeight="20px",Tt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(ie.uiStyleSettings!==void 0?ie.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Tt.style.marginRight="5px",Qe.appendChild(Tt)}ie.typeBoxes.push(Qe)},ie=this,fe=0;fe<4;fe++)ve(fe);return se},ae.prototype.setCurrentType=function(re,se){var ve=this;this.currentType=re,this.typeBoxes.forEach(function(ie){ie.style.borderColor=ie===se?ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ae}(Ne),Et=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.arrowType="end",ie.arrowBaseHeight=10,ie.arrowBaseWidth=10,ie.getArrowPoints=ie.getArrowPoints.bind(ie),ie.setArrowType=ie.setArrowType.bind(ie),ie.arrowTypePanel=new ce("Arrow type","end"),ie.arrowTypePanel.onArrowTypeChanged=ie.setArrowType,ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.arrow1&&re!==this.arrow2)},ae.prototype.getArrowPoints=function(re,se){var ve=this.arrowBaseWidth+2*this.strokeWidth,ie=this.arrowBaseHeight+2*this.strokeWidth;return re-ve/2+","+(se+ie/2)+" "+re+","+(se-ie/2)+" "+(re+ve/2)+","+(se+ie/2)},ae.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.state==="creating"&&this.createTips()},ae.prototype.adjustVisual=function(){if(ue.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var re=0;Math.abs(this.x1-this.x2)>.1&&(re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var se=this.arrow1.transform.baseVal.getItem(0);se.setRotate(re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(se,0);var ve=this.arrow2.transform.baseVal.getItem(0);ve.setRotate(re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ve,0)}},ae.prototype.setArrowType=function(re){this.arrowType=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=Object.assign({arrowType:this.arrowType},ue.prototype.getState.call(this));return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var se=re;this.arrowType=se.arrowType,this.createTips(),this.adjustVisual()},ae.typeName="ArrowMarker",ae.title="Arrow marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ae}($e),Ye=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.fillColor=ve.defaultFillColor,ie.strokeWidth=0,ie.fillPanel=new Be("Color",ve.defaultColorSet,ve.defaultFillColor),ie.fillPanel.onColorChanged=ie.setFillColor,ie}return ge(ae,ue),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ae.typeName,re},ae.typeName="CoverMarker",ae.title="Cover marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ae}(_e),je=function(ue){function ae(re,se,ve,ie){var fe=ue.call(this,re,ie||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return fe.opacities=[],fe.opacityBoxes=[],fe.opacities=se,fe.currentOpacity=ve,fe.setCurrentOpacity=fe.setCurrentOpacity.bind(fe),fe}return ge(ae,ue),ae.prototype.getUi=function(){var re=this,se=document.createElement("div");return se.style.display="flex",se.style.overflow="hidden",se.style.flexGrow="2",se.style.justifyContent="space-between",this.opacities.forEach(function(ve){var ie=document.createElement("div");ie.style.display="flex",ie.style.alignItems="center",ie.style.justifyContent="center",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.borderColor=ve===re.currentOpacity?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentOpacity(ve,ie)}),se.appendChild(ie);var fe=document.createElement("div");fe.innerText=100*ve+"%",ie.appendChild(fe),re.opacityBoxes.push(ie)}),se},ae.prototype.setCurrentOpacity=function(re,se){var ve=this;this.currentOpacity=re,this.opacityBoxes.forEach(function(ie){ie.style.borderColor=ie===se?ve.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ae}(Ne),it=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.setOpacity=ie.setOpacity.bind(ie),ie.fillColor=ve.defaultHighlightColor,ie.strokeWidth=0,ie.opacity=ve.defaultHighlightOpacity,ie.fillPanel=new Be("Color",ve.defaultColorSet,ie.fillColor),ie.fillPanel.onColorChanged=ie.setFillColor,ie.opacityPanel=new je("Opacity",ve.defaultOpacitySteps,ie.opacity),ie.opacityPanel.onOpacityChanged=ie.setOpacity,ie}return ge(ae,ue),ae.prototype.setOpacity=function(re){this.opacity=re,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ae.typeName,re},ae.typeName="HighlightMarker",ae.title="Highlight marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ae}(Ye),Pe='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ye='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',vt=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.bgColor="transparent",ie.tipPosition={x:0,y:0},ie.tipBase1Position={x:0,y:0},ie.tipBase2Position={x:0,y:0},ie.tipMoving=!1,ie.color=ve.defaultStrokeColor,ie.bgColor=ve.defaultFillColor,ie.fontFamily=ve.defaultFontFamily,ie.defaultSize={x:100,y:30},ie.setBgColor=ie.setBgColor.bind(ie),ie.getTipPoints=ie.getTipPoints.bind(ie),ie.positionTip=ie.positionTip.bind(ie),ie.setTipPoints=ie.setTipPoints.bind(ie),ie.colorPanel=new Be("Text color",ve.defaultColorSet,ie.color,Pe),ie.colorPanel.onColorChanged=ie.setColor,ie.bgColorPanel=new Be("Fill color",ve.defaultColorSet,ie.bgColor,ye),ie.bgColorPanel.onColorChanged=ie.setBgColor,ie.fontFamilyPanel=new pe("Font",ve.defaultFontFamilies,ve.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie.tipGrip=new nt,ie.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),ie.controlBox.appendChild(ie.tipGrip.visual),ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return ue.prototype.ownsTarget.call(this,re)||this.tipGrip.ownsTarget(re)||this.tip===re},ae.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ae.prototype.pointerDown=function(re,se){this.state==="new"&&ue.prototype.pointerDown.call(this,re,se),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(se)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ue.prototype.pointerDown.call(this,re,se)},ae.prototype.pointerUp=function(re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ue.prototype.pointerUp.call(this,re);else{var se=this.state==="creating";ue.prototype.pointerUp.call(this,re),this.setTipPoints(se),this.positionTip()}},ae.prototype.manipulate=function(re){if(this.tipMoving){var se=this.unrotatePoint(re);this.tipPosition={x:se.x-this.manipulationStartLeft,y:se.y-this.manipulationStartTop},this.positionTip()}else ue.prototype.manipulate.call(this,re)},ae.prototype.setBgColor=function(re){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",re]]),Ee.setAttributes(this.tip,[["fill",re]])),this.bgColor=re,this.fillColorChanged(re)},ae.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ae.prototype.setTipPoints=function(re){re===void 0&&(re=!1);var se=Math.min(this.height/2,15),ve=this.height/5;re&&(this.tipPosition={x:se+ve/2,y:this.height+20});var ie=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ie<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:0},this.tipBase2Position={x:se+ve,y:0}):(this.tipBase1Position={x:0,y:se},this.tipBase2Position={x:0,y:se+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ie<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-ve,y:0},this.tipBase2Position={x:this.width-se,y:0}):(this.tipBase1Position={x:this.width,y:se},this.tipBase2Position={x:this.width,y:se+ve}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ie<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ve=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-ve,y:this.height},this.tipBase2Position={x:this.width-se,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-se-ve},this.tipBase2Position={x:this.width,y:this.height-se}):ie<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ve=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:this.height},this.tipBase2Position={x:se+ve,y:this.height}):(this.tipBase1Position={x:0,y:this.height-se},this.tipBase2Position={x:0,y:this.height-se-ve})},ae.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.positionTip()},ae.prototype.positionTip=function(){Ee.setAttributes(this.tip,[["points",this.getTipPoints()]]);var re=this.tipGrip.visual.transform.baseVal.getItem(0);re.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(re,0)},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.positionTip(),ue.prototype.select.call(this)},ae.prototype.getState=function(){var re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ue.prototype.getState.call(this));return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){var se=re;this.bgColor=se.bgColor,this.tipPosition=se.tipPosition,ue.prototype.restoreState.call(this,re),this.createTip(),this.setTipPoints()},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se),this.tipPosition={x:this.tipPosition.x*re,y:this.tipPosition.y*se},this.positionTip()},ae.typeName="CalloutMarker",ae.title="Callout marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ae}(Le),zt=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.fillColor="transparent",ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.opacity=1,ie.strokeColor=ve.defaultColor,ie.strokeWidth=ve.defaultStrokeWidth,ie.strokeDasharray=ve.defaultStrokeDasharray,ie.fillColor=ve.defaultFillColor,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setFillColor=ie.setFillColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.setOpacity=ie.setOpacity.bind(ie),ie.createVisual=ie.createVisual.bind(ie),ie.strokePanel=new Be("Line color",Se(ve.defaultColorSet,["transparent"]),ve.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.fillPanel=new Be("Fill color",Se(ve.defaultColorSet,["transparent"]),ie.fillColor,ye),ie.fillPanel.onColorChanged=ie.setFillColor,ie.strokeWidthPanel=new et("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new qe("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie.opacityPanel=new je("Opacity",ve.defaultOpacitySteps,ie.opacity),ie.opacityPanel.onOpacityChanged=ie.setOpacity,ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual)},ae.prototype.createVisual=function(){this.visual=Ee.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ae.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re)},ae.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ae.prototype.setSize=function(){ue.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ae.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize()},ae.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ae.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},ae.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ae.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ae.prototype.setOpacity=function(re){this.opacity=re,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ue.prototype.getState.call(this));return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){var se=re;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.opacity=se.opacity,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se),this.setSize()},ae.typeName="EllipseMarker",ae.title="Ellipse marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ae}(Ae),Ct=function(ue){function ae(re,se,ve){return ue.call(this,re,se,ve)||this}return ge(ae,ue),Object.defineProperty(ae.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.tip1&&re!==this.tip2)},ae.prototype.createTips=function(){this.tip1=Ee.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ee.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.tip2)},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.state==="creating"&&this.createTips()},ae.prototype.adjustVisual=function(){if(ue.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ee.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var re=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),se=this.tip1.transform.baseVal.getItem(0);se.setRotate(re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(se,0);var ve=this.tip2.transform.baseVal.getItem(0);ve.setRotate(re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ve,0)}},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re),this.createTips(),this.adjustVisual()},ae.typeName="MeasurementMarker",ae.title="Measurement marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ae}($e),De=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.strokePanel.colors=ve.defaultColorSet,ie.fillColor="transparent",ie}return ge(ae,ue),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ae.typeName,re},ae.typeName="EllipseFrameMarker",ae.title="Ellipse frame marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ae}(zt),mt=function(){function ue(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ue.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ue.prototype.addUndoStep=function(ae){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ae)||(this.undoStack.push(ae),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ae)&&this.redoStack.splice(0,this.redoStack.length))},ue.prototype.replaceLastUndoStep=function(ae){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ae)},ue.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ue.prototype.undo=function(){if(this.undoStack.length>1){var ae=this.undoStack.pop();return ae!==void 0&&this.redoStack.push(ae),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ue.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ue}(),dt=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.curveX=0,ie.curveY=0,ie.manipulationStartCurveX=0,ie.manipulationStartCurveY=0,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.positionGrips=ie.positionGrips.bind(ie),ie.addControlGrips=ie.addControlGrips.bind(ie),ie.adjustVisual=ie.adjustVisual.bind(ie),ie.setupControlBox=ie.setupControlBox.bind(ie),ie.resize=ie.resize.bind(ie),ie.strokeColor=ve.defaultColor,ie.strokeWidth=ve.defaultStrokeWidth,ie.strokeDasharray=ve.defaultStrokeDasharray,ie.strokePanel=new Be("Line color",ve.defaultColorSet,ve.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new et("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new qe("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorCurve&&re!==this.visibleCurve&&!this.curveGrip.ownsTarget(re))},ae.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ae.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=re.x,this.curveY=re.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(se)&&(this.activeGrip=this.curveGrip,this._state="resize")},ae.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ae.prototype.setupControlBox=function(){ue.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ae.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ue.prototype.addControlGrips.call(this)},ae.prototype.positionGrips=function(){ue.prototype.positionGrips.call(this);var re=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-re/2,this.curveY-re/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ae.prototype.manipulate=function(re){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+re.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+re.y-this.manipulationStartY),ue.prototype.manipulate.call(this,re)},ae.prototype.resize=function(re){this.activeGrip===this.curveGrip&&(this.curveX=re.x,this.curveY=re.y),ue.prototype.resize.call(this,re),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ae.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},ae.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},ae.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual()},ae.prototype.scale=function(re,se){this.curveX=this.curveX*re,this.curveY=this.curveY*se,ue.prototype.scale.call(this,re,se)},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ue.prototype.getState.call(this));return re.typeName=ae.typeName,re},ae.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var se=re;this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.curveX=se.curveX,this.curveY=se.curveY,this.createVisual(),this.adjustVisual()},ae.typeName="CurveMarker",ae.title="Curve marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ae}(st),Gt=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,se,ve)||this;return ie.fillColor="transparent",ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.textColor="transparent",ie.fontSize="1rem",ie.isMoved=!1,ie.captionText="Caption",ie.PADDING=5,ie.captionBoxWidth=0,ie.captionBoxHeight=0,ie.strokeColor=ve.defaultColor,ie.strokeWidth=ve.defaultStrokeWidth,ie.strokeDasharray=ve.defaultStrokeDasharray,ie.fillColor=ve.defaultFillColor,ie.textColor=ve.defaultStrokeColor,ie.fontFamily=ve.defaultFontFamily,ie.fontSize=ve.defaultCaptionFontSize,ie.captionText=ve.defaultCaptionText,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setFillColor=ie.setFillColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.createVisual=ie.createVisual.bind(ie),ie.sizeCaption=ie.sizeCaption.bind(ie),ie.setCaptionText=ie.setCaptionText.bind(ie),ie.showTextEditor=ie.showTextEditor.bind(ie),ie.positionTextEditor=ie.positionTextEditor.bind(ie),ie.finishTextEditing=ie.finishTextEditing.bind(ie),ie.setFont=ie.setFont.bind(ie),ie.setTextColor=ie.setTextColor.bind(ie),ie.strokePanel=new Be("Line color",Se(ve.defaultColorSet,["transparent"]),ie.strokeColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.fillPanel=new Be("Fill color",Se(ve.defaultColorSet,["transparent"]),ie.fillColor,ye),ie.fillPanel.onColorChanged=ie.setFillColor,ie.strokeWidthPanel=new et("Line width",ve.defaultStrokeWidths,ve.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new qe("Line style",ve.defaultStrokeDasharrays,ve.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie.fontFamilyPanel=new pe("Font",ve.defaultFontFamilies,ve.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie.textColorPanel=new Be("Text color",ve.defaultColorSet,ie.textColor,Pe),ie.textColorPanel.onColorChanged=ie.setTextColor,ie}return ge(ae,ue),ae.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.frame&&re!==this.captionBg&&re!==this.captionElement)},ae.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ee.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ee.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Ee.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ae.prototype.setCaptionText=function(re){this.captionText=re,this.captionElement.textContent=this.captionText,this.sizeCaption()},ae.prototype.pointerDown=function(re,se){ue.prototype.pointerDown.call(this,re,se),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ae.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(re.x-this.pointerDownPoint.x)>5||Math.abs(re.y-this.pointerDownPoint.y)>5)},ae.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ae.prototype.sizeCaption=function(){var re=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=re.width+2*this.PADDING,this.captionBoxHeight=re.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ee.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Ee.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ae.prototype.showTextEditor=function(){var re=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(se){se.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(se){se.key==="Enter"&&re.finishTextEditing(re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(se){se.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){re.finishTextEditing(re.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){re.finishTextEditing(re.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ae.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ae.prototype.finishTextEditing=function(re){this.setCaptionText(re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ae.prototype.setFont=function(re){this.captionElement&&Ee.setAttributes(this.captionElement,[["font-family",re]]),this.fontFamily=re,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ae.prototype.setTextColor=function(re){this.captionElement&&Ee.setAttributes(this.captionElement,[["fill",re]]),this.textColor=re,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ae.prototype.setSize=function(){ue.prototype.setSize.call(this),Ee.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ae.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ae.prototype.dblClick=function(re,se){ue.prototype.dblClick.call(this,re,se),this.showTextEditor()},ae.prototype.setStrokeColor=function(re){this.strokeColor=re,this.frame&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ae.prototype.setFillColor=function(re){this.fillColor=re,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},ae.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ae.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.frame&&Ee.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ae.prototype.getState=function(){var re=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ue.prototype.getState.call(this));return re.typeName=this.typeName,re},ae.prototype.restoreState=function(re){var se=re;this.fillColor=se.fillColor,this.strokeColor=se.strokeColor,this.strokeWidth=se.strokeWidth,this.strokeDasharray=se.strokeDasharray,this.textColor=se.textColor,this.fontFamily=se.fontFamily,this.captionText=se.captionText,this.fontSize=se.fontSize,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ae.prototype.scale=function(re,se){ue.prototype.scale.call(this,re,se),this.setSize()},ae.typeName="CaptionFrameMarker",ae.title="Caption frame marker",ae.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ae}(Ae),bt=function(){function ue(ae,re){re===void 0&&(re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ae,this.cancelable=re}return Object.defineProperty(ue.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ue.prototype.preventDefault=function(){this._defaultPrevented=!0},ue}(),xt=function(ue){function ae(re,se,ve){var ie=ue.call(this,re,!1)||this;return ie.dataUrl=se,ie.state=ve,ie}return ge(ae,ue),ae}(bt),pt=function(ue){function ae(re,se,ve){ve===void 0&&(ve=!1);var ie=ue.call(this,re,ve)||this;return ie.marker=se,ie}return ge(ae,ue),ae}(bt),ln=function(){function ue(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ue.prototype.addEventListener=function(ae,re){this[ae].push(re)},ue.prototype.removeEventListener=function(ae,re){var se=this[ae].indexOf(re);se>-1&&this[ae].splice(se,1)},ue}(),Wt=function(){function ue(ae){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new yt,this._isOpen=!1,this.undoRedoManager=new mt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ln,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ue.instanceCounter++,this.styles=new de(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ae,this.targetRoot=document.body,this.width=ae.clientWidth,this.height=ae.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ue.prototype,"ALL_MARKER_TYPES",{get:function(){return[ut,xe,Et,Le,De,zt,it,vt,Ct,Ye,$e,dt,Gt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ut,xe,Et,Le,zt,it,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ut,xe,Et,Le,it]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ae){var re=this;this._availableMarkerTypes.splice(0),ae.forEach(function(se){if(typeof se=="string"){var ve=re.ALL_MARKER_TYPES.find(function(ie){return ie.typeName===se});ve!==void 0&&re._availableMarkerTypes.push(ve)}else re._availableMarkerTypes.push(se)})},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ae){this._zoomLevel=ae,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ue.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ue.prototype.show=function(){var ae=this;this.styles.styleSheetRoot===void 0&&Fe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Fe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(re){return re(new bt(ae))})},ue.prototype.render=function(){return me(this,void 0,void 0,function(){var ae;return we(this,function(re){switch(re.label){case 0:return this.setCurrentMarker(),(ae=new ke).naturalSize=this.renderAtNaturalSize,ae.imageType=this.renderImageType,ae.imageQuality=this.renderImageQuality,ae.markersOnly=this.renderMarkersOnly,ae.width=this.renderWidth,ae.height=this.renderHeight,[4,ae.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return re.sent(),[4,ae.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,re.sent()]}})})},ue.prototype.close=function(ae){var re=this;if(ae===void 0&&(ae=!1),this.isOpen){var se=!1;ae||this.eventListeners.beforeclose.forEach(function(ve){var ie=new bt(re,!0);ve(ie),ie.defaultPrevented&&(se=!0)}),se||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ve){return ve(new bt(re))}),this.detachEvents(),this._isOpen=!1)}},ue.prototype.addMarkersToToolbar=function(){for(var ae,re=[],se=0;se<arguments.length;se++)re[se]=arguments[se];(ae=this._availableMarkerTypes).push.apply(ae,re)},ue.prototype.addRenderEventListener=function(ae){this.addEventListener("render",function(re){ae(re.dataUrl,re.state)})},ue.prototype.removeRenderEventListener=function(ae){},ue.prototype.addCloseEventListener=function(ae){this.addEventListener("close",function(){ae()})},ue.prototype.removeCloseEventListener=function(ae){},ue.prototype.setupResizeObserver=function(){var ae=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ae.resize(ae.target.clientWidth,ae.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ae.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ue.prototype.onPopupTargetResize=function(){var ae=1*this.target.clientWidth/this.target.clientHeight,re=this.editorCanvas.clientWidth/ae>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ae:this.editorCanvas.clientWidth,se=re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ae;this.resize(re,se)},ue.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ue.prototype.resize=function(ae,re){this._isResizing=!0;var se=ae/this.imageWidth,ve=re/this.imageHeight;this.imageWidth=Math.round(ae),this.imageHeight=Math.round(re),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(se,ve),this._isResizing=!1},ue.prototype.scaleMarkers=function(ae,re){var se,ve=this;this._currentMarker&&this._currentMarker instanceof Le?this._currentMarker.scale(ae,re):(se=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ie){ie!==ve._currentMarker&&ie.scale(ae,re)}),se!==void 0&&this.setCurrentMarker(se)},ue.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ue.prototype.setTopLeft=function(){var ae=this.editingTarget.getBoundingClientRect(),re=this.editorCanvas.getBoundingClientRect();this.left=ae.left-re.left,this.top=ae.top-re.top},ue.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ue.prototype.addDefs=function(){for(var ae,re=[],se=0;se<arguments.length;se++)re[se]=arguments[se];this.defs=Ee.createDefs(),this.addDefsToImage(),(ae=this.defs).append.apply(ae,re)},ue.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ue.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ue.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ue.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ue.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ue.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ue.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ue.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ae=document.createElement("a");ae.href="https://markerjs.com/",ae.target="_blank",ae.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ae.title="Powered by marker.js",ae.style.display="grid",ae.style.alignItems="center",ae.style.justifyItems="center",ae.style.padding="3px",ae.style.width="20px",ae.style.height="20px",this.logoUI.appendChild(ae),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ue.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ue.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ue.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ue.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ae=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ae+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ft(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ge(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ue.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ue.prototype.removeMarker=function(ae){this.markerImage.removeChild(ae.container),this.markers.indexOf(ae)>-1&&this.markers.splice(this.markers.indexOf(ae),1),ae.dispose()},ue.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ue.prototype.toolbarButtonClicked=function(ae,re){if(ae==="marker"&&re!==void 0)this.createNewMarker(re);else if(ae==="action")switch(re){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ue.prototype.deleteSelectedMarker=function(){var ae=this;if(this._currentMarker!==void 0){var re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ve){var ie=new pt(ae,ae._currentMarker,!0);ve(ie),ie.defaultPrevented&&(re=!0)}),!re){var se=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ve){return ve(new pt(ae,se))})}}},ue.prototype.clear=function(){var ae=this,re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(fe){var Ve=new pt(ae,void 0,!0);fe(Ve),Ve.defaultPrevented&&(re=!0)}),!re)){this.setCurrentMarker();for(var se=function(fe){var Ve=ve.markers[fe];ve.setCurrentMarker(ve.markers[fe]),ve._currentMarker.dispose(),ve.markerImage.removeChild(ve._currentMarker.container),ve.markers.splice(ve.markers.indexOf(ve._currentMarker),1),ve.eventListeners.markerdelete.forEach(function(It){return It(new pt(ae,Ve))})},ve=this,ie=this.markers.length-1;ie>=0;ie--)se(ie);this.addUndoStep()}},Object.defineProperty(ue.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ue.prototype.showNotesEditor=function(){var ae;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ae=this._currentMarker.notes)!==null&&ae!==void 0?ae:"",this.overlayContainer.appendChild(this.notesArea))},ue.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ue.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ue.prototype.addUndoStep=function(){var ae=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var re=this.getState(),se=this.undoRedoManager.getLastUndoStep();if(!se||se.width===re.width&&se.height===re.height){var ve=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(re),ve<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ie){return ie(new bt(ae))})}else this.undoRedoManager.replaceLastUndoStep(re),this.eventListeners.statechange.forEach(function(ie){return ie(new bt(ae))})}},ue.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ue.prototype.undoStep=function(){var ae=this,re=this.undoRedoManager.undo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(se){return se(new bt(ae))}))},ue.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ue.prototype.redoStep=function(){var ae=this,re=this.undoRedoManager.redo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(se){return se(new bt(ae))}))},ue.prototype.stepZoom=function(){var ae=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ae<this.zoomSteps.length-1?this.zoomSteps[ae+1]:this.zoomSteps[0]},ue.prototype.panTo=function(ae){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ae.x,top:this.prevPanPoint.y-ae.y}),this.prevPanPoint=ae},ue.prototype.startRenderAndClose=function(){return me(this,void 0,void 0,function(){var ae,re,se=this;return we(this,function(ve){switch(ve.label){case 0:return[4,this.render()];case 1:return ae=ve.sent(),re=this.getState(),this.eventListeners.render.forEach(function(ie){return ie(new xt(se,ae,re))}),this.close(!0),[2]}})})},ue.prototype.getState=function(ae){ae===!0&&this.setCurrentMarker();var re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(se){return re.markers.push(se.getState())}),re},ue.prototype.restoreState=function(ae){var re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ae.markers.forEach(function(se){var ve=re._availableMarkerTypes.find(function(fe){return fe.typeName===se.typeName});if(ve!==void 0){var ie=re.addNewMarker(ve);ie.restoreState(se),re.markers.push(ie)}}),ae.width&&ae.height&&(ae.width!==this.imageWidth||ae.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ae.width,this.imageHeight/ae.height),this.eventListeners.restorestate.forEach(function(se){return se(new bt(re))})},ue.prototype.addNewMarker=function(ae){var re=Ee.createGroup();return this.markerImage.appendChild(re),new ae(re,this.overlayContainer,this.settings)},ue.prototype.createNewMarker=function(ae){var re,se=this;(re=typeof ae=="string"?this._availableMarkerTypes.find(function(ve){return ve.typeName===ae}):ae)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(re),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(re.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ve){return ve(new pt(se,se._currentMarker))}))},ue.prototype.markerCreated=function(ae){var re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ae),this.setCurrentMarker(ae),ae instanceof xe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(xe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(se){return se(new pt(re,re._currentMarker))})},ue.prototype.colorChanged=function(ae){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ae,this.settings.defaultStrokeColor=ae)},ue.prototype.fillColorChanged=function(ae){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ae)},ue.prototype.markerStateChanged=function(ae){var re=this;this.eventListeners.markerchange.forEach(function(se){return se(new pt(re,ae))})},ue.prototype.setCurrentMarker=function(ae){var re=this;this._currentMarker!==ae&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(se){return se(new pt(re,re._currentMarker))})),this._currentMarker=ae,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(se){return se(new pt(re,re._currentMarker))}))},ue.prototype.onPointerDown=function(ae){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ae.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var re=this.markers.find(function(se){return se.ownsTarget(ae.target)});re!==void 0?(this.setCurrentMarker(re),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ae.clientX,ae.clientY),ae.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ae.clientX,y:ae.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ae.clientX,ae.clientY))},ue.prototype.onDblClick=function(ae){if(this._isFocused||this.focus(),this.mode==="select"){var re=this.markers.find(function(se){return se.ownsTarget(ae.target)});re!==void 0&&re!==this._currentMarker&&this.setCurrentMarker(re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ae.clientX,ae.clientY),ae.target):this.setCurrentMarker()}},ue.prototype.onPointerMove=function(ae){this.touchPoints!==1&&ae.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ae.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ae.clientX,ae.clientY)):this.zoomLevel>1&&this.panTo({x:ae.clientX,y:ae.clientY}))},ue.prototype.onPointerUp=function(ae){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ae.clientX,ae.clientY)),this.isDragging=!1,this.addUndoStep()},ue.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ue.prototype.onKeyUp=function(ae){this._currentMarker===void 0||this.notesArea!==void 0||ae.key!=="Delete"&&ae.key!=="Backspace"||this.deleteSelectedMarker()},ue.prototype.clientToLocalCoordinates=function(ae,re){var se=this.markerImage.getBoundingClientRect();return{x:(ae-se.left)/this.zoomLevel,y:(re-se.top)/this.zoomLevel}},ue.prototype.onWindowResize=function(){this.positionUI()},ue.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ae=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ae+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ue.prototype.addLicenseKey=function(ae){Ce.addKey(ae)},ue.prototype.addEventListener=function(ae,re){this.eventListeners.addEventListener(ae,re)},ue.prototype.removeEventListener=function(ae,re){this.eventListeners.removeEventListener(ae,re)},ue.prototype.renderState=function(ae){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ae),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ue.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ue.prototype.focus=function(){var ae=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(re){return re(new bt(ae))}))},ue.prototype.blur=function(){var ae=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(re){return re(new bt(ae))}))},ue.instanceCounter=0,ue}()},6551:function(Rn,qt,E){"use strict";E.d(qt,{ZP:function(){return Ce}});var y=E(72190),ge=E(59301),me=E(47273),we=0,Se=(0,me.Z)();function Ee(){var ke;return Se?(ke=we,we+=1):ke="TEST_OR_SSR",ke}function Ce(ke){var Fe=ge.useState(),de=(0,y.Z)(Fe,2),We=de[0],Te=de[1];return ge.useEffect(function(){Te("rc_select_".concat(Ee()))},[]),ke||We}},37463:function(Rn,qt,E){"use strict";E.d(qt,{Ac:function(){return Lt},Xo:function(){return Xt},Wx:function(){return Nt},ZP:function(){return hr},lk:function(){return St}});var y=E(60499),ge=E(77654),me=E(18642),we=E(85899),Se=E(72190),Ee=E(42244),Ce=E(43749),ke=E(18929),Fe=E(48736),de=E(59301),We=E(92310),Te=E.n(We),ft=E(34280),Ge=E(49658),Ne=E(8654),Be=function(Qt){var ct=Qt.className,Zt=Qt.customizeIcon,ot=Qt.customizeIconProps,Kt=Qt.children,Ft=Qt.onMouseDown,ar=Qt.onClick,mr=typeof Zt=="function"?Zt(ot):Zt;return de.createElement("span",{className:ct,onMouseDown:function(Mt){Mt.preventDefault(),Ft==null||Ft(Mt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ar,"aria-hidden":!0},mr!==void 0?mr:de.createElement("span",{className:Te()(ct.split(/\s+/).map(function(At){return"".concat(At,"-icon")}))},Kt))},Oe=Be,Ie=function(Qt,ct,Zt,ot,Kt){var Ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ar=arguments.length>6?arguments[6]:void 0,mr=arguments.length>7?arguments[7]:void 0,At=de.useMemo(function(){if((0,Ce.Z)(ot)==="object")return ot.clearIcon;if(Kt)return Kt},[ot,Kt]),Mt=de.useMemo(function(){return!!(!Ft&&ot&&(Zt.length||ar)&&!(mr==="combobox"&&ar===""))},[ot,Ft,Zt.length,ar,mr]);return{allowClear:Mt,clearIcon:de.createElement(Oe,{className:"".concat(Qt,"-clear"),onMouseDown:ct,customizeIcon:At},"\xD7")}},nt=de.createContext(null);function St(){return de.useContext(nt)}function Ae(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Qt=de.useState(!1),ct=(0,Se.Z)(Qt,2),Zt=ct[0],ot=ct[1],Kt=de.useRef(null),Ft=function(){window.clearTimeout(Kt.current)};de.useEffect(function(){return Ft},[]);var ar=function(At,Mt){Ft(),Kt.current=window.setTimeout(function(){ot(At),Mt&&Mt()},_t)};return[Zt,ar,Ft]}function _e(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Qt=de.useRef(null),ct=de.useRef(null);de.useEffect(function(){return function(){window.clearTimeout(ct.current)}},[]);function Zt(ot){(ot||Qt.current===null)&&(Qt.current=ot),window.clearTimeout(ct.current),ct.current=window.setTimeout(function(){Qt.current=null},_t)}return[function(){return Qt.current},Zt]}function et(_t,Qt,ct,Zt){var ot=de.useRef(null);ot.current={open:Qt,triggerOpen:ct,customizedTrigger:Zt},de.useEffect(function(){function Kt(Ft){var ar;if(!((ar=ot.current)!==null&&ar!==void 0&&ar.customizedTrigger)){var mr=Ft.target;mr.shadowRoot&&Ft.composed&&(mr=Ft.composedPath()[0]||mr),ot.current.open&&_t().filter(function(At){return At}).every(function(At){return!At.contains(mr)&&At!==mr})&&ot.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Kt),function(){return window.removeEventListener("mousedown",Kt)}},[])}var qe=E(10228);function ut(_t){return _t&&![qe.Z.ESC,qe.Z.SHIFT,qe.Z.BACKSPACE,qe.Z.TAB,qe.Z.WIN_KEY,qe.Z.ALT,qe.Z.META,qe.Z.WIN_KEY_RIGHT,qe.Z.CTRL,qe.Z.SEMICOLON,qe.Z.EQUALS,qe.Z.CAPS_LOCK,qe.Z.CONTEXT_MENU,qe.Z.F1,qe.Z.F2,qe.Z.F3,qe.Z.F4,qe.Z.F5,qe.Z.F6,qe.Z.F7,qe.Z.F8,qe.Z.F9,qe.Z.F10,qe.Z.F11,qe.Z.F12].includes(_t)}var yt=E(26112),st=E(83836);function $e(_t,Qt,ct){var Zt=(0,we.Z)((0,we.Z)({},_t),ct?Qt:{});return Object.keys(Qt).forEach(function(ot){var Kt=Qt[ot];typeof Kt=="function"&&(Zt[ot]=function(){for(var Ft,ar=arguments.length,mr=new Array(ar),At=0;At<ar;At++)mr[At]=arguments[At];return Kt.apply(void 0,mr),(Ft=_t[ot])===null||Ft===void 0?void 0:Ft.call.apply(Ft,[_t].concat(mr))})}),Zt}var pe=$e,Le=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],xe=function(Qt,ct){var Zt=Qt.prefixCls,ot=Qt.id,Kt=Qt.inputElement,Ft=Qt.autoFocus,ar=Qt.autoComplete,mr=Qt.editable,At=Qt.activeDescendantId,Mt=Qt.value,kt=Qt.open,Vt=Qt.attrs,Nn=(0,Ee.Z)(Qt,Le),Hn=Kt||de.createElement("input",null),Un=Hn,Xn=Un.ref,pr=Un.props;return(0,Fe.Kp)(!("maxLength"in Hn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Hn=de.cloneElement(Hn,(0,we.Z)((0,we.Z)((0,we.Z)({type:"search"},pe(Nn,pr,!0)),{},{id:ot,ref:(0,Ne.sQ)(ct,Xn),autoComplete:ar||"off",autoFocus:Ft,className:Te()("".concat(Zt,"-selection-search-input"),pr==null?void 0:pr.className),role:"combobox","aria-expanded":kt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ot,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ot,"_list"),"aria-activedescendant":kt?At:void 0},Vt),{},{value:mr?Mt:"",readOnly:!mr,unselectable:mr?null:"on",style:(0,we.Z)((0,we.Z)({},pr.style),{},{opacity:mr?null:0})})),Hn},ce=de.forwardRef(xe),Et=ce;function Ye(_t){return Array.isArray(_t)?_t:_t!==void 0?[_t]:[]}var je=typeof window!="undefined"&&window.document&&window.document.documentElement,it=je;function Pe(_t){return _t!=null}function ye(_t){return!_t&&_t!==0}function vt(_t){return["string","number"].includes((0,Ce.Z)(_t))}function zt(_t){var Qt=void 0;return _t&&(vt(_t.title)?Qt=_t.title.toString():vt(_t.label)&&(Qt=_t.label.toString())),Qt}function Ct(_t,Qt){it?de.useLayoutEffect(_t,Qt):de.useEffect(_t,Qt)}function De(_t){var Qt;return(Qt=_t.key)!==null&&Qt!==void 0?Qt:_t.value}var mt=function(Qt){Qt.preventDefault(),Qt.stopPropagation()},dt=function(Qt){var ct=Qt.id,Zt=Qt.prefixCls,ot=Qt.values,Kt=Qt.open,Ft=Qt.searchValue,ar=Qt.autoClearSearchValue,mr=Qt.inputRef,At=Qt.placeholder,Mt=Qt.disabled,kt=Qt.mode,Vt=Qt.showSearch,Nn=Qt.autoFocus,Hn=Qt.autoComplete,Un=Qt.activeDescendantId,Xn=Qt.tabIndex,pr=Qt.removeIcon,wr=Qt.maxTagCount,Or=Qt.maxTagTextLength,Lr=Qt.maxTagPlaceholder,Sr=Lr===void 0?function(Br){return"+ ".concat(Br.length," ...")}:Lr,Mr=Qt.tagRender,Vr=Qt.onToggleOpen,oa=Qt.onRemove,ra=Qt.onInputChange,Oa=Qt.onInputPaste,ba=Qt.onInputKeyDown,Kr=Qt.onInputMouseDown,ga=Qt.onInputCompositionStart,Qa=Qt.onInputCompositionEnd,Da=Qt.onInputBlur,Ea=de.useRef(null),Rr=(0,de.useState)(0),Za=(0,Se.Z)(Rr,2),Pa=Za[0],la=Za[1],Xr=(0,de.useState)(!1),$a=(0,Se.Z)(Xr,2),Mi=$a[0],$i=$a[1],Xa="".concat(Zt,"-selection"),gi=Kt||kt==="multiple"&&ar===!1||kt==="tags"?Ft:"",Ii=kt==="tags"||kt==="multiple"&&ar===!1||Vt&&(Kt||Mi);Ct(function(){la(Ea.current.scrollWidth)},[gi]);var Ri=function(qn,Jr,Yr,Er,Dr){return de.createElement("span",{title:zt(qn),className:Te()("".concat(Xa,"-item"),(0,me.Z)({},"".concat(Xa,"-item-disabled"),Yr))},de.createElement("span",{className:"".concat(Xa,"-item-content")},Jr),Er&&de.createElement(Oe,{className:"".concat(Xa,"-item-remove"),onMouseDown:mt,onClick:Dr,customizeIcon:pr},"\xD7"))},Bi=function(qn,Jr,Yr,Er,Dr,$r){var qr=function(Wa){mt(Wa),Vr(!Kt)};return de.createElement("span",{onMouseDown:qr},Mr({label:Jr,value:qn,disabled:Yr,closable:Er,onClose:Dr,isMaxTag:!!$r}))},ei=function(qn){var Jr=qn.disabled,Yr=qn.label,Er=qn.value,Dr=!Mt&&!Jr,$r=Yr;if(typeof Or=="number"&&(typeof Yr=="string"||typeof Yr=="number")){var qr=String($r);qr.length>Or&&($r="".concat(qr.slice(0,Or),"..."))}var Aa=function(na){na&&na.stopPropagation(),oa(qn)};return typeof Mr=="function"?Bi(Er,$r,Jr,Dr,Aa):Ri(qn,$r,Jr,Dr,Aa)},Ar=function(qn){if(!ot.length)return null;var Jr=typeof Sr=="function"?Sr(qn):Sr;return typeof Mr=="function"?Bi(void 0,Jr,!1,!1,void 0,!0):Ri({title:Jr},Jr,!1)},tr=de.createElement("div",{className:"".concat(Xa,"-search"),style:{width:Pa},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},de.createElement(Et,{ref:mr,open:Kt,prefixCls:Zt,id:ct,inputElement:null,disabled:Mt,autoFocus:Nn,autoComplete:Hn,editable:Ii,activeDescendantId:Un,value:gi,onKeyDown:ba,onMouseDown:Kr,onChange:ra,onPaste:Oa,onCompositionStart:ga,onCompositionEnd:Qa,onBlur:Da,tabIndex:Xn,attrs:(0,yt.Z)(Qt,!0)}),de.createElement("span",{ref:Ea,className:"".concat(Xa,"-search-mirror"),"aria-hidden":!0},gi,"\xA0")),yr=de.createElement(st.Z,{prefixCls:"".concat(Xa,"-overflow"),data:ot,renderItem:ei,renderRest:Ar,suffix:tr,itemKey:De,maxCount:wr});return de.createElement("span",{className:"".concat(Xa,"-wrap")},yr,!ot.length&&!gi&&de.createElement("span",{className:"".concat(Xa,"-placeholder")},At))},Gt=dt,bt=function(Qt){var ct=Qt.inputElement,Zt=Qt.prefixCls,ot=Qt.id,Kt=Qt.inputRef,Ft=Qt.disabled,ar=Qt.autoFocus,mr=Qt.autoComplete,At=Qt.activeDescendantId,Mt=Qt.mode,kt=Qt.open,Vt=Qt.values,Nn=Qt.placeholder,Hn=Qt.tabIndex,Un=Qt.showSearch,Xn=Qt.searchValue,pr=Qt.activeValue,wr=Qt.maxLength,Or=Qt.onInputKeyDown,Lr=Qt.onInputMouseDown,Sr=Qt.onInputChange,Mr=Qt.onInputPaste,Vr=Qt.onInputCompositionStart,oa=Qt.onInputCompositionEnd,ra=Qt.onInputBlur,Oa=Qt.title,ba=de.useState(!1),Kr=(0,Se.Z)(ba,2),ga=Kr[0],Qa=Kr[1],Da=Mt==="combobox",Ea=Da||Un,Rr=Vt[0],Za=Xn||"";Da&&pr&&!ga&&(Za=pr),de.useEffect(function(){Da&&Qa(!1)},[Da,pr]);var Pa=Mt!=="combobox"&&!kt&&!Un?!1:!!Za,la=Oa===void 0?zt(Rr):Oa,Xr=de.useMemo(function(){return Rr?null:de.createElement("span",{className:"".concat(Zt,"-selection-placeholder"),style:Pa?{visibility:"hidden"}:void 0},Nn)},[Rr,Pa,Nn,Zt]);return de.createElement("span",{className:"".concat(Zt,"-selection-wrap")},de.createElement("span",{className:"".concat(Zt,"-selection-search")},de.createElement(Et,{ref:Kt,prefixCls:Zt,id:ot,open:kt,inputElement:ct,disabled:Ft,autoFocus:ar,autoComplete:mr,editable:Ea,activeDescendantId:At,value:Za,onKeyDown:Or,onMouseDown:Lr,onChange:function(Mi){Qa(!0),Sr(Mi)},onPaste:Mr,onCompositionStart:Vr,onCompositionEnd:oa,onBlur:ra,tabIndex:Hn,attrs:(0,yt.Z)(Qt,!0),maxLength:Da?wr:void 0})),!Da&&Rr?de.createElement("span",{className:"".concat(Zt,"-selection-item"),title:la,style:Pa?{visibility:"hidden"}:void 0},Rr.label):null,Xr)},xt=bt,pt=function(Qt,ct){var Zt=(0,de.useRef)(null),ot=(0,de.useRef)(!1),Kt=Qt.prefixCls,Ft=Qt.open,ar=Qt.mode,mr=Qt.showSearch,At=Qt.tokenWithEnter,Mt=Qt.disabled,kt=Qt.prefix,Vt=Qt.autoClearSearchValue,Nn=Qt.onSearch,Hn=Qt.onSearchSubmit,Un=Qt.onToggleOpen,Xn=Qt.onInputKeyDown,pr=Qt.onInputBlur,wr=Qt.domRef;de.useImperativeHandle(ct,function(){return{focus:function(la){Zt.current.focus(la)},blur:function(){Zt.current.blur()}}});var Or=_e(0),Lr=(0,Se.Z)(Or,2),Sr=Lr[0],Mr=Lr[1],Vr=function(la){var Xr=la.which,$a=Zt.current instanceof HTMLTextAreaElement;!$a&&Ft&&(Xr===qe.Z.UP||Xr===qe.Z.DOWN)&&la.preventDefault(),Xn&&Xn(la),Xr===qe.Z.ENTER&&ar==="tags"&&!ot.current&&!Ft&&(Hn==null||Hn(la.target.value)),!($a&&!Ft&&~[qe.Z.UP,qe.Z.DOWN,qe.Z.LEFT,qe.Z.RIGHT].indexOf(Xr))&&ut(Xr)&&Un(!0)},oa=function(){Mr(!0)},ra=(0,de.useRef)(null),Oa=function(la){Nn(la,!0,ot.current)!==!1&&Un(!0)},ba=function(){ot.current=!0},Kr=function(la){ot.current=!1,ar!=="combobox"&&Oa(la.target.value)},ga=function(la){var Xr=la.target.value;if(At&&ra.current&&/[\r\n]/.test(ra.current)){var $a=ra.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Xr=Xr.replace($a,ra.current)}ra.current=null,Oa(Xr)},Qa=function(la){var Xr=la.clipboardData,$a=Xr==null?void 0:Xr.getData("text");ra.current=$a||""},Da=function(la){var Xr=la.target;if(Xr!==Zt.current){var $a=document.body.style.msTouchAction!==void 0;$a?setTimeout(function(){Zt.current.focus()}):Zt.current.focus()}},Ea=function(la){var Xr=Sr();la.target!==Zt.current&&!Xr&&!(ar==="combobox"&&Mt)&&la.preventDefault(),(ar!=="combobox"&&(!mr||!Xr)||!Ft)&&(Ft&&Vt!==!1&&Nn("",!0,!1),Un())},Rr={inputRef:Zt,onInputKeyDown:Vr,onInputMouseDown:oa,onInputChange:ga,onInputPaste:Qa,onInputCompositionStart:ba,onInputCompositionEnd:Kr,onInputBlur:pr},Za=ar==="multiple"||ar==="tags"?de.createElement(Gt,(0,y.Z)({},Qt,Rr)):de.createElement(xt,(0,y.Z)({},Qt,Rr));return de.createElement("div",{ref:wr,className:"".concat(Kt,"-selector"),onClick:Da,onMouseDown:Ea},kt&&de.createElement("div",{className:"".concat(Kt,"-prefix")},kt),Za)},ln=de.forwardRef(pt),Wt=ln,ue=E(68196),ae=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],re=function(Qt){var ct=Qt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ct,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ct,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ct,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ct,adjustY:1},htmlRegion:"scroll"}}},se=function(Qt,ct){var Zt=Qt.prefixCls,ot=Qt.disabled,Kt=Qt.visible,Ft=Qt.children,ar=Qt.popupElement,mr=Qt.animation,At=Qt.transitionName,Mt=Qt.dropdownStyle,kt=Qt.dropdownClassName,Vt=Qt.direction,Nn=Vt===void 0?"ltr":Vt,Hn=Qt.placement,Un=Qt.builtinPlacements,Xn=Qt.dropdownMatchSelectWidth,pr=Qt.dropdownRender,wr=Qt.dropdownAlign,Or=Qt.getPopupContainer,Lr=Qt.empty,Sr=Qt.getTriggerDOMNode,Mr=Qt.onPopupVisibleChange,Vr=Qt.onPopupMouseEnter,oa=(0,Ee.Z)(Qt,ae),ra="".concat(Zt,"-dropdown"),Oa=ar;pr&&(Oa=pr(ar));var ba=de.useMemo(function(){return Un||re(Xn)},[Un,Xn]),Kr=mr?"".concat(ra,"-").concat(mr):At,ga=typeof Xn=="number",Qa=de.useMemo(function(){return ga?null:Xn===!1?"minWidth":"width"},[Xn,ga]),Da=Mt;ga&&(Da=(0,we.Z)((0,we.Z)({},Da),{},{width:Xn}));var Ea=de.useRef(null);return de.useImperativeHandle(ct,function(){return{getPopupElement:function(){var Za;return(Za=Ea.current)===null||Za===void 0?void 0:Za.popupElement}}}),de.createElement(ue.Z,(0,y.Z)({},oa,{showAction:Mr?["click"]:[],hideAction:Mr?["click"]:[],popupPlacement:Hn||(Nn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ba,prefixCls:ra,popupTransitionName:Kr,popup:de.createElement("div",{onMouseEnter:Vr},Oa),ref:Ea,stretch:Qa,popupAlign:wr,popupVisible:Kt,getPopupContainer:Or,popupClassName:Te()(kt,(0,me.Z)({},"".concat(ra,"-empty"),Lr)),popupStyle:Da,getTriggerDOMNode:Sr,onPopupVisibleChange:Mr}),Ft)},ve=de.forwardRef(se),ie=ve,fe=E(48745);function Ve(_t,Qt){var ct=_t.key,Zt;return"value"in _t&&(Zt=_t.value),ct!=null?ct:Zt!==void 0?Zt:"rc-index-key-".concat(Qt)}function It(_t){return typeof _t!="undefined"&&!Number.isNaN(_t)}function Qe(_t,Qt){var ct=_t||{},Zt=ct.label,ot=ct.value,Kt=ct.options,Ft=ct.groupLabel,ar=Zt||(Qt?"children":"label");return{label:ar,value:ot||"value",options:Kt||"options",groupLabel:Ft||ar}}function Ke(_t){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ct=Qt.fieldNames,Zt=Qt.childrenAsData,ot=[],Kt=Qe(ct,!1),Ft=Kt.label,ar=Kt.value,mr=Kt.options,At=Kt.groupLabel;function Mt(kt,Vt){Array.isArray(kt)&&kt.forEach(function(Nn){if(Vt||!(mr in Nn)){var Hn=Nn[ar];ot.push({key:Ve(Nn,ot.length),groupOption:Vt,data:Nn,label:Nn[Ft],value:Hn})}else{var Un=Nn[At];Un===void 0&&Zt&&(Un=Nn.label),ot.push({key:Ve(Nn,ot.length),group:!0,data:Nn,label:Un}),Mt(Nn[mr],!0)}})}return Mt(_t,!1),ot}function gt(_t){var Qt=(0,we.Z)({},_t);return"props"in Qt||Object.defineProperty(Qt,"props",{get:function(){return(0,Fe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Qt}}),Qt}var wt=function(Qt,ct,Zt){if(!ct||!ct.length)return null;var ot=!1,Kt=function ar(mr,At){var Mt=(0,fe.Z)(At),kt=Mt[0],Vt=Mt.slice(1);if(!kt)return[mr];var Nn=mr.split(kt);return ot=ot||Nn.length>1,Nn.reduce(function(Hn,Un){return[].concat((0,ge.Z)(Hn),(0,ge.Z)(ar(Un,Vt)))},[]).filter(Boolean)},Ft=Kt(Qt,ct);return ot?typeof Zt!="undefined"?Ft.slice(0,Zt):Ft:null},Tt=de.createContext(null),Je=Tt;function tt(_t){var Qt=_t.visible,ct=_t.values;if(!Qt)return null;var Zt=50;return de.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ct.slice(0,Zt).map(function(ot){var Kt=ot.label,Ft=ot.value;return["number","string"].includes((0,Ce.Z)(Kt))?Kt:Ft}).join(", ")),ct.length>Zt?", ...":null)}var Ht=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],un=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Dn=function(Qt){return Qt==="tags"||Qt==="multiple"},yn=de.forwardRef(function(_t,Qt){var ct,Zt=_t.id,ot=_t.prefixCls,Kt=_t.className,Ft=_t.showSearch,ar=_t.tagRender,mr=_t.direction,At=_t.omitDomProps,Mt=_t.displayValues,kt=_t.onDisplayValuesChange,Vt=_t.emptyOptions,Nn=_t.notFoundContent,Hn=Nn===void 0?"Not Found":Nn,Un=_t.onClear,Xn=_t.mode,pr=_t.disabled,wr=_t.loading,Or=_t.getInputElement,Lr=_t.getRawInputElement,Sr=_t.open,Mr=_t.defaultOpen,Vr=_t.onDropdownVisibleChange,oa=_t.activeValue,ra=_t.onActiveValueChange,Oa=_t.activeDescendantId,ba=_t.searchValue,Kr=_t.autoClearSearchValue,ga=_t.onSearch,Qa=_t.onSearchSplit,Da=_t.tokenSeparators,Ea=_t.allowClear,Rr=_t.prefix,Za=_t.suffixIcon,Pa=_t.clearIcon,la=_t.OptionList,Xr=_t.animation,$a=_t.transitionName,Mi=_t.dropdownStyle,$i=_t.dropdownClassName,Xa=_t.dropdownMatchSelectWidth,gi=_t.dropdownRender,Ii=_t.dropdownAlign,Ri=_t.placement,Bi=_t.builtinPlacements,ei=_t.getPopupContainer,Ar=_t.showAction,tr=Ar===void 0?[]:Ar,yr=_t.onFocus,Br=_t.onBlur,qn=_t.onKeyUp,Jr=_t.onKeyDown,Yr=_t.onMouseDown,Er=(0,Ee.Z)(_t,Ht),Dr=Dn(Xn),$r=(Ft!==void 0?Ft:Dr)||Xn==="combobox",qr=(0,we.Z)({},Er);un.forEach(function(pi){delete qr[pi]}),At==null||At.forEach(function(pi){delete qr[pi]});var Aa=de.useState(!1),Wa=(0,Se.Z)(Aa,2),na=Wa[0],li=Wa[1];de.useEffect(function(){li((0,Ge.Z)())},[]);var di=de.useRef(null),zi=de.useRef(null),Hi=de.useRef(null),Ji=de.useRef(null),Yi=de.useRef(null),Eo=de.useRef(!1),Co=Ae(),zo=(0,Se.Z)(Co,3),Go=zo[0],Ta=zo[1],fi=zo[2];de.useImperativeHandle(Qt,function(){var pi,Ei;return{focus:(pi=Ji.current)===null||pi===void 0?void 0:pi.focus,blur:(Ei=Ji.current)===null||Ei===void 0?void 0:Ei.blur,scrollTo:function(Jt){var rn;return(rn=Yi.current)===null||rn===void 0?void 0:rn.scrollTo(Jt)},nativeElement:di.current||zi.current}});var ni=de.useMemo(function(){var pi;if(Xn!=="combobox")return ba;var Ei=(pi=Mt[0])===null||pi===void 0?void 0:pi.value;return typeof Ei=="string"||typeof Ei=="number"?String(Ei):""},[ba,Xn,Mt]),xo=Xn==="combobox"&&typeof Or=="function"&&Or()||null,mi=typeof Lr=="function"&&Lr(),rl=(0,Ne.x1)(zi,mi==null||(ct=mi.props)===null||ct===void 0?void 0:ct.ref),zl=de.useState(!1),Il=(0,Se.Z)(zl,2),qo=Il[0],Xo=Il[1];(0,ft.Z)(function(){Xo(!0)},[]);var no=(0,ke.Z)(!1,{defaultValue:Mr,value:Sr}),Pl=(0,Se.Z)(no,2),Gl=Pl[0],Hl=Pl[1],So=qo?Gl:!1,fs=!Hn&&Vt;(pr||fs&&So&&Xn==="combobox")&&(So=!1);var Ul=fs?!1:So,_i=de.useCallback(function(pi){var Ei=pi!==void 0?pi:!So;pr||(Hl(Ei),So!==Ei&&(Vr==null||Vr(Ei)))},[pr,So,Hl,Vr]),Ui=de.useMemo(function(){return(Da||[]).some(function(pi){return[`
|
|
|
`,`\r
|
|
|
`].includes(pi)})},[Da]),Pi=de.useContext(Je)||{},vi=Pi.maxCount,Gi=Pi.rawValues,so=function(Ei,Bt,Jt){if(!(Dr&&It(vi)&&(Gi==null?void 0:Gi.size)>=vi)){var rn=!0,An=Ei;ra==null||ra(null);var za=wt(Ei,Da,It(vi)?vi-Gi.size:void 0),zr=Jt?null:za;return Xn!=="combobox"&&zr&&(An="",Qa==null||Qa(zr),_i(!1),rn=!1),ga&&ni!==An&&ga(An,{source:Bt?"typing":"effect"}),rn}},wl=function(Ei){!Ei||!Ei.trim()||ga(Ei,{source:"submit"})};de.useEffect(function(){!So&&!Dr&&Xn!=="combobox"&&so("",!1,!1)},[So]),de.useEffect(function(){Gl&&pr&&Hl(!1),pr&&!Eo.current&&Ta(!1)},[pr]);var Lo=_e(),po=(0,Se.Z)(Lo,2),al=po[0],hn=po[1],vn=de.useRef(!1),Tn=function(Ei){var Bt=al(),Jt=Ei.key,rn=Jt==="Enter";if(rn&&(Xn!=="combobox"&&Ei.preventDefault(),So||_i(!0)),hn(!!ni),Jt==="Backspace"&&!Bt&&Dr&&!ni&&Mt.length){for(var An=(0,ge.Z)(Mt),za=null,zr=An.length-1;zr>=0;zr-=1){var Jn=An[zr];if(!Jn.disabled){An.splice(zr,1),za=Jn;break}}za&&kt(An,{type:"remove",values:[za]})}for(var vr=arguments.length,Fr=new Array(vr>1?vr-1:0),ea=1;ea<vr;ea++)Fr[ea-1]=arguments[ea];if(So&&(!rn||!vn.current)){var jr;rn&&(vn.current=!0),(jr=Yi.current)===null||jr===void 0||jr.onKeyDown.apply(jr,[Ei].concat(Fr))}Jr==null||Jr.apply(void 0,[Ei].concat(Fr))},br=function(Ei){for(var Bt=arguments.length,Jt=new Array(Bt>1?Bt-1:0),rn=1;rn<Bt;rn++)Jt[rn-1]=arguments[rn];if(So){var An;(An=Yi.current)===null||An===void 0||An.onKeyUp.apply(An,[Ei].concat(Jt))}Ei.key==="Enter"&&(vn.current=!1),qn==null||qn.apply(void 0,[Ei].concat(Jt))},_r=function(Ei){var Bt=Mt.filter(function(Jt){return Jt!==Ei});kt(Bt,{type:"remove",values:[Ei]})},nr=function(){vn.current=!1},ir=de.useRef(!1),kn=function(){Ta(!0),pr||(yr&&!ir.current&&yr.apply(void 0,arguments),tr.includes("focus")&&_i(!0)),ir.current=!0},er=function(){Eo.current=!0,Ta(!1,function(){ir.current=!1,Eo.current=!1,_i(!1)}),!pr&&(ni&&(Xn==="tags"?ga(ni,{source:"submit"}):Xn==="multiple"&&ga("",{source:"blur"})),Br&&Br.apply(void 0,arguments))},Pr=[];de.useEffect(function(){return function(){Pr.forEach(function(pi){return clearTimeout(pi)}),Pr.splice(0,Pr.length)}},[]);var Gr=function(Ei){var Bt,Jt=Ei.target,rn=(Bt=Hi.current)===null||Bt===void 0?void 0:Bt.getPopupElement();if(rn&&rn.contains(Jt)){var An=setTimeout(function(){var vr=Pr.indexOf(An);if(vr!==-1&&Pr.splice(vr,1),fi(),!na&&!rn.contains(document.activeElement)){var Fr;(Fr=Ji.current)===null||Fr===void 0||Fr.focus()}});Pr.push(An)}for(var za=arguments.length,zr=new Array(za>1?za-1:0),Jn=1;Jn<za;Jn++)zr[Jn-1]=arguments[Jn];Yr==null||Yr.apply(void 0,[Ei].concat(zr))},Si=de.useState({}),Qi=(0,Se.Z)(Si,2),oo=Qi[1];function ro(){oo({})}var Va;mi&&(Va=function(Ei){_i(Ei)}),et(function(){var pi;return[di.current,(pi=Hi.current)===null||pi===void 0?void 0:pi.getPopupElement()]},Ul,_i,!!mi);var fa=de.useMemo(function(){return(0,we.Z)((0,we.Z)({},_t),{},{notFoundContent:Hn,open:So,triggerOpen:Ul,id:Zt,showSearch:$r,multiple:Dr,toggleOpen:_i})},[_t,Hn,Ul,So,Zt,$r,Dr,_i]),Wr=!!Za||wr,Ni;Wr&&(Ni=de.createElement(Oe,{className:Te()("".concat(ot,"-arrow"),(0,me.Z)({},"".concat(ot,"-arrow-loading"),wr)),customizeIcon:Za,customizeIconProps:{loading:wr,searchValue:ni,open:So,focused:Go,showSearch:$r}}));var Zi=function(){var Ei;Un==null||Un(),(Ei=Ji.current)===null||Ei===void 0||Ei.focus(),kt([],{type:"clear",values:Mt}),so("",!1,!1)},co=Ie(ot,Zi,Mt,Ea,Pa,pr,ni,Xn),_o=co.allowClear,Ai=co.clearIcon,ho=de.createElement(la,{ref:Yi}),Di=Te()(ot,Kt,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(ot,"-focused"),Go),"".concat(ot,"-multiple"),Dr),"".concat(ot,"-single"),!Dr),"".concat(ot,"-allow-clear"),Ea),"".concat(ot,"-show-arrow"),Wr),"".concat(ot,"-disabled"),pr),"".concat(ot,"-loading"),wr),"".concat(ot,"-open"),So),"".concat(ot,"-customize-input"),xo),"".concat(ot,"-show-search"),$r)),ya=de.createElement(ie,{ref:Hi,disabled:pr,prefixCls:ot,visible:Ul,popupElement:ho,animation:Xr,transitionName:$a,dropdownStyle:Mi,dropdownClassName:$i,direction:mr,dropdownMatchSelectWidth:Xa,dropdownRender:gi,dropdownAlign:Ii,placement:Ri,builtinPlacements:Bi,getPopupContainer:ei,empty:Vt,getTriggerDOMNode:function(Ei){return zi.current||Ei},onPopupVisibleChange:Va,onPopupMouseEnter:ro},mi?de.cloneElement(mi,{ref:rl}):de.createElement(Wt,(0,y.Z)({},_t,{domRef:zi,prefixCls:ot,inputElement:xo,ref:Ji,id:Zt,prefix:Rr,showSearch:$r,autoClearSearchValue:Kr,mode:Xn,activeDescendantId:Oa,tagRender:ar,values:Mt,open:So,onToggleOpen:_i,activeValue:oa,searchValue:ni,onSearch:so,onSearchSubmit:wl,onRemove:_r,tokenWithEnter:Ui,onInputBlur:nr}))),si;return mi?si=ya:si=de.createElement("div",(0,y.Z)({className:Di},qr,{ref:di,onMouseDown:Gr,onKeyDown:Tn,onKeyUp:br,onFocus:kn,onBlur:er}),de.createElement(tt,{visible:Go&&!So,values:Mt}),ya,Ni,_o&&Ai),de.createElement(nt.Provider,{value:fa},si)}),Lt=yn,cn=function(){return null};cn.isSelectOptGroup=!0;var Xt=cn,Xe=function(){return null};Xe.isSelectOption=!0;var Nt=Xe,dn=E(80547),xn=E(2738),at=E(48911);function Rt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var en=["disabled","title","children","style","className"];function Pt(_t){return typeof _t=="string"||typeof _t=="number"}var Ut=function(Qt,ct){var Zt=St(),ot=Zt.prefixCls,Kt=Zt.id,Ft=Zt.open,ar=Zt.multiple,mr=Zt.mode,At=Zt.searchValue,Mt=Zt.toggleOpen,kt=Zt.notFoundContent,Vt=Zt.onPopupScroll,Nn=de.useContext(Je),Hn=Nn.maxCount,Un=Nn.flattenOptions,Xn=Nn.onActiveValue,pr=Nn.defaultActiveFirstOption,wr=Nn.onSelect,Or=Nn.menuItemSelectedIcon,Lr=Nn.rawValues,Sr=Nn.fieldNames,Mr=Nn.virtual,Vr=Nn.direction,oa=Nn.listHeight,ra=Nn.listItemHeight,Oa=Nn.optionRender,ba="".concat(ot,"-item"),Kr=(0,dn.Z)(function(){return Un},[Ft,Un],function(Ar,tr){return tr[0]&&Ar[1]!==tr[1]}),ga=de.useRef(null),Qa=de.useMemo(function(){return ar&&It(Hn)&&(Lr==null?void 0:Lr.size)>=Hn},[ar,Hn,Lr==null?void 0:Lr.size]),Da=function(tr){tr.preventDefault()},Ea=function(tr){var yr;(yr=ga.current)===null||yr===void 0||yr.scrollTo(typeof tr=="number"?{index:tr}:tr)},Rr=de.useCallback(function(Ar){return mr==="combobox"?!1:Lr.has(Ar)},[mr,(0,ge.Z)(Lr).toString(),Lr.size]),Za=function(tr){for(var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Br=Kr.length,qn=0;qn<Br;qn+=1){var Jr=(tr+qn*yr+Br)%Br,Yr=Kr[Jr]||{},Er=Yr.group,Dr=Yr.data;if(!Er&&!(Dr!=null&&Dr.disabled)&&(Rr(Dr.value)||!Qa))return Jr}return-1},Pa=de.useState(function(){return Za(0)}),la=(0,Se.Z)(Pa,2),Xr=la[0],$a=la[1],Mi=function(tr){var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$a(tr);var Br={source:yr?"keyboard":"mouse"},qn=Kr[tr];if(!qn){Xn(null,-1,Br);return}Xn(qn.value,tr,Br)};(0,de.useEffect)(function(){Mi(pr!==!1?Za(0):-1)},[Kr.length,At]);var $i=de.useCallback(function(Ar){return mr==="combobox"?String(Ar).toLowerCase()===At.toLowerCase():Lr.has(Ar)},[mr,At,(0,ge.Z)(Lr).toString(),Lr.size]);(0,de.useEffect)(function(){var Ar=setTimeout(function(){if(!ar&&Ft&&Lr.size===1){var yr=Array.from(Lr)[0],Br=Kr.findIndex(function(qn){var Jr=qn.data;return At?String(Jr.value).startsWith(At):Jr.value===yr});Br!==-1&&(Mi(Br),Ea(Br))}});if(Ft){var tr;(tr=ga.current)===null||tr===void 0||tr.scrollTo(void 0)}return function(){return clearTimeout(Ar)}},[Ft,At]);var Xa=function(tr){tr!==void 0&&wr(tr,{selected:!Lr.has(tr)}),ar||Mt(!1)};if(de.useImperativeHandle(ct,function(){return{onKeyDown:function(tr){var yr=tr.which,Br=tr.ctrlKey;switch(yr){case qe.Z.N:case qe.Z.P:case qe.Z.UP:case qe.Z.DOWN:{var qn=0;if(yr===qe.Z.UP?qn=-1:yr===qe.Z.DOWN?qn=1:Rt()&&Br&&(yr===qe.Z.N?qn=1:yr===qe.Z.P&&(qn=-1)),qn!==0){var Jr=Za(Xr+qn,qn);Ea(Jr),Mi(Jr,!0)}break}case qe.Z.TAB:case qe.Z.ENTER:{var Yr,Er=Kr[Xr];Er&&!(Er!=null&&(Yr=Er.data)!==null&&Yr!==void 0&&Yr.disabled)&&!Qa?Xa(Er.value):Xa(void 0),Ft&&tr.preventDefault();break}case qe.Z.ESC:Mt(!1),Ft&&tr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(tr){Ea(tr)}}}),Kr.length===0)return de.createElement("div",{role:"listbox",id:"".concat(Kt,"_list"),className:"".concat(ba,"-empty"),onMouseDown:Da},kt);var gi=Object.keys(Sr).map(function(Ar){return Sr[Ar]}),Ii=function(tr){return tr.label};function Ri(Ar,tr){var yr=Ar.group;return{role:yr?"presentation":"option",id:"".concat(Kt,"_list_").concat(tr)}}var Bi=function(tr){var yr=Kr[tr];if(!yr)return null;var Br=yr.data||{},qn=Br.value,Jr=yr.group,Yr=(0,yt.Z)(Br,!0),Er=Ii(yr);return yr?de.createElement("div",(0,y.Z)({"aria-label":typeof Er=="string"&&!Jr?Er:null},Yr,{key:tr},Ri(yr,tr),{"aria-selected":$i(qn)}),qn):null},ei={role:"listbox",id:"".concat(Kt,"_list")};return de.createElement(de.Fragment,null,Mr&&de.createElement("div",(0,y.Z)({},ei,{style:{height:0,width:0,overflow:"hidden"}}),Bi(Xr-1),Bi(Xr),Bi(Xr+1)),de.createElement(at.Z,{itemKey:"key",ref:ga,data:Kr,height:oa,itemHeight:ra,fullHeight:!1,onMouseDown:Da,onScroll:Vt,virtual:Mr,direction:Vr,innerProps:Mr?null:ei},function(Ar,tr){var yr=Ar.group,Br=Ar.groupOption,qn=Ar.data,Jr=Ar.label,Yr=Ar.value,Er=qn.key;if(yr){var Dr,$r=(Dr=qn.title)!==null&&Dr!==void 0?Dr:Pt(Jr)?Jr.toString():void 0;return de.createElement("div",{className:Te()(ba,"".concat(ba,"-group"),qn.className),title:$r},Jr!==void 0?Jr:Er)}var qr=qn.disabled,Aa=qn.title,Wa=qn.children,na=qn.style,li=qn.className,di=(0,Ee.Z)(qn,en),zi=(0,xn.Z)(di,gi),Hi=Rr(Yr),Ji=qr||!Hi&&Qa,Yi="".concat(ba,"-option"),Eo=Te()(ba,Yi,li,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(Yi,"-grouped"),Br),"".concat(Yi,"-active"),Xr===tr&&!Ji),"".concat(Yi,"-disabled"),Ji),"".concat(Yi,"-selected"),Hi)),Co=Ii(Ar),zo=!Or||typeof Or=="function"||Hi,Go=typeof Co=="number"?Co:Co||Yr,Ta=Pt(Go)?Go.toString():void 0;return Aa!==void 0&&(Ta=Aa),de.createElement("div",(0,y.Z)({},(0,yt.Z)(zi),Mr?{}:Ri(Ar,tr),{"aria-selected":$i(Yr),className:Eo,title:Ta,onMouseMove:function(){Xr===tr||Ji||Mi(tr)},onClick:function(){Ji||Xa(Yr)},style:na}),de.createElement("div",{className:"".concat(Yi,"-content")},typeof Oa=="function"?Oa(Ar,{index:tr}):Go),de.isValidElement(Or)||Hi,zo&&de.createElement(Oe,{className:"".concat(ba,"-option-state"),customizeIcon:Or,customizeIconProps:{value:Yr,disabled:Ji,isSelected:Hi}},Hi?"\u2713":null))}))},Yt=de.forwardRef(Ut),bn=Yt,jn=function(_t,Qt){var ct=de.useRef({values:new Map,options:new Map}),Zt=de.useMemo(function(){var Kt=ct.current,Ft=Kt.values,ar=Kt.options,mr=_t.map(function(kt){if(kt.label===void 0){var Vt;return(0,we.Z)((0,we.Z)({},kt),{},{label:(Vt=Ft.get(kt.value))===null||Vt===void 0?void 0:Vt.label})}return kt}),At=new Map,Mt=new Map;return mr.forEach(function(kt){At.set(kt.value,kt),Mt.set(kt.value,Qt.get(kt.value)||ar.get(kt.value))}),ct.current.values=At,ct.current.options=Mt,mr},[_t,Qt]),ot=de.useCallback(function(Kt){return Qt.get(Kt)||ct.current.options.get(Kt)},[Qt]);return[Zt,ot]};function Bn(_t,Qt){return Ye(_t).join("").toUpperCase().includes(Qt)}var Zn=function(_t,Qt,ct,Zt,ot){return de.useMemo(function(){if(!ct||Zt===!1)return _t;var Kt=Qt.options,Ft=Qt.label,ar=Qt.value,mr=[],At=typeof Zt=="function",Mt=ct.toUpperCase(),kt=At?Zt:function(Nn,Hn){return ot?Bn(Hn[ot],Mt):Hn[Kt]?Bn(Hn[Ft!=="children"?Ft:"label"],Mt):Bn(Hn[ar],Mt)},Vt=At?function(Nn){return gt(Nn)}:function(Nn){return Nn};return _t.forEach(function(Nn){if(Nn[Kt]){var Hn=kt(ct,Vt(Nn));if(Hn)mr.push(Nn);else{var Un=Nn[Kt].filter(function(Xn){return kt(ct,Vt(Xn))});Un.length&&mr.push((0,we.Z)((0,we.Z)({},Nn),{},(0,me.Z)({},Kt,Un)))}return}kt(ct,Vt(Nn))&&mr.push(Nn)}),mr},[_t,Zt,ot,ct,Qt])},Ot=E(6551),jt=E(11592),on=["children","value"],En=["children"];function tn(_t){var Qt=_t,ct=Qt.key,Zt=Qt.props,ot=Zt.children,Kt=Zt.value,Ft=(0,Ee.Z)(Zt,on);return(0,we.Z)({key:ct,value:Kt!==void 0?Kt:ct,children:ot},Ft)}function In(_t){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,jt.Z)(_t).map(function(ct,Zt){if(!de.isValidElement(ct)||!ct.type)return null;var ot=ct,Kt=ot.type.isSelectOptGroup,Ft=ot.key,ar=ot.props,mr=ar.children,At=(0,Ee.Z)(ar,En);return Qt||!Kt?tn(ct):(0,we.Z)((0,we.Z)({key:"__RC_SELECT_GRP__".concat(Ft===null?Zt:Ft,"__"),label:Ft},At),{},{options:In(mr)})}).filter(function(ct){return ct})}var pn=function(Qt,ct,Zt,ot,Kt){return de.useMemo(function(){var Ft=Qt,ar=!Qt;ar&&(Ft=In(ct));var mr=new Map,At=new Map,Mt=function(Nn,Hn,Un){Un&&typeof Un=="string"&&Nn.set(Hn[Un],Hn)},kt=function Vt(Nn){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Un=0;Un<Nn.length;Un+=1){var Xn=Nn[Un];!Xn[Zt.options]||Hn?(mr.set(Xn[Zt.value],Xn),Mt(At,Xn,Zt.label),Mt(At,Xn,ot),Mt(At,Xn,Kt)):Vt(Xn[Zt.options],!0)}};return kt(Ft),{options:Ft,valueOptions:mr,labelOptions:At}},[Qt,ct,Zt,ot,Kt])},On=pn;function fr(_t){var Qt=de.useRef();Qt.current=_t;var ct=de.useCallback(function(){return Qt.current.apply(Qt,arguments)},[]);return ct}function Qn(_t){var Qt=_t.mode,ct=_t.options,Zt=_t.children,ot=_t.backfill,Kt=_t.allowClear,Ft=_t.placeholder,ar=_t.getInputElement,mr=_t.showSearch,At=_t.onSearch,Mt=_t.defaultOpen,kt=_t.autoFocus,Vt=_t.labelInValue,Nn=_t.value,Hn=_t.inputValue,Un=_t.optionLabelProp,Xn=isMultiple(Qt),pr=mr!==void 0?mr:Xn||Qt==="combobox",wr=ct||convertChildrenToData(Zt);if(warning(Qt!=="tags"||wr.every(function(Mr){return!Mr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Qt==="tags"||Qt==="combobox"){var Or=wr.some(function(Mr){return Mr.options?Mr.options.some(function(Vr){return typeof("value"in Vr?Vr.value:Vr.key)=="number"}):typeof("value"in Mr?Mr.value:Mr.key)=="number"});warning(!Or,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Qt!=="combobox"||!Un,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Qt==="combobox"||!ot,"`backfill` only works with `combobox` mode."),warning(Qt==="combobox"||!ar,"`getInputElement` only work with `combobox` mode."),noteOnce(Qt!=="combobox"||!ar||!Kt||!Ft,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),At&&!pr&&Qt!=="combobox"&&Qt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Mt||kt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Nn!=null){var Lr=toArray(Nn);warning(!Vt||Lr.every(function(Mr){return _typeof(Mr)==="object"&&("key"in Mr||"value"in Mr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Xn||Array.isArray(Nn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Zt){var Sr=null;toNodeArray(Zt).some(function(Mr){if(!React.isValidElement(Mr)||!Mr.type)return!1;var Vr=Mr,oa=Vr.type;if(oa.isSelectOption)return!1;if(oa.isSelectOptGroup){var ra=toNodeArray(Mr.props.children).every(function(Oa){return!React.isValidElement(Oa)||!Mr.type||Oa.type.isSelectOption?!0:(Sr=Oa.type,!1)});return!ra}return Sr=oa,!0}),Sr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Sr.displayName||Sr.name||Sr,"`.")),warning(Hn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function cr(_t,Qt){if(_t){var ct=function Zt(ot){for(var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=0;Ft<ot.length;Ft++){var ar=ot[Ft];if(ar[Qt==null?void 0:Qt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Kt&&Array.isArray(ar[Qt==null?void 0:Qt.options])&&Zt(ar[Qt==null?void 0:Qt.options],!0))break}};ct(_t)}}var Cr=null,gr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Hr=["inputValue"];function Zr(_t){return!_t||(0,Ce.Z)(_t)!=="object"}var Pn=de.forwardRef(function(_t,Qt){var ct=_t.id,Zt=_t.mode,ot=_t.prefixCls,Kt=ot===void 0?"rc-select":ot,Ft=_t.backfill,ar=_t.fieldNames,mr=_t.inputValue,At=_t.searchValue,Mt=_t.onSearch,kt=_t.autoClearSearchValue,Vt=kt===void 0?!0:kt,Nn=_t.onSelect,Hn=_t.onDeselect,Un=_t.dropdownMatchSelectWidth,Xn=Un===void 0?!0:Un,pr=_t.filterOption,wr=_t.filterSort,Or=_t.optionFilterProp,Lr=_t.optionLabelProp,Sr=_t.options,Mr=_t.optionRender,Vr=_t.children,oa=_t.defaultActiveFirstOption,ra=_t.menuItemSelectedIcon,Oa=_t.virtual,ba=_t.direction,Kr=_t.listHeight,ga=Kr===void 0?200:Kr,Qa=_t.listItemHeight,Da=Qa===void 0?20:Qa,Ea=_t.labelRender,Rr=_t.value,Za=_t.defaultValue,Pa=_t.labelInValue,la=_t.onChange,Xr=_t.maxCount,$a=(0,Ee.Z)(_t,gr),Mi=(0,Ot.ZP)(ct),$i=Dn(Zt),Xa=!!(!Sr&&Vr),gi=de.useMemo(function(){return pr===void 0&&Zt==="combobox"?!1:pr},[pr,Zt]),Ii=de.useMemo(function(){return Qe(ar,Xa)},[JSON.stringify(ar),Xa]),Ri=(0,ke.Z)("",{value:At!==void 0?At:mr,postState:function(Ui){return Ui||""}}),Bi=(0,Se.Z)(Ri,2),ei=Bi[0],Ar=Bi[1],tr=On(Sr,Vr,Ii,Or,Lr),yr=tr.valueOptions,Br=tr.labelOptions,qn=tr.options,Jr=de.useCallback(function(_i){var Ui=Ye(_i);return Ui.map(function(Pi){var vi,Gi,so,wl,Lo;if(Zr(Pi))vi=Pi;else{var po;so=Pi.key,Gi=Pi.label,vi=(po=Pi.value)!==null&&po!==void 0?po:so}var al=yr.get(vi);if(al){var hn;if(Gi===void 0&&(Gi=al==null?void 0:al[Lr||Ii.label]),so===void 0&&(so=(hn=al==null?void 0:al.key)!==null&&hn!==void 0?hn:vi),wl=al==null?void 0:al.disabled,Lo=al==null?void 0:al.title,0)var vn}return{label:Gi,value:vi,key:so,disabled:wl,title:Lo}})},[Ii,Lr,yr]),Yr=(0,ke.Z)(Za,{value:Rr}),Er=(0,Se.Z)(Yr,2),Dr=Er[0],$r=Er[1],qr=de.useMemo(function(){var _i,Ui=$i&&Dr===null?[]:Dr,Pi=Jr(Ui);return Zt==="combobox"&&ye((_i=Pi[0])===null||_i===void 0?void 0:_i.value)?[]:Pi},[Dr,Jr,Zt,$i]),Aa=jn(qr,yr),Wa=(0,Se.Z)(Aa,2),na=Wa[0],li=Wa[1],di=de.useMemo(function(){if(!Zt&&na.length===1){var _i=na[0];if(_i.value===null&&(_i.label===null||_i.label===void 0))return[]}return na.map(function(Ui){var Pi;return(0,we.Z)((0,we.Z)({},Ui),{},{label:(Pi=typeof Ea=="function"?Ea(Ui):Ui.label)!==null&&Pi!==void 0?Pi:Ui.value})})},[Zt,na,Ea]),zi=de.useMemo(function(){return new Set(na.map(function(_i){return _i.value}))},[na]);de.useEffect(function(){if(Zt==="combobox"){var _i,Ui=(_i=na[0])===null||_i===void 0?void 0:_i.value;Ar(Pe(Ui)?String(Ui):"")}},[na]);var Hi=fr(function(_i,Ui){var Pi=Ui!=null?Ui:_i;return(0,me.Z)((0,me.Z)({},Ii.value,_i),Ii.label,Pi)}),Ji=de.useMemo(function(){if(Zt!=="tags")return qn;var _i=(0,ge.Z)(qn),Ui=function(vi){return yr.has(vi)};return(0,ge.Z)(na).sort(function(Pi,vi){return Pi.value<vi.value?-1:1}).forEach(function(Pi){var vi=Pi.value;Ui(vi)||_i.push(Hi(vi,Pi.label))}),_i},[Hi,qn,yr,na,Zt]),Yi=Zn(Ji,Ii,ei,gi,Or),Eo=de.useMemo(function(){return Zt!=="tags"||!ei||Yi.some(function(_i){return _i[Or||"value"]===ei})||Yi.some(function(_i){return _i[Ii.value]===ei})?Yi:[Hi(ei)].concat((0,ge.Z)(Yi))},[Hi,Or,Zt,Yi,ei,Ii]),Co=function _i(Ui){var Pi=(0,ge.Z)(Ui).sort(function(vi,Gi){return wr(vi,Gi,{searchValue:ei})});return Pi.map(function(vi){return Array.isArray(vi.options)?(0,we.Z)((0,we.Z)({},vi),{},{options:vi.options.length>0?_i(vi.options):vi.options}):vi})},zo=de.useMemo(function(){return wr?Co(Eo):Eo},[Eo,wr,ei]),Go=de.useMemo(function(){return Ke(zo,{fieldNames:Ii,childrenAsData:Xa})},[zo,Ii,Xa]),Ta=function(Ui){var Pi=Jr(Ui);if($r(Pi),la&&(Pi.length!==na.length||Pi.some(function(so,wl){var Lo;return((Lo=na[wl])===null||Lo===void 0?void 0:Lo.value)!==(so==null?void 0:so.value)}))){var vi=Pa?Pi:Pi.map(function(so){return so.value}),Gi=Pi.map(function(so){return gt(li(so.value))});la($i?vi:vi[0],$i?Gi:Gi[0])}},fi=de.useState(null),ni=(0,Se.Z)(fi,2),xo=ni[0],mi=ni[1],rl=de.useState(0),zl=(0,Se.Z)(rl,2),Il=zl[0],qo=zl[1],Xo=oa!==void 0?oa:Zt!=="combobox",no=de.useCallback(function(_i,Ui){var Pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vi=Pi.source,Gi=vi===void 0?"keyboard":vi;qo(Ui),Ft&&Zt==="combobox"&&_i!==null&&Gi==="keyboard"&&mi(String(_i))},[Ft,Zt]),Pl=function(Ui,Pi,vi){var Gi=function(){var _r,nr=li(Ui);return[Pa?{label:nr==null?void 0:nr[Ii.label],value:Ui,key:(_r=nr==null?void 0:nr.key)!==null&&_r!==void 0?_r:Ui}:Ui,gt(nr)]};if(Pi&&Nn){var so=Gi(),wl=(0,Se.Z)(so,2),Lo=wl[0],po=wl[1];Nn(Lo,po)}else if(!Pi&&Hn&&vi!=="clear"){var al=Gi(),hn=(0,Se.Z)(al,2),vn=hn[0],Tn=hn[1];Hn(vn,Tn)}},Gl=fr(function(_i,Ui){var Pi,vi=$i?Ui.selected:!0;vi?Pi=$i?[].concat((0,ge.Z)(na),[_i]):[_i]:Pi=na.filter(function(Gi){return Gi.value!==_i}),Ta(Pi),Pl(_i,vi),Zt==="combobox"?mi(""):(!Dn||Vt)&&(Ar(""),mi(""))}),Hl=function(Ui,Pi){Ta(Ui);var vi=Pi.type,Gi=Pi.values;(vi==="remove"||vi==="clear")&&Gi.forEach(function(so){Pl(so.value,!1,vi)})},So=function(Ui,Pi){if(Ar(Ui),mi(null),Pi.source==="submit"){var vi=(Ui||"").trim();if(vi){var Gi=Array.from(new Set([].concat((0,ge.Z)(zi),[vi])));Ta(Gi),Pl(vi,!0),Ar("")}return}Pi.source!=="blur"&&(Zt==="combobox"&&Ta(Ui),Mt==null||Mt(Ui))},fs=function(Ui){var Pi=Ui;Zt!=="tags"&&(Pi=Ui.map(function(Gi){var so=Br.get(Gi);return so==null?void 0:so.value}).filter(function(Gi){return Gi!==void 0}));var vi=Array.from(new Set([].concat((0,ge.Z)(zi),(0,ge.Z)(Pi))));Ta(vi),vi.forEach(function(Gi){Pl(Gi,!0)})},Ul=de.useMemo(function(){var _i=Oa!==!1&&Xn!==!1;return(0,we.Z)((0,we.Z)({},tr),{},{flattenOptions:Go,onActiveValue:no,defaultActiveFirstOption:Xo,onSelect:Gl,menuItemSelectedIcon:ra,rawValues:zi,fieldNames:Ii,virtual:_i,direction:ba,listHeight:ga,listItemHeight:Da,childrenAsData:Xa,maxCount:Xr,optionRender:Mr})},[Xr,tr,Go,no,Xo,Gl,ra,zi,Ii,Oa,Xn,ba,ga,Da,Xa,Mr]);return de.createElement(Je.Provider,{value:Ul},de.createElement(Lt,(0,y.Z)({},$a,{id:Mi,prefixCls:Kt,ref:Qt,omitDomProps:Hr,mode:Zt,displayValues:di,onDisplayValuesChange:Hl,direction:ba,searchValue:ei,onSearch:So,autoClearSearchValue:Vt,onSearchSplit:fs,dropdownMatchSelectWidth:Xn,OptionList:bn,emptyOptions:!Go.length,activeValue:xo,activeDescendantId:"".concat(Mi,"_list_").concat(Il)})))}),$n=Pn;$n.Option=Nt,$n.OptGroup=Xt;var dr=$n,hr=dr},22711:function(Rn,qt,E){"use strict";E.r(qt),E.d(qt,{ResizableTextArea:function(){return pe},default:function(){return Et}});var y=E(60499),ge=E(18642),me=E(85899),we=E(77654),Se=E(72190),Ee=E(42244),Ce=E(92310),ke=E.n(Ce),Fe=E(36901),de=E(66003),We=E(30292),Te=E(18929),ft=E(59301),Ge=E(43749),Ne=E(29301),Be=E(34280),Oe=E(16089),Ie=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,nt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],St={},Ae;function _e(Ye){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Ye.getAttribute("id")||Ye.getAttribute("data-reactid")||Ye.getAttribute("name");if(je&&St[it])return St[it];var Pe=window.getComputedStyle(Ye),ye=Pe.getPropertyValue("box-sizing")||Pe.getPropertyValue("-moz-box-sizing")||Pe.getPropertyValue("-webkit-box-sizing"),vt=parseFloat(Pe.getPropertyValue("padding-bottom"))+parseFloat(Pe.getPropertyValue("padding-top")),zt=parseFloat(Pe.getPropertyValue("border-bottom-width"))+parseFloat(Pe.getPropertyValue("border-top-width")),Ct=nt.map(function(mt){return"".concat(mt,":").concat(Pe.getPropertyValue(mt))}).join(";"),De={sizingStyle:Ct,paddingSize:vt,borderSize:zt,boxSizing:ye};return je&&it&&(St[it]=De),De}function et(Ye){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ae||(Ae=document.createElement("textarea"),Ae.setAttribute("tab-index","-1"),Ae.setAttribute("aria-hidden","true"),Ae.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ae)),Ye.getAttribute("wrap")?Ae.setAttribute("wrap",Ye.getAttribute("wrap")):Ae.removeAttribute("wrap");var ye=_e(Ye,je),vt=ye.paddingSize,zt=ye.borderSize,Ct=ye.boxSizing,De=ye.sizingStyle;Ae.setAttribute("style","".concat(De,";").concat(Ie)),Ae.value=Ye.value||Ye.placeholder||"";var mt=void 0,dt=void 0,Gt,bt=Ae.scrollHeight;if(Ct==="border-box"?bt+=zt:Ct==="content-box"&&(bt-=vt),it!==null||Pe!==null){Ae.value=" ";var xt=Ae.scrollHeight-vt;it!==null&&(mt=xt*it,Ct==="border-box"&&(mt=mt+vt+zt),bt=Math.max(mt,bt)),Pe!==null&&(dt=xt*Pe,Ct==="border-box"&&(dt=dt+vt+zt),Gt=bt>dt?"":"hidden",bt=Math.min(dt,bt))}var pt={height:bt,overflowY:Gt,resize:"none"};return mt&&(pt.minHeight=mt),dt&&(pt.maxHeight=dt),pt}var qe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ut=0,yt=1,st=2,$e=ft.forwardRef(function(Ye,je){var it=Ye,Pe=it.prefixCls,ye=it.defaultValue,vt=it.value,zt=it.autoSize,Ct=it.onResize,De=it.className,mt=it.style,dt=it.disabled,Gt=it.onChange,bt=it.onInternalAutoSize,xt=(0,Ee.Z)(it,qe),pt=(0,Te.Z)(ye,{value:vt,postState:function(Nt){return Nt!=null?Nt:""}}),ln=(0,Se.Z)(pt,2),Wt=ln[0],ue=ln[1],ae=function(Nt){ue(Nt.target.value),Gt==null||Gt(Nt)},re=ft.useRef();ft.useImperativeHandle(je,function(){return{textArea:re.current}});var se=ft.useMemo(function(){return zt&&(0,Ge.Z)(zt)==="object"?[zt.minRows,zt.maxRows]:[]},[zt]),ve=(0,Se.Z)(se,2),ie=ve[0],fe=ve[1],Ve=!!zt,It=function(){try{if(document.activeElement===re.current){var Nt=re.current,dn=Nt.selectionStart,xn=Nt.selectionEnd,at=Nt.scrollTop;re.current.setSelectionRange(dn,xn),re.current.scrollTop=at}}catch(Rt){}},Qe=ft.useState(st),Ke=(0,Se.Z)(Qe,2),gt=Ke[0],wt=Ke[1],Tt=ft.useState(),Je=(0,Se.Z)(Tt,2),tt=Je[0],Ht=Je[1],un=function(){wt(ut)};(0,Be.Z)(function(){Ve&&un()},[vt,ie,fe,Ve]),(0,Be.Z)(function(){if(gt===ut)wt(yt);else if(gt===yt){var Xe=et(re.current,!1,ie,fe);wt(st),Ht(Xe)}else It()},[gt]);var Dn=ft.useRef(),yn=function(){Oe.Z.cancel(Dn.current)},Lt=function(Nt){gt===st&&(Ct==null||Ct(Nt),zt&&(yn(),Dn.current=(0,Oe.Z)(function(){un()})))};ft.useEffect(function(){return yn},[]);var cn=Ve?tt:null,Xt=(0,me.Z)((0,me.Z)({},mt),cn);return(gt===ut||gt===yt)&&(Xt.overflowY="hidden",Xt.overflowX="hidden"),ft.createElement(Ne.Z,{onResize:Lt,disabled:!(zt||Ct)},ft.createElement("textarea",(0,y.Z)({},xt,{ref:re,style:Xt,className:ke()(Pe,De,(0,ge.Z)({},"".concat(Pe,"-disabled"),dt)),disabled:dt,value:Wt,onChange:ae})))}),pe=$e,Le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],xe=ft.forwardRef(function(Ye,je){var it,Pe=Ye.defaultValue,ye=Ye.value,vt=Ye.onFocus,zt=Ye.onBlur,Ct=Ye.onChange,De=Ye.allowClear,mt=Ye.maxLength,dt=Ye.onCompositionStart,Gt=Ye.onCompositionEnd,bt=Ye.suffix,xt=Ye.prefixCls,pt=xt===void 0?"rc-textarea":xt,ln=Ye.showCount,Wt=Ye.count,ue=Ye.className,ae=Ye.style,re=Ye.disabled,se=Ye.hidden,ve=Ye.classNames,ie=Ye.styles,fe=Ye.onResize,Ve=Ye.onClear,It=Ye.onPressEnter,Qe=Ye.readOnly,Ke=Ye.autoSize,gt=Ye.onKeyDown,wt=(0,Ee.Z)(Ye,Le),Tt=(0,Te.Z)(Pe,{value:ye,defaultValue:Pe}),Je=(0,Se.Z)(Tt,2),tt=Je[0],Ht=Je[1],un=tt==null?"":String(tt),Dn=ft.useState(!1),yn=(0,Se.Z)(Dn,2),Lt=yn[0],cn=yn[1],Xt=ft.useRef(!1),Xe=ft.useState(null),Nt=(0,Se.Z)(Xe,2),dn=Nt[0],xn=Nt[1],at=(0,ft.useRef)(null),Rt=(0,ft.useRef)(null),en=function(){var $n;return($n=Rt.current)===null||$n===void 0?void 0:$n.textArea},Pt=function(){en().focus()};(0,ft.useImperativeHandle)(je,function(){var Pn;return{resizableTextArea:Rt.current,focus:Pt,blur:function(){en().blur()},nativeElement:((Pn=at.current)===null||Pn===void 0?void 0:Pn.nativeElement)||en()}}),(0,ft.useEffect)(function(){cn(function(Pn){return!re&&Pn})},[re]);var Ut=ft.useState(null),Yt=(0,Se.Z)(Ut,2),bn=Yt[0],jn=Yt[1];ft.useEffect(function(){if(bn){var Pn;(Pn=en()).setSelectionRange.apply(Pn,(0,we.Z)(bn))}},[bn]);var Bn=(0,de.Z)(Wt,ln),Zn=(it=Bn.max)!==null&&it!==void 0?it:mt,Ot=Number(Zn)>0,jt=Bn.strategy(un),on=!!Zn&&jt>Zn,En=function($n,dr){var hr=dr;!Xt.current&&Bn.exceedFormatter&&Bn.max&&Bn.strategy(dr)>Bn.max&&(hr=Bn.exceedFormatter(dr,{max:Bn.max}),dr!==hr&&jn([en().selectionStart||0,en().selectionEnd||0])),Ht(hr),(0,We.rJ)($n.currentTarget,$n,Ct,hr)},tn=function($n){Xt.current=!0,dt==null||dt($n)},In=function($n){Xt.current=!1,En($n,$n.currentTarget.value),Gt==null||Gt($n)},pn=function($n){En($n,$n.target.value)},On=function($n){$n.key==="Enter"&&It&&It($n),gt==null||gt($n)},fr=function($n){cn(!0),vt==null||vt($n)},Qn=function($n){cn(!1),zt==null||zt($n)},cr=function($n){Ht(""),Pt(),(0,We.rJ)(en(),$n,Ct)},Cr=bt,gr;Bn.show&&(Bn.showFormatter?gr=Bn.showFormatter({value:un,count:jt,maxLength:Zn}):gr="".concat(jt).concat(Ot?" / ".concat(Zn):""),Cr=ft.createElement(ft.Fragment,null,Cr,ft.createElement("span",{className:ke()("".concat(pt,"-data-count"),ve==null?void 0:ve.count),style:ie==null?void 0:ie.count},gr)));var Hr=function($n){var dr;fe==null||fe($n),(dr=en())!==null&&dr!==void 0&&dr.style.height&&xn(!0)},Zr=!Ke&&!ln&&!De;return ft.createElement(Fe.BaseInput,{ref:at,value:un,allowClear:De,handleReset:cr,suffix:Cr,prefixCls:pt,classNames:(0,me.Z)((0,me.Z)({},ve),{},{affixWrapper:ke()(ve==null?void 0:ve.affixWrapper,(0,ge.Z)((0,ge.Z)({},"".concat(pt,"-show-count"),ln),"".concat(pt,"-textarea-allow-clear"),De))}),disabled:re,focused:Lt,className:ke()(ue,on&&"".concat(pt,"-out-of-range")),style:(0,me.Z)((0,me.Z)({},ae),dn&&!Zr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gr=="string"?gr:void 0}},hidden:se,readOnly:Qe,onClear:Ve},ft.createElement(pe,(0,y.Z)({},wt,{autoSize:Ke,maxLength:mt,onKeyDown:On,onChange:pn,onFocus:fr,onBlur:Qn,onCompositionStart:tn,onCompositionEnd:In,className:ke()(ve==null?void 0:ve.textarea),style:(0,me.Z)((0,me.Z)({},ie==null?void 0:ie.textarea),{},{resize:ae==null?void 0:ae.resize}),disabled:re,prefixCls:pt,onResize:Hr,ref:Rt,readOnly:Qe})))}),ce=xe,Et=ce},639:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return St}});var y=E(60499),ge=E(18642),me=E(85899),we=E(72190),Se=E(42244),Ee=E(59301),Ce=E(92310),ke=E.n(Ce),Fe=E(26112),de=E(30699),We=function(_e){for(var et=_e.prefixCls,qe=_e.level,ut=_e.isStart,yt=_e.isEnd,st="".concat(et,"-indent-unit"),$e=[],pe=0;pe<qe;pe+=1)$e.push(Ee.createElement("span",{key:pe,className:ke()(st,(0,ge.Z)((0,ge.Z)({},"".concat(st,"-start"),ut[pe]),"".concat(st,"-end"),yt[pe]))}));return Ee.createElement("span",{"aria-hidden":"true",className:"".concat(et,"-indent")},$e)},Te=Ee.memo(We),ft=E(65065),Ge=E(34061),Ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Be="open",Oe="close",Ie="---",nt=function(_e){var et,qe,ut,yt=_e.eventKey,st=_e.className,$e=_e.style,pe=_e.dragOver,Le=_e.dragOverGapTop,xe=_e.dragOverGapBottom,ce=_e.isLeaf,Et=_e.isStart,Ye=_e.isEnd,je=_e.expanded,it=_e.selected,Pe=_e.checked,ye=_e.halfChecked,vt=_e.loading,zt=_e.domRef,Ct=_e.active,De=_e.data,mt=_e.onMouseMove,dt=_e.selectable,Gt=(0,Se.Z)(_e,Ne),bt=Ee.useContext(de.k),xt=Ee.useContext(de.y),pt=Ee.useRef(null),ln=Ee.useState(!1),Wt=(0,we.Z)(ln,2),ue=Wt[0],ae=Wt[1],re=!!(bt.disabled||_e.disabled||(et=xt.nodeDisabled)!==null&&et!==void 0&&et.call(xt,De)),se=Ee.useMemo(function(){return!bt.checkable||_e.checkable===!1?!1:bt.checkable},[bt.checkable,_e.checkable]),ve=function(jt){re||bt.onNodeSelect(jt,(0,Ge.F)(_e))},ie=function(jt){re||!se||_e.disableCheckbox||bt.onNodeCheck(jt,(0,Ge.F)(_e),!Pe)},fe=Ee.useMemo(function(){return typeof dt=="boolean"?dt:bt.selectable},[dt,bt.selectable]),Ve=function(jt){bt.onNodeClick(jt,(0,Ge.F)(_e)),fe?ve(jt):ie(jt)},It=function(jt){bt.onNodeDoubleClick(jt,(0,Ge.F)(_e))},Qe=function(jt){bt.onNodeMouseEnter(jt,(0,Ge.F)(_e))},Ke=function(jt){bt.onNodeMouseLeave(jt,(0,Ge.F)(_e))},gt=function(jt){bt.onNodeContextMenu(jt,(0,Ge.F)(_e))},wt=Ee.useMemo(function(){return!!(bt.draggable&&(!bt.draggable.nodeDraggable||bt.draggable.nodeDraggable(De)))},[bt.draggable,De]),Tt=function(jt){jt.stopPropagation(),ae(!0),bt.onNodeDragStart(jt,_e);try{jt.dataTransfer.setData("text/plain","")}catch(on){}},Je=function(jt){jt.preventDefault(),jt.stopPropagation(),bt.onNodeDragEnter(jt,_e)},tt=function(jt){jt.preventDefault(),jt.stopPropagation(),bt.onNodeDragOver(jt,_e)},Ht=function(jt){jt.stopPropagation(),bt.onNodeDragLeave(jt,_e)},un=function(jt){jt.stopPropagation(),ae(!1),bt.onNodeDragEnd(jt,_e)},Dn=function(jt){jt.preventDefault(),jt.stopPropagation(),ae(!1),bt.onNodeDrop(jt,_e)},yn=function(jt){vt||bt.onNodeExpand(jt,(0,Ge.F)(_e))},Lt=Ee.useMemo(function(){var Ot=(0,ft.Z)(bt.keyEntities,yt)||{},jt=Ot.children;return!!(jt||[]).length},[bt.keyEntities,yt]),cn=Ee.useMemo(function(){return ce===!1?!1:ce||!bt.loadData&&!Lt||bt.loadData&&_e.loaded&&!Lt},[ce,bt.loadData,Lt,_e.loaded]);Ee.useEffect(function(){vt||typeof bt.loadData=="function"&&je&&!cn&&!_e.loaded&&bt.onNodeLoad((0,Ge.F)(_e))},[vt,bt.loadData,bt.onNodeLoad,je,cn,_e]);var Xt=Ee.useMemo(function(){var Ot;return(Ot=bt.draggable)!==null&&Ot!==void 0&&Ot.icon?Ee.createElement("span",{className:"".concat(bt.prefixCls,"-draggable-icon")},bt.draggable.icon):null},[bt.draggable]),Xe=function(jt){var on=_e.switcherIcon||bt.switcherIcon;return typeof on=="function"?on((0,me.Z)((0,me.Z)({},_e),{},{isLeaf:jt})):on},Nt=function(){if(cn){var jt=Xe(!0);return jt!==!1?Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-switcher"),"".concat(bt.prefixCls,"-switcher-noop"))},jt):null}var on=Xe(!1);return on!==!1?Ee.createElement("span",{onClick:yn,className:ke()("".concat(bt.prefixCls,"-switcher"),"".concat(bt.prefixCls,"-switcher_").concat(je?Be:Oe))},on):null},dn=Ee.useMemo(function(){if(!se)return null;var Ot=typeof se!="boolean"?se:null;return Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-checkbox"),(0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(bt.prefixCls,"-checkbox-checked"),Pe),"".concat(bt.prefixCls,"-checkbox-indeterminate"),!Pe&&ye),"".concat(bt.prefixCls,"-checkbox-disabled"),re||_e.disableCheckbox)),onClick:ie,role:"checkbox","aria-checked":ye?"mixed":Pe,"aria-disabled":re||_e.disableCheckbox,"aria-label":"Select ".concat(typeof _e.title=="string"?_e.title:"tree node")},Ot)},[se,Pe,ye,re,_e.disableCheckbox,_e.title]),xn=Ee.useMemo(function(){return cn?null:je?Be:Oe},[cn,je]),at=Ee.useMemo(function(){return Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-iconEle"),"".concat(bt.prefixCls,"-icon__").concat(xn||"docu"),(0,ge.Z)({},"".concat(bt.prefixCls,"-icon_loading"),vt))})},[bt.prefixCls,xn,vt]),Rt=Ee.useMemo(function(){var Ot=!!bt.draggable,jt=!_e.disabled&&Ot&&bt.dragOverNodeKey===yt;return jt?bt.dropIndicatorRender({dropPosition:bt.dropPosition,dropLevelOffset:bt.dropLevelOffset,indent:bt.indent,prefixCls:bt.prefixCls,direction:bt.direction}):null},[bt.dropPosition,bt.dropLevelOffset,bt.indent,bt.prefixCls,bt.direction,bt.draggable,bt.dragOverNodeKey,bt.dropIndicatorRender]),en=Ee.useMemo(function(){var Ot=_e.title,jt=Ot===void 0?Ie:Ot,on="".concat(bt.prefixCls,"-node-content-wrapper"),En;if(bt.showIcon){var tn=_e.icon||bt.icon;En=tn?Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-iconEle"),"".concat(bt.prefixCls,"-icon__customize"))},typeof tn=="function"?tn(_e):tn):at}else bt.loadData&&vt&&(En=at);var In;return typeof jt=="function"?In=jt(De):bt.titleRender?In=bt.titleRender(De):In=jt,Ee.createElement("span",{ref:pt,title:typeof jt=="string"?jt:"",className:ke()(on,"".concat(on,"-").concat(xn||"normal"),(0,ge.Z)({},"".concat(bt.prefixCls,"-node-selected"),!re&&(it||ue))),onMouseEnter:Qe,onMouseLeave:Ke,onContextMenu:gt,onClick:Ve,onDoubleClick:It},En,Ee.createElement("span",{className:"".concat(bt.prefixCls,"-title")},In),Rt)},[bt.prefixCls,bt.showIcon,_e,bt.icon,at,bt.titleRender,De,xn,Qe,Ke,gt,Ve,It]),Pt=(0,Fe.Z)(Gt,{aria:!0,data:!0}),Ut=(0,ft.Z)(bt.keyEntities,yt)||{},Yt=Ut.level,bn=Ye[Ye.length-1],jn=!re&&wt,Bn=bt.draggingNodeKey===yt,Zn=dt!==void 0?{"aria-selected":!!dt}:void 0;return Ee.createElement("div",(0,y.Z)({ref:zt,role:"treeitem","aria-expanded":ce?void 0:je,className:ke()(st,"".concat(bt.prefixCls,"-treenode"),(ut={},(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)(ut,"".concat(bt.prefixCls,"-treenode-disabled"),re),"".concat(bt.prefixCls,"-treenode-switcher-").concat(je?"open":"close"),!ce),"".concat(bt.prefixCls,"-treenode-checkbox-checked"),Pe),"".concat(bt.prefixCls,"-treenode-checkbox-indeterminate"),ye),"".concat(bt.prefixCls,"-treenode-selected"),it),"".concat(bt.prefixCls,"-treenode-loading"),vt),"".concat(bt.prefixCls,"-treenode-active"),Ct),"".concat(bt.prefixCls,"-treenode-leaf-last"),bn),"".concat(bt.prefixCls,"-treenode-draggable"),wt),"dragging",Bn),(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)(ut,"drop-target",bt.dropTargetKey===yt),"drop-container",bt.dropContainerKey===yt),"drag-over",!re&&pe),"drag-over-gap-top",!re&&Le),"drag-over-gap-bottom",!re&&xe),"filter-node",(qe=bt.filterTreeNode)===null||qe===void 0?void 0:qe.call(bt,(0,Ge.F)(_e))),"".concat(bt.prefixCls,"-treenode-leaf"),cn))),style:$e,draggable:jn,onDragStart:jn?Tt:void 0,onDragEnter:wt?Je:void 0,onDragOver:wt?tt:void 0,onDragLeave:wt?Ht:void 0,onDrop:wt?Dn:void 0,onDragEnd:wt?un:void 0,onMouseMove:mt},Zn,Pt),Ee.createElement(Te,{prefixCls:bt.prefixCls,level:Yt,isStart:Et,isEnd:Ye}),Xt,Nt(),dn,en)};nt.isTreeNode=1;var St=nt},30699:function(Rn,qt,E){"use strict";E.d(qt,{k:function(){return ge},y:function(){return me}});var y=E(59301),ge=y.createContext(null),me=y.createContext({})},87632:function(Rn,qt,E){"use strict";E.d(qt,{OF:function(){return yt.Z},y6:function(){return Oe.y},ZP:function(){return re}});var y=E(60499),ge=E(43749),me=E(85899),we=E(77654),Se=E(38705),Ee=E(17212),Ce=E(15793),ke=E(39153),Fe=E(55401),de=E(18642),We=E(92310),Te=E.n(We),ft=E(10228),Ge=E(26112),Ne=E(48736),Be=E(59301),Oe=E(30699),Ie=function(ve){var ie=ve.dropPosition,fe=ve.dropLevelOffset,Ve=ve.indent,It={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ie){case-1:It.top=0,It.left=-fe*Ve;break;case 1:It.bottom=0,It.left=-fe*Ve;break;case 0:It.bottom=0,It.left=Ve;break}return Be.createElement("div",{style:It})},nt=Ie;function St(se){if(se==null)throw new TypeError("Cannot destructure "+se)}var Ae=E(72190),_e=E(42244),et=E(34280),qe=E(48911),ut=E(77900),yt=E(639);function st(se,ve){var ie=Be.useState(!1),fe=(0,Ae.Z)(ie,2),Ve=fe[0],It=fe[1];(0,et.Z)(function(){if(Ve)return se(),function(){ve()}},[Ve]),(0,et.Z)(function(){return It(!0),function(){It(!1)}},[])}var $e=st,pe=E(34061),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],xe=Be.forwardRef(function(se,ve){var ie=se.className,fe=se.style,Ve=se.motion,It=se.motionNodes,Qe=se.motionType,Ke=se.onMotionStart,gt=se.onMotionEnd,wt=se.active,Tt=se.treeNodeRequiredProps,Je=(0,_e.Z)(se,Le),tt=Be.useState(!0),Ht=(0,Ae.Z)(tt,2),un=Ht[0],Dn=Ht[1],yn=Be.useContext(Oe.k),Lt=yn.prefixCls,cn=It&&Qe!=="hide";(0,et.Z)(function(){It&&cn!==un&&Dn(cn)},[It]);var Xt=function(){It&&Ke()},Xe=Be.useRef(!1),Nt=function(){It&&!Xe.current&&(Xe.current=!0,gt())};$e(Xt,Nt);var dn=function(at){cn===at&&Nt()};return It?Be.createElement(ut.default,(0,y.Z)({ref:ve,visible:un},Ve,{motionAppear:Qe==="show",onVisibleChanged:dn}),function(xn,at){var Rt=xn.className,en=xn.style;return Be.createElement("div",{ref:at,className:Te()("".concat(Lt,"-treenode-motion"),Rt),style:en},It.map(function(Pt){var Ut=Object.assign({},(St(Pt.data),Pt.data)),Yt=Pt.title,bn=Pt.key,jn=Pt.isStart,Bn=Pt.isEnd;delete Ut.children;var Zn=(0,pe.H8)(bn,Tt);return Be.createElement(yt.Z,(0,y.Z)({},Ut,Zn,{title:Yt,active:wt,data:Pt.data,key:bn,isStart:jn,isEnd:Bn}))}))}):Be.createElement(yt.Z,(0,y.Z)({domRef:ve,className:ie,style:fe},Je,{active:wt}))}),ce=xe;function Et(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=se.length,fe=ve.length;if(Math.abs(ie-fe)!==1)return{add:!1,key:null};function Ve(It,Qe){var Ke=new Map;It.forEach(function(wt){Ke.set(wt,!0)});var gt=Qe.filter(function(wt){return!Ke.has(wt)});return gt.length===1?gt[0]:null}return ie<fe?{add:!0,key:Ve(se,ve)}:{add:!1,key:Ve(ve,se)}}function Ye(se,ve,ie){var fe=se.findIndex(function(Ke){return Ke.key===ie}),Ve=se[fe+1],It=ve.findIndex(function(Ke){return Ke.key===ie});if(Ve){var Qe=ve.findIndex(function(Ke){return Ke.key===Ve.key});return ve.slice(It+1,Qe)}return ve.slice(It+1)}var je=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],it={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Pe=function(){},ye="RC_TREE_MOTION_".concat(Math.random()),vt={key:ye},zt={key:ye,level:0,index:0,pos:"0",node:vt,nodes:[vt]},Ct={parent:null,children:[],pos:zt.pos,data:vt,title:null,key:ye,isStart:[],isEnd:[]};function De(se,ve,ie,fe){return ve===!1||!ie?se:se.slice(0,Math.ceil(ie/fe)+1)}function mt(se){var ve=se.key,ie=se.pos;return(0,pe.km)(ve,ie)}function dt(se){for(var ve=String(se.data.key),ie=se;ie.parent;)ie=ie.parent,ve="".concat(ie.data.key," > ").concat(ve);return ve}var Gt=Be.forwardRef(function(se,ve){var ie=se.prefixCls,fe=se.data,Ve=se.selectable,It=se.checkable,Qe=se.expandedKeys,Ke=se.selectedKeys,gt=se.checkedKeys,wt=se.loadedKeys,Tt=se.loadingKeys,Je=se.halfCheckedKeys,tt=se.keyEntities,Ht=se.disabled,un=se.dragging,Dn=se.dragOverNodeKey,yn=se.dropPosition,Lt=se.motion,cn=se.height,Xt=se.itemHeight,Xe=se.virtual,Nt=se.scrollWidth,dn=se.focusable,xn=se.activeItem,at=se.focused,Rt=se.tabIndex,en=se.onKeyDown,Pt=se.onFocus,Ut=se.onBlur,Yt=se.onActiveChange,bn=se.onListChangeStart,jn=se.onListChangeEnd,Bn=(0,_e.Z)(se,je),Zn=Be.useRef(null),Ot=Be.useRef(null);Be.useImperativeHandle(ve,function(){return{scrollTo:function(ar){Zn.current.scrollTo(ar)},getIndentWidth:function(){return Ot.current.offsetWidth}}});var jt=Be.useState(Qe),on=(0,Ae.Z)(jt,2),En=on[0],tn=on[1],In=Be.useState(fe),pn=(0,Ae.Z)(In,2),On=pn[0],fr=pn[1],Qn=Be.useState(fe),cr=(0,Ae.Z)(Qn,2),Cr=cr[0],gr=cr[1],Hr=Be.useState([]),Zr=(0,Ae.Z)(Hr,2),Pn=Zr[0],$n=Zr[1],dr=Be.useState(null),hr=(0,Ae.Z)(dr,2),_t=hr[0],Qt=hr[1],ct=Be.useRef(fe);ct.current=fe;function Zt(){var Ft=ct.current;fr(Ft),gr(Ft),$n([]),Qt(null),jn()}(0,et.Z)(function(){tn(Qe);var Ft=Et(En,Qe);if(Ft.key!==null)if(Ft.add){var ar=On.findIndex(function(Nn){var Hn=Nn.key;return Hn===Ft.key}),mr=De(Ye(On,fe,Ft.key),Xe,cn,Xt),At=On.slice();At.splice(ar+1,0,Ct),gr(At),$n(mr),Qt("show")}else{var Mt=fe.findIndex(function(Nn){var Hn=Nn.key;return Hn===Ft.key}),kt=De(Ye(fe,On,Ft.key),Xe,cn,Xt),Vt=fe.slice();Vt.splice(Mt+1,0,Ct),gr(Vt),$n(kt),Qt("hide")}else On!==fe&&(fr(fe),gr(fe))},[Qe,fe]),Be.useEffect(function(){un||Zt()},[un]);var ot=Lt?Cr:fe,Kt={expandedKeys:Qe,selectedKeys:Ke,loadedKeys:wt,loadingKeys:Tt,checkedKeys:gt,halfCheckedKeys:Je,dragOverNodeKey:Dn,dropPosition:yn,keyEntities:tt};return Be.createElement(Be.Fragment,null,at&&xn&&Be.createElement("span",{style:it,"aria-live":"assertive"},dt(xn)),Be.createElement("div",null,Be.createElement("input",{style:it,disabled:dn===!1||Ht,tabIndex:dn!==!1?Rt:null,onKeyDown:en,onFocus:Pt,onBlur:Ut,value:"",onChange:Pe,"aria-label":"for screen reader"})),Be.createElement("div",{className:"".concat(ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Be.createElement("div",{className:"".concat(ie,"-indent")},Be.createElement("div",{ref:Ot,className:"".concat(ie,"-indent-unit")}))),Be.createElement(qe.Z,(0,y.Z)({},Bn,{data:ot,itemKey:mt,height:cn,fullHeight:!1,virtual:Xe,itemHeight:Xt,scrollWidth:Nt,prefixCls:"".concat(ie,"-list"),ref:Zn,role:"tree",onVisibleChange:function(ar){ar.every(function(mr){return mt(mr)!==ye})&&Zt()}}),function(Ft){var ar=Ft.pos,mr=Object.assign({},(St(Ft.data),Ft.data)),At=Ft.title,Mt=Ft.key,kt=Ft.isStart,Vt=Ft.isEnd,Nn=(0,pe.km)(Mt,ar);delete mr.key,delete mr.children;var Hn=(0,pe.H8)(Nn,Kt);return Be.createElement(ce,(0,y.Z)({},mr,Hn,{title:At,active:!!xn&&Mt===xn.key,pos:ar,data:Ft.data,isStart:kt,isEnd:Vt,motion:Lt,motionNodes:Mt===ye?Pn:null,motionType:_t,onMotionStart:bn,onMotionEnd:Zt,treeNodeRequiredProps:Kt,onMouseMove:function(){Yt(null)}}))}))}),bt=Gt,xt=E(82661),pt=E(34643),ln=E(65065),Wt=10,ue=function(se){(0,ke.Z)(ie,se);var ve=(0,Fe.Z)(ie);function ie(){var fe;(0,Se.Z)(this,ie);for(var Ve=arguments.length,It=new Array(Ve),Qe=0;Qe<Ve;Qe++)It[Qe]=arguments[Qe];return fe=ve.call.apply(ve,[this].concat(It)),(0,de.Z)((0,Ce.Z)(fe),"destroyed",!1),(0,de.Z)((0,Ce.Z)(fe),"delayedDragEnterLogic",void 0),(0,de.Z)((0,Ce.Z)(fe),"loadingRetryTimes",{}),(0,de.Z)((0,Ce.Z)(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,pe.w$)()}),(0,de.Z)((0,Ce.Z)(fe),"dragStartMousePosition",null),(0,de.Z)((0,Ce.Z)(fe),"dragNodeProps",null),(0,de.Z)((0,Ce.Z)(fe),"currentMouseOverDroppableNodeKey",null),(0,de.Z)((0,Ce.Z)(fe),"listRef",Be.createRef()),(0,de.Z)((0,Ce.Z)(fe),"onNodeDragStart",function(Ke,gt){var wt=fe.state,Tt=wt.expandedKeys,Je=wt.keyEntities,tt=fe.props.onDragStart,Ht=gt.eventKey;fe.dragNodeProps=gt,fe.dragStartMousePosition={x:Ke.clientX,y:Ke.clientY};var un=(0,xt._5)(Tt,Ht);fe.setState({draggingNodeKey:Ht,dragChildrenKeys:(0,xt.wA)(Ht,Je),indent:fe.listRef.current.getIndentWidth()}),fe.setExpandedKeys(un),window.addEventListener("dragend",fe.onWindowDragEnd),tt==null||tt({event:Ke,node:(0,pe.F)(gt)})}),(0,de.Z)((0,Ce.Z)(fe),"onNodeDragEnter",function(Ke,gt){var wt=fe.state,Tt=wt.expandedKeys,Je=wt.keyEntities,tt=wt.dragChildrenKeys,Ht=wt.flattenNodes,un=wt.indent,Dn=fe.props,yn=Dn.onDragEnter,Lt=Dn.onExpand,cn=Dn.allowDrop,Xt=Dn.direction,Xe=gt.pos,Nt=gt.eventKey;if(fe.currentMouseOverDroppableNodeKey!==Nt&&(fe.currentMouseOverDroppableNodeKey=Nt),!fe.dragNodeProps){fe.resetDragState();return}var dn=(0,xt.OM)(Ke,fe.dragNodeProps,gt,un,fe.dragStartMousePosition,cn,Ht,Je,Tt,Xt),xn=dn.dropPosition,at=dn.dropLevelOffset,Rt=dn.dropTargetKey,en=dn.dropContainerKey,Pt=dn.dropTargetPos,Ut=dn.dropAllowed,Yt=dn.dragOverNodeKey;if(tt.includes(Rt)||!Ut){fe.resetDragState();return}if(fe.delayedDragEnterLogic||(fe.delayedDragEnterLogic={}),Object.keys(fe.delayedDragEnterLogic).forEach(function(bn){clearTimeout(fe.delayedDragEnterLogic[bn])}),fe.dragNodeProps.eventKey!==gt.eventKey&&(Ke.persist(),fe.delayedDragEnterLogic[Xe]=window.setTimeout(function(){if(fe.state.draggingNodeKey!==null){var bn=(0,we.Z)(Tt),jn=(0,ln.Z)(Je,gt.eventKey);jn&&(jn.children||[]).length&&(bn=(0,xt.L0)(Tt,gt.eventKey)),fe.props.hasOwnProperty("expandedKeys")||fe.setExpandedKeys(bn),Lt==null||Lt(bn,{node:(0,pe.F)(gt),expanded:!0,nativeEvent:Ke.nativeEvent})}},800)),fe.dragNodeProps.eventKey===Rt&&at===0){fe.resetDragState();return}fe.setState({dragOverNodeKey:Yt,dropPosition:xn,dropLevelOffset:at,dropTargetKey:Rt,dropContainerKey:en,dropTargetPos:Pt,dropAllowed:Ut}),yn==null||yn({event:Ke,node:(0,pe.F)(gt),expandedKeys:Tt})}),(0,de.Z)((0,Ce.Z)(fe),"onNodeDragOver",function(Ke,gt){var wt=fe.state,Tt=wt.dragChildrenKeys,Je=wt.flattenNodes,tt=wt.keyEntities,Ht=wt.expandedKeys,un=wt.indent,Dn=fe.props,yn=Dn.onDragOver,Lt=Dn.allowDrop,cn=Dn.direction;if(fe.dragNodeProps){var Xt=(0,xt.OM)(Ke,fe.dragNodeProps,gt,un,fe.dragStartMousePosition,Lt,Je,tt,Ht,cn),Xe=Xt.dropPosition,Nt=Xt.dropLevelOffset,dn=Xt.dropTargetKey,xn=Xt.dropContainerKey,at=Xt.dropTargetPos,Rt=Xt.dropAllowed,en=Xt.dragOverNodeKey;Tt.includes(dn)||!Rt||(fe.dragNodeProps.eventKey===dn&&Nt===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():Xe===fe.state.dropPosition&&Nt===fe.state.dropLevelOffset&&dn===fe.state.dropTargetKey&&xn===fe.state.dropContainerKey&&at===fe.state.dropTargetPos&&Rt===fe.state.dropAllowed&&en===fe.state.dragOverNodeKey||fe.setState({dropPosition:Xe,dropLevelOffset:Nt,dropTargetKey:dn,dropContainerKey:xn,dropTargetPos:at,dropAllowed:Rt,dragOverNodeKey:en}),yn==null||yn({event:Ke,node:(0,pe.F)(gt)}))}}),(0,de.Z)((0,Ce.Z)(fe),"onNodeDragLeave",function(Ke,gt){fe.currentMouseOverDroppableNodeKey===gt.eventKey&&!Ke.currentTarget.contains(Ke.relatedTarget)&&(fe.resetDragState(),fe.currentMouseOverDroppableNodeKey=null);var wt=fe.props.onDragLeave;wt==null||wt({event:Ke,node:(0,pe.F)(gt)})}),(0,de.Z)((0,Ce.Z)(fe),"onWindowDragEnd",function(Ke){fe.onNodeDragEnd(Ke,null,!0),window.removeEventListener("dragend",fe.onWindowDragEnd)}),(0,de.Z)((0,Ce.Z)(fe),"onNodeDragEnd",function(Ke,gt){var wt=fe.props.onDragEnd;fe.setState({dragOverNodeKey:null}),fe.cleanDragState(),wt==null||wt({event:Ke,node:(0,pe.F)(gt)}),fe.dragNodeProps=null,window.removeEventListener("dragend",fe.onWindowDragEnd)}),(0,de.Z)((0,Ce.Z)(fe),"onNodeDrop",function(Ke,gt){var wt,Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Je=fe.state,tt=Je.dragChildrenKeys,Ht=Je.dropPosition,un=Je.dropTargetKey,Dn=Je.dropTargetPos,yn=Je.dropAllowed;if(yn){var Lt=fe.props.onDrop;if(fe.setState({dragOverNodeKey:null}),fe.cleanDragState(),un!==null){var cn=(0,me.Z)((0,me.Z)({},(0,pe.H8)(un,fe.getTreeNodeRequiredProps())),{},{active:((wt=fe.getActiveItem())===null||wt===void 0?void 0:wt.key)===un,data:(0,ln.Z)(fe.state.keyEntities,un).node}),Xt=tt.includes(un);(0,Ne.ZP)(!Xt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Xe=(0,xt.yx)(Dn),Nt={event:Ke,node:(0,pe.F)(cn),dragNode:fe.dragNodeProps?(0,pe.F)(fe.dragNodeProps):null,dragNodesKeys:[fe.dragNodeProps.eventKey].concat(tt),dropToGap:Ht!==0,dropPosition:Ht+Number(Xe[Xe.length-1])};Tt||Lt==null||Lt(Nt),fe.dragNodeProps=null}}}),(0,de.Z)((0,Ce.Z)(fe),"cleanDragState",function(){var Ke=fe.state.draggingNodeKey;Ke!==null&&fe.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),fe.dragStartMousePosition=null,fe.currentMouseOverDroppableNodeKey=null}),(0,de.Z)((0,Ce.Z)(fe),"triggerExpandActionExpand",function(Ke,gt){var wt=fe.state,Tt=wt.expandedKeys,Je=wt.flattenNodes,tt=gt.expanded,Ht=gt.key,un=gt.isLeaf;if(!(un||Ke.shiftKey||Ke.metaKey||Ke.ctrlKey)){var Dn=Je.filter(function(Lt){return Lt.key===Ht})[0],yn=(0,pe.F)((0,me.Z)((0,me.Z)({},(0,pe.H8)(Ht,fe.getTreeNodeRequiredProps())),{},{data:Dn.data}));fe.setExpandedKeys(tt?(0,xt._5)(Tt,Ht):(0,xt.L0)(Tt,Ht)),fe.onNodeExpand(Ke,yn)}}),(0,de.Z)((0,Ce.Z)(fe),"onNodeClick",function(Ke,gt){var wt=fe.props,Tt=wt.onClick,Je=wt.expandAction;Je==="click"&&fe.triggerExpandActionExpand(Ke,gt),Tt==null||Tt(Ke,gt)}),(0,de.Z)((0,Ce.Z)(fe),"onNodeDoubleClick",function(Ke,gt){var wt=fe.props,Tt=wt.onDoubleClick,Je=wt.expandAction;Je==="doubleClick"&&fe.triggerExpandActionExpand(Ke,gt),Tt==null||Tt(Ke,gt)}),(0,de.Z)((0,Ce.Z)(fe),"onNodeSelect",function(Ke,gt){var wt=fe.state.selectedKeys,Tt=fe.state,Je=Tt.keyEntities,tt=Tt.fieldNames,Ht=fe.props,un=Ht.onSelect,Dn=Ht.multiple,yn=gt.selected,Lt=gt[tt.key],cn=!yn;cn?Dn?wt=(0,xt.L0)(wt,Lt):wt=[Lt]:wt=(0,xt._5)(wt,Lt);var Xt=wt.map(function(Xe){var Nt=(0,ln.Z)(Je,Xe);return Nt?Nt.node:null}).filter(Boolean);fe.setUncontrolledState({selectedKeys:wt}),un==null||un(wt,{event:"select",selected:cn,node:gt,selectedNodes:Xt,nativeEvent:Ke.nativeEvent})}),(0,de.Z)((0,Ce.Z)(fe),"onNodeCheck",function(Ke,gt,wt){var Tt=fe.state,Je=Tt.keyEntities,tt=Tt.checkedKeys,Ht=Tt.halfCheckedKeys,un=fe.props,Dn=un.checkStrictly,yn=un.onCheck,Lt=gt.key,cn,Xt={event:"check",node:gt,checked:wt,nativeEvent:Ke.nativeEvent};if(Dn){var Xe=wt?(0,xt.L0)(tt,Lt):(0,xt._5)(tt,Lt),Nt=(0,xt._5)(Ht,Lt);cn={checked:Xe,halfChecked:Nt},Xt.checkedNodes=Xe.map(function(Pt){return(0,ln.Z)(Je,Pt)}).filter(Boolean).map(function(Pt){return Pt.node}),fe.setUncontrolledState({checkedKeys:Xe})}else{var dn=(0,pt.S)([].concat((0,we.Z)(tt),[Lt]),!0,Je),xn=dn.checkedKeys,at=dn.halfCheckedKeys;if(!wt){var Rt=new Set(xn);Rt.delete(Lt);var en=(0,pt.S)(Array.from(Rt),{checked:!1,halfCheckedKeys:at},Je);xn=en.checkedKeys,at=en.halfCheckedKeys}cn=xn,Xt.checkedNodes=[],Xt.checkedNodesPositions=[],Xt.halfCheckedKeys=at,xn.forEach(function(Pt){var Ut=(0,ln.Z)(Je,Pt);if(Ut){var Yt=Ut.node,bn=Ut.pos;Xt.checkedNodes.push(Yt),Xt.checkedNodesPositions.push({node:Yt,pos:bn})}}),fe.setUncontrolledState({checkedKeys:xn},!1,{halfCheckedKeys:at})}yn==null||yn(cn,Xt)}),(0,de.Z)((0,Ce.Z)(fe),"onNodeLoad",function(Ke){var gt,wt=Ke.key,Tt=fe.state.keyEntities,Je=(0,ln.Z)(Tt,wt);if(!(Je!=null&&(gt=Je.children)!==null&>!==void 0&>.length)){var tt=new Promise(function(Ht,un){fe.setState(function(Dn){var yn=Dn.loadedKeys,Lt=yn===void 0?[]:yn,cn=Dn.loadingKeys,Xt=cn===void 0?[]:cn,Xe=fe.props,Nt=Xe.loadData,dn=Xe.onLoad;if(!Nt||Lt.includes(wt)||Xt.includes(wt))return null;var xn=Nt(Ke);return xn.then(function(){var at=fe.state.loadedKeys,Rt=(0,xt.L0)(at,wt);dn==null||dn(Rt,{event:"load",node:Ke}),fe.setUncontrolledState({loadedKeys:Rt}),fe.setState(function(en){return{loadingKeys:(0,xt._5)(en.loadingKeys,wt)}}),Ht()}).catch(function(at){if(fe.setState(function(en){return{loadingKeys:(0,xt._5)(en.loadingKeys,wt)}}),fe.loadingRetryTimes[wt]=(fe.loadingRetryTimes[wt]||0)+1,fe.loadingRetryTimes[wt]>=Wt){var Rt=fe.state.loadedKeys;(0,Ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),fe.setUncontrolledState({loadedKeys:(0,xt.L0)(Rt,wt)}),Ht()}un(at)}),{loadingKeys:(0,xt.L0)(Xt,wt)}})});return tt.catch(function(){}),tt}}),(0,de.Z)((0,Ce.Z)(fe),"onNodeMouseEnter",function(Ke,gt){var wt=fe.props.onMouseEnter;wt==null||wt({event:Ke,node:gt})}),(0,de.Z)((0,Ce.Z)(fe),"onNodeMouseLeave",function(Ke,gt){var wt=fe.props.onMouseLeave;wt==null||wt({event:Ke,node:gt})}),(0,de.Z)((0,Ce.Z)(fe),"onNodeContextMenu",function(Ke,gt){var wt=fe.props.onRightClick;wt&&(Ke.preventDefault(),wt({event:Ke,node:gt}))}),(0,de.Z)((0,Ce.Z)(fe),"onFocus",function(){var Ke=fe.props.onFocus;fe.setState({focused:!0});for(var gt=arguments.length,wt=new Array(gt),Tt=0;Tt<gt;Tt++)wt[Tt]=arguments[Tt];Ke==null||Ke.apply(void 0,wt)}),(0,de.Z)((0,Ce.Z)(fe),"onBlur",function(){var Ke=fe.props.onBlur;fe.setState({focused:!1}),fe.onActiveChange(null);for(var gt=arguments.length,wt=new Array(gt),Tt=0;Tt<gt;Tt++)wt[Tt]=arguments[Tt];Ke==null||Ke.apply(void 0,wt)}),(0,de.Z)((0,Ce.Z)(fe),"getTreeNodeRequiredProps",function(){var Ke=fe.state,gt=Ke.expandedKeys,wt=Ke.selectedKeys,Tt=Ke.loadedKeys,Je=Ke.loadingKeys,tt=Ke.checkedKeys,Ht=Ke.halfCheckedKeys,un=Ke.dragOverNodeKey,Dn=Ke.dropPosition,yn=Ke.keyEntities;return{expandedKeys:gt||[],selectedKeys:wt||[],loadedKeys:Tt||[],loadingKeys:Je||[],checkedKeys:tt||[],halfCheckedKeys:Ht||[],dragOverNodeKey:un,dropPosition:Dn,keyEntities:yn}}),(0,de.Z)((0,Ce.Z)(fe),"setExpandedKeys",function(Ke){var gt=fe.state,wt=gt.treeData,Tt=gt.fieldNames,Je=(0,pe.oH)(wt,Ke,Tt);fe.setUncontrolledState({expandedKeys:Ke,flattenNodes:Je},!0)}),(0,de.Z)((0,Ce.Z)(fe),"onNodeExpand",function(Ke,gt){var wt=fe.state.expandedKeys,Tt=fe.state,Je=Tt.listChanging,tt=Tt.fieldNames,Ht=fe.props,un=Ht.onExpand,Dn=Ht.loadData,yn=gt.expanded,Lt=gt[tt.key];if(!Je){var cn=wt.includes(Lt),Xt=!yn;if((0,Ne.ZP)(yn&&cn||!yn&&!cn,"Expand state not sync with index check"),wt=Xt?(0,xt.L0)(wt,Lt):(0,xt._5)(wt,Lt),fe.setExpandedKeys(wt),un==null||un(wt,{node:gt,expanded:Xt,nativeEvent:Ke.nativeEvent}),Xt&&Dn){var Xe=fe.onNodeLoad(gt);Xe&&Xe.then(function(){var Nt=(0,pe.oH)(fe.state.treeData,wt,tt);fe.setUncontrolledState({flattenNodes:Nt})}).catch(function(){var Nt=fe.state.expandedKeys,dn=(0,xt._5)(Nt,Lt);fe.setExpandedKeys(dn)})}}}),(0,de.Z)((0,Ce.Z)(fe),"onListChangeStart",function(){fe.setUncontrolledState({listChanging:!0})}),(0,de.Z)((0,Ce.Z)(fe),"onListChangeEnd",function(){setTimeout(function(){fe.setUncontrolledState({listChanging:!1})})}),(0,de.Z)((0,Ce.Z)(fe),"onActiveChange",function(Ke){var gt=fe.state.activeKey,wt=fe.props,Tt=wt.onActiveChange,Je=wt.itemScrollOffset,tt=Je===void 0?0:Je;gt!==Ke&&(fe.setState({activeKey:Ke}),Ke!==null&&fe.scrollTo({key:Ke,offset:tt}),Tt==null||Tt(Ke))}),(0,de.Z)((0,Ce.Z)(fe),"getActiveItem",function(){var Ke=fe.state,gt=Ke.activeKey,wt=Ke.flattenNodes;return gt===null?null:wt.find(function(Tt){var Je=Tt.key;return Je===gt})||null}),(0,de.Z)((0,Ce.Z)(fe),"offsetActiveKey",function(Ke){var gt=fe.state,wt=gt.flattenNodes,Tt=gt.activeKey,Je=wt.findIndex(function(un){var Dn=un.key;return Dn===Tt});Je===-1&&Ke<0&&(Je=wt.length),Je=(Je+Ke+wt.length)%wt.length;var tt=wt[Je];if(tt){var Ht=tt.key;fe.onActiveChange(Ht)}else fe.onActiveChange(null)}),(0,de.Z)((0,Ce.Z)(fe),"onKeyDown",function(Ke){var gt=fe.state,wt=gt.activeKey,Tt=gt.expandedKeys,Je=gt.checkedKeys,tt=gt.fieldNames,Ht=fe.props,un=Ht.onKeyDown,Dn=Ht.checkable,yn=Ht.selectable;switch(Ke.which){case ft.Z.UP:{fe.offsetActiveKey(-1),Ke.preventDefault();break}case ft.Z.DOWN:{fe.offsetActiveKey(1),Ke.preventDefault();break}}var Lt=fe.getActiveItem();if(Lt&&Lt.data){var cn=fe.getTreeNodeRequiredProps(),Xt=Lt.data.isLeaf===!1||!!(Lt.data[tt.children]||[]).length,Xe=(0,pe.F)((0,me.Z)((0,me.Z)({},(0,pe.H8)(wt,cn)),{},{data:Lt.data,active:!0}));switch(Ke.which){case ft.Z.LEFT:{Xt&&Tt.includes(wt)?fe.onNodeExpand({},Xe):Lt.parent&&fe.onActiveChange(Lt.parent.key),Ke.preventDefault();break}case ft.Z.RIGHT:{Xt&&!Tt.includes(wt)?fe.onNodeExpand({},Xe):Lt.children&&Lt.children.length&&fe.onActiveChange(Lt.children[0].key),Ke.preventDefault();break}case ft.Z.ENTER:case ft.Z.SPACE:{Dn&&!Xe.disabled&&Xe.checkable!==!1&&!Xe.disableCheckbox?fe.onNodeCheck({},Xe,!Je.includes(wt)):!Dn&&yn&&!Xe.disabled&&Xe.selectable!==!1&&fe.onNodeSelect({},Xe);break}}}un==null||un(Ke)}),(0,de.Z)((0,Ce.Z)(fe),"setUncontrolledState",function(Ke){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!fe.destroyed){var Tt=!1,Je=!0,tt={};Object.keys(Ke).forEach(function(Ht){if(fe.props.hasOwnProperty(Ht)){Je=!1;return}Tt=!0,tt[Ht]=Ke[Ht]}),Tt&&(!gt||Je)&&fe.setState((0,me.Z)((0,me.Z)({},tt),wt))}}),(0,de.Z)((0,Ce.Z)(fe),"scrollTo",function(Ke){fe.listRef.current.scrollTo(Ke)}),fe}return(0,Ee.Z)(ie,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ve=this.props,It=Ve.activeKey,Qe=Ve.itemScrollOffset,Ke=Qe===void 0?0:Qe;It!==void 0&&It!==this.state.activeKey&&(this.setState({activeKey:It}),It!==null&&this.scrollTo({key:It,offset:Ke}))}},{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 Ve=this.state,It=Ve.focused,Qe=Ve.flattenNodes,Ke=Ve.keyEntities,gt=Ve.draggingNodeKey,wt=Ve.activeKey,Tt=Ve.dropLevelOffset,Je=Ve.dropContainerKey,tt=Ve.dropTargetKey,Ht=Ve.dropPosition,un=Ve.dragOverNodeKey,Dn=Ve.indent,yn=this.props,Lt=yn.prefixCls,cn=yn.className,Xt=yn.style,Xe=yn.showLine,Nt=yn.focusable,dn=yn.tabIndex,xn=dn===void 0?0:dn,at=yn.selectable,Rt=yn.showIcon,en=yn.icon,Pt=yn.switcherIcon,Ut=yn.draggable,Yt=yn.checkable,bn=yn.checkStrictly,jn=yn.disabled,Bn=yn.motion,Zn=yn.loadData,Ot=yn.filterTreeNode,jt=yn.height,on=yn.itemHeight,En=yn.scrollWidth,tn=yn.virtual,In=yn.titleRender,pn=yn.dropIndicatorRender,On=yn.onContextMenu,fr=yn.onScroll,Qn=yn.direction,cr=yn.rootClassName,Cr=yn.rootStyle,gr=(0,Ge.Z)(this.props,{aria:!0,data:!0}),Hr;Ut&&((0,ge.Z)(Ut)==="object"?Hr=Ut:typeof Ut=="function"?Hr={nodeDraggable:Ut}:Hr={});var Zr={prefixCls:Lt,selectable:at,showIcon:Rt,icon:en,switcherIcon:Pt,draggable:Hr,draggingNodeKey:gt,checkable:Yt,checkStrictly:bn,disabled:jn,keyEntities:Ke,dropLevelOffset:Tt,dropContainerKey:Je,dropTargetKey:tt,dropPosition:Ht,dragOverNodeKey:un,indent:Dn,direction:Qn,dropIndicatorRender:pn,loadData:Zn,filterTreeNode:Ot,titleRender:In,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return Be.createElement(Oe.k.Provider,{value:Zr},Be.createElement("div",{className:Te()(Lt,cn,cr,(0,de.Z)((0,de.Z)((0,de.Z)({},"".concat(Lt,"-show-line"),Xe),"".concat(Lt,"-focused"),It),"".concat(Lt,"-active-focused"),wt!==null)),style:Cr},Be.createElement(bt,(0,y.Z)({ref:this.listRef,prefixCls:Lt,style:Xt,data:Qe,disabled:jn,selectable:at,checkable:!!Yt,motion:Bn,dragging:gt!==null,height:jt,itemHeight:on,virtual:tn,focusable:Nt,focused:It,tabIndex:xn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:On,onScroll:fr,scrollWidth:En},this.getTreeNodeRequiredProps(),gr))))}}],[{key:"getDerivedStateFromProps",value:function(Ve,It){var Qe=It.prevProps,Ke={prevProps:Ve};function gt(xn){return!Qe&&Ve.hasOwnProperty(xn)||Qe&&Qe[xn]!==Ve[xn]}var wt,Tt=It.fieldNames;if(gt("fieldNames")&&(Tt=(0,pe.w$)(Ve.fieldNames),Ke.fieldNames=Tt),gt("treeData")?wt=Ve.treeData:gt("children")&&((0,Ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),wt=(0,pe.zn)(Ve.children)),wt){Ke.treeData=wt;var Je=(0,pe.I8)(wt,{fieldNames:Tt});Ke.keyEntities=(0,me.Z)((0,de.Z)({},ye,zt),Je.keyEntities)}var tt=Ke.keyEntities||It.keyEntities;if(gt("expandedKeys")||Qe&>("autoExpandParent"))Ke.expandedKeys=Ve.autoExpandParent||!Qe&&Ve.defaultExpandParent?(0,xt.r7)(Ve.expandedKeys,tt):Ve.expandedKeys;else if(!Qe&&Ve.defaultExpandAll){var Ht=(0,me.Z)({},tt);delete Ht[ye];var un=[];Object.keys(Ht).forEach(function(xn){var at=Ht[xn];at.children&&at.children.length&&un.push(at.key)}),Ke.expandedKeys=un}else!Qe&&Ve.defaultExpandedKeys&&(Ke.expandedKeys=Ve.autoExpandParent||Ve.defaultExpandParent?(0,xt.r7)(Ve.defaultExpandedKeys,tt):Ve.defaultExpandedKeys);if(Ke.expandedKeys||delete Ke.expandedKeys,wt||Ke.expandedKeys){var Dn=(0,pe.oH)(wt||It.treeData,Ke.expandedKeys||It.expandedKeys,Tt);Ke.flattenNodes=Dn}if(Ve.selectable&&(gt("selectedKeys")?Ke.selectedKeys=(0,xt.BT)(Ve.selectedKeys,Ve):!Qe&&Ve.defaultSelectedKeys&&(Ke.selectedKeys=(0,xt.BT)(Ve.defaultSelectedKeys,Ve))),Ve.checkable){var yn;if(gt("checkedKeys")?yn=(0,xt.E6)(Ve.checkedKeys)||{}:!Qe&&Ve.defaultCheckedKeys?yn=(0,xt.E6)(Ve.defaultCheckedKeys)||{}:wt&&(yn=(0,xt.E6)(Ve.checkedKeys)||{checkedKeys:It.checkedKeys,halfCheckedKeys:It.halfCheckedKeys}),yn){var Lt=yn,cn=Lt.checkedKeys,Xt=cn===void 0?[]:cn,Xe=Lt.halfCheckedKeys,Nt=Xe===void 0?[]:Xe;if(!Ve.checkStrictly){var dn=(0,pt.S)(Xt,!0,tt);Xt=dn.checkedKeys,Nt=dn.halfCheckedKeys}Ke.checkedKeys=Xt,Ke.halfCheckedKeys=Nt}}return gt("loadedKeys")&&(Ke.loadedKeys=Ve.loadedKeys),Ke}}]),ie}(Be.Component);(0,de.Z)(ue,"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:nt,allowDrop:function(){return!0},expandAction:!1}),(0,de.Z)(ue,"TreeNode",yt.Z);var ae=ue,re=ae},82661:function(Rn,qt,E){"use strict";E.d(qt,{BT:function(){return Be},E6:function(){return nt},L0:function(){return de},OM:function(){return Ne},_5:function(){return Fe},r7:function(){return St},wA:function(){return Te},yx:function(){return We}});var y=E(77654),ge=E(43749),me=E(48736),we=E(59301),Se=E(639),Ee=E(65065),Ce=E(34061),ke=null;function Fe(Ae,_e){if(!Ae)return[];var et=Ae.slice(),qe=et.indexOf(_e);return qe>=0&&et.splice(qe,1),et}function de(Ae,_e){var et=(Ae||[]).slice();return et.indexOf(_e)===-1&&et.push(_e),et}function We(Ae){return Ae.split("-")}function Te(Ae,_e){var et=[],qe=(0,Ee.Z)(_e,Ae);function ut(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];yt.forEach(function(st){var $e=st.key,pe=st.children;et.push($e),ut(pe)})}return ut(qe.children),et}function ft(Ae){if(Ae.parent){var _e=We(Ae.pos);return Number(_e[_e.length-1])===Ae.parent.children.length-1}return!1}function Ge(Ae){var _e=We(Ae.pos);return Number(_e[_e.length-1])===0}function Ne(Ae,_e,et,qe,ut,yt,st,$e,pe,Le){var xe,ce=Ae.clientX,Et=Ae.clientY,Ye=Ae.target.getBoundingClientRect(),je=Ye.top,it=Ye.height,Pe=(Le==="rtl"?-1:1)*(((ut==null?void 0:ut.x)||0)-ce),ye=(Pe-12)/qe,vt=pe.filter(function(re){var se;return(se=$e[re])===null||se===void 0||(se=se.children)===null||se===void 0?void 0:se.length}),zt=(0,Ee.Z)($e,et.eventKey);if(Et<je+it/2){var Ct=st.findIndex(function(re){return re.key===zt.key}),De=Ct<=0?0:Ct-1,mt=st[De].key;zt=(0,Ee.Z)($e,mt)}var dt=zt.key,Gt=zt,bt=zt.key,xt=0,pt=0;if(!vt.includes(dt))for(var ln=0;ln<ye&&ft(zt);ln+=1)zt=zt.parent,pt+=1;var Wt=_e.data,ue=zt.node,ae=!0;return Ge(zt)&&zt.level===0&&Et<je+it/2&&yt({dragNode:Wt,dropNode:ue,dropPosition:-1})&&zt.key===et.eventKey?xt=-1:(Gt.children||[]).length&&vt.includes(bt)?yt({dragNode:Wt,dropNode:ue,dropPosition:0})?xt=0:ae=!1:pt===0?ye>-1.5?yt({dragNode:Wt,dropNode:ue,dropPosition:1})?xt=1:ae=!1:yt({dragNode:Wt,dropNode:ue,dropPosition:0})?xt=0:yt({dragNode:Wt,dropNode:ue,dropPosition:1})?xt=1:ae=!1:yt({dragNode:Wt,dropNode:ue,dropPosition:1})?xt=1:ae=!1,{dropPosition:xt,dropLevelOffset:pt,dropTargetKey:zt.key,dropTargetPos:zt.pos,dragOverNodeKey:bt,dropContainerKey:xt===0?null:((xe=zt.parent)===null||xe===void 0?void 0:xe.key)||null,dropAllowed:ae}}function Be(Ae,_e){if(Ae){var et=_e.multiple;return et?Ae.slice():Ae.length?[Ae[0]]:Ae}}var Oe=function(_e){return _e};function Ie(Ae,_e){if(!Ae)return[];var et=_e||{},qe=et.processProps,ut=qe===void 0?Oe:qe,yt=Array.isArray(Ae)?Ae:[Ae];return yt.map(function(st){var $e=st.children,pe=_objectWithoutProperties(st,ke),Le=Ie($e,_e);return React.createElement(TreeNode,_extends({key:pe.key},ut(pe)),Le)})}function nt(Ae){if(!Ae)return null;var _e;if(Array.isArray(Ae))_e={checkedKeys:Ae,halfCheckedKeys:void 0};else if((0,ge.Z)(Ae)==="object")_e={checkedKeys:Ae.checked||void 0,halfCheckedKeys:Ae.halfChecked||void 0};else return(0,me.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return _e}function St(Ae,_e){var et=new Set;function qe(ut){if(!et.has(ut)){var yt=(0,Ee.Z)(_e,ut);if(yt){et.add(ut);var st=yt.parent,$e=yt.node;$e.disabled||st&&qe(st.key)}}}return(Ae||[]).forEach(function(ut){qe(ut)}),(0,y.Z)(et)}},34643:function(Rn,qt,E){"use strict";E.d(qt,{S:function(){return Ce}});var y=E(48736),ge=E(65065);function me(ke,Fe){var de=new Set;return ke.forEach(function(We){Fe.has(We)||de.add(We)}),de}function we(ke){var Fe=ke||{},de=Fe.disabled,We=Fe.disableCheckbox,Te=Fe.checkable;return!!(de||We)||Te===!1}function Se(ke,Fe,de,We){for(var Te=new Set(ke),ft=new Set,Ge=0;Ge<=de;Ge+=1){var Ne=Fe.get(Ge)||new Set;Ne.forEach(function(nt){var St=nt.key,Ae=nt.node,_e=nt.children,et=_e===void 0?[]:_e;Te.has(St)&&!We(Ae)&&et.filter(function(qe){return!We(qe.node)}).forEach(function(qe){Te.add(qe.key)})})}for(var Be=new Set,Oe=de;Oe>=0;Oe-=1){var Ie=Fe.get(Oe)||new Set;Ie.forEach(function(nt){var St=nt.parent,Ae=nt.node;if(!(We(Ae)||!nt.parent||Be.has(nt.parent.key))){if(We(nt.parent.node)){Be.add(St.key);return}var _e=!0,et=!1;(St.children||[]).filter(function(qe){return!We(qe.node)}).forEach(function(qe){var ut=qe.key,yt=Te.has(ut);_e&&!yt&&(_e=!1),!et&&(yt||ft.has(ut))&&(et=!0)}),_e&&Te.add(St.key),et&&ft.add(St.key),Be.add(St.key)}})}return{checkedKeys:Array.from(Te),halfCheckedKeys:Array.from(me(ft,Te))}}function Ee(ke,Fe,de,We,Te){for(var ft=new Set(ke),Ge=new Set(Fe),Ne=0;Ne<=We;Ne+=1){var Be=de.get(Ne)||new Set;Be.forEach(function(St){var Ae=St.key,_e=St.node,et=St.children,qe=et===void 0?[]:et;!ft.has(Ae)&&!Ge.has(Ae)&&!Te(_e)&&qe.filter(function(ut){return!Te(ut.node)}).forEach(function(ut){ft.delete(ut.key)})})}Ge=new Set;for(var Oe=new Set,Ie=We;Ie>=0;Ie-=1){var nt=de.get(Ie)||new Set;nt.forEach(function(St){var Ae=St.parent,_e=St.node;if(!(Te(_e)||!St.parent||Oe.has(St.parent.key))){if(Te(St.parent.node)){Oe.add(Ae.key);return}var et=!0,qe=!1;(Ae.children||[]).filter(function(ut){return!Te(ut.node)}).forEach(function(ut){var yt=ut.key,st=ft.has(yt);et&&!st&&(et=!1),!qe&&(st||Ge.has(yt))&&(qe=!0)}),et||ft.delete(Ae.key),qe&&Ge.add(Ae.key),Oe.add(Ae.key)}})}return{checkedKeys:Array.from(ft),halfCheckedKeys:Array.from(me(Ge,ft))}}function Ce(ke,Fe,de,We){var Te=[],ft;We?ft=We:ft=we;var Ge=new Set(ke.filter(function(Ie){var nt=!!(0,ge.Z)(de,Ie);return nt||Te.push(Ie),nt})),Ne=new Map,Be=0;Object.keys(de).forEach(function(Ie){var nt=de[Ie],St=nt.level,Ae=Ne.get(St);Ae||(Ae=new Set,Ne.set(St,Ae)),Ae.add(nt),Be=Math.max(Be,St)}),(0,y.ZP)(!Te.length,"Tree missing follow keys: ".concat(Te.slice(0,100).map(function(Ie){return"'".concat(Ie,"'")}).join(", ")));var Oe;return Fe===!0?Oe=Se(Ge,Ne,Be,ft):Oe=Ee(Ge,Fe.halfCheckedKeys,Ne,Be,ft),Oe}},65065:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return y}});function y(ge,me){return ge[me]}},34061:function(Rn,qt,E){"use strict";E.d(qt,{F:function(){return St},H8:function(){return nt},I8:function(){return Ie},km:function(){return Te},oH:function(){return Be},w$:function(){return ft},zn:function(){return Ne}});var y=E(43749),ge=E(77654),me=E(85899),we=E(42244),Se=E(11592),Ee=E(2738),Ce=E(48736),ke=E(65065),Fe=["children"];function de(Ae,_e){return"".concat(Ae,"-").concat(_e)}function We(Ae){return Ae&&Ae.type&&Ae.type.isTreeNode}function Te(Ae,_e){return Ae!=null?Ae:_e}function ft(Ae){var _e=Ae||{},et=_e.title,qe=_e._title,ut=_e.key,yt=_e.children,st=et||"title";return{title:st,_title:qe||[st],key:ut||"key",children:yt||"children"}}function Ge(Ae,_e){var et=new Map;function qe(ut){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ut||[]).forEach(function(st){var $e=st[_e.key],pe=st[_e.children];warning($e!=null,"Tree node must have a certain key: [".concat(yt).concat($e,"]"));var Le=String($e);warning(!et.has(Le)||$e===null||$e===void 0,"Same 'key' exist in the Tree: ".concat(Le)),et.set(Le,!0),qe(pe,"".concat(yt).concat(Le," > "))})}qe(Ae)}function Ne(Ae){function _e(et){var qe=(0,Se.Z)(et);return qe.map(function(ut){if(!We(ut))return(0,Ce.ZP)(!ut,"Tree/TreeNode can only accept TreeNode as children."),null;var yt=ut.key,st=ut.props,$e=st.children,pe=(0,we.Z)(st,Fe),Le=(0,me.Z)({key:yt},pe),xe=_e($e);return xe.length&&(Le.children=xe),Le}).filter(function(ut){return ut})}return _e(Ae)}function Be(Ae,_e,et){var qe=ft(et),ut=qe._title,yt=qe.key,st=qe.children,$e=new Set(_e===!0?[]:_e),pe=[];function Le(xe){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return xe.map(function(Et,Ye){for(var je=de(ce?ce.pos:"0",Ye),it=Te(Et[yt],je),Pe,ye=0;ye<ut.length;ye+=1){var vt=ut[ye];if(Et[vt]!==void 0){Pe=Et[vt];break}}var zt=Object.assign((0,Ee.Z)(Et,[].concat((0,ge.Z)(ut),[yt,st])),{title:Pe,key:it,parent:ce,pos:je,children:null,data:Et,isStart:[].concat((0,ge.Z)(ce?ce.isStart:[]),[Ye===0]),isEnd:[].concat((0,ge.Z)(ce?ce.isEnd:[]),[Ye===xe.length-1])});return pe.push(zt),_e===!0||$e.has(it)?zt.children=Le(Et[st]||[],zt):zt.children=[],zt})}return Le(Ae),pe}function Oe(Ae,_e,et){var qe={};(0,y.Z)(et)==="object"?qe=et:qe={externalGetKey:et},qe=qe||{};var ut=qe,yt=ut.childrenPropName,st=ut.externalGetKey,$e=ut.fieldNames,pe=ft($e),Le=pe.key,xe=pe.children,ce=yt||xe,Et;st?typeof st=="string"?Et=function(it){return it[st]}:typeof st=="function"&&(Et=function(it){return st(it)}):Et=function(it,Pe){return Te(it[Le],Pe)};function Ye(je,it,Pe,ye){var vt=je?je[ce]:Ae,zt=je?de(Pe.pos,it):"0",Ct=je?[].concat((0,ge.Z)(ye),[je]):[];if(je){var De=Et(je,zt),mt={node:je,index:it,pos:zt,key:De,parentPos:Pe.node?Pe.pos:null,level:Pe.level+1,nodes:Ct};_e(mt)}vt&&vt.forEach(function(dt,Gt){Ye(dt,Gt,{node:je,pos:zt,level:Pe?Pe.level+1:-1},Ct)})}Ye(null)}function Ie(Ae){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},et=_e.initWrapper,qe=_e.processEntity,ut=_e.onProcessFinished,yt=_e.externalGetKey,st=_e.childrenPropName,$e=_e.fieldNames,pe=arguments.length>2?arguments[2]:void 0,Le=yt||pe,xe={},ce={},Et={posEntities:xe,keyEntities:ce};return et&&(Et=et(Et)||Et),Oe(Ae,function(Ye){var je=Ye.node,it=Ye.index,Pe=Ye.pos,ye=Ye.key,vt=Ye.parentPos,zt=Ye.level,Ct=Ye.nodes,De={node:je,nodes:Ct,index:it,key:ye,pos:Pe,level:zt},mt=Te(ye,Pe);xe[Pe]=De,ce[mt]=De,De.parent=xe[vt],De.parent&&(De.parent.children=De.parent.children||[],De.parent.children.push(De)),qe&&qe(De,Et)},{externalGetKey:Le,childrenPropName:st,fieldNames:$e}),ut&&ut(Et),Et}function nt(Ae,_e){var et=_e.expandedKeys,qe=_e.selectedKeys,ut=_e.loadedKeys,yt=_e.loadingKeys,st=_e.checkedKeys,$e=_e.halfCheckedKeys,pe=_e.dragOverNodeKey,Le=_e.dropPosition,xe=_e.keyEntities,ce=(0,ke.Z)(xe,Ae),Et={eventKey:Ae,expanded:et.indexOf(Ae)!==-1,selected:qe.indexOf(Ae)!==-1,loaded:ut.indexOf(Ae)!==-1,loading:yt.indexOf(Ae)!==-1,checked:st.indexOf(Ae)!==-1,halfChecked:$e.indexOf(Ae)!==-1,pos:String(ce?ce.pos:""),dragOver:pe===Ae&&Le===0,dragOverGapTop:pe===Ae&&Le===-1,dragOverGapBottom:pe===Ae&&Le===1};return Et}function St(Ae){var _e=Ae.data,et=Ae.expanded,qe=Ae.selected,ut=Ae.checked,yt=Ae.loaded,st=Ae.loading,$e=Ae.halfChecked,pe=Ae.dragOver,Le=Ae.dragOverGapTop,xe=Ae.dragOverGapBottom,ce=Ae.pos,Et=Ae.active,Ye=Ae.eventKey,je=(0,me.Z)((0,me.Z)({},_e),{},{expanded:et,selected:qe,checked:ut,loaded:yt,loading:st,halfChecked:$e,dragOver:pe,dragOverGapTop:Le,dragOverGapBottom:xe,pos:ce,active:Et,key:Ye});return"props"in je||Object.defineProperty(je,"props",{get:function(){return(0,Ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ae}}),je}},8224:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ge}});var y=E(4676);function ge(me,we,Se,Ee){var Ce=y.unstable_batchedUpdates?function(Fe){y.unstable_batchedUpdates(Se,Fe)}:Se;return me!=null&&me.addEventListener&&me.addEventListener(we,Ce,Ee),{remove:function(){me!=null&&me.removeEventListener&&me.removeEventListener(we,Ce,Ee)}}}},24514:function(Rn,qt,E){"use strict";E.d(qt,{G:function(){return we}});var y=E(47273),ge=function(Ee){if((0,y.Z)()&&window.document.documentElement){var Ce=Array.isArray(Ee)?Ee:[Ee],ke=window.document.documentElement;return Ce.some(function(Fe){return Fe in ke.style})}return!1},me=function(Ee,Ce){if(!ge(Ee))return!1;var ke=document.createElement("div"),Fe=ke.style[Ee];return ke.style[Ee]=Ce,ke.style[Ee]!==Fe};function we(Se,Ee){return!Array.isArray(Se)&&Ee!==void 0?me(Se,Ee):ge(Se)}},48911:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Wt}});var y=E(60499),ge=E(43749),me=E(85899),we=E(18642),Se=E(72190),Ee=E(42244),Ce=E(92310),ke=E.n(Ce),Fe=E(29301),de=E(70425),We=E(34280),Te=E(59301),ft=E(4676),Ge=Te.forwardRef(function(ue,ae){var re=ue.height,se=ue.offsetY,ve=ue.offsetX,ie=ue.children,fe=ue.prefixCls,Ve=ue.onInnerResize,It=ue.innerProps,Qe=ue.rtl,Ke=ue.extra,gt={},wt={display:"flex",flexDirection:"column"};return se!==void 0&&(gt={height:re,position:"relative",overflow:"hidden"},wt=(0,me.Z)((0,me.Z)({},wt),{},(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({transform:"translateY(".concat(se,"px)")},Qe?"marginRight":"marginLeft",-ve),"position","absolute"),"left",0),"right",0),"top",0))),Te.createElement("div",{style:gt},Te.createElement(Fe.Z,{onResize:function(Je){var tt=Je.offsetHeight;tt&&Ve&&Ve()}},Te.createElement("div",(0,y.Z)({style:wt,className:ke()((0,we.Z)({},"".concat(fe,"-holder-inner"),fe)),ref:ae},It),ie,Ke)))});Ge.displayName="Filler";var Ne=Ge;function Be(ue){var ae=ue.children,re=ue.setRef,se=Te.useCallback(function(ve){re(ve)},[]);return Te.cloneElement(ae,{ref:se})}function Oe(ue,ae,re,se,ve,ie,fe,Ve){var It=Ve.getKey;return ue.slice(ae,re+1).map(function(Qe,Ke){var gt=ae+Ke,wt=fe(Qe,gt,{style:{width:se},offsetX:ve}),Tt=It(Qe);return Te.createElement(Be,{key:Tt,setRef:function(tt){return ie(Qe,tt)}},wt)})}function Ie(ue,ae,re,se){var ve=re-ue,ie=ae-re,fe=Math.min(ve,ie)*2;if(se<=fe){var Ve=Math.floor(se/2);return se%2?re+Ve+1:re-Ve}return ve>ie?re-(se-ie):re+(se-ve)}function nt(ue,ae,re){var se=ue.length,ve=ae.length,ie,fe;if(se===0&&ve===0)return null;se<ve?(ie=ue,fe=ae):(ie=ae,fe=ue);var Ve={__EMPTY_ITEM__:!0};function It(Je){return Je!==void 0?re(Je):Ve}for(var Qe=null,Ke=Math.abs(se-ve)!==1,gt=0;gt<fe.length;gt+=1){var wt=It(ie[gt]),Tt=It(fe[gt]);if(wt!==Tt){Qe=gt,Ke=Ke||wt!==It(fe[gt+1]);break}}return Qe===null?null:{index:Qe,multiple:Ke}}function St(ue,ae,re){var se=Te.useState(ue),ve=(0,Se.Z)(se,2),ie=ve[0],fe=ve[1],Ve=Te.useState(null),It=(0,Se.Z)(Ve,2),Qe=It[0],Ke=It[1];return Te.useEffect(function(){var gt=nt(ie||[],ue||[],ae);(gt==null?void 0:gt.index)!==void 0&&(re==null||re(gt.index),Ke(ue[gt.index])),fe(ue)},[ue]),[Qe]}var Ae=E(16089),_e=(typeof navigator=="undefined"?"undefined":(0,ge.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),et=_e,qe=function(ue,ae,re,se){var ve=(0,Te.useRef)(!1),ie=(0,Te.useRef)(null);function fe(){clearTimeout(ie.current),ve.current=!0,ie.current=setTimeout(function(){ve.current=!1},50)}var Ve=(0,Te.useRef)({top:ue,bottom:ae,left:re,right:se});return Ve.current.top=ue,Ve.current.bottom=ae,Ve.current.left=re,Ve.current.right=se,function(It,Qe){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,gt=It?Qe<0&&Ve.current.left||Qe>0&&Ve.current.right:Qe<0&&Ve.current.top||Qe>0&&Ve.current.bottom;return Ke&>?(clearTimeout(ie.current),ve.current=!1):(!gt||ve.current)&&fe(),!ve.current&>}};function ut(ue,ae,re,se,ve,ie,fe){var Ve=(0,Te.useRef)(0),It=(0,Te.useRef)(null),Qe=(0,Te.useRef)(null),Ke=(0,Te.useRef)(!1),gt=qe(ae,re,se,ve);function wt(Dn,yn){if(Ae.Z.cancel(It.current),!gt(!1,yn)){var Lt=Dn;if(!Lt._virtualHandled)Lt._virtualHandled=!0;else return;Ve.current+=yn,Qe.current=yn,et||Lt.preventDefault(),It.current=(0,Ae.Z)(function(){var cn=Ke.current?10:1;fe(Ve.current*cn,!1),Ve.current=0})}}function Tt(Dn,yn){fe(yn,!0),et||Dn.preventDefault()}var Je=(0,Te.useRef)(null),tt=(0,Te.useRef)(null);function Ht(Dn){if(ue){Ae.Z.cancel(tt.current),tt.current=(0,Ae.Z)(function(){Je.current=null},2);var yn=Dn.deltaX,Lt=Dn.deltaY,cn=Dn.shiftKey,Xt=yn,Xe=Lt;(Je.current==="sx"||!Je.current&&cn&&Lt&&!yn)&&(Xt=Lt,Xe=0,Je.current="sx");var Nt=Math.abs(Xt),dn=Math.abs(Xe);Je.current===null&&(Je.current=ie&&Nt>dn?"x":"y"),Je.current==="y"?wt(Dn,Xe):Tt(Dn,Xt)}}function un(Dn){ue&&(Ke.current=Dn.detail===Qe.current)}return[Ht,un]}function yt(ue,ae,re,se){var ve=Te.useMemo(function(){return[new Map,[]]},[ue,re.id,se]),ie=(0,Se.Z)(ve,2),fe=ie[0],Ve=ie[1],It=function(Ke){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,wt=fe.get(Ke),Tt=fe.get(gt);if(wt===void 0||Tt===void 0)for(var Je=ue.length,tt=Ve.length;tt<Je;tt+=1){var Ht,un=ue[tt],Dn=ae(un);fe.set(Dn,tt);var yn=(Ht=re.get(Dn))!==null&&Ht!==void 0?Ht:se;if(Ve[tt]=(Ve[tt-1]||0)+yn,Dn===Ke&&(wt=tt),Dn===gt&&(Tt=tt),wt!==void 0&&Tt!==void 0)break}return{top:Ve[wt-1]||0,bottom:Ve[Tt]}};return It}var st=E(38705),$e=E(17212),pe=function(){function ue(){(0,st.Z)(this,ue),(0,we.Z)(this,"maps",void 0),(0,we.Z)(this,"id",0),(0,we.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,$e.Z)(ue,[{key:"set",value:function(re,se){this.diffRecords.set(re,this.maps[re]),this.maps[re]=se,this.id+=1}},{key:"get",value:function(re){return this.maps[re]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ue}(),Le=pe;function xe(ue){var ae=parseFloat(ue);return isNaN(ae)?0:ae}function ce(ue,ae,re){var se=Te.useState(0),ve=(0,Se.Z)(se,2),ie=ve[0],fe=ve[1],Ve=(0,Te.useRef)(new Map),It=(0,Te.useRef)(new Le),Qe=(0,Te.useRef)(0);function Ke(){Qe.current+=1}function gt(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ke();var Je=function(){var un=!1;Ve.current.forEach(function(Dn,yn){if(Dn&&Dn.offsetParent){var Lt=Dn.offsetHeight,cn=getComputedStyle(Dn),Xt=cn.marginTop,Xe=cn.marginBottom,Nt=xe(Xt),dn=xe(Xe),xn=Lt+Nt+dn;It.current.get(yn)!==xn&&(It.current.set(yn,xn),un=!0)}}),un&&fe(function(Dn){return Dn+1})};if(Tt)Je();else{Qe.current+=1;var tt=Qe.current;Promise.resolve().then(function(){tt===Qe.current&&Je()})}}function wt(Tt,Je){var tt=ue(Tt),Ht=Ve.current.get(tt);Je?(Ve.current.set(tt,Je),gt()):Ve.current.delete(tt),!Ht!=!Je&&(Je?ae==null||ae(Tt):re==null||re(Tt))}return(0,Te.useEffect)(function(){return Ke},[]),[wt,gt,It.current,ie]}var Et=14/15;function Ye(ue,ae,re){var se=(0,Te.useRef)(!1),ve=(0,Te.useRef)(0),ie=(0,Te.useRef)(0),fe=(0,Te.useRef)(null),Ve=(0,Te.useRef)(null),It,Qe=function(Tt){if(se.current){var Je=Math.ceil(Tt.touches[0].pageX),tt=Math.ceil(Tt.touches[0].pageY),Ht=ve.current-Je,un=ie.current-tt,Dn=Math.abs(Ht)>Math.abs(un);Dn?ve.current=Je:ie.current=tt;var yn=re(Dn,Dn?Ht:un,!1,Tt);yn&&Tt.preventDefault(),clearInterval(Ve.current),yn&&(Ve.current=setInterval(function(){Dn?Ht*=Et:un*=Et;var Lt=Math.floor(Dn?Ht:un);(!re(Dn,Lt,!0)||Math.abs(Lt)<=.1)&&clearInterval(Ve.current)},16))}},Ke=function(){se.current=!1,It()},gt=function(Tt){It(),Tt.touches.length===1&&!se.current&&(se.current=!0,ve.current=Math.ceil(Tt.touches[0].pageX),ie.current=Math.ceil(Tt.touches[0].pageY),fe.current=Tt.target,fe.current.addEventListener("touchmove",Qe,{passive:!1}),fe.current.addEventListener("touchend",Ke,{passive:!0}))};It=function(){fe.current&&(fe.current.removeEventListener("touchmove",Qe),fe.current.removeEventListener("touchend",Ke))},(0,We.Z)(function(){return ue&&ae.current.addEventListener("touchstart",gt,{passive:!0}),function(){var wt;(wt=ae.current)===null||wt===void 0||wt.removeEventListener("touchstart",gt),It(),clearInterval(Ve.current)}},[ue])}function je(ue){return Math.floor(Math.pow(ue,.5))}function it(ue,ae){var re="touches"in ue?ue.touches[0]:ue;return re[ae?"pageX":"pageY"]-window[ae?"scrollX":"scrollY"]}function Pe(ue,ae,re){Te.useEffect(function(){var se=ae.current;if(ue&&se){var ve=!1,ie,fe,Ve=function(){Ae.Z.cancel(ie)},It=function wt(){Ve(),ie=(0,Ae.Z)(function(){re(fe),wt()})},Qe=function(){ve=!1,Ve()},Ke=function(Tt){if(!(Tt.target.draggable||Tt.button!==0)){var Je=Tt;Je._virtualHandled||(Je._virtualHandled=!0,ve=!0)}},gt=function(Tt){if(ve){var Je=it(Tt,!1),tt=se.getBoundingClientRect(),Ht=tt.top,un=tt.bottom;if(Je<=Ht){var Dn=Ht-Je;fe=-je(Dn),It()}else if(Je>=un){var yn=Je-un;fe=je(yn),It()}else Ve()}};return se.addEventListener("mousedown",Ke),se.ownerDocument.addEventListener("mouseup",Qe),se.ownerDocument.addEventListener("mousemove",gt),se.ownerDocument.addEventListener("dragend",Qe),function(){se.removeEventListener("mousedown",Ke),se.ownerDocument.removeEventListener("mouseup",Qe),se.ownerDocument.removeEventListener("mousemove",gt),se.ownerDocument.removeEventListener("dragend",Qe),Ve()}}},[ue])}var ye=10;function vt(ue,ae,re,se,ve,ie,fe,Ve){var It=Te.useRef(),Qe=Te.useState(null),Ke=(0,Se.Z)(Qe,2),gt=Ke[0],wt=Ke[1];return(0,We.Z)(function(){if(gt&>.times<ye){if(!ue.current){wt(function(Bn){return(0,me.Z)({},Bn)});return}ie();var Tt=gt.targetAlign,Je=gt.originAlign,tt=gt.index,Ht=gt.offset,un=ue.current.clientHeight,Dn=!1,yn=Tt,Lt=null;if(un){for(var cn=Tt||Je,Xt=0,Xe=0,Nt=0,dn=Math.min(ae.length-1,tt),xn=0;xn<=dn;xn+=1){var at=ve(ae[xn]);Xe=Xt;var Rt=re.get(at);Nt=Xe+(Rt===void 0?se:Rt),Xt=Nt}for(var en=cn==="top"?Ht:un-Ht,Pt=dn;Pt>=0;Pt-=1){var Ut=ve(ae[Pt]),Yt=re.get(Ut);if(Yt===void 0){Dn=!0;break}if(en-=Yt,en<=0)break}switch(cn){case"top":Lt=Xe-Ht;break;case"bottom":Lt=Nt-un+Ht;break;default:{var bn=ue.current.scrollTop,jn=bn+un;Xe<bn?yn="top":Nt>jn&&(yn="bottom")}}Lt!==null&&fe(Lt),Lt!==gt.lastTop&&(Dn=!0)}Dn&&wt((0,me.Z)((0,me.Z)({},gt),{},{times:gt.times+1,targetAlign:yn,lastTop:Lt}))}},[gt,ue.current]),function(Tt){if(Tt==null){Ve();return}if(Ae.Z.cancel(It.current),typeof Tt=="number")fe(Tt);else if(Tt&&(0,ge.Z)(Tt)==="object"){var Je,tt=Tt.align;"index"in Tt?Je=Tt.index:Je=ae.findIndex(function(Dn){return ve(Dn)===Tt.key});var Ht=Tt.offset,un=Ht===void 0?0:Ht;wt({times:0,index:Je,offset:un,originAlign:tt})}}}var zt=Te.forwardRef(function(ue,ae){var re=ue.prefixCls,se=ue.rtl,ve=ue.scrollOffset,ie=ue.scrollRange,fe=ue.onStartMove,Ve=ue.onStopMove,It=ue.onScroll,Qe=ue.horizontal,Ke=ue.spinSize,gt=ue.containerSize,wt=ue.style,Tt=ue.thumbStyle,Je=ue.showScrollBar,tt=Te.useState(!1),Ht=(0,Se.Z)(tt,2),un=Ht[0],Dn=Ht[1],yn=Te.useState(null),Lt=(0,Se.Z)(yn,2),cn=Lt[0],Xt=Lt[1],Xe=Te.useState(null),Nt=(0,Se.Z)(Xe,2),dn=Nt[0],xn=Nt[1],at=!se,Rt=Te.useRef(),en=Te.useRef(),Pt=Te.useState(Je),Ut=(0,Se.Z)(Pt,2),Yt=Ut[0],bn=Ut[1],jn=Te.useRef(),Bn=function(){Je===!0||Je===!1||(clearTimeout(jn.current),bn(!0),jn.current=setTimeout(function(){bn(!1)},3e3))},Zn=ie-gt||0,Ot=gt-Ke||0,jt=Te.useMemo(function(){if(ve===0||Zn===0)return 0;var cr=ve/Zn;return cr*Ot},[ve,Zn,Ot]),on=function(Cr){Cr.stopPropagation(),Cr.preventDefault()},En=Te.useRef({top:jt,dragging:un,pageY:cn,startTop:dn});En.current={top:jt,dragging:un,pageY:cn,startTop:dn};var tn=function(Cr){Dn(!0),Xt(it(Cr,Qe)),xn(En.current.top),fe(),Cr.stopPropagation(),Cr.preventDefault()};Te.useEffect(function(){var cr=function(Zr){Zr.preventDefault()},Cr=Rt.current,gr=en.current;return Cr.addEventListener("touchstart",cr,{passive:!1}),gr.addEventListener("touchstart",tn,{passive:!1}),function(){Cr.removeEventListener("touchstart",cr),gr.removeEventListener("touchstart",tn)}},[]);var In=Te.useRef();In.current=Zn;var pn=Te.useRef();pn.current=Ot,Te.useEffect(function(){if(un){var cr,Cr=function(Zr){var Pn=En.current,$n=Pn.dragging,dr=Pn.pageY,hr=Pn.startTop;Ae.Z.cancel(cr);var _t=Rt.current.getBoundingClientRect(),Qt=gt/(Qe?_t.width:_t.height);if($n){var ct=(it(Zr,Qe)-dr)*Qt,Zt=hr;!at&&Qe?Zt-=ct:Zt+=ct;var ot=In.current,Kt=pn.current,Ft=Kt?Zt/Kt:0,ar=Math.ceil(Ft*ot);ar=Math.max(ar,0),ar=Math.min(ar,ot),cr=(0,Ae.Z)(function(){It(ar,Qe)})}},gr=function(){Dn(!1),Ve()};return window.addEventListener("mousemove",Cr,{passive:!0}),window.addEventListener("touchmove",Cr,{passive:!0}),window.addEventListener("mouseup",gr,{passive:!0}),window.addEventListener("touchend",gr,{passive:!0}),function(){window.removeEventListener("mousemove",Cr),window.removeEventListener("touchmove",Cr),window.removeEventListener("mouseup",gr),window.removeEventListener("touchend",gr),Ae.Z.cancel(cr)}}},[un]),Te.useEffect(function(){return Bn(),function(){clearTimeout(jn.current)}},[ve]),Te.useImperativeHandle(ae,function(){return{delayHidden:Bn}});var On="".concat(re,"-scrollbar"),fr={position:"absolute",visibility:Yt?null:"hidden"},Qn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Qe?(Object.assign(fr,{height:8,left:0,right:0,bottom:0}),Object.assign(Qn,(0,we.Z)({height:"100%",width:Ke},at?"left":"right",jt))):(Object.assign(fr,(0,we.Z)({width:8,top:0,bottom:0},at?"right":"left",0)),Object.assign(Qn,{width:"100%",height:Ke,top:jt})),Te.createElement("div",{ref:Rt,className:ke()(On,(0,we.Z)((0,we.Z)((0,we.Z)({},"".concat(On,"-horizontal"),Qe),"".concat(On,"-vertical"),!Qe),"".concat(On,"-visible"),Yt)),style:(0,me.Z)((0,me.Z)({},fr),wt),onMouseDown:on,onMouseMove:Bn},Te.createElement("div",{ref:en,className:ke()("".concat(On,"-thumb"),(0,we.Z)({},"".concat(On,"-thumb-moving"),un)),style:(0,me.Z)((0,me.Z)({},Qn),Tt),onMouseDown:tn}))}),Ct=zt,De=20;function mt(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,re=ue/ae*ue;return isNaN(re)&&(re=0),re=Math.max(re,De),Math.floor(re)}var dt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Gt=[],bt={overflowY:"auto",overflowAnchor:"none"};function xt(ue,ae){var re=ue.prefixCls,se=re===void 0?"rc-virtual-list":re,ve=ue.className,ie=ue.height,fe=ue.itemHeight,Ve=ue.fullHeight,It=Ve===void 0?!0:Ve,Qe=ue.style,Ke=ue.data,gt=ue.children,wt=ue.itemKey,Tt=ue.virtual,Je=ue.direction,tt=ue.scrollWidth,Ht=ue.component,un=Ht===void 0?"div":Ht,Dn=ue.onScroll,yn=ue.onVirtualScroll,Lt=ue.onVisibleChange,cn=ue.innerProps,Xt=ue.extraRender,Xe=ue.styles,Nt=ue.showScrollBar,dn=Nt===void 0?"optional":Nt,xn=(0,Ee.Z)(ue,dt),at=Te.useCallback(function(tr){return typeof wt=="function"?wt(tr):tr==null?void 0:tr[wt]},[wt]),Rt=ce(at,null,null),en=(0,Se.Z)(Rt,4),Pt=en[0],Ut=en[1],Yt=en[2],bn=en[3],jn=!!(Tt!==!1&&ie&&fe),Bn=Te.useMemo(function(){return Object.values(Yt.maps).reduce(function(tr,yr){return tr+yr},0)},[Yt.id,Yt.maps]),Zn=jn&&Ke&&(Math.max(fe*Ke.length,Bn)>ie||!!tt),Ot=Je==="rtl",jt=ke()(se,(0,we.Z)({},"".concat(se,"-rtl"),Ot),ve),on=Ke||Gt,En=(0,Te.useRef)(),tn=(0,Te.useRef)(),In=(0,Te.useRef)(),pn=(0,Te.useState)(0),On=(0,Se.Z)(pn,2),fr=On[0],Qn=On[1],cr=(0,Te.useState)(0),Cr=(0,Se.Z)(cr,2),gr=Cr[0],Hr=Cr[1],Zr=(0,Te.useState)(!1),Pn=(0,Se.Z)(Zr,2),$n=Pn[0],dr=Pn[1],hr=function(){dr(!0)},_t=function(){dr(!1)},Qt={getKey:at};function ct(tr){Qn(function(yr){var Br;typeof tr=="function"?Br=tr(yr):Br=tr;var qn=oa(Br);return En.current.scrollTop=qn,qn})}var Zt=(0,Te.useRef)({start:0,end:on.length}),ot=(0,Te.useRef)(),Kt=St(on,at),Ft=(0,Se.Z)(Kt,1),ar=Ft[0];ot.current=ar;var mr=Te.useMemo(function(){if(!jn)return{scrollHeight:void 0,start:0,end:on.length-1,offset:void 0};if(!Zn){var tr;return{scrollHeight:((tr=tn.current)===null||tr===void 0?void 0:tr.offsetHeight)||0,start:0,end:on.length-1,offset:void 0}}for(var yr=0,Br,qn,Jr,Yr=on.length,Er=0;Er<Yr;Er+=1){var Dr=on[Er],$r=at(Dr),qr=Yt.get($r),Aa=yr+(qr===void 0?fe:qr);Aa>=fr&&Br===void 0&&(Br=Er,qn=yr),Aa>fr+ie&&Jr===void 0&&(Jr=Er),yr=Aa}return Br===void 0&&(Br=0,qn=0,Jr=Math.ceil(ie/fe)),Jr===void 0&&(Jr=on.length-1),Jr=Math.min(Jr+1,on.length-1),{scrollHeight:yr,start:Br,end:Jr,offset:qn}},[Zn,jn,fr,on,bn,ie]),At=mr.scrollHeight,Mt=mr.start,kt=mr.end,Vt=mr.offset;Zt.current.start=Mt,Zt.current.end=kt,Te.useLayoutEffect(function(){var tr=Yt.getRecord();if(tr.size===1){var yr=Array.from(tr.keys())[0],Br=tr.get(yr),qn=on[Mt];if(qn&&Br===void 0){var Jr=at(qn);if(Jr===yr){var Yr=Yt.get(yr),Er=Yr-fe;ct(function(Dr){return Dr+Er})}}}Yt.resetRecord()},[At]);var Nn=Te.useState({width:0,height:ie}),Hn=(0,Se.Z)(Nn,2),Un=Hn[0],Xn=Hn[1],pr=function(yr){Xn({width:yr.offsetWidth,height:yr.offsetHeight})},wr=(0,Te.useRef)(),Or=(0,Te.useRef)(),Lr=Te.useMemo(function(){return mt(Un.width,tt)},[Un.width,tt]),Sr=Te.useMemo(function(){return mt(Un.height,At)},[Un.height,At]),Mr=At-ie,Vr=(0,Te.useRef)(Mr);Vr.current=Mr;function oa(tr){var yr=tr;return Number.isNaN(Vr.current)||(yr=Math.min(yr,Vr.current)),yr=Math.max(yr,0),yr}var ra=fr<=0,Oa=fr>=Mr,ba=gr<=0,Kr=gr>=tt,ga=qe(ra,Oa,ba,Kr),Qa=function(){return{x:Ot?-gr:gr,y:fr}},Da=(0,Te.useRef)(Qa()),Ea=(0,de.zX)(function(tr){if(yn){var yr=(0,me.Z)((0,me.Z)({},Qa()),tr);(Da.current.x!==yr.x||Da.current.y!==yr.y)&&(yn(yr),Da.current=yr)}});function Rr(tr,yr){var Br=tr;yr?((0,ft.flushSync)(function(){Hr(Br)}),Ea()):ct(Br)}function Za(tr){var yr=tr.currentTarget.scrollTop;yr!==fr&&ct(yr),Dn==null||Dn(tr),Ea()}var Pa=function(yr){var Br=yr,qn=tt?tt-Un.width:0;return Br=Math.max(Br,0),Br=Math.min(Br,qn),Br},la=(0,de.zX)(function(tr,yr){yr?((0,ft.flushSync)(function(){Hr(function(Br){var qn=Br+(Ot?-tr:tr);return Pa(qn)})}),Ea()):ct(function(Br){var qn=Br+tr;return qn})}),Xr=ut(jn,ra,Oa,ba,Kr,!!tt,la),$a=(0,Se.Z)(Xr,2),Mi=$a[0],$i=$a[1];Ye(jn,En,function(tr,yr,Br,qn){var Jr=qn;return ga(tr,yr,Br)?!1:!Jr||!Jr._virtualHandled?(Jr&&(Jr._virtualHandled=!0),Mi({preventDefault:function(){},deltaX:tr?yr:0,deltaY:tr?0:yr}),!0):!1}),Pe(Zn,En,function(tr){ct(function(yr){return yr+tr})}),(0,We.Z)(function(){function tr(Br){var qn=ra&&Br.detail<0,Jr=Oa&&Br.detail>0;jn&&!qn&&!Jr&&Br.preventDefault()}var yr=En.current;return yr.addEventListener("wheel",Mi,{passive:!1}),yr.addEventListener("DOMMouseScroll",$i,{passive:!0}),yr.addEventListener("MozMousePixelScroll",tr,{passive:!1}),function(){yr.removeEventListener("wheel",Mi),yr.removeEventListener("DOMMouseScroll",$i),yr.removeEventListener("MozMousePixelScroll",tr)}},[jn,ra,Oa]),(0,We.Z)(function(){if(tt){var tr=Pa(gr);Hr(tr),Ea({x:tr})}},[Un.width,tt]);var Xa=function(){var yr,Br;(yr=wr.current)===null||yr===void 0||yr.delayHidden(),(Br=Or.current)===null||Br===void 0||Br.delayHidden()},gi=vt(En,on,Yt,fe,at,function(){return Ut(!0)},ct,Xa);Te.useImperativeHandle(ae,function(){return{nativeElement:In.current,getScrollInfo:Qa,scrollTo:function(yr){function Br(qn){return qn&&(0,ge.Z)(qn)==="object"&&("left"in qn||"top"in qn)}Br(yr)?(yr.left!==void 0&&Hr(Pa(yr.left)),gi(yr.top)):gi(yr)}}}),(0,We.Z)(function(){if(Lt){var tr=on.slice(Mt,kt+1);Lt(tr,on)}},[Mt,kt,on]);var Ii=yt(on,at,Yt,fe),Ri=Xt==null?void 0:Xt({start:Mt,end:kt,virtual:Zn,offsetX:gr,offsetY:Vt,rtl:Ot,getSize:Ii}),Bi=Oe(on,Mt,kt,tt,gr,Pt,gt,Qt),ei=null;ie&&(ei=(0,me.Z)((0,we.Z)({},It?"height":"maxHeight",ie),bt),jn&&(ei.overflowY="hidden",tt&&(ei.overflowX="hidden"),$n&&(ei.pointerEvents="none")));var Ar={};return Ot&&(Ar.dir="rtl"),Te.createElement("div",(0,y.Z)({ref:In,style:(0,me.Z)((0,me.Z)({},Qe),{},{position:"relative"}),className:jt},Ar,xn),Te.createElement(Fe.Z,{onResize:pr},Te.createElement(un,{className:"".concat(se,"-holder"),style:ei,ref:En,onScroll:Za,onMouseEnter:Xa},Te.createElement(Ne,{prefixCls:se,height:At,offsetX:gr,offsetY:Vt,scrollWidth:tt,onInnerResize:Ut,ref:tn,innerProps:cn,rtl:Ot,extra:Ri},Bi))),Zn&&At>ie&&Te.createElement(Ct,{ref:wr,prefixCls:se,scrollOffset:fr,scrollRange:At,rtl:Ot,onScroll:Rr,onStartMove:hr,onStopMove:_t,spinSize:Sr,containerSize:Un.height,style:Xe==null?void 0:Xe.verticalScrollBar,thumbStyle:Xe==null?void 0:Xe.verticalScrollBarThumb,showScrollBar:dn}),Zn&&tt>Un.width&&Te.createElement(Ct,{ref:Or,prefixCls:se,scrollOffset:gr,scrollRange:tt,rtl:Ot,onScroll:Rr,onStartMove:hr,onStopMove:_t,spinSize:Lr,containerSize:Un.width,horizontal:!0,style:Xe==null?void 0:Xe.horizontalScrollBar,thumbStyle:Xe==null?void 0:Xe.horizontalScrollBarThumb,showScrollBar:dn}))}var pt=Te.forwardRef(xt);pt.displayName="List";var ln=pt,Wt=ln},43141:function(Rn,qt,E){"use strict";E.d(qt,{Z5:function(){return bc},_l:function(){return ts},bK:function(){return js}});var y=E(59301),ge=E(29658);function me(te,ne){te.prototype=Object.create(ne.prototype),te.prototype.constructor=te,(0,ge.Z)(te,ne)}var we=E(60499),Se=E(59781),Ee=y.createContext(null),Ce=null;function ke(te){te()}var Fe=ke,de=function(ne){return Fe=ne},We=function(){return Fe};function Te(){var te=We(),ne=null,oe=null;return{clear:function(){ne=null,oe=null},notify:function(){te(function(){for(var ze=ne;ze;)ze.callback(),ze=ze.next})},get:function(){for(var ze=[],He=ne;He;)ze.push(He),He=He.next;return ze},subscribe:function(ze){var He=!0,rt=oe={callback:ze,next:null,prev:oe};return rt.prev?rt.prev.next=rt:ne=rt,function(){!He||ne===null||(He=!1,rt.next?rt.next.prev=rt.prev:oe=rt.prev,rt.prev?rt.prev.next=rt.next:ne=rt.next)}}}}var ft={notify:function(){},get:function(){return[]}};function Ge(te,ne){var oe,he=ft;function ze(sn){return nn(),he.subscribe(sn)}function He(){he.notify()}function rt(){Cn.onStateChange&&Cn.onStateChange()}function ht(){return!!oe}function nn(){oe||(oe=ne?ne.addNestedSub(rt):te.subscribe(rt),he=Te())}function wn(){oe&&(oe(),oe=void 0,he.clear(),he=ft)}var Cn={addNestedSub:ze,notifyNestedSubs:He,handleChangeWrapper:rt,isSubscribed:ht,trySubscribe:nn,tryUnsubscribe:wn,getListeners:function(){return he}};return Cn}var Ne=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect;function Be(te){var ne=te.store,oe=te.context,he=te.children,ze=(0,y.useMemo)(function(){var ht=Ge(ne);return{store:ne,subscription:ht}},[ne]),He=(0,y.useMemo)(function(){return ne.getState()},[ne]);Ne(function(){var ht=ze.subscription;return ht.onStateChange=ht.notifyNestedSubs,ht.trySubscribe(),He!==ne.getState()&&ht.notifyNestedSubs(),function(){ht.tryUnsubscribe(),ht.onStateChange=null}},[ze,He]);var rt=oe||Ee;return y.createElement(rt.Provider,{value:ze},he)}var Oe=Be,Ie=E(69010),nt=E(94266),St=E.n(nt),Ae=E(53410),_e=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],et=["reactReduxForwardedRef"],qe=[],ut=[null,null],yt=function(ne){try{return JSON.stringify(ne)}catch(oe){return String(ne)}};function st(te,ne){var oe=te[1];return[ne.payload,oe+1]}function $e(te,ne,oe){Ne(function(){return te.apply(void 0,ne)},oe)}function pe(te,ne,oe,he,ze,He,rt){te.current=he,ne.current=ze,oe.current=!1,He.current&&(He.current=null,rt())}function Le(te,ne,oe,he,ze,He,rt,ht,nn,wn){if(te){var Cn=!1,sn=null,mn=function(){if(!Cn){var va=ne.getState(),Ia,ka;try{Ia=he(va,ze.current)}catch(ii){ka=ii,sn=ii}ka||(sn=null),Ia===He.current?rt.current||nn():(He.current=Ia,ht.current=Ia,rt.current=!0,wn({type:"STORE_UPDATED",payload:{error:ka}}))}};oe.onStateChange=mn,oe.trySubscribe(),mn();var _n=function(){if(Cn=!0,oe.tryUnsubscribe(),oe.onStateChange=null,sn)throw sn};return _n}}var xe=function(){return[null,0]};function ce(te,ne){ne===void 0&&(ne={});var oe=ne,he=oe.getDisplayName,ze=he===void 0?function(mo){return"ConnectAdvanced("+mo+")"}:he,He=oe.methodName,rt=He===void 0?"connectAdvanced":He,ht=oe.renderCountProp,nn=ht===void 0?void 0:ht,wn=oe.shouldHandleStateChanges,Cn=wn===void 0?!0:wn,sn=oe.storeKey,mn=sn===void 0?"store":sn,_n=oe.withRef,sr=_n===void 0?!1:_n,va=oe.forwardRef,Ia=va===void 0?!1:va,ka=oe.context,ii=ka===void 0?Ee:ka,Fi=(0,Ie.Z)(oe,_e);if(0)var Ti;var bo=ii;return function(Wo){var jl=Wo.displayName||Wo.name||"Component",Vo=ze(jl),Wl=(0,we.Z)({},Fi,{getDisplayName:ze,methodName:rt,renderCountProp:nn,shouldHandleStateChanges:Cn,storeKey:mn,displayName:Vo,wrappedComponentName:jl,WrappedComponent:Wo}),ds=Fi.pure;function ys(bs){return te(bs.dispatch,Wl)}var du=ds?y.useMemo:function(bs){return bs()};function eu(bs){var _u=(0,y.useMemo)(function(){var gc=bs.reactReduxForwardedRef,Hc=(0,Ie.Z)(bs,et);return[bs.context,gc,Hc]},[bs]),mu=_u[0],hc=_u[1],Qu=_u[2],Tu=(0,y.useMemo)(function(){return mu&&mu.Consumer&&(0,Ae.isContextConsumer)(y.createElement(mu.Consumer,null))?mu:bo},[mu,bo]),pu=(0,y.useContext)(Tu),Ju=!!bs.store&&!!bs.store.getState&&!!bs.store.dispatch,Fc=!!pu&&!!pu.store,hu=Ju?bs.store:pu.store,vc=(0,y.useMemo)(function(){return ys(hu)},[hu]),Ic=(0,y.useMemo)(function(){if(!Cn)return ut;var gc=Ge(hu,Ju?null:pu.subscription),Hc=gc.notifyNestedSubs.bind(gc);return[gc,Hc]},[hu,Ju,pu]),oc=Ic[0],Pc=Ic[1],Ac=(0,y.useMemo)(function(){return Ju?pu:(0,we.Z)({},pu,{subscription:oc})},[Ju,pu,oc]),Vc=(0,y.useReducer)(st,qe,xe),Xc=Vc[0],Oc=Xc[0],Yc=Vc[1];if(Oc&&Oc.error)throw Oc.error;var Kc=(0,y.useRef)(),jc=(0,y.useRef)(Qu),Nc=(0,y.useRef)(),Gc=(0,y.useRef)(!1),Wc=du(function(){return Nc.current&&Qu===jc.current?Nc.current:vc(hu.getState(),Qu)},[hu,Oc,Qu]);$e(pe,[jc,Kc,Gc,Qu,Wc,Nc,Pc]),$e(Le,[Cn,hu,oc,vc,jc,Kc,Gc,Nc,Pc,Yc],[hu,oc,vc]);var zc=(0,y.useMemo)(function(){return y.createElement(Wo,(0,we.Z)({},Wc,{ref:hc}))},[hc,Wo,Wc]),Qc=(0,y.useMemo)(function(){return Cn?y.createElement(Tu.Provider,{value:Ac},zc):zc},[Tu,zc,Ac]);return Qc}var Ws=ds?y.memo(eu):eu;if(Ws.WrappedComponent=Wo,Ws.displayName=eu.displayName=Vo,Ia){var fu=y.forwardRef(function(_u,mu){return y.createElement(Ws,(0,we.Z)({},_u,{reactReduxForwardedRef:mu}))});return fu.displayName=Vo,fu.WrappedComponent=Wo,St()(fu,Wo)}return St()(Ws,Wo)}}function Et(te,ne){return te===ne?te!==0||ne!==0||1/te===1/ne:te!==te&&ne!==ne}function Ye(te,ne){if(Et(te,ne))return!0;if(typeof te!="object"||te===null||typeof ne!="object"||ne===null)return!1;var oe=Object.keys(te),he=Object.keys(ne);if(oe.length!==he.length)return!1;for(var ze=0;ze<oe.length;ze++)if(!Object.prototype.hasOwnProperty.call(ne,oe[ze])||!Et(te[oe[ze]],ne[oe[ze]]))return!1;return!0}function je(te,ne){var oe={},he=function(rt){var ht=te[rt];typeof ht=="function"&&(oe[rt]=function(){return ne(ht.apply(void 0,arguments))})};for(var ze in te)he(ze);return oe}function it(te){return function(oe,he){var ze=te(oe,he);function He(){return ze}return He.dependsOnOwnProps=!1,He}}function Pe(te){return te.dependsOnOwnProps!==null&&te.dependsOnOwnProps!==void 0?!!te.dependsOnOwnProps:te.length!==1}function ye(te,ne){return function(he,ze){var He=ze.displayName,rt=function(nn,wn){return rt.dependsOnOwnProps?rt.mapToProps(nn,wn):rt.mapToProps(nn)};return rt.dependsOnOwnProps=!0,rt.mapToProps=function(nn,wn){rt.mapToProps=te,rt.dependsOnOwnProps=Pe(te);var Cn=rt(nn,wn);return typeof Cn=="function"&&(rt.mapToProps=Cn,rt.dependsOnOwnProps=Pe(Cn),Cn=rt(nn,wn)),Cn},rt}}function vt(te){return typeof te=="function"?ye(te,"mapDispatchToProps"):void 0}function zt(te){return te?void 0:it(function(ne){return{dispatch:ne}})}function Ct(te){return te&&typeof te=="object"?it(function(ne){return je(te,ne)}):void 0}var De=[vt,zt,Ct];function mt(te){return typeof te=="function"?ye(te,"mapStateToProps"):void 0}function dt(te){return te?void 0:it(function(){return{}})}var Gt=[mt,dt];function bt(te,ne,oe){return(0,we.Z)({},oe,te,ne)}function xt(te){return function(oe,he){var ze=he.displayName,He=he.pure,rt=he.areMergedPropsEqual,ht=!1,nn;return function(Cn,sn,mn){var _n=te(Cn,sn,mn);return ht?(!He||!rt(_n,nn))&&(nn=_n):(ht=!0,nn=_n),nn}}}function pt(te){return typeof te=="function"?xt(te):void 0}function ln(te){return te?void 0:function(){return bt}}var Wt=[pt,ln],ue=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ae(te,ne,oe,he){return function(He,rt){return oe(te(He,rt),ne(he,rt),rt)}}function re(te,ne,oe,he,ze){var He=ze.areStatesEqual,rt=ze.areOwnPropsEqual,ht=ze.areStatePropsEqual,nn=!1,wn,Cn,sn,mn,_n;function sr(Fi,Ti){return wn=Fi,Cn=Ti,sn=te(wn,Cn),mn=ne(he,Cn),_n=oe(sn,mn,Cn),nn=!0,_n}function va(){return sn=te(wn,Cn),ne.dependsOnOwnProps&&(mn=ne(he,Cn)),_n=oe(sn,mn,Cn),_n}function Ia(){return te.dependsOnOwnProps&&(sn=te(wn,Cn)),ne.dependsOnOwnProps&&(mn=ne(he,Cn)),_n=oe(sn,mn,Cn),_n}function ka(){var Fi=te(wn,Cn),Ti=!ht(Fi,sn);return sn=Fi,Ti&&(_n=oe(sn,mn,Cn)),_n}function ii(Fi,Ti){var bo=!rt(Ti,Cn),mo=!He(Fi,wn,Ti,Cn);return wn=Fi,Cn=Ti,bo&&mo?va():bo?Ia():mo?ka():_n}return function(Ti,bo){return nn?ii(Ti,bo):sr(Ti,bo)}}function se(te,ne){var oe=ne.initMapStateToProps,he=ne.initMapDispatchToProps,ze=ne.initMergeProps,He=(0,Ie.Z)(ne,ue),rt=oe(te,He),ht=he(te,He),nn=ze(te,He),wn=He.pure?re:ae;return wn(rt,ht,nn,te,He)}var ve=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ie(te,ne,oe){for(var he=ne.length-1;he>=0;he--){var ze=ne[he](te);if(ze)return ze}return function(He,rt){throw new Error("Invalid value of type "+typeof te+" for "+oe+" argument when connecting component "+rt.wrappedComponentName+".")}}function fe(te,ne){return te===ne}function Ve(te){var ne=te===void 0?{}:te,oe=ne.connectHOC,he=oe===void 0?ce:oe,ze=ne.mapStateToPropsFactories,He=ze===void 0?Gt:ze,rt=ne.mapDispatchToPropsFactories,ht=rt===void 0?De:rt,nn=ne.mergePropsFactories,wn=nn===void 0?Wt:nn,Cn=ne.selectorFactory,sn=Cn===void 0?se:Cn;return function(_n,sr,va,Ia){Ia===void 0&&(Ia={});var ka=Ia,ii=ka.pure,Fi=ii===void 0?!0:ii,Ti=ka.areStatesEqual,bo=Ti===void 0?fe:Ti,mo=ka.areOwnPropsEqual,Wo=mo===void 0?Ye:mo,jl=ka.areStatePropsEqual,Vo=jl===void 0?Ye:jl,Wl=ka.areMergedPropsEqual,ds=Wl===void 0?Ye:Wl,ys=(0,Ie.Z)(ka,ve),du=ie(_n,He,"mapStateToProps"),eu=ie(sr,ht,"mapDispatchToProps"),Ws=ie(va,wn,"mergeProps");return he(sn,(0,we.Z)({methodName:"connect",getDisplayName:function(bs){return"Connect("+bs+")"},shouldHandleStateChanges:!!_n,initMapStateToProps:du,initMapDispatchToProps:eu,initMergeProps:Ws,pure:Fi,areStatesEqual:bo,areOwnPropsEqual:Wo,areStatePropsEqual:Vo,areMergedPropsEqual:ds},ys))}}var It=Ve();function Qe(){var te=useContext(ReactReduxContext);return te}function Ke(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(){var he=ne(),ze=he.store;return ze}}var gt=null;function wt(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultStore:createStoreHook(te);return function(){var he=ne();return he.dispatch}}var Tt=null,Je=function(ne,oe){return ne===oe};function tt(te,ne,oe,he){var ze=useReducer(function(sr){return sr+1},0),He=ze[1],rt=useMemo(function(){return createSubscription(oe,he)},[oe,he]),ht=useRef(),nn=useRef(),wn=useRef(),Cn=useRef(),sn=oe.getState(),mn;try{if(te!==nn.current||sn!==wn.current||ht.current){var _n=te(sn);Cn.current===void 0||!ne(_n,Cn.current)?mn=_n:mn=Cn.current}else mn=Cn.current}catch(sr){throw ht.current&&(sr.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+ht.current.stack+`
|
|
|
|
|
|
`),sr}return useIsomorphicLayoutEffect(function(){nn.current=te,wn.current=sn,Cn.current=mn,ht.current=void 0}),useIsomorphicLayoutEffect(function(){function sr(){try{var va=oe.getState();if(va===wn.current)return;var Ia=nn.current(va);if(ne(Ia,Cn.current))return;Cn.current=Ia,wn.current=va}catch(ka){ht.current=ka}He()}return rt.onStateChange=sr,rt.trySubscribe(),sr(),function(){return rt.tryUnsubscribe()}},[oe,rt]),mn}function Ht(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(he,ze){ze===void 0&&(ze=Je);var He=ne(),rt=He.store,ht=He.subscription,nn=tt(he,ze,rt,ht);return useDebugValue(nn),nn}}var un=null,Dn=E(4676);de(Dn.unstable_batchedUpdates);function yn(te,ne){if(te.length!==ne.length)return!1;for(var oe=0;oe<te.length;oe++)if(te[oe]!==ne[oe])return!1;return!0}function Lt(te,ne){var oe=(0,y.useState)(function(){return{inputs:ne,result:te()}})[0],he=(0,y.useRef)(!0),ze=(0,y.useRef)(oe),He=he.current||!!(ne&&ze.current.inputs&&yn(ne,ze.current.inputs)),rt=He?ze.current:{inputs:ne,result:te()};return(0,y.useEffect)(function(){he.current=!1,ze.current=rt},[rt]),rt.result}function cn(te,ne){return Lt(function(){return te},ne)}var Xt=Lt,Xe=cn,Nt=!0,dn="Invariant failed";function xn(te,ne){if(!te){if(Nt)throw new Error(dn);var oe=typeof ne=="function"?ne():ne,he=oe?"".concat(dn,": ").concat(oe):dn;throw new Error(he)}}var at=function(ne){var oe=ne.top,he=ne.right,ze=ne.bottom,He=ne.left,rt=he-He,ht=ze-oe,nn={top:oe,right:he,bottom:ze,left:He,width:rt,height:ht,x:He,y:oe,center:{x:(he+He)/2,y:(ze+oe)/2}};return nn},Rt=function(ne,oe){return{top:ne.top-oe.top,left:ne.left-oe.left,bottom:ne.bottom+oe.bottom,right:ne.right+oe.right}},en=function(ne,oe){return{top:ne.top+oe.top,left:ne.left+oe.left,bottom:ne.bottom-oe.bottom,right:ne.right-oe.right}},Pt=function(ne,oe){return{top:ne.top+oe.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},Ut={top:0,right:0,bottom:0,left:0},Yt=function(ne){var oe=ne.borderBox,he=ne.margin,ze=he===void 0?Ut:he,He=ne.border,rt=He===void 0?Ut:He,ht=ne.padding,nn=ht===void 0?Ut:ht,wn=at(Rt(oe,ze)),Cn=at(en(oe,rt)),sn=at(en(Cn,nn));return{marginBox:wn,borderBox:at(oe),paddingBox:Cn,contentBox:sn,margin:ze,border:rt,padding:nn}},bn=function(ne){var oe=ne.slice(0,-2),he=ne.slice(-2);if(he!=="px")return 0;var ze=Number(oe);return isNaN(ze)&&xn(!1),ze},jn=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Bn=function(ne,oe){var he=ne.borderBox,ze=ne.border,He=ne.margin,rt=ne.padding,ht=Pt(he,oe);return Yt({borderBox:ht,border:ze,margin:He,padding:rt})},Zn=function(ne,oe){return oe===void 0&&(oe=jn()),Bn(ne,oe)},Ot=function(ne,oe){var he={top:bn(oe.marginTop),right:bn(oe.marginRight),bottom:bn(oe.marginBottom),left:bn(oe.marginLeft)},ze={top:bn(oe.paddingTop),right:bn(oe.paddingRight),bottom:bn(oe.paddingBottom),left:bn(oe.paddingLeft)},He={top:bn(oe.borderTopWidth),right:bn(oe.borderRightWidth),bottom:bn(oe.borderBottomWidth),left:bn(oe.borderLeftWidth)};return Yt({borderBox:ne,margin:he,padding:ze,border:He})},jt=function(ne){var oe=ne.getBoundingClientRect(),he=window.getComputedStyle(ne);return Ot(oe,he)},on=Number.isNaN||function(ne){return typeof ne=="number"&&ne!==ne};function En(te,ne){return!!(te===ne||on(te)&&on(ne))}function tn(te,ne){if(te.length!==ne.length)return!1;for(var oe=0;oe<te.length;oe++)if(!En(te[oe],ne[oe]))return!1;return!0}function In(te,ne){ne===void 0&&(ne=tn);var oe,he=[],ze,He=!1;function rt(){for(var ht=[],nn=0;nn<arguments.length;nn++)ht[nn]=arguments[nn];return He&&oe===this&&ne(ht,he)||(ze=te.apply(this,ht),He=!0,oe=this,he=ht),ze}return rt}var pn=In,On=function(ne){var oe=[],he=null,ze=function(){for(var rt=arguments.length,ht=new Array(rt),nn=0;nn<rt;nn++)ht[nn]=arguments[nn];oe=ht,!he&&(he=requestAnimationFrame(function(){he=null,ne.apply(void 0,oe)}))};return ze.cancel=function(){he&&(cancelAnimationFrame(he),he=null)},ze},fr=On,Qn=!0,cr=/[ \t]{2,}/g,Cr=/^[ \t]*/gm,gr=function(ne){return ne.replace(cr," ").replace(Cr,"").trim()},Hr=function(ne){return gr(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+gr(ne)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},Zr=function(ne){return[Hr(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Pn="__react-beautiful-dnd-disable-dev-warnings";function $n(te,ne){var oe;Qn||typeof window!="undefined"&&window[Pn]||(oe=console)[te].apply(oe,Zr(ne))}var dr=$n.bind(null,"warn"),hr=$n.bind(null,"error");function _t(){}function Qt(te,ne){return(0,we.Z)({},te,{},ne)}function ct(te,ne,oe){var he=ne.map(function(ze){var He=Qt(oe,ze.options);return te.addEventListener(ze.eventName,ze.fn,He),function(){te.removeEventListener(ze.eventName,ze.fn,He)}});return function(){he.forEach(function(He){He()})}}var Zt=!0,ot="Invariant failed";function Kt(te){this.message=te}Kt.prototype.toString=function(){return this.message};function Ft(te,ne){if(!te)throw Zt?new Kt(ot):new Kt(ot+": "+(ne||""))}var ar=function(te){me(ne,te);function ne(){for(var he,ze=arguments.length,He=new Array(ze),rt=0;rt<ze;rt++)He[rt]=arguments[rt];return he=te.call.apply(te,[this].concat(He))||this,he.callbacks=null,he.unbind=_t,he.onWindowError=function(ht){var nn=he.getCallbacks();nn.isDragging()&&nn.tryAbort();var wn=ht.error;wn instanceof Kt&&ht.preventDefault()},he.getCallbacks=function(){if(!he.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return he.callbacks},he.setCallbacks=function(ht){he.callbacks=ht},he}var oe=ne.prototype;return oe.componentDidMount=function(){this.unbind=ct(window,[{eventName:"error",fn:this.onWindowError}])},oe.componentWillUnmount=function(){this.unbind()},oe.componentDidCatch=function(ze){if(ze instanceof Kt){this.setState({});return}throw ze},oe.render=function(){return this.props.children(this.setCallbacks)},ne}(y.Component),mr=`
|
|
|
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
|
|
|
`,At=function(ne){return ne+1},Mt=function(ne){return`
|
|
|
You have lifted an item in position `+At(ne.source.index)+`
|
|
|
`},kt=function(ne,oe){var he=ne.droppableId===oe.droppableId,ze=At(ne.index),He=At(oe.index);return he?`
|
|
|
You have moved the item from position `+ze+`
|
|
|
to position `+He+`
|
|
|
`:`
|
|
|
You have moved the item from position `+ze+`
|
|
|
in list `+ne.droppableId+`
|
|
|
to list `+oe.droppableId+`
|
|
|
in position `+He+`
|
|
|
`},Vt=function(ne,oe,he){var ze=oe.droppableId===he.droppableId;return ze?`
|
|
|
The item `+ne+`
|
|
|
has been combined with `+he.draggableId:`
|
|
|
The item `+ne+`
|
|
|
in list `+oe.droppableId+`
|
|
|
has been combined with `+he.draggableId+`
|
|
|
in list `+he.droppableId+`
|
|
|
`},Nn=function(ne){var oe=ne.destination;if(oe)return kt(ne.source,oe);var he=ne.combine;return he?Vt(ne.draggableId,ne.source,he):"You are over an area that cannot be dropped on"},Hn=function(ne){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+At(ne.index)+`
|
|
|
`},Un=function(ne){if(ne.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Hn(ne.source)+`
|
|
|
`;var oe=ne.destination,he=ne.combine;return oe?`
|
|
|
You have dropped the item.
|
|
|
`+kt(ne.source,oe)+`
|
|
|
`:he?`
|
|
|
You have dropped the item.
|
|
|
`+Vt(ne.draggableId,ne.source,he)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Hn(ne.source)+`
|
|
|
`},Xn={dragHandleUsageInstructions:mr,onDragStart:Mt,onDragUpdate:Nn,onDragEnd:Un},pr={x:0,y:0},wr=function(ne,oe){return{x:ne.x+oe.x,y:ne.y+oe.y}},Or=function(ne,oe){return{x:ne.x-oe.x,y:ne.y-oe.y}},Lr=function(ne,oe){return ne.x===oe.x&&ne.y===oe.y},Sr=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},Mr=function(ne,oe,he){var ze;return he===void 0&&(he=0),ze={},ze[ne]=oe,ze[ne==="x"?"y":"x"]=he,ze},Vr=function(ne,oe){return Math.sqrt(Math.pow(oe.x-ne.x,2)+Math.pow(oe.y-ne.y,2))},oa=function(ne,oe){return Math.min.apply(Math,oe.map(function(he){return Vr(ne,he)}))},ra=function(ne){return function(oe){return{x:ne(oe.x),y:ne(oe.y)}}},Oa=function(te,ne){var oe=at({top:Math.max(ne.top,te.top),right:Math.min(ne.right,te.right),bottom:Math.min(ne.bottom,te.bottom),left:Math.max(ne.left,te.left)});return oe.width<=0||oe.height<=0?null:oe},ba=function(ne,oe){return{top:ne.top+oe.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},Kr=function(ne){return[{x:ne.left,y:ne.top},{x:ne.right,y:ne.top},{x:ne.left,y:ne.bottom},{x:ne.right,y:ne.bottom}]},ga={top:0,right:0,bottom:0,left:0},Qa=function(ne,oe){return oe?ba(ne,oe.scroll.diff.displacement):ne},Da=function(ne,oe,he){if(he&&he.increasedBy){var ze;return(0,we.Z)({},ne,(ze={},ze[oe.end]=ne[oe.end]+he.increasedBy[oe.line],ze))}return ne},Ea=function(ne,oe){return oe&&oe.shouldClipSubject?Oa(oe.pageMarginBox,ne):at(ne)},Rr=function(te){var ne=te.page,oe=te.withPlaceholder,he=te.axis,ze=te.frame,He=Qa(ne.marginBox,ze),rt=Da(He,he,oe),ht=Ea(rt,ze);return{page:ne,withPlaceholder:oe,active:ht}},Za=function(te,ne){te.frame||Ft(!1);var oe=te.frame,he=Or(ne,oe.scroll.initial),ze=Sr(he),He=(0,we.Z)({},oe,{scroll:{initial:oe.scroll.initial,current:ne,diff:{value:he,displacement:ze},max:oe.scroll.max}}),rt=Rr({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:He}),ht=(0,we.Z)({},te,{frame:He,subject:rt});return ht};function Pa(te){return Number.isInteger?Number.isInteger(te):typeof te=="number"&&isFinite(te)&&Math.floor(te)===te}function la(te){return Object.values?Object.values(te):Object.keys(te).map(function(ne){return te[ne]})}function Xr(te,ne){if(te.findIndex)return te.findIndex(ne);for(var oe=0;oe<te.length;oe++)if(ne(te[oe]))return oe;return-1}function $a(te,ne){if(te.find)return te.find(ne);var oe=Xr(te,ne);if(oe!==-1)return te[oe]}function Mi(te){return Array.prototype.slice.call(te)}var $i=pn(function(te){return te.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),Xa=pn(function(te){return te.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),gi=pn(function(te){return la(te)}),Ii=pn(function(te){return la(te)}),Ri=pn(function(te,ne){var oe=Ii(ne).filter(function(he){return te===he.descriptor.droppableId}).sort(function(he,ze){return he.descriptor.index-ze.descriptor.index});return oe});function Bi(te){return te.at&&te.at.type==="REORDER"?te.at.destination:null}function ei(te){return te.at&&te.at.type==="COMBINE"?te.at.combine:null}var Ar=pn(function(te,ne){return ne.filter(function(oe){return oe.descriptor.id!==te.descriptor.id})}),tr=function(te){var ne=te.isMovingForward,oe=te.draggable,he=te.destination,ze=te.insideDestination,He=te.previousImpact;if(!he.isCombineEnabled)return null;var rt=Bi(He);if(!rt)return null;function ht(va){var Ia={type:"COMBINE",combine:{draggableId:va,droppableId:he.descriptor.id}};return(0,we.Z)({},He,{at:Ia})}var nn=He.displaced.all,wn=nn.length?nn[0]:null;if(ne)return wn?ht(wn):null;var Cn=Ar(oe,ze);if(!wn){if(!Cn.length)return null;var sn=Cn[Cn.length-1];return ht(sn.descriptor.id)}var mn=Xr(Cn,function(va){return va.descriptor.id===wn});mn===-1&&Ft(!1);var _n=mn-1;if(_n<0)return null;var sr=Cn[_n];return ht(sr.descriptor.id)},yr=function(te,ne){return te.descriptor.droppableId===ne.descriptor.id},Br={point:pr,value:0},qn={invisible:{},visible:{},all:[]},Jr={displaced:qn,displacedBy:Br,at:null},Yr=function(te,ne){return function(oe){return te<=oe&&oe<=ne}},Er=function(te){var ne=Yr(te.top,te.bottom),oe=Yr(te.left,te.right);return function(he){var ze=ne(he.top)&&ne(he.bottom)&&oe(he.left)&&oe(he.right);if(ze)return!0;var He=ne(he.top)||ne(he.bottom),rt=oe(he.left)||oe(he.right),ht=He&&rt;if(ht)return!0;var nn=he.top<te.top&&he.bottom>te.bottom,wn=he.left<te.left&&he.right>te.right,Cn=nn&&wn;if(Cn)return!0;var sn=nn&&rt||wn&&He;return sn}},Dr=function(te){var ne=Yr(te.top,te.bottom),oe=Yr(te.left,te.right);return function(he){var ze=ne(he.top)&&ne(he.bottom)&&oe(he.left)&&oe(he.right);return ze}},$r={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},qr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Aa=function(te){return function(ne){var oe=Yr(ne.top,ne.bottom),he=Yr(ne.left,ne.right);return function(ze){return te===$r?oe(ze.top)&&oe(ze.bottom):he(ze.left)&&he(ze.right)}}},Wa=function(ne,oe){var he=oe.frame?oe.frame.scroll.diff.displacement:pr;return ba(ne,he)},na=function(ne,oe,he){return oe.subject.active?he(oe.subject.active)(ne):!1},li=function(ne,oe,he){return he(oe)(ne)},di=function(ne){var oe=ne.target,he=ne.destination,ze=ne.viewport,He=ne.withDroppableDisplacement,rt=ne.isVisibleThroughFrameFn,ht=He?Wa(oe,he):oe;return na(ht,he,rt)&&li(ht,ze,rt)},zi=function(ne){return di((0,we.Z)({},ne,{isVisibleThroughFrameFn:Er}))},Hi=function(ne){return di((0,we.Z)({},ne,{isVisibleThroughFrameFn:Dr}))},Ji=function(ne){return di((0,we.Z)({},ne,{isVisibleThroughFrameFn:Aa(ne.destination.axis)}))},Yi=function(ne,oe,he){if(typeof he=="boolean")return he;if(!oe)return!0;var ze=oe.invisible,He=oe.visible;if(ze[ne])return!1;var rt=He[ne];return rt?rt.shouldAnimate:!0};function Eo(te,ne){var oe=te.page.marginBox,he={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return at(Rt(oe,he))}function Co(te){var ne=te.afterDragging,oe=te.destination,he=te.displacedBy,ze=te.viewport,He=te.forceShouldAnimate,rt=te.last;return ne.reduce(function(nn,wn){var Cn=Eo(wn,he),sn=wn.descriptor.id;nn.all.push(sn);var mn=zi({target:Cn,destination:oe,viewport:ze,withDroppableDisplacement:!0});if(!mn)return nn.invisible[wn.descriptor.id]=!0,nn;var _n=Yi(sn,rt,He),sr={draggableId:sn,shouldAnimate:_n};return nn.visible[sn]=sr,nn},{all:[],visible:{},invisible:{}})}function zo(te,ne){if(!te.length)return 0;var oe=te[te.length-1].descriptor.index;return ne.inHomeList?oe:oe+1}function Go(te){var ne=te.insideDestination,oe=te.inHomeList,he=te.displacedBy,ze=te.destination,He=zo(ne,{inHomeList:oe});return{displaced:qn,displacedBy:he,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:He}}}}function Ta(te){var ne=te.draggable,oe=te.insideDestination,he=te.destination,ze=te.viewport,He=te.displacedBy,rt=te.last,ht=te.index,nn=te.forceShouldAnimate,wn=yr(ne,he);if(ht==null)return Go({insideDestination:oe,inHomeList:wn,displacedBy:He,destination:he});var Cn=$a(oe,function(va){return va.descriptor.index===ht});if(!Cn)return Go({insideDestination:oe,inHomeList:wn,displacedBy:He,destination:he});var sn=Ar(ne,oe),mn=oe.indexOf(Cn),_n=sn.slice(mn),sr=Co({afterDragging:_n,destination:he,displacedBy:He,last:rt,viewport:ze.frame,forceShouldAnimate:nn});return{displaced:sr,displacedBy:He,at:{type:"REORDER",destination:{droppableId:he.descriptor.id,index:ht}}}}function fi(te,ne){return!!ne.effected[te]}var ni=function(te){var ne=te.isMovingForward,oe=te.destination,he=te.draggables,ze=te.combine,He=te.afterCritical;if(!oe.isCombineEnabled)return null;var rt=ze.draggableId,ht=he[rt],nn=ht.descriptor.index,wn=fi(rt,He);return wn?ne?nn:nn-1:ne?nn+1:nn},xo=function(te){var ne=te.isMovingForward,oe=te.isInHomeList,he=te.insideDestination,ze=te.location;if(!he.length)return null;var He=ze.index,rt=ne?He+1:He-1,ht=he[0].descriptor.index,nn=he[he.length-1].descriptor.index,wn=oe?nn:nn+1;return rt<ht||rt>wn?null:rt},mi=function(te){var ne=te.isMovingForward,oe=te.isInHomeList,he=te.draggable,ze=te.draggables,He=te.destination,rt=te.insideDestination,ht=te.previousImpact,nn=te.viewport,wn=te.afterCritical,Cn=ht.at;if(Cn||Ft(!1),Cn.type==="REORDER"){var sn=xo({isMovingForward:ne,isInHomeList:oe,location:Cn.destination,insideDestination:rt});return sn==null?null:Ta({draggable:he,insideDestination:rt,destination:He,viewport:nn,last:ht.displaced,displacedBy:ht.displacedBy,index:sn})}var mn=ni({isMovingForward:ne,destination:He,displaced:ht.displaced,draggables:ze,combine:Cn.combine,afterCritical:wn});return mn==null?null:Ta({draggable:he,insideDestination:rt,destination:He,viewport:nn,last:ht.displaced,displacedBy:ht.displacedBy,index:mn})},rl=function(te){var ne=te.displaced,oe=te.afterCritical,he=te.combineWith,ze=te.displacedBy,He=!!(ne.visible[he]||ne.invisible[he]);return fi(he,oe)?He?pr:Sr(ze.point):He?ze.point:pr},zl=function(te){var ne=te.afterCritical,oe=te.impact,he=te.draggables,ze=ei(oe);ze||Ft(!1);var He=ze.draggableId,rt=he[He].page.borderBox.center,ht=rl({displaced:oe.displaced,afterCritical:ne,combineWith:He,displacedBy:oe.displacedBy});return wr(rt,ht)},Il=function(ne,oe){return oe.margin[ne.start]+oe.borderBox[ne.size]/2},qo=function(ne,oe){return oe.margin[ne.end]+oe.borderBox[ne.size]/2},Xo=function(ne,oe,he){return oe[ne.crossAxisStart]+he.margin[ne.crossAxisStart]+he.borderBox[ne.crossAxisSize]/2},no=function(ne){var oe=ne.axis,he=ne.moveRelativeTo,ze=ne.isMoving;return Mr(oe.line,he.marginBox[oe.end]+Il(oe,ze),Xo(oe,he.marginBox,ze))},Pl=function(ne){var oe=ne.axis,he=ne.moveRelativeTo,ze=ne.isMoving;return Mr(oe.line,he.marginBox[oe.start]-qo(oe,ze),Xo(oe,he.marginBox,ze))},Gl=function(ne){var oe=ne.axis,he=ne.moveInto,ze=ne.isMoving;return Mr(oe.line,he.contentBox[oe.start]+Il(oe,ze),Xo(oe,he.contentBox,ze))},Hl=function(te){var ne=te.impact,oe=te.draggable,he=te.draggables,ze=te.droppable,He=te.afterCritical,rt=Ri(ze.descriptor.id,he),ht=oe.page,nn=ze.axis;if(!rt.length)return Gl({axis:nn,moveInto:ze.page,isMoving:ht});var wn=ne.displaced,Cn=ne.displacedBy,sn=wn.all[0];if(sn){var mn=he[sn];if(fi(sn,He))return Pl({axis:nn,moveRelativeTo:mn.page,isMoving:ht});var _n=Bn(mn.page,Cn.point);return Pl({axis:nn,moveRelativeTo:_n,isMoving:ht})}var sr=rt[rt.length-1];if(sr.descriptor.id===oe.descriptor.id)return ht.borderBox.center;if(fi(sr.descriptor.id,He)){var va=Bn(sr.page,Sr(He.displacedBy.point));return no({axis:nn,moveRelativeTo:va,isMoving:ht})}return no({axis:nn,moveRelativeTo:sr.page,isMoving:ht})},So=function(te,ne){var oe=te.frame;return oe?wr(ne,oe.scroll.diff.displacement):ne},fs=function(ne){var oe=ne.impact,he=ne.draggable,ze=ne.droppable,He=ne.draggables,rt=ne.afterCritical,ht=he.page.borderBox.center,nn=oe.at;return!ze||!nn?ht:nn.type==="REORDER"?Hl({impact:oe,draggable:he,draggables:He,droppable:ze,afterCritical:rt}):zl({impact:oe,draggables:He,afterCritical:rt})},Ul=function(te){var ne=fs(te),oe=te.droppable,he=oe?So(oe,ne):ne;return he},_i=function(te,ne){var oe=Or(ne,te.scroll.initial),he=Sr(oe),ze=at({top:ne.y,bottom:ne.y+te.frame.height,left:ne.x,right:ne.x+te.frame.width}),He={frame:ze,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:ne,diff:{value:oe,displacement:he}}};return He};function Ui(te,ne){return te.map(function(oe){return ne[oe]})}function Pi(te,ne){for(var oe=0;oe<ne.length;oe++){var he=ne[oe].visible[te];if(he)return he}return null}var vi=function(te){var ne=te.impact,oe=te.viewport,he=te.destination,ze=te.draggables,He=te.maxScrollChange,rt=_i(oe,wr(oe.scroll.current,He)),ht=he.frame?Za(he,wr(he.frame.scroll.current,He)):he,nn=ne.displaced,wn=Co({afterDragging:Ui(nn.all,ze),destination:he,displacedBy:ne.displacedBy,viewport:rt.frame,last:nn,forceShouldAnimate:!1}),Cn=Co({afterDragging:Ui(nn.all,ze),destination:ht,displacedBy:ne.displacedBy,viewport:oe.frame,last:nn,forceShouldAnimate:!1}),sn={},mn={},_n=[nn,wn,Cn];nn.all.forEach(function(va){var Ia=Pi(va,_n);if(Ia){mn[va]=Ia;return}sn[va]=!0});var sr=(0,we.Z)({},ne,{displaced:{all:nn.all,invisible:sn,visible:mn}});return sr},Gi=function(te,ne){return wr(te.scroll.diff.displacement,ne)},so=function(te){var ne=te.pageBorderBoxCenter,oe=te.draggable,he=te.viewport,ze=Gi(he,ne),He=Or(ze,oe.page.borderBox.center);return wr(oe.client.borderBox.center,He)},wl=function(te){var ne=te.draggable,oe=te.destination,he=te.newPageBorderBoxCenter,ze=te.viewport,He=te.withDroppableDisplacement,rt=te.onlyOnMainAxis,ht=rt===void 0?!1:rt,nn=Or(he,ne.page.borderBox.center),wn=ba(ne.page.borderBox,nn),Cn={target:wn,destination:oe,withDroppableDisplacement:He,viewport:ze};return ht?Ji(Cn):Hi(Cn)},Lo=function(te){var ne=te.isMovingForward,oe=te.draggable,he=te.destination,ze=te.draggables,He=te.previousImpact,rt=te.viewport,ht=te.previousPageBorderBoxCenter,nn=te.previousClientSelection,wn=te.afterCritical;if(!he.isEnabled)return null;var Cn=Ri(he.descriptor.id,ze),sn=yr(oe,he),mn=tr({isMovingForward:ne,draggable:oe,destination:he,insideDestination:Cn,previousImpact:He})||mi({isMovingForward:ne,isInHomeList:sn,draggable:oe,draggables:ze,destination:he,insideDestination:Cn,previousImpact:He,viewport:rt,afterCritical:wn});if(!mn)return null;var _n=Ul({impact:mn,draggable:oe,droppable:he,draggables:ze,afterCritical:wn}),sr=wl({draggable:oe,destination:he,newPageBorderBoxCenter:_n,viewport:rt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(sr){var va=so({pageBorderBoxCenter:_n,draggable:oe,viewport:rt});return{clientSelection:va,impact:mn,scrollJumpRequest:null}}var Ia=Or(_n,ht),ka=vi({impact:mn,viewport:rt,destination:he,draggables:ze,maxScrollChange:Ia});return{clientSelection:nn,impact:ka,scrollJumpRequest:Ia}},po=function(ne){var oe=ne.subject.active;return oe||Ft(!1),oe},al=function(te){var ne=te.isMovingForward,oe=te.pageBorderBoxCenter,he=te.source,ze=te.droppables,He=te.viewport,rt=he.subject.active;if(!rt)return null;var ht=he.axis,nn=Yr(rt[ht.start],rt[ht.end]),wn=gi(ze).filter(function(sn){return sn!==he}).filter(function(sn){return sn.isEnabled}).filter(function(sn){return!!sn.subject.active}).filter(function(sn){return Er(He.frame)(po(sn))}).filter(function(sn){var mn=po(sn);return ne?rt[ht.crossAxisEnd]<mn[ht.crossAxisEnd]:mn[ht.crossAxisStart]<rt[ht.crossAxisStart]}).filter(function(sn){var mn=po(sn),_n=Yr(mn[ht.start],mn[ht.end]);return nn(mn[ht.start])||nn(mn[ht.end])||_n(rt[ht.start])||_n(rt[ht.end])}).sort(function(sn,mn){var _n=po(sn)[ht.crossAxisStart],sr=po(mn)[ht.crossAxisStart];return ne?_n-sr:sr-_n}).filter(function(sn,mn,_n){return po(sn)[ht.crossAxisStart]===po(_n[0])[ht.crossAxisStart]});if(!wn.length)return null;if(wn.length===1)return wn[0];var Cn=wn.filter(function(sn){var mn=Yr(po(sn)[ht.start],po(sn)[ht.end]);return mn(oe[ht.line])});return Cn.length===1?Cn[0]:Cn.length>1?Cn.sort(function(sn,mn){return po(sn)[ht.start]-po(mn)[ht.start]})[0]:wn.sort(function(sn,mn){var _n=oa(oe,Kr(po(sn))),sr=oa(oe,Kr(po(mn)));return _n!==sr?_n-sr:po(sn)[ht.start]-po(mn)[ht.start]})[0]},hn=function(ne,oe){var he=ne.page.borderBox.center;return fi(ne.descriptor.id,oe)?Or(he,oe.displacedBy.point):he},vn=function(ne,oe){var he=ne.page.borderBox;return fi(ne.descriptor.id,oe)?ba(he,Sr(oe.displacedBy.point)):he},Tn=function(te){var ne=te.pageBorderBoxCenter,oe=te.viewport,he=te.destination,ze=te.insideDestination,He=te.afterCritical,rt=ze.filter(function(ht){return Hi({target:vn(ht,He),destination:he,viewport:oe.frame,withDroppableDisplacement:!0})}).sort(function(ht,nn){var wn=Vr(ne,So(he,hn(ht,He))),Cn=Vr(ne,So(he,hn(nn,He)));return wn<Cn?-1:Cn<wn?1:ht.descriptor.index-nn.descriptor.index});return rt[0]||null},br=pn(function(ne,oe){var he=oe[ne.line];return{value:he,point:Mr(ne.line,he)}}),_r=function(ne,oe,he){var ze=ne.axis;if(ne.descriptor.mode==="virtual")return Mr(ze.line,oe[ze.line]);var He=ne.subject.page.contentBox[ze.size],rt=Ri(ne.descriptor.id,he),ht=rt.reduce(function(Cn,sn){return Cn+sn.client.marginBox[ze.size]},0),nn=ht+oe[ze.line],wn=nn-He;return wn<=0?null:Mr(ze.line,wn)},nr=function(ne,oe){return(0,we.Z)({},ne,{scroll:(0,we.Z)({},ne.scroll,{max:oe})})},ir=function(ne,oe,he){var ze=ne.frame;yr(oe,ne)&&Ft(!1),ne.subject.withPlaceholder&&Ft(!1);var He=br(ne.axis,oe.displaceBy).point,rt=_r(ne,He,he),ht={placeholderSize:He,increasedBy:rt,oldFrameMaxScroll:ne.frame?ne.frame.scroll.max:null};if(!ze){var nn=Rr({page:ne.subject.page,withPlaceholder:ht,axis:ne.axis,frame:ne.frame});return(0,we.Z)({},ne,{subject:nn})}var wn=rt?wr(ze.scroll.max,rt):ze.scroll.max,Cn=nr(ze,wn),sn=Rr({page:ne.subject.page,withPlaceholder:ht,axis:ne.axis,frame:Cn});return(0,we.Z)({},ne,{subject:sn,frame:Cn})},kn=function(ne){var oe=ne.subject.withPlaceholder;oe||Ft(!1);var he=ne.frame;if(!he){var ze=Rr({page:ne.subject.page,axis:ne.axis,frame:null,withPlaceholder:null});return(0,we.Z)({},ne,{subject:ze})}var He=oe.oldFrameMaxScroll;He||Ft(!1);var rt=nr(he,He),ht=Rr({page:ne.subject.page,axis:ne.axis,frame:rt,withPlaceholder:null});return(0,we.Z)({},ne,{subject:ht,frame:rt})},er=function(te){var ne=te.previousPageBorderBoxCenter,oe=te.moveRelativeTo,he=te.insideDestination,ze=te.draggable,He=te.draggables,rt=te.destination,ht=te.viewport,nn=te.afterCritical;if(!oe){if(he.length)return null;var wn={displaced:qn,displacedBy:Br,at:{type:"REORDER",destination:{droppableId:rt.descriptor.id,index:0}}},Cn=Ul({impact:wn,draggable:ze,droppable:rt,draggables:He,afterCritical:nn}),sn=yr(ze,rt)?rt:ir(rt,ze,He),mn=wl({draggable:ze,destination:sn,newPageBorderBoxCenter:Cn,viewport:ht.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return mn?wn:null}var _n=ne[rt.axis.line]<=oe.page.borderBox.center[rt.axis.line],sr=function(){var Ia=oe.descriptor.index;return oe.descriptor.id===ze.descriptor.id||_n?Ia:Ia+1}(),va=br(rt.axis,ze.displaceBy);return Ta({draggable:ze,insideDestination:he,destination:rt,viewport:ht,displacedBy:va,last:qn,index:sr})},Pr=function(te){var ne=te.isMovingForward,oe=te.previousPageBorderBoxCenter,he=te.draggable,ze=te.isOver,He=te.draggables,rt=te.droppables,ht=te.viewport,nn=te.afterCritical,wn=al({isMovingForward:ne,pageBorderBoxCenter:oe,source:ze,droppables:rt,viewport:ht});if(!wn)return null;var Cn=Ri(wn.descriptor.id,He),sn=Tn({pageBorderBoxCenter:oe,viewport:ht,destination:wn,insideDestination:Cn,afterCritical:nn}),mn=er({previousPageBorderBoxCenter:oe,destination:wn,draggable:he,draggables:He,moveRelativeTo:sn,insideDestination:Cn,viewport:ht,afterCritical:nn});if(!mn)return null;var _n=Ul({impact:mn,draggable:he,droppable:wn,draggables:He,afterCritical:nn}),sr=so({pageBorderBoxCenter:_n,draggable:he,viewport:ht});return{clientSelection:sr,impact:mn,scrollJumpRequest:null}},Gr=function(te){var ne=te.at;return ne?ne.type==="REORDER"?ne.destination.droppableId:ne.combine.droppableId:null},Si=function(ne,oe){var he=Gr(ne);return he?oe[he]:null},Qi=function(te){var ne=te.state,oe=te.type,he=Si(ne.impact,ne.dimensions.droppables),ze=!!he,He=ne.dimensions.droppables[ne.critical.droppable.id],rt=he||He,ht=rt.axis.direction,nn=ht==="vertical"&&(oe==="MOVE_UP"||oe==="MOVE_DOWN")||ht==="horizontal"&&(oe==="MOVE_LEFT"||oe==="MOVE_RIGHT");if(nn&&!ze)return null;var wn=oe==="MOVE_DOWN"||oe==="MOVE_RIGHT",Cn=ne.dimensions.draggables[ne.critical.draggable.id],sn=ne.current.page.borderBoxCenter,mn=ne.dimensions,_n=mn.draggables,sr=mn.droppables;return nn?Lo({isMovingForward:wn,previousPageBorderBoxCenter:sn,draggable:Cn,destination:rt,draggables:_n,viewport:ne.viewport,previousClientSelection:ne.current.client.selection,previousImpact:ne.impact,afterCritical:ne.afterCritical}):Pr({isMovingForward:wn,previousPageBorderBoxCenter:sn,draggable:Cn,isOver:rt,draggables:_n,droppables:sr,viewport:ne.viewport,afterCritical:ne.afterCritical})};function oo(te){return te.phase==="DRAGGING"||te.phase==="COLLECTING"}function ro(te){var ne=Yr(te.top,te.bottom),oe=Yr(te.left,te.right);return function(ze){return ne(ze.y)&&oe(ze.x)}}function Va(te,ne){return te.left<ne.right&&te.right>ne.left&&te.top<ne.bottom&&te.bottom>ne.top}function fa(te){var ne=te.pageBorderBox,oe=te.draggable,he=te.candidates,ze=oe.page.borderBox.center,He=he.map(function(rt){var ht=rt.axis,nn=Mr(rt.axis.line,ne.center[ht.line],rt.page.borderBox.center[ht.crossAxisLine]);return{id:rt.descriptor.id,distance:Vr(ze,nn)}}).sort(function(rt,ht){return ht.distance-rt.distance});return He[0]?He[0].id:null}function Wr(te){var ne=te.pageBorderBox,oe=te.draggable,he=te.droppables,ze=gi(he).filter(function(He){if(!He.isEnabled)return!1;var rt=He.subject.active;if(!rt||!Va(ne,rt))return!1;if(ro(rt)(ne.center))return!0;var ht=He.axis,nn=rt.center[ht.crossAxisLine],wn=ne[ht.crossAxisStart],Cn=ne[ht.crossAxisEnd],sn=Yr(rt[ht.crossAxisStart],rt[ht.crossAxisEnd]),mn=sn(wn),_n=sn(Cn);return!mn&&!_n?!0:mn?wn<nn:Cn>nn});return ze.length?ze.length===1?ze[0].descriptor.id:fa({pageBorderBox:ne,draggable:oe,candidates:ze}):null}var Ni=function(ne,oe){return at(ba(ne,oe))},Zi=function(te,ne){var oe=te.frame;return oe?Ni(ne,oe.scroll.diff.value):ne};function co(te){var ne=te.displaced,oe=te.id;return!!(ne.visible[oe]||ne.invisible[oe])}function _o(te){var ne=te.draggable,oe=te.closest,he=te.inHomeList;return oe?he&&oe.descriptor.index>ne.descriptor.index?oe.descriptor.index-1:oe.descriptor.index:null}var Ai=function(te){var ne=te.pageBorderBoxWithDroppableScroll,oe=te.draggable,he=te.destination,ze=te.insideDestination,He=te.last,rt=te.viewport,ht=te.afterCritical,nn=he.axis,wn=br(he.axis,oe.displaceBy),Cn=wn.value,sn=ne[nn.start],mn=ne[nn.end],_n=Ar(oe,ze),sr=$a(_n,function(Ia){var ka=Ia.descriptor.id,ii=Ia.page.borderBox.center[nn.line],Fi=fi(ka,ht),Ti=co({displaced:He,id:ka});return Fi?Ti?mn<=ii:sn<ii-Cn:Ti?mn<=ii+Cn:sn<ii}),va=_o({draggable:oe,closest:sr,inHomeList:yr(oe,he)});return Ta({draggable:oe,insideDestination:ze,destination:he,viewport:rt,last:He,displacedBy:wn,index:va})},ho=4,Di=function(te){var ne=te.draggable,oe=te.pageBorderBoxWithDroppableScroll,he=te.previousImpact,ze=te.destination,He=te.insideDestination,rt=te.afterCritical;if(!ze.isCombineEnabled)return null;var ht=ze.axis,nn=br(ze.axis,ne.displaceBy),wn=nn.value,Cn=oe[ht.start],sn=oe[ht.end],mn=Ar(ne,He),_n=$a(mn,function(va){var Ia=va.descriptor.id,ka=va.page.borderBox,ii=ka[ht.size],Fi=ii/ho,Ti=fi(Ia,rt),bo=co({displaced:he.displaced,id:Ia});return Ti?bo?sn>ka[ht.start]+Fi&&sn<ka[ht.end]-Fi:Cn>ka[ht.start]-wn+Fi&&Cn<ka[ht.end]-wn-Fi:bo?sn>ka[ht.start]+wn+Fi&&sn<ka[ht.end]+wn-Fi:Cn>ka[ht.start]+Fi&&Cn<ka[ht.end]-Fi});if(!_n)return null;var sr={displacedBy:nn,displaced:he.displaced,at:{type:"COMBINE",combine:{draggableId:_n.descriptor.id,droppableId:ze.descriptor.id}}};return sr},ya=function(te){var ne=te.pageOffset,oe=te.draggable,he=te.draggables,ze=te.droppables,He=te.previousImpact,rt=te.viewport,ht=te.afterCritical,nn=Ni(oe.page.borderBox,ne),wn=Wr({pageBorderBox:nn,draggable:oe,droppables:ze});if(!wn)return Jr;var Cn=ze[wn],sn=Ri(Cn.descriptor.id,he),mn=Zi(Cn,nn);return Di({pageBorderBoxWithDroppableScroll:mn,draggable:oe,previousImpact:He,destination:Cn,insideDestination:sn,afterCritical:ht})||Ai({pageBorderBoxWithDroppableScroll:mn,draggable:oe,destination:Cn,insideDestination:sn,last:He.displaced,viewport:rt,afterCritical:ht})},si=function(te,ne){var oe;return(0,we.Z)({},te,(oe={},oe[ne.descriptor.id]=ne,oe))},pi=function(ne){var oe=ne.previousImpact,he=ne.impact,ze=ne.droppables,He=Gr(oe),rt=Gr(he);if(!He||He===rt)return ze;var ht=ze[He];if(!ht.subject.withPlaceholder)return ze;var nn=kn(ht);return si(ze,nn)},Ei=function(te){var ne=te.draggable,oe=te.draggables,he=te.droppables,ze=te.previousImpact,He=te.impact,rt=pi({previousImpact:ze,impact:He,droppables:he}),ht=Gr(He);if(!ht)return rt;var nn=he[ht];if(yr(ne,nn)||nn.subject.withPlaceholder)return rt;var wn=ir(nn,ne,oe);return si(rt,wn)},Bt=function(te){var ne=te.state,oe=te.clientSelection,he=te.dimensions,ze=te.viewport,He=te.impact,rt=te.scrollJumpRequest,ht=ze||ne.viewport,nn=he||ne.dimensions,wn=oe||ne.current.client.selection,Cn=Or(wn,ne.initial.client.selection),sn={offset:Cn,selection:wn,borderBoxCenter:wr(ne.initial.client.borderBoxCenter,Cn)},mn={selection:wr(sn.selection,ht.scroll.current),borderBoxCenter:wr(sn.borderBoxCenter,ht.scroll.current),offset:wr(sn.offset,ht.scroll.diff.value)},_n={client:sn,page:mn};if(ne.phase==="COLLECTING")return(0,we.Z)({phase:"COLLECTING"},ne,{dimensions:nn,viewport:ht,current:_n});var sr=nn.draggables[ne.critical.draggable.id],va=He||ya({pageOffset:mn.offset,draggable:sr,draggables:nn.draggables,droppables:nn.droppables,previousImpact:ne.impact,viewport:ht,afterCritical:ne.afterCritical}),Ia=Ei({draggable:sr,impact:va,previousImpact:ne.impact,draggables:nn.draggables,droppables:nn.droppables}),ka=(0,we.Z)({},ne,{current:_n,dimensions:{draggables:nn.draggables,droppables:Ia},impact:va,viewport:ht,scrollJumpRequest:rt||null,forceShouldAnimate:rt?!1:null});return ka};function Jt(te,ne){return te.map(function(oe){return ne[oe]})}var rn=function(te){var ne=te.impact,oe=te.viewport,he=te.draggables,ze=te.destination,He=te.forceShouldAnimate,rt=ne.displaced,ht=Jt(rt.all,he),nn=Co({afterDragging:ht,destination:ze,displacedBy:ne.displacedBy,viewport:oe.frame,forceShouldAnimate:He,last:rt});return(0,we.Z)({},ne,{displaced:nn})},An=function(te){var ne=te.impact,oe=te.draggable,he=te.droppable,ze=te.draggables,He=te.viewport,rt=te.afterCritical,ht=Ul({impact:ne,draggable:oe,draggables:ze,droppable:he,afterCritical:rt});return so({pageBorderBoxCenter:ht,draggable:oe,viewport:He})},za=function(te){var ne=te.state,oe=te.dimensions,he=te.viewport;ne.movementMode!=="SNAP"&&Ft(!1);var ze=ne.impact,He=he||ne.viewport,rt=oe||ne.dimensions,ht=rt.draggables,nn=rt.droppables,wn=ht[ne.critical.draggable.id],Cn=Gr(ze);Cn||Ft(!1);var sn=nn[Cn],mn=rn({impact:ze,viewport:He,destination:sn,draggables:ht}),_n=An({impact:mn,draggable:wn,droppable:sn,draggables:ht,viewport:He,afterCritical:ne.afterCritical});return Bt({impact:mn,clientSelection:_n,state:ne,dimensions:rt,viewport:He})},zr=function(te){return{index:te.index,droppableId:te.droppableId}},Jn=function(te){var ne=te.draggable,oe=te.home,he=te.draggables,ze=te.viewport,He=br(oe.axis,ne.displaceBy),rt=Ri(oe.descriptor.id,he),ht=rt.indexOf(ne);ht===-1&&Ft(!1);var nn=rt.slice(ht+1),wn=nn.reduce(function(_n,sr){return _n[sr.descriptor.id]=!0,_n},{}),Cn={inVirtualList:oe.descriptor.mode==="virtual",displacedBy:He,effected:wn},sn=Co({afterDragging:nn,destination:oe,displacedBy:He,last:null,viewport:ze.frame,forceShouldAnimate:!1}),mn={displaced:sn,displacedBy:He,at:{type:"REORDER",destination:zr(ne.descriptor)}};return{impact:mn,afterCritical:Cn}},vr=function(te,ne){return{draggables:te.draggables,droppables:si(te.droppables,ne)}},Fr=function(ne){},ea=function(ne){},jr=function(te){var ne=te.draggable,oe=te.offset,he=te.initialWindowScroll,ze=Bn(ne.client,oe),He=Zn(ze,he),rt=(0,we.Z)({},ne,{placeholder:(0,we.Z)({},ne.placeholder,{client:ze}),client:ze,page:He});return rt},or=function(te){var ne=te.frame;return ne||Ft(!1),ne},pa=function(te){var ne=te.additions,oe=te.updatedDroppables,he=te.viewport,ze=he.scroll.diff.value;return ne.map(function(He){var rt=He.descriptor.droppableId,ht=oe[rt],nn=or(ht),wn=nn.scroll.diff.value,Cn=wr(ze,wn),sn=jr({draggable:He,offset:Cn,initialWindowScroll:he.scroll.initial});return sn})},ma=function(te){var ne=te.state,oe=te.published;Fr();var he=oe.modified.map(function(Fi){var Ti=ne.dimensions.droppables[Fi.droppableId],bo=Za(Ti,Fi.scroll);return bo}),ze=(0,we.Z)({},ne.dimensions.droppables,{},$i(he)),He=Xa(pa({additions:oe.additions,updatedDroppables:ze,viewport:ne.viewport})),rt=(0,we.Z)({},ne.dimensions.draggables,{},He);oe.removals.forEach(function(Fi){delete rt[Fi]});var ht={droppables:ze,draggables:rt},nn=Gr(ne.impact),wn=nn?ht.droppables[nn]:null,Cn=ht.draggables[ne.critical.draggable.id],sn=ht.droppables[ne.critical.droppable.id],mn=Jn({draggable:Cn,home:sn,draggables:rt,viewport:ne.viewport}),_n=mn.impact,sr=mn.afterCritical,va=wn&&wn.isCombineEnabled?ne.impact:_n,Ia=ya({pageOffset:ne.current.page.offset,draggable:ht.draggables[ne.critical.draggable.id],draggables:ht.draggables,droppables:ht.droppables,previousImpact:va,viewport:ne.viewport,afterCritical:sr});ea();var ka=(0,we.Z)({phase:"DRAGGING"},ne,{phase:"DRAGGING",impact:Ia,onLiftImpact:_n,dimensions:ht,afterCritical:sr,forceShouldAnimate:!1});if(ne.phase==="COLLECTING")return ka;var ii=(0,we.Z)({phase:"DROP_PENDING"},ka,{phase:"DROP_PENDING",reason:ne.reason,isWaiting:!1});return ii},Nr=function(ne){return ne.movementMode==="SNAP"},Ba=function(ne,oe,he){var ze=vr(ne.dimensions,oe);return!Nr(ne)||he?Bt({state:ne,dimensions:ze}):za({state:ne,dimensions:ze})};function ja(te){return te.isDragging&&te.movementMode==="SNAP"?(0,we.Z)({phase:"DRAGGING"},te,{scrollJumpRequest:null}):te}var sa={phase:"IDLE",completed:null,shouldFlush:!1},ur=function(te,ne){if(te===void 0&&(te=sa),ne.type==="FLUSH")return(0,we.Z)({},sa,{shouldFlush:!0});if(ne.type==="INITIAL_PUBLISH"){te.phase!=="IDLE"&&Ft(!1);var oe=ne.payload,he=oe.critical,ze=oe.clientSelection,He=oe.viewport,rt=oe.dimensions,ht=oe.movementMode,nn=rt.draggables[he.draggable.id],wn=rt.droppables[he.droppable.id],Cn={selection:ze,borderBoxCenter:nn.client.borderBox.center,offset:pr},sn={client:Cn,page:{selection:wr(Cn.selection,He.scroll.initial),borderBoxCenter:wr(Cn.selection,He.scroll.initial),offset:wr(Cn.selection,He.scroll.diff.value)}},mn=gi(rt.droppables).every(function(Ac){return!Ac.isFixedOnPage}),_n=Jn({draggable:nn,home:wn,draggables:rt.draggables,viewport:He}),sr=_n.impact,va=_n.afterCritical,Ia={phase:"DRAGGING",isDragging:!0,critical:he,movementMode:ht,dimensions:rt,initial:sn,current:sn,isWindowScrollAllowed:mn,impact:sr,afterCritical:va,onLiftImpact:sr,viewport:He,scrollJumpRequest:null,forceShouldAnimate:null};return Ia}if(ne.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&&Ft(!1);var ka=(0,we.Z)({phase:"COLLECTING"},te,{phase:"COLLECTING"});return ka}if(ne.type==="PUBLISH_WHILE_DRAGGING")return te.phase==="COLLECTING"||te.phase==="DROP_PENDING"||Ft(!1),ma({state:te,published:ne.payload});if(ne.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;oo(te)||Ft(!1);var ii=ne.payload.client;return Lr(ii,te.current.client.selection)?te:Bt({state:te,clientSelection:ii,impact:Nr(te)?te.impact:null})}if(ne.type==="UPDATE_DROPPABLE_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="COLLECTING")return ja(te);oo(te)||Ft(!1);var Fi=ne.payload,Ti=Fi.id,bo=Fi.newScroll,mo=te.dimensions.droppables[Ti];if(!mo)return te;var Wo=Za(mo,bo);return Ba(te,Wo,!1)}if(ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(te.phase==="DROP_PENDING")return te;oo(te)||Ft(!1);var jl=ne.payload,Vo=jl.id,Wl=jl.isEnabled,ds=te.dimensions.droppables[Vo];ds||Ft(!1),ds.isEnabled===Wl&&Ft(!1);var ys=(0,we.Z)({},ds,{isEnabled:Wl});return Ba(te,ys,!0)}if(ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(te.phase==="DROP_PENDING")return te;oo(te)||Ft(!1);var du=ne.payload,eu=du.id,Ws=du.isCombineEnabled,fu=te.dimensions.droppables[eu];fu||Ft(!1),fu.isCombineEnabled===Ws&&Ft(!1);var bs=(0,we.Z)({},fu,{isCombineEnabled:Ws});return Ba(te,bs,!0)}if(ne.type==="MOVE_BY_WINDOW_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="DROP_ANIMATING")return te;oo(te)||Ft(!1),te.isWindowScrollAllowed||Ft(!1);var _u=ne.payload.newScroll;if(Lr(te.viewport.scroll.current,_u))return ja(te);var mu=_i(te.viewport,_u);return Nr(te)?za({state:te,viewport:mu}):Bt({state:te,viewport:mu})}if(ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!oo(te))return te;var hc=ne.payload.maxScroll;if(Lr(hc,te.viewport.scroll.max))return te;var Qu=(0,we.Z)({},te.viewport,{scroll:(0,we.Z)({},te.viewport.scroll,{max:hc})});return(0,we.Z)({phase:"DRAGGING"},te,{viewport:Qu})}if(ne.type==="MOVE_UP"||ne.type==="MOVE_DOWN"||ne.type==="MOVE_LEFT"||ne.type==="MOVE_RIGHT"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&&Ft(!1);var Tu=Qi({state:te,type:ne.type});return Tu?Bt({state:te,impact:Tu.impact,clientSelection:Tu.clientSelection,scrollJumpRequest:Tu.scrollJumpRequest}):te}if(ne.type==="DROP_PENDING"){var pu=ne.payload.reason;te.phase!=="COLLECTING"&&Ft(!1);var Ju=(0,we.Z)({phase:"DROP_PENDING"},te,{phase:"DROP_PENDING",isWaiting:!0,reason:pu});return Ju}if(ne.type==="DROP_ANIMATE"){var Fc=ne.payload,hu=Fc.completed,vc=Fc.dropDuration,Ic=Fc.newHomeClientOffset;te.phase==="DRAGGING"||te.phase==="DROP_PENDING"||Ft(!1);var oc={phase:"DROP_ANIMATING",completed:hu,dropDuration:vc,newHomeClientOffset:Ic,dimensions:te.dimensions};return oc}if(ne.type==="DROP_COMPLETE"){var Pc=ne.payload.completed;return{phase:"IDLE",completed:Pc,shouldFlush:!1}}return te},Qr=function(ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:ne}},ui=function(ne){return{type:"LIFT",payload:ne}},Ca=function(ne){return{type:"INITIAL_PUBLISH",payload:ne}},ua=function(ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:ne}},aa=function(){return{type:"COLLECTION_STARTING",payload:null}},Fa=function(ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ne}},ao=function(ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ne}},il=function(ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ne}},Ko=function(ne){return{type:"MOVE",payload:ne}},Xl=function(ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ne}},Oi=function(ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ne}},_l=function(){return{type:"MOVE_UP",payload:null}},Al=function(){return{type:"MOVE_DOWN",payload:null}},Ur=function(){return{type:"MOVE_RIGHT",payload:null}},Fo=function(){return{type:"MOVE_LEFT",payload:null}},wo=function(){return{type:"FLUSH",payload:null}},Io=function(ne){return{type:"DROP_ANIMATE",payload:ne}},vl=function(ne){return{type:"DROP_COMPLETE",payload:ne}},Ms=function(ne){return{type:"DROP",payload:ne}},zs=function(ne){return{type:"DROP_PENDING",payload:ne}},Hs=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Ds(te){if(!(te.length<=1)){for(var ne=te.map(function(ht){return ht.descriptor.index}),oe={},he=1;he<ne.length;he++){var ze=ne[he],He=ne[he-1];ze!==He+1&&(oe[ze]=!0)}if(Object.keys(oe).length)var rt=ne.map(function(ht){var nn=!!oe[ht];return nn?"[\u{1F525}"+ht+"]":""+ht}).join(", ")}}function Fs(te,ne){if(0)var oe}var tu=function(te){return function(ne){var oe=ne.getState,he=ne.dispatch;return function(ze){return function(He){if(He.type!=="LIFT"){ze(He);return}var rt=He.payload,ht=rt.id,nn=rt.clientSelection,wn=rt.movementMode,Cn=oe();Cn.phase==="DROP_ANIMATING"&&he(vl({completed:Cn.completed})),oe().phase!=="IDLE"&&Ft(!1),he(wo()),he(Qr({draggableId:ht,movementMode:wn}));var sn={shouldPublishImmediately:wn==="SNAP"},mn={draggableId:ht,scrollOptions:sn},_n=te.startPublishing(mn),sr=_n.critical,va=_n.dimensions,Ia=_n.viewport;Fs(sr,va),he(Ca({critical:sr,dimensions:va,clientSelection:nn,movementMode:wn,viewport:Ia}))}}}},xs=function(te){return function(){return function(ne){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(),ne(oe)}}}},Rs={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Is={opacity:{drop:0,combining:.7},scale:{drop:.75}},nu={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},os=nu.outOfTheWay+"s "+Rs.outOfTheWay,Ss={fluid:"opacity "+os,snap:"transform "+os+", opacity "+os,drop:function(ne){var oe=ne+"s "+Rs.drop;return"transform "+oe+", opacity "+oe},outOfTheWay:"transform "+os,placeholder:"height "+os+", width "+os+", margin "+os},ks=function(ne){return Lr(ne,pr)?null:"translate("+ne.x+"px, "+ne.y+"px)"},Ls={moveTo:ks,drop:function(ne,oe){var he=ks(ne);return he?oe?he+" scale("+Is.scale.drop+")":he:null}},Zs=nu.minDropTime,Vs=nu.maxDropTime,Mu=Vs-Zs,vu=1500,qu=.6,Ps=function(te){var ne=te.current,oe=te.destination,he=te.reason,ze=Vr(ne,oe);if(ze<=0)return Zs;if(ze>=vu)return Vs;var He=ze/vu,rt=Zs+Mu*He,ht=he==="CANCEL"?rt*qu:rt;return Number(ht.toFixed(2))},ws=function(te){var ne=te.impact,oe=te.draggable,he=te.dimensions,ze=te.viewport,He=te.afterCritical,rt=he.draggables,ht=he.droppables,nn=Gr(ne),wn=nn?ht[nn]:null,Cn=ht[oe.descriptor.droppableId],sn=An({impact:ne,draggable:oe,draggables:rt,afterCritical:He,droppable:wn||Cn,viewport:ze}),mn=Or(sn,oe.client.borderBox.center);return mn},Su=function(te){var ne=te.draggables,oe=te.reason,he=te.lastImpact,ze=te.home,He=te.viewport,rt=te.onLiftImpact;if(!he.at||oe!=="DROP"){var ht=rn({draggables:ne,impact:rt,destination:ze,viewport:He,forceShouldAnimate:!0});return{impact:ht,didDropInsideDroppable:!1}}if(he.at.type==="REORDER")return{impact:he,didDropInsideDroppable:!0};var nn=(0,we.Z)({},he,{displaced:qn});return{impact:nn,didDropInsideDroppable:!0}},ec=function(te){var ne=te.getState,oe=te.dispatch;return function(he){return function(ze){if(ze.type!=="DROP"){he(ze);return}var He=ne(),rt=ze.payload.reason;if(He.phase==="COLLECTING"){oe(zs({reason:rt}));return}if(He.phase!=="IDLE"){var ht=He.phase==="DROP_PENDING"&&He.isWaiting;ht&&Ft(!1),He.phase==="DRAGGING"||He.phase==="DROP_PENDING"||Ft(!1);var nn=He.critical,wn=He.dimensions,Cn=wn.draggables[He.critical.draggable.id],sn=Su({reason:rt,lastImpact:He.impact,afterCritical:He.afterCritical,onLiftImpact:He.onLiftImpact,home:He.dimensions.droppables[He.critical.droppable.id],viewport:He.viewport,draggables:He.dimensions.draggables}),mn=sn.impact,_n=sn.didDropInsideDroppable,sr=_n?Bi(mn):null,va=_n?ei(mn):null,Ia={index:nn.draggable.index,droppableId:nn.droppable.id},ka={draggableId:Cn.descriptor.id,type:Cn.descriptor.type,source:Ia,reason:rt,mode:He.movementMode,destination:sr,combine:va},ii=ws({impact:mn,draggable:Cn,dimensions:wn,viewport:He.viewport,afterCritical:He.afterCritical}),Fi={critical:He.critical,afterCritical:He.afterCritical,result:ka,impact:mn},Ti=!Lr(He.current.client.offset,ii)||!!ka.combine;if(!Ti){oe(vl({completed:Fi}));return}var bo=Ps({current:He.current.client.offset,destination:ii,reason:rt}),mo={newHomeClientOffset:ii,dropDuration:bo,completed:Fi};oe(Io(mo))}}}},wu=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Wn(te){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(oe){oe.target!==window&&oe.target!==window.document||te()}}}function Na(te){var ne=te.onWindowScroll;function oe(){ne(wu())}var he=fr(oe),ze=Wn(he),He=_t;function rt(){return He!==_t}function ht(){rt()&&Ft(!1),He=ct(window,[ze])}function nn(){rt()||Ft(!1),he.cancel(),He(),He=_t}return{start:ht,stop:nn,isActive:rt}}var ji=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},_a=function(te){var ne=Na({onWindowScroll:function(he){te.dispatch(Xl({newScroll:he}))}});return function(oe){return function(he){!ne.isActive()&&he.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&ji(he)&&ne.stop(),oe(he)}}},Ir=function(te){var ne=!1,oe=!1,he=setTimeout(function(){oe=!0}),ze=function(rt){ne||oe||(ne=!0,te(rt),clearTimeout(he))};return ze.wasCalled=function(){return ne},ze},ki=function(){var te=[],ne=function(He){var rt=Xr(te,function(wn){return wn.timerId===He});rt===-1&&Ft(!1);var ht=te.splice(rt,1),nn=ht[0];nn.callback()},oe=function(He){var rt=setTimeout(function(){return ne(rt)}),ht={timerId:rt,callback:He};te.push(ht)},he=function(){if(te.length){var He=[].concat(te);te.length=0,He.forEach(function(rt){clearTimeout(rt.timerId),rt.callback()})}};return{add:oe,flush:he}},Vi=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.droppableId===oe.droppableId&&ne.index===oe.index},Zo=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.draggableId===oe.draggableId&&ne.droppableId===oe.droppableId},eo=function(ne,oe){if(ne===oe)return!0;var he=ne.draggable.id===oe.draggable.id&&ne.draggable.droppableId===oe.draggable.droppableId&&ne.draggable.type===oe.draggable.type&&ne.draggable.index===oe.draggable.index,ze=ne.droppable.id===oe.droppable.id&&ne.droppable.type===oe.droppable.type;return he&&ze},ll=function(ne,oe){Fr(),oe(),ea()},To=function(ne,oe){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:oe}},ls=function(ne,oe,he,ze){if(!ne){he(ze(oe));return}var He=Ir(he),rt={announce:He};ne(oe,rt),He.wasCalled()||he(ze(oe))},Ys=function(te,ne){var oe=ki(),he=null,ze=function(mn,_n){he&&Ft(!1),ll("onBeforeCapture",function(){var sr=te().onBeforeCapture;if(sr){var va={draggableId:mn,mode:_n};sr(va)}})},He=function(mn,_n){he&&Ft(!1),ll("onBeforeDragStart",function(){var sr=te().onBeforeDragStart;sr&&sr(To(mn,_n))})},rt=function(mn,_n){he&&Ft(!1);var sr=To(mn,_n);he={mode:_n,lastCritical:mn,lastLocation:sr.source,lastCombine:null},oe.add(function(){ll("onDragStart",function(){return ls(te().onDragStart,sr,ne,Xn.onDragStart)})})},ht=function(mn,_n){var sr=Bi(_n),va=ei(_n);he||Ft(!1);var Ia=!eo(mn,he.lastCritical);Ia&&(he.lastCritical=mn);var ka=!Vi(he.lastLocation,sr);ka&&(he.lastLocation=sr);var ii=!Zo(he.lastCombine,va);if(ii&&(he.lastCombine=va),!(!Ia&&!ka&&!ii)){var Fi=(0,we.Z)({},To(mn,he.mode),{combine:va,destination:sr});oe.add(function(){ll("onDragUpdate",function(){return ls(te().onDragUpdate,Fi,ne,Xn.onDragUpdate)})})}},nn=function(){he||Ft(!1),oe.flush()},wn=function(mn){he||Ft(!1),he=null,ll("onDragEnd",function(){return ls(te().onDragEnd,mn,ne,Xn.onDragEnd)})},Cn=function(){if(he){var mn=(0,we.Z)({},To(he.lastCritical,he.mode),{combine:null,destination:null,reason:"CANCEL"});wn(mn)}};return{beforeCapture:ze,beforeStart:He,start:rt,update:ht,flush:nn,drop:wn,abort:Cn}},yi=function(te,ne){var oe=Ys(te,ne);return function(he){return function(ze){return function(He){if(He.type==="BEFORE_INITIAL_CAPTURE"){oe.beforeCapture(He.payload.draggableId,He.payload.movementMode);return}if(He.type==="INITIAL_PUBLISH"){var rt=He.payload.critical;oe.beforeStart(rt,He.payload.movementMode),ze(He),oe.start(rt,He.payload.movementMode);return}if(He.type==="DROP_COMPLETE"){var ht=He.payload.completed.result;oe.flush(),ze(He),oe.drop(ht);return}if(ze(He),He.type==="FLUSH"){oe.abort();return}var nn=he.getState();nn.phase==="DRAGGING"&&oe.update(nn.critical,nn.impact)}}}},bl=function(te){return function(ne){return function(oe){if(oe.type!=="DROP_ANIMATION_FINISHED"){ne(oe);return}var he=te.getState();he.phase!=="DROP_ANIMATING"&&Ft(!1),te.dispatch(vl({completed:he.completed}))}}},ns=function(te){var ne=null,oe=null;function he(){oe&&(cancelAnimationFrame(oe),oe=null),ne&&(ne(),ne=null)}return function(ze){return function(He){if((He.type==="FLUSH"||He.type==="DROP_COMPLETE"||He.type==="DROP_ANIMATION_FINISHED")&&he(),ze(He),He.type==="DROP_ANIMATE"){var rt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var nn=te.getState();nn.phase==="DROP_ANIMATING"&&te.dispatch(Hs())}};oe=requestAnimationFrame(function(){oe=null,ne=ct(window,[rt])})}}}},kl=function(te){return function(){return function(ne){return function(oe){(oe.type==="DROP_COMPLETE"||oe.type==="FLUSH"||oe.type==="DROP_ANIMATE")&&te.stopPublishing(),ne(oe)}}}},Ze=function(te){var ne=!1;return function(){return function(oe){return function(he){if(he.type==="INITIAL_PUBLISH"){ne=!0,te.tryRecordFocus(he.payload.critical.draggable.id),oe(he),te.tryRestoreFocusRecorded();return}if(oe(he),!!ne){if(he.type==="FLUSH"){ne=!1,te.tryRestoreFocusRecorded();return}if(he.type==="DROP_COMPLETE"){ne=!1;var ze=he.payload.completed.result;ze.combine&&te.tryShiftRecord(ze.draggableId,ze.combine.draggableId),te.tryRestoreFocusRecorded()}}}}}},Re=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Dt=function(te){return function(ne){return function(oe){return function(he){if(Re(he)){te.stop(),oe(he);return}if(he.type==="INITIAL_PUBLISH"){oe(he);var ze=ne.getState();ze.phase!=="DRAGGING"&&Ft(!1),te.start(ze);return}oe(he),te.scroll(ne.getState())}}}},$t=function(te){return function(ne){return function(oe){if(ne(oe),oe.type==="PUBLISH_WHILE_DRAGGING"){var he=te.getState();he.phase==="DROP_PENDING"&&(he.isWaiting||te.dispatch(Ms({reason:he.reason})))}}}},an=Se.qC,gn=function(te){var ne=te.dimensionMarshal,oe=te.focusMarshal,he=te.styleMarshal,ze=te.getResponders,He=te.announce,rt=te.autoScroller;return(0,Se.MT)(ur,an((0,Se.md)(xs(he),kl(ne),tu(ne),ec,bl,ns,$t,Dt(rt),_a,Ze(oe),yi(ze,He))))},Mn=function(){return{additions:{},removals:{},modified:{}}};function Fn(te){var ne=te.registry,oe=te.callbacks,he=Mn(),ze=null,He=function(){ze||(oe.collectionStarting(),ze=requestAnimationFrame(function(){ze=null,Fr();var Cn=he,sn=Cn.additions,mn=Cn.removals,_n=Cn.modified,sr=Object.keys(sn).map(function(ka){return ne.draggable.getById(ka).getDimension(pr)}).sort(function(ka,ii){return ka.descriptor.index-ii.descriptor.index}),va=Object.keys(_n).map(function(ka){var ii=ne.droppable.getById(ka),Fi=ii.callbacks.getScrollWhileDragging();return{droppableId:ka,scroll:Fi}}),Ia={additions:sr,removals:Object.keys(mn),modified:va};he=Mn(),ea(),oe.publish(Ia)}))},rt=function(Cn){var sn=Cn.descriptor.id;he.additions[sn]=Cn,he.modified[Cn.descriptor.droppableId]=!0,he.removals[sn]&&delete he.removals[sn],He()},ht=function(Cn){var sn=Cn.descriptor;he.removals[sn.id]=!0,he.modified[sn.droppableId]=!0,he.additions[sn.id]&&delete he.additions[sn.id],He()},nn=function(){ze&&(cancelAnimationFrame(ze),ze=null,he=Mn())};return{add:rt,remove:ht,stop:nn}}var zn=function(te){var ne=te.scrollHeight,oe=te.scrollWidth,he=te.height,ze=te.width,He=Or({x:oe,y:ne},{x:ze,y:he}),rt={x:Math.max(0,He.x),y:Math.max(0,He.y)};return rt},Ln=function(){var te=document.documentElement;return te||Ft(!1),te},xr=function(){var te=Ln(),ne=zn({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return ne},lr=function(){var te=wu(),ne=xr(),oe=te.y,he=te.x,ze=Ln(),He=ze.clientWidth,rt=ze.clientHeight,ht=he+He,nn=oe+rt,wn=at({top:oe,left:he,right:ht,bottom:nn}),Cn={frame:wn,scroll:{initial:te,current:te,max:ne,diff:{value:pr,displacement:pr}}};return Cn},rr=function(te){var ne=te.critical,oe=te.scrollOptions,he=te.registry;Fr();var ze=lr(),He=ze.scroll.current,rt=ne.droppable,ht=he.droppable.getAllByType(rt.type).map(function(sn){return sn.callbacks.getDimensionAndWatchScroll(He,oe)}),nn=he.draggable.getAllByType(ne.draggable.type).map(function(sn){return sn.getDimension(He)}),wn={draggables:Xa(nn),droppables:$i(ht)};ea();var Cn={dimensions:wn,critical:ne,viewport:ze};return Cn};function Gn(te,ne,oe){if(oe.descriptor.id===ne.id||oe.descriptor.type!==ne.type)return!1;var he=te.droppable.getById(oe.descriptor.droppableId);return he.descriptor.mode==="virtual"}var Kn=function(te,ne){var oe=null,he=Fn({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:te}),ze=function(_n,sr){te.droppable.exists(_n)||Ft(!1),oe&&ne.updateDroppableIsEnabled({id:_n,isEnabled:sr})},He=function(_n,sr){oe&&(te.droppable.exists(_n)||Ft(!1),ne.updateDroppableIsCombineEnabled({id:_n,isCombineEnabled:sr}))},rt=function(_n,sr){oe&&(te.droppable.exists(_n)||Ft(!1),ne.updateDroppableScroll({id:_n,newScroll:sr}))},ht=function(_n,sr){oe&&te.droppable.getById(_n).callbacks.scroll(sr)},nn=function(){if(oe){he.stop();var _n=oe.critical.droppable;te.droppable.getAllByType(_n.type).forEach(function(sr){return sr.callbacks.dragStopped()}),oe.unsubscribe(),oe=null}},wn=function(_n){oe||Ft(!1);var sr=oe.critical.draggable;_n.type==="ADDITION"&&Gn(te,sr,_n.value)&&he.add(_n.value),_n.type==="REMOVAL"&&Gn(te,sr,_n.value)&&he.remove(_n.value)},Cn=function(_n){oe&&Ft(!1);var sr=te.draggable.getById(_n.draggableId),va=te.droppable.getById(sr.descriptor.droppableId),Ia={draggable:sr.descriptor,droppable:va.descriptor},ka=te.subscribe(wn);return oe={critical:Ia,unsubscribe:ka},rr({critical:Ia,registry:te,scrollOptions:_n.scrollOptions})},sn={updateDroppableIsEnabled:ze,updateDroppableIsCombineEnabled:He,scrollDroppable:ht,updateDroppableScroll:rt,startPublishing:Cn,stopPublishing:nn};return sn},ia=function(te,ne){return te.phase==="IDLE"?!0:te.phase!=="DROP_ANIMATING"||te.completed.result.draggableId===ne?!1:te.completed.result.reason==="DROP"},Tr=function(te){window.scrollBy(te.x,te.y)},ca=pn(function(te){return gi(te).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),xa=function(ne,oe){var he=$a(ca(oe),function(ze){return ze.frame||Ft(!1),ro(ze.frame.pageMarginBox)(ne)});return he},da=function(te){var ne=te.center,oe=te.destination,he=te.droppables;if(oe){var ze=he[oe];return ze.frame?ze:null}var He=xa(ne,he);return He},ha={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},La=function(te,ne){var oe=te[ne.size]*ha.startFromPercentage,he=te[ne.size]*ha.maxScrollAtPercentage,ze={startScrollingFrom:oe,maxScrollValueAt:he};return ze},Ja=function(te){var ne=te.startOfRange,oe=te.endOfRange,he=te.current,ze=oe-ne;if(ze===0)return 0;var He=he-ne,rt=He/ze;return rt},Ka=1,to=function(te,ne){if(te>ne.startScrollingFrom)return 0;if(te<=ne.maxScrollValueAt)return ha.maxPixelScroll;if(te===ne.startScrollingFrom)return Ka;var oe=Ja({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:te}),he=1-oe,ze=ha.maxPixelScroll*ha.ease(he);return Math.ceil(ze)},wi=ha.durationDampening.accelerateAt,hi=ha.durationDampening.stopDampeningAt,Wi=function(te,ne){var oe=ne,he=hi,ze=Date.now(),He=ze-oe;if(He>=hi)return te;if(He<wi)return Ka;var rt=Ja({startOfRange:wi,endOfRange:he,current:He}),ht=te*ha.ease(rt);return Math.ceil(ht)},qa=function(te){var ne=te.distanceToEdge,oe=te.thresholds,he=te.dragStartTime,ze=te.shouldUseTimeDampening,He=to(ne,oe);return He===0?0:ze?Math.max(Wi(He,he),Ka):He},ti=function(te){var ne=te.container,oe=te.distanceToEdges,he=te.dragStartTime,ze=te.axis,He=te.shouldUseTimeDampening,rt=La(ne,ze),ht=oe[ze.end]<oe[ze.start];return ht?qa({distanceToEdge:oe[ze.end],thresholds:rt,dragStartTime:he,shouldUseTimeDampening:He}):-1*qa({distanceToEdge:oe[ze.start],thresholds:rt,dragStartTime:he,shouldUseTimeDampening:He})},Ma=function(te){var ne=te.container,oe=te.subject,he=te.proposedScroll,ze=oe.height>ne.height,He=oe.width>ne.width;return!He&&!ze?he:He&&ze?null:{x:He?0:he.x,y:ze?0:he.y}},Sa=ra(function(te){return te===0?0:te}),Ya=function(te){var ne=te.dragStartTime,oe=te.container,he=te.subject,ze=te.center,He=te.shouldUseTimeDampening,rt={top:ze.y-oe.top,right:oe.right-ze.x,bottom:oe.bottom-ze.y,left:ze.x-oe.left},ht=ti({container:oe,distanceToEdges:rt,dragStartTime:ne,axis:$r,shouldUseTimeDampening:He}),nn=ti({container:oe,distanceToEdges:rt,dragStartTime:ne,axis:qr,shouldUseTimeDampening:He}),wn=Sa({x:nn,y:ht});if(Lr(wn,pr))return null;var Cn=Ma({container:oe,subject:he,proposedScroll:wn});return Cn?Lr(Cn,pr)?null:Cn:null},ri=ra(function(te){return te===0?0:te>0?1:-1}),Ci=function(){var te=function(oe,he){return oe<0?oe:oe>he?oe-he:0};return function(ne){var oe=ne.current,he=ne.max,ze=ne.change,He=wr(oe,ze),rt={x:te(He.x,he.x),y:te(He.y,he.y)};return Lr(rt,pr)?null:rt}}(),Ra=function(ne){var oe=ne.max,he=ne.current,ze=ne.change,He={x:Math.max(he.x,oe.x),y:Math.max(he.y,oe.y)},rt=ri(ze),ht=Ci({max:He,current:he,change:rt});return!ht||rt.x!==0&&ht.x===0||rt.y!==0&&ht.y===0},lo=function(ne,oe){return Ra({current:ne.scroll.current,max:ne.scroll.max,change:oe})},uo=function(ne,oe){if(!lo(ne,oe))return null;var he=ne.scroll.max,ze=ne.scroll.current;return Ci({current:ze,max:he,change:oe})},sl=function(ne,oe){var he=ne.frame;return he?Ra({current:he.scroll.current,max:he.scroll.max,change:oe}):!1},ul=function(ne,oe){var he=ne.frame;return!he||!sl(ne,oe)?null:Ci({current:he.scroll.current,max:he.scroll.max,change:oe})},el=function(te){var ne=te.viewport,oe=te.subject,he=te.center,ze=te.dragStartTime,He=te.shouldUseTimeDampening,rt=Ya({dragStartTime:ze,container:ne.frame,subject:oe,center:he,shouldUseTimeDampening:He});return rt&&lo(ne,rt)?rt:null},cl=function(te){var ne=te.droppable,oe=te.subject,he=te.center,ze=te.dragStartTime,He=te.shouldUseTimeDampening,rt=ne.frame;if(!rt)return null;var ht=Ya({dragStartTime:ze,container:rt.pageMarginBox,subject:oe,center:he,shouldUseTimeDampening:He});return ht&&sl(ne,ht)?ht:null},gl=function(te){var ne=te.state,oe=te.dragStartTime,he=te.shouldUseTimeDampening,ze=te.scrollWindow,He=te.scrollDroppable,rt=ne.current.page.borderBoxCenter,ht=ne.dimensions.draggables[ne.critical.draggable.id],nn=ht.page.marginBox;if(ne.isWindowScrollAllowed){var wn=ne.viewport,Cn=el({dragStartTime:oe,viewport:wn,subject:nn,center:rt,shouldUseTimeDampening:he});if(Cn){ze(Cn);return}}var sn=da({center:rt,destination:Gr(ne.impact),droppables:ne.dimensions.droppables});if(sn){var mn=cl({dragStartTime:oe,droppable:sn,subject:nn,center:rt,shouldUseTimeDampening:he});mn&&He(sn.descriptor.id,mn)}},fo=function(te){var ne=te.scrollWindow,oe=te.scrollDroppable,he=fr(ne),ze=fr(oe),He=null,rt=function(Cn){He||Ft(!1);var sn=He,mn=sn.shouldUseTimeDampening,_n=sn.dragStartTime;gl({state:Cn,scrollWindow:he,scrollDroppable:ze,dragStartTime:_n,shouldUseTimeDampening:mn})},ht=function(Cn){Fr(),He&&Ft(!1);var sn=Date.now(),mn=!1,_n=function(){mn=!0};gl({state:Cn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:_n,scrollDroppable:_n}),He={dragStartTime:sn,shouldUseTimeDampening:mn},ea(),mn&&rt(Cn)},nn=function(){He&&(he.cancel(),ze.cancel(),He=null)};return{start:ht,stop:nn,scroll:rt}},vo=function(te){var ne=te.move,oe=te.scrollDroppable,he=te.scrollWindow,ze=function(wn,Cn){var sn=wr(wn.current.client.selection,Cn);ne({client:sn})},He=function(wn,Cn){if(!sl(wn,Cn))return Cn;var sn=ul(wn,Cn);if(!sn)return oe(wn.descriptor.id,Cn),null;var mn=Or(Cn,sn);oe(wn.descriptor.id,mn);var _n=Or(Cn,mn);return _n},rt=function(wn,Cn,sn){if(!wn||!lo(Cn,sn))return sn;var mn=uo(Cn,sn);if(!mn)return he(sn),null;var _n=Or(sn,mn);he(_n);var sr=Or(sn,_n);return sr},ht=function(wn){var Cn=wn.scrollJumpRequest;if(Cn){var sn=Gr(wn.impact);sn||Ft(!1);var mn=He(wn.dimensions.droppables[sn],Cn);if(mn){var _n=wn.viewport,sr=rt(wn.isWindowScrollAllowed,_n,mn);sr&&ze(wn,sr)}}};return ht},El=function(te){var ne=te.scrollDroppable,oe=te.scrollWindow,he=te.move,ze=fo({scrollWindow:oe,scrollDroppable:ne}),He=vo({move:he,scrollWindow:oe,scrollDroppable:ne}),rt=function(wn){if(wn.phase==="DRAGGING"){if(wn.movementMode==="FLUID"){ze.scroll(wn);return}wn.scrollJumpRequest&&He(wn)}},ht={scroll:rt,start:ze.start,stop:ze.stop};return ht},dl="data-rbd",ai=function(){var te=dl+"-drag-handle";return{base:te,draggableId:te+"-draggable-id",contextId:te+"-context-id"}}(),Xi=function(){var te=dl+"-draggable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),ci=function(){var te=dl+"-droppable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),Ua={contextId:dl+"-scroll-container-context-id"},Po=function(ne){return function(oe){return"["+oe+'="'+ne+'"]'}},Bo=function(ne,oe){return ne.map(function(he){var ze=he.styles[oe];return ze?he.selector+" { "+ze+" }":""}).join(" ")},ol="pointer-events: none;",Yo=function(te){var ne=Po(te),oe=function(){var ht=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ne(ai.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:ht,dragging:ol,dropAnimating:ht}}}(),he=function(){var ht=`
|
|
|
transition: `+Ss.outOfTheWay+`;
|
|
|
`;return{selector:ne(Xi.contextId),styles:{dragging:ht,dropAnimating:ht,userCancel:ht}}}(),ze={selector:ne(ci.contextId),styles:{always:"overflow-anchor: none;"}},He={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;
|
|
|
`}},rt=[he,oe,ze,He];return{always:Bo(rt,"always"),resting:Bo(rt,"resting"),dragging:Bo(rt,"dragging"),dropAnimating:Bo(rt,"dropAnimating"),userCancel:Bo(rt,"userCancel")}},$o=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,Cl=function(){var ne=document.querySelector("head");return ne||Ft(!1),ne},xi=function(ne){var oe=document.createElement("style");return ne&&oe.setAttribute("nonce",ne),oe.type="text/css",oe};function Li(te,ne){var oe=Xt(function(){return Yo(te)},[te]),he=(0,y.useRef)(null),ze=(0,y.useRef)(null),He=Xe(pn(function(sn){var mn=ze.current;mn||Ft(!1),mn.textContent=sn}),[]),rt=Xe(function(sn){var mn=he.current;mn||Ft(!1),mn.textContent=sn},[]);$o(function(){!he.current&&!ze.current||Ft(!1);var sn=xi(ne),mn=xi(ne);return he.current=sn,ze.current=mn,sn.setAttribute(dl+"-always",te),mn.setAttribute(dl+"-dynamic",te),Cl().appendChild(sn),Cl().appendChild(mn),rt(oe.always),He(oe.resting),function(){var _n=function(va){var Ia=va.current;Ia||Ft(!1),Cl().removeChild(Ia),va.current=null};_n(he),_n(ze)}},[ne,rt,He,oe.always,oe.resting,te]);var ht=Xe(function(){return He(oe.dragging)},[He,oe.dragging]),nn=Xe(function(sn){if(sn==="DROP"){He(oe.dropAnimating);return}He(oe.userCancel)},[He,oe.dropAnimating,oe.userCancel]),wn=Xe(function(){ze.current&&He(oe.resting)},[He,oe.resting]),Cn=Xt(function(){return{dragging:ht,dropping:nn,resting:wn}},[ht,nn,wn]);return Cn}var Mo=function(te){return te&&te.ownerDocument?te.ownerDocument.defaultView:window};function ko(te){return te instanceof Mo(te).HTMLElement}function jo(te,ne){var oe="["+ai.contextId+'="'+te+'"]',he=Mi(document.querySelectorAll(oe));if(!he.length)return null;var ze=$a(he,function(He){return He.getAttribute(ai.draggableId)===ne});return!ze||!ko(ze)?null:ze}function Tl(te){var ne=(0,y.useRef)({}),oe=(0,y.useRef)(null),he=(0,y.useRef)(null),ze=(0,y.useRef)(!1),He=Xe(function(mn,_n){var sr={id:mn,focus:_n};return ne.current[mn]=sr,function(){var Ia=ne.current,ka=Ia[mn];ka!==sr&&delete Ia[mn]}},[]),rt=Xe(function(mn){var _n=jo(te,mn);_n&&_n!==document.activeElement&&_n.focus()},[te]),ht=Xe(function(mn,_n){oe.current===mn&&(oe.current=_n)},[]),nn=Xe(function(){he.current||ze.current&&(he.current=requestAnimationFrame(function(){he.current=null;var mn=oe.current;mn&&rt(mn)}))},[rt]),wn=Xe(function(mn){oe.current=null;var _n=document.activeElement;_n&&_n.getAttribute(ai.draggableId)===mn&&(oe.current=mn)},[]);$o(function(){return ze.current=!0,function(){ze.current=!1;var mn=he.current;mn&&cancelAnimationFrame(mn)}},[]);var Cn=Xt(function(){return{register:He,tryRecordFocus:wn,tryRestoreFocusRecorded:nn,tryShiftRecord:ht}},[He,wn,nn,ht]);return Cn}function xl(){var te={draggables:{},droppables:{}},ne=[];function oe(sn){return ne.push(sn),function(){var _n=ne.indexOf(sn);_n!==-1&&ne.splice(_n,1)}}function he(sn){ne.length&&ne.forEach(function(mn){return mn(sn)})}function ze(sn){return te.draggables[sn]||null}function He(sn){var mn=ze(sn);return mn||Ft(!1),mn}var rt={register:function(mn){te.draggables[mn.descriptor.id]=mn,he({type:"ADDITION",value:mn})},update:function(mn,_n){var sr=te.draggables[_n.descriptor.id];sr&&sr.uniqueId===mn.uniqueId&&(delete te.draggables[_n.descriptor.id],te.draggables[mn.descriptor.id]=mn)},unregister:function(mn){var _n=mn.descriptor.id,sr=ze(_n);sr&&mn.uniqueId===sr.uniqueId&&(delete te.draggables[_n],he({type:"REMOVAL",value:mn}))},getById:He,findById:ze,exists:function(mn){return!!ze(mn)},getAllByType:function(mn){return la(te.draggables).filter(function(_n){return _n.descriptor.type===mn})}};function ht(sn){return te.droppables[sn]||null}function nn(sn){var mn=ht(sn);return mn||Ft(!1),mn}var wn={register:function(mn){te.droppables[mn.descriptor.id]=mn},unregister:function(mn){var _n=ht(mn.descriptor.id);_n&&mn.uniqueId===_n.uniqueId&&delete te.droppables[mn.descriptor.id]},getById:nn,findById:ht,exists:function(mn){return!!ht(mn)},getAllByType:function(mn){return la(te.droppables).filter(function(_n){return _n.descriptor.type===mn})}};function Cn(){te.draggables={},te.droppables={},ne.length=0}return{draggable:rt,droppable:wn,subscribe:oe,clean:Cn}}function rs(){var te=Xt(xl,[]);return(0,y.useEffect)(function(){return function(){requestAnimationFrame(te.clean)}},[te]),te}var tl=y.createContext(null),go=function(){var te=document.body;return te||Ft(!1),te},Qo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},nl=function(ne){return"rbd-announcement-"+ne};function Ol(te){var ne=Xt(function(){return nl(te)},[te]),oe=(0,y.useRef)(null);(0,y.useEffect)(function(){var He=document.createElement("div");return oe.current=He,He.id=ne,He.setAttribute("aria-live","assertive"),He.setAttribute("aria-atomic","true"),(0,we.Z)(He.style,Qo),go().appendChild(He),function(){setTimeout(function(){var nn=go();nn.contains(He)&&nn.removeChild(He),He===oe.current&&(oe.current=null)})}},[ne]);var he=Xe(function(ze){var He=oe.current;if(He){He.textContent=ze;return}},[]);return he}var pl=0,Oo={separator:"::"};function fl(){pl=0}function Ro(te,ne){return ne===void 0&&(ne=Oo),Xt(function(){return""+te+ne.separator+pl++},[ne.separator,te])}function Vl(te){var ne=te.contextId,oe=te.uniqueId;return"rbd-hidden-text-"+ne+"-"+oe}function Bl(te){var ne=te.contextId,oe=te.text,he=Ro("hidden-text",{separator:"-"}),ze=Xt(function(){return Vl({contextId:ne,uniqueId:he})},[he,ne]);return(0,y.useEffect)(function(){var rt=document.createElement("div");return rt.id=ze,rt.textContent=oe,rt.style.display="none",go().appendChild(rt),function(){var nn=go();nn.contains(rt)&&nn.removeChild(rt)}},[ze,oe]),ze}var Ll=y.createContext(null),as={react:"^16.8.5","react-dom":"^16.8.5"},As=/(\d+)\.(\d+)\.(\d+)/,Jo=function(ne){var oe=As.exec(ne);oe==null&&Ft(!1);var he=Number(oe[1]),ze=Number(oe[2]),He=Number(oe[3]);return{major:he,minor:ze,patch:He,raw:ne}},gu=function(ne,oe){return oe.major>ne.major?!0:oe.major<ne.major?!1:oe.minor>ne.minor?!0:oe.minor<ne.minor?!1:oe.patch>=ne.patch},es=function(te,ne){var oe=Jo(te),he=Jo(ne);gu(oe,he)},Bs=`
|
|
|
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
|
|
|
`,ms=function(te){var ne=te.doctype;ne&&(ne.name.toLowerCase(),ne.publicId)};function ss(te){}function Ho(te,ne){}function ps(){Ho(function(){es(as.react,y.version),ms(document)},[])}function Os(te){var ne=(0,y.useRef)(te);return(0,y.useEffect)(function(){ne.current=te}),ne}function Ns(){var te=null;function ne(){return!!te}function oe(rt){return rt===te}function he(rt){te&&Ft(!1);var ht={abandon:rt};return te=ht,ht}function ze(){te||Ft(!1),te=null}function He(){te&&(te.abandon(),ze())}return{isClaimed:ne,isActive:oe,claim:he,release:ze,tryAbandon:He}}var _s=9,Bu=13,ru=27,yu=32,Du=33,Ru=34,io=35,Do=36,hl=37,Sl=38,Zl=39,Ml=40,us,Yl=(us={},us[Bu]=!0,us[_s]=!0,us),Qs=function(te){Yl[te.keyCode]&&te.preventDefault()},au=function(){var te="visibilitychange";if(typeof document=="undefined")return te;var ne=[te,"ms"+te,"webkit"+te,"moz"+te,"o"+te],oe=$a(ne,function(he){return"on"+he in document});return oe||te}(),iu=0,Ks=5;function Fu(te,ne){return Math.abs(ne.x-te.x)>=Ks||Math.abs(ne.y-te.y)>=Ks}var Gs={type:"IDLE"};function ku(te){var ne=te.cancel,oe=te.completed,he=te.getPhase,ze=te.setPhase;return[{eventName:"mousemove",fn:function(rt){var ht=rt.button,nn=rt.clientX,wn=rt.clientY;if(ht===iu){var Cn={x:nn,y:wn},sn=he();if(sn.type==="DRAGGING"){rt.preventDefault(),sn.actions.move(Cn);return}sn.type!=="PENDING"&&Ft(!1);var mn=sn.point;if(Fu(mn,Cn)){rt.preventDefault();var _n=sn.actions.fluidLift(Cn);ze({type:"DRAGGING",actions:_n})}}}},{eventName:"mouseup",fn:function(rt){var ht=he();if(ht.type!=="DRAGGING"){ne();return}rt.preventDefault(),ht.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"mousedown",fn:function(rt){he().type==="DRAGGING"&&rt.preventDefault(),ne()}},{eventName:"keydown",fn:function(rt){var ht=he();if(ht.type==="PENDING"){ne();return}if(rt.keyCode===ru){rt.preventDefault(),ne();return}Qs(rt)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){he().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(rt){var ht=he();if(ht.type==="IDLE"&&Ft(!1),ht.actions.shouldRespectForcePress()){ne();return}rt.preventDefault()}},{eventName:au,fn:ne}]}function Iu(te){var ne=(0,y.useRef)(Gs),oe=(0,y.useRef)(_t),he=Xt(function(){return{eventName:"mousedown",fn:function(sn){if(!sn.defaultPrevented&&sn.button===iu&&!(sn.ctrlKey||sn.metaKey||sn.shiftKey||sn.altKey)){var mn=te.findClosestDraggableId(sn);if(mn){var _n=te.tryGetLock(mn,rt,{sourceEvent:sn});if(_n){sn.preventDefault();var sr={x:sn.clientX,y:sn.clientY};oe.current(),wn(_n,sr)}}}}}},[te]),ze=Xt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(sn){if(!sn.defaultPrevented){var mn=te.findClosestDraggableId(sn);if(mn){var _n=te.findOptionsForDraggable(mn);_n&&(_n.shouldRespectForcePress||te.canGetLock(mn)&&sn.preventDefault())}}}}},[te]),He=Xe(function(){var sn={passive:!1,capture:!0};oe.current=ct(window,[ze,he],sn)},[ze,he]),rt=Xe(function(){var Cn=ne.current;Cn.type!=="IDLE"&&(ne.current=Gs,oe.current(),He())},[He]),ht=Xe(function(){var Cn=ne.current;rt(),Cn.type==="DRAGGING"&&Cn.actions.cancel({shouldBlockNextClick:!0}),Cn.type==="PENDING"&&Cn.actions.abort()},[rt]),nn=Xe(function(){var sn={capture:!0,passive:!1},mn=ku({cancel:ht,completed:rt,getPhase:function(){return ne.current},setPhase:function(sr){ne.current=sr}});oe.current=ct(window,mn,sn)},[ht,rt]),wn=Xe(function(sn,mn){ne.current.type!=="IDLE"&&Ft(!1),ne.current={type:"PENDING",point:mn,actions:sn},nn()},[nn]);$o(function(){return He(),function(){oe.current()}},[He])}var Us;function tc(){}var Xs=(Us={},Us[Ru]=!0,Us[Du]=!0,Us[Do]=!0,Us[io]=!0,Us);function Lu(te,ne){function oe(){ne(),te.cancel()}function he(){ne(),te.drop()}return[{eventName:"keydown",fn:function(He){if(He.keyCode===ru){He.preventDefault(),oe();return}if(He.keyCode===yu){He.preventDefault(),he();return}if(He.keyCode===Ml){He.preventDefault(),te.moveDown();return}if(He.keyCode===Sl){He.preventDefault(),te.moveUp();return}if(He.keyCode===Zl){He.preventDefault(),te.moveRight();return}if(He.keyCode===hl){He.preventDefault(),te.moveLeft();return}if(Xs[He.keyCode]){He.preventDefault();return}Qs(He)}},{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:au,fn:oe}]}function lc(te){var ne=(0,y.useRef)(tc),oe=Xt(function(){return{eventName:"keydown",fn:function(He){if(He.defaultPrevented||He.keyCode!==yu)return;var rt=te.findClosestDraggableId(He);if(!rt)return;var ht=te.tryGetLock(rt,Cn,{sourceEvent:He});if(!ht)return;He.preventDefault();var nn=!0,wn=ht.snapLift();ne.current();function Cn(){nn||Ft(!1),nn=!1,ne.current(),he()}ne.current=ct(window,Lu(wn,Cn),{capture:!0,passive:!1})}}},[te]),he=Xe(function(){var He={passive:!1,capture:!0};ne.current=ct(window,[oe],He)},[oe]);$o(function(){return he(),function(){ne.current()}},[he])}var bu={type:"IDLE"},Eu=120,sc=.15;function uc(te){var ne=te.cancel,oe=te.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function(ze){ze.preventDefault()}},{eventName:"keydown",fn:function(ze){if(oe().type!=="DRAGGING"){ne();return}ze.keyCode===ru&&ze.preventDefault(),ne()}},{eventName:au,fn:ne}]}function Cu(te){var ne=te.cancel,oe=te.completed,he=te.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(He){var rt=he();if(rt.type!=="DRAGGING"){ne();return}rt.hasMoved=!0;var ht=He.touches[0],nn=ht.clientX,wn=ht.clientY,Cn={x:nn,y:wn};He.preventDefault(),rt.actions.move(Cn)}},{eventName:"touchend",fn:function(He){var rt=he();if(rt.type!=="DRAGGING"){ne();return}He.preventDefault(),rt.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"touchcancel",fn:function(He){if(he().type!=="DRAGGING"){ne();return}He.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(He){var rt=he();rt.type==="IDLE"&&Ft(!1);var ht=He.touches[0];if(ht){var nn=ht.force>=sc;if(nn){var wn=rt.actions.shouldRespectForcePress();if(rt.type==="PENDING"){wn&&ne();return}if(wn){if(rt.hasMoved){He.preventDefault();return}ne();return}He.preventDefault()}}}},{eventName:au,fn:ne}]}function Zu(te){var ne=(0,y.useRef)(bu),oe=(0,y.useRef)(_t),he=Xe(function(){return ne.current},[]),ze=Xe(function(_n){ne.current=_n},[]),He=Xt(function(){return{eventName:"touchstart",fn:function(_n){if(!_n.defaultPrevented){var sr=te.findClosestDraggableId(_n);if(sr){var va=te.tryGetLock(sr,ht,{sourceEvent:_n});if(va){var Ia=_n.touches[0],ka=Ia.clientX,ii=Ia.clientY,Fi={x:ka,y:ii};oe.current(),sn(va,Fi)}}}}}},[te]),rt=Xe(function(){var _n={capture:!0,passive:!1};oe.current=ct(window,[He],_n)},[He]),ht=Xe(function(){var mn=ne.current;mn.type!=="IDLE"&&(mn.type==="PENDING"&&clearTimeout(mn.longPressTimerId),ze(bu),oe.current(),rt())},[rt,ze]),nn=Xe(function(){var mn=ne.current;ht(),mn.type==="DRAGGING"&&mn.actions.cancel({shouldBlockNextClick:!0}),mn.type==="PENDING"&&mn.actions.abort()},[ht]),wn=Xe(function(){var _n={capture:!0,passive:!1},sr={cancel:nn,completed:ht,getPhase:he},va=ct(window,Cu(sr),_n),Ia=ct(window,uc(sr),_n);oe.current=function(){va(),Ia()}},[nn,he,ht]),Cn=Xe(function(){var _n=he();_n.type!=="PENDING"&&Ft(!1);var sr=_n.actions.fluidLift(_n.point);ze({type:"DRAGGING",actions:sr,hasMoved:!1})},[he,ze]),sn=Xe(function(_n,sr){he().type!=="IDLE"&&Ft(!1);var va=setTimeout(Cn,Eu);ze({type:"PENDING",point:sr,actions:_n,longPressTimerId:va}),wn()},[wn,he,ze,Cn]);$o(function(){return rt(),function(){oe.current();var sr=he();sr.type==="PENDING"&&(clearTimeout(sr.longPressTimerId),ze(bu))}},[he,rt,ze]),$o(function(){var _n=ct(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return _n},[])}function xu(te){}var $u={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ou(te,ne){if(ne==null)return!1;var oe=!!$u[ne.tagName.toLowerCase()];if(oe)return!0;var he=ne.getAttribute("contenteditable");return he==="true"||he===""?!0:ne===te?!1:ou(te,ne.parentElement)}function ju(te,ne){var oe=ne.target;return ko(oe)?ou(te,oe):!1}var nc=function(te){return at(te.getBoundingClientRect()).center};function Wu(te){return te instanceof Mo(te).Element}var zu=function(){var te="matches";if(typeof document=="undefined")return te;var ne=[te,"msMatchesSelector","webkitMatchesSelector"],oe=$a(ne,function(he){return he in Element.prototype});return oe||te}();function rc(te,ne){return te==null?null:te[zu](ne)?te:rc(te.parentElement,ne)}function Pu(te,ne){return te.closest?te.closest(ne):rc(te,ne)}function Js(te){return"["+ai.contextId+'="'+te+'"]'}function lu(te,ne){var oe=ne.target;if(!Wu(oe))return null;var he=Js(te),ze=Pu(oe,he);return!ze||!ko(ze)?null:ze}function Hu(te,ne){var oe=lu(te,ne);return oe?oe.getAttribute(ai.draggableId):null}function Vu(te,ne){var oe="["+Xi.contextId+'="'+te+'"]',he=Mi(document.querySelectorAll(oe)),ze=$a(he,function(He){return He.getAttribute(Xi.id)===ne});return!ze||!ko(ze)?null:ze}function cc(te){te.preventDefault()}function yo(te){var ne=te.expected,oe=te.phase,he=te.isLockActive,ze=te.shouldWarn;return!(!he()||ne!==oe)}function No(te){var ne=te.lockAPI,oe=te.store,he=te.registry,ze=te.draggableId;if(ne.isClaimed())return!1;var He=he.draggable.findById(ze);return!(!He||!He.options.isEnabled||!ia(oe.getState(),ze))}function Ql(te){var ne=te.lockAPI,oe=te.contextId,he=te.store,ze=te.registry,He=te.draggableId,rt=te.forceSensorStop,ht=te.sourceEvent,nn=No({lockAPI:ne,store:he,registry:ze,draggableId:He});if(!nn)return null;var wn=ze.draggable.getById(He),Cn=Vu(oe,wn.descriptor.id);if(!Cn||ht&&!wn.options.canDragInteractiveElements&&ju(Cn,ht))return null;var sn=ne.claim(rt||_t),mn="PRE_DRAG";function _n(){return wn.options.shouldRespectForcePress}function sr(){return ne.isActive(sn)}function va(mo,Wo){yo({expected:mo,phase:mn,isLockActive:sr,shouldWarn:!0})&&he.dispatch(Wo())}var Ia=va.bind(null,"DRAGGING");function ka(mo){function Wo(){ne.release(),mn="COMPLETED"}mn!=="PRE_DRAG"&&(Wo(),mn!=="PRE_DRAG"&&Ft(!1)),he.dispatch(ui(mo.liftActionArgs)),mn="DRAGGING";function jl(Vo,Wl){if(Wl===void 0&&(Wl={shouldBlockNextClick:!1}),mo.cleanup(),Wl.shouldBlockNextClick){var ds=ct(window,[{eventName:"click",fn:cc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ds)}Wo(),he.dispatch(Ms({reason:Vo}))}return(0,we.Z)({isActive:function(){return yo({expected:"DRAGGING",phase:mn,isLockActive:sr,shouldWarn:!1})},shouldRespectForcePress:_n,drop:function(Wl){return jl("DROP",Wl)},cancel:function(Wl){return jl("CANCEL",Wl)}},mo.actions)}function ii(mo){var Wo=fr(function(Vo){Ia(function(){return Ko({client:Vo})})}),jl=ka({liftActionArgs:{id:He,clientSelection:mo,movementMode:"FLUID"},cleanup:function(){return Wo.cancel()},actions:{move:Wo}});return(0,we.Z)({},jl,{move:Wo})}function Fi(){var mo={moveUp:function(){return Ia(_l)},moveRight:function(){return Ia(Ur)},moveDown:function(){return Ia(Al)},moveLeft:function(){return Ia(Fo)}};return ka({liftActionArgs:{id:He,clientSelection:nc(Cn),movementMode:"SNAP"},cleanup:_t,actions:mo})}function Ti(){var mo=yo({expected:"PRE_DRAG",phase:mn,isLockActive:sr,shouldWarn:!0});mo&&ne.release()}var bo={isActive:function(){return yo({expected:"PRE_DRAG",phase:mn,isLockActive:sr,shouldWarn:!1})},shouldRespectForcePress:_n,fluidLift:ii,snapLift:Fi,abort:Ti};return bo}var hs=[Iu,lc,Zu];function Jl(te){var ne=te.contextId,oe=te.store,he=te.registry,ze=te.customSensors,He=te.enableDefaultSensors,rt=[].concat(He?hs:[],ze||[]),ht=(0,y.useState)(function(){return Ns()})[0],nn=Xe(function(ii,Fi){ii.isDragging&&!Fi.isDragging&&ht.tryAbandon()},[ht]);$o(function(){var ii=oe.getState(),Fi=oe.subscribe(function(){var Ti=oe.getState();nn(ii,Ti),ii=Ti});return Fi},[ht,oe,nn]),$o(function(){return ht.tryAbandon},[ht.tryAbandon]);var wn=Xe(function(ka){return No({lockAPI:ht,registry:he,store:oe,draggableId:ka})},[ht,he,oe]),Cn=Xe(function(ka,ii,Fi){return Ql({lockAPI:ht,registry:he,contextId:ne,store:oe,draggableId:ka,forceSensorStop:ii,sourceEvent:Fi&&Fi.sourceEvent?Fi.sourceEvent:null})},[ne,ht,he,oe]),sn=Xe(function(ka){return Hu(ne,ka)},[ne]),mn=Xe(function(ka){var ii=he.draggable.findById(ka);return ii?ii.options:null},[he.draggable]),_n=Xe(function(){ht.isClaimed()&&(ht.tryAbandon(),oe.getState().phase!=="IDLE"&&oe.dispatch(wo()))},[ht,oe]),sr=Xe(ht.isClaimed,[ht]),va=Xt(function(){return{canGetLock:wn,tryGetLock:Cn,findClosestDraggableId:sn,findOptionsForDraggable:mn,tryReleaseLock:_n,isLockClaimed:sr}},[wn,Cn,sn,mn,_n,sr]);xu(rt);for(var Ia=0;Ia<rt.length;Ia++)rt[Ia](va)}var su=function(ne){return{onBeforeCapture:ne.onBeforeCapture,onBeforeDragStart:ne.onBeforeDragStart,onDragStart:ne.onDragStart,onDragEnd:ne.onDragEnd,onDragUpdate:ne.onDragUpdate}};function Es(te){return te.current||Ft(!1),te.current}function $s(te){var ne=te.contextId,oe=te.setCallbacks,he=te.sensors,ze=te.nonce,He=te.dragHandleUsageInstructions,rt=(0,y.useRef)(null);ps();var ht=Os(te),nn=Xe(function(){return su(ht.current)},[ht]),wn=Ol(ne),Cn=Bl({contextId:ne,text:He}),sn=Li(ne,ze),mn=Xe(function(Vo){Es(rt).dispatch(Vo)},[]),_n=Xt(function(){return(0,Se.DE)({publishWhileDragging:ua,updateDroppableScroll:Fa,updateDroppableIsEnabled:ao,updateDroppableIsCombineEnabled:il,collectionStarting:aa},mn)},[mn]),sr=rs(),va=Xt(function(){return Kn(sr,_n)},[sr,_n]),Ia=Xt(function(){return El((0,we.Z)({scrollWindow:Tr,scrollDroppable:va.scrollDroppable},(0,Se.DE)({move:Ko},mn)))},[va.scrollDroppable,mn]),ka=Tl(ne),ii=Xt(function(){return gn({announce:wn,autoScroller:Ia,dimensionMarshal:va,focusMarshal:ka,getResponders:nn,styleMarshal:sn})},[wn,Ia,va,ka,nn,sn]);rt.current=ii;var Fi=Xe(function(){var Vo=Es(rt),Wl=Vo.getState();Wl.phase!=="IDLE"&&Vo.dispatch(wo())},[]),Ti=Xe(function(){var Vo=Es(rt).getState();return Vo.isDragging||Vo.phase==="DROP_ANIMATING"},[]),bo=Xt(function(){return{isDragging:Ti,tryAbort:Fi}},[Ti,Fi]);oe(bo);var mo=Xe(function(Vo){return ia(Es(rt).getState(),Vo)},[]),Wo=Xe(function(){return oo(Es(rt).getState())},[]),jl=Xt(function(){return{marshal:va,focus:ka,contextId:ne,canLift:mo,isMovementAllowed:Wo,dragHandleUsageInstructionsId:Cn,registry:sr}},[ne,va,Cn,ka,mo,Wo,sr]);return Jl({contextId:ne,store:ii,registry:sr,customSensors:he,enableDefaultSensors:te.enableDefaultSensors!==!1}),(0,y.useEffect)(function(){return Fi},[Fi]),y.createElement(Ll.Provider,{value:jl},y.createElement(Oe,{context:tl,store:ii},te.children))}var qs=0;function Ku(){qs=0}function yc(){return Xt(function(){return""+qs++},[])}function Gu(){Ku(),fl()}function bc(te){var ne=yc(),oe=te.dragHandleUsageInstructions||Xn.dragHandleUsageInstructions;return y.createElement(ar,null,function(he){return y.createElement($s,{nonce:te.nonce,contextId:ne,setCallbacks:he,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 Au=function(ne){return function(oe){return ne===oe}},_c=Au("scroll"),Tc=Au("auto"),Mc=Au("visible"),yl=function(ne,oe){return oe(ne.overflowX)||oe(ne.overflowY)},Rc=function(ne,oe){return oe(ne.overflowX)&&oe(ne.overflowY)},ac=function(ne){var oe=window.getComputedStyle(ne),he={overflowX:oe.overflowX,overflowY:oe.overflowY};return yl(he,_c)||yl(he,Tc)},Uu=function(){return!1;var ne,oe,he,ze},Ts=function te(ne){return ne==null?null:ne===document.body?Uu()?ne:null:ne===document.documentElement?null:ac(ne)?ne:te(ne.parentElement)},dc=function(te){if(te)var ne=Ts(te.parentElement)},Xu=function(te){return{x:te.scrollLeft,y:te.scrollTop}},Ec=function te(ne){if(!ne)return!1;var oe=window.getComputedStyle(ne);return oe.position==="fixed"?!0:te(ne.parentElement)},Cc=function(te){var ne=Ts(te),oe=Ec(te);return{closestScrollable:ne,isFixedOnPage:oe}},xc=function(te){var ne=te.descriptor,oe=te.isEnabled,he=te.isCombineEnabled,ze=te.isFixedOnPage,He=te.direction,rt=te.client,ht=te.page,nn=te.closest,wn=function(){if(!nn)return null;var _n=nn.scrollSize,sr=nn.client,va=zn({scrollHeight:_n.scrollHeight,scrollWidth:_n.scrollWidth,height:sr.paddingBox.height,width:sr.paddingBox.width});return{pageMarginBox:nn.page.marginBox,frameClient:sr,scrollSize:_n,shouldClipSubject:nn.shouldClipSubject,scroll:{initial:nn.scroll,current:nn.scroll,max:va,diff:{value:pr,displacement:pr}}}}(),Cn=He==="vertical"?$r:qr,sn=Rr({page:ht,withPlaceholder:null,axis:Cn,frame:wn}),mn={descriptor:ne,isCombineEnabled:he,isFixedOnPage:ze,axis:Cn,isEnabled:oe,client:rt,page:ht,frame:wn,subject:sn};return mn},Sc=function(ne,oe){var he=jt(ne);if(!oe||ne!==oe)return he;var ze=he.paddingBox.top-oe.scrollTop,He=he.paddingBox.left-oe.scrollLeft,rt=ze+oe.scrollHeight,ht=He+oe.scrollWidth,nn={top:ze,right:ht,bottom:rt,left:He},wn=Rt(nn,he.border),Cn=Yt({borderBox:wn,margin:he.margin,border:he.border,padding:he.padding});return Cn},wc=function(te){var ne=te.ref,oe=te.descriptor,he=te.env,ze=te.windowScroll,He=te.direction,rt=te.isDropDisabled,ht=te.isCombineEnabled,nn=te.shouldClipSubject,wn=he.closestScrollable,Cn=Sc(ne,wn),sn=Zn(Cn,ze),mn=function(){if(!wn)return null;var sr=jt(wn),va={scrollHeight:wn.scrollHeight,scrollWidth:wn.scrollWidth};return{client:sr,page:Zn(sr,ze),scroll:Xu(wn),scrollSize:va,shouldClipSubject:nn}}(),_n=xc({descriptor:oe,isEnabled:!rt,isCombineEnabled:ht,isFixedOnPage:he.isFixedOnPage,direction:He,client:Cn,page:sn,closest:mn});return _n},kc={passive:!1},fc={passive:!0},mc=function(te){return te.shouldPublishImmediately?kc:fc};function Uo(te){var ne=(0,y.useContext)(te);return ne||Ft(!1),ne}var Yu=function(ne){return ne&&ne.env.closestScrollable||null};function Lc(te){var ne=(0,y.useRef)(null),oe=Uo(Ll),he=Ro("droppable"),ze=oe.registry,He=oe.marshal,rt=Os(te),ht=Xt(function(){return{id:te.droppableId,type:te.type,mode:te.mode}},[te.droppableId,te.mode,te.type]),nn=(0,y.useRef)(ht),wn=Xt(function(){return pn(function(Ti,bo){ne.current||Ft(!1);var mo={x:Ti,y:bo};He.updateDroppableScroll(ht.id,mo)})},[ht.id,He]),Cn=Xe(function(){var Ti=ne.current;return!Ti||!Ti.env.closestScrollable?pr:Xu(Ti.env.closestScrollable)},[]),sn=Xe(function(){var Ti=Cn();wn(Ti.x,Ti.y)},[Cn,wn]),mn=Xt(function(){return fr(sn)},[sn]),_n=Xe(function(){var Ti=ne.current,bo=Yu(Ti);Ti&&bo||Ft(!1);var mo=Ti.scrollOptions;if(mo.shouldPublishImmediately){sn();return}mn()},[mn,sn]),sr=Xe(function(Ti,bo){ne.current&&Ft(!1);var mo=rt.current,Wo=mo.getDroppableRef();Wo||Ft(!1);var jl=Cc(Wo),Vo={ref:Wo,descriptor:ht,env:jl,scrollOptions:bo};ne.current=Vo;var Wl=wc({ref:Wo,descriptor:ht,env:jl,windowScroll:Ti,direction:mo.direction,isDropDisabled:mo.isDropDisabled,isCombineEnabled:mo.isCombineEnabled,shouldClipSubject:!mo.ignoreContainerClipping}),ds=jl.closestScrollable;return ds&&(ds.setAttribute(Ua.contextId,oe.contextId),ds.addEventListener("scroll",_n,mc(Vo.scrollOptions))),Wl},[oe.contextId,ht,_n,rt]),va=Xe(function(){var Ti=ne.current,bo=Yu(Ti);return Ti&&bo||Ft(!1),Xu(bo)},[]),Ia=Xe(function(){var Ti=ne.current;Ti||Ft(!1);var bo=Yu(Ti);ne.current=null,bo&&(mn.cancel(),bo.removeAttribute(Ua.contextId),bo.removeEventListener("scroll",_n,mc(Ti.scrollOptions)))},[_n,mn]),ka=Xe(function(Ti){var bo=ne.current;bo||Ft(!1);var mo=Yu(bo);mo||Ft(!1),mo.scrollTop+=Ti.y,mo.scrollLeft+=Ti.x},[]),ii=Xt(function(){return{getDimensionAndWatchScroll:sr,getScrollWhileDragging:va,dragStopped:Ia,scroll:ka}},[Ia,sr,va,ka]),Fi=Xt(function(){return{uniqueId:he,descriptor:ht,callbacks:ii}},[ii,ht,he]);$o(function(){return nn.current=Fi.descriptor,ze.droppable.register(Fi),function(){ne.current&&Ia(),ze.droppable.unregister(Fi)}},[ii,ht,Ia,Fi,He,ze.droppable]),$o(function(){ne.current&&He.updateDroppableIsEnabled(nn.current.id,!te.isDropDisabled)},[te.isDropDisabled,He]),$o(function(){ne.current&&He.updateDroppableIsCombineEnabled(nn.current.id,te.isCombineEnabled)},[te.isCombineEnabled,He])}function uu(){}var Bc={width:0,height:0,margin:ga},ic=function(ne){var oe=ne.isAnimatingOpenOnMount,he=ne.placeholder,ze=ne.animate;return oe||ze==="close"?Bc:{height:he.client.borderBox.height,width:he.client.borderBox.width,margin:he.client.margin}},Zc=function(ne){var oe=ne.isAnimatingOpenOnMount,he=ne.placeholder,ze=ne.animate,He=ic({isAnimatingOpenOnMount:oe,placeholder:he,animate:ze});return{display:he.display,boxSizing:"border-box",width:He.width,height:He.height,marginTop:He.margin.top,marginRight:He.margin.right,marginBottom:He.margin.bottom,marginLeft:He.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:ze!=="none"?Ss.placeholder:null}};function Rl(te){var ne=(0,y.useRef)(null),oe=Xe(function(){ne.current&&(clearTimeout(ne.current),ne.current=null)},[]),he=te.animate,ze=te.onTransitionEnd,He=te.onClose,rt=te.contextId,ht=(0,y.useState)(te.animate==="open"),nn=ht[0],wn=ht[1];(0,y.useEffect)(function(){return nn?he!=="open"?(oe(),wn(!1),uu):ne.current?uu:(ne.current=setTimeout(function(){ne.current=null,wn(!1)}),oe):uu},[he,nn,oe]);var Cn=Xe(function(mn){mn.propertyName==="height"&&(ze(),he==="close"&&He())},[he,He,ze]),sn=Zc({isAnimatingOpenOnMount:nn,animate:te.animate,placeholder:te.placeholder});return y.createElement(te.placeholder.tagName,{style:sn,"data-rbd-placeholder-context-id":rt,onTransitionEnd:Cn,ref:te.innerRef})}var $c=y.memo(Rl),pc=y.createContext(null);function Dc(te){te&&ko(te)||Ft(!1)}function Ou(te){return typeof te=="boolean"}function a(te,ne){ne.forEach(function(oe){return oe(te)})}var b=[function(ne){var oe=ne.props;oe.droppableId||Ft(!1),typeof oe.droppableId!="string"&&Ft(!1)},function(ne){var oe=ne.props;Ou(oe.isDropDisabled)||Ft(!1),Ou(oe.isCombineEnabled)||Ft(!1),Ou(oe.ignoreContainerClipping)||Ft(!1)},function(ne){var oe=ne.getDroppableRef;Dc(oe())}],z=[function(ne){var oe=ne.props,he=ne.getPlaceholderRef;if(oe.placeholder)var ze=he()}],x=[function(ne){var oe=ne.props;oe.renderClone||Ft(!1)},function(ne){var oe=ne.getPlaceholderRef;oe()&&Ft(!1)}];function ee(te){Ho(function(){a(te,b),te.props.mode==="standard"&&a(te,z),te.props.mode==="virtual"&&a(te,x)})}var le=function(te){me(ne,te);function ne(){for(var he,ze=arguments.length,He=new Array(ze),rt=0;rt<ze;rt++)He[rt]=arguments[rt];return he=te.call.apply(te,[this].concat(He))||this,he.state={isVisible:!!he.props.on,data:he.props.on,animate:he.props.shouldAnimate&&he.props.on?"open":"none"},he.onClose=function(){he.state.animate==="close"&&he.setState({isVisible:!1})},he}ne.getDerivedStateFromProps=function(ze,He){return ze.shouldAnimate?ze.on?{isVisible:!0,data:ze.on,animate:"open"}:He.isVisible?{isVisible:!0,data:He.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!ze.on,data:ze.on,animate:"none"}};var oe=ne.prototype;return oe.render=function(){if(!this.state.isVisible)return null;var ze={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(ze)},ne}(y.PureComponent),be={dragging:5e3,dropAnimating:4500},Me=function(ne,oe){return oe?Ss.drop(oe.duration):ne?Ss.snap:Ss.fluid},Ue=function(ne,oe){return ne?oe?Is.opacity.drop:Is.opacity.combining:null},lt=function(ne){return ne.forceShouldAnimate!=null?ne.forceShouldAnimate:ne.mode==="SNAP"};function fn(te){var ne=te.dimension,oe=ne.client,he=te.offset,ze=te.combineWith,He=te.dropping,rt=!!ze,ht=lt(te),nn=!!He,wn=nn?Ls.drop(he,rt):Ls.moveTo(he),Cn={position:"fixed",top:oe.marginBox.top,left:oe.marginBox.left,boxSizing:"border-box",width:oe.borderBox.width,height:oe.borderBox.height,transition:Me(ht,He),transform:wn,opacity:Ue(rt,nn),zIndex:nn?be.dropAnimating:be.dragging,pointerEvents:"none"};return Cn}function Sn(te){return{transform:Ls.moveTo(te.offset),transition:te.shouldAnimateDisplacement?null:"none"}}function Yn(te){return te.type==="DRAGGING"?fn(te):Sn(te)}function Vn(te,ne,oe){oe===void 0&&(oe=pr);var he=window.getComputedStyle(ne),ze=ne.getBoundingClientRect(),He=Ot(ze,he),rt=Zn(He,oe),ht={client:He,tagName:ne.tagName.toLowerCase(),display:he.display},nn={x:He.marginBox.width,y:He.marginBox.height},wn={descriptor:te,placeholder:ht,displaceBy:nn,client:He,page:rt};return wn}function kr(te){var ne=Ro("draggable"),oe=te.descriptor,he=te.registry,ze=te.getDraggableRef,He=te.canDragInteractiveElements,rt=te.shouldRespectForcePress,ht=te.isEnabled,nn=Xt(function(){return{canDragInteractiveElements:He,shouldRespectForcePress:rt,isEnabled:ht}},[He,ht,rt]),wn=Xe(function(_n){var sr=ze();return sr||Ft(!1),Vn(oe,sr,_n)},[oe,ze]),Cn=Xt(function(){return{uniqueId:ne,descriptor:oe,options:nn,getDimension:wn}},[oe,wn,nn,ne]),sn=(0,y.useRef)(Cn),mn=(0,y.useRef)(!0);$o(function(){return he.draggable.register(sn.current),function(){return he.draggable.unregister(sn.current)}},[he.draggable]),$o(function(){if(mn.current){mn.current=!1;return}var _n=sn.current;sn.current=Cn,he.draggable.update(Cn,_n)},[Cn,he.draggable])}function ta(te,ne,oe){Ho(function(){function he(He){return"Draggable[id: "+He+"]: "}var ze=te.draggableId;ze||Ft(!1),typeof ze!="string"&&Ft(!1),Pa(te.index)||Ft(!1),te.mapped.type!=="DRAGGING"&&(Dc(oe()),te.isEnabled&&(jo(ne,ze)||Ft(!1)))})}function wa(te){}function Ga(te){te.preventDefault()}function oi(te){var ne=(0,y.useRef)(null),oe=Xe(function(Vo){ne.current=Vo},[]),he=Xe(function(){return ne.current},[]),ze=Uo(Ll),He=ze.contextId,rt=ze.dragHandleUsageInstructionsId,ht=ze.registry,nn=Uo(pc),wn=nn.type,Cn=nn.droppableId,sn=Xt(function(){return{id:te.draggableId,index:te.index,type:wn,droppableId:Cn}},[te.draggableId,te.index,wn,Cn]),mn=te.children,_n=te.draggableId,sr=te.isEnabled,va=te.shouldRespectForcePress,Ia=te.canDragInteractiveElements,ka=te.isClone,ii=te.mapped,Fi=te.dropAnimationFinished;if(ta(te,He,he),wa(ka),!ka){var Ti=Xt(function(){return{descriptor:sn,registry:ht,getDraggableRef:he,canDragInteractiveElements:Ia,shouldRespectForcePress:va,isEnabled:sr}},[sn,ht,he,Ia,va,sr]);kr(Ti)}var bo=Xt(function(){return sr?{tabIndex:0,role:"button","aria-describedby":rt,"data-rbd-drag-handle-draggable-id":_n,"data-rbd-drag-handle-context-id":He,draggable:!1,onDragStart:Ga}:null},[He,rt,_n,sr]),mo=Xe(function(Vo){ii.type==="DRAGGING"&&ii.dropping&&Vo.propertyName==="transform"&&Fi()},[Fi,ii]),Wo=Xt(function(){var Vo=Yn(ii),Wl=ii.type==="DRAGGING"&&ii.dropping?mo:null,ds={innerRef:oe,draggableProps:{"data-rbd-draggable-context-id":He,"data-rbd-draggable-id":_n,style:Vo,onTransitionEnd:Wl},dragHandleProps:bo};return ds},[He,bo,_n,ii,mo,oe]),jl=Xt(function(){return{draggableId:sn.id,type:sn.type,source:{index:sn.index,droppableId:sn.droppableId}}},[sn.droppableId,sn.id,sn.index,sn.type]);return mn(Wo,ii.snapshot,jl)}var Ha=function(te,ne){return te===ne},bi=function(te){var ne=te.combine,oe=te.destination;return oe?oe.droppableId:ne?ne.droppableId:null},qi=function(ne){return ne.combine?ne.combine.draggableId:null},Ki=function(ne){return ne.at&&ne.at.type==="COMBINE"?ne.at.combine.draggableId:null};function Ao(){var te=pn(function(ze,He){return{x:ze,y:He}}),ne=pn(function(ze,He,rt,ht,nn){return{isDragging:!0,isClone:He,isDropAnimating:!!nn,dropAnimation:nn,mode:ze,draggingOver:rt,combineWith:ht,combineTargetFor:null}}),oe=pn(function(ze,He,rt,ht,nn,wn,Cn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:nn,combineWith:wn,mode:He,offset:ze,dimension:rt,forceShouldAnimate:Cn,snapshot:ne(He,ht,nn,wn,null)}}}),he=function(He,rt){if(He.isDragging){if(He.critical.draggable.id!==rt.draggableId)return null;var ht=He.current.client.offset,nn=He.dimensions.draggables[rt.draggableId],wn=Gr(He.impact),Cn=Ki(He.impact),sn=He.forceShouldAnimate;return oe(te(ht.x,ht.y),He.movementMode,nn,rt.isClone,wn,Cn,sn)}if(He.phase==="DROP_ANIMATING"){var mn=He.completed;if(mn.result.draggableId!==rt.draggableId)return null;var _n=rt.isClone,sr=He.dimensions.draggables[rt.draggableId],va=mn.result,Ia=va.mode,ka=bi(va),ii=qi(va),Fi=He.dropDuration,Ti={duration:Fi,curve:Rs.drop,moveTo:He.newHomeClientOffset,opacity:ii?Is.opacity.drop:null,scale:ii?Is.scale.drop:null};return{mapped:{type:"DRAGGING",offset:He.newHomeClientOffset,dimension:sr,dropping:Ti,draggingOver:ka,combineWith:ii,mode:Ia,forceShouldAnimate:null,snapshot:ne(Ia,_n,ka,ii,Ti)}}}return null};return he}function ml(te){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:te,combineWith:null}}var ql={mapped:{type:"SECONDARY",offset:pr,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ml(null)}};function Dl(){var te=pn(function(rt,ht){return{x:rt,y:ht}}),ne=pn(ml),oe=pn(function(rt,ht,nn){return ht===void 0&&(ht=null),{mapped:{type:"SECONDARY",offset:rt,combineTargetFor:ht,shouldAnimateDisplacement:nn,snapshot:ne(ht)}}}),he=function(ht){return ht?oe(pr,ht,!0):null},ze=function(ht,nn,wn,Cn){var sn=wn.displaced.visible[ht],mn=!!(Cn.inVirtualList&&Cn.effected[ht]),_n=ei(wn),sr=_n&&_n.draggableId===ht?nn:null;if(!sn){if(!mn)return he(sr);if(wn.displaced.invisible[ht])return null;var va=Sr(Cn.displacedBy.point),Ia=te(va.x,va.y);return oe(Ia,sr,!0)}if(mn)return he(sr);var ka=wn.displacedBy.point,ii=te(ka.x,ka.y);return oe(ii,sr,sn.shouldAnimate)},He=function(ht,nn){if(ht.isDragging)return ht.critical.draggable.id===nn.draggableId?null:ze(nn.draggableId,ht.critical.draggable.id,ht.impact,ht.afterCritical);if(ht.phase==="DROP_ANIMATING"){var wn=ht.completed;return wn.result.draggableId===nn.draggableId?null:ze(nn.draggableId,wn.result.draggableId,wn.impact,wn.afterCritical)}return null};return He}var Cs=function(){var ne=Ao(),oe=Dl(),he=function(He,rt){return ne(He,rt)||oe(He,rt)||ql};return he},vs={dropAnimationFinished:Hs},$l=It(Cs,vs,null,{context:tl,pure:!0,areStatePropsEqual:Ha})(oi);function cs(te){var ne=Uo(pc),oe=ne.isUsingCloneFor;return oe===te.draggableId&&!te.isClone?null:y.createElement($l,te)}function ts(te){var ne=typeof te.isDragDisabled=="boolean"?!te.isDragDisabled:!0,oe=!!te.disableInteractiveElementBlocking,he=!!te.shouldRespectForcePress;return y.createElement(cs,(0,we.Z)({},te,{isClone:!1,isEnabled:ne,canDragInteractiveElements:oe,shouldRespectForcePress:he}))}function Kl(te){var ne=(0,y.useContext)(Ll);ne||Ft(!1);var oe=ne.contextId,he=ne.isMovementAllowed,ze=(0,y.useRef)(null),He=(0,y.useRef)(null),rt=te.children,ht=te.droppableId,nn=te.type,wn=te.mode,Cn=te.direction,sn=te.ignoreContainerClipping,mn=te.isDropDisabled,_n=te.isCombineEnabled,sr=te.snapshot,va=te.useClone,Ia=te.updateViewportMaxScroll,ka=te.getContainerForClone,ii=Xe(function(){return ze.current},[]),Fi=Xe(function(ys){ze.current=ys},[]),Ti=Xe(function(){return He.current},[]),bo=Xe(function(ys){He.current=ys},[]);ee({props:te,getDroppableRef:ii,getPlaceholderRef:Ti});var mo=Xe(function(){he()&&Ia({maxScroll:xr()})},[he,Ia]);Lc({droppableId:ht,type:nn,mode:wn,direction:Cn,isDropDisabled:mn,isCombineEnabled:_n,ignoreContainerClipping:sn,getDroppableRef:ii});var Wo=y.createElement(le,{on:te.placeholder,shouldAnimate:te.shouldAnimatePlaceholder},function(ys){var du=ys.onClose,eu=ys.data,Ws=ys.animate;return y.createElement($c,{placeholder:eu,onClose:du,innerRef:bo,animate:Ws,contextId:oe,onTransitionEnd:mo})}),jl=Xt(function(){return{innerRef:Fi,placeholder:Wo,droppableProps:{"data-rbd-droppable-id":ht,"data-rbd-droppable-context-id":oe}}},[oe,ht,Wo,Fi]),Vo=va?va.dragging.draggableId:null,Wl=Xt(function(){return{droppableId:ht,type:nn,isUsingCloneFor:Vo}},[ht,Vo,nn]);function ds(){if(!va)return null;var ys=va.dragging,du=va.render,eu=y.createElement(cs,{draggableId:ys.draggableId,index:ys.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Ws,fu){return du(Ws,fu,ys)});return Dn.createPortal(eu,ka())}return y.createElement(pc.Provider,{value:Wl},rt(jl,sr),ds())}var Nl=function(ne,oe){return ne===oe.droppable.type},Fl=function(ne,oe){return oe.draggables[ne.draggable.id]},gs=function(){var ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},oe=(0,we.Z)({},ne,{shouldAnimatePlaceholder:!1}),he=pn(function(rt){return{draggableId:rt.id,type:rt.type,source:{index:rt.index,droppableId:rt.droppableId}}}),ze=pn(function(rt,ht,nn,wn,Cn,sn){var mn=Cn.descriptor.id,_n=Cn.descriptor.droppableId===rt;if(_n){var sr=sn?{render:sn,dragging:he(Cn.descriptor)}:null,va={isDraggingOver:nn,draggingOverWith:nn?mn:null,draggingFromThisWith:mn,isUsingPlaceholder:!0};return{placeholder:Cn.placeholder,shouldAnimatePlaceholder:!1,snapshot:va,useClone:sr}}if(!ht)return oe;if(!wn)return ne;var Ia={isDraggingOver:nn,draggingOverWith:mn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Cn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ia,useClone:null}}),He=function(ht,nn){var wn=nn.droppableId,Cn=nn.type,sn=!nn.isDropDisabled,mn=nn.renderClone;if(ht.isDragging){var _n=ht.critical;if(!Nl(Cn,_n))return oe;var sr=Fl(_n,ht.dimensions),va=Gr(ht.impact)===wn;return ze(wn,sn,va,va,sr,mn)}if(ht.phase==="DROP_ANIMATING"){var Ia=ht.completed;if(!Nl(Cn,Ia.critical))return oe;var ka=Fl(Ia.critical,ht.dimensions);return ze(wn,sn,bi(Ia.result)===wn,Gr(Ia.impact)===wn,ka,mn)}if(ht.phase==="IDLE"&&ht.completed&&!ht.shouldFlush){var ii=ht.completed;if(!Nl(Cn,ii.critical))return oe;var Fi=Gr(ii.impact)===wn,Ti=!!(ii.impact.at&&ii.impact.at.type==="COMBINE"),bo=ii.critical.droppable.id===wn;return Fi?Ti?ne:oe:bo?ne:oe}return oe};return He},Nu={updateViewportMaxScroll:Oi};function cu(){return document.body||Ft(!1),document.body}var is={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:cu},js=It(gs,Nu,null,{context:tl,pure:!0,areStatePropsEqual:Ha})(Kl);js.defaultProps=is},38486:function(Rn,qt){"use strict";var E;var y=60103,ge=60106,me=60107,we=60108,Se=60114,Ee=60109,Ce=60110,ke=60112,Fe=60113,de=60120,We=60115,Te=60116,ft=60121,Ge=60122,Ne=60117,Be=60129,Oe=60131;if(typeof Symbol=="function"&&Symbol.for){var Ie=Symbol.for;y=Ie("react.element"),ge=Ie("react.portal"),me=Ie("react.fragment"),we=Ie("react.strict_mode"),Se=Ie("react.profiler"),Ee=Ie("react.provider"),Ce=Ie("react.context"),ke=Ie("react.forward_ref"),Fe=Ie("react.suspense"),de=Ie("react.suspense_list"),We=Ie("react.memo"),Te=Ie("react.lazy"),ft=Ie("react.block"),Ge=Ie("react.server.block"),Ne=Ie("react.fundamental"),Be=Ie("react.debug_trace_mode"),Oe=Ie("react.legacy_hidden")}function nt(Le){if(typeof Le=="object"&&Le!==null){var xe=Le.$$typeof;switch(xe){case y:switch(Le=Le.type,Le){case me:case Se:case we:case Fe:case de:return Le;default:switch(Le=Le&&Le.$$typeof,Le){case Ce:case ke:case Te:case We:case Ee:return Le;default:return xe}}case ge:return xe}}}var St=Ee,Ae=y,_e=ke,et=me,qe=Te,ut=We,yt=ge,st=Se,$e=we,pe=Fe;E=Ce,E=St,E=Ae,E=_e,E=et,E=qe,E=ut,E=yt,E=st,E=$e,E=pe,E=function(){return!1},E=function(){return!1},qt.isContextConsumer=function(Le){return nt(Le)===Ce},E=function(Le){return nt(Le)===Ee},E=function(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===y},E=function(Le){return nt(Le)===ke},E=function(Le){return nt(Le)===me},E=function(Le){return nt(Le)===Te},E=function(Le){return nt(Le)===We},E=function(Le){return nt(Le)===ge},E=function(Le){return nt(Le)===Se},E=function(Le){return nt(Le)===we},E=function(Le){return nt(Le)===Fe},E=function(Le){return typeof Le=="string"||typeof Le=="function"||Le===me||Le===Se||Le===Be||Le===we||Le===Fe||Le===de||Le===Oe||typeof Le=="object"&&Le!==null&&(Le.$$typeof===Te||Le.$$typeof===We||Le.$$typeof===Ee||Le.$$typeof===Ce||Le.$$typeof===ke||Le.$$typeof===Ne||Le.$$typeof===ft||Le[0]===Ge)},E=nt},53410:function(Rn,qt,E){"use strict";Rn.exports=E(38486)},4977:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},73631:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},31328:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAodJREFUOBGtU0trFEEQ/qZnM5NsWBCfSEjwQdSggmAieAv4uOnFg5eIXgTvEY+ePJqToDf9AcZDFAUF8SgEQUxAjC6+QlhX4xo0G93ZnRnr697umSyKBCyY/aqqq76q6uoF/rN4lu/BmzSsLGFM7P4kAZQCiBTR64nCw/MHvRnj+fuvI7zxtDWJJD1lQulO5TPHnkAqpuAUFKZUqg8da8xI35+/cMh77AjHJ5cakh/oqHa2ZhGHpSb+STxJZA3lqesFG1CuLAdsqLfbb/dlTwQ7GdmG9VGVBuoNfT/nHGHUSnByeAN2binmmDK1gyM7aGvl6gruPvtadCOfvVlxN0PFjsF4qxMptjl7BflirsPAVxJoQjy5eUMqq6bkMgbWF7C4HGMlsnRmZE82xtEdYSwGnRTuhCvVqG3T8bGhHpweKaFWj3HpzqI7Z16SmHxHmKbcVE7yBs+k1uBm8wh6Q4VQJvrZMkEp98EGBB2h3pFUMWJmPLKniKGtXZhZiLC/L8CLhQbmqhHefmmi3pRYOwInY65gRiiM+ZEP9Ic4c7ik+Ye3dePK/W94/bmpbVNO4u2S2rmrOmRvtkEmlHraC9EUgEzo/optVwZM4IiCLivR1WhywwrT75p4WYlkqhTT7xs4vreIke2h3KWHTaUClC/ZnsR3fOTWMnarZi/QulYhr2l0MMDorhA7NhbwodbC5Xs/9FT5d+s6lJJSzHxWJ9ov9Xw8KceYX9LrQ9+6LF6pgs4luqVIIl+G69gp0id1tk+8/byJ77+AV9UEiRTJMnQMOYycuPZpNuhS+7TF+fgkiBSr55+J9eXOm1E86wjpPzrx8aI8hd3U1yryrOcejQ9cXWveP+N/A79g8eaXNDk4AAAAAElFTkSuQmCC"},16722:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});const y=Fe=>typeof Fe=="object"&&Fe!=null&&Fe.nodeType===1,ge=(Fe,de)=>(!de||Fe!=="hidden")&&Fe!=="visible"&&Fe!=="clip",me=(Fe,de)=>{if(Fe.clientHeight<Fe.scrollHeight||Fe.clientWidth<Fe.scrollWidth){const We=getComputedStyle(Fe,null);return ge(We.overflowY,de)||ge(We.overflowX,de)||(Te=>{const ft=(Ge=>{if(!Ge.ownerDocument||!Ge.ownerDocument.defaultView)return null;try{return Ge.ownerDocument.defaultView.frameElement}catch(Ne){return null}})(Te);return!!ft&&(ft.clientHeight<Te.scrollHeight||ft.clientWidth<Te.scrollWidth)})(Fe)}return!1},we=(Fe,de,We,Te,ft,Ge,Ne,Be)=>Ge<Fe&&Ne>de||Ge>Fe&&Ne<de?0:Ge<=Fe&&Be<=We||Ne>=de&&Be>=We?Ge-Fe-Te:Ne>de&&Be<We||Ge<Fe&&Be>We?Ne-de+ft:0,Se=Fe=>{const de=Fe.parentElement;return de==null?Fe.getRootNode().host||null:de},Ee=(Fe,de)=>{var We,Te,ft,Ge;if(typeof document=="undefined")return[];const{scrollMode:Ne,block:Be,inline:Oe,boundary:Ie,skipOverflowHiddenElements:nt}=de,St=typeof Ie=="function"?Ie:Ct=>Ct!==Ie;if(!y(Fe))throw new TypeError("Invalid target");const Ae=document.scrollingElement||document.documentElement,_e=[];let et=Fe;for(;y(et)&&St(et);){if(et=Se(et),et===Ae){_e.push(et);break}et!=null&&et===document.body&&me(et)&&!me(document.documentElement)||et!=null&&me(et,nt)&&_e.push(et)}const qe=(Te=(We=window.visualViewport)==null?void 0:We.width)!=null?Te:innerWidth,ut=(Ge=(ft=window.visualViewport)==null?void 0:ft.height)!=null?Ge:innerHeight,{scrollX:yt,scrollY:st}=window,{height:$e,width:pe,top:Le,right:xe,bottom:ce,left:Et}=Fe.getBoundingClientRect(),{top:Ye,right:je,bottom:it,left:Pe}=(Ct=>{const De=window.getComputedStyle(Ct);return{top:parseFloat(De.scrollMarginTop)||0,right:parseFloat(De.scrollMarginRight)||0,bottom:parseFloat(De.scrollMarginBottom)||0,left:parseFloat(De.scrollMarginLeft)||0}})(Fe);let ye=Be==="start"||Be==="nearest"?Le-Ye:Be==="end"?ce+it:Le+$e/2-Ye+it,vt=Oe==="center"?Et+pe/2-Pe+je:Oe==="end"?xe+je:Et-Pe;const zt=[];for(let Ct=0;Ct<_e.length;Ct++){const De=_e[Ct],{height:mt,width:dt,top:Gt,right:bt,bottom:xt,left:pt}=De.getBoundingClientRect();if(Ne==="if-needed"&&Le>=0&&Et>=0&&ce<=ut&&xe<=qe&&(De===Ae&&!me(De)||Le>=Gt&&ce<=xt&&Et>=pt&&xe<=bt))return zt;const ln=getComputedStyle(De),Wt=parseInt(ln.borderLeftWidth,10),ue=parseInt(ln.borderTopWidth,10),ae=parseInt(ln.borderRightWidth,10),re=parseInt(ln.borderBottomWidth,10);let se=0,ve=0;const ie="offsetWidth"in De?De.offsetWidth-De.clientWidth-Wt-ae:0,fe="offsetHeight"in De?De.offsetHeight-De.clientHeight-ue-re:0,Ve="offsetWidth"in De?De.offsetWidth===0?0:dt/De.offsetWidth:0,It="offsetHeight"in De?De.offsetHeight===0?0:mt/De.offsetHeight:0;if(Ae===De)se=Be==="start"?ye:Be==="end"?ye-ut:Be==="nearest"?we(st,st+ut,ut,ue,re,st+ye,st+ye+$e,$e):ye-ut/2,ve=Oe==="start"?vt:Oe==="center"?vt-qe/2:Oe==="end"?vt-qe:we(yt,yt+qe,qe,Wt,ae,yt+vt,yt+vt+pe,pe),se=Math.max(0,se+st),ve=Math.max(0,ve+yt);else{se=Be==="start"?ye-Gt-ue:Be==="end"?ye-xt+re+fe:Be==="nearest"?we(Gt,xt,mt,ue,re+fe,ye,ye+$e,$e):ye-(Gt+mt/2)+fe/2,ve=Oe==="start"?vt-pt-Wt:Oe==="center"?vt-(pt+dt/2)+ie/2:Oe==="end"?vt-bt+ae+ie:we(pt,bt,dt,Wt,ae+ie,vt,vt+pe,pe);const{scrollLeft:Qe,scrollTop:Ke}=De;se=It===0?0:Math.max(0,Math.min(Ke+se/It,De.scrollHeight-mt/It+fe)),ve=Ve===0?0:Math.max(0,Math.min(Qe+ve/Ve,De.scrollWidth-dt/Ve+ie)),ye+=Ke-se,vt+=Qe-ve}zt.push({el:De,top:se,left:ve})}return zt},Ce=Fe=>Fe===!1?{block:"end",inline:"nearest"}:(de=>de===Object(de)&&Object.keys(de).length!==0)(Fe)?Fe:{block:"start",inline:"nearest"};function ke(Fe,de){if(!Fe.isConnected||!(ft=>{let Ge=ft;for(;Ge&&Ge.parentNode;){if(Ge.parentNode===document)return!0;Ge=Ge.parentNode instanceof ShadowRoot?Ge.parentNode.host:Ge.parentNode}return!1})(Fe))return;const We=(ft=>{const Ge=window.getComputedStyle(ft);return{top:parseFloat(Ge.scrollMarginTop)||0,right:parseFloat(Ge.scrollMarginRight)||0,bottom:parseFloat(Ge.scrollMarginBottom)||0,left:parseFloat(Ge.scrollMarginLeft)||0}})(Fe);if((ft=>typeof ft=="object"&&typeof ft.behavior=="function")(de))return de.behavior(Ee(Fe,de));const Te=typeof de=="boolean"||de==null?void 0:de.behavior;for(const{el:ft,top:Ge,left:Ne}of Ee(Fe,Ce(de))){const Be=Ge-We.top+We.bottom,Oe=Ne-We.left+We.right;ft.scroll({top:Be,left:Oe,behavior:Te})}}}}]);
|