|
|
(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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},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),ce={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"},_e=ce,Se=E(7657),Ee=function(fe,We){return ge.createElement(Se.Z,(0,y.Z)({},fe,{ref:We,icon:_e}))},Ce=ge.forwardRef(Ee),ke=Ce},47618:function(){"use strict"},43334:function(){"use strict"},76591: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"}},32783: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"}},30130:function(Rn,qt,E){"use strict";var y=E(59301),ge=Object.defineProperty,ce=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ee=(De,fe,We)=>fe in De?ge(De,fe,{enumerable:!0,configurable:!0,writable:!0,value:We}):De[fe]=We,Ce=(De,fe)=>{for(var We in fe||(fe={}))_e.call(fe,We)&&Ee(De,We,fe[We]);if(ce)for(var We of ce(fe))Se.call(fe,We)&&Ee(De,We,fe[We]);return De};const ke=De=>React.createElement("svg",Ce({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},De),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+"},95075: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,ce=!1,_e=null,Se=!1,Ee=null,Ce=null,ke=0;ke<arguments.length;ke++){var De=arguments[ke];if(De!==null)switch(typeof De){case"number":qt=De.toFixed(1);break;case"string":De.match(new RegExp("^[0-9]\\.[0-9]+$"))?qt=De:_e=De;break;case"object":typeof De.is3D!="undefined"?y=De:E=De;break;case"boolean":ge=De,ce=!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&&!ce&&(ge=!0)),_e!==null&&E.id===void 0&&(E.id=_e);var fe="",We="",Te=!1,dt=null,Ge=null,Ne=null,we=!1,Pe=null,Fe=null,et=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 Oe=function(Be){return parseFloat(Be)>4?parseFloat(Be):5};Rn.setHTML5Codebase=function(Be,ft){Ce=Be,vt(Be,ft)},Rn.setJavaCodebase=Rn.setJavaCodebaseVersion=Rn.isCompiledInstalled=Rn.setPreCompiledScriptPath=Rn.setPreCompiledResourcePath=function(){},Rn.setHTML5CodebaseVersion=function(Be,ft){var ot=parseFloat(Be);if(ot!==NaN&&ot<5){console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead.");return}Ee=Be,ye(Be,ft)},Rn.getHTML5CodebaseVersion=function(){return Ge},Rn.getParameters=function(){return E},Rn.setFontsCSSURL=function(Be){St=Be},Rn.setGiacJSURL=function(Be){},Rn.setJNLPFile=function(Be){fe=Be},Rn.setJNLPBaseDir=function(Be){},Rn.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ft="auto",ot=E.id,Xt,xt=!1,wt=0;wt<arguments.length;wt++){var ht=arguments[wt];typeof ht=="string"?(ht=ht.toLowerCase(),ht.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ft=ht:ot=arguments[wt]):typeof ht=="boolean"?xt=ht:ht instanceof HTMLElement&&(Xt=ht)}un();function un(){if(!Se){setTimeout(un,200);return}ft=it(ft);var zt=Xt||document.getElementById(ot);if(!zt){console.log("possibly bug on ajax loading? ");return}if(Rn.removeExistingApplet(zt,!1),E.width===void 0&&zt.clientWidth&&(E.width=zt.clientWidth),E.height===void 0&&zt.clientHeight&&(E.height=zt.clientHeight),!(E.width&&E.height)&&ft==="html5"&&(delete E.width,delete E.height),dt=ft,ft==="screenshot")xe(zt,E);else{var ue=!1;E.hasOwnProperty("playButton")&&E.playButton||E.hasOwnProperty("clickToLoad")&&E.clickToLoad?ue=!0:E.hasOwnProperty("playButtonAutoDecide")&&E.playButtonAutoDecide&&(ue=(!qe()||Be())&&Je()),ue?(dt="screenshot",Ct(zt,E,xt,ft)):Le(zt,E,xt)}}};function qe(){try{return window.self!==window.top}catch(Be){return!0}}function Je(){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 ct=function(Be){var ft=function(wt){var ht=JSON.parse(wt),un=function(ae){return ae.type=="G"||ae.type=="E"},zt=ht.elements?ht.elements.filter(un)[0]:ht;if(!zt||!zt.url){ot();return}E.fileName=zt.url,bt(zt.settings||{}),y.is3D=!0;var ue="https://www.geogebra.org/images/";Rn.setPreviewImage(Pe||zt.previewUrl,ue+"GeoGebra_loading.png",ue+"applet_play.png"),Be()},ot=function(){E.onError&&E.onError(),Ht("Error: Fetching material (id "+E.material_id+") failed.",E)},Xt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",xt="/materials/"+E.material_id+"?scope=basic";st("https://"+Xt+"/api/proxy.php?path="+encodeURIComponent(xt),ft,ot)};function bt(Be){var ft=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ot){Be[ot]=!!Be[ot]}),ft.forEach(function(ot){E[ot]===void 0&&Be[ot]!==void 0&&(E[ot]=Be[ot])}),E.showToolBarHelp===void 0&&(E.showToolBarHelp=E.showToolBar)}function st(Be,ft,ot){var Xt=new XMLHttpRequest;Xt.open("GET",Be),Xt.onload=function(){ft(Xt.responseText)},Xt.onerror=ot,Xt.send()}Rn.isHTML5Installed=function(){return!0},Rn.getLoadedAppletType=function(){return dt},Rn.setPreviewImage=function(Be,ft,ot){Pe=Be,Fe=ft,et=ot},Rn.removeExistingApplet=function(Be,ft){var ot;typeof Be=="string"&&(Be=document.getElementById(Be)),dt=null;var Xt=null;for(ot=0;ot<Be.childNodes.length;ot++){var xt=Be.childNodes[ot],wt=xt.className;wt==="applet_screenshot"?ft?(xt.style.display="block",dt="screenshot"):xt.style.display="none":wt!=="applet_scaler prerender"&&(Be.removeChild(xt),Xt=wt&&wt.indexOf("appletParameters")!=-1?xt.id:null,ot--)}var ht=E.id!==void 0?E.id:Xt,un=window[ht];un&&typeof un.getBase64=="function"&&(un.remove(),window[ht]=null)},Rn.refreshHitPoints=function(){if(Oe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Be=Rn.getAppletObject();return Be&&typeof Be.recalculateEnvironments=="function"?(Be.recalculateEnvironments(),!0):!1},Rn.startAnimation=function(){var Be=Rn.getAppletObject();return Be&&typeof Be.startAnimation=="function"?(Be.startAnimation(),!0):!1},Rn.stopAnimation=function(){var Be=Rn.getAppletObject();return Be&&typeof Be.stopAnimation=="function"?(Be.stopAnimation(),!0):!1},Rn.getAppletObject=function(){var Be=E.id!==void 0?E.id:"ggbApplet";return window[Be]},Rn.resize=function(){};var $e=function(Be,ft,ot){var Xt=document.createElement("param");Xt.setAttribute("name",ft),Xt.setAttribute("value",ot),Be.appendChild(Xt)},pe=function(Be){return Be&&Be!=="false"},Le=function(Be,ft,ot){Oe(Ge)<=4.2&&(ot=!0);var Xt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ge||ggbHTML5LoadedCodebaseIsWebSimple&&!we)&&(Xt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var xt=document.createElement("div");xt.classList.add("appletParameters","notranslate");var wt=ft.width,ht=ft.height;if(ft.disableAutoScale=ft.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ft.disableAutoScale,ft.width!==void 0)if(Oe(Ge)<=4.4)pe(ft.showToolBar)&&(ft.height-=7),pe(ft.showAlgebraInput)&&(ft.height-=37),ft.width<605&&pe(ft.showToolBar)&&(ft.width=605,wt=605);else{var un=100;(pe(ft.showToolBar)||pe(ft.showMenuBar))&&(ft.hasOwnProperty("customToolBar")&&(ft.customToolbar=ft.customToolBar),un=pe(ft.showMenuBar)?245:155),wt<un&&(ft.width=un,wt=un)}xt.style.border="none",xt.style.display="inline-block";for(var zt in ft)ft.hasOwnProperty(zt)&&zt!=="appletOnLoad"&&xt.setAttribute("data-param-"+zt,ft[zt]);St&&xt.setAttribute("data-param-fontscssurl",St),Rn.resize=function(){GGBAppletUtils.responsiveResize(Be,ft)},window.addEventListener("resize",function(Bt){Rn.resize()});var ue=typeof ft.appletOnLoad=="function"?ft.appletOnLoad:function(){};if(!ot&&ft.width!==void 0){ft.hasOwnProperty("showSplash")||xt.setAttribute("data-param-showSplash","false");var ae=Be.querySelector(".applet_scaler.prerender"),re=ae!==null;if(re)var se=ae.querySelector(".ggb_preview");else{var se=je(wt,ht,ft.borderColor,!1);ae=document.createElement("div"),ae.className="applet_scaler",ae.style.position="relative",ae.style.display="block",ae.style.width=wt+"px",ae.style.height=ht+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ae,"66%"),Oe(Ge)>=5?(ft.appletOnLoad=function(Bt){var _t=Be.querySelector(".ggb_preview");_t&&_t.parentNode.removeChild(_t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ae),window.GGBT_wsf_view&&$(window).trigger("resize"),ue(Bt)},re||ae.appendChild(se)):xt.appendChild(se),ae.appendChild(xt),re||Be.appendChild(ae),setTimeout(function(){Rn.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(xt),Be.appendChild(he),ft.appletOnLoad=function(Bt){Rn.resize(),ue(Bt)}}function ie(Bt,_t){_t&&typeof _t.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,_t.appletOnLoad):renderGGBElement(Bt),Ht("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",_t)}function me(Bt,_t){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:_t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qe){ie(Qe.article,Qe.params)}),html5AppletsToProcess=null)},Oe(Ge)<5&&(Bt.className+=" geogebraweb")):ie(Bt,_t)}if(Xt){scriptLoadStarted=!0;for(var He=0;He<xt.childNodes.length;He++){var It=xt.childNodes[He].tagName;It==="TABLE"&&(xt.removeChild(xt.childNodes[He]),He--)}if(ggbHTML5LoadedScript!==null){var Xe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Xe!=null&&Xe.parentNode.removeChild(Xe)}var Ke=document.createElement("script"),yt=function(){me(xt,ft)};Ke.src=We+Ne,ggbHTML5LoadedCodebaseIsWebSimple=we,ggbHTML5LoadedCodebaseVersion=Ge,ggbHTML5LoadedScript=Ke.src,Ht("GeoGebra HTML5 codebase loaded: '"+We+"'.",ft),!Ce&&(!Ee||Ee=="5.0")?(we?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),yt()):We.requirejs?__webpack_require__.e(7313).then(function(){var Bt=[__webpack_require__(7313)];yt.apply(null,Bt)}.bind(this)).catch(__webpack_require__.oe):(Ke.onload=yt,Be.appendChild(Ke))}else me(xt,ft);ft.height=ht,ft.width=wt},xe=function(Be,ft,ot){var Xt=je(ft.width,ft.height,ft.borderColor,ot),xt=document.createElement("div");xt.style.position="relative",xt.style.display="block",xt.style.width=ft.width+"px",xt.style.height=ft.height+"px",xt.className="applet_screenshot applet_scaler"+(ot?" applet_screenshot_play":""),xt.appendChild(Xt);var wt=GGBAppletUtils.getScale(ft,Be,ot);ot?(Be.appendChild(Ye()),window.GGBT_wsf_view||(Be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xt,"66%"),Be.appendChild(xt),wt!==1&&!isNaN(wt)&&(GGBAppletUtils.scaleElement(xt,wt),xt.style.width=ft.width+"px",xt.style.height=ft.height+"px",xt.parentNode.style.width=ft.width*wt+"px",xt.parentNode.style.height=ft.height*wt+"px"),Rn.resize=function(){de(Be,Xt,xt,ot)},window.addEventListener("resize",function(ht){Rn.resize()}),Rn.resize()};function de(Be,ft,ot,Xt){if(Be.contains(ft)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Be)}var xt=GGBAppletUtils.getScale(E,Be,Xt);ot.parentNode!==null&&(!isNaN(xt)&&xt!==1?(GGBAppletUtils.scaleElement(ot,xt),ot.parentNode.style.width=E.width*xt+"px",ot.parentNode.style.height=E.height*xt+"px"):(GGBAppletUtils.scaleElement(ot,1),ot.parentNode.style.width=E.width+"px",ot.parentNode.style.height=E.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Rn.onExitFullscreen=function(Be,ft){ft.appendChild(Be)};var Ct=function(Be,ft,ot,Xt){xe(Be,ft,!0);for(var xt=function(){var un=[];for(ht=0;ht<Be.childNodes.length;ht++)un.push(Be.childNodes[ht]);if(window.GGBT_wsf_view){var zt=window.GGBT_wsf_view.renderFullScreen(Be,ft.id),ue=document.getElementById("fullscreencontainer"),ae=jQuery(Be).find(".fullscreencontent");ae.length>0?(zt.remove(),ae.attr("id","fullscreencontent").show(),jQuery(ue).append(ae),window.dispatchEvent(new Event("resize"))):Le(zt,ft,!1),window.GGBT_wsf_view.launchFullScreen(ue)}else dt=Xt,Le(Be,ft,!1);if(!window.GGBT_wsf_view)for(ht=0;ht<un.length;ht++)Be.removeChild(un[ht])},wt=Be.getElementsByClassName("ggb_preview_play"),ht=0;ht<wt.length;ht++)wt[ht].addEventListener("click",xt,!1),wt[ht].addEventListener("ontouchstart",xt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Be),Je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ye=function(){var Be=document.createElement("div");if(Be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ft='.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");}',ot=document.createElement("style");ot.styleSheet?ot.styleSheet.cssText=ft:ot.appendChild(document.createTextNode(ft)),document.getElementsByTagName("head")[0].appendChild(ot)}return Be},je=function(Be,ft,ot,Xt){var xt=document.createElement("div");xt.className="ggb_preview",xt.style.position="absolute",xt.style.zIndex="90",xt.style.width=Be-2+"px",xt.style.height=ft-2+"px",xt.style.top="0px",xt.style.left="0px",xt.style.overflow="hidden",xt.style.backgroundColor="white";var wt="lightgrey";ot!==void 0&&(ot==="none"?wt="transparent":wt=ot),xt.style.border="1px solid "+wt;var ht=document.createElement("img");if(ht.style.position="relative",ht.style.zIndex="1000",ht.style.top="-1px",ht.style.left="-1px",Pe!==null&&ht.setAttribute("src",Pe),ht.style.opacity=.7,Fe!==null){var un,zt,ue;if(!Xt){un=document.createElement("img"),un.style.position="absolute",un.style.zIndex="1001",un.style.opacity=1,ht.style.opacity=.3,zt=360,zt>Be/4*3&&(zt=Be/4*3),ue=zt/5.8,un.setAttribute("src",Fe),un.setAttribute("width",zt),un.setAttribute("height",ue);var ae=(Be-zt)/2,re=(ft-ue)/2;un.style.left=ae+"px",un.style.top=re+"px",xt.appendChild(un)}}return xt.appendChild(ht),xt},it=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},Ie=["web","webSimple","web3d","tablet","tablet3d","phone"],ye=function(Be,ft){if(Ge=Be,ft){vt(Ge,!0);return}var ot=!ge;if(ot){var Xt=Oe(Ge);!isNaN(Xt)&&Xt<4.4&&(ot=!1)}var xt,wt;window.location.protocol.substr(0,4)==="http"?xt=window.location.protocol:xt="http:";var ht=Ge.indexOf("//");ht>0?wt=Ge:ht===0?wt=xt+Ge:wt="https://www.geogebra.org/apps/5.2.814.0/";for(var un in Ie)if(Ge.slice(Ie[un].length*-1)===Ie[un]||Ge.slice((Ie[un].length+1)*-1)===Ie[un]+"/"){vt(wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ot&&!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")?wt+="webSimple/":wt+="web3d/",vt(wt,!1)},vt=function(Be,ft){if(Be.requirejs){We=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),We=Be,ft===null&&(ft=Be.indexOf("http")===-1),Te=ft,Ne="web.nocache.js",we=!1;var ot=We.split("/");ot.length>1&&(!ft&&ot[ot.length-2]==="webSimple"?(Ne="webSimple.nocache.js",we=!0):Ie.indexOf(ot[ot.length-2])>=0&&(Ne=ot[ot.length-2]+".nocache.js")),ot=Be.split("/"),Ge=ot[ot.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 Xt=parseFloat(Ge);Xt!==NaN&&Xt<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xt+" is deprecated. Using version latest instead."),ye("5.0",ft))},Ht=function(Be,ft){window.console&&window.console.log&&(!ft||typeof ft.showLogging=="undefined"||ft.showLogging&&ft.showLogging!=="false")&&console.log(Be)};E.material_id!==void 0?ct(Et):Et();function Et(){var Be=qt;Ee!==null?Be=Ee:parseFloat(Be)<5&&(Be="5.0"),ye(Be,!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,De,fe){var We=null;if(fe!=null&&fe!="")for(var Te=Se.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+fe+" ")>-1){We=Te;break}else Te=Te.parentNode;var dt=0,Ge=0,Ne=0,we=0,Pe=0,Fe=0,et=0;if(We)dt=We.offsetWidth,Ge=Math.max(ke?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(dt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ge=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=dt):(dt=window.innerWidth,Ge=window.innerHeight,Ne=window.innerWidth),Se){var St=Se.getBoundingClientRect();St.left>0&&St.left<=dt&&(De===void 0||!De)&&(document.dir==="rtl"?(Pe=dt-St.width-St.left,Fe=Ne<=480?10:30):(Fe=St.left,Pe=Ne<=480?10:30),we=Fe+Pe)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ae=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we=40,et=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(we=0,et=40)}}return Se&&((Ce===void 0||!Ce)&&Ee>0&&Ee+we<dt?dt=Ee:dt-=we,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce===void 0||!Ce)&&(Ge-=et)),{width:dt,height:Ge}}function y(Se,Ee,Ce,ke,De){if(Se.isScreenshoGenerator)return 1;var fe=ke!==void 0&&ke,We=Se.noScaleMargin!=null&&Se.noScaleMargin,Te=function(Ae){return Ae&&Ae!=="false"},dt=Te(Se.autoHeight),Ge=E(Ee,Se.width,Ce,dt,fe&&window.GGBT_wsf_view||We,De),Ne=parseInt(Ge.width),we=Se.width,Pe=Se.height;if(we===void 0){var Fe=Ee.querySelector(".appletParameters");Fe&&(we=Fe.offsetWidth,Pe=Fe.offsetHeight)}var et=Ne/we,St=fe?1:Ge.height/Pe;return Ce!==void 0&&!Ce&&(et=Math.min(1,et),St=Math.min(1,St)),Math.min(et,St)}function ge(Se,Ee,Ce){var ke=1,De,fe=!1;if(Se.hasOwnProperty("allowUpscale")&&(fe=Se.allowUpscale),Se.hasOwnProperty("scale")&&(ke=parseFloat(Se.scale),(isNaN(ke)||ke===null||ke===0)&&(ke=1),ke>1&&(fe=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))De=y(Se,Ee,fe,Ce,Se.scaleContainerClass);else return ke;return fe&&(!Se.hasOwnProperty("scale")||ke===1)?De:Math.min(ke,De)}function ce(Se){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),Ce=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=Se.getBoundingClientRect(),De=(Ee-ke.width)/2,fe=(Ce-ke.height)/2;fe<0&&(fe=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(De<40?Se.style.left="40px":Se.style.left=De+"px",Se.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?Se.style.top="40px":Se.style.top=fe+"px",Se.style.left=De+"px")}function _e(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 De=null,fe=0;fe<Se.childNodes.length;fe++)if(Se.childNodes[fe].className!==void 0&&Se.childNodes[fe].className.match(/^applet_scaler/)){De=Se.childNodes[fe];break}if(De!==null&&De.querySelector(".noscale")!==null)return;var We=Ee.id!==void 0?Ee.id:"ggbApplet",Te=window[We];(Te==null||!Te.recalculateEnvironments)&&De!==null&&!De.className.match(/fullscreen/)&&(De.parentNode.style.transform="",!isNaN(ke)&&ke!==1?(De.parentNode.style.width=Ee.width*ke+"px",De.parentNode.style.height=Ee.height*ke+"px",qt(De,ke)):(qt(De,1),De.parentNode.style.width=Ee.width+"px",De.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ce(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ce).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:Rn,positionCenter:ce,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 ce=y[ge];E[ce[O]]=ce[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 ce=ge();if(ce){y();return}function _e(){if(!ce){if(!ge())return;ce=!0,y(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var Se=setInterval(function(){_e()},$)}function E(y){var ge=u(),ce=ge.body,_e=ge.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=y,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),ce.appendChild(_e)}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 ce(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var _e=E();return _e==W&&(_e=y()),_e==W&&(_e=ge()),_e==W&&ce()&&(_e=Rn(o.location.href)),_e=qt(_e),_e}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 De in Ce)ke[Ce[De]]=De;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 ce;try{ce=Cb;var _e=ce.indexOf(Db);_e!=-1&&(qt=parseInt(ce.substring(_e+P),$),ce=ce.substring(O,_e))}catch(Se){}return webModule.__softPermutationId=qt,C(ce+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})()},60562:function(Rn,qt,E){"use strict";E.d(qt,{Ax:function(){return _e},Ds:function(){return Se},KI:function(){return Ce},SI:function(){return ce},f1:function(){return ge}});var y=E(58962);function ge(ke){let De=!0;if(ke.length>0){for(let fe=0;fe<ke.length;fe++)if(ke[fe].compile_success==0||!ke[fe].compile_success){De=!1;break}}else De=!1;return De}function ce(ke,De=""){let fe=[];for(let We=0;We<ke.length;We++){let Te=ke[We],dt=De?`${De}/${Te.name}`:`${Te.name}`;fe.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:dt})}return fe}function _e(ke,De,fe){for(let We=0;We<ke.length;We++){let Te=ke[We];if(Te.key===De){Te.children=fe;break}Te.children&&_e(Te.children,De,fe)}return ke}function Se(ke,De,fe){let We;return function(){let Te=this,dt=arguments,Ge=function(){We=null,fe||ke.apply(Te,dt)},Ne=fe&&!We;clearTimeout(We),We=setTimeout(Ge,De),Ne&&ke.apply(Te,dt)}}const Ee=!0,Ce=y.Z.API_SERVER},96194:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ge}});var y=E(7939),ge=E(59301),ce=Object.defineProperty,_e=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,De=(Ne,we,Pe)=>we in Ne?ce(Ne,we,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ne[we]=Pe,fe=(Ne,we)=>{for(var Pe in we||(we={}))Ce.call(we,Pe)&&De(Ne,Pe,we[Pe]);if(Ee)for(var Pe of Ee(we))ke.call(we,Pe)&&De(Ne,Pe,we[Pe]);return Ne},We=(Ne,we)=>_e(Ne,Se(we)),Te=(Ne,we)=>{var Pe={};for(var Fe in Ne)Ce.call(Ne,Fe)&&we.indexOf(Fe)<0&&(Pe[Fe]=Ne[Fe]);if(Ne!=null&&Ee)for(var Fe of Ee(Ne))we.indexOf(Fe)<0&&ke.call(Ne,Fe)&&(Pe[Fe]=Ne[Fe]);return Pe},dt=(Ne,we,Pe)=>new Promise((Fe,et)=>{var St=qe=>{try{Oe(Pe.next(qe))}catch(Je){et(Je)}},Ae=qe=>{try{Oe(Pe.throw(qe))}catch(Je){et(Je)}},Oe=qe=>qe.done?Fe(qe.value):Promise.resolve(qe.value).then(St,Ae);Oe((Pe=Pe.apply(Ne,we)).next())});const Ge=Ne=>{var we=Ne,{children:Pe}=we,Fe=Te(we,["children"]);const[et,St]=(0,ge.useState)(!1);return ge.createElement(y.ZP,We(fe({},Fe),{loading:et,onClick:Ae=>dt(void 0,null,function*(){try{St(!0),yield Fe.onClick(Ae),St(!1)}catch(Oe){console.error(Oe),St(!1)}})}),Pe)}},57:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return dt}});var y=E(59301),ge=E(6767),ce=E(37568),_e={codeBox:"codeBox___WpkVl"},Se=E(92310),Ee=E.n(Se),Ce=Object.defineProperty,ke=(Ge,Ne,we)=>Ne in Ge?Ce(Ge,Ne,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ge[Ne]=we,De=(Ge,Ne,we)=>ke(Ge,typeof Ne!="symbol"?Ne+"":Ne,we),fe=(Ge,Ne,we)=>new Promise((Pe,Fe)=>{var et=Oe=>{try{Ae(we.next(Oe))}catch(qe){Fe(qe)}},St=Oe=>{try{Ae(we.throw(Oe))}catch(qe){Fe(qe)}},Ae=Oe=>Oe.done?Pe(Oe.value):Promise.resolve(Oe.value).then(et,St);Ae((we=we.apply(Ge,Ne)).next())});class We extends y.Component{constructor(Ne){super(Ne),De(this,"canvas"),De(this,"randomNum",(we,Pe)=>Math.floor(Math.random()*(Pe-we)+we)),De(this,"drawPic",()=>{this.randomCode()}),De(this,"reloadPic",()=>{this.drawPic()}),De(this,"changeCode",we=>{console.log(we.target.value,222),this.setState({value:we.target.value,showError:!1})}),De(this,"onVerify",()=>{let we;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(we=!0,ge.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(we=!0,ge.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(we=!1),this.setState({showError:we}),we}),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,we){const Pe=this.randomNum(Ne,we),Fe=this.randomNum(Ne,we),et=this.randomNum(Ne,we);return`rgb(${Pe}, ${Fe}, ${et})`}drawText(Ne,we,Pe){Ne.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Fe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Ne.font=Fe+"px SimHei";const et=10,St=(this.state.contentWidth-40)/(this.state.code.length-1);let Ae=et;Pe>0&&(Ae=et+Pe*St);let Oe=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Fe>40&&(Oe=40);const qe=this.randomNum(-10,10);Ne.translate(Ae,Oe),Ne.rotate(qe*Math.PI/180),Ne.fillText(we,0,0),Ne.rotate(-qe*Math.PI/180),Ne.translate(-Ae,-Oe)}drawLine(Ne){for(let we=0;we<1;we++)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 we=0;we<100;we++)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 we="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Pe=0;Pe<this.state.codeLength;Pe++){const Fe=Math.floor(Math.random()*57);Ne+=we[Fe]}this.setState({code:Ne},()=>{const Fe=this.canvas.current.getContext("2d");Fe.textBaseline="bottom",Fe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Fe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let et=0;et<this.state.code.length;et++)this.drawText(Fe,this.state.code[et],et);this.drawLine(Fe),this.drawDot(Fe)})}render(){const{className:Ne,width:we=300}=this.props;return y.createElement("div",{className:Ee()(_e.codeBox,Ne),style:{width:we}},y.createElement("aside",null,y.createElement(ce.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 we;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:Pe=>we=Pe})),onOk:()=>fe(void 0,null,function*(){if(we.onVerify())return Promise.reject();Ge()})})};var dt=We},26018:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return De}});var y=E(59301),ge=E(37568),ce=E(96599),_e=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:dt,exerciseIsPublish:Ge,answers:Ne,activeOptionErrorIndex:we,flex:Pe="0 0 1000px"}=this.props;console.log("----",Ne);let{inputVisible:Fe,EditInputIndex:et}=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,et!==Ae?(St==null?void 0:St.length)>0?y.createElement(ce.default,{className:"edit-tag",key:St,closable:!(We===0&&Ae===0),onClose:Oe=>{Oe.preventDefault(),(Ne==null?void 0:Ne.length)===1&&Ae===0?this.props.deleteChildAnswermain(We,Ae):this.props.deleteChildAnswer(We,Ae)}},y.createElement("span",{onDoubleClick:Oe=>{this.setState({EditInputIndex:Ae}),Oe.preventDefault()}},St)):y.createElement(ge.default,{defaultValue:St,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Oe=>{if(Oe.target.value.replaceAll(" ","").length<=0){_e.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(We,Ae,Oe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):y.createElement(ge.default,{defaultValue:St,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Oe=>{if(Oe.target.value.replaceAll(" ","").length<=0){_e.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Te(We,Ae,Oe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Fe&&y.createElement(ce.default,{className:"site-tag-plus",onClick:()=>{dt(We),this.setState({inputVisible:!0})}},y.createElement(Ee.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var De=ke},98344:function(Rn,qt,E){"use strict";E.d(qt,{d4:function(){return dt},VP:function(){return De}});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 ce=({number:Ge,active:Ne,className:we})=>y.createElement("div",{className:`${ge.digitalLabel} ${Ne?ge.active:""} ${we}`},Ge);var _e=E(25399),Se=E(37568),Ee=E(6767),Ce=E(59301),ke=(Ge,Ne,we)=>new Promise((Pe,Fe)=>{var et=Oe=>{try{Ae(we.next(Oe))}catch(qe){Fe(qe)}},St=Oe=>{try{Ae(we.throw(Oe))}catch(qe){Fe(qe)}},Ae=Oe=>Oe.done?Pe(Oe.value):Promise.resolve(Oe.value).then(et,St);Ae((we=we.apply(Ge,Ne)).next())});const De=({defaultValue:Ge,onFinish:Ne})=>{const[we,Pe]=(0,y.useState)(!1),[Fe,et]=(0,y.useState)(Ge);return(0,y.useEffect)(()=>{et(Ge)},[Ge]),Ce.createElement("div",{className:ge.titleEditor},we?Ce.createElement(Se.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Fe,onChange:St=>{et(St.target.value)},onBlur:()=>ke(void 0,null,function*(){var St;if(((St=Fe==null?void 0:Fe.replaceAll(" ",""))==null?void 0:St.length)<=0){Ee.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ne(Fe))&&Pe(!1)}),onPressEnter:()=>ke(void 0,null,function*(){var St;if(((St=Fe==null?void 0:Fe.replaceAll(" ",""))==null?void 0:St.length)<=0){Ee.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Ne(Fe))&&Pe(!1)})}):Ce.createElement("div",{className:ge.title,onDoubleClick:()=>Pe(!0)},Fe,Ce.createElement(_e.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ce.createElement("i",{className:`${ge.editIcon} iconfont icon-bianji_Hover`,onClick:()=>Pe(!0)}))))};var fe=E(77019),We=E(5269),Te=(Ge,Ne,we)=>new Promise((Pe,Fe)=>{var et=Oe=>{try{Ae(we.next(Oe))}catch(qe){Fe(qe)}},St=Oe=>{try{Ae(we.throw(Oe))}catch(qe){Fe(qe)}},Ae=Oe=>Oe.done?Pe(Oe.value):Promise.resolve(Oe.value).then(et,St);Ae((we=we.apply(Ge,Ne)).next())});const dt=({onChange:Ge=()=>Te(void 0,null,function*(){}),tabs:Ne,activeKey:we,defaultActiveKey:Pe,className:Fe=""})=>{var et,St,Ae,Oe,qe,Je,ct;const[bt,st]=(0,y.useState)(Pe===void 0?(et=Ne[0])==null?void 0:et.key:Pe);return(0,y.useEffect)(()=>{we!==void 0&&st(we)},[we]),y.createElement(fe.Z,{justify:"center",align:"middle",className:`${ge.paperTab} ${Fe}`},y.createElement(We.Z,{className:`${ge.tabItem} ${bt===((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(ce,{number:1,active:bt===((Ae=Ne[0])==null?void 0:Ae.key),className:"mr10"}),y.createElement("span",null,(Oe=Ne[0])==null?void 0:Oe.label)),y.createElement(We.Z,{flex:"188px",className:`${ge.dottedLine} ml30 mr30`}),y.createElement(We.Z,{className:`${ge.tabItem} ${bt===((qe=Ne[1])==null?void 0:qe.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(ce,{number:2,active:bt===((Je=Ne[1])==null?void 0:Je.key),className:"mr10"}),y.createElement("span",null,(ct=Ne[1])==null?void 0:ct.label)))}},16628: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"},ce=E(32637),_e=E(59301),Ee=({type:Ce,style:ke})=>{const De=_e.createElement("div",{className:ge.wrap,onClick:fe=>{fe.preventDefault(),fe.stopPropagation()}},_e.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",_e.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"),_e.createElement("div",{className:ge.contact},_e.createElement("div",{className:ge.img},_e.createElement("img",{src:ce,width:"124px",height:"124px"})),_e.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return _e.createElement(y.Z,{content:De},_e.createElement("span",{className:ge.text,style:ke},"\u9AD8\u6D88\u8017"))}},95382: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"},ce=E(92310),_e=E.n(ce),Se=E(29787),Ee=E(2859),Ce=E(82875),ke=E(49411),De=(Te,dt,Ge)=>new Promise((Ne,we)=>{var Pe=St=>{try{et(Ge.next(St))}catch(Ae){we(Ae)}},Fe=St=>{try{et(Ge.throw(St))}catch(Ae){we(Ae)}},et=St=>St.done?Ne(St.value):Promise.resolve(St.value).then(Pe,Fe);et((Ge=Ge.apply(Te,dt)).next())}),We=({data:Te,className:dt,fullWidth:Ge,style:Ne={},onClose:we,onOk:Pe,showFullTools:Fe,noAssociationId:et})=>{const St=(0,y.useRef)(null),Ae=(0,y.useRef)(null),Oe=(0,y.useRef)(null),qe=(0,y.useRef)(null),[Je,ct]=(0,y.useState)(!1),[bt,st]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(Oe.current||(Oe.current=document.createElement("style"),document.head.appendChild(Oe.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),Oe.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&$e()):(document.body.removeAttribute("data-custom"),Oe.current&&(document.head.removeChild(Oe.current),Oe.current=null)),()=>{document.body.removeAttribute("data-custom"),Oe.current&&(document.head.removeChild(Oe.current),Oe.current=null)}),[Te==null?void 0:Te.visible]);const $e=()=>De(void 0,null,function*(){ct(!0),st("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,ke.ZJ)(Te==null?void 0:Te.src);St.current.src="",St.current.src=de,St.current.onload=function(){xe()},ct(!1),st("")}),pe=de=>De(void 0,null,function*(){ct(!0),st("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ct=yield(0,Ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:de.dataUrl}});Ct!=null&&Ct.id&&!et?(yield(0,Ce.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ct==null?void 0:Ct.id,settings:JSON.stringify(de.state)}})).status===0&&Pe():Ct!=null&&Ct.id&&Pe(Ct),ct(!1),st("")}),Le=()=>{const de=document.querySelector('a[href="https://markerjs.com/"]');de&&de.parentNode&&(de.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=qe.current,Ae.current.addEventListener("render",pe),Ae.current.addEventListener("beforeclose",we),Fe&&(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:Je,tip:bt,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:qe,className:_e()(ge.imageDimensions,dt,Ge?ge.fullWidth:""),style:Ne},y.createElement("img",{className:ge.img,ref:St}))))}},17761:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(76591),ce=E(48136),_e=E(58629),Se=E(62957),Ee=E(59301);const Ce=(0,y.forwardRef)(({callback:ke,width:De,onChange:fe,disabled:We,readOnly:Te,type:dt="",value:Ge="",style:Ne={}},we)=>{const Pe=(0,y.useRef)(),Fe=(0,y.useRef)(),[et,St]=(0,y.useState)(0),[Ae,Oe]=(0,y.useState)(0),[qe,Je]=(0,y.useState)(!1),ct=()=>{var pe=document.createElement("div");pe.innerHTML=Pe.current.getValue();var Le=pe.innerText;return ke&&ke(Le),Le};(0,y.useImperativeHandle)(we,()=>({getData:ct}));const bt=pe=>{pe.preventDefault();const Le=pe.clientX-et,xe=pe.clientY-Ae;document.body.onmousemove=de=>{let Ct=de.clientX-Le,Ye=de.clientY-xe;const je=document.getElementsByClassName("markdown-popup-form")[0],it=window.innerWidth-je.offsetWidth,Ie=window.innerHeight-je.offsetHeight;Ct=Math.max(0,Math.min(Ct,it)),Ye=Math.max(0,Math.min(Ye,Ie)),st(de.clientX,de.clientY,Le,xe)&&(St(Ct),Oe(Ye))},document.body.onmouseup=function(){document.body.onmousemove=null}},st=(pe,Le,xe,de)=>{const Ct=document.body.clientHeight,Ye=document.body.clientWidth;return pe<20&&xe>pe||pe>Ye-20&&xe<pe||Le<20&&de>Le||Le>Ct-20&&de<Le?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,y.useEffect)(()=>{qe&&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),Oe(xe)},0)},[qe]);const $e=()=>{We||Te||Je(!0)};return Ee.createElement("div",{style:Ne},Ee.createElement("div",{style:{width:De||"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} ${dt}`,readOnly:Te,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Pe,style:{width:"100%",fontSize:Ge?18:14},value:Ge||""})),Ee.createElement(Se.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:et,top:Ae},title:Ee.createElement("div",{style:{cursor:"move"},onMouseDown:bt},"\u8F93\u5165\u516C\u5F0F"),open:qe,onOk:()=>{const pe=Fe.current.getData();Pe.current.setValue(pe),fe(pe),Je(!1)},onCancel:()=>{Je(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ee.createElement(_e.Z,{value:Ge,ref:Fe,onChange:fe,showSaveButton:!1})))});qt.Z=Ce},58629:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(77019),ce=E(5269),_e=E(31691),Se=E(7939),Ee=E(75363),Ce=E(76591),ke=E(48136),De=E(59301);const fe=(0,y.forwardRef)(({callback:We,showSaveButton:Te,value:dt=""},Ge)=>{const Ne=(0,y.useRef)(),we=[{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 "}]}]}],Pe=[{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}`}]}]}],Fe=Ae=>{Ne.current.setValue(Ne.current.getValue()+" "+Ae.value+" ")},et=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:De.createElement(ge.Z,{className:Ce.Z.lists,gutter:[10,10]},we.map((Ae,Oe)=>De.createElement(ce.Z,{flex:"110px",className:Ce.Z.item},De.createElement("div",null,De.createElement(Ee.Z,{value:`$$${Ae.value}$$`}),Ae.name),De.createElement("div",{className:Ce.Z.children},Ae.children.map((qe,Je)=>De.createElement("div",{key:Je},De.createElement("h1",null,qe.name),De.createElement(ge.Z,{gutter:[10,10]},qe.data.map((ct,bt)=>De.createElement(ce.Z,{key:bt,onClick:()=>Fe(ct),className:Ce.Z.diamond},De.createElement(Ee.Z,{value:"`$$"+ct.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:De.createElement(ge.Z,{className:Ce.Z.lists,gutter:[10,10]},Pe.map((Ae,Oe)=>De.createElement(ce.Z,{flex:"110px",className:Ce.Z.item},De.createElement("div",null,De.createElement(Ee.Z,{value:"`$$"+Ae.value+"$$`"}),Ae.name),De.createElement("div",{className:Ce.Z.children},Ae.children.map((qe,Je)=>De.createElement("div",{key:Je},qe.name&&De.createElement("h1",null,qe.name),De.createElement(ge.Z,{gutter:[10,10]},qe.data.map((ct,bt)=>De.createElement(ce.Z,{key:bt,onClick:()=>Fe(ct),className:Ce.Z.diamond},De.createElement(Ee.Z,{value:"`$$"+ct.value+"$$`"}))))))))))}],St=()=>{var Ae=document.createElement("div");Ae.innerHTML=Ne.current.getValue();var Oe=Ae.innerText;return We&&We(Oe),Oe};return(0,y.useImperativeHandle)(Ge,()=>({getData:St})),De.createElement("div",{className:Ce.Z.mathWrap},De.createElement(_e.default,{defaultActiveKey:"1",items:et}),De.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}},dt||""),Te&&De.createElement("div",{className:Ce.Z.button},De.createElement(Se.ZP,{size:"large",onClick:St,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});qt.Z=fe},40412:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(93314),ce=E(7939),_e=Object.defineProperty,Se=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,fe=(Ge,Ne,we)=>Ne in Ge?_e(Ge,Ne,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ge[Ne]=we,We=(Ge,Ne)=>{for(var we in Ne||(Ne={}))ke.call(Ne,we)&&fe(Ge,we,Ne[we]);if(Ce)for(var we of Ce(Ne))De.call(Ne,we)&&fe(Ge,we,Ne[we]);return Ge},Te=(Ge,Ne)=>Se(Ge,Ee(Ne));const dt=({img:Ge,buttonProps:Ne={},styles:we={},customText:Pe,ButtonText:Fe,ButtonClick:et,Buttonclass:St,ButtonTwo:Ae,imgStyles:Oe,loading:qe=!1,className:Je=""})=>y.createElement("section",{className:`tc animated fadeIn ${Je}`,style:We({color:"#999",margin:"100px auto",visibility:qe?"hidden":"visible"},we)},y.createElement("img",{src:Ge||ge,style:Te(We({},Oe),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},Pe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Fe&&y.createElement(ce.ZP,We({className:St,onClick:et},Ne),Fe),Ae&&Ae);qt.Z=dt},42576: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"},ce=E(7939),_e=E(70557),Se=E(28444),Ee=E(25399),Ce=E(49411),ke=E(17611),De=E(40412),fe=E(58962),We=E(99357),Te=E(59301),dt=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Pe=(Ae,Oe,qe)=>Oe in Ae?dt(Ae,Oe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ae[Oe]=qe,Fe=(Ae,Oe)=>{for(var qe in Oe||(Oe={}))Ne.call(Oe,qe)&&Pe(Ae,qe,Oe[qe]);if(Ge)for(var qe of Ge(Oe))we.call(Oe,qe)&&Pe(Ae,qe,Oe[qe]);return Ae},et=(Ae,Oe,qe)=>new Promise((Je,ct)=>{var bt=pe=>{try{$e(qe.next(pe))}catch(Le){ct(Le)}},st=pe=>{try{$e(qe.throw(pe))}catch(Le){ct(Le)}},$e=pe=>pe.done?Je(pe.value):Promise.resolve(pe.value).then(bt,st);$e((qe=qe.apply(Ae,Oe)).next())}),St=({editOffice:Ae="view",data:Oe,issaver:qe,onSaver:Je,theme:ct,type:bt,filename:st,monacoEditor:$e,className:pe,style:Le,close:xe,onClose:de,hasMask:Ct,disabledDownload:Ye,onImgDimensions:je,showNodata:it,recordInfo:Ie})=>{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"),[Ht,Et]=(0,y.useState)(""),[Be,ft]=(0,y.useState)(),ot=window.ENV==="build"?"/react/build":"",Xt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,wt=10*(1024*1024),ht=(0,y.useRef)();Oe!=null&&Oe.startsWith("/api")&&bt!=="txt"&&(Oe=fe.Z.API_SERVER+Oe);const un=he=>he.substring(he.lastIndexOf("/")+1).split(".").pop();st&&$e&&($e.filename=st),(0,y.useEffect)(()=>{var he,ie;const me=(ie=(he=document.cookie)==null?void 0:he.replace(/\s/g,""))==null?void 0:ie.split(";");me==null||me.map(He=>{let It=He.split("=");It[0]==="_educoder_session"&&Et(It[1])})},[]),(0,y.useEffect)(()=>{bt==="office"&&(Oe.indexOf("bigfilescdn.")>-1||Oe.indexOf("bigfiles1")>-1?ft({url:Oe,fileType:un(Oe),model:Oe.indexOf("model=edit")?"edit":"view"}):Oe.indexOf("coze")>-1?ft({url:Oe,fileType:"doc",model:"view"}):ue())},[bt,Oe]);function zt(he){return et(this,null,function*(){he.data.type==="pdfdata"&&(Je(he.data.data),window.removeEventListener("message",zt,!1)),console.log("mess---:",he.data)})}const ue=()=>et(void 0,null,function*(){console.log("data:",Oe);let he=Oe;Oe.startsWith("http")||(he=location.origin+he);let ie=new URL(he).pathname.split("/").pop();const me=yield(0,ke.gJ)({attachment_id:ie});me.url=Xt+me.url,ft(me)}),ae=()=>{if(Oe.startsWith("http")||Oe.startsWith("blob:")){re();return}(0,Ce.Sv)(st||"educoder",Oe,st)},re=()=>{Ie&&(0,We.fc)({id:Ie==null?void 0:Ie.id,watch_type:1,course_id:Ie==null?void 0:Ie.course_id}),(0,Ce.Nd)(st||"educoder",decodeURIComponent(Oe))};(0,y.useEffect)(()=>(window.addEventListener("message",se),()=>{window.removeEventListener("message",se)}),[]);const se=he=>{var ie;((ie=he==null?void 0:he.data)==null?void 0:ie.type)==="closePop"&&de()};return Te.createElement("div",{style:Fe({},Le||{}),className:`${Ct&&ge.bgBlack} ${bt?ge.wrp:"hide"}`},!!bt&&xe&&Te.createElement("div",{id:"closePop",className:ge.close,ref:ht},!!je&&Te.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ht.current},Te.createElement("span",{onClick:()=>{de(),je()}},Te.createElement("i",{className:"icon-yulanpizhu"}))),!Ye&&window.parent===window&&Te.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ht.current},Te.createElement("span",{onClick:re},Te.createElement("i",{className:"icon-quxiaozhiding"}))),qe&&Te.createElement(Ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ht.current},Te.createElement("span",{className:"",onClick:()=>{const he=document.getElementById("pdfiframe");window.addEventListener("message",zt,!1),setTimeout(()=>{he.contentWindow.postMessage("getData","*")},300)}},Te.createElement("i",{className:"icon-baocun"}))),Te.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ht.current},Te.createElement("span",{className:"",onClick:()=>{de()}},Te.createElement("i",{className:"icon-guanbi1"})))),Te.createElement("div",{className:`${ge[pe]} ${pe} ${ge.monaco} ${bt==="txt"?"show":"hide"}`},bt==="txt"&&Te.createElement(Te.Fragment,null,Te.createElement(Se.ZP,Fe({},$e)))),bt==="audio"&&Te.createElement("audio",{controls:!0,src:`${(Oe==null?void 0:Oe.indexOf("http://"))>-1||(Oe==null?void 0:Oe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Oe}`,autoPlay:!0}),bt==="video"&&Te.createElement(Te.Fragment,null,(Oe==null?void 0:Oe.indexOf("http"))>-1?Te.createElement("video",{controls:!0,src:`${Oe}`,autoPlay:!0}):Te.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Oe}`,autoPlay:!0})),bt==="office"&&Be&&Te.createElement("iframe",{src:`${ot}/office.html?key=${Be.key}&url=${btoa(Be.url)}&callbackUrl=${Xt+(Be.callbackUrl||"")}&fileType=${Be.fileType}&title=${Be.title||""}&model=${Ae}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Ye}`}),bt==="html"&&Te.createElement("iframe",{src:Oe+"&disposition=inline"}),bt==="pdf"&&Te.createElement("iframe",{id:"pdfiframe",src:`${ot}/js/pdf/index.html?filename=${st||"educoder.pdf"}&url=${encodeURIComponent(Oe)}&disabledDownload=${!!Ye}&model=${Ae}`}),bt==="image"&&Te.createElement("img",{src:`${(Oe==null?void 0:Oe.indexOf("http://"))>-1||(Oe==null?void 0:Oe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Oe}`}),(bt==="other"||bt==="download")&&Te.createElement(Te.Fragment,null,it?Te.createElement(De.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Te.createElement(ce.ZP,{icon:Te.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ae,disabled:Ye},"\u4E0B\u8F7D")}):Te.createElement(ce.ZP,{type:"primary",size:"middle",onClick:ae,disabled:Ye},Te.createElement(_e.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),bt==="flowChart"&&Te.createElement("div",{className:"embed"},Te.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Oe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},46912:function(Rn,qt,E){"use strict";E.d(qt,{t:function(){return He}});var y=E(59301),ge=E(37568),ce=E(8848),_e=E(28284),Se=E(62957),Ee=E(77019),Ce=E(5269),ke=E(4875),De=E(82326),fe=E(47889),We=E(7939),Te=E(93725),dt=E(67522),Ge=E(73635),Ne=E(32783),we=E(6767),Pe=E(29787),Fe=E(24334),et={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(82875),Ae=E(10170),Oe=E(46195),qe=E(56102),Je=E(77018),ct=E(59301),bt=Object.defineProperty,st=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,de=(It,Xe,Ke)=>Xe in It?bt(It,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):It[Xe]=Ke,Ct=(It,Xe)=>{for(var Ke in Xe||(Xe={}))Le.call(Xe,Ke)&&de(It,Ke,Xe[Ke]);if(pe)for(var Ke of pe(Xe))xe.call(Xe,Ke)&&de(It,Ke,Xe[Ke]);return It},Ye=(It,Xe)=>st(It,$e(Xe)),je=(It,Xe,Ke)=>new Promise((yt,Bt)=>{var _t=Vt=>{try{tt(Ke.next(Vt))}catch(on){Bt(on)}},Qe=Vt=>{try{tt(Ke.throw(Vt))}catch(on){Bt(on)}},tt=Vt=>Vt.done?yt(Vt.value):Promise.resolve(Vt.value).then(_t,Qe);tt((Ke=Ke.apply(It,Xe)).next())}),Ie=({buttonProps:It,buttonText:Xe,form:Ke,hackIdentifier:yt="",answerKey:Bt,data:_t})=>{const[Qe,tt]=(0,y.useState)(!1),[Vt,on]=(0,y.useState)(!1),[Fn,gn]=(0,y.useState)(!1),[Lt,Qt]=(0,y.useState)({}),[jt,rt]=(0,y.useState)(""),[Nt,fn]=(0,y.useState)(""),yn=(0,y.useRef)(yt),lt=(0,y.useRef)(""),Rt=(0,y.useRef)(!1);(0,y.useEffect)(()=>{Fn&&Gt()},[Fn]),(0,y.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const en=()=>new Date().getTime(),Pt=_t==null?void 0:_t.code,Yt=()=>{var Dn,Zn,Ot;let Wt=Pt?_t==null?void 0:_t.code:(Dn=Ke.getFieldValue("hack_codes"))==null?void 0:Dn.code,ln=Pt?_t==null?void 0:_t.answer_content:Ke.getFieldValue(Bt),bn=Pt?_t==null?void 0:_t.input:(Ot=(Zn=Ke.getFieldValue("hack_sets"))==null?void 0:Zn[0])==null?void 0:Ot.input;ln==null||ln.forEach(tn=>{const wn=tn.value||tn.answer_text||"";Wt=Wt.replace(/(@▁@|@▁▁@)/,wn)}),fn(bn),rt(Wt),Qt({}),gn(!0)},Gt=()=>je(void 0,null,function*(){var Dn,Zn,Ot,Wt;const ln=en(),bn=Pt?_t==null?void 0:_t.time_limit:(Dn=Ke.getFieldsValue())==null?void 0:Dn.hack.time_limit,tn=Pt?(Zn=_t==null?void 0:_t.answer_content)==null?void 0:Zn.length:(Wt=(Ot=Ke.getFieldsValue())==null?void 0:Ot.standard_answers)==null?void 0:Wt.length;tt(!0),yield(0,Ae.bM)(lt.current,{test_hack_code:jt,test_input:Nt});function wn(){return je(this,null,function*(){const{status:Cn,data:Pn}=yield(0,Ae.rX)(lt.current,"submit"),Qn=en()-ln>(bn+3)*1e3*tn;if(Rt.current){if(Qn){we.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),tt(!1);return}if(Cn===0){tt(!1),Qt(Ye(Ct({},Pn),{showText:!0}));return}setTimeout(wn,1e3)}})}wn()}),Sn=()=>je(void 0,null,function*(){var Dn,Zn,Ot,Wt,ln,bn,tn;if(!_t){try{yield Ke.validateFields()}catch(vr){(Ot=(Zn=(Dn=vr==null?void 0:vr.errorFields)==null?void 0:Dn[0])==null?void 0:Zn.name)!=null&&Ot.includes("standard_answers")?we.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):we.ZP.error(vr.errorFields[0].errors[0]),Ke.scrollToField(vr.errorFields[0].name,{behavior:"smooth",block:"center"});return}on(!0);let Cn="";const Pn=Ke.getFieldsValue();yn.current?Cn=yield(0,St.ZP)(`/api/problems/${yn.current}.json`,{method:"put",body:Ye(Ct({},Pn),{hack:Ye(Ct({},Pn==null?void 0:Pn.hack),{sub_discipline_id:(tn=(bn=Pn==null?void 0:Pn.hack)==null?void 0:bn.sub_discipline_id)==null?void 0:tn[1],difficult:Pn.difficulty,item_banks_group_id:Pn.item_banks_group_id}),hack_codes:Ye(Ct({},Pn.hack_codes),{code:Fe.Base64.encode(Pn.hack_codes.code)}),update_hack_sets:Pn.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}):(Cn=yield(0,St.ZP)("/api/problems.json",{method:"post",body:Ye(Ct({},Pn),{hack:Ye(Ct({},Pn==null?void 0:Pn.hack),{sub_discipline_id:(ln=(Wt=Pn==null?void 0:Pn.hack)==null?void 0:Wt.sub_discipline_id)==null?void 0:ln[1],difficult:Pn.difficulty,item_banks_group_id:Pn.item_banks_group_id}),hack_codes:Ye(Ct({},Pn.hack_codes),{code:Fe.Base64.encode(Pn.hack_codes.code)}),hack_sets:Pn.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}),yn.current=Cn==null?void 0:Cn.identifier,sessionStorage.projectFill=Cn==null?void 0:Cn.identifier)}const wn=yield(0,St.ZP)(`/api/problems/${yn.current}/start.json`,{method:"get"});if((wn==null?void 0:wn.status)===0){lt.current=wn==null?void 0:wn.identifier,Rt.current=!0,on(!1),Yt();return}on(!1)}),jn=Dn=>{const{status:Zn,error_msg:Ot,execute_time:Wt,output:ln,input:bn,expected_output:tn}=Dn;let wn=null;switch(Zn){case Je.h.OK:wn=ct.createElement(ct.Fragment,null,ct.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Wt/1e3,"\u79D2"),ct.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Je.h.NOMATCH:wn=ct.createElement(ct.Fragment,null,ct.createElement("div",null,"\u8F93\u5165\uFF1A"),ct.createElement("pre",{style:{fontFamily:"initial"}},bn),ct.createElement("div",null,"\u8F93\u51FA\uFF1A"),ct.createElement("pre",{style:{fontFamily:"initial"}},ln&&Fe.Base64.decode(ln)),ct.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ct.createElement("pre",{style:{fontFamily:"initial"}},tn&&Fe.Base64.decode(tn)));break;case Je.h.EXECUTEFAILURE:wn=ct.createElement(ct.Fragment,null,ct.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ct.createElement("pre",null,bn)),ct.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ct.createElement("pre",{className:"error"},Fe.Base64.decode(Ot)));break;case Je.h.COMPILEFAILURE:wn=ct.createElement(ct.Fragment,null,ct.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ct.createElement("pre",null,bn)),ct.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ct.createElement("pre",{className:"error"},Fe.Base64.decode(Ot)));break;case Je.h.PODFAILURE:wn=ct.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Je.h.TIMEOUT:wn=ct.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ct.createElement(ct.Fragment,null," ",wn," ")};return ct.createElement("div",null,ct.createElement(We.ZP,Ye(Ct({loading:Vt},It),{onClick:Sn}),Xe),ct.createElement(Se.default,{open:Fn,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Qe,cancelButtonProps:{style:{display:"none"}},onOk:()=>Gt(),onCancel:()=>{Rt.current=!1,gn(!1)}},ct.createElement("div",{className:et.result},ct.createElement("div",{className:et.left},ct.createElement("div",{className:"mb20"},ct.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!_t&&ct.createElement(qe.CopyToClipboard,{text:jt,onCopy:()=>we.ZP.success("\u590D\u5236\u6210\u529F")},ct.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ct.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ct.createElement(Oe.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:jt,onChange:Dn=>rt(Dn)})),ct.createElement("div",{className:et.right},ct.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B ",ct.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")),ct.createElement("div",{className:et.box},ct.createElement("div",{className:et.li},ct.createElement(ge.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Nt,onChange:Dn=>fn(Dn.target.value),bordered:!1,style:{height:180}}))),ct.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ct.createElement("div",{className:et.box},ct.createElement(Pe.Z,{spinning:Qe,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ct.createElement("div",{className:et.li,style:{height:196,overflow:"auto",padding:10}},jn(Lt))))))))},ye=E(87169),vt=E(32134),Ht=E(12893),Et=E(59301),Be=Object.defineProperty,ft=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Xt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ht=(It,Xe,Ke)=>Xe in It?Be(It,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):It[Xe]=Ke,un=(It,Xe)=>{for(var Ke in Xe||(Xe={}))xt.call(Xe,Ke)&&ht(It,Ke,Xe[Ke]);if(Xt)for(var Ke of Xt(Xe))wt.call(Xe,Ke)&&ht(It,Ke,Xe[Ke]);return It},zt=(It,Xe)=>ft(It,ot(Xe)),ue=(It,Xe)=>{var Ke={};for(var yt in It)xt.call(It,yt)&&Xe.indexOf(yt)<0&&(Ke[yt]=It[yt]);if(It!=null&&Xt)for(var yt of Xt(It))Xe.indexOf(yt)<0&&wt.call(It,yt)&&(Ke[yt]=It[yt]);return Ke};const{TextArea:ae}=ge.default,{Panel:re}=ce.default,se=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],he=({value:It,onChange:Xe})=>Et.createElement(Switch,{checked:It,onChange:Ke=>{Xe(Ke)}}),ie="@\u2581@",me="@\u2581\u2581@",He=({questionTitlePlaceholder:It,form:Xe,scoreByBlank:Ke=!1,hackidentifier:yt,answerKey:Bt})=>{const[_t,Qe]=(0,y.useState)(!1),[tt,Vt]=(0,y.useState)(!1),Fn=(0,Ge.useParams)().type==="edit",[gn,Lt]=(0,y.useState)(0),Qt=(Gt,Sn)=>{const jn=Sn.line;let Dn=0;for(let Ot=0;Ot<jn;Ot++)Dn+=Gt.getLine(Ot).split(ie).length-1;for(let Ot=0;Ot<jn;Ot++)Dn+=Gt.getLine(Ot).split(me).length-1;const Zn=Gt.getLine(jn).substring(0,Sn.ch);return Dn+=Zn.split(ie).length-1,Dn+=Zn.split(me).length-1,Dn},jt=(Gt,Sn,jn,Dn)=>{const Zn=Gt.getRange(Sn.from,Sn.to);let Ot=0;if(Sn.text.forEach(Wt=>{Ot+=Wt.split(ie).length-1}),Sn.text.forEach(Wt=>{Ot+=Wt.split(me).length-1}),Sn.origin!=="setValue"){if(Zn&&(Zn.indexOf(ie)!==-1||Zn.indexOf(me)!==-1)){const Wt=Zn.split(ie).length-1+Zn.split(me).length-1,ln=Qt(Gt,Sn.from);if(console.log(`\u5220\u9664${Wt}\u4E2A\uFF0C \u524D\u9762\u6709${ln}\u4E2A\uFF0C\u65B0\u589E${Ot}\u4E2A`),Wt>1){const bn=Array.from({length:Wt},(tn,wn)=>ln+wn);Dn(bn)}else Dn(ln)}else if(Ot>0){const Wt=Qt(Gt,Sn.from);console.log(`\u65B0\u589E${Ot}\u4E2A\uFF0C\u4E4B\u524D\u6709${Wt}\u4E2A`),jn(Ot,Wt)}}},rt=()=>{const Gt=Xe.getFieldValue(Bt);Xe.setFieldsValue({[Bt]:Gt==null?void 0:Gt.map((Sn,jn)=>zt(un({},Sn),{position:jn+1}))})},Nt=(0,y.useRef)(),fn=(Gt,Sn)=>{for(let jn=0;jn<Gt;jn++)Nt.current({position:null,answer_text:""},Sn+jn);rt()},yn=(0,y.useRef)(),lt=Gt=>{yn.current(Gt),rt()};function Rt(Gt){Gt.stopPropagation()}const en=_e.default.useWatch(Bt,Xe);function Pt(){let Gt=Xe.getFieldValue("hack_sets"),Sn=parseInt(Xe.getFieldValue("hack").code_compile_score)||0;const jn=Gt.length+1;Gt.map((Dn,Zn)=>(Dn.position=Zn+1,Dn)),Gt.push({input:"",output:"",position:jn}),Xe.setFieldsValue({hack_sets:Gt}),Lt(Gt.length-1)}function Yt(Gt){let Sn=Xe.getFieldValue("hack_sets"),jn=parseInt(Xe.getFieldValue("hack").code_compile_score)||0;const Dn=(Sn==null?void 0:Sn.length)-1;Sn.splice(Gt,1),Sn==null||Sn.map((Zn,Ot)=>(Zn.position=Ot+1,Zn)),Xe.setFieldsValue({hack_sets:Sn})}return Et.createElement("div",{className:Ne.Z.wrap},Et.createElement(_e.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Et.createElement(dt.h,{scrollId:"name",watch:!0,height:140})),Et.createElement("div",{className:Ne.Z.questionTitleEditorWrap},Et.createElement(_e.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Et.createElement(dt.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Gt,Sn)=>{const jn=Xe.getFieldValue(Bt);console.log("--preAnswerData",jn,Sn),Xe.setFieldsValue({[Bt]:jn==null?void 0:jn.map((Dn,Zn)=>{var Ot;return zt(un({},Dn),{position:Zn+1,multi_line:(Ot=Sn==null?void 0:Sn[Zn])==null?void 0:Ot.multiLine})})})},placeholder:It,onCMBeforeChange:(Gt,Sn)=>{jt(Gt,Sn,fn,lt)}}))),Et.createElement(_e.default.List,{name:Bt,rules:[{validator(Gt,Sn){if(!(Sn!=null&&Sn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const jn of Sn){const{answer_text:Dn}=jn||{};if((Dn==null?void 0:Dn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Gt,{add:Sn,remove:jn},{errors:Dn})=>(Nt.current=Sn,yn.current=jn,Et.createElement(Et.Fragment,null,Et.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Et.createElement(_e.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Et.createElement("div",{onClick:()=>{Se.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Et.createElement("div",null,Et.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Et.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Et.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"}},Et.createElement(ye.Z,{style:{marginRight:3,color:"#3061D0"}}),Et.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Gt.map((Zn,Ot)=>{var Wt=Zn,{key:ln,name:bn}=Wt,tn=ue(Wt,["key","name"]),wn,Cn;return Et.createElement(Ee.Z,{className:"mb20",key:ln,align:"middle",wrap:!1},Et.createElement(Ce.Z,{flex:"0 0 auto",className:`${Ne.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ot+1),Et.createElement(Ce.Z,{flex:1},Et.createElement(Ee.Z,{align:"top",justify:"space-between",wrap:!1},Et.createElement(Ce.Z,null,Et.createElement(_e.default.Item,zt(un({},tn),{name:[bn,"answer_text"],noStyle:!0}),(wn=en==null?void 0:en[bn])!=null&&wn.multi_line||(Cn=en==null?void 0:en[bn])!=null&&Cn.multiLine?Et.createElement(ae,{spellCheck:!1,style:{marginLeft:10,width:550}}):Et.createElement(ge.default,{style:{marginLeft:10,width:550},className:Ne.Z.blankInput,size:"large",maxLength:1e3,onBlur:Pn=>{}}))),Ke&&Et.createElement(Ce.Z,{flex:"224px"},Et.createElement(_e.default.Item,zt(un({},tn),{name:[bn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Et.createElement(ke.Z,{size:"large",className:Ne.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Et.createElement("div",{onClick:()=>Qe(!0)},Et.createElement(_e.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Et.createElement(dt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:_t}))),Et.createElement(_e.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"}]},Et.createElement(De.default,{size:"large"},se.map(Gt=>Et.createElement(De.default.Option,{key:Gt.title,value:Gt.key}," ",Gt.title)))),Et.createElement(_e.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Et.createElement(_e.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},Et.createElement(ke.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Et.createElement("span",{className:"ml10 font14"},"\u79D2")),Et.createElement(_e.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"}]},Et.createElement(fe.ZP.Group,{style:{marginTop:-10}},Et.createElement(fe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Et.createElement(fe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Et.createElement(fe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Et.createElement(_e.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}},Et.createElement(We.ZP,{className:"mr20",type:"primary",onClick:Pt},"\u6DFB\u52A0")),Et.createElement("div",{style:{padding:15}},Et.createElement(_e.default.List,{name:"hack_sets"},(Gt,{})=>Et.createElement(ce.default,{accordion:!0,bordered:!1,activeKey:gn,onChange:Lt,className:Ne.Z.collapseWrapper,expandIcon:({isActive:Sn})=>Et.createElement("i",{className:`iconfont icon-weizhankai ${Sn?Ne.Z.open:Ne.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Gt.map((Sn,jn)=>Et.createElement(re,{key:Sn.key,id:`scroll-key-${Sn.key}`,header:Et.createElement(Ee.Z,{align:"middle",justify:"space-between",wrap:!1},Et.createElement(Ce.Z,{className:Ne.Z.panelHeader},Et.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",jn+1)),Et.createElement(Ce.Z,{flex:1},Et.createElement(Ee.Z,{align:"middle",justify:"end",wrap:!1},Et.createElement(Ce.Z,{flex:"78px",className:Ne.Z.operationWrapper},jn>0&&Et.createElement(Et.Fragment,null,Et.createElement(vt.Z,{className:Ne.Z.add,onClick:Dn=>{Rt(Dn),Pt()}}),Et.createElement(Te.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6"+(jn+1),onCancel:Rt,onConfirm:Dn=>{Rt(Dn),Yt(jn)}},Et.createElement(Ht.Z,{className:`${Ne.Z.remove} ml20`,onClick:Rt})))))))},Et.createElement(_e.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:[Sn.name,"input"]},Et.createElement(ae,{rows:4})),Et.createElement(_e.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:[Sn.name,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Et.createElement(ae,{rows:4}))))))),Et.createElement(Ie,{form:Xe,answerKey:Bt,hackIdentifier:yt,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Et.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"}}}))}},77072:function(Rn,qt,E){"use strict";E.d(qt,{u:function(){return qe}});var y=E(59301),ge=E(77019),ce=E(5269),_e=E(25399),Se=E(28284),Ee=E(32783),Ce=E(32134),ke=E(12893),De=E(67522),fe=E(59301),We=Object.defineProperty,Te=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Pe=(Je,ct,bt)=>ct in Je?We(Je,ct,{enumerable:!0,configurable:!0,writable:!0,value:bt}):Je[ct]=bt,Fe=(Je,ct)=>{for(var bt in ct||(ct={}))Ne.call(ct,bt)&&Pe(Je,bt,ct[bt]);if(Ge)for(var bt of Ge(ct))we.call(ct,bt)&&Pe(Je,bt,ct[bt]);return Je},et=(Je,ct)=>Te(Je,dt(ct)),St=(Je,ct)=>{var bt={};for(var st in Je)Ne.call(Je,st)&&ct.indexOf(st)<0&&(bt[st]=Je[st]);if(Je!=null&&Ge)for(var st of Ge(Je))ct.indexOf(st)<0&&we.call(Je,st)&&(bt[st]=Je[st]);return bt};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"],Oe=({value:Je,onChange:ct,choiceTextKey:bt,answerKey:st,index:$e,isEdit:pe,setInputActive:Le,form:xe,choiceOptionsPath:de,allowChangeMode:Ct,showAddIcon:Ye,addItem:je,deleteItem:it})=>{console.log(Je,"value");const Ie=(Je==null?void 0:Je[st])===1,ye=()=>{const Ht=xe.getFieldValue(de);xe.setFieldValue(de,Ht.map(Et=>et(Fe({},Et),{[st]:0})))},vt=()=>{Ie?ct(et(Fe({},Je),{[st]:0})):(Ct||ye(),ct(et(Fe({},Je),{[st]:1})))};return fe.createElement(ge.Z,{className:Ee.Z.choiceWrap,align:"middle",wrap:!1},fe.createElement(ce.Z,{onClick:vt,className:`${Ee.Z.choiceIndex} ${Ie?Ee.Z.activeAnswer:""}`},Ae[$e]),fe.createElement(ce.Z,{flex:1,className:`${Ee.Z.editorWrap} ml15`,onClick:Le},fe.createElement(De.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:pe,value:Je==null?void 0:Je[bt],onChange:Ht=>{ct(et(Fe({},Je),{[bt]:Ht}))}})),fe.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},fe.createElement("div",{onClick:vt,className:`${Ee.Z.setAnswerBtn} ${Ie?Ee.Z.activeAnswer:""}`},Ie?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),fe.createElement(ce.Z,{className:Ee.Z.actionWrapper},fe.createElement(_e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},fe.createElement(Ce.Z,{className:Ee.Z.addIcon,onClick:je,style:{visibility:Ye?"visible":"hidden"}})),fe.createElement(_e.Z,{title:"\u5220\u9664"},fe.createElement(ke.Z,{className:Ee.Z.deleteIcon,onClick:it,style:{visibility:$e>1?"visible":"hidden"}}))))},qe=({questionTitlePlaceholder:Je,titleKey:ct,choiceKey:bt,analysisKey:st,choiceTextKey:$e,answerKey:pe,choiceOptionsPath:Le,allowChangeMode:xe=!0,form:de,showAnalysis:Ct=!0})=>{const[Ye,je]=(0,y.useState)(),[it,Ie]=(0,y.useState)(!1);return fe.createElement("div",{className:Ee.Z.wrap},fe.createElement("div",{className:Ee.Z.questionTitleEditorWrap},fe.createElement(Se.default.Item,{label:"\u9898\u5E72",name:ct,labelCol:{span:24},rules:[{required:!0}]},fe.createElement(De.h,{scrollId:Array.isArray(ct)?ct.join("_"):`${ct}`,watch:!0,height:140,placeholder:Je}))),fe.createElement(Se.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),fe.createElement(Se.default.List,{name:bt,rules:[{validator(ye,vt){const Ht=vt.some(Be=>Be[pe]===1),Et=vt.findIndex(Be=>{var ft;return((ft=Be[$e])==null?void 0:ft.length)<=0});return Et!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Ae[Et]}\u9009\u9879\u7684\u5185\u5BB9`)):Ht?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ye,{add:vt,remove:Ht})=>fe.createElement("div",{id:Array.isArray(Le)?Le.join("_"):`${Le}`},ye.map((Et,Be)=>{var ft=Et,{key:ot,name:Xt}=ft,xt=St(ft,["key","name"]);const wt=Ye===ot,ht=()=>{je(ot)},un=Be<14&&Be===ye.length-1,zt=()=>vt({[$e]:"",[pe]:0}),ue=()=>Ht(Xt);return fe.createElement(Se.default.Item,et(Fe({},xt),{key:ot,name:Xt,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[Be]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),fe.createElement(Oe,{choiceTextKey:$e,answerKey:pe,index:Be,isEdit:wt,setInputActive:ht,form:de,choiceOptionsPath:Le,allowChangeMode:xe,showAddIcon:un,addItem:zt,deleteItem:ue}))}),ye.length<15&&fe.createElement("div",{className:`${Ee.Z.addBtn} mb30`,onClick:()=>vt({[$e]:"",[pe]:0})},"\u6DFB\u52A0\u9009\u9879"))),Ct&&fe.createElement("div",{onClick:()=>Ie(!0)},fe.createElement(Se.default.Item,{name:st,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},fe.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:it}))))}},30704:function(Rn,qt,E){"use strict";E.d(qt,{u:function(){return de}});var y=E(59301),ge=E(62957),ce=E(77019),_e=E(5269),Se=E(37568),Ee=E(25399),Ce=E(58755),ke=E(28284),De=E(47889),fe=E(4875),We=E(7939),Te=E(67522),dt=E(12893),Ge=E(32134),Ne=E(61485),we=E(32783),Pe=E(17761),Fe=E(59301),et=Object.defineProperty,St=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ct=(Ct,Ye,je)=>Ye in Ct?et(Ct,Ye,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ct[Ye]=je,bt=(Ct,Ye)=>{for(var je in Ye||(Ye={}))qe.call(Ye,je)&&ct(Ct,je,Ye[je]);if(Oe)for(var je of Oe(Ye))Je.call(Ye,je)&&ct(Ct,je,Ye[je]);return Ct},st=(Ct,Ye)=>St(Ct,Ae(Ye)),$e=(Ct,Ye)=>{var je={};for(var it in Ct)qe.call(Ct,it)&&Ye.indexOf(it)<0&&(je[it]=Ct[it]);if(Ct!=null&&Oe)for(var it of Oe(Ct))Ye.indexOf(it)<0&&Je.call(Ct,it)&&(je[it]=Ct[it]);return je};const pe=({value:Ct,onChange:Ye,position:je,removeBlank:it})=>{const Ie=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:we.Z.modal,onOk:()=>{const Ht=[...Ct];Ht.splice(vt,1),Ht.length===0?it(je-1):Ye(Ht)}})},ye=()=>{const vt=[...Ct];vt.push(""),Ye(vt)};return Fe.createElement(ce.Z,{className:"ml20"},Fe.createElement(_e.Z,{flex:1},Ct==null?void 0:Ct.map((vt,Ht)=>Fe.createElement(ce.Z,{key:`${vt}_${Ht}`,className:"mb20"},Fe.createElement(Se.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:vt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Et=>{const Be=[...Ct],ft=Et.target.value.trim();Be[Ht]=ft,Ye(Be)}}),Fe.createElement(Ee.Z,{title:"\u5220\u9664"},Fe.createElement(dt.Z,{className:we.Z.deleteIcon,style:{marginLeft:15,visibility:je===1&&Ht===0?"hidden":"visible"},onClick:()=>Ie(Ht)})),Fe.createElement(Ee.Z,{title:"\u65B0\u589E\u7B54\u6848"},Fe.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ht===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},Le=({value:Ct,onChange:Ye,position:je,removeBlank:it})=>{const Ie=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:we.Z.modal,onOk:()=>{const Ht=[...Ct];Ht.splice(vt,1),Ht.length===0?it(je-1):Ye(Ht)}})},ye=()=>{const vt=[...Ct];vt.push(""),Ye(vt)};return Fe.createElement(ce.Z,{className:"ml20"},Fe.createElement(_e.Z,{flex:1},Ct==null?void 0:Ct.map((vt,Ht)=>Fe.createElement(ce.Z,{key:`${vt}_${Ht}`,align:"middle",className:"mb20"},Fe.createElement(Pe.Z,{value:vt,style:{flex:1},onChange:Et=>{const Be=[...Ct];Be[Ht]=Et,Ye(Be)}}),Fe.createElement(Ee.Z,{title:"\u5220\u9664"},Fe.createElement(dt.Z,{className:we.Z.deleteIcon,style:{marginLeft:15,visibility:je===1&&Ht===0?"hidden":"visible"},onClick:()=>Ie(Ht)})),Fe.createElement(Ee.Z,{title:"\u65B0\u589E\u7B54\u6848"},Fe.createElement(Ge.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ht===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},xe=({value:Ct=!0,onChange:Ye})=>Fe.createElement(Ce.Z,{checked:!Ct,onChange:je=>{Ye(!je)}}),de=({questionTitlePlaceholder:Ct,form:Ye,scoreByBlank:je=!1,answerKey:it})=>{const[Ie,ye]=(0,y.useState)(!1),vt=()=>{const Xt=Ye.getFieldValue(it);Ye.setFieldsValue({[it]:Xt.map((xt,wt)=>st(bt({},xt),{position:wt+1}))})},Ht=(0,y.useRef)(),Et=(Xt,xt)=>{for(let wt=0;wt<Xt;wt++)Ht.current({position:null,answer_text:[""],model:1},xt+wt);vt()},Be=(0,y.useRef)(),ft=Xt=>{Be.current(Xt),vt()},ot=ke.default.useWatch(it,Ye);return Fe.createElement("div",{className:we.Z.wrap},Fe.createElement("div",{className:we.Z.questionTitleEditorWrap},Fe.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:Ct,showNullButton:!0,onAddBlank:()=>{const Xt=Ye.getFieldValue(it);Et(1,Xt==null?void 0:Xt.length)}}))),Fe.createElement(ke.default.List,{name:it,rules:[{validator(Xt,xt){if(!(xt!=null&&xt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const wt of xt){const{answer_text:ht}=wt||{};if(ht!=null&&ht.some(un=>(un==null?void 0:un.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Xt,{add:xt,remove:wt},{errors:ht})=>(Ht.current=xt,Be.current=wt,Fe.createElement(Fe.Fragment,null,Fe.createElement(ke.default.Item,{label:Fe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Xt.map((un,zt)=>{var ue=un,{key:ae,name:re}=ue,se=$e(ue,["key","name"]),he,ie;return Fe.createElement("div",{style:{marginBottom:10},key:ae},Fe.createElement(ce.Z,{className:"mb20",align:"middle",wrap:!1},Fe.createElement(_e.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${we.Z.blankIndex}`},"\u586B\u7A7A\u9879",zt+1),Fe.createElement(ke.default.Item,st(bt({},se),{name:[re,"model"],noStyle:!0}),Fe.createElement(De.ZP.Group,{onChange:()=>{const me=Ye.getFieldValue(it);Ye.setFieldsValue({[it]:me.map((He,It)=>st(bt({},He),{answer_text:re===It?[""]:He.answer_text}))})}},Fe.createElement(De.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Fe.createElement(Ee.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Fe.createElement(Ne.Z,null))),Fe.createElement(De.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Fe.createElement(Ee.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Fe.createElement(Ne.Z,null)))))),Fe.createElement(ce.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Fe.createElement(_e.Z,{flex:1},Fe.createElement(ce.Z,{align:"top",justify:"space-between",wrap:!1},Fe.createElement(_e.Z,{flex:1},Fe.createElement(ke.default.Item,st(bt({},se),{name:[re,"answer_text"],noStyle:!0}),((ie=(he=Ye.getFieldValue(it))==null?void 0:he[re])==null?void 0:ie.model)===1?Fe.createElement(pe,{removeBlank:ft,position:zt+1}):Fe.createElement(Le,{removeBlank:ft,position:zt+1}))),je&&Fe.createElement(_e.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Fe.createElement(ke.default.Item,st(bt({},se),{name:[re,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:we.Z.blankInputNumberWrapper}),Fe.createElement(fe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Fe.createElement(ke.default.Item,st(bt({},se),{name:[re,"position"],noStyle:!0}),Fe.createElement(Se.default,{type:"hidden"})))))})))),Fe.createElement(We.ZP,{className:"mb20",onClick:()=>Et(1,ot==null?void 0:ot.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Fe.createElement(ce.Z,{align:"middle"},Fe.createElement(ke.default.Item,{name:"downcase",valuePropName:"checked"},Fe.createElement(Ce.Z,null)),Fe.createElement(_e.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Fe.createElement(ce.Z,{align:"middle"},Fe.createElement(ke.default.Item,{name:"no_space",valuePropName:"checked"},Fe.createElement(Ce.Z,null)),Fe.createElement(_e.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ot==null?void 0:ot.length)>1&&Fe.createElement(ce.Z,{align:"middle",className:(ot==null?void 0:ot.length)>1?"mb30":`${we.Z.hide}`},Fe.createElement(ke.default.Item,{name:"is_ordered"},Fe.createElement(xe,null)),Fe.createElement(_e.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")),Fe.createElement("div",{onClick:()=>ye(!0)},Fe.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Fe.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ie}))))}},86576:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return St}});var y=E(59301),ge=E(77019),ce=E(5269),_e=E(28284),Se=E(32783),Ee=E(67522),Ce=E(59301),ke=Object.defineProperty,De=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ge=(Ae,Oe,qe)=>Oe in Ae?ke(Ae,Oe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ae[Oe]=qe,Ne=(Ae,Oe)=>{for(var qe in Oe||(Oe={}))Te.call(Oe,qe)&&Ge(Ae,qe,Oe[qe]);if(We)for(var qe of We(Oe))dt.call(Oe,qe)&&Ge(Ae,qe,Oe[qe]);return Ae},we=(Ae,Oe)=>De(Ae,fe(Oe)),Pe=(Ae,Oe)=>{var qe={};for(var Je in Ae)Te.call(Ae,Je)&&Oe.indexOf(Je)<0&&(qe[Je]=Ae[Je]);if(Ae!=null&&We)for(var Je of We(Ae))Oe.indexOf(Je)<0&&dt.call(Ae,Je)&&(qe[Je]=Ae[Je]);return qe};const Fe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},et=({value:Ae,onChange:Oe,form:qe})=>{const Je=(Ae==null?void 0:Ae.is_answer)===1,ct=Ae==null?void 0:Ae.choice_text,bt=()=>{const st=qe.getFieldsValue().choices.map($e=>({choice_text:$e.choice_text,is_answer:0}));qe.setFieldsValue({choices:st}),Oe(we(Ne({},Ae),{is_answer:1}))};return Ce.createElement(ge.Z,{className:Se.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ce.createElement(ce.Z,{onClick:bt,className:`${Se.Z.choiceIndex} ${Se.Z.judgementIndex} ${Je?Se.Z.activeAnswer:""}`},Fe[ct]),Ce.createElement(ce.Z,{flex:1,className:`${Se.Z.editorWrap} ml15`},Ce.createElement("div",{className:`${Se.Z.inputBorder} ${Se.Z.placeholder} ${Je?Se.Z.activeJudgementAnswer:""}`},ct)),Ce.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},Ce.createElement("div",{onClick:bt,className:`${Se.Z.setAnswerBtn} ${Je?Se.Z.activeAnswer:""}`},Je?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},St=({questionTitlePlaceholder:Ae,choiceKey:Oe,form:qe})=>{const[Je,ct]=(0,y.useState)(!1);return Ce.createElement("div",{className:Se.Z.wrap},Ce.createElement("div",{className:Se.Z.questionTitleEditorWrap},Ce.createElement(_e.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(_e.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ce.createElement(_e.default.List,{name:"choices",rules:[{validator(bt,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"))}}]},bt=>Ce.createElement("div",{id:"choices"},bt.map(st=>{var $e=st,{key:pe,name:Le}=$e,xe=Pe($e,["key","name"]);return Ce.createElement(_e.default.Item,we(Ne({},xe),{key:pe,name:Le,noStyle:!0}),Ce.createElement(et,{form:qe}))})))),Ce.createElement("div",{onClick:()=>ct(!0)},Ce.createElement(_e.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:Je}))))}},67522:function(Rn,qt,E){"use strict";E.d(qt,{h:function(){return Ne},x:function(){return we}});var y=E(46195),ge=E(32783),ce=E(75363),_e=E(59301),Se=Object.defineProperty,Ee=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,We=(Pe,Fe,et)=>Fe in Pe?Se(Pe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:et}):Pe[Fe]=et,Te=(Pe,Fe)=>{for(var et in Fe||(Fe={}))De.call(Fe,et)&&We(Pe,et,Fe[et]);if(ke)for(var et of ke(Fe))fe.call(Fe,et)&&We(Pe,et,Fe[et]);return Pe},dt=(Pe,Fe)=>Ee(Pe,Ce(Fe)),Ge=(Pe,Fe)=>{var et={};for(var St in Pe)De.call(Pe,St)&&Fe.indexOf(St)<0&&(et[St]=Pe[St]);if(Pe!=null&&ke)for(var St of ke(Pe))Fe.indexOf(St)<0&&fe.call(Pe,St)&&(et[St]=Pe[St]);return et};const Ne=Pe=>{var Fe=Pe,{value:et,onChange:St,scrollId:Ae}=Fe,Oe=Ge(Fe,["value","onChange","scrollId"]);return _e.createElement("div",{id:Ae||""},_e.createElement(y.Z,dt(Te({},Oe),{defaultValue:et,onChange:(qe,Je)=>{Je!=null&&Je.length?St(qe,Je):St(qe)}})))},we=({value:Pe,onChange:Fe,placeholder:et,height:St=140,isEdit:Ae,miniToolbar:Oe,watch:qe=!0})=>Ae?_e.createElement(y.Z,{watch:qe,isFocus:!0,height:St||void 0,placeholder:et,defaultValue:Pe,onChange:Fe,miniToolbar:Oe}):_e.createElement("div",{style:{cursor:"pointer"}},Pe?_e.createElement(ce.Z,{className:ge.Z.inputBorder,value:Pe}):_e.createElement("div",{className:`${ge.Z.inputBorder} ${ge.Z.placeholder} inputBorderError`},et))},45624:function(Rn,qt,E){"use strict";E.d(qt,{W:function(){return $e}});var y=E(59301),ge=E(6767),ce=E(96599),_e=E(28284),Se=E(58755),Ee=E(77019),Ce=E(5269),ke=E(25399),De=E(37568),fe=E(4875),We=E(32783),Te=E(67522),dt=E(46195),Ge=E(61485),Ne=Object.defineProperty,we=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,et=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,Oe=(pe,Le)=>{for(var xe in Le||(Le={}))et.call(Le,xe)&&Ae(pe,xe,Le[xe]);if(Fe)for(var xe of Fe(Le))St.call(Le,xe)&&Ae(pe,xe,Le[xe]);return pe},qe=(pe,Le)=>we(pe,Pe(Le)),Je=(pe,Le)=>{var xe={};for(var de in pe)et.call(pe,de)&&Le.indexOf(de)<0&&(xe[de]=pe[de]);if(pe!=null&&Fe)for(var de of Fe(pe))Le.indexOf(de)<0&&St.call(pe,de)&&(xe[de]=pe[de]);return xe};const ct=pe=>{var Le=pe,{value:xe,onChange:de}=Le,Ct=Je(Le,["value","onChange"]);const Ye=je=>{de([je])};return y.createElement(dt.Z,qe(Oe({},Ct),{defaultValue:xe==null?void 0:xe[0],onChange:Ye}))},bt=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(ce.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:de=xe})=>{const[Ct,Ye]=(0,y.useState)(!1),[je,it]=(0,y.useState)(""),Ie=_e.default.useWatch("use_keywords",Le),ye=_e.default.useWatch("question_score",Le);return y.createElement("div",{className:We.Z.wrap},y.createElement("div",{className:We.Z.questionTitleEditorWrap},y.createElement(_e.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(_e.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},y.createElement(ct,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),xe&&!de&&y.createElement(_e.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},y.createElement(Se.Z,{defaultChecked:!0})),xe&&de&&y.createElement(Ee.Z,{align:"middle",className:"mb30"},y.createElement(_e.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"}})))),(Ie||!de)&&y.createElement(_e.default.List,{name:"keywords",rules:[{validator(vt,Ht){return de?Ht!=null&&Ht.length?(Ht==null?void 0:Ht.reduce((Be,ft)=>Be+ft.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:Ht,remove:Et})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${We.Z.title} mb10`},de?"\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(De.default,{value:je,onChange:Be=>{it(Be.target.value)},maxLength:500,allowClear:!0,onPressEnter:Be=>{var ft,ot,Xt,xt;const wt=`${(ft=Be.target)==null?void 0:ft.value}`,ht=(Xt=(ot=wt==null?void 0:wt.split("|"))==null?void 0:ot.filter(ue=>!!ue))==null?void 0:Xt.map(ue=>ue==null?void 0:ue.trim()),un=Le.getFieldValue("keywords"),zt=((xt=un==null?void 0:un.map(ue=>ue==null?void 0:ue.keyword))==null?void 0:xt.flat())||[];for(const ue of ht)if(zt.includes(ue)){ge.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}bt(wt)&&(Ht({keyword:ht,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(Be=>{var ft=Be,{key:ot,name:Xt}=ft,xt=Je(ft,["key","name"]);return y.createElement(Ee.Z,{key:ot,className:"mb20",style:{marginRight:148}},y.createElement(Ce.Z,{flex:1},y.createElement(Ee.Z,{align:"middle",justify:"space-between"},y.createElement(_e.default.Item,qe(Oe({},xt),{name:[Xt,"keyword"]}),y.createElement(st,{onClose:()=>Et(Xt)})),de&&y.createElement(_e.default.Item,qe(Oe({},xt),{name:[Xt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:We.Z.blankInputNumberWrapper}),y.createElement(fe.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(_e.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:Ct}))))}},24850: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 ce.u},ZZ:function(){return ge.Z},Wk:function(){return _e.W}});var y=E(77072),ge=E(86576),ce=E(30704),_e=E(45624),Se=E(59301),Ee=E(8848),Ce=E(28284),ke=E(77019),De=E(5269),fe=E(4875),We=E(25399),Te=E(75727),dt=E(32783),Ge=E(12893),Ne=E(67522),we=E(62957),Pe=E(37568),Fe=E(58755),et=E(7939),St=E(32134),Ae=E(59301),Oe=Object.defineProperty,qe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,$e=(Pt,Yt,Gt)=>Yt in Pt?Oe(Pt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Pt[Yt]=Gt,pe=(Pt,Yt)=>{for(var Gt in Yt||(Yt={}))bt.call(Yt,Gt)&&$e(Pt,Gt,Yt[Gt]);if(ct)for(var Gt of ct(Yt))st.call(Yt,Gt)&&$e(Pt,Gt,Yt[Gt]);return Pt},Le=(Pt,Yt)=>qe(Pt,Je(Yt)),xe=(Pt,Yt)=>{var Gt={};for(var Sn in Pt)bt.call(Pt,Sn)&&Yt.indexOf(Sn)<0&&(Gt[Sn]=Pt[Sn]);if(Pt!=null&&ct)for(var Sn of ct(Pt))Yt.indexOf(Sn)<0&&st.call(Pt,Sn)&&(Gt[Sn]=Pt[Sn]);return Gt};const de=({value:Pt,onChange:Yt,position:Gt,removeBlank:Sn})=>{const jn=Zn=>{we.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:dt.Z.modal,onOk:()=>{const Ot=[...Pt];Ot.splice(Zn,1),Ot.length===0?Sn(Gt-1):Yt(Ot)}})},Dn=()=>{const Zn=[...Pt];Zn.push(""),Yt(Zn)};return Ae.createElement(ke.Z,{className:"ml20"},Ae.createElement(De.Z,{flex:1},Pt==null?void 0:Pt.map((Zn,Ot)=>Ae.createElement(ke.Z,{key:`${Zn}_${Ot}`,className:"mb20"},Ae.createElement(Pe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Zn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Wt=>{const ln=[...Pt],bn=Wt.target.value.trim();ln[Ot]=bn,Yt(ln)}}),Ae.createElement(We.Z,{title:"\u5220\u9664"},Ae.createElement(Ge.Z,{className:dt.Z.deleteIcon,style:{marginLeft:15,visibility:Gt===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:()=>{Dn()}}))))))},Ct=({value:Pt=!0,onChange:Yt})=>Ae.createElement(Fe.Z,{checked:!Pt,onChange:Gt=>{Yt(!Gt)}}),Ye=({questionTitlePlaceholder:Pt,form:Yt,name:Gt,scoreByBlank:Sn=!1,answerKey:jn,titleKey:Dn="name",analysisKey:Zn="analysis",isOrdered:Ot="is_ordered"})=>{var Wt,ln;const[bn,tn]=(0,Se.useState)(!1),wn=()=>{const br=Yt.getFieldValue(["sub_item_banks",...jn]);Yt.setFieldValue(["sub_item_banks",...jn],br==null?void 0:br.map((yr,Vr)=>Le(pe({},yr),{position:Vr+1})))},Cn=(0,Se.useRef)(),Pn=(br,yr)=>{for(let Vr=0;Vr<br;Vr++)Cn.current({position:null,answer_text:[""]},yr+Vr);wn()},vr=(0,Se.useRef)(),Qn=br=>{vr.current(br),wn()},dr=(ln=(Wt=Yt.getFieldValue("sub_item_banks"))==null?void 0:Wt[jn==null?void 0:jn[0]])==null?void 0:ln[jn==null?void 0:jn[1]];return Ae.createElement("div",{className:dt.Z.wrap},Ae.createElement("div",{className:dt.Z.questionTitleEditorWrap},Ae.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Dn,labelCol:{span:24},rules:[{required:!0}]},Ae.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:Pt,showNullButton:!0,onAddBlank:()=>{const br=Yt.getFieldValue(["sub_item_banks",...jn]);Pn(1,br==null?void 0:br.length)}}))),Ae.createElement(Ce.default.List,{name:jn,rules:[{validator(br,yr){if((yr==null?void 0:yr.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Vr of yr){const{answer_text:Zr}=Vr||{};if(Zr!=null&&Zr.some(An=>(An==null?void 0:An.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(br,{add:yr,remove:Vr},{errors:Zr})=>(Cn.current=yr,vr.current=Vr,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}}),br.map((An,$n)=>{var fr=An,{key:ur,name:kt}=fr,Ut=xe(fr,["key","name"]);return Ae.createElement(ke.Z,{align:"top",key:ur},Ae.createElement(De.Z,{className:`${dt.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",$n+1),Ae.createElement(De.Z,{flex:1},Ae.createElement(ke.Z,{align:"top",justify:"space-between"},Ae.createElement(De.Z,{flex:1},Ae.createElement(Ce.default.Item,Le(pe({},Ut),{name:[kt,"answer_text"],noStyle:!0}),Ae.createElement(de,{removeBlank:Qn,position:$n+1}))),Sn&&Ae.createElement(De.Z,{flex:"224px"},Ae.createElement(Ce.default.Item,Le(pe({},Ut),{name:[kt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:dt.Z.blankInputNumberWrapper}),Ae.createElement(fe.Z,{className:dt.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({},Ut),{name:[kt,"position"],noStyle:!0}),Ae.createElement(Pe.default,{type:"hidden"}))))})))),Ae.createElement(et.ZP,{className:"mb20",onClick:()=>Pn(1,dr==null?void 0:dr.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ae.createElement(ke.Z,{align:"middle"},Ae.createElement(Ce.default.Item,{name:[Gt,"downcase"],valuePropName:"checked"},Ae.createElement(Fe.Z,null)),Ae.createElement(De.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:[Gt,"no_space"],valuePropName:"checked"},Ae.createElement(Fe.Z,null)),Ae.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(dr==null?void 0:dr.length)>1&&Ae.createElement(ke.Z,{align:"middle",className:(dr==null?void 0:dr.length)>1?"mb30":`${dt.Z.hide}`},Ae.createElement(Ce.default.Item,{name:Ot},Ae.createElement(Ct,null)),Ae.createElement(De.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:bn}))))};var je=E(59301),it=Object.defineProperty,Ie=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Be=(Pt,Yt,Gt)=>Yt in Pt?it(Pt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Pt[Yt]=Gt,ft=(Pt,Yt)=>{for(var Gt in Yt||(Yt={}))Ht.call(Yt,Gt)&&Be(Pt,Gt,Yt[Gt]);if(vt)for(var Gt of vt(Yt))Et.call(Yt,Gt)&&Be(Pt,Gt,Yt[Gt]);return Pt},ot=(Pt,Yt)=>Ie(Pt,ye(Yt)),Xt=(Pt,Yt)=>{var Gt={};for(var Sn in Pt)Ht.call(Pt,Sn)&&Yt.indexOf(Sn)<0&&(Gt[Sn]=Pt[Sn]);if(Pt!=null&&vt)for(var Sn of vt(Pt))Yt.indexOf(Sn)<0&&Et.call(Pt,Sn)&&(Gt[Sn]=Pt[Sn]);return Gt};const xt={\u6B63\u786E:"T",\u9519\u8BEF:"F"},wt=({value:Pt,onChange:Yt,form:Gt,choiceKey:Sn})=>{const jn=(Pt==null?void 0:Pt.is_answer)===1,Dn=Pt==null?void 0:Pt.choice_text,Zn=()=>{var Ot;const Wt=(Ot=Gt==null?void 0:Gt.getFieldValue(["sub_item_banks",...Sn]))==null?void 0:Ot.map(ln=>({choice_text:ln.choice_text,is_answer:0}));Gt==null||Gt.setFieldValue(["sub_item_banks",...Sn],Wt),Yt(ot(ft({},Pt),{is_answer:1}))};return je.createElement(ke.Z,{className:dt.Z.choiceWrap,align:"middle",wrap:!1},je.createElement(De.Z,{onClick:Zn,className:`${dt.Z.choiceIndex} ${dt.Z.judgementIndex} ${jn?dt.Z.activeAnswer:""}`},xt[Dn]),je.createElement(De.Z,{flex:1,className:`${dt.Z.editorWrap} ml15`},je.createElement("div",{className:`${dt.Z.inputBorder} ${dt.Z.placeholder} ${jn?dt.Z.activeJudgementAnswer:""}`},Dn)),je.createElement(De.Z,{flex:"0 0 auto",className:"ml15"},je.createElement("div",{onClick:Zn,className:`${dt.Z.setAnswerBtn} ${jn?dt.Z.activeAnswer:""}`},jn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ht=({questionTitlePlaceholder:Pt,choiceKey:Yt="choices",form:Gt,titleKey:Sn="name",analysisKey:jn="analysis"})=>{const[Dn,Zn]=(0,Se.useState)(!1);return je.createElement("div",{className:dt.Z.wrap},je.createElement("div",{className:dt.Z.questionTitleEditorWrap},je.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Sn,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:Yt,rules:[{validator(Ot,Wt){return Wt.some(bn=>(bn==null?void 0:bn.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(Wt=>{var ln=Wt,{key:bn,name:tn}=ln,wn=Xt(ln,["key","name"]);return je.createElement(Ce.default.Item,ot(ft({},wn),{key:bn,name:tn,noStyle:!0}),je.createElement(wt,{form:Gt,choiceKey:Yt}))})))),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:Dn}))))};var un=E(6767),zt=E(96599),ue=E(46195),ae=E(61485),re=Object.defineProperty,se=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,It=(Pt,Yt,Gt)=>Yt in Pt?re(Pt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Pt[Yt]=Gt,Xe=(Pt,Yt)=>{for(var Gt in Yt||(Yt={}))me.call(Yt,Gt)&&It(Pt,Gt,Yt[Gt]);if(ie)for(var Gt of ie(Yt))He.call(Yt,Gt)&&It(Pt,Gt,Yt[Gt]);return Pt},Ke=(Pt,Yt)=>se(Pt,he(Yt)),yt=(Pt,Yt)=>{var Gt={};for(var Sn in Pt)me.call(Pt,Sn)&&Yt.indexOf(Sn)<0&&(Gt[Sn]=Pt[Sn]);if(Pt!=null&&ie)for(var Sn of ie(Pt))Yt.indexOf(Sn)<0&&He.call(Pt,Sn)&&(Gt[Sn]=Pt[Sn]);return Gt};const Bt=Pt=>{var Yt=Pt,{value:Gt,onChange:Sn}=Yt,jn=yt(Yt,["value","onChange"]);const Dn=Zn=>{Sn([Zn])};return Se.createElement(ue.Z,Ke(Xe({},jn),{defaultValue:Gt==null?void 0:Gt[0],onChange:Dn}))},_t=Pt=>{if(!Pt)return!1;let Yt=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==="|"?(un.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Qe=({value:Pt=[],onClose:Yt})=>Se.createElement(zt.default,{closable:!0,onClose:Yt,className:dt.Z.keywordTag},Se.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Pt.join(" \u6216 "))),tt=({questionTitlePlaceholder:Pt,form:Yt,showKeywords:Gt,isMustKeyWords:Sn=Gt,titleKey:jn="name",analysisKey:Dn="analysis",answerTexts:Zn="answer_texts",keywords:Ot="keywords",useKeywords:Wt="use_keywords",indexs:ln})=>{const[bn,tn]=(0,Se.useState)(!1),[wn,Cn]=(0,Se.useState)(""),[Pn,vr]=(0,Se.useState)(!1),Qn=Ce.default.useWatch("question_score",Yt);return Se.createElement("div",{className:dt.Z.wrap},Se.createElement("div",{className:dt.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(Bt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Gt&&!Sn&&Se.createElement(Ce.default.Item,{hidden:!0,name:Wt,valuePropName:"checked"},Se.createElement(Fe.Z,{defaultChecked:!0})),Gt&&Sn&&Se.createElement(ke.Z,{align:"middle",className:"mb30"},Se.createElement(Ce.default.Item,{name:Wt,valuePropName:"checked"},Se.createElement(Fe.Z,{onChange:()=>{var dr,br,yr,Vr,Zr,An;console.log(Yt.getFieldsValue()),vr((yr=(br=(dr=Yt.getFieldsValue())==null?void 0:dr.sub_item_banks)==null?void 0:br[ln])==null?void 0:yr.use_keywords),console.log((An=(Zr=(Vr=Yt.getFieldsValue())==null?void 0:Vr.sub_item_banks)==null?void 0:Zr[ln])==null?void 0:An.use_keywords),console.log(Pn)}})),Se.createElement(De.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Se.createElement(De.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"}})))),(Pn||!Sn)&&Se.createElement(Ce.default.List,{name:Ot,rules:[{validator(dr,br){return Sn?br!=null&&br.length?(br==null?void 0:br.reduce((Vr,Zr)=>Vr+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()}}]},(dr,{add:br,remove:yr})=>Se.createElement(Se.Fragment,null,Se.createElement("div",{className:`${dt.Z.title} mb10`},Sn?"\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(De.Z,{flex:1},Se.createElement(Pe.default,{value:wn,onChange:Vr=>{Cn(Vr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Vr=>{var Zr,An,$n,fr;const ur=`${(Zr=Vr.target)==null?void 0:Zr.value}`,kt=($n=(An=ur==null?void 0:ur.split("|"))==null?void 0:An.filter(Zt=>!!Zt))==null?void 0:$n.map(Zt=>Zt==null?void 0:Zt.trim()),Ut=Yt.getFieldValue(["sub_item_banks",...Ot]),pt=((fr=Ut==null?void 0:Ut.map(Zt=>Zt==null?void 0:Zt.keyword))==null?void 0:fr.flat())||[];for(const Zt of kt)if(pt.includes(Zt)){un.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}_t(ur)&&(br({keyword:kt,score:1}),Cn(""))},className:dt.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(De.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),dr.map(Vr=>{var Zr=Vr,{key:An,name:$n}=Zr,fr=yt(Zr,["key","name"]);return Se.createElement(ke.Z,{key:An,className:"mb20",style:{marginRight:148}},Se.createElement(De.Z,{flex:1},Se.createElement(ke.Z,{align:"middle",justify:"space-between"},Se.createElement(Ce.default.Item,Ke(Xe({},fr),{name:[$n,"keyword"]}),Se.createElement(Qe,{onClose:()=>yr($n)})),Sn&&Se.createElement(Ce.default.Item,Ke(Xe({},fr),{name:[$n,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:dt.Z.blankInputNumberWrapper}),Se.createElement(fe.Z,{className:dt.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:Dn,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:bn}))))};var Vt=E(59301),on=Object.defineProperty,Fn=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Qt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,rt=(Pt,Yt,Gt)=>Yt in Pt?on(Pt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Pt[Yt]=Gt,Nt=(Pt,Yt)=>{for(var Gt in Yt||(Yt={}))Qt.call(Yt,Gt)&&rt(Pt,Gt,Yt[Gt]);if(Lt)for(var Gt of Lt(Yt))jt.call(Yt,Gt)&&rt(Pt,Gt,Yt[Gt]);return Pt},fn=(Pt,Yt)=>Fn(Pt,gn(Yt)),yn=(Pt,Yt)=>{var Gt={};for(var Sn in Pt)Qt.call(Pt,Sn)&&Yt.indexOf(Sn)<0&&(Gt[Sn]=Pt[Sn]);if(Pt!=null&&Lt)for(var Sn of Lt(Pt))Yt.indexOf(Sn)<0&&jt.call(Pt,Sn)&&(Gt[Sn]=Pt[Sn]);return Gt};const{Panel:lt}=Ee.default,Rt=({questionTitlePlaceholder:Pt,choiceKey:Yt,form:Gt,withScore:Sn})=>{const[jn,Dn]=(0,Se.useState)([]),Zn=Ot=>{Dn(Ot)};return Vt.createElement("div",{className:dt.Z.wrap},Vt.createElement("div",{className:dt.Z.questionTitleEditorWrap},Vt.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Vt.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:Pt}))),Vt.createElement(Ce.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Vt.createElement(Ce.default.List,{name:"sub_item_banks",rules:[{validator(Ot,Wt){return Wt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ot,{add:Wt,remove:ln,move:bn})=>{const tn=Gt.getFieldValue("sub_item_banks");return Vt.createElement(Vt.Fragment,null,Vt.createElement(Ee.default,{className:Ot.length>0?dt.Z.collapseWrapper:"",bordered:!1,activeKey:jn,onChange:Zn,expandIcon:({isActive:wn})=>Vt.createElement("i",{className:`iconfont icon-weizhankai ${wn?dt.Z.open:dt.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Ot.map((wn,Cn)=>{var Pn=wn,{key:vr,name:Qn}=Pn,dr=yn(Pn,["key","name"]),br,yr,Vr,Zr,An,$n,fr,ur,kt,Ut;return Vt.createElement(lt,{className:dt.Z.panel,forceRender:!0,header:Vt.createElement("div",{className:dt.Z.panelHeader},"\u7B2C",Cn+1,"\u5C0F\u9898",Vt.createElement("span",null,"\uFF08",((br=tn==null?void 0:tn[Qn])==null?void 0:br.item_type)=="SINGLE"?"\u5355\u9009\u9898":((yr=tn==null?void 0:tn[Qn])==null?void 0:yr.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Vr=tn==null?void 0:tn[Qn])==null?void 0:Vr.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:Vt.createElement(ke.Z,{align:"middle",onClick:pt=>pt.stopPropagation()},Sn&&Vt.createElement(De.Z,null,Vt.createElement(Ce.default.Item,fn(Nt({},dr),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Qn,"question_score"],className:dt.Z.blankInputNumberWrapper}),Vt.createElement(fe.Z,{className:dt.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Vt.createElement(De.Z,null,Vt.createElement(ke.Z,{align:"middle",className:"pl40",justify:"end"},Cn!==0&&Vt.createElement("div",{onClick:()=>{var pt;bn(Cn,Cn-1);const Zt=(pt=Gt.getFieldValue("sub_item_banks"))==null?void 0:pt.map((at,gt)=>(Ot.map((cn,ar)=>{gt===ar&&(at.q_position=Number(cn.name)+1)}),at));Gt.setFieldValue("sub_item_banks",Zt)}},Vt.createElement(We.Z,{title:"\u4E0A\u79FB"},Vt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Cn<Ot.length-1&&Vt.createElement("div",{onClick:()=>{var pt;bn(Cn,Cn+1);const Zt=(pt=Gt.getFieldValue("sub_item_banks"))==null?void 0:pt.map((at,gt)=>(Ot.map((cn,ar)=>{gt===ar&&(at.q_position=Number(cn.name)+1)}),at));Gt.setFieldValue("sub_item_banks",Zt)},className:Cn===0?"":"ml15"},Vt.createElement(We.Z,{title:"\u4E0B\u79FB"},Vt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Vt.createElement(De.Z,null,Vt.createElement(We.Z,{title:"\u5220\u9664"},Vt.createElement(Ge.Z,{className:`${dt.Z.deleteIcon} ml15`,onClick:()=>ln(Qn)}))))},Vt.createElement(Ce.default.Item,fn(Nt({},dr),{name:Qn}),(((An=tn==null?void 0:tn[Qn])==null?void 0:An.item_type)=="SINGLE"||(($n=tn==null?void 0:tn[Qn])==null?void 0:$n.item_type)=="MULTIPLE")&&Vt.createElement(y.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((fr=tn==null?void 0:tn[Qn])==null?void 0:fr.item_type)=="MULTIPLE",form:Gt,choiceKey:[Qn,"choices"],titleKey:[Qn,"name"],analysisKey:[Qn,"analysis"],choiceOptionsPath:["sub_item_banks",Qn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((ur=tn==null?void 0:tn[Qn])==null?void 0:ur.item_type)=="COMPLETION"&&Vt.createElement(Ye,{form:Gt,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"]}),((kt=tn==null?void 0:tn[Qn])==null?void 0:kt.item_type)=="JUDGMENT"&&Vt.createElement(ht,{form:Gt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Qn,"name"],analysisKey:[Qn,"analysis"],choiceKey:[Qn,"choices"]}),((Ut=tn==null?void 0:tn[Qn])==null?void 0:Ut.item_type)=="SUBJECTIVE"&&Vt.createElement(tt,{showKeywords:!0,isMustKeyWords:!1,form:Gt,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&&Vt.createElement(Te.Z,{menu:{items:[{label:Vt.createElement("div",{onClick:()=>{Wt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),Dn([Ot==null?void 0:Ot.length,...jn])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Vt.createElement("div",{onClick:()=>{Wt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),Dn([Ot==null?void 0:Ot.length,...jn])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Vt.createElement("div",{onClick:()=>{Wt({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),Dn([Ot==null?void 0:Ot.length,...jn])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Vt.createElement("div",{onClick:()=>{Wt({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),Dn([Ot==null?void 0:Ot.length,...jn])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Vt.createElement("div",{onClick:()=>{Wt({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),Dn([Ot==null?void 0:Ot.length,...jn])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(wn=>wn.show).map(wn=>({label:wn.label,key:wn.key}))}},Vt.createElement("div",{className:`${dt.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var en=E(46912)},75363:function(Rn,qt,E){"use strict";E.d(qt,{z:function(){return $e},Z:function(){return pe}});var y=E(59301),ge=E(84390),ce=E(25386),_e=E(64018),Se=E(16471),Ee=E(58962),Ce=E(49411),ke=E(15342),De=E(44104),fe=E(7939),We=E(1012),Te=E(42576),dt=E(59301),Ne=({html:Le})=>{const xe=(0,y.useRef)(null),de=(0,y.useRef)(null),Ct=`.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"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=Le,Ye.appendChild(de.current);const je=document.createElement("style");return je.textContent=Ct,Ye.appendChild(je),()=>{Ye.innerHTML=""}},[]),(0,y.useEffect)(()=>{de.current&&(de.current.innerHTML=Le)},[Le]),dt.createElement("div",{ref:xe})};function we(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"],de=new RegExp(`\\b(${xe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ct=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Le.replace(de,"").replace(Ct,"").trim()}var Pe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Fe=Object.defineProperty,et=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Oe=(Le,xe,de)=>xe in Le?Fe(Le,xe,{enumerable:!0,configurable:!0,writable:!0,value:de}):Le[xe]=de,qe=(Le,xe)=>{for(var de in xe||(xe={}))St.call(xe,de)&&Oe(Le,de,xe[de]);if(et)for(var de of et(xe))Ae.call(xe,de)&&Oe(Le,de,xe[de]);return Le};const Je="@\u2581\u2581@",ct="@\u2581@",bt=/<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 de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ct=/\"(?: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(de,(it,Ie,ye,vt,Ht,Et,Be)=>{const ft=Ie||vt||Et,ot=ye||Ht||Be||"?";return Ee.Z.API_SERVER+"/api/attachments/"+ft+ot+"&t="+(0,Ce.Jn)(ft,Date.now())+(it.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(je,(it,Ie,ye,vt,Ht,Et,Be)=>{const ft=Ie||vt||Et,ot=ye||Ht||Be||"?";return Ee.Z.API_SERVER+"/attachments/download/"+ft+ot+"&t="+(0,Ce.Jn)(ft,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(de,(it,Ie,ye,vt,Ht,Et,Be)=>{const ft=Ie||vt||Et,ot=ye||Ht||Be||"?";return Ee.Z.API_SERVER+"/api/attachments/"+ft+ot+"&t="+(0,Ce.Jn)(ft,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(Ct,(it,Ie,ye,vt,Ht)=>{const Et=Ie||vt,Be=ye||Ht||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+Et+Be+Et+Be+"&t="+(0,Ce.Jn)(Et,Date.now())}).replace(Ye,(it,Ie,ye,vt,Ht)=>{const Et=Ie||vt,Be=ye||Ht||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+Et+Be+Et+Be+"&t="+(0,Ce.Jn)(Et,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:de,showTextOnly:Ct,showLines:Ye,style:je={},stylesPrev:it={},highlightKeywords:Ie,showProgramFill:ye,isProgramFill:vt,disabledFill:Ht=!1,programFillValue:Et,openEditor:Be=()=>{},onFillChange:ft=xt=>{},onFillBlur:ot=()=>{},onFillFocus:Xt=()=>{}})=>{let xt=we(String(Le||""));const wt=(0,y.useRef)(),ht=(0,y.useRef)(),[un,zt]=(0,y.useState)(""),[ue,ae]=(0,y.useState)("office"),[re,se]=(0,y.useState)([]),he=(0,y.useRef)("a"+(0,We.Z)()),ie={},me=Lt=>/<style[\s\S]*?>/i.test(Lt||""),He=(Lt,Qt,jt)=>{const rt=document.createElement(Lt===ct?"input":"textarea");rt.style.width="100%",rt.style.height=Lt===ct?"40px":"151px",rt.rows=5,rt.spellcheck=!1,rt.name="edu-program-fill",rt.placeholder="\u8BF7\u8F93\u5165",rt.dataset.id=Qt;const Nt=Object.keys(ie).length;return ie[Nt]=rt,`<span class="edu-program-fill-wrap ${Lt===ct?"":"show"}" style="width:${Lt===ct?"600px":"100%"}" title=${jt||""}><span>${rt.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 Xe=Lt=>!Ct&&me(xt)?Lt:Lt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Qt,jt){let rt=jt.replace(/(\n|\r)/g,"").split("}"),Nt=[];return rt.map(fn=>{fn!=""&&Nt.push(`.${he.current} ${fn}`)}),`<style>${Nt.join("}")}</style>`}),Ke=(0,y.useMemo)(()=>{(0,ce.Iy)();try{const rt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,fn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,yn=/\(\/attachments\/download\//g;xt=xt.replace(yn,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(rt,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(Nt,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(fn,'"'+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,`
|
|
|
`),wt.current.style.display="none"}catch(rt){}if(ye){let rt=-1;return xt=xt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Nt,fn,yn){var lt;return++rt,He(Nt,rt,(lt=Et==null?void 0:Et[rt])==null?void 0:lt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Xe(xt||"")}</pre>`}let Lt=Xe(xt);Lt=(0,ce.ZP)(Lt);const Qt=(0,ce.ez)();xt.match(/\[TOC\]/)&&(Lt=Lt.replace("<p>[TOC]</p>",(0,ce.Qv)()),(0,ce.Iy)()),Lt=Lt.replace(/(__special_katext_id_\d+__)/g,(rt,Nt)=>{const{type:fn,expression:yn}=Qt[Nt];return(0,ke.renderToString)(st(yn)||"",{displayMode:fn==="block",throwOnError:!1,output:"html"})}),Lt=Lt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ce.AL)();const jt=document.createElement("div");if(jt.innerHTML=Lt,Ct)return jt.innerText;if(Ie){const rt=Ie.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Qe(jt,rt),jt.innerHTML}return setTimeout(()=>on(),500),jt.innerHTML},[xt,Ie]);(0,y.useEffect)(()=>{tt.current&&tt.current.querySelectorAll(["input","textarea"]).forEach(Qt=>{Qt.oninput=yt,Qt.onblur=Bt,Qt.onfocus=_t})},[re]),(0,y.useEffect)(()=>{var Lt,Qt,jt,rt,Nt;if(Et!=null&&Et.length)try{const fn=tt.current.querySelectorAll(".edu-program-fill-score"),yn=tt.current.querySelectorAll('[name="edu-program-fill"]');for(const[lt,Rt]of yn.entries())Rt.value=((Lt=Et==null?void 0:Et[lt])==null?void 0:Lt.value)||"",((Qt=Et==null?void 0:Et[lt])==null?void 0:Qt.type)==="warning"?Rt.className="program-fill-warning":((jt=Et==null?void 0:Et[lt])==null?void 0:jt.type)==="success"?Rt.className="program-fill-success":Rt.className="";for(const[lt,Rt]of fn.entries())Rt.innerHTML=(rt=Et==null?void 0:Et[lt])!=null&&rt.score?`${(Nt=Et==null?void 0:Et[lt])==null?void 0:Nt.score}\u5206`:"";se(Et)}catch(fn){console.log(fn,"error")}},[Et]);const yt=Lt=>{re[Lt.target.dataset.id]=re[Lt.target.dataset.id]||{},re[Lt.target.dataset.id].value=Lt.target.value,se([...re]),ft(re,Lt.target.dataset.id)},Bt=Lt=>{re[Lt.target.dataset.id]=re[Lt.target.dataset.id]||{},re[Lt.target.dataset.id].value=Lt.target.value,se([...re]),ot(re,Lt.target.dataset.id)},_t=Lt=>{re[Lt.target.dataset.id]=re[Lt.target.dataset.id]||{},re[Lt.target.dataset.id].value=Lt.target.value,se([...re]),Xt(re,Lt.target.dataset.id)};function Qe(Lt,Qt){return Lt.childNodes.forEach(jt=>{var rt;if(jt.childNodes.length>0)Qe(jt,Qt);else if(jt.nodeName!=="IMG")if(jt.innerHTML)jt.innerHTML=(rt=jt.innerHTML)==null?void 0:rt.replace(new RegExp(Qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Nt=document.createElement("span");Nt.innerHTML=jt.textContent.replace(new RegExp(Qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),jt.replaceWith(Nt)}})}const tt=(0,y.useRef)();ce.jb.WebkitLineClamp=Ye,Ye&&(je=qe(qe({},je),ce.jb));function Vt(Lt){let Qt=Lt.target;if(Qt.tagName.toUpperCase()==="A"){let jt=Qt.getAttribute("href");if(jt.indexOf("office")>-1)Lt.preventDefault(),zt(jt),ae("office");else if(jt.indexOf("application/pdf")>-1)Lt.preventDefault(),zt(jt),ae("pdf");else if(jt.indexOf("text/html")>-1)Lt.preventDefault(),zt(jt),ae("html");else if(jt.startsWith("#")){Lt.preventDefault();let rt=document.getElementById(jt.replace("#",""));rt&&rt.scrollIntoView(!0)}}}const on=()=>{var Lt;const Qt=(Lt=tt.current)==null?void 0:Lt.querySelectorAll("video");Qt==null||Qt.forEach(jt=>{if(jt.oncontextmenu=()=>!1,jt.src.indexOf(".m3u8")>-1&&!jt.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var rt=new Se.ZP;rt.loadSource(jt.src),rt.attachMedia(jt)}}})};(0,y.useEffect)(()=>{if(tt.current&&Ke&&Ke.match(bt)&&window.PR.prettyPrint(),tt.current)return tt.current.addEventListener("click",Vt),()=>{var Lt;(Lt=tt.current)==null||Lt.removeEventListener("click",Vt),(0,ce.AL)(),(0,ce.Iy)()}},[Ke,tt.current,Vt]);const Fn=Lt=>{Lt.target.nodeName==="IMG"&&Lt.target.className.indexOf("draw-flowchart")>-1?(wt.current.style.zIndex=1,wt.current.style.display="flex",wt.current.style.width=Lt.target.clientWidth+"px",wt.current.style.height=Lt.target.clientHeight+"px",wt.current.style.top=Lt.target.offsetTop+"px",wt.current.style.left=Lt.target.offsetLeft+"px",Lt.target.id&&(ht.current=Lt.target.id)):wt.current.style.display="none"},gn=()=>{wt.current.style.display="none"};return(0,y.useEffect)(()=>{var Lt;const Qt=jt=>{jt.preventDefault(),jt.clipboardData.setData("text",window.getSelection().toString())};return(Lt=tt.current)==null||Lt.addEventListener("copy",Qt),()=>{var jt;(jt=tt.current)==null||jt.removeEventListener("copy",Qt)}},[tt.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:gn},Ct&&y.createElement("div",{ref:tt,className:`${Pe.mdBody} `},Ke),!Ct&&!me(Ke)&&y.createElement("div",{ref:tt,style:qe({},je),onMouseOver:Fn,className:`${de||""} ${Ht?"disabled-fill":""} markdown-body ${Pe.mdBody} ${he.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!Ct&&me(Ke)&&y.createElement(Ne,{html:Ke}),y.createElement("div",{ref:wt,className:`${Pe.button} ${xe?"":Pe.previewFlowChart}`},y.createElement(De.Z,null,y.createElement(fe.ZP,{onClick:()=>{xe?Be(ht.current):(zt(ht.current),ae("flowChart"))}},xe?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(Te.Z,{close:!0,data:un,type:un!=null&&un.length?ue:"",style:qe({},it),onClose:()=>zt("")}))}},39990:function(Rn,qt,E){"use strict";E.d(qt,{C:function(){return Ct}});var y=E(59301),ge={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},ce=E(92310),_e=E.n(ce),Se=E(62673),Ee=E(77019),Ce=E(6767),ke=E(25399),De=E(7939),fe=E(62957),We=E(70858),Te=E(4875),dt=E(28284),Ge=E(29787),Ne=E(49411),we=E(82875),Pe=E(30466),Fe=E(57),et=E(78176),St=Object.defineProperty,Ae=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,bt=(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={}))Je.call(je,it)&&bt(Ye,it,je[it]);if(qe)for(var it of qe(je))ct.call(je,it)&&bt(Ye,it,je[it]);return Ye},$e=(Ye,je)=>Ae(Ye,Oe(je)),pe=(Ye,je,it)=>new Promise((Ie,ye)=>{var vt=Be=>{try{Et(it.next(Be))}catch(ft){ye(ft)}},Ht=Be=>{try{Et(it.throw(Be))}catch(ft){ye(ft)}},Et=Be=>Be.done?Ie(Be.value):Promise.resolve(Be.value).then(vt,Ht);Et((it=it.apply(Ye,je)).next())});const Le=Se.default.Group,xe=({className:Ye,title:je,items:it=[],value:Ie,onChange:ye})=>{const vt=(it==null?void 0:it.length)===(Ie==null?void 0:Ie.length),Ht=(Ie==null?void 0:Ie.length)>0&&(Ie==null?void 0:Ie.length)<(it==null?void 0:it.length),Et=Be=>{const ft=it.map(ot=>ot.id);ye(Be.target.checked?ft:[])};return y.createElement(Ee.Z,{align:"middle",className:Ye},!!je&&y.createElement("div",{className:"mr20",style:{color:"#5F6368"}},je),y.createElement(Se.default,{indeterminate:Ht,onChange:Et,checked:vt},"\u5168\u90E8"),y.createElement(Le,{value:Ie,onChange:ye},it.map(Be=>y.createElement(Se.default,{className:"ml30 c-black",key:Be.id,value:Be.id},Be.name,y.createElement("span",null,`(${Be.count})`)))))};var Ct=({className:Ye,style:je,dataSource:it})=>{var Ie,ye,vt,Ht,Et,Be,ft;const[ot,Xt]=(0,y.useState)({}),[xt,wt]=(0,y.useState)(!0),[ht,un]=(0,y.useState)(!1),[zt,ue]=(0,y.useState)(!1),[ae,re]=(0,y.useState)(null),[se,he]=(0,y.useState)(0),[ie,me]=(0,y.useState)({}),[He,It]=(0,y.useState)(!0),[Xe,Ke]=(0,y.useState)(0),[yt,Bt]=(0,y.useState)(0),[_t,Qe]=(0,y.useState)(!1),tt=(0,y.useRef)(null),[Vt,on]=(0,y.useState)(!1),[Fn,gn]=(0,y.useState)(!0),[Lt,Qt]=(0,y.useState)([]),jt={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[rt,Nt]=(0,y.useState)(st({},jt));(0,y.useEffect)(()=>{it!=null&&it.question_id&&Xt(it)},[it==null?void 0:it.question_id]),(0,y.useEffect)(()=>{var Ot;if(((Ot=ot==null?void 0:ot.exercise_question_resubmit)==null?void 0:Ot.status)==="running"){const Wt=setInterval(()=>{lt()},3e3);return()=>clearInterval(Wt)}},[(Ie=ot==null?void 0:ot.exercise_question_resubmit)==null?void 0:Ie.status]),(0,y.useEffect)(()=>{var Ot;zt&&(zt===1&&(rt.question_status=Rt.map(Wt=>Wt.value),rt.review=en.map(Wt=>Wt.value)),zt===2&&(rt.exercise_question_resubmit_id=(Ot=ot==null?void 0:ot.exercise_question_resubmit)==null?void 0:Ot.id,ae===1&&(rt.success_status=[1]),ae===2&&(rt.success_status=[0])),Nt(st({},rt)),fn(rt),Bt(ot!=null&&ot.is_mirror?3:10),Ke(ot!=null&&ot.is_mirror?1:5))},[zt]),(0,y.useEffect)(()=>{Vt&&yn()},[Vt]);const fn=Ot=>pe(void 0,null,function*(){wt(!0);const Wt=yield(0,we.ZP)(`/api/exercise_questions/${ot==null?void 0:ot.question_id}/resubmit_student_list.json`,{method:"get",params:Ot});(Wt==null?void 0:Wt.status)==0&&(me(Wt||[]),he(Wt==null?void 0:Wt.count)),wt(!1)}),yn=()=>pe(void 0,null,function*(){gn(!0);const Ot=yield(0,we.ZP)(`/api/exercise_questions/${ot==null?void 0:ot.question_id}/resubmit_history.json`,{method:"get"});(Ot==null?void 0:Ot.status)==0&&Qt((Ot==null?void 0:Ot.data)||[]),gn(!1)}),lt=()=>pe(void 0,null,function*(){const Ot=yield(0,we.ZP)(`/api/exercise_questions/${ot==null?void 0:ot.question_id}/resubmit_status.json`,{method:"get"});(Ot==null?void 0:Ot.status)==0&&Xt($e(st({},ot),{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"}],Yt=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Ot,Wt,ln)=>y.createElement("span",{className:"c-black"},ln+1+(rt.page-1)*rt.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:Wt,color:ln}=Rt.find(bn=>bn.value===Ot)||{};return y.createElement("span",{style:{color:ln}},Wt)}},{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:Wt,color:ln}=en.find(bn=>bn.value===Ot)||{};return y.createElement("span",{style:{color:ln}},Wt)}},zt===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Ot=>{const{label:Wt,color:ln}=Pt.find(bn=>bn.value===Ot)||{};return y.createElement("span",{style:{color:ln}},Wt)}}].filter(Boolean),Gt=(Ot,Wt,ln)=>{rt.page=Ot==null?void 0:Ot.current,rt.per_page=Ot==null?void 0:Ot.pageSize,ln!=null&&ln.order?(rt.sort_by=ln==null?void 0:ln.field,rt.direction=(ln==null?void 0:ln.order)==="ascend"?"asc":"desc"):(rt.sort_by=null,rt.direction=null),Nt(st({},rt)),fn(rt)},Sn=()=>{if(!Xe){Ce.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Qe(!0)},jn=()=>pe(void 0,null,function*(){var Ot,Wt;if((Ot=tt.current)!=null&&Ot.onVerify())return;un(!0);const ln=yield(0,we.ZP)(`/api/exercise_questions/${ot==null?void 0:ot.question_id}/resubmit.json`,{method:"post",body:{keyword:rt.keyword,question_status:rt.question_status,review:rt.review_status,success_status:rt.success_status,use_max_score:He,permits:Xe,exercise_question_resubmit_id:zt===1?null:(Wt=ot==null?void 0:ot.exercise_question_resubmit)==null?void 0:Wt.id}});(ln==null?void 0:ln.status)==0&&(yield lt(),Ce.ZP.success("\u64CD\u4F5C\u6210\u529F"),Qe(!1),ue(!1)),un(!1)}),Dn=(Ot,Wt)=>{rt.page=1,rt[Wt]=Ot,Nt(st({},rt)),fn(rt)},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:_e()(ge.recalculation,Ye),style:je},y.createElement(ke.Z,{title:Zn[(ot==null?void 0:ot.disable_resubmit_reason)||0]},y.createElement(De.ZP,{disabled:(ot==null?void 0:ot.disable_resubmit)||((ye=ot==null?void 0:ot.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")),(ot==null?void 0:ot.show_resubmit_history)&&y.createElement(y.Fragment,null,((vt=ot==null?void 0:ot.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"},(Ht=ot==null?void 0:ot.exercise_question_resubmit)==null?void 0:Ht.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"}},(Et=ot==null?void 0:ot.exercise_question_resubmit)==null?void 0:Et.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"}},(Be=ot==null?void 0:ot.exercise_question_resubmit)==null?void 0:Be.fail_count),"\u4EBA"),y.createElement(ke.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},y.createElement("i",{onClick:()=>on(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),y.createElement(fe.default,{centered:!0,open:!!zt,title:`\u91CD\u65B0\u8BC4\u6D4B${zt===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>ue(!1),onOk:Sn,afterClose:()=>{It(!0),re(null),Nt(st({},jt))}},y.createElement("div",{className:ge.filter},zt===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:rt.question_status,onChange:Ot=>Dn(Ot,"question_status")}),y.createElement(xe,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(ie==null?void 0:ie.review_status)||[],value:rt.review,onChange:Ot=>Dn(Ot,"review")})),zt===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:rt.success_status,onChange:Ot=>Dn(Ot,"success_status")})),y.createElement(et.t7,{className:ge.input,style:{bottom:zt===1?10:-5},value:rt.keyword,onChange:Ot=>Dn(Ot,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),y.createElement(We.default,{className:"mt20",columns:Yt,scroll:((ft=ie==null?void 0:ie.data)==null?void 0:ft.length)>7?{y:300}:{},dataSource:(ie==null?void 0:ie.data)||[],loading:xt,onChange:Gt,pagination:{total:se,pageSize:rt.per_page,current:rt.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:He,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,Pe.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:Xe,max:yt,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(fe.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:_t,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:ht,destroyOnClose:!0,onOk:jn,onCancel:()=>Qe(!1)},y.createElement(dt.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},y.createElement(Fe.Z,{ref:Ot=>tt.current=Ot}))),y.createElement(fe.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Vt,width:710,onCancel:()=>on(!1),footer:null},y.createElement(Ge.Z,{spinning:Fn},y.createElement("div",{className:ge.operating},Lt.map((Ot,Wt)=>y.createElement("div",{key:Wt,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}}))))}},99545: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"},ce=E(62957),_e="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=(De,fe,We)=>new Promise((Te,dt)=>{var Ge=Pe=>{try{we(We.next(Pe))}catch(Fe){dt(Fe)}},Ne=Pe=>{try{we(We.throw(Pe))}catch(Fe){dt(Fe)}},we=Pe=>Pe.done?Te(Pe.value):Promise.resolve(Pe.value).then(Ge,Ne);we((We=We.apply(De,fe)).next())}),ke=({type:De,resdata:fe,onok:We,oktext:Te,okloading:dt})=>{const[Ge,Ne]=(0,y.useState)(!1),{can_copy_list:we,can_copy_num:Pe,challenge_type:Fe,course_data_list:et,no_copy_list:St,no_copy_num:Ae,no_use_list:Oe,no_use_num:qe,repeat_shixun_num:Je,student_count:ct,total_num:bt,use_num:st}=fe;let $e=Pe>0||De==="exercise";(0,y.useEffect)(()=>{(fe==null?void 0:fe.student_count)>0&&Ne(!0)},[fe]),console.log("---11",dt),(0,y.useEffect)(()=>{dt||Ne(!1)},[dt]);const pe=()=>{if(De==="exercise"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="exercise"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="shixun"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="shixun"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="subject"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="subject"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",y.createElement("span",{className:ge.orangeColor},ct)," \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(De==="exercisepush")return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="shixunpush"&&Fe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="shixunpush"&&Fe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ge.orangeColor},ct),"\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(De==="exercise"||De==="subject"||De==="exercisepush"||De==="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},De==="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"),(De==="subject"||De==="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"),De==="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,de)=>y.createElement("a",{href:`/shixuns/${xe.identifier}/challenges`,target:"_blank"},"\u300A",xe==null?void 0:xe.name,"\u300B",de+1!==Ae&&"\u3001"))))),Pe>0&&y.createElement("div",{style:{marginTop:20}},y.createElement("span",{className:ge.flex},y.createElement("img",{src:_e,style:{width:14}}),y.createElement("span",{className:ge.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:ge.statusbody},De==="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"),(De==="subject"||De==="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"),De==="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,we==null?void 0:we.map((xe,de)=>y.createElement("a",{href:`/shixuns/${xe.identifier}/challenges`,target:"_blank"},"\u300A",xe==null?void 0:xe.name,"\u300B",de+1!==Pe&&"\u3001"))))));if(De==="shixun")return y.createElement("div",{style:{marginTop:20}},Pe>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(ce.default,{open:Ge,onCancel:()=>{Ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!$e&&"none"}},zIndex:1003,confirmLoading:dt,okText:$e?Te:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ee(void 0,null,function*(){$e?yield We([...we,...Oe]):Ne(!1)})},y.createElement("div",{style:{maxHeight:600,overflow:"auto"}},pe(),Le()))}},80006:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ee}});var y=E(59301),ge={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},ce=E(92310),_e=E.n(ce),Ee=({className:Ce,style:ke,state:De,onClick:fe})=>{var We,Te;return y.createElement("div",{onClick:fe,className:_e()(De?(We=ge)==null?void 0:We.redBtn:(Te=ge)==null?void 0:Te.btn,Ce),style:ke},De?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")))}},11897:function(Rn,qt,E){"use strict";E.d(qt,{h:function(){return Ae}});var y=E(59301),ge=E(82326),ce=E(28284),_e=E(7939),Se=E(89780),Ee=E.n(Se),Ce=E(47618),ke=E(43334),De=Object.defineProperty,fe=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ne=(Oe,qe,Je)=>qe in Oe?De(Oe,qe,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Oe[qe]=Je,we=(Oe,qe)=>{for(var Je in qe||(qe={}))dt.call(qe,Je)&&Ne(Oe,Je,qe[Je]);if(Te)for(var Je of Te(qe))Ge.call(qe,Je)&&Ne(Oe,Je,qe[Je]);return Oe},Pe=(Oe,qe)=>fe(Oe,We(qe));const Fe=ge.default.Option,et={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:Oe,onCancel:qe})=>{const[Je,ct]=(0,y.useState)("python");function bt($e){ct(St[$e][1])}function st($e){Oe($e)}return y.createElement(ce.default,Pe(we({},et),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:st,style:{width:500}}),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(ge.default,{getPopupContainer:$e=>$e.parentNode,onChange:bt},Object.keys(St).map($e=>y.createElement(Fe,{key:$e,value:$e},St[$e][0])))),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.createElement(Ae,{mode:Je})),y.createElement("div",{className:"flex-container flex-end"},y.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(_e.ZP,{type:"ghost",onClick:qe},"\u53D6\u6D88")))};function Ae({value:Oe,onChange:qe,mode:Je,options:ct={}}){const bt=(0,y.useRef)(),[st,$e]=(0,y.useState)();return(0,y.useEffect)(()=>{if(st){let pe=function(Le){const xe=Le.getValue();qe&&qe(xe)};return st.on("change",pe),()=>{st.off("change",pe)}}},[st,qe]),(0,y.useEffect)(()=>{st&&st.setOption("mode",Je)},[st,Je]),(0,y.useEffect)(()=>{st&&(Oe!==st.getValue()||Oe==="")&&setTimeout(()=>{st.setValue(Oe||"")},300)},[st,Oe]),(0,y.useEffect)(()=>{if(bt.current&&!st){const pe=Ee().fromTextArea(bt.current,we({mode:Je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ct));$e(pe)}},[bt.current,st]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:bt}))}},46195:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return bn}});var y=E(59301),ge=E(73635),ce=E(89780),_e=E.n(ce),Se=E(76374),Ee=E(47618),Ce=E(6313),ke=E(25717),De=E(99498),fe=E(25419),We=E(67549),Te=E(75363),dt=({value:tn="",className:wn,showTextOnly:Cn,showLines:Pn,style:vr={}})=>{const Qn=(0,y.useMemo)(()=>"",[tn]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:Qn}}))},Ge=Object.defineProperty,Ne=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,St=(tn,wn,Cn)=>wn in tn?Ge(tn,wn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):tn[wn]=Cn,Ae=(tn,wn)=>{for(var Cn in wn||(wn={}))Fe.call(wn,Cn)&&St(tn,Cn,wn[Cn]);if(Pe)for(var Cn of Pe(wn))et.call(wn,Cn)&&St(tn,Cn,wn[Cn]);return tn},Oe=(tn,wn)=>Ne(tn,we(wn));let qe=[{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 Je({onActionCallback:tn,title:wn,icon:Cn,actionName:Pn,className:vr="",children:Qn}){function dr(){tn(Pn)}return y.createElement("a",{title:wn,className:vr,onClick:dr},y.createElement("i",{className:`${Cn}`}),Qn)}var ct=({watch:tn,showNullButton:wn,showNullProgramButton:Cn,onActionCallback:Pn,fullScreen:vr,insertTemp:Qn,hidetoolBar:dr,extraUse:br})=>{const yr=[...qe,{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"},!dr&&yr.map((Vr,Zr)=>y.createElement("li",{key:Zr},Vr.actionName?y.createElement(Je,Oe(Ae({},Vr),{onActionCallback:Pn})):y.createElement("span",{className:"v-line"}))),wn?y.createElement("li",null,y.createElement(Je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Pn},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Cn?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement(Je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Pn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement(Je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Pn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Qn&&y.createElement("li",null,y.createElement(Je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qn}`,onActionCallback:Pn},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),br&&y.createElement("li",null,br),y.createElement("li",{className:"btn-full-screen"},y.createElement(Je,{icon:`${vr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:vr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Pn})))},bt=E(81675),st=E(28284),$e=E(37568),pe=E(7939),Le=Object.defineProperty,xe=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,it=(tn,wn,Cn)=>wn in tn?Le(tn,wn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):tn[wn]=Cn,Ie=(tn,wn)=>{for(var Cn in wn||(wn={}))Ye.call(wn,Cn)&&it(tn,Cn,wn[Cn]);if(Ct)for(var Cn of Ct(wn))je.call(wn,Cn)&&it(tn,Cn,wn[Cn]);return tn},ye=(tn,wn)=>xe(tn,de(wn));const vt={labelCol:{span:4},wrapperCol:{span:20}};var Ht=({callback:tn,onCancel:wn})=>{function Cn(Pn){tn(Pn)}return y.createElement(st.default,ye(Ie({},vt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Cn,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:wn},"\u53D6\u6D88")))},Et=E(11897),Be=E(59165),ft=E(62957),ot=E(77019),Xt=E(95382),xt=E(59301),wt=({callback:tn,onCancel:wn})=>{const Cn=document.createElement("canvas"),Pn=Cn.getContext("2d");Cn.width=1e3,Cn.height=800,Pn.fillStyle="#ffffff",Pn.fillRect(0,0,Cn.width,Cn.height);const vr=Cn.toDataURL("image/png");return xt.createElement(ft.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},xt.createElement(ot.Z,{style:{height:"100vh"}},xt.createElement(Xt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:vr,visible:!0,title:String(Date.now())},onOk:Qn=>{tn({src:Qn.url})},onClose:wn})))},ht=E(36207),un=E(5269),zt=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:wn,callback:Cn},Pn)=>{let vr=(0,y.useRef)(),Qn=(0,y.useRef)(),dr=(0,y.useRef)(),br=(0,y.useRef)(!1);const yr=(0,y.useRef)(!1);console.log("ref:",Pn);const[Vr,Zr]=(0,y.useState)(0),[An,$n]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{Zr(1)},[]),(0,y.useImperativeHandle)(Pn,()=>({setHeight:$n})),ae.createElement("div",{ref:yr,className:"body-overflow-initial"},ae.createElement(ht.Z,{width:"100vw",height:An,footer:null,closable:!0,placement:"bottom",open:!!Vr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ue.drawerWrap}`,onClose:()=>{window.saveDrawData(fr=>{Cn({src:`/api/attachments/${fr}`,id:fr})})},title:ae.createElement(ot.Z,{align:"middle"},ae.createElement(un.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ae.createElement(un.Z,{onClick:()=>{$n(An==="60px"?"100vh":"60px")}},ae.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ae.createElement(un.Z,{onClick:()=>{window.saveDrawData(fr=>{if(fr===null){zt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}zt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Cn({src:`/api/attachments/${fr}`,id:fr,disabledClose:!0})})}},ae.createElement(pe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ae.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${wn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Qn})))}),he=E(58962),ie=E(47889),me=E(4875);const He=ie.ZP.Group,It={margin:"0 8px"};var Xe=({callback:tn,onCancel:wn})=>{function Cn(Pn){tn(Pn)}return y.createElement(st.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Cn},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(me.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(me.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(He,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:wn},"\u53D6\u6D88")))},Ke=E(58755),yt=E(95075),Bt=E.n(yt),Qe=(0,y.forwardRef)(({use3d:tn,width:wn,height:Cn,callback:Pn,showSaveButton:vr},Qn)=>{const dr=(0,y.useRef)(),br=(0,y.useRef)(),[yr,Vr]=(0,y.useState)(!1),Zr=(0,y.useRef)({id:dr,appName:"graphing",width:wn||1e3,height:Cn||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)(()=>{br.current=new(Bt())(Zr.current,!0),window.onload=function(){br.current.inject("applet_container")}},[]);const An=()=>{var $n=window.ggbApplet.getPNGBase64(1,!0,72);return Pn&&Pn($n),$n};return(0,y.useEffect)(()=>{Zr.current.appName=yr?"3D":"graphing",br.current.inject("applet_container")},[yr]),(0,y.useEffect)(()=>{Vr(tn)},[tn]),(0,y.useImperativeHandle)(Qn,()=>({getImgData:An})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dr}),y.createElement(ot.Z,{align:"middle"},y.createElement(un.Z,{flex:1},y.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:yr,onChange:$n=>Vr($n)})),y.createElement(un.Z,null,y.createElement(pe.ZP,{size:"large",onClick:An,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tt=E(58629);const Vt="link",on="upload-image",Fn="add-flowchart",gn="draw-image",Lt="add-flowchart",Qt="code-block",jt="add-table",rt="------------",Nt={default:rt,left:`:${rt}`,center:`:${rt}:`,right:`${rt}:`};var fn=E(14167),yn=E(49411);function lt(){}let Rt=0;const en=1e4,Pt="\u2581",Yt="@\u2581\u2581@",Gt="@\u2581@",Sn=`
|
|
|
**\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 Dn(tn){return/^\d+$/.test(tn)?`${tn}px`:tn}const Ot=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wt={[Ot+"-B"]:"bold",[Ot+"-I"]:"italic"},ln={[Vt]:"\u6DFB\u52A0\u94FE\u63A5",[Qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[on]:"\u6DFB\u52A0\u56FE\u7247",[gn]:"\u6DFB\u52A0\u753B\u56FE",[Fn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[jt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var bn=({defaultValue:tn="",onChange:wn,width:Cn="100%",height:Pn=400,miniToolbar:vr=!1,isFocus:Qn=!1,watch:dr,insertTemp:br,mode:yr="markdown",id:Vr="markdown-editor-id",showResizeBar:Zr=!1,noStorage:An=!1,showNullButton:$n=!1,showNullProgramButton:fr=!1,hidetoolBar:ur=!1,fullScreen:kt=!1,onBlur:Ut,onCMBeforeChange:pt,onFullScreen:Zt,className:at="",disablePaste:gt=!1,disabled:cn=!1,disabledFill:ar=!1,placeholder:mr="",values:At="",extraUse:Tt,onAddBlank:Mt})=>{const[Kt,On]=(0,y.useState)(null),[Kn,Un]=(0,y.useState)(tn),[Hn,hr]=(0,y.useState)(dr),[Pr,Tr]=(0,y.useState)(kt),[Lr,Cr]=(0,y.useState)(""),[Rr,Xr]=(0,y.useState)(0),[oa,ta]=(0,y.useState)(Pn),[xa,Fa]=(0,y.useState)(!1),[Ur,ya]=(0,y.useState)(0),[Xa,Ia]=(0,y.useState)(0),pa=(0,y.useRef)(),kr=(0,y.useRef)(),Za=(0,y.useRef)(),Sa=(0,y.useRef)(),la=(0,y.useRef)(),Kr=(0,y.useRef)(),Ya=(0,ge.useDispatch)();(0,y.useEffect)(()=>{const Er=window.scrollY||window.pageYOffset;Un(At),Kt==null||Kt.setValue(At),window.scrollTo(0,Er)},[At]),(0,y.useEffect)(()=>{Zt==null||Zt(Pr)},[Pr]),(0,y.useEffect)(()=>{if(pa.current){let Er=function(jr,Qr){var Na;if(gt){Qr.preventDefault();return}const $a=Qr.clipboardData;if($a){const ea=$a.types.toString(),ai=$a.items;if(ea==="Files"||$a.types.indexOf("Files")>-1){if(Qr.preventDefault(),yr=="stex")return;try{let gi=ai[1];((Na=ai[0])==null?void 0:Na.kind)==="file"&&(gi=ai[0]);const zi=gi.getAsFile(),Ui=zi.name.split(".").pop();(0,Be.I)(zi,Ji=>{var Yi,co,No;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="" />`):((co=zi==null?void 0:zi.type)==null?void 0:co.indexOf("video"))>-1?Dr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ji.id}"></video>`):((No=zi==null?void 0:zi.type)==null?void 0:No.indexOf("pdf"))>-1?Dr.replaceSelection(`<a href="/api/attachments/${Ji.id}?type=${zi.type}&disposition=inline" target="_blank">${zi.name}</a>`):jn.includes(Ui)?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(gi){zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dr=_e().fromTextArea(pa.current,{mode:yr,lineNumbers:!vr,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});return Dr.on("keyup",function(jr,Qr){Qr.keyCode===8&&(jr.getValue()==""?Dr.setOption("placeholder",mr):Dr.setOption("placeholder",null))}),Dr.on("keydown",function(jr,Qr){if(Qr.keyCode===8){var Na=ji(jr);Na&&Qr.preventDefault()}}),Qn&&Dr.focus(),Dr.on("paste",Er),cn&&Dr.on("beforeChange",function(jr,Qr){(Qr.origin==="paste"||Qr.origin==="+input")&&Qr.cancel()}),On(Dr),()=>{Dr.off("paste",Er)}}},[]);const Mi=(0,y.useCallback)(()=>{if(kr.current)try{}catch(Er){console.log(Er,"---- to set md editor body height")}},[oa,kr,Pr]);(0,y.useEffect)(()=>{function Er(){let Dr=new Se.Z(jr=>{for(let Qr of jr)(Qr.target.offsetHeight>0||Qr.target.offsetWidth>0)&&(Mi(),Kt.setSize("100%","100%"),Kt.refresh())});return Dr.observe(pa.current.parentElement),Dr}if(Kt){const Dr=Er();return()=>{var jr,Qr;(jr=pa.current)!=null&&jr.parentElement&&Dr.unobserve((Qr=pa.current)==null?void 0:Qr.parentElement)}}},[Kt,Mi]),(0,y.useEffect)(()=>{if(Kt){let Er=[];for(const[Dr,jr]of Object.entries(Wt)){let Qr={[Dr]:()=>{za(jr)}};Er.push(Qr),Kt.addKeyMap(Qr)}return()=>{for(let Dr of Er)Kt.removeKeyMap(Dr)}}},[Kt]),(0,y.useEffect)(()=>{kt!==Pr&&Tr(kt)},[kt]),(0,fn.Z)(()=>{if(!An&&Rr>0){let Er=new Date().getTime(),Dr=window.sessionStorage.getItem(Vr);Er>=Rr+en&&(!Dr||Dr!==Kn)&&(window.sessionStorage.setItem(Vr,Kn),Fa(!0))}},en),(0,y.useEffect)(()=>{hr(dr)},[Kt,dr]),(0,y.useEffect)(()=>{Kt&&Qn&&Kt.focus()},[Kt,Qn]),(0,y.useEffect)(()=>{if(Hn&&Kt){let Er=function(jr){let Qr=jr.target;if(Sa.current){let Na=Qr.scrollTop/Qr.scrollHeight;Sa.current.scrollTop=Sa.current.scrollHeight*Na}};const Dr=Kt.getScrollerElement();return Dr.addEventListener("scroll",Er),()=>{Dr.removeEventListener("scroll",Er)}}},[Kt,Hn]),(0,y.useEffect)(()=>{if(Kt&&pt){let Er=function(Dr,jr){pt(Dr,jr)};return Kt.on("beforeChange",Er),()=>{Kt.off("beforeChange",Er)}}},[Kt,pt]),(0,y.useEffect)(()=>{if(Kt&&Ut){let Er=function(){Ut(Kt.getValue())};return Kt.on("blur",Er),()=>{Kt.off("blur",Er)}}},[Kt,Ut]);function ji(Er,Dr){var jr=Er.getDoc(),Qr=jr.getCursor(),Na=jr.getLine(Qr.line),$a=Na.charAt(Qr.ch-1),ea=Na.lastIndexOf("@\u2581@",Qr.ch),ai=Na.lastIndexOf("@\u2581\u2581@",Qr.ch),gi=ea>ai?ea:ai,zi=ea>ai?3:4;if(Yt.indexOf($a)===-1)return null;if(console.log("change1:",Dr,Er,Na,Qr,gi,ea,ai,$a),gi>=0&&Qr.ch-gi<5){var Ui=gi+zi;return jr.replaceRange("",{line:Qr.line,ch:gi},{line:Qr.line,ch:Ui}),{line:Qr.line,ch:Ui}}return null}(0,y.useEffect)(()=>{if(Kt){let Er=function(Dr,jr){const Qr=Dr.getValue();Un(Qr),Xr(new Date().getTime()),Dr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),wn&&(fr?wn(Qr,xr(Qr)):wn(Qr))};return Kt.on("change",Er),()=>{Kt.off("change",Er)}}},[Kt,wn]),(0,y.useEffect)(()=>{if(Kt)if(tn==null)Kt.setValue(""),Un("");else{const Er=window.scrollY||window.pageYOffset;tn!==Kt.getValue()&&(Kt.setValue(tn),Un(tn),Kt.setCursor(cn?1:Kt.lineCount(),0),window.scrollTo(0,Er))}},[Kt,tn]);const za=(0,y.useCallback)(Er=>{const Dr=Kt.getCursor(),jr=Kt.getSelection();let Qr=jr.split(`
|
|
|
`);switch(Er){case"bold":return Kt.replaceSelection("**"+jr+"**"),jr===""&&Kt.setCursor(Dr.line,Dr.ch+2),Kt.focus();case"italic":return Kt.replaceSelection("*"+jr+"*"),jr===""&&Kt.setCursor(Dr.line,Dr.ch+1),Kt.focus();case"code":return Kt.replaceSelection("`"+jr+"`"),jr===""&&Kt.setCursor(Dr.line,Dr.ch+1),Kt.focus();case"inline-latex":return(0,yn.Ye)(Ya)?void 0:(Cr("inline-latex"),Kt.focus());case"latex":return Kt.replaceSelection("```latex\n"+jr+"\n```"),Kt.setCursor(Dr.line+1,jr.length+1),Kt.focus();case"line-break":return Kt.replaceSelection(`<br/>
|
|
|
`),Kt.focus();case"list-ul":return jr===""?Kt.replaceSelection("- "+jr):Kt.replaceSelection(Qr.map(Na=>Na===""?"":`- ${Na}`).join(`
|
|
|
`)),Kt.focus();case"list-ol":return jr===""?Kt.replaceSelection("1. "+jr):Kt.replaceSelection(Qr.map((Na,$a)=>Na===""?"":`${$a+1}. ${Na}`).join(`
|
|
|
`)),Kt.focus();case"add-null-ch":Mt==null||Mt();return;case"add-signal":return jr===""&&Kt.setCursor(Dr.line,Dr.ch),Kt.replaceSelection(Gt),Kt.focus();case"add-multiple":return jr===""&&Kt.setCursor(Dr.line,Dr.ch),Kt.replaceSelection(Yt),Kt.focus();case"inster-template-1":return jr===""&&Kt.setCursor(Dr.line,Dr.ch),Kt.replaceSelection(Sn),Kt.focus();case"eraser":return Kt.setValue(""),Kt.focus();case"trigger-watch":return hr(!Hn),Kt.focus();case"trigger-full-screen":return Tr(!Pr),Kt.focus();case Vt:Cr(Vt);return;case Qt:Cr(Qt);return;case on:Cr(on);return;case gn:Cr(gn);return;case"maths-latex":if((0,yn.Ye)(Ya))return;Cr("maths-latex");return;case Fn:la.current="",sessionStorage.removeItem("file_id"),Cr(Fn);return;case jt:Cr(jt);return;default:throw new Error}},[Kt,Hn,Pr]),Di=(0,y.useCallback)((Er,Dr)=>{var jr,Qr,Na,$a,ea,ai;Er!=null&&Er.disabledClose||Cr("");const{src:gi,alt:zi,id:Ui}=Er||{};switch(Lr){case Vt:const{title:$o,link:Wo}=Er;return Kt.replaceSelection(`[${$o}](${Wo})`),Kt.focus();case Qt:const{language:Ba,content:Ii}=Er;return Kt.replaceSelection(["```"+Ba,Ii,"```"].join(`
|
|
|
`)),Kt.focus();case"maths-latex":for(var Ji=atob(Er),Yi=new Uint8Array(Ji.length),co=0;co<Ji.length;co++)Yi[co]=Ji.charCodeAt(co);var No=new Blob([Yi],{type:"image/png"});return(0,Be.I)(No,Vo=>{Vo.id?Kt.replaceSelection(``):(Vo==null?void 0:Vo.status)===401&&(document.location.href="/user/login")}),Kt.focus();case"inline-latex":return(0,yn.Ye)(Ya)?void 0:(Kt.replaceSelection("`$$"+Er+"$$`"),Kt.focus());case Lt:return Ui?(Kt.getValue().indexOf(gi)===-1?Kt.replaceSelection(`<center><img id="${Ui}" width="80%" src="${gi}" class="draw-flowchart" alt="${zi||""}" /></center>`):document.getElementById(Ui).src=he.Z.API_SERVER+gi+"?t="+Date.now(),Kt.focus()):void 0;case on:case gn:const ri=Dr,So=(Na=(Qr=(jr=ri==null?void 0:ri.name)==null?void 0:jr.split("."))==null?void 0:Qr.pop)==null?void 0:Na.call(Qr);return(($a=ri==null?void 0:ri.type)==null?void 0:$a.indexOf("image"))>-1||!(ri!=null&&ri.type)?ri!=null&&ri.align||ri!=null&&ri.width?Kt.replaceSelection(`<p style="text-align:${ri.align||"initial"}"><img width="${ri.width?ri.width+"%":"initial"}" src="${gi}" alt="${zi||""}" /></p>`):Kt.replaceSelection(`<img width="100%" src="${gi}" alt="${zi||""}" />`):((ea=ri==null?void 0:ri.type)==null?void 0:ea.indexOf("video"))>-1?Kt.replaceSelection(`<video width="100%" controls src="${gi}"></video>`):((ai=ri==null?void 0:ri.type)==null?void 0:ai.indexOf("pdf"))>-1?Kt.replaceSelection(`<a href="${gi}?type=${ri.type}&disposition=inline" target="_blank">${ri.name}</a>`):jn.includes(So)?Kt.replaceSelection(`<a href="${gi}?type=office&disposition=inline" target="_blank">${ri.name}</a>`):Kt.replaceSelection(`[${ri.name}](${gi})`),Kt.focus();case jt:const{row:ci,col:il,align:$l}=Er;let Ol=`
|
|
|
`;for(let Vo=0;Vo<ci;Vo++){let Yo=[],no=[];for(let Nl=0;Nl<il;Nl++)Vo===1&&no.push(Nt[$l]),Yo.push(" ");Vo===1&&(Ol+=`| ${no.join(" | ")} |
|
|
|
`),Ol+=`| ${Yo.join(il===1?"":" | ")} |
|
|
|
`}return Kt.replaceSelection(Ol+`
|
|
|
`),Kt.focus();default:throw new Error}},[Kt,Lr]),mi=(0,y.useMemo)(()=>{switch(Lr){case Vt:return y.createElement(Ht,{callback:Di,onCancel:Wi});case Qt:return y.createElement(Et.Z,{callback:Di,onCancel:Wi});case on:return y.createElement(Be.Z,{callback:Di,onCancel:Wi});case Fn:return y.createElement(se,{editImgId:la.current,callback:Di,onCancel:Wi});case jt:return y.createElement(Xe,{callback:Di,onCancel:Wi});case"maths-latex":return y.createElement(Qe,{showSaveButton:!0,callback:Di});case"inline-latex":return y.createElement(tt.Z,{showSaveButton:!0,callback:Di});default:return null}},[Lr]);function Wi(){Cr("")}(0,y.useEffect)(()=>{if(Za.current){let Er=function(ea){Na=!0,$a=ea.pageY},Dr=function(){Na=!1},jr=function(ea){if(Na){let ai=ea.pageY-$a;ai<0&&(ai=0),ai>300&&(ai=300);let gi=Pn+ai+"px";ta(gi)}},Qr=Za.current,Na=!1,$a=0;return Qr.addEventListener("mousedown",Er),document.addEventListener("mousemove",jr),document.addEventListener("mouseup",Dr),()=>{Qr.removeEventListener("mousedown",Er),document.removeEventListener("mousemove",jr),document.removeEventListener("mouseup",Dr)}}},[Kt,Za]),(0,y.useEffect)(()=>{ta(Pn)},[Pn]);const Ei=Dn(Cn),ei=Dn(oa),Ar={width:Ei,height:ei},Jn=(0,y.useMemo)(()=>{if(Rr){let Er=new Date(Rr),Dr=Er.getHours(),jr=Er.getMinutes(),Qr=Er.getSeconds();return Dr=Dr<10?"0"+Dr:Dr,jr=jr<10?"0"+jr:jr,Qr=Qr<10?"0"+Qr:Qr,`${Dr}:${jr}:${Qr}`}return 0},[Rr]),xr=Er=>{const Dr=[];if(fr){let jr=-1;Er=Er.replace(/(@▁▁@|@▁@)/g,function(Qr,Na,$a){Dr.push({multiLine:Qr!==Gt})})}return Dr};function Sr(){window.sessionStorage.removeItem(Vr),Fa(!1),Xr(0)}function tr(){Fa(!1),Xr(0),Kt.setValue(window.sessionStorage.getItem(Vr))}(0,y.useEffect)(()=>{ln[Lr]&&Lr!==gn&&Lr!==Fn&&setTimeout(()=>{const Er=document.getElementsByClassName("markdown-popup-form")[0],Dr=window.innerWidth/2-Er.offsetWidth/2,jr=window.innerHeight/2-Er.offsetHeight/2;ya(Dr),Ia(jr)},0)},[Lr]);const $r=Er=>{Er.preventDefault();const Dr=Er.clientX-Ur,jr=Er.clientY-Xa;document.body.onmousemove=Qr=>{let Na=Qr.clientX-Dr,$a=Qr.clientY-jr;const ea=document.getElementsByClassName("markdown-popup-form")[0],ai=window.innerWidth-ea.offsetWidth,gi=window.innerHeight-ea.offsetHeight;Na=Math.max(0,Math.min(Na,ai)),$a=Math.max(0,Math.min($a,gi)),sa(Qr.clientX,Qr.clientY,Dr,jr)&&(ya(Na),Ia($a))},document.body.onmouseup=function(){document.body.onmousemove=null}},sa=(Er,Dr,jr,Qr)=>{const Na=document.body.clientHeight,$a=document.body.clientWidth;return Er<20&&jr>Er||Er>$a-20&&jr<Er||Dr<20&&Qr>Dr||Dr>Na-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:kr},y.createElement("div",{className:`markdown-editor-container ${at} ${Hn?"on-preview":""} ${vr?"mini":""} ${Pr?"full-screen":""}`,style:Ar},y.createElement(ct,{insertTemp:br,watch:Hn,fullScreen:Pr,showNullButton:$n,showNullProgramButton:fr,onActionCallback:za,hidetoolBar:ur,extraUse:Tt}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:pa,placeholder:mr})),Hn?y.createElement("div",{ref:Sa,className:"preview-container"},yr==="stex"&&y.createElement(dt,{value:Kn}),yr!=="stex"&&y.createElement(Te.Z,{edit:!0,disabledFill:ar,showProgramFill:fr,value:Kn,openEditor:Er=>{var Dr;la.current=Er,(Dr=Kr.current)==null||Dr.setHeight("100vh"),setTimeout(()=>{Cr("add-flowchart")},150)}})):null))),Zr?y.createElement("a",{ref:Za,className:"editor-resize"}):null,Lr===gn&&y.createElement(wt,{callback:Di,onCancel:Wi}),Lr===Fn&&y.createElement(se,{ref:Kr,editImgId:la.current,callback:Di,onCancel:Wi}),y.createElement(bt.Z,null,ln[Lr]&&Lr!==gn&&Lr!==Fn?y.createElement(ft.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ur,top:Xa},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:$r},ln[Lr]),open:!0,onCancel:Wi,footer:null,destroyOnClose:!0,width:Lr===Fn?"1200px":null,height:Lr===Fn?"80vh":null,className:"markdown-popup-form"},mi):null))}},59165:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return qe},I:function(){return ct}});var y=E(28284),ge=E(6767),ce=E(37568),_e=E(44104),Se=E(4875),Ee=E(47889),Ce=E(7939),ke=E(60562),De=E(59301),fe=E(59301),We=Object.defineProperty,Te=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Pe=(bt,st,$e)=>st in bt?We(bt,st,{enumerable:!0,configurable:!0,writable:!0,value:$e}):bt[st]=$e,Fe=(bt,st)=>{for(var $e in st||(st={}))Ne.call(st,$e)&&Pe(bt,$e,st[$e]);if(Ge)for(var $e of Ge(st))we.call(st,$e)&&Pe(bt,$e,st[$e]);return bt},et=(bt,st)=>Te(bt,dt(st));const{useForm:St}=y.default,Ae={width:280,marginRight:10},Oe={labelCol:{span:5},wrapperCol:{span:19}};var qe=({callback:bt,onCancel:st})=>{const[$e]=St();let pe=(0,De.useRef)();function Le(Ct){pe.current.width=$e.getFieldValue("width"),pe.current.align=$e.getFieldValue("align"),bt(Ct,pe.current)}function xe(Ct,Ye){if(Ct.status===-1){ge.ZP.error(Ct.message);return}$e.setFieldsValue({src:`/api/attachments/${Ct.id}`,type:Ye.type})}function de(Ct){let Ye=Ct.target.files[0];pe.current=Ye,ct(Ye,xe)}return fe.createElement(y.default,et(Fe({form:$e},Oe),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),fe.createElement(y.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(y.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ce.default,{style:Ae})),fe.createElement(Je,{onFileChange:de}))),fe.createElement(y.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ce.default,{style:{width:264}})),fe.createElement(y.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(_e.Z,null,fe.createElement(y.default.Item,{name:"width",style:{margin:0}},fe.createElement(Se.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(y.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.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"}]})),fe.createElement("aside",null,fe.createElement(y.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Ce.ZP,{type:"default",onClick:st},"\u53D6\u6D88"))))};function Je({onFileChange:bt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:bt}))}function ct(bt,st){if(!bt)throw new String("\u6CA1\u6709\u6587\u4EF6");let $e=new FormData;$e.append("editormd-image-file",bt),$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),bt)},!1),pe.addEventListener("error",function(Le){console.error(Le)},!1),pe.open("POST",`${ke.KI}/api/attachments.json`),pe.send($e)}},81675:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ce}});var y=E(59301),ge=E(4676);class ce 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)}}},28444:function(Rn,qt,E){"use strict";E.d(qt,{SV:function(){return wt},ZP:function(){return xt}});var y=E(59301),ge=E(76374);const ce={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"]},_e={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),De=E.n(ke),fe=(ht,un,zt)=>new Promise((ue,ae)=>{var re=ie=>{try{he(zt.next(ie))}catch(me){ae(me)}},se=ie=>{try{he(zt.throw(ie))}catch(me){ae(me)}},he=ie=>ie.done?ue(ie.value):Promise.resolve(ie.value).then(re,se);he((zt=zt.apply(ht,un)).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=(ht,un,zt,ue)=>{const ae=un.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:zt.lineNumber,endColumn:zt.column});return Array.from(new Set(ae.match(/\b\w{2,}\b/g)||[])).map(se=>({label:se,kind:ht.languages.CompletionItemKind.Text,insertText:se,range:ue}))},dt=(ht,un,zt,ue)=>{ht.languages.registerCompletionItemProvider(un,{provideCompletionItems(ae,re){const se=ae.getWordUntilPosition(re),he={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(ht,ae,re,he),...zt.map(He=>({label:He,kind:ht.languages.CompletionItemKind.Keyword,documentation:He,insertText:He,insertTextRules:ht.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:he})),...ue.map(He=>({label:He.label,kind:ht.languages.CompletionItemKind.Snippet,documentation:He.content,insertText:ie.startsWith("#")?He.content.replace(/#/,""):He.content,insertTextRules:ht.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:he}))]}}})};var Ge=ht=>{We.languages.forEach(un=>{ht.languages.registerDocumentFormattingEditProvider(un,{provideDocumentFormattingEdits(zt){return fe(this,null,function*(){const ue=De()(zt.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:zt.getFullModelRange(),text:ue}]})}})}),dt(ht,"java",_e.keywords,_e.quickKey),dt(ht,"cpp",Se.keywords,Se.quickKey),dt(ht,"c",ce.keywords,[]),dt(ht,"python",Ee.keywords,Ee.quickKey),dt(ht,"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 we=Object.defineProperty,Pe=(ht,un,zt)=>un in ht?we(ht,un,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ht[un]=zt,Fe=(ht,un,zt)=>Pe(ht,typeof un!="symbol"?un+"":un,zt);const et=class Gc{constructor(un,zt,ue){this.placeholder=un,this.editor=zt,this.monaco=ue,zt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Gc.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)}};Fe(et,"ID","editor.widget.placeholderHint");var Ae=et,Oe=E(96236),qe=E(6767),Je=E(25399),ct=E(89392),bt=E(54087),st=E(56102),$e=Object.defineProperty,pe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Ye=(ht,un,zt)=>un in ht?$e(ht,un,{enumerable:!0,configurable:!0,writable:!0,value:zt}):ht[un]=zt,je=(ht,un)=>{for(var zt in un||(un={}))de.call(un,zt)&&Ye(ht,zt,un[zt]);if(xe)for(var zt of xe(un))Ct.call(un,zt)&&Ye(ht,zt,un[zt]);return ht},it=(ht,un)=>pe(ht,Le(un)),Ie=(ht,un)=>{var zt={};for(var ue in ht)de.call(ht,ue)&&un.indexOf(ue)<0&&(zt[ue]=ht[ue]);if(ht!=null&&xe)for(var ue of xe(ht))un.indexOf(ue)<0&&Ct.call(ht,ue)&&(zt[ue]=ht[ue]);return zt},ye=(ht,un,zt)=>new Promise((ue,ae)=>{var re=ie=>{try{he(zt.next(ie))}catch(me){ae(me)}},se=ie=>{try{he(zt.throw(ie))}catch(me){ae(me)}},he=ie=>ie.done?ue(ie.value):Promise.resolve(ie.value).then(re,se);he((zt=zt.apply(ht,un)).next())});function vt(ht){return/^\d+$/.test(ht)?`${ht}px`:ht}function Ht(){}let Et=!1;const Be={"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 ft(ht=[]){let un=ht;if(Array.isArray(ht)){for(let zt=0;zt<ht.length;zt++){let ue=Be[ht[zt]];if(ue)return ue}return un[0]}return Be[un]||un}let ot=null;const Xt=()=>ye(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ht){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ht)}});var xt=ht=>{var un=ht,{width:zt="100%",height:ue="100%",value:ae,language:re="javascript",style:se={},options:he={},overrideServices:ie={},theme:me="vs-dark",onEditBlur:He,isCopy:It=!1,onSave:Xe,autoHeight:Ke=!1,forbidCopy:yt=!1,forbidCopyTips:Bt,onChange:_t=Ht,editorDidMount:Qe=Ht,onFocus:tt=Ht,onBreakPoint:Vt=Ht,breakPointValue:on=[],filename:Fn="educoder.txt",errorLine:gn,errorContent:Lt="",highlightLine:Qt,openBreakPoint:jt=!1,placeholder:rt="",showMiniMap:Nt=!0}=un,fn=Ie(un,["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 yn=(0,y.useRef)(),lt=(0,y.useRef)({}),Rt=(0,y.useRef)(),en=(0,y.useRef)(),Pt=(0,y.useRef)([]),Yt=(0,y.useRef)(!1),Gt=(0,y.useRef)(),Sn=(0,y.useRef)(),jn=(0,y.useRef)(!1),[Dn,Zn]=(0,y.useState)(!1);function Ot(){let An;return yn.current&&(An=new ge.Z($n=>{for(let fr of $n)(fr.target.offsetHeight>0||fr.target.offsetWidth>0)&<.current.instance.layout()}),An.observe(yn.current)),An}function Wt(){qe.ZP.warning({content:decodeURIComponent(Bt||Ne),key:"monaco-editor-tip"})}const ln=()=>{let An=lt.current.instance;if(ae!=null&&An&&Dn){const $n=An.getModel();$n&&ae!==$n.getValue()&&(Et=!0,$n.setValue(ae),An.layout(),Et=!1)}};(0,y.useEffect)(()=>{const An=bt.Z.subscribe("formatDocument",$n=>{var fr;let ur=lt.current.instance;(fr=ur==null?void 0:ur.getAction)==null||fr.call(ur,"editor.action.formatDocument").run()});return window.updateMonacoValue=$n=>{_t($n)},An},[]),(0,y.useEffect)(()=>{var An;let $n=lt.current.instance;en.current&&clearTimeout(en.current),en.current=setTimeout(()=>{ln()},500),ae&&(ae!=null&&ae.length)&&((An=$n==null?void 0:$n.updateOptions)==null||An.call($n,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ae.split(/\r\n|\r|\n/g).length))+3,5)}))},[ae,Dn,lt.current]),(0,y.useEffect)(()=>{if(gn&<.current&<.current.instance){let $n=lt.current.instance;$n.changeViewZones(function(fr){var ur=document.createElement("div");ur.style.padding="10px 20px",ur.style.width="calc(100% - 20px)",ur.className="my-error-line-wrp",ur.innerHTML=Lt,fr.addZone({afterLineNumber:gn||11,heightInLines:3,domNode:ur})});var An={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(An),$n.revealPositionInCenter({lineNumber:20,column:1})}},[gn,lt.current,Dn]);const bn=(An="",$n)=>{if(!An||An.trim()==="")return!0;const ur=lt.current.instance.getModel().getLineTokens($n);let kt=!1;for(let Ut=0;Ut<2;Ut++)ur.getStandardTokenType(Ut)===1&&(kt=!0);return kt};(0,y.useEffect)(()=>{var An;const $n=(An=lt.current)==null?void 0:An.instance;if($n&&Dn&&yt){const fr=$n.onDidBlurEditorWidget(()=>{jn.current=!1}),ur=$n.onDidFocusEditorText(()=>{jn.current=!0});return()=>{fr.dispose(),ur.dispose()}}},[lt.current,Dn,yt]),(0,y.useEffect)(()=>{var An;if((An=lt.current)!=null&&An.instance&&Dn&&jt){let $n=lt.current.instance,fr=$n.getModel();if(!fr)return;(()=>{var Tt;let Mt=[],Kt=[];const On=fr.getAllDecorations();for(let Un of On)Un.options.className==="highlighted-line"&&(Mt.push((Tt=Un==null?void 0:Un.range)==null?void 0:Tt.startLineNumber),Kt.push(Un==null?void 0:Un.id));if(Qt===Mt[0])return;fr.deltaDecorations(Kt,[]);const Kn=fr.getLineCount();Qt&&Qt<=Kn&&($n.deltaDecorations([],[{range:new ot.Range(Qt,1,Qt,fr.getLineMaxColumn(Qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),$n.revealLineInCenter(Qt))})();const kt=(Tt=!1)=>{var Mt;let Kt=[],On=[];const Kn=fr.getAllDecorations();for(let Un of Kn)Un.options.linesDecorationsClassName==="breakpoints-select"&&(Kt.push((Mt=Un==null?void 0:Un.range)==null?void 0:Mt.startLineNumber),On.push(Un==null?void 0:Un.id));if(Tt)return{lines:Kt,ids:On};Vt(Kt)},Ut=Tt=>ye(void 0,null,function*(){let Mt={range:new ot.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield fr.deltaDecorations([],[Mt]),kt()}),pt=Tt=>ye(void 0,null,function*(){let Mt=[];const Kt=$n.getLineDecorations(Tt);for(let On of Kt)On.options.linesDecorationsClassName==="breakpoints-select"&&Mt.push(On.id);yield fr.deltaDecorations(Mt,[]),kt()}),Zt=Tt=>{let Mt=$n.getLineDecorations(Tt);for(let Kt of Mt)if(Kt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ct.isEqual)(on,kt(!0).lines)){fr.deltaDecorations(kt(!0).ids,[]);const Tt=on.map(Mt=>({range:new ot.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));fr.deltaDecorations([],Tt)}const at=$n.onDidChangeModelContent(Tt=>{let Mt=$n.getPosition();if(Mt){let Kt=Mt.lineNumber;clearTimeout(Sn.current),Sn.current=setTimeout(()=>{bn(fr.getLineContent(Kt),Kt)?pt(Kt):Zt(Kt)?(pt(Kt),Ut(Kt)):kt()},100)}}),gt=$n.onMouseDown(Tt=>{var Mt,Kt,On;if(Tt.target.detail&&((On=(Kt=(Mt=Tt.target)==null?void 0:Mt.element)==null?void 0:Kt.className)!=null&&On.includes("line-numbers"))){let Kn=Tt.target.position.lineNumber;if(bn(fr.getLineContent(Kn),Kn))return;Zt(Kn)?pt(Kn):Ut(Kn)}}),cn=Tt=>{let Mt={range:new ot.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Pt.current=$n.deltaDecorations(Pt.current,[Mt])},ar=()=>{Pt.current=$n.deltaDecorations(Pt.current,[])},mr=$n.onMouseMove(Tt=>{var Mt,Kt,On;if(ar(),Tt.target.detail&&((On=(Kt=(Mt=Tt.target)==null?void 0:Mt.element)==null?void 0:Kt.className)!=null&&On.includes("line-numbers"))){let Kn=Tt.target.position.lineNumber;if(bn(fr.getLineContent(Kn),Kn))return;cn(Kn)}}),At=$n.onMouseLeave(()=>{ar()});return()=>{at.dispose(),gt.dispose(),mr.dispose(),At.dispose()}}},[lt.current,Dn,on,Qt,jt,re]),(0,y.useEffect)(()=>{var An;(An=lt.current)!=null&&An.instance&&jt&<.current.instance.setPosition({lineNumber:0,column:0})},[Qt]);function tn(){let An=lt.current.instance;if(An){const $n=An.getSelection(),fr=lt.current.pastePos||{},ur=new ot.Range(fr.startLineNumber||$n.endLineNumber,fr.startColumn||$n.endColumn,fr.endLineNumber||$n.endLineNumber,fr.endColumn||$n.endColumn);setTimeout(()=>{An.executeEdits("",[{range:ur,text:""}])},300)}}function wn(An){(window.navigator.platform.match("Mac")?An.metaKey:An.ctrlKey)&&An.keyCode==83&&(An.preventDefault(),Xe())}const Cn=()=>{if(Ke&<.current.instance){const An=lt.current.instance.getContentHeight();Vr(An<ue?ue:An)}else Vr(ue)};function Pn(An){var $n=document.createEvent("MouseEvents");$n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),An.dispatchEvent($n)}const vr=An=>{if(!jn.current)return;const{keyCode:$n,ctrlKey:fr,metaKey:ur,target:kt,type:Ut}=An;return(Ut==="paste"||($n===67||$n===86)&&(ur||fr))&&kt.nodeName==="TEXTAREA"&&(Wt(),An.preventDefault()),!1};function Qn(An,$n){var fr=window.URL||window.webkitURL||window,ur=new Blob([$n]),kt=document.createElementNS("http://www.w3.org/1999/xhtml","a");kt.href=fr.createObjectURL(ur),kt.download=An,Pn(kt)}(0,y.useEffect)(()=>{Cn()},[Cn]),(0,y.useEffect)(()=>{yn.current&&!Dn&&Promise.all([E.e(8909),E.e(1992)]).then(E.bind(E,71448)).then(An=>{try{ot=An,lt.current.instance=ot.editor.create(yn.current,{value:ae,language:ft(re),theme:me,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Nt||!1}},ie);const $n=lt.current.instance;let kt=[...Oe.BH._menuItems].find(at=>at[0]._debugName=="EditorContext")[1],Ut=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],pt=(at,gt)=>{var cn,ar;let mr=at._first;do gt.includes((ar=(cn=mr.element)==null?void 0:cn.command)==null?void 0:ar.id)&&at._remove(mr);while(mr=mr.next)};if(Qe($n,ot),setTimeout(()=>{Cn(),lt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Qn(Fn||"educoder.txt",$n.getValue())}})},500),lt.current.subscription=$n.onDidChangeModelContent(at=>{Yt.current?clearTimeout(Gt.current):(Cn(),_t($n.getValue(),at)),Gt.current=setTimeout(()=>{Yt.current=!1},500)}),window.Monaco||Ge(ot,ft(re)),yt&&(pt(kt,Ut),yn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",vr),window.removeEventListener("paste",vr),window.addEventListener("keydown",vr),window.addEventListener("paste",vr)),window.Monaco=ot,He&&$n.onDidBlurEditorWidget(()=>{He($n.getValue())}),tt&&$n.onDidFocusEditorText(()=>{yt&&Xt(),tt($n.getValue())}),yt){Xt();try{$n.onDidPaste(at=>{const gt=$n.getSelection(),cn=lt.current.pastePos||{},ar=new ot.Range(cn.startLineNumber||gt.endLineNumber,cn.startColumn||gt.endColumn,cn.endLineNumber||gt.endLineNumber,cn.endColumn||gt.endColumn);$n.executeEdits("",[{range:at.range,text:""}])})}catch(at){}}let Zt=Ot();return rt&&typeof rt=="string"&&new Ae(rt,$n,ot),Zn(!0),()=>{const at=lt.current.instance;at.dispose();const gt=at.getModel();gt&>.dispose(),lt.current.subscription&<.current.subscription.dispose(),Zt.unobserve(yn.current)}}catch($n){}})},[]),(0,y.useEffect)(()=>{if(lt.current.instance&&Dn)return document.addEventListener("keydown",wn,!1),()=>{document.removeEventListener("keydown",wn)}},[Xe,Dn]),(0,y.useEffect)(()=>{let An=lt.current.instance;if(An&&Dn){let $n=ft(re);ot.editor.setModelLanguage(An.getModel(),$n)}},[re,Dn]),(0,y.useEffect)(()=>{lt.current.instance&&Dn&&ot.editor.setTheme(me)},[me,Dn]),(0,y.useEffect)(()=>{let An=lt.current.instance;Rt.current=he,An&&Dn&&(An.updateOptions(je({},he)),setTimeout(()=>{An.getModel().updateOptions(je({},he))},200))},[JSON.stringify(he),Dn]),(0,y.useEffect)(()=>{let An=lt.current.instance;An&&Dn&&An.layout()},[zt,ue,Dn]);const[dr,br]=(0,y.useState)(vt(zt)),[yr,Vr]=(0,y.useState)(vt(ue)),Zr=it(je({},se),{width:dr,height:yr,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:yn,style:Zr,onFocus:()=>{yt&&Xt()}},It&&y.createElement(st.CopyToClipboard,{text:ae,onCopy:()=>qe.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement(Je.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 wt({width:ht="100%",height:un="100%",original:zt,modified:ue,language:ae,options:re={}}){const se=(0,y.useRef)(),[he,ie]=(0,y.useState)(null);function me(Ke){let yt;return se.current&&(yt=new ge.Z(Bt=>{for(let _t of Bt)(_t.target.offsetHeight>0||_t.target.offsetWidth>0)&&Ke.layout()}),yt.observe(se.current)),yt}(0,y.useEffect)(()=>(se.current&&Promise.all([E.e(8909),E.e(9404)]).then(E.bind(E,2550)).then(Ke=>{ot=Ke;const yt=ot.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(yt);let Bt=me(yt);return()=>{yt.dispose();const _t=yt.getModel();_t&&_t.dispose(),Bt.unobserve(se.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{he&&he.setModel({original:ot.editor.createModel(zt,ae),modified:ot.editor.createModel(ue,ae)})},[zt,ue,ae,he]);const He=vt(ht),It=vt(un),Xe={width:He,height:It};return y.createElement("div",{className:"my-diff-editor",ref:se,style:Xe})}},81418: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),ce=E(25399),_e=E(89787),Se=E(92310),Ee=E.n(Se),Ce=E(49411),ke=E(40412),De=E(59301),We=({className:Te,dataSource:dt=[],col:Ge=4,right:Ne,bottom:we=23,precision:Pe=0,wrapWidth:Fe=1200,trackEventItems:et,loading:St,onRemove:Ae=()=>{},isCurrent:Oe=!0,showProgress:qe=!1,showAlias:Je=!1,category:ct,hiddenClick:bt})=>{const st=Math.floor((Fe-(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 De.createElement(ge.Z,{spinning:St},De.createElement("div",{className:Ee()(y.list,Te)},!!(dt!=null&&dt.length)&&(dt==null?void 0:dt.map((pe,Le)=>{var xe,de,Ct,Ye,je,it,Ie,ye,vt,Ht,Et,Be,ft;const{name:ot,id:Xt,identifier:xt,featured:wt,school_name:ht,image_url:un,excellent:zt,is_plan:ue}=pe;return De.createElement("div",{key:Xt,className:Oe&&qe?y.wrapisCurrent:y.wrap,style:{width:st,marginRight:(1+Le)%Ge===0?0:Ne+Pe,marginBottom:we}},De.createElement("a",{className:y.li,onClick:ae=>{ae.preventDefault(),ae.stopPropagation(),et&&(0,Ce.L9)([et]),(0,Ce.xg)(`/paths/${xt}`)}},De.createElement("div",{className:y.img},De.createElement("img",{className:y.cover,src:`${un}`}),(xe=pe==null?void 0:pe.subject_tags)==null?void 0:xe.map((ae,re)=>{var se,he;if(re===0){const me=(se=$e.find(He=>He.name==ae))==null?void 0:se.swclass;return De.createElement("span",{className:`sprite ${me} ${y.sign}`,style:{left:"-4px"}})}const ie=(he=$e.find(me=>me.name==ae))==null?void 0:he.ptclass;return De.createElement("span",{className:`sprite ${ie} ${y.sign}`,style:{left:`${48+52*(re-1)+2*re}px`}})}),De.createElement("div",{className:y.tagsDom},De.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(pe==null?void 0:pe.excellent)&&De.createElement("div",{className:y.bq},"\u5F00\u653E\u8BFE\u7A0B"),((de=pe==null?void 0:pe.custom_tags)==null?void 0:de.length)>0&&De.createElement(ce.Z,{title:(je=(Ye=pe==null?void 0:pe.custom_tags)==null?void 0:Ye[((Ct=pe==null?void 0:pe.custom_tags)==null?void 0:Ct.length)-1])==null?void 0:je.tag_name},De.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},De.createElement("span",{className:"multi-llipsis1e text-10px"},(ye=(Ie=pe==null?void 0:pe.custom_tags)==null?void 0:Ie[((it=pe==null?void 0:pe.custom_tags)==null?void 0:it.length)-1])==null?void 0:ye.tag_name))))),ct=="hide"&&(pe==null?void 0:pe.studying)&&Oe&&De.createElement("div",{className:`${y.movebq} user-path-items`,onClick:ae=>{ae.stopPropagation(),Ae(pe)}},De.createElement("i",{className:"iconfont icon-yichu1 font12"}),De.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(ct)&&Oe&&De.createElement("div",{className:`${y.hiddenbq} user-path-items`,onClick:ae=>{ae.stopPropagation(),bt(pe)}},De.createElement("i",{className:`iconfont ${ct=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),De.createElement("span",null,ct=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),De.createElement("div",{className:y.name},De.createElement(ce.Z,{title:Je&&(pe!=null&&pe.excellent_alias_name)?De.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ot}`,De.createElement("br",null),De.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${pe==null?void 0:pe.excellent_alias_name}`)):ot},De.createElement("span",{className:y.e},Je&&(pe==null?void 0:pe.excellent_alias_name)||ot))),Oe&&qe&&((vt=pe==null?void 0:pe.progress)==null?void 0:vt.all_score)!=0&&De.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},De.createElement(_e.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ht=pe==null?void 0:pe.progress)==null?void 0:Ht.my_score)/((Et=pe==null?void 0:pe.progress)==null?void 0:Et.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Be=pe==null?void 0:pe.progress)==null?void 0:Be.my_score,"/",(ft=pe==null?void 0:pe.progress)==null?void 0:ft.all_score),(!Oe||!qe)&&De.createElement(ce.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ht}`},De.createElement("div",{className:y.unit},De.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ht)),(!Oe||!qe)&&De.createElement("div",{className:y.tags},De.createElement("div",null,De.createElement(ce.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},De.createElement("span",null,De.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),De.createElement("span",null,pe.stages_count))),De.createElement(ce.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},De.createElement("span",null,De.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),De.createElement("span",null,pe.members_count)))))))})),!dt.length&&De.createElement(ke.Z,null)))}},78176:function(Rn,qt,E){"use strict";E.d(qt,{jL:function(){return _e},w9:function(){return ye},QD:function(){return on},cQ:function(){return Le.Z},op:function(){return yt},O5:function(){return Ot},_b:function(){return rt},t7:function(){return Pe},Gi:function(){return ot},YG:function(){return Be},qp:function(){return fe},vr:function(){return Lt},qE:function(){return Qe},Je:function(){return St},wb:function(){return pe},cq:function(){return zt},tp:function(){return dt}});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"},_e=({dataSource:Wt=[],img:ln,imgWidth:bn=346,title:tn,sunTitle:wn,bannerExtraContent:Cn})=>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,wn)),Wt.length>0&&y.createElement("div",{className:ge.btns},Wt.map((Pn,vr)=>y.createElement("div",{key:vr,onClick:Pn.click},Pn.name,Pn.sign?y.createElement("span",{className:"sprite sprite-33"}):null))),Cn),ln&&y.createElement("img",{style:{marginTop:33,marginRight:38},src:ln,width:bn}))),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(89392),fe=({dataSource:Wt=[],value:ln,onChange:bn,onTitleChange:tn,className:wn,title:Cn,titleWidth:Pn=41,style:vr={},fontColor:Qn="#6A7283",showCount:dr})=>{const[br,yr]=(0,y.useState)(1),[Vr,Zr]=(0,y.useState)(!1),An=(0,y.useRef)(null),$n=(0,y.useRef)(null);return(0,y.useEffect)(()=>{var fr;Wt.length!==0&&(((fr=An==null?void 0:An.current)==null?void 0:fr.clientHeight)>97?yr(1):yr(0)),Wt.length===0&&yr(0),Zr(!1)},[Wt]),y.createElement("div",{className:Ce()(Se.row,wn,"fadeIn","animated"),style:vr},y.createElement("div",{onClick:(0,ke.throttle)(()=>tn==null?void 0:tn(),2e3),style:{width:Pn,marginTop:Vr?12:4},className:`${Se.title} ${tn?"current":""}`},Cn),y.createElement("div",{className:Vr?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},y.createElement("div",{className:Se.bar,ref:$n,style:br>0?{height:br===1?97:"auto",overflow:br===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},y.createElement("div",{className:Se.tag,ref:An},Wt==null?void 0:Wt.map(fr=>y.createElement("span",{onClick:()=>bn(fr.id),key:fr.id,style:{color:Qn},className:ln===fr.id?Se.active:""},y.createElement("span",{title:fr.name,className:Se.name},fr.name),!!dr&&y.createElement("span",{className:Se.num},fr.count))))),!!br&&y.createElement(y.Fragment,null,br===1?y.createElement("div",{onClick:()=>{var fr;yr(2),((fr=An==null?void 0:An.current)==null?void 0:fr.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,yr(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"},dt=({dataSource:Wt=[],value:ln,onChange:bn,className:tn,style:wn={}})=>y.createElement("div",{style:wn,className:Ce()(We.tabs,tn)},Wt.map(Cn=>y.createElement("span",{onClick:()=>bn(Cn.id),className:ln===Cn.id?We.active:"",key:Cn.id},Cn.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),Pe=({dataSource:Wt=[],value:ln="",onChange:bn,onInputChange:tn=()=>{},className:wn,style:Cn={},placeholder:Pn,allowClear:vr=!1})=>{var Qn;const[dr,br]=(0,y.useState)(""),[yr,Vr]=(0,y.useState)("");(0,y.useEffect)(()=>{var $n;let fr=ln;($n=JSON.stringify(ln))!=null&&$n.includes("{")&&(br(ln.id),fr=ln.value||"");try{Vr(decodeURIComponent(fr||""))}catch(ur){Vr(decodeURIComponent(fr||""))}},[ln]);const Zr=()=>{bn(encodeURIComponent(yr),dr||null)},An=$n=>{$n!==dr&&(br($n),bn(encodeURIComponent(yr),$n))};return y.createElement("div",{className:Ce()(Ge.input,wn),style:Cn},!!Wt.length&&y.createElement("div",{className:Ge.dropdown},y.createElement("div",{className:Ge.text},(Qn=Wt.find($n=>$n.id===dr))==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},Wt.map(($n,fr)=>y.createElement("div",{key:fr,onClick:()=>An($n.id)},$n.name)))),y.createElement(Ne.default,{onPressEnter:Zr,value:yr,onChange:$n=>{Vr($n.target.value),tn(encodeURIComponent($n.target.value),dr||null)},placeholder:Pn,variant:"borderless",allowClear:vr,onClear:()=>bn("",dr||null)}),y.createElement("i",{onClick:Zr,className:"iconfont icon-sousuo9 font14 current"}))},Fe={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:Wt,onChange:ln,className:bn,total:tn,pageSize:wn,style:Cn={}})=>{const Pn=Wt<2,vr=Wt>=Math.ceil(tn/wn);return tn<=wn?y.createElement(y.Fragment,null):y.createElement("div",{className:Ce()(Fe.quickPager,bn),style:Cn},y.createElement("div",{onClick:()=>{Pn||ln(Wt-1,"prev")},className:Pn?Fe.disabled:""},"\u4E0A\u4E00\u9875"),y.createElement("div",{onClick:()=>{vr||ln(Wt+1,"next")},className:vr?Fe.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"},Oe=E(29787),qe=E(25399),Je=E(63139),ct=E(58962),bt=E(49411),st=E(40412),pe=({className:Wt,dataSource:ln=[],col:bn=4,right:tn,bottom:wn=23,precision:Cn=0,wrapWidth:Pn=1200,trackEventItems:vr,loading:Qn})=>{const dr=Math.floor((Pn-(bn-1)*tn)/bn);return y.createElement(Oe.Z,{spinning:Qn},y.createElement("div",{className:Ce()(Ae.list,Wt)},!!ln.length&&ln.map((br,yr)=>{const{name:Vr,id:Zr,identifier:An,power:$n,cover_image_id:fr,pic:ur}=br;return y.createElement("div",{className:Ae.wrap,key:Zr,style:{width:dr,marginRight:(1+yr)%bn===0?0:tn+Cn,marginBottom:wn}},y.createElement("a",{target:"_blank",href:`/shixuns/${An}/challenges`,className:Ae.li,onClick:kt=>{kt.preventDefault(),vr&&(0,bt.L9)([vr]),$n&&(0,bt.xg)(`/shixuns/${An}/challenges`)}},y.createElement("div",{className:Ae.img},y.createElement("img",{className:Ae.cover,src:`${ur}`}),br.is_jupyter&&y.createElement("span",{className:`sprite sprite-43 ${Ae.sign}`}),br.is_jupyter_lab&&y.createElement("span",{className:`sprite sprite-42 ${Ae.sign}`}),br.is_unity_3d&&y.createElement("span",{className:`sprite sprite-44 ${Ae.sign}`})),y.createElement("div",{className:Ae.name},y.createElement(qe.Z,{title:Vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},y.createElement("span",{className:Ae.e},Vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),y.createElement("div",{className:Ae.tags},y.createElement(qe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),y.createElement("span",null,br.challenges_count))),!!br.myshixuns_count&&y.createElement(qe.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,br.myshixuns_count))),y.createElement(qe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},y.createElement("span",null,y.createElement("span",null,br.level))),y.createElement("div",{className:Ae.rate},y.createElement(Je.Z,{allowHalf:!0,disabled:!0,defaultValue:br.score_info}),y.createElement("span",null,"\xA0",br.score_info?`${br.score_info}\u5206`:"5\u5206")))),!$n&&y.createElement("div",{className:Ae.lockWrap},y.createElement("img",{src:`${ct.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")))}),!ln.length&&y.createElement(st.Z,null)))},Le=E(81418),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"},de=E(62957),Ct=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=(Wt,ln,bn)=>new Promise((tn,wn)=>{var Cn=Qn=>{try{vr(bn.next(Qn))}catch(dr){wn(dr)}},Pn=Qn=>{try{vr(bn.throw(Qn))}catch(dr){wn(dr)}},vr=Qn=>Qn.done?tn(Qn.value):Promise.resolve(Qn.value).then(Cn,Pn);vr((bn=bn.apply(Wt,ln)).next())}),ye=({className:Wt,dataSource:ln=[],col:bn=4,right:tn,bottom:wn=23,precision:Cn=0,wrapWidth:Pn=1200,trackEventItems:vr,loading:Qn,category:dr,hiddenClick:br,handleVery:yr=()=>!0,isCurrent:Vr})=>{const[Zr,An]=de.default.useModal(),$n=Math.floor((Pn-(bn-1)*tn)/bn),fr=ur=>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",ur.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return je.createElement(Oe.Z,{spinning:Qn},An,je.createElement("div",{className:Ce()(xe.list,Wt)},!!ln.length&&ln.map((ur,kt)=>{const{subject_identifier:Ut,id:pt,identifier:Zt,power:at}=ur,gt=ur.is_public!=0&&ur.is_public;return je.createElement("div",{className:xe.wrap,key:pt,style:{width:$n,marginRight:(1+kt)%bn===0?0:tn+Cn,marginBottom:wn}},ur.homepage_show&&je.createElement("div",{className:xe.btnsTop},je.createElement(Ct.default,{color:"red"},"\u7F6E\u9876")),je.createElement("a",{className:xe.li,onClick:cn=>{cn.preventDefault(),yr(ur==null?void 0:ur.first_category_url)&&(vr&&(0,bt.L9)([vr]),(0,bt.xg)(ur.first_category_url))}},je.createElement("div",{className:xe.top},je.createElement(qe.Z,{title:ur.name},je.createElement("div",{className:xe.name},ur.name)),je.createElement("img",{className:xe.img,src:ct.Z.IMG_SERVER+"/images/"+ur.avatar_url}),je.createElement("div",{className:xe.text,title:ur.creator},ur.creator),Ut&&je.createElement("div",{className:xe.btns},je.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),je.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),gt&&je.createElement("div",{className:xe.sign},"\u516C\u5F00"),Vr&&je.createElement("div",{className:xe.hidden,onClick:cn=>{cn.stopPropagation(),br(ur)}},je.createElement("i",{className:`iconfont ${dr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),dr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),je.createElement("div",{className:xe.bottom},ur.visits>0&&je.createElement(qe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-liulanyan"}),je.createElement("span",null,ur.visits))),ur.course_members_count>0&&je.createElement(qe.Z,{title:"\u6210\u5458",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-chengyuan"}),ur.course_members_count)),ur.tasks_count>0&&je.createElement(qe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},je.createElement("span",null,je.createElement("i",{className:"iconfont icon-zuoye"}),ur.tasks_count)),ur.is_end?je.createElement("div",{style:{color:"#6B758B"}}):je.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ur.is_accessible&&je.createElement("div",{className:xe.lockWrap},je.createElement("img",{src:`${ct.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")))}),!ln.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"},Ht=E(73635),Be=({dataSource:Wt=[],value:ln,onChange:bn,className:tn,style:wn={},tabBarExtraContent:Cn})=>y.createElement("div",{className:Ce()(vt.tabs,tn),style:wn},y.createElement("div",{className:vt.tabsWrap},Wt.map((Pn,vr)=>!(Pn!=null&&Pn.hide)&&y.createElement("aside",{className:vt.tab,onClick:()=>{bn(Pn.id),Pn.link&&Ht.history.push(Pn.link)},key:vr},y.createElement("div",{className:ln===Pn.id?vt.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&y.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&y.createElement(qe.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},y.createElement("span",{style:{color:"#9096A3"}},"\uFF08",y.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",y.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),y.createElement("div",{className:vt.tabBar},Cn)),ot=({className:Wt,style:ln={},children:bn})=>y.createElement("div",{className:Ce()(Wt),style:ln},bn),Xt={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"},xt=E(75727),wt=E(93041);const ht=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var zt=({sortValue:Wt,dropValue:ln,className:bn,onSort:tn,onDrop:wn,dataSource:Cn=ht})=>{var Pn;return y.createElement("div",{className:Ce()(Xt.orderWrap,bn)},y.createElement(xt.Z,{dropdownRender:()=>y.createElement(wt.default,null,Cn.map((vr,Qn)=>y.createElement(wt.default.Item,{key:Qn,onClick:()=>wn(vr.id)},vr.name)))},y.createElement("span",{className:Xt.orderTextWrap},(Pn=Cn.find(vr=>ln===vr.id))==null?void 0:Pn.name)),y.createElement("span",{className:Xt.orderIconWrap},y.createElement("span",{className:Xt.orderAsc},y.createElement("i",{className:Wt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer}`,onClick:()=>tn(Wt==="asc"?"desc":"asc")})),y.createElement("span",{className:Xt.orderDesc},y.createElement("i",{className:Wt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer}`,onClick:()=>tn(Wt==="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,he=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,me=(Wt,ln,bn)=>ln in Wt?re(Wt,ln,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Wt[ln]=bn,He=(Wt,ln)=>{for(var bn in ln||(ln={}))he.call(ln,bn)&&me(Wt,bn,ln[bn]);if(se)for(var bn of se(ln))ie.call(ln,bn)&&me(Wt,bn,ln[bn]);return Wt},It=(Wt,ln)=>{var bn={};for(var tn in Wt)he.call(Wt,tn)&&ln.indexOf(tn)<0&&(bn[tn]=Wt[tn]);if(Wt!=null&&se)for(var tn of se(Wt))ln.indexOf(tn)<0&&ie.call(Wt,tn)&&(bn[tn]=Wt[tn]);return bn},Xe=(Wt,ln,bn)=>new Promise((tn,wn)=>{var Cn=Qn=>{try{vr(bn.next(Qn))}catch(dr){wn(dr)}},Pn=Qn=>{try{vr(bn.throw(Qn))}catch(dr){wn(dr)}},vr=Qn=>Qn.done?tn(Qn.value):Promise.resolve(Qn.value).then(Cn,Pn);vr((bn=bn.apply(Wt,ln)).next())}),yt=Wt=>{var ln=Wt,{className:bn,style:tn,children:wn,loading:Cn=!1,openLoading:Pn,onClick:vr=()=>{},size:Qn="middle",shape:dr="round"}=ln,br=It(ln,["className","style","children","loading","openLoading","onClick","size","shape"]);const[yr,Vr]=(0,y.useState)(!1);return y.createElement(ae.ZP,He({onClick:(0,ke.throttle)(Zr=>Xe(void 0,null,function*(){Pn&&Vr(!0);try{yield vr(Zr)}catch(An){console.log("error",An)}Pn&&Vr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ce()(ue.btn,ue[`${Qn}-${dr}`],bn),style:tn,size:Qn,shape:dr,loading:yr||Cn},br),wn)},Bt={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"},Qe=({className:Wt,style:ln,children:bn=null,onClick:tn,title:wn})=>y.createElement("div",{className:Ce()(Bt.head,Wt),style:ln},y.createElement("span",{className:"primary-hover",onClick:tn},y.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),y.createElement("b",{title:wn},wn),y.createElement("div",{className:Bt.node},bn)),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"},on=({confirmShow:Wt=!0,confirmTitle:ln,confirmClick:bn,cancelShow:tn=!0,cancelTitle:wn,cancelClick:Cn,className:Pn,style:vr,confirmLoading:Qn=!1})=>y.createElement("div",{className:Ce()(tt.btns,Pn),style:vr},Wt&&y.createElement(ae.ZP,{loading:Qn,onClick:bn,type:"primary",className:tt.confirm},ln),tn&&y.createElement(ae.ZP,{onClick:Cn,className:tt.cancel},wn)),Fn={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:Wt,style:ln={},LeftContent:bn,children:tn,RightContent:wn})=>y.createElement("div",{className:Ce()(Fn.fixedBottom,Wt),style:ln},y.createElement("div",{className:Fn.wrap},y.createElement("div",{className:Fn.left},bn),y.createElement("div",{className:Fn.center},tn),y.createElement("div",{className:Fn.right},wn))),Qt={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"},rt=({className:Wt,style:ln={},dataSource:bn=[]})=>y.createElement("div",{className:Ce()(Qt.crumbs,Wt),style:ln},bn.map((tn,wn)=>wn<bn.length-1?y.createElement(y.Fragment,{key:wn},tn.path||tn.onClick?y.createElement("span",{className:Qt.hover,onClick:tn!=null&&tn.onClick?tn.onClick:()=>Ht.history.push(tn.path)},tn.name):y.createElement("span",null,tn.name),y.createElement("span",null,"\xA0",">","\xA0")):y.createElement("span",{key:wn,style:{color:"#5F6368"}},tn.name))),Nt=E(11938),fn=Object.defineProperty,yn=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Yt=(Wt,ln,bn)=>ln in Wt?fn(Wt,ln,{enumerable:!0,configurable:!0,writable:!0,value:bn}):Wt[ln]=bn,Gt=(Wt,ln)=>{for(var bn in ln||(ln={}))en.call(ln,bn)&&Yt(Wt,bn,ln[bn]);if(Rt)for(var bn of Rt(ln))Pt.call(ln,bn)&&Yt(Wt,bn,ln[bn]);return Wt},Sn=(Wt,ln)=>yn(Wt,lt(ln)),jn=(Wt,ln)=>{var bn={};for(var tn in Wt)en.call(Wt,tn)&&ln.indexOf(tn)<0&&(bn[tn]=Wt[tn]);if(Wt!=null&&Rt)for(var tn of Rt(Wt))ln.indexOf(tn)<0&&Pt.call(Wt,tn)&&(bn[tn]=Wt[tn]);return bn};const{Countdown:Dn}=Nt.default;var Ot=Wt=>{var ln=Wt,{onChange:bn}=ln,tn=jn(ln,["onChange"]);const[wn,Cn]=(0,y.useState)(null);(0,y.useEffect)(()=>{typeof wn=="number"&&wn>=0&&bn(wn)},[wn]);const Pn=vr=>{const Qn=Math.floor(vr/1e3);Cn(Qn)};return y.createElement(Dn,Sn(Gt({},tn),{onChange:Pn}))}},14167:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ge}});var y=E(59301);function ge(ce,_e){const Se=(0,y.useRef)();(0,y.useEffect)(()=>{Se.current=ce}),(0,y.useEffect)(()=>{function Ee(){Se.current()}if(_e!==null){let Ce=setInterval(Ee,_e);return()=>clearInterval(Ce)}},[_e])}},47905: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"},ce=E(92310),_e=E.n(ce),Se=E(25399),Ee=E(82326),Ce=E(7939),ke=E(82875),De=Object.defineProperty,fe=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ne=(Oe,qe,Je)=>qe in Oe?De(Oe,qe,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Oe[qe]=Je,we=(Oe,qe)=>{for(var Je in qe||(qe={}))dt.call(qe,Je)&&Ne(Oe,Je,qe[Je]);if(Te)for(var Je of Te(qe))Ge.call(qe,Je)&&Ne(Oe,Je,qe[Je]);return Oe},Pe=(Oe,qe)=>fe(Oe,We(qe)),Fe=(Oe,qe)=>{var Je={};for(var ct in Oe)dt.call(Oe,ct)&&qe.indexOf(ct)<0&&(Je[ct]=Oe[ct]);if(Oe!=null&&Te)for(var ct of Te(Oe))qe.indexOf(ct)<0&&Ge.call(Oe,ct)&&(Je[ct]=Oe[ct]);return Je},et=(Oe,qe,Je)=>new Promise((ct,bt)=>{var st=Le=>{try{pe(Je.next(Le))}catch(xe){bt(xe)}},$e=Le=>{try{pe(Je.throw(Le))}catch(xe){bt(xe)}},pe=Le=>Le.done?ct(Le.value):Promise.resolve(Le.value).then(st,$e);pe((Je=Je.apply(Oe,qe)).next())});const St=Oe=>{var qe=Oe,{wrapClassName:Je,wrapStyle:ct={},showLinkButton:bt=!0,tooltipTitle:st="",loadGeneral:$e=!1,data:pe={}}=qe,Le=Fe(qe,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const xe="course_disciplines_list",[de,Ct]=(0,y.useState)(()=>{const vt=sessionStorage.getItem(xe);return vt?JSON.parse(vt):[]}),[Ye,je]=(0,y.useState)(!1),[it,Ie]=(0,y.useState)(!0);(0,y.useEffect)(()=>{ye()},[]);const ye=()=>et(void 0,null,function*(){var vt,Ht,Et,Be;je(!0);const ft=yield(0,ke.U2)("v2/course_disciplines.json",pe);if(ft.status===0){const ot=((Ht=(vt=ft==null?void 0:ft.data)==null?void 0:vt.list)==null?void 0:Ht.map(Xt=>({value:Xt.id,label:Xt.name})))||[];if(Ct(ot),Ie(!1),sessionStorage.setItem(xe,JSON.stringify(ot)),it){const Xt=(Be=(Et=ft==null?void 0:ft.data)==null?void 0:Et.list)==null?void 0:Be.find(xt=>xt.is_default);$e&&Xt&&Le.onChange(Xt==null?void 0:Xt.id)}}je(!1)});return y.createElement("div",{className:_e()(ge.singleSelect,Je),style:ct},y.createElement(Se.Z,{title:st},y.createElement(Ee.default,we({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:Ye,options:de,onDropdownVisibleChange:vt=>{vt&&ye()}},Le))),bt&&y.createElement(Ce.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},Ae=Oe=>{var qe=Oe,{wrapClassName:Je,wrapStyle:ct={},showLinkButton:bt=!0,courseDisciplineId:st="",isPlusHeight:$e=!1,tooltipTitle:pe,allowAcceptEmpty:Le=!1,data:xe={}}=qe,de=Fe(qe,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[Ct,Ye]=(0,y.useState)([]),[je,it]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Ie()},[st]);const Ie=()=>et(void 0,null,function*(){var ye,vt;if(!Le&&!st){Ye([]);return}it(!0);const Ht=yield(0,ke.U2)(`v2/course_disciplines/${st||"all"}.json`,xe);if(Ht.status===0){const Et=((vt=(ye=Ht==null?void 0:Ht.data)==null?void 0:ye.tag_disciplines)==null?void 0:vt.map(Be=>({value:Be.id,label:Be.name})))||[];Et.length&&Ye(Et)}it(!1)});return y.createElement("div",{className:_e()(ge.multipleSelect,Je),style:ct},y.createElement(Se.Z,{title:pe},y.createElement(Ee.default,Pe(we({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:je,options:Ct,maxTagCount:"responsive",onDropdownVisibleChange:ye=>{ye&&Ie()}},de),{className:_e()(de.className,$e&&ge.plus)}))),bt&&y.createElement(Ce.ZP,{className:ge.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},77018: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||{})},10170:function(Rn,qt,E){"use strict";E.d(qt,{H7:function(){return Ne},MK:function(){return Ge},MU:function(){return fe},X6:function(){return Te},bM:function(){return De},fi:function(){return we},fu:function(){return ke},n4:function(){return Pe},rX:function(){return dt},vl:function(){return Fe},zO:function(){return We}});var y=E(82875),ge=Object.defineProperty,ce=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ee=(et,St,Ae)=>St in et?ge(et,St,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):et[St]=Ae,Ce=(et,St)=>{for(var Ae in St||(St={}))_e.call(St,Ae)&&Ee(et,Ae,St[Ae]);if(ce)for(var Ae of ce(St))Se.call(St,Ae)&&Ee(et,Ae,St[Ae]);return et};function ke(et,St){return(0,y.U2)(`myproblems/${et}.json`,Ce({hidePopLogin:!0},St||{}))}function De(et,St){return(0,y.v_)(`myproblems/${et}/code_submit.json`,St)}function fe(et,St){return(0,y.v_)(`myproblems/${et}/code_debug.json`,St)}function We(et,St){return St.language&&(St.language=encodeURIComponent(St.language)),(0,y.U2)(`myproblems/${et}/submit_records.json`,St)}function Te(et){return(0,y.U2)("myproblems/record_detail.json",{id:et})}function dt(et,St){return(0,y.U2)(`myproblems/${et}/result.json`,{mode:St})}function Ge(et,St){return(0,y.v_)(`myproblems/${et}/add_notes.json`,St)}function Ne(et,St){return(0,y.v_)(`myproblems/${et}/restore_initial_code.json`,St)}function we(et){return(0,y.v_)(`myproblems/${et}/sync_code.json`)}function Pe(et,St){return(0,y.v_)(`myproblems/${et}/update_code.json`,St)}function Fe(et,St){return(0,y.v_)(`discusses/${et}/plus.json`,St)}},82873:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return si}});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"},ce=E(28284),_e=E(25399),Se=E(7939),Ee=E(62957),Ce=E(4875),ke=E(6767),De=E(37568),fe=E(37285),We=E(62673),Te=E(37639),dt=E(77019),Ge=E(5269),Ne=E(31709),we=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,St=(Dt,Jt,rn)=>Jt in Dt?we(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Ae=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))Fe.call(Jt,rn)&&St(Dt,rn,Jt[rn]);if(Pe)for(var rn of Pe(Jt))et.call(Jt,rn)&&St(Dt,rn,Jt[rn]);return Dt};const Oe=Dt=>React.createElement("svg",Ae({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Dt),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 qe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",Je=E(75363),ct=E(73635),bt=E(49411),st=E(82875),$e=Object.defineProperty,pe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,de=(Dt,Jt,rn)=>Jt in Dt?$e(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Ct=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))Le.call(Jt,rn)&&de(Dt,rn,Jt[rn]);if(pe)for(var rn of pe(Jt))xe.call(Jt,rn)&&de(Dt,rn,Jt[rn]);return Dt};const Ye=Dt=>React.createElement("svg",Ct({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Dt),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,Ie=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ht=(Dt,Jt,rn)=>Jt in Dt?it(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Et=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))ye.call(Jt,rn)&&Ht(Dt,rn,Jt[rn]);if(Ie)for(var rn of Ie(Jt))vt.call(Jt,rn)&&Ht(Dt,rn,Jt[rn]);return Dt};const Be=Dt=>React.createElement("svg",Et({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Dt),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 ft="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",ot=E(30130),Xt=E(46195),xt=E(26018),wt={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"},ht=E(59301),un=Object.defineProperty,zt=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,he=(Dt,Jt,rn)=>Jt in Dt?un(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,ie=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))re.call(Jt,rn)&&he(Dt,rn,Jt[rn]);if(ae)for(var rn of ae(Jt))se.call(Jt,rn)&&he(Dt,rn,Jt[rn]);return Dt},me=(Dt,Jt)=>zt(Dt,ue(Jt)),He=(Dt,Jt)=>{var rn={};for(var Nn in Dt)re.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&ae)for(var Nn of ae(Dt))Jt.indexOf(Nn)<0&&se.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const It=null,Xe=(Dt,Jt)=>{var rn=Dt,{globalSetting:Nn,loading:Va,dispatch:zr,isEdit:qn,editData:pr}=rn,Fr=He(rn,["globalSetting","loading","dispatch","isEdit","editData"]);const[aa,Wr]=(0,y.useState)(""),[or,ha]=(0,y.useState)(""),[fa,Nr]=(0,y.useState)([]),[Da,ja]=(0,y.useState)(""),[ua,cr]=(0,y.useState)(),[Yr,ui]=(0,y.useState)(!1),[ba,ca]=(0,y.useState)({}),[ra,Pa]=(0,y.useState)([]);(0,y.useEffect)(()=>{!pr||!qn||(Wr(pr==null?void 0:pr.name),ha(pr==null?void 0:pr.analysis),cr(pr==null?void 0:pr.is_ordered),ca(pr),ui(!0))},[pr]),(0,y.useEffect)(()=>{if(!Yr)return;const Gr=pr==null?void 0:pr.standard_answer.map(Po=>Po==null?void 0:Po.answer_text);Nr(Gr);const bo=pr==null?void 0:pr.standard_answer.map(Po=>Po==null?void 0:Po.score);Pa(bo),ui(!1)},[Yr]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ao,Clear:qo}));const ao=()=>{let Gr=[],bo=!1;return aa?(fa.forEach((Po,Eo)=>{Gr.push({position:Eo+1,answer_text:[],score:ra[Eo]}),Po==null||Po.forEach((yl,$s)=>{Gr[Eo].answer_text.push(yl),(!yl||!(0,bt.eR)(yl,1e4))&&(ja(`${Eo}-${$s}`),ke.ZP.info(yl?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),bo=!0)})}),bo?!1:(Gr==null?void 0:Gr.length)>20?(ke.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:aa,analysis:or,standard_answers:Gr,is_ordered:ua,downcase:ba==null?void 0:ba.downcase,no_space:ba==null?void 0:ba.no_space,use_blank_score:ba==null?void 0:ba.use_blank_score}):(ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},qo=()=>{Wr(""),ha(""),Nr([]),cr(!1)},Ko=(Gr,bo,Po)=>{const Eo=fa.slice();if(bo&&Eo.splice(Gr,bo),Po)for(let yl=0;yl<Po;yl++)Eo.splice(Gr+yl,0,[""]);Nr(Eo)},Xl=(Gr,bo,Po)=>{ja("");let Eo=fa.slice();Eo[Gr][bo]=Po,Nr(Eo)},Oi=Gr=>{let bo=fa.slice();bo[Gr]=[...bo[Gr],""],Nr(bo)},Tl=(Gr,bo)=>{let Po=fa.slice();if(!Po[Gr][bo]){Po[Gr]=Po[Gr].filter((Eo,yl)=>yl!==bo),Nr(Po);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:wt.modal,onOk:()=>{Po[Gr]=Po[Gr].filter((Eo,yl)=>yl!==bo),Nr(Po)}})},Pl=Gr=>{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:wt.modal,onOk:()=>{let bo=fa.slice();bo=fa.filter((Po,Eo)=>Gr!==Eo),Nr(bo)}})};return ht.createElement("section",{className:wt.wrap},ht.createElement("p",{className:wt.titleWrap},ht.createElement("span",{className:wt.required},"*"),ht.createElement("span",{className:wt.title},"\u9898\u5E72\uFF1A")),ht.createElement("div",null,ht.createElement(Xt.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:aa,onChange:Gr=>Wr(Gr),showNullButton:!0,onAddBlank:()=>Nr(Gr=>[...Gr,[""]])})),ht.createElement("div",{className:"mt20 flex flex-col gap-10px"},fa.map((Gr,bo)=>ht.createElement("div",{style:{display:"flex"}},ht.createElement("div",{style:{flex:1}},ht.createElement(xt.Z,{key:bo,answers:Gr,index:bo,flex:1,is_md:!0,activeOptionErrorIndex:Da,onAnswerChange:Xl,addChildAnswer:Oi,deleteChildAnswer:Tl,deleteChildAnswermain:Pl})),ba.use_blank_score&&ht.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},ht.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",ht.createElement(Ce.Z,{style:{width:"100px"},size:"large",defaultValue:ra[bo],onBlur:Po=>{ra[bo]=Po.target.value,Pa([...ra])}}))))),ht.createElement(Se.ZP,{className:"mt20",onClick:()=>Nr(Gr=>[...Gr,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),ht.createElement("div",null,ht.createElement(We.default,{className:`${wt.color333} font14 mt20`,checked:ba.use_blank_score,onChange:Gr=>ca(me(ie({},ba),{use_blank_score:Gr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),ht.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")),ht.createElement("div",null,ht.createElement(We.default,{className:`${wt.color333} font14 mt20`,checked:ba.downcase,onChange:Gr=>ca(me(ie({},ba),{downcase:Gr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ht.createElement("div",null,ht.createElement(We.default,{className:`${wt.color333} font14 mt20`,checked:ba.no_space,onChange:Gr=>ca(me(ie({},ba),{no_space:Gr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),ht.createElement("div",{className:"mt20"},(fa==null?void 0:fa.length)>1&&ht.createElement("span",null,ht.createElement(We.default,{checked:ua,onChange:Gr=>cr(Gr.target.checked),className:`${wt.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),ht.createElement("span",{className:`${wt.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"))),ht.createElement("p",{className:wt.titleWrap},ht.createElement("span",{className:wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),ht.createElement(Xt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:or,onChange:Gr=>ha(Gr)}))};var Ke=(0,ct.connect)(({loading:Dt,globalSetting:Jt})=>({globalSetting:Jt,loading:Dt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Xe)),yt=E(47889),Bt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,tt=(Dt,Jt)=>{var rn={};for(var Nn in Dt)_t.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&Bt)for(var Nn of Bt(Dt))Jt.indexOf(Nn)<0&&Qe.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const Vt=null,on=(Dt,Jt)=>{var rn=Dt,{globalSetting:Nn,loading:Va,editData:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=tt(rn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)(),[ha,fa]=(0,y.useState)(""),[Nr,Da]=(0,y.useState)("");(0,y.useEffect)(()=>{if(!zr||!Fr)return;fa(zr==null?void 0:zr.name),Da(zr==null?void 0:zr.analysis);const cr=zr==null?void 0:zr.choices.find(Yr=>Yr.is_answer);or(cr.choice_text==="\u6B63\u786E"?"0":"1")},[zr]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ja,Clear:ua}));const ja=()=>ha?Wr?{name:ha,choices:[{choice_text:"\u6B63\u786E",is_answer:Wr==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:Wr==="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),ua=()=>{fa(""),Da(""),or("")};return y.createElement("section",{className:wt.wrap},y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.required},"*"),y.createElement("span",{className:wt.title},"\u9898\u5E72\uFF1A")),y.createElement(Xt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ha,onChange:cr=>fa(cr)}),y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.required},"*"),y.createElement("span",{className:wt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:wt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),y.createElement(yt.ZP.Group,{buttonStyle:"solid",value:Wr,onChange:cr=>or(cr.target.value)},y.createElement(yt.ZP.Button,{value:"0",className:`${wt.radio} mr40`},"\u6B63\u786E"),y.createElement(yt.ZP.Button,{value:"1",className:wt.radio},"\u9519\u8BEF")),y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Xt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Nr,onChange:cr=>Da(cr)}))};var Fn=(0,ct.connect)(({loading:Dt,globalSetting:Jt})=>({globalSetting:Jt,loading:Dt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(on)),gn=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,jt=(Dt,Jt)=>{var rn={};for(var Nn in Dt)Lt.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&gn)for(var Nn of gn(Dt))Jt.indexOf(Nn)<0&&Qt.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const rt=null,Nt=(Dt,Jt)=>{var rn=Dt,{globalSetting:Nn,loading:Va,editData:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=jt(rn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]);(0,y.useEffect)(()=>{var Da;if(!zr||!Fr)return;const ja=(Da=zr==null?void 0:zr.shixun)==null?void 0:Da.challenges.map(ua=>({id:ua==null?void 0:ua.id,score:ua.score}));or(ja)},[zr]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ha,Clear:fa}));const ha=()=>({challenges:[...Wr]}),fa=()=>{or([])};console.log("editData--",zr);const Nr=Da=>{var ja,ua;return y.createElement("div",null,(ua=(ja=Da==null?void 0:Da.shixun)==null?void 0:ja.challenges)==null?void 0:ua.map((cr,Yr)=>{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",Yr+1,"\u5173"),y.createElement(_e.Z,{key:Yr,title:cr==null?void 0:cr.challenge_name},y.createElement("span",null,(0,bt.Pq)(cr==null?void 0:cr.challenge_name,44)))),y.createElement("p",{style:{marginBottom:0}},y.createElement("span",{className:wt.required},"*"),y.createElement("span",{className:wt.title},"\u5206\u503C\uFF1A"),y.createElement(Ce.Z,{precision:1,min:1,max:100,className:wt.baseFormItem,style:{width:176},value:(ui=Wr.find(ba=>ba.id===cr.id))==null?void 0:ui.score,onChange:ba=>{Wr.find(ca=>ca.id===cr.id).score=ba,or([...Wr])}})))}),y.createElement("div",{style:{clear:"both"}}))};return y.createElement("section",{className:wt.wrap},y.createElement(Je.Z,{style:{paddingRight:10},className:wt.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:wt.required},"*"),y.createElement("span",{className:wt.title},"\u5173\u5361")),Nr(zr))};var fn=(0,ct.connect)(({loading:Dt,globalSetting:Jt})=>({globalSetting:Jt,loading:Dt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Nt)),yn=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,en=(Dt,Jt)=>{var rn={};for(var Nn in Dt)lt.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&yn)for(var Nn of yn(Dt))Jt.indexOf(Nn)<0&&Rt.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);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"],Yt=(Dt,Jt)=>{var rn=Dt,{editData:Nn,globalSetting:Va,loading:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=en(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)(),[Nr,Da]=(0,y.useState)([]),[ja,ua]=(0,y.useState)(""),[cr,Yr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!Nn||!Fr)return;ua(Nn==null?void 0:Nn.name),Yr(Nn==null?void 0:Nn.analysis),or(Nn==null?void 0:Nn.choices.map(ra=>ra.choice_text));const ca=[];Nn==null||Nn.choices.map((ra,Pa)=>{ra.is_answer&&ca.push(Pa)}),Da(ca)},[Nn]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ui,Clear:ba}));const ui=()=>{if(!ja)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ca=Wr.findIndex(Pa=>!Pa);if(ca>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Pt[ca]} \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 ra=Wr.map((Pa,ao)=>({choice_text:Pa,is_answer:Nr.includes(ao)?1:0}));return{name:ja,choices:ra,analysis:cr}},ba=()=>{or(["","","",""]),ua(""),Yr(""),Da("")};return y.createElement("section",{className:wt.wrap},y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.required},"*"),y.createElement("span",{className:wt.title},"\u9898\u5E72\uFF1A")),y.createElement(Xt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ja,onChange:ca=>ua(ca)}),y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.required},"*"),y.createElement("span",{className:wt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:wt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Wr.map((ca,ra)=>y.createElement("div",{className:wt.choiceWrap,key:ra},y.createElement(_e.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${wt.answer} ${Nr.includes(ra)?wt.activeAnswer:""}`,onClick:()=>{Nr.includes(ra)?Da(Nr.filter(Pa=>Pa!==ra)):Da([...Nr,ra])}},Pt[ra])),y.createElement("div",{className:wt.editorWrap},ha===ra?y.createElement(Xt.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ca,onChange:Pa=>{Wr[ra]=Pa,or(Wr)}}):y.createElement("div",{className:wt.htmlWrap,onClick:()=>fa(ra)},y.createElement(Je.Z,{value:ca}))),ra>1&&y.createElement(_e.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${wt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(Wr.filter((Pa,ao)=>ao!==ra)),Nr.includes(ra)?Da(Nr.filter(Pa=>Pa!==ra)):Da([...Nr,ra])}})),ra<14&&ra===Wr.length-1&&y.createElement(_e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${wt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...Wr,""])})))),y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Xt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:cr,onChange:ca=>Yr(ca)}))};var Gt=(0,ct.connect)(({loading:Dt,globalSetting:Jt})=>({globalSetting:Jt,loading:Dt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Yt)),Sn=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,Zn=(Dt,Jt)=>{var rn={};for(var Nn in Dt)jn.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&Sn)for(var Nn of Sn(Dt))Jt.indexOf(Nn)<0&&Dn.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);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"],Wt=(Dt,Jt)=>{var rn=Dt,{editData:Nn,globalSetting:Va,loading:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=Zn(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)(),[Nr,Da]=(0,y.useState)(),[ja,ua]=(0,y.useState)(""),[cr,Yr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!Nn||!Fr)return;const ca=[],ra=[];Nn==null||Nn.choices.forEach((Pa,ao)=>{ca.push(Pa.choice_text),Pa.is_answer&&ra.push(ao)}),ua(Nn==null?void 0:Nn.name),Yr(Nn==null?void 0:Nn.analysis),or(ca),Da(ra)},[Nn]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ui,Clear:ba}));const ui=()=>{if(!ja)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ca=Wr.findIndex(Pa=>!Pa);if(ca>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ot[ca]} \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 ra=Wr.map((Pa,ao)=>({choice_text:Pa,is_answer:Nr.includes(ao)?1:0}));return{name:ja,choices:ra,analysis:cr}},ba=()=>{or(["","","",""]),ua(""),Yr(""),Da("")};return y.createElement("section",{className:wt.wrap},y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.required},"*"),y.createElement("span",{className:wt.title},"\u9898\u5E72\uFF1A")),y.createElement(Xt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ja,onChange:ca=>ua(ca)}),y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.required},"*"),y.createElement("span",{className:wt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:wt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Wr.map((ca,ra)=>y.createElement("div",{className:wt.choiceWrap,key:ra},y.createElement(_e.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${wt.answer} ${Nr!=null&&Nr.includes(ra)?wt.activeAnswer:""}`,onClick:()=>Da([ra])},Ot[ra])),y.createElement("div",{className:wt.editorWrap},ha===ra?y.createElement(Xt.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ca,onChange:Pa=>{Wr[ra]=Pa,or(Wr)}}):y.createElement("div",{className:wt.htmlWrap,onClick:()=>fa(ra)},y.createElement(Je.Z,{value:ca}))),ra>1&&y.createElement(_e.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${wt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(Wr.filter((Pa,ao)=>ao!==ra)),ra===Nr&&Da(null)}})),ra<14&&ra===Wr.length-1&&y.createElement(_e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${wt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...Wr,""])})))),y.createElement("p",{className:wt.titleWrap},y.createElement("span",{className:wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Xt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:cr,onChange:ca=>Yr(ca)}))};var ln=(0,ct.connect)(({loading:Dt,globalSetting:Jt})=>({globalSetting:Jt,loading:Dt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Wt)),bn=E(96599),tn=E(58755),wn=E(61485),Cn=E(59301),Pn=Object.defineProperty,vr=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,Vr=(Dt,Jt,rn)=>Jt in Dt?Pn(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Zr=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))br.call(Jt,rn)&&Vr(Dt,rn,Jt[rn]);if(dr)for(var rn of dr(Jt))yr.call(Jt,rn)&&Vr(Dt,rn,Jt[rn]);return Dt},An=(Dt,Jt)=>vr(Dt,Qn(Jt)),$n=(Dt,Jt)=>{var rn={};for(var Nn in Dt)br.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&dr)for(var Nn of dr(Dt))Jt.indexOf(Nn)<0&&yr.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn},fr=(Dt,Jt,rn)=>new Promise((Nn,Va)=>{var zr=Fr=>{try{pr(rn.next(Fr))}catch(aa){Va(aa)}},qn=Fr=>{try{pr(rn.throw(Fr))}catch(aa){Va(aa)}},pr=Fr=>Fr.done?Nn(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Dt,Jt)).next())});const ur=Dt=>{if(!Dt)return!1;if(/^s*$/.test(Dt)||Dt.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 Dt==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},kt=({value:Dt=[],onClose:Jt})=>Cn.createElement(bn.default,{closable:!0,onClose:Jt,className:wt.keywordTag},Cn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Dt.join(" \u6216 "))),Ut=(Dt,Jt)=>{var rn=Dt,{editData:Nn,globalSetting:Va,loading:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=$n(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)(""),[ha,fa]=(0,y.useState)(""),[Nr,Da]=(0,y.useState)(""),[ja,ua]=(0,y.useState)(""),[cr]=ce.default.useForm(),Yr=ce.default.useWatch("use_keywords",cr);(0,y.useEffect)(()=>{var ra;!Nn||!Fr||(or(Nn==null?void 0:Nn.name),fa(Nn==null?void 0:Nn.analysis),Da((ra=Nn==null?void 0:Nn.answer_texts)==null?void 0:ra[0]),cr.setFieldsValue(Zr({},Nn)))},[Nn]),(0,y.useImperativeHandle)(Jt,()=>({onSave:ui,Clear:ba}));const ui=()=>fr(void 0,null,function*(){if(!Wr)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield cr.validateFields()}catch(Pa){ke.ZP.error(Pa.errorFields[0].errors[0]);return}const ra=cr.getFieldsValue();return console.log(ra,"values"),Zr({name:Wr,answer_texts:[Nr],analysis:ha},ra)}),ba=()=>{or(""),fa(""),Da(""),cr.resetFields()},ca=Nn==null?void 0:Nn.score;return Cn.createElement("section",{className:wt.wrap},Cn.createElement("p",{className:wt.titleWrap},Cn.createElement("span",{className:wt.required},"*"),Cn.createElement("span",{className:wt.title},"\u9898\u5E72\uFF1A")),Cn.createElement(Xt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Wr,onChange:ra=>or(ra)}),Cn.createElement("p",{className:wt.titleWrap},Cn.createElement("span",{className:wt.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),Cn.createElement(Xt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Nr,onChange:ra=>Da(ra)}),Cn.createElement("p",{className:wt.titleWrap},Cn.createElement("span",{className:wt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Cn.createElement(Xt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ha,onChange:ra=>fa(ra)}),Cn.createElement(ce.default,{form:cr,size:"large",onFinishFailed:ra=>fr(void 0,null,function*(){var Pa,ao;ke.ZP.error(ra.errorFields[0].errors[0]),cr.scrollToField((ao=(Pa=ra==null?void 0:ra.errorFields)==null?void 0:Pa[0])==null?void 0:ao.name,{behavior:"smooth",block:"center"})})},Cn.createElement(dt.Z,{align:"middle",className:"mb30 mt20"},Cn.createElement(ce.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},Cn.createElement(tn.Z,null)),Cn.createElement(Ge.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Cn.createElement(Ge.Z,null,Cn.createElement(_e.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"},Cn.createElement(wn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Yr&&Cn.createElement(ce.default.List,{name:"keywords",rules:[{validator(ra,Pa){return Pa!=null&&Pa.length?(Pa==null?void 0:Pa.reduce((qo,Ko)=>qo+Ko.score,0))>parseFloat(ca)?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"))}}]},(ra,{add:Pa,remove:ao})=>Cn.createElement(Cn.Fragment,null,Cn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),Cn.createElement(dt.Z,{align:"middle",className:"font14 mb30"},Cn.createElement(Ge.Z,{flex:1},Cn.createElement(De.default,{value:ja,onChange:qo=>{ua(qo.target.value)},maxLength:50,allowClear:!0,onPressEnter:qo=>{var Ko,Xl,Oi,Tl;const Pl=`${(Ko=qo.target)==null?void 0:Ko.value}`,Gr=(Oi=(Xl=Pl==null?void 0:Pl.split("|"))==null?void 0:Xl.filter(Eo=>!!Eo))==null?void 0:Oi.map(Eo=>Eo==null?void 0:Eo.trim()),bo=cr.getFieldValue("keywords"),Po=((Tl=bo==null?void 0:bo.map(Eo=>Eo==null?void 0:Eo.keyword))==null?void 0:Tl.flat())||[];for(const Eo of Gr)if(Po.includes(Eo)){ke.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ur(Pl)&&(Pa({keyword:Gr,score:1}),ua(""))},className:wt.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"})),Cn.createElement(Ge.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),ra.map(qo=>{var Ko=qo,{key:Xl,name:Oi}=Ko,Tl=$n(Ko,["key","name"]);return Cn.createElement(dt.Z,{key:Xl,style:{marginRight:148}},Cn.createElement(Ge.Z,{flex:1},Cn.createElement(dt.Z,{align:"middle",justify:"space-between"},Cn.createElement(ce.default.Item,An(Zr({},Tl),{name:[Oi,"keyword"]}),Cn.createElement(kt,{onClose:()=>ao(Oi)})),Cn.createElement(ce.default.Item,An(Zr({},Tl),{name:[Oi,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Cn.createElement(Ce.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var pt=(0,ct.connect)(({loading:Dt,globalSetting:Jt})=>({globalSetting:Jt,loading:Dt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ut)),Zt=E(8848),at={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"},gt=E(32134),cn=E(12893),ar=Object.defineProperty,mr=Object.defineProperties,At=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,On=(Dt,Jt,rn)=>Jt in Dt?ar(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Kn=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))Mt.call(Jt,rn)&&On(Dt,rn,Jt[rn]);if(Tt)for(var rn of Tt(Jt))Kt.call(Jt,rn)&&On(Dt,rn,Jt[rn]);return Dt},Un=(Dt,Jt)=>mr(Dt,At(Jt)),Hn=(Dt,Jt)=>{var rn={};for(var Nn in Dt)Mt.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&Tt)for(var Nn of Tt(Dt))Jt.indexOf(Nn)<0&&Kt.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const hr=Dt=>{var Jt=Dt,{value:rn,onChange:Nn,scrollId:Va}=Jt,zr=Hn(Jt,["value","onChange","scrollId"]);return y.createElement("div",{id:Va||""},y.createElement(Xt.Z,Un(Kn({},zr),{defaultValue:rn,onChange:(qn,pr)=>{pr!=null&&pr.length?Nn(qn,pr):Nn(qn)}})))},Pr=({value:Dt,onChange:Jt,placeholder:rn,height:Nn=140,isEdit:Va})=>Va?y.createElement(Xt.Z,{watch:!0,isFocus:!0,height:Nn,placeholder:rn,defaultValue:Dt,onChange:Jt}):y.createElement("div",{style:{cursor:"pointer"}},Dt?y.createElement(Je.Z,{className:at.inputBorder,value:Dt}):y.createElement("div",{className:`${at.inputBorder} ${at.placeholder}`},rn));var Tr=E(59301),Lr=Object.defineProperty,Cr=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,Xr=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,xa=(Dt,Jt,rn)=>Jt in Dt?Lr(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Fa=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))oa.call(Jt,rn)&&xa(Dt,rn,Jt[rn]);if(Xr)for(var rn of Xr(Jt))ta.call(Jt,rn)&&xa(Dt,rn,Jt[rn]);return Dt},Ur=(Dt,Jt)=>Cr(Dt,Rr(Jt)),ya=(Dt,Jt)=>{var rn={};for(var Nn in Dt)oa.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&Xr)for(var Nn of Xr(Dt))Jt.indexOf(Nn)<0&&ta.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const Xa=["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"],Ia=({value:Dt,onChange:Jt,choiceTextKey:rn,answerKey:Nn,index:Va,isEdit:zr,setInputActive:qn,form:pr,choiceOptionsPath:Fr,allowChangeMode:aa,showAddIcon:Wr,addItem:or,deleteItem:ha})=>{const fa=(Dt==null?void 0:Dt[Nn])===!0,Nr=()=>{const ja=pr.getFieldValue(Fr);pr.setFieldValue(Fr,ja.map(ua=>Ur(Fa({},ua),{[Nn]:!1})))},Da=()=>{fa?Jt(Ur(Fa({},Dt),{[Nn]:!1})):(aa||Nr(),Jt(Ur(Fa({},Dt),{[Nn]:!0})))};return Tr.createElement(dt.Z,{className:at.choiceWrap,align:"middle",wrap:!1},Tr.createElement(Ge.Z,{onClick:Da,className:`${at.choiceIndex} ${fa?at.activeAnswer:""}`},Xa[Va]),Tr.createElement(Ge.Z,{flex:1,className:`${at.editorWrap} ml15`,onClick:qn},Tr.createElement(Pr,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:zr,value:Dt==null?void 0:Dt[rn],onChange:ja=>{Jt(Ur(Fa({},Dt),{[rn]:ja}))}})),Tr.createElement(Ge.Z,{flex:"0 0 auto",className:"ml15"},Tr.createElement("div",{onClick:Da,className:`${at.setAnswerBtn} ${fa?at.activeAnswer:""}`},fa?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Tr.createElement(Ge.Z,{className:at.actionWrapper},Tr.createElement(_e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Tr.createElement(gt.Z,{className:at.addIcon,onClick:or,style:{visibility:Wr?"visible":"hidden"}})),Tr.createElement(_e.Z,{title:"\u5220\u9664"},Tr.createElement(cn.Z,{className:at.deleteIcon,onClick:ha,style:{visibility:Va>1?"visible":"hidden"}}))))},pa=({questionTitlePlaceholder:Dt,titleKey:Jt,choiceKey:rn,analysisKey:Nn,choiceTextKey:Va,answerKey:zr,choiceOptionsPath:qn,allowChangeMode:pr=!0,form:Fr,showAnalysis:aa=!0})=>{const[Wr,or]=(0,y.useState)(),[ha,fa]=(0,y.useState)(!1);return Tr.createElement("div",{className:at.wrap},Tr.createElement("div",{className:at.questionTitleEditorWrap},Tr.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Jt,labelCol:{span:24},rules:[{required:!0}]},Tr.createElement(hr,{scrollId:Array.isArray(Jt)?Jt.join("_"):`${Jt}`,watch:!0,height:140,placeholder:Dt}))),Tr.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),Tr.createElement(ce.default.List,{name:rn,rules:[{validator(Nr,Da){const ja=Da.some(cr=>cr[zr]),ua=Da.findIndex(cr=>{var Yr;return((Yr=cr[Va])==null?void 0:Yr.length)<=0});return ua!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Xa[ua]}\u9009\u9879\u7684\u5185\u5BB9`)):ja?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Nr,{add:Da,remove:ja})=>Tr.createElement("div",{id:Array.isArray(qn)?qn.join("_"):`${qn}`},Nr.map((ua,cr)=>{var Yr=ua,{key:ui,name:ba}=Yr,ca=ya(Yr,["key","name"]);const ra=Wr===ui,Pa=()=>{or(ui)},ao=cr<7&&cr===Nr.length-1,qo=()=>Da({[Va]:"",[zr]:0}),Ko=()=>ja(ba);return Tr.createElement(ce.default.Item,Ur(Fa({},ca),{key:ui,name:ba,noStyle:!0}),Tr.createElement(Ia,{choiceTextKey:Va,answerKey:zr,index:cr,isEdit:ra,setInputActive:Pa,form:Fr,choiceOptionsPath:qn,allowChangeMode:pr,showAddIcon:ao,addItem:qo,deleteItem:Ko}))}),Nr.length<15&&Tr.createElement("div",{className:`${at.addBtn} mb30`,onClick:()=>Da({[Va]:"",[zr]:0})},"\u6DFB\u52A0\u9009\u9879"))),aa&&Tr.createElement("div",{onClick:()=>fa(!0)},Tr.createElement(ce.default.Item,{name:Nn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Tr.createElement(Pr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ha}))))};var kr=E(59301),Za=Object.defineProperty,Sa=Object.defineProperties,la=Object.getOwnPropertyDescriptors,Kr=Object.getOwnPropertySymbols,Ya=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,ji=(Dt,Jt,rn)=>Jt in Dt?Za(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,za=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))Ya.call(Jt,rn)&&ji(Dt,rn,Jt[rn]);if(Kr)for(var rn of Kr(Jt))Mi.call(Jt,rn)&&ji(Dt,rn,Jt[rn]);return Dt},Di=(Dt,Jt)=>Sa(Dt,la(Jt)),mi=(Dt,Jt)=>{var rn={};for(var Nn in Dt)Ya.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&Kr)for(var Nn of Kr(Dt))Jt.indexOf(Nn)<0&&Mi.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const Wi=({value:Dt,onChange:Jt,position:rn,removeBlank:Nn})=>{const Va=qn=>{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:at.modal,onOk:()=>{const pr=[...Dt];pr.splice(qn,1),pr.length===0?Nn(rn-1):Jt(pr)}})},zr=()=>{const qn=[...Dt];qn.push(""),Jt(qn)};return kr.createElement(dt.Z,{className:"ml20"},kr.createElement(Ge.Z,{flex:1},Dt==null?void 0:Dt.map((qn,pr)=>kr.createElement(dt.Z,{key:`${qn}_${pr}`,className:"mb20"},kr.createElement(De.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:qn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Fr=>{const aa=[...Dt],Wr=Fr.target.value.trim();aa[pr]=Wr,Jt(aa)}}),kr.createElement(_e.Z,{title:"\u5220\u9664"},kr.createElement(cn.Z,{className:at.deleteIcon,style:{marginLeft:15,visibility:rn===1&&pr===0?"hidden":"visible"},onClick:()=>Va(pr)})),kr.createElement(_e.Z,{title:"\u65B0\u589E\u7B54\u6848"},kr.createElement(gt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:pr===0?"visible":"hidden"},onClick:()=>{zr()}}))))))},Ei=({value:Dt=!0,onChange:Jt})=>kr.createElement(tn.Z,{checked:!Dt,onChange:rn=>{Jt(!rn)}}),ei="\u2581",Ar=({questionTitlePlaceholder:Dt,form:Jt,name:rn,scoreByBlank:Nn="use_blank_score",answerKey:Va,titleKey:zr="name",analysisKey:qn="analysis",isOrdered:pr="is_ordered"})=>{var Fr,aa;const[Wr,or]=(0,y.useState)(!1),ha=()=>{const cr=Jt.getFieldValue(["sub_item_banks",...Va]);Jt.setFieldValue(["sub_item_banks",...Va],cr==null?void 0:cr.map((Yr,ui)=>Di(za({},Yr),{position:ui+1})))},fa=(0,y.useRef)(),Nr=(cr,Yr)=>{for(let ui=0;ui<cr;ui++)fa.current({position:null,answer_text:[""]},Yr+ui);ha()},Da=(0,y.useRef)(),ja=cr=>{Da.current(cr),ha()},ua=(aa=(Fr=Jt.getFieldValue("sub_item_banks"))==null?void 0:Fr[Va==null?void 0:Va[0]])==null?void 0:aa[Va==null?void 0:Va[1]];return kr.createElement("div",{className:at.wrap},kr.createElement("div",{className:at.questionTitleEditorWrap},kr.createElement(ce.default.Item,{label:"\u9898\u5E72",name:zr,labelCol:{span:24},rules:[{required:!0}]},kr.createElement(hr,{scrollId:"name",watch:!0,height:140,placeholder:Dt,showNullButton:!0,onAddBlank:()=>{const cr=Jt.getFieldValue(["sub_item_banks",...Va]);Nr(1,cr==null?void 0:cr.length)}}))),kr.createElement(ce.default.List,{name:Va,rules:[{validator(cr,Yr){if((Yr==null?void 0:Yr.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const ui of Yr){const{answer_text:ba}=ui||{};if(ba!=null&&ba.some(ca=>(ca==null?void 0:ca.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(cr,{add:Yr,remove:ui},{errors:ba})=>(fa.current=Yr,Da.current=ui,kr.createElement(kr.Fragment,null,kr.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),cr.map((ca,ra)=>{var Pa=ca,{key:ao,name:qo}=Pa,Ko=mi(Pa,["key","name"]);return kr.createElement(dt.Z,{key:ao,align:"top",wrap:!1},kr.createElement(Ge.Z,{flex:"0 0 auto",className:`${at.blankIndex} pt5`},"\u586B\u7A7A\u9879",ra+1),kr.createElement(Ge.Z,{flex:1},kr.createElement(dt.Z,{align:"top",justify:"space-between",wrap:!1},kr.createElement(Ge.Z,{flex:1},kr.createElement(ce.default.Item,Di(za({},Ko),{name:[qo,"answer_text"],noStyle:!0}),kr.createElement(Wi,{removeBlank:ja,position:ra+1}))),(Jt==null?void 0:Jt.getFieldValue(["sub_item_banks",...Nn]))&&kr.createElement(Ge.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},kr.createElement(ce.default.Item,Di(za({},Ko),{name:[qo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:at.blankInputNumberWrapper}),kr.createElement(Ce.Z,{className:at.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),kr.createElement(ce.default.Item,Di(za({},Ko),{name:[qo,"position"],noStyle:!0}),kr.createElement(De.default,{type:"hidden"}))))})))),kr.createElement(Se.ZP,{className:"mb20",onClick:()=>Nr(1,ua==null?void 0:ua.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),kr.createElement(dt.Z,{align:"middle"},kr.createElement(ce.default.Item,{name:[rn,"downcase"],valuePropName:"checked"},kr.createElement(tn.Z,null)),kr.createElement(Ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),kr.createElement(dt.Z,{align:"middle"},kr.createElement(ce.default.Item,{name:[rn,"no_space"],valuePropName:"checked"},kr.createElement(tn.Z,null)),kr.createElement(Ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ua==null?void 0:ua.length)>1&&kr.createElement(dt.Z,{align:"middle",className:(ua==null?void 0:ua.length)>1?"mb30":`${at.hide}`},kr.createElement(ce.default.Item,{name:pr},kr.createElement(Ei,null)),kr.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")),kr.createElement("div",{onClick:()=>or(!0)},kr.createElement(ce.default.Item,{name:qn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},kr.createElement(Pr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wr}))))};var Jn=Object.defineProperty,xr=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,Er=(Dt,Jt,rn)=>Jt in Dt?Jn(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Dr=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))$r.call(Jt,rn)&&Er(Dt,rn,Jt[rn]);if(tr)for(var rn of tr(Jt))sa.call(Jt,rn)&&Er(Dt,rn,Jt[rn]);return Dt},jr=(Dt,Jt)=>xr(Dt,Sr(Jt)),Qr=(Dt,Jt)=>{var rn={};for(var Nn in Dt)$r.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&tr)for(var Nn of tr(Dt))Jt.indexOf(Nn)<0&&sa.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const Na={\u6B63\u786E:"T",\u9519\u8BEF:"F"},$a=({value:Dt,onChange:Jt,form:rn,choiceKey:Nn})=>{const Va=(Dt==null?void 0:Dt.is_answer)===!0,zr=Dt==null?void 0:Dt.choice_text,qn=()=>{var pr;const Fr=(pr=rn==null?void 0:rn.getFieldValue(["sub_item_banks",...Nn]))==null?void 0:pr.map(aa=>({choice_text:aa==null?void 0:aa.choice_text,is_answer:!1}));rn==null||rn.setFieldValue(["sub_item_banks",...Nn],Fr),Jt(jr(Dr({},Dt),{is_answer:!0}))};return y.createElement(dt.Z,{className:at.choiceWrap,align:"middle",wrap:!1},y.createElement(Ge.Z,{onClick:qn,className:`${at.choiceIndex} ${at.judgementIndex} ${Va?at.activeAnswer:""}`},Na[zr]),y.createElement(Ge.Z,{flex:1,className:`${at.editorWrap} ml15`},y.createElement("div",{className:`${at.inputBorder} ${at.placeholder} ${Va?at.activeJudgementAnswer:""}`},zr)),y.createElement(Ge.Z,{flex:"0 0 auto",className:"ml15"},y.createElement("div",{onClick:qn,className:`${at.setAnswerBtn} ${Va?at.activeAnswer:""}`},Va?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ea=({questionTitlePlaceholder:Dt,choiceKey:Jt="choices",form:rn,titleKey:Nn="name",analysisKey:Va="analysis"})=>{const[zr,qn]=(0,y.useState)(!1);return y.createElement("div",{className:at.wrap},y.createElement("div",{className:at.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Nn,labelCol:{span:24},rules:[{required:!0}]},y.createElement(hr,{scrollId:"name",watch:!0,height:140,placeholder:Dt}))),y.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},y.createElement(ce.default.List,{name:Jt,rules:[{validator(pr,Fr){return Fr.some(Wr=>(Wr==null?void 0:Wr.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},pr=>y.createElement("div",{id:"choices"},pr.map(Fr=>{var aa=Fr,{key:Wr,name:or}=aa,ha=Qr(aa,["key","name"]);return y.createElement(ce.default.Item,jr(Dr({},ha),{key:Wr,name:or,noStyle:!0}),y.createElement($a,{form:rn,choiceKey:Jt}))})))),y.createElement("div",{onClick:()=>qn(!0)},y.createElement(ce.default.Item,{name:Va,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Pr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:zr}))))};var ai=Object.defineProperty,gi=Object.defineProperties,zi=Object.getOwnPropertyDescriptors,Ui=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,co=(Dt,Jt,rn)=>Jt in Dt?ai(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,No=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))Ji.call(Jt,rn)&&co(Dt,rn,Jt[rn]);if(Ui)for(var rn of Ui(Jt))Yi.call(Jt,rn)&&co(Dt,rn,Jt[rn]);return Dt},$o=(Dt,Jt)=>gi(Dt,zi(Jt)),Wo=(Dt,Jt)=>{var rn={};for(var Nn in Dt)Ji.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&Ui)for(var Nn of Ui(Dt))Jt.indexOf(Nn)<0&&Yi.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn};const Ba=Dt=>{var Jt=Dt,{value:rn,onChange:Nn}=Jt,Va=Wo(Jt,["value","onChange"]);const zr=qn=>{Nn([qn])};return y.createElement(Xt.Z,$o(No({},Va),{defaultValue:rn==null?void 0:rn[0],onChange:zr}))},Ii=Dt=>{if(!Dt)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 Dt==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ri=({value:Dt=[],onClose:Jt})=>y.createElement(bn.default,{closable:!0,onClose:Jt,className:at.keywordTag},Dt==null?void 0:Dt.join(" \u6216 ")),So=({questionTitlePlaceholder:Dt,form:Jt,showKeywords:rn,isMustKeyWords:Nn=rn,titleKey:Va="name",analysisKey:zr="analysis",answerTexts:qn="answer_texts",keywords:pr="keywords",useKeywords:Fr="use_keywords",indexs:aa})=>{const[Wr,or]=(0,y.useState)(!1),[ha,fa]=(0,y.useState)(""),Nr=ce.default.useWatch("sub_item_banks",Jt),{use_keywords:Da,score:ja}=(Nr==null?void 0:Nr[aa])||{};return console.log(Da,ja,"itemValues"),y.createElement("div",{className:at.wrap},y.createElement("div",{className:at.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Va,labelCol:{span:24},rules:[{required:!0}]},y.createElement(hr,{scrollId:"name",watch:!0,height:140,placeholder:Dt}))),y.createElement(ce.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:qn,labelCol:{span:24}},y.createElement(Ba,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),rn&&!Nn&&y.createElement(ce.default.Item,{hidden:!0,name:Fr,valuePropName:"checked"},y.createElement(tn.Z,{defaultChecked:!0})),rn&&Nn&&y.createElement(dt.Z,{align:"middle",className:"mb30"},y.createElement(ce.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(_e.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(wn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Da||!Nn)&&y.createElement(ce.default.List,{name:pr,rules:[{validator(ua,cr){return Nn?cr!=null&&cr.length?(cr==null?void 0:cr.reduce((ui,ba)=>ui+ba.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()}}]},(ua,{add:cr,remove:Yr})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${at.title} mb10`},Nn?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(dt.Z,{align:"middle",className:"font14 mb30"},y.createElement(Ge.Z,{flex:1},y.createElement(De.default,{value:ha,onChange:ui=>{fa(ui.target.value)},maxLength:50,allowClear:!0,onPressEnter:ui=>{var ba,ca,ra,Pa;const ao=`${(ba=ui.target)==null?void 0:ba.value}`,qo=(ra=(ca=ao==null?void 0:ao.split("|"))==null?void 0:ca.filter(Oi=>!!Oi))==null?void 0:ra.map(Oi=>Oi==null?void 0:Oi.trim()),Ko=Jt.getFieldValue(["sub_item_banks",...pr]),Xl=((Pa=Ko==null?void 0:Ko.map(Oi=>Oi==null?void 0:Oi.keyword))==null?void 0:Pa.flat())||[];for(const Oi of qo)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}Ii(ao)&&(cr({keyword:qo,score:1}),fa(""))},className:at.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")),ua.map(ui=>{var ba=ui,{key:ca,name:ra}=ba,Pa=Wo(ba,["key","name"]);return y.createElement(dt.Z,{key:ca,className:"mb20",style:{marginRight:148}},y.createElement(Ge.Z,{flex:1},y.createElement(dt.Z,{align:"middle",justify:"space-between"},y.createElement(ce.default.Item,$o(No({},Pa),{name:[ra,"keyword"]}),y.createElement(ri,{onClose:()=>Yr(ra)})),Nn&&y.createElement(ce.default.Item,$o(No({},Pa),{name:[ra,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:at.blankInputNumberWrapper}),y.createElement(Ce.Z,{className:at.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(ce.default.Item,{name:zr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Pr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wr}))))};var ci=E(59301),il=Object.defineProperty,$l=Object.defineProperties,Ol=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Nl=(Dt,Jt,rn)=>Jt in Dt?il(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,Ul=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))Yo.call(Jt,rn)&&Nl(Dt,rn,Jt[rn]);if(Vo)for(var rn of Vo(Jt))no.call(Jt,rn)&&Nl(Dt,rn,Jt[rn]);return Dt},_l=(Dt,Jt)=>$l(Dt,Ol(Jt)),Io=(Dt,Jt)=>{var rn={};for(var Nn in Dt)Yo.call(Dt,Nn)&&Jt.indexOf(Nn)<0&&(rn[Nn]=Dt[Nn]);if(Dt!=null&&Vo)for(var Nn of Vo(Dt))Jt.indexOf(Nn)<0&&no.call(Dt,Nn)&&(rn[Nn]=Dt[Nn]);return rn},es=(Dt,Jt,rn)=>new Promise((Nn,Va)=>{var zr=Fr=>{try{pr(rn.next(Fr))}catch(aa){Va(aa)}},qn=Fr=>{try{pr(rn.throw(Fr))}catch(aa){Va(aa)}},pr=Fr=>Fr.done?Nn(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Dt,Jt)).next())});const{Panel:as}=Zt.default,Ni=null,Qi=(Dt,Jt)=>{var rn=Dt,{globalSetting:Nn,loading:Va,dispatch:zr,editData:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=Io(rn,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[Wr,or]=(0,y.useState)(""),[ha,fa]=(0,y.useState)([]),[Nr]=ce.default.useForm();(0,y.useEffect)(()=>{!qn||!Fr||(or(qn==null?void 0:qn.name),fa(qn==null?void 0:qn.sub_item_banks),Nr.setFieldsValue(Ul({},qn)))},[qn]),(0,y.useEffect)(()=>{fa(Nr.getFieldValue("sub_item_banks"))},[ce.default.useWatch("sub_item_banks",Nr)]),(0,y.useImperativeHandle)(Jt,()=>({onSave:Da,Clear:ja}));const Da=()=>es(void 0,null,function*(){if(!Wr)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield Nr.validateFields()}catch(ca){return console.log(ca,"errInfo"),ke.ZP.error(ca.errorFields[0].errors[0]),!1}const ba=ha.map(ca=>Ul({id:ca.id>1?ca.id:null},ca));return{name:Wr,sub_item_banks:ba}}),ja=()=>{or(""),fa([])},ua={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"},cr=({value:ba})=>ci.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},ba),[Yr,ui]=(0,y.useState)();return ci.createElement("section",{className:wt.wrap},ci.createElement("p",{className:wt.titleWrap},ci.createElement("span",{className:wt.required},"*"),ci.createElement("span",{className:wt.title},"\u9898\u5E72\uFF1A")),ci.createElement(Xt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Wr,onChange:ba=>or(ba)}),ci.createElement(ce.default,{form:Nr,autoComplete:"off"},ci.createElement(ce.default.List,{name:"sub_item_banks",rules:[{validator(ba,ca){return ca?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(ba,{add:ca,remove:ra})=>{const Pa=Nr.getFieldValue("sub_item_banks");return ci.createElement(ci.Fragment,null,ci.createElement(Zt.default,{className:ba.length>0?wt.collapseWrapper:"",bordered:!1,expandIcon:({isActive:ao})=>ci.createElement("i",{className:`iconfont icon-weizhankai ${ao?wt.open:wt.close}`,style:{fontSize:14,transition:"all .2s"}})},ba.map((ao,qo)=>{var Ko=ao,{key:Xl,name:Oi}=Ko,Tl=Io(Ko,["key","name"]),Pl,Gr,bo,Po,Eo,yl,$s,Ms,eu,xs,Fs,tu;return ci.createElement(as,{className:wt.panel,forceRender:!0,header:ci.createElement("div",{className:wt.panelHeader},"\u7B2C",qo+1,"\u5C0F\u9898",ci.createElement("span",null,"\uFF08",ua[(Pl=Pa==null?void 0:Pa[Oi])==null?void 0:Pl.item_type],"\uFF09")),extra:ci.createElement(dt.Z,{align:"middle",onClick:cs=>cs.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Gr=Pa==null?void 0:Pa[Oi])==null?void 0:Gr.item_type)=="completion"&&ci.createElement(ce.default.Item,_l(Ul({},Tl),{name:[Oi,"score"],className:wt.blankInputNumberWrapper,style:{marginBottom:0}}),((bo=Pa==null?void 0:Pa[Oi])==null?void 0:bo.item_type)=="completion"&&ci.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",ci.createElement(cr,{value:(Po=Pa==null?void 0:Pa[Oi])==null?void 0:Po.score}),"\u5206")),((Eo=Pa==null?void 0:Pa[Oi])==null?void 0:Eo.item_type)=="completion"&&ci.createElement(ci.Fragment,null,ci.createElement(yt.ZP.Group,{defaultValue:(yl=Pa==null?void 0:Pa[Oi])==null?void 0:yl.use_blank_score,className:wt.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:cs=>{var Ss;console.log(Nr.getFieldsValue()),Nr==null||Nr.setFieldValue(["sub_item_banks",Oi,"use_blank_score"],(Ss=cs==null?void 0:cs.target)==null?void 0:Ss.value),ui(new Date)}}),ci.createElement(_e.Z,{overlayInnerStyle:{width:460},title:ci.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",ci.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")},ci.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Xl},ci.createElement(ce.default.Item,_l(Ul({},Tl),{name:Oi}),((($s=Pa==null?void 0:Pa[Oi])==null?void 0:$s.item_type)=="single"||((Ms=Pa==null?void 0:Pa[Oi])==null?void 0:Ms.item_type)=="multiple")&&ci.createElement(pa,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((eu=Pa==null?void 0:Pa[Oi])==null?void 0:eu.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"}),((xs=Pa==null?void 0:Pa[Oi])==null?void 0:xs.item_type)=="completion"&&ci.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:Yr}),((Fs=Pa==null?void 0:Pa[Oi])==null?void 0:Fs.item_type)=="judgement"&&ci.createElement(ea,{form:Nr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Oi,"name"],analysisKey:[Oi,"analysis"],choiceKey:[Oi,"choices"]}),((tu=Pa==null?void 0:Pa[Oi])==null?void 0:tu.item_type)=="subjective"&&ci.createElement(So,{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,ct.connect)(({loading:Dt,globalSetting:Jt})=>({globalSetting:Jt,loading:Dt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Qi)),pi=E(96194),Hi=E(79939),uo=E(82326),Il=E(70858),oo={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"},Qo=E(78176),Jo=E(16561),hn=E(85410),vn=E(48027),Tn=E(40412),wr=E(16628),rr=({open:Dt,onCancel:Jt,onOk:rn})=>{const Nn=(0,Jo.g)(),[Va,zr,qn,pr]=(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,aa]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Dt&&qn({page:1,limit:10,type:0},!0).then(Nr=>{(Nr==null?void 0:Nr.shixuns_count)===0&&aa(!0)})},[Dt]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)([]);return y.createElement(Ee.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Dt,width:948,centered:!0,closable:!0,onCancel:Jt,onOk:()=>rn(ha),destroyOnClose:!0},y.createElement(dt.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(Ge.Z,null,y.createElement(Hi.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Nn,onChange:Nr=>{qn({page:1,discipline_id:Nr==null?void 0:Nr[0],sub_discipline_id:Nr==null?void 0:Nr[1]})}}),y.createElement(uo.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=>qn({page:1,diff:Nr})}),y.createElement(uo.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=>qn({page:1,shixun_publish_status:Nr})})),y.createElement(Qo.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Nr=>{qn({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,bt.xg)("/shixuns")})):y.createElement(Il.default,{loading:zr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Nr,Da)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:Da!=null&&Da.high_resources_consume?oo.title:"",title:Nr||"--"},y.createElement(Je.Z,{key:1,showLines:1,showTextOnly:!0,value:Nr||"--"})),(Da==null?void 0:Da.high_resources_consume)&&y.createElement(wr.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Nr,Da,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(_e.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(wn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Nr,Da,ja)=>y.createElement("span",null,Nr||"- -")},{title:"\u64CD\u4F5C",render(Nr,Da){const{title:ja,challenge_names:ua,author_name:cr,identifier:Yr,author_school_name:ui,study_count:ba}=Da||{};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(Je.Z,{value:ja,style:{marginBottom:18}}),y.createElement("div",{className:oo.challengeNameWrapper},ua.map((ca,ra)=>y.createElement("div",{className:oo.challengeName,key:ra},"\u7B2C",(0,bt.EM)(ra+1),"\u9898\xA0",ca))),y.createElement(dt.Z,{className:oo.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Ge.Z,{className:oo.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:oo.shixunInfo},cr.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:oo.shixunInfo},ui),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:oo.shixunInfo},ba)),y.createElement(Se.ZP,{type:"primary",className:oo.btnToDetail,onClick:()=>(0,bt.xg)(`/shixuns/${Yr}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Da==null?void 0:Da.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${Da==null?void 0:Da.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:pr==null?void 0:pr.items,rowSelection:{type:"radio",selectedRowKeys:Wr,preserveSelectedRowKeys:!0,getCheckboxProps:Nr=>({disabled:Nr.shixun_tag_num===1}),onChange(Nr,Da){var ja,ua,cr;console.log(Nr),or(Nr);const Yr=[];for(const ba of ha)Nr.includes(ba.id)&&Yr.push(ba);const ui=Yr.map(ba=>ba.id);for(const ba of Da)ba&&Nr.includes(ba.id)&&!ui.includes(ba.id)&&Yr.push({id:ba.id,difficulty:ba.level,identifier:ba.identifier,name:ba.name,real_name:(ja=ba==null?void 0:ba.author_name)==null?void 0:ja.split("\u3001")[0],school_name:ba.author_school_name,challenge_names:ba.challenge_names,challenges:(ua=ba.challenge_names)==null?void 0:ua.map((ca,ra)=>({subject:ca,id:ra,score:5})),score:((cr=ba.challenge_names)==null?void 0:cr.length)*5,study_count:ba.study_count,challenges_count:ba.challenges_count});fa(Yr)}},pagination:{current:Va.page,pageSize:Va.limit,total:pr==null?void 0:pr.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,Da){qn({page:Nr,limit:Da})},size:"default"},scroll:{y:400}}))},ir=E(99545),kn=E(57668),er=(Dt,Jt,rn)=>new Promise((Nn,Va)=>{var zr=Fr=>{try{pr(rn.next(Fr))}catch(aa){Va(aa)}},qn=Fr=>{try{pr(rn.throw(Fr))}catch(aa){Va(aa)}},pr=Fr=>Fr.done?Nn(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Dt,Jt)).next())}),na=({visible:Dt,getdata:Jt,onCancel:rn,onRandomExchange:Nn,selectFromProblemSet:Va,questionParams:zr})=>{const[qn,pr]=(0,y.useState)(!1),[Fr,aa]=(0,y.useState)(!1),[Wr,or]=(0,y.useState)({}),ha=(0,ct.useParams)(),[fa,Nr]=(0,y.useState)(),Da=(ja,ua)=>er(void 0,null,function*(){aa(!0);const cr=yield(0,st.ZP)(`/api/exercises/${ha.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:zr.id,item_bank_id:ja,shixuns_info:[{id:ja,is_copy:ua!=1,is_use:ua!=1}]}});aa(!1),cr!=null&&cr.status||(ke.ZP.info("\u6362\u9898\u6210\u529F"),rn(),Jt())});return y.createElement(Ee.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Dt,onCancel:rn,centered:!0,maskClosable:!0,footer:null},y.createElement(dt.Z,{justify:"center",className:"pb20"},y.createElement(pi.Z,{onClick:Nn},"\u968F\u673A\u66F4\u6362"),(zr==null?void 0:zr.type)!=="PRACTICAL"&&y.createElement(Se.ZP,{style:{marginLeft:24},onClick:Va},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(zr==null?void 0:zr.type)==="PRACTICAL"&&y.createElement(Se.ZP,{style:{marginLeft:24},onClick:()=>{pr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),y.createElement(rr,{open:qn,onCancel:()=>pr(!1),onOk:ja=>er(void 0,null,function*(){if(console.log("----selectedRows",ja,ha),(ja==null?void 0:ja.length)<=0){ke.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let ua=ja==null?void 0:ja.map(Yr=>Yr==null?void 0:Yr.id),cr=yield(0,kn.Tr)({id:[...ua],course_id:ha.coursesId,type:"shixun"});(cr==null?void 0:cr.student_count)===0?Da(ua==null?void 0:ua[0],1):(Nr(ua),or(cr)),pr(!1)})}),y.createElement(ir.Z,{resdata:Wr,type:"shixun",okloading:Fr,oktext:(Wr==null?void 0:Wr.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:ja=>er(void 0,null,function*(){Da(fa==null?void 0:fa[0],2)})}))},Ci=E(24850),ki=E(24334),fo=E(80006),ro=E(39990),Ha=E(7083),ma=E(30466),Hr=Object.defineProperty,_i=Object.defineProperties,Li=Object.getOwnPropertyDescriptors,vo=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,go=(Dt,Jt,rn)=>Jt in Dt?Hr(Dt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Dt[Jt]=rn,xi=(Dt,Jt)=>{for(var rn in Jt||(Jt={}))_o.call(Jt,rn)&&go(Dt,rn,Jt[rn]);if(vo)for(var rn of vo(Jt))Ai.call(Jt,rn)&&go(Dt,rn,Jt[rn]);return Dt},ga=(Dt,Jt)=>_i(Dt,Li(Jt)),hi=(Dt,Jt,rn)=>new Promise((Nn,Va)=>{var zr=Fr=>{try{pr(rn.next(Fr))}catch(aa){Va(aa)}},qn=Fr=>{try{pr(rn.throw(Fr))}catch(aa){Va(aa)}},pr=Fr=>Fr.done?Nn(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Dt,Jt)).next())});const di=({data:Dt,submit:Jt,goBack:rn,loading:Nn,onTypeScore:Va,editPreview:zr=!1,onSkipExamination:qn,selectValue:pr,onExchange:Fr,getdata:aa,handleMarkWrongQuestion:Wr,dispatch:or})=>{var ha,fa,Nr,Da,ja,ua,cr,Yr,ui,ba,ca;const ra=(0,y.useRef)(),[Pa,ao]=(0,y.useState)(null),[qo,Ko]=(0,y.useState)(!1),[Xl,Oi]=(0,y.useState)(!1),Tl=(0,y.useRef)(),[Pl]=ce.default.useForm(),Gr=(0,ct.useParams)(),[bo,Po]=(0,y.useState)(!1),[Eo,yl]=(0,y.useState)([]);(0,y.useEffect)(()=>{Ko(!0)},[]),(0,y.useEffect)(()=>{zr||(0,bt.Dk)("\u8BD5\u5377\u9884\u89C8")},[zr]),(0,y.useEffect)(()=>{var Wn;((Wn=Dt==null?void 0:Dt.questionList)==null?void 0:Wn.length)>0&&(Dt==null||Dt.questionList.forEach(_a=>{var Vi;_a.type==="PRACTICAL"&&((Vi=_a==null?void 0:_a.questions)==null||Vi.forEach((Ta,Ir)=>{var Zi;Eo[Ir]=!((Zi=Ta==null?void 0:Ta.shixun)!=null&&Zi.ignore_prompt),yl([...Eo])}))}))},[Dt]);const $s=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Ms={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"},eu={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"},xs=Wn=>{var _a;const Vi=[];return y.createElement(y.Fragment,null,y.createElement("aside",{className:ge.single},(_a=Wn==null?void 0:Wn.choices)==null?void 0:_a.map((Ta,Ir)=>(Ta.is_answer&&Vi.push(Ha.k4[Ir]),y.createElement("ul",{key:Ir},y.createElement("li",null,Ha.k4[Ir],"\u3001"),y.createElement("li",null,y.createElement(Je.Z,{value:Ta.choice_text})))))),y.createElement("div",{className:ge.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Vi.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",$s[Wn.difficulty])),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(Je.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(_e.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,_a)=>{var Vi;const Ta=(Vi=Wn==null?void 0:Wn.standard_answer)==null?void 0:Vi.map((Ir,Zi)=>{var Ki;return y.createElement("div",{key:Zi},`\u7B54\u6848\uFF08\u586B\u7A7A${Ir==null?void 0:Ir.position}\uFF09\uFF1A${(Ki=Ir==null?void 0:Ir.answer_text)==null?void 0:Ki.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,Ta)),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(Je.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(_e.Z,{title:_a?_a==null?void 0:_a.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:"),_a?_a==null?void 0:_a.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name)))))},tu=Wn=>{var _a;const Vi=(_a=Wn==null?void 0:Wn.standard_answer)==null?void 0:_a.map((Ta,Ir)=>y.createElement("div",{key:Ir},`\u7B54\u6848\uFF08\u586B\u7A7A${(Ta==null?void 0:Ta.position)||(Ta==null?void 0:Ta.exercise_choice_id)}\uFF09\uFF1A${Ta==null?void 0:Ta.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,Vi)),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(Je.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(_e.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)))))},cs=(Wn,_a)=>{var Vi;return y.createElement("div",{className:ge.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Vi=Wn==null?void 0:Wn.answer_texts)==null?void 0:Vi[0]),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(Je.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(_e.Z,{title:_a?_a==null?void 0:_a.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:"),_a?_a==null?void 0:_a.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name))))},Ss=Wn=>{var _a,Vi;return y.createElement("div",{className:ge.analysis},y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u9884\u671F\u8F93\u51FA:"),y.createElement(Je.Z,{value:(_a=Wn==null?void 0:Wn.program_attr)==null?void 0:_a.description})),y.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Vi=Wn==null?void 0:Wn.program_attr)==null?void 0:Vi.answer_text)||"--"),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(Je.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(_e.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))))},js=(Wn,_a)=>{var Vi;return y.createElement("div",null,(Vi=Wn==null?void 0:Wn.sub_item_banks)==null?void 0:Vi.map((Ta,Ir)=>{var Zi,Ki;const ko=[];return y.createElement(y.Fragment,null,y.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},_a+1+"."+(Ir+1),"\uFF08",Ms[Ta.item_type]||eu[Ta.item_type],"\uFF09",Ta.name),(Ta.item_type=="SINGLE"||Ta.item_type=="MULTIPLE"||Ta.item_type=="JUDGMENT"||Ta.item_type=="single"||Ta.item_type=="multiple"||Ta.item_type=="judgement")&&y.createElement(y.Fragment,null,y.createElement("aside",{className:ge.single},(Zi=Ta==null?void 0:Ta.choices)==null?void 0:Zi.map((Xi,dl)=>(Xi.is_answer&&ko.push(Ha.k4[dl]),y.createElement("ul",{key:dl},y.createElement("li",null,Ha.k4[dl],"\u3001"),y.createElement("li",null,y.createElement(Je.Z,{value:Xi.choice_text})))))),y.createElement("div",{className:ge.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ko.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",$s[Ta.difficulty])),y.createElement("aside",null,y.createElement("span",{className:ge.text},"\u89E3\u6790:"),y.createElement(Je.Z,{value:Ta.analysis?Ta.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(_e.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))))),(Ta.item_type=="COMPLETION"||Ta.item_type=="completion")&&Fs(Ta,Wn),(Ta.item_type=="SUBJECTIVE"||Ta.item_type=="subjective")&&cs(Ta,Wn),((Ki=Dt==null?void 0:Dt.exam)==null?void 0:Ki.exercise_status)===3&&y.createElement("div",{className:"flex gap-20px mt20"},y.createElement(fo.Z,{state:Ta==null?void 0:Ta.is_wrong,onClick:()=>{Wr==null||Wr({value:ga(xi({},Ta),{question_id:Ta==null?void 0:Ta.id,question_score:Ta==null?void 0:Ta.score})})}}),Ta.item_type=="single"&&y.createElement(Se.ZP,{style:{color:"#3061D0"},onClick:()=>{As({value:Ta})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Is=Wn=>{var _a,Vi,Ta;return y.createElement("div",{style:{marginTop:"12px"}},(Vi=(_a=Wn==null?void 0:Wn.shixun)==null?void 0:_a.challenges)==null?void 0:Vi.map((Ir,Zi)=>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",Zi+1,"\u5173"),y.createElement(_e.Z,{key:Zi,title:Ir==null?void 0:Ir.challenge_name},y.createElement("span",null,(0,bt.Pq)(Ir==null?void 0:Ir.challenge_name,44)))),zr&&y.createElement("div",null,"\u5206\u503C\uFF1A",Ir.score,"\u5206"))),y.createElement(ct.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Ta=Wn==null?void 0:Wn.shixun)==null?void 0:Ta.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),y.createElement("div",{style:{clear:"both"}}))},gs=Wn=>{let _a=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:_a,onChange:Vi=>{_a=Vi}}),y.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>hi(void 0,null,function*(){var Vi;if(!_a)return ke.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Ta={type:Wn==null?void 0:Wn.type,score:_a,scoreTotal:Number((Vi=_a*Wn.questions_count)==null?void 0:Vi.toFixed(1))};Va(Ta)})})},Ws=()=>{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:ot.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(De.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:Wn,onChange:_a=>{Wn=_a.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>hi(void 0,null,function*(){var _a;if(!Wn)return ke.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Vi=[],Ta=[],Ir=[],Zi=[];(_a=Dt==null?void 0:Dt.questionList)==null||_a.forEach(ko=>{var Xi;(Xi=ko.questions)==null||Xi.forEach(dl=>{let Ro=ko.questions_score/ko.questions_count;Ro=Ro&&Ro.toFixed(1),ko.type==="COMBINATION"&&Ir.push({id:dl.id,sub_item_bank_ids:dl.sub_item_banks.map(ys=>ys.id)}),ko.type==="PRACTICAL"?Zi.push(dl.id):(Vi.push(dl.id),Ta.push(Ro))})}),console.log("-----",Ir),yield Jt({item_bank_ids:Vi,item_bank_scores:Ta,name:Wn,combination_item_banks:Ir,shixun_ids:Zi})})})},Ps=(Wn,_a,Vi,Ta)=>{var Ir;const Zi=`${location.pathname}${location.search}`,Ki=(Ir=Ta.questions)==null?void 0:Ir.map(ko=>ko==null?void 0:ko.id);if(Zi.includes("exercise"))Tl.current={id:Wn,ids:Ki,type:_a,index:Vi},Oi(!0);else{let ko=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:()=>hi(void 0,null,function*(){ko.update({cancelButtonProps:{disabled:!0}}),yield Fr({single_question_id:Wn,seleted_item_bank_ids:Ki},{type:_a,index:Vi}),ko.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Rs=Wn=>{var _a;const Vi=(_a=Wn.questions)==null?void 0:_a.map(Zi=>Zi==null?void 0:Zi.id),Ta=Wn.name;let Ir=Ee.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Ta}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>hi(void 0,null,function*(){Ir.update({cancelButtonProps:{disabled:!0}}),yield Fr({seleted_item_bank_ids:Vi},{type:Wn.type}),Ir.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Ta}\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:()=>hi(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")})})},Us=Wn=>{console.log(Wn,"key"),qn(Wn-1)},Eu=(Wn,_a)=>{var Vi,Ta;if(_a==="SINGLE")return y.createElement(y.Fragment,null,y.createElement(ln,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(_a==="MULTIPLE")return y.createElement(y.Fragment,null,y.createElement(Gt,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(_a==="JUDGMENT")return y.createElement(y.Fragment,null,y.createElement(Fn,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(_a==="COMPLETION")return y.createElement(y.Fragment,null,y.createElement(Ke,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(_a==="SUBJECTIVE")return y.createElement(y.Fragment,null,y.createElement(pt,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(_a==="COMBINATION")return y.createElement(y.Fragment,null,y.createElement(Pi,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(_a==="BPROGRAM")return y.createElement(y.Fragment,null,y.createElement(ce.default,{form:Pl,style:{marginTop:20},onFinishFailed:Ir=>{var Zi,Ki;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]),Pl.scrollToField((Ki=(Zi=Ir==null?void 0:Ir.errorFields)==null?void 0:Zi[0])==null?void 0:Ki.name,{behavior:"smooth",block:"center"})},onFinish:Ir=>hi(void 0,null,function*(){var Zi;let Ki=ga(xi({question_score:Wn.score},Ir),{question_type:8,hack:ga(xi({},Ir.hack),{difficult:Wn.program_attr.difficult}),hack_codes:ga(xi({},Ir.hack_codes),{code:ki.Base64.encode((Zi=Ir.hack_codes)==null?void 0:Zi.code)})});bo&&(Ki.is_cover=1);const ko=yield(0,st.ZP)(`/api/exercise_questions/${Wn.id}.json`,{method:"put",body:Ki});(ko==null?void 0:ko.status)===0&&(ke.ZP.success("\u7F16\u8F91\u6210\u529F"),Us(pr+1)),ao(null)})},y.createElement(Ci.tc,{form:Pl,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Vi=Wn==null?void 0:Wn.program_attr)==null?void 0:Vi.identifier,answerKey:"standard_answers"}),y.createElement(fe.Z,null)));if(_a==="PROGRAM"&&ct.history.push(`/problems/${(Ta=Wn==null?void 0:Wn.program_attr)==null?void 0:Ta.identifier}/edit?type=exercises&express_id=${Gr.categoryId}&question_id=${Wn==null?void 0:Wn.id}&score=${Wn==null?void 0:Wn.score}&callback_url=${location.pathname}&select=${pr}&exercise=true`),_a==="PRACTICAL")return y.createElement(y.Fragment,null,y.createElement(fn,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null))},Cu=(Wn,_a)=>hi(void 0,null,function*(){var Vi,Ta,Ir,Zi,Ki,ko;Wn==="BPROGRAM"&&Pl.submit();const Xi=yield(Vi=ra.current)==null?void 0:Vi.onSave();if(!Xi)return;const dl=yi=>{const bl=yi.map(jl=>jl.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(bl).size!==bl.length},Ro={question_score:_a.score,analysis:Xi.analysis};if(Wn==="SINGLE"||Wn==="MULTIPLE"||Wn==="JUDGMENT"){if(Wn!=="JUDGMENT"&&dl(Xi==null?void 0:Xi.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=[];Ro.question_type=Wn==="JUDGMENT"?2:1,Ro.question_title=Xi==null?void 0:Xi.name,(Ta=Xi==null?void 0:Xi.choices)==null||Ta.forEach((is,jl)=>{yi.push(is.choice_text),is!=null&&is.is_answer&&bl.push(jl+1)}),Ro.question_choices=yi,Ro.standard_answers=bl}if(Wn==="COMPLETION"){let yi=(Ir=Xi==null?void 0:Xi.standard_answers)==null?void 0:Ir.map((jl,Ze)=>Number(jl==null?void 0:jl.score)?null:Ze+1).filter(jl=>jl!==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=(Zi=Xi==null?void 0:Xi.standard_answers)==null?void 0:Zi.reduce((jl,Ze)=>jl+(Number(Ze==null?void 0:Ze.score)||0),0);if(parseFloat(bl.toFixed(2))!=(Ro==null?void 0:Ro.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;Ro.is_ordered=Xi.is_ordered,Ro.question_title=Xi==null?void 0:Xi.name,Ro.use_blank_score=Xi==null?void 0:Xi.use_blank_score,Ro.question_type=3;const is=[];(Ki=Xi==null?void 0:Xi.standard_answers)==null||Ki.forEach((jl,Ze)=>{is.push({choice_id:jl.position,answer_text:jl.answer_text,score:jl.score})}),Ro.standard_answers=is,Ro.downcase=Xi==null?void 0:Xi.downcase,Ro.no_space=Xi==null?void 0:Xi.no_space}if(Wn==="SUBJECTIVE"&&(console.log("editorData"),console.log(Xi),Ro.question_title=Xi==null?void 0:Xi.name,Ro.question_type=4,Ro.answer_texts=Xi==null?void 0:Xi.answer_texts,Ro.use_keywords=Xi==null?void 0:Xi.use_keywords,Ro.keywords=Xi==null?void 0:Xi.keywords),Wn==="COMBINATION"){Ro.question_title=Xi==null?void 0:Xi.name,Ro.question_type=7;try{Ro.sub_questions=(ko=Xi==null?void 0:Xi.sub_item_banks)==null?void 0:ko.map((yi,bl)=>{var is,jl,Ze;if((yi==null?void 0:yi.item_type)=="single"||(yi==null?void 0:yi.item_type)=="multiple"){if(dl(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=[],Ft=[];return(is=yi==null?void 0:yi.choices)==null||is.forEach(($t,an)=>{Re.push($t.choice_text),$t!=null&&$t.is_answer&&Ft.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:Ft,analysis:yi.analysis,question_score:yi==null?void 0:yi.score}}else if((yi==null?void 0:yi.item_type)=="completion"){let Re=(jl=yi==null?void 0:yi.standard_answer)==null?void 0:jl.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 Ft=[];return(Ze=yi==null?void 0:yi.standard_answer)==null||Ze.forEach(($t,an)=>{Ft.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:Ft,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 Ro.analysis}let ys=!1;(_a==null?void 0:_a.is_my)===1&&(ys=yield new Promise((bl,is)=>{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)}})})),ys&&(Ro.is_cover=1);const Xs=Wn!=="PRACTICAL"?yield(0,st.ZP)(`/api/exercise_questions/${_a.id}.json`,{method:"put",body:Ro}):yield(0,st.ZP)(`/api/exercise_questions/${_a.id}/update_shixun_score.json`,{method:"post",body:xi({},Xi)});(Xs==null?void 0:Xs.status)===0&&(ke.ZP.success("\u7F16\u8F91\u6210\u529F"),Us(pr+1),ao(null))}),ec=()=>hi(void 0,null,function*(){(0,ct.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/${Gr.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield qn(pr),ke.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,ct.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),As=({value:Wn}={})=>{var _a;const Vi=[];let Ta=[];const Ir=(_a=Wn==null?void 0:Wn.choices)==null?void 0:_a.map((Ki,ko)=>{var Xi;const dl=ko+1;return Ki!=null&&Ki.is_answer&&(Vi.push(dl),Ta.push(dl)),{value:dl,label:y.createElement(Je.Z,{className:"c-black font14",value:`${(Xi=Ha.k4)==null?void 0:Xi[ko]}. ${Ki==null?void 0:Ki.choice_text}`}),disabled:Ki==null?void 0:Ki.origin_standard_answer}}),Zi=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 ",Vi==null?void 0:Vi.map(Ki=>{var ko;return(ko=Ha.k4)==null?void 0:ko[Ki-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:Ta,onChange:Ki=>{Ta=Ki}})),onOk:()=>hi(void 0,null,function*(){const Ki=yield(0,st.ZP)(`/api/exercises/${Gr.categoryId}/questions/${Wn==null?void 0:Wn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Ta}});(Ki==null?void 0:Ki.status)===0&&(ke.ZP.success("\u4FEE\u6539\u6210\u529F"),Us(pr+1))})})},ws=(ha=Dt==null?void 0:Dt.questionList)==null?void 0:ha.reduce((Wn,_a)=>Wn+Number(_a.questions_score),0),xu=zr&&((fa=Dt==null?void 0:Dt.exam)==null?void 0:fa.exercise_status)!==1,ku=Wn=>hi(void 0,null,function*(){const _a=yield(0,st.ZP)(`/api/courses/${Gr==null?void 0:Gr.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[Gr==null?void 0:Gr.categoryId],exercise_question_id:Wn.id}});(_a==null?void 0:_a.status)===0&&(or({type:"classroomList/setActionTabs",payload:{}}),ke.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Lu=(Wn,_a)=>hi(void 0,null,function*(){let Vi=yield(0,st.ZP)(`/api/courses/${Gr==null?void 0:Gr.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:Gr==null?void 0:Gr.categoryId,exercise_question_id:Wn==null?void 0:Wn.id}});(Vi==null?void 0:Vi.status)===0&&(Eo[_a]=!1,yl([...Eo]))});return y.createElement("section",{className:ge.wrap},y.createElement("div",{id:"id_left_preview",className:ge.left,onMouseEnter:Wn=>{const _a=document.getElementById("id_left_preview");_a.style.overflowY="auto"},onMouseLeave:Wn=>{const _a=document.getElementById("id_left_preview");_a.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,Dt==null?void 0:Dt.all_questions_count)),y.createElement("div",{className:"mr30 ml30"},y.createElement("img",{src:ft}),y.createElement("span",null,"\u603B\u5206(\u5206)"),y.createElement("aside",null,ws&&ws.toFixed(1))),y.createElement("div",null,y.createElement("img",{src:qe}),y.createElement("span",null,"\u65F6\u957F(\u5206)"),y.createElement("aside",null,((Nr=Dt==null?void 0:Dt.exam)==null?void 0:Nr.time)===-1||((Da=Dt==null?void 0:Dt.exam)==null?void 0:Da.time)===null?"\u4E0D\u9650":(ja=Dt==null?void 0:Dt.exam)==null?void 0:ja.time))),(ua=Dt==null?void 0:Dt.questionList)==null?void 0:ua.map((Wn,_a)=>{var Vi;return y.createElement("div",{className:ge.list,key:_a},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},(Vi=Wn==null?void 0:Wn.questions)==null?void 0:Vi.map((Ta,Ir)=>y.createElement("div",{onClick:()=>{const Zi=`Anchor_${Ta==null?void 0:Ta.id}`;let Ki=document.getElementById(Zi);Ki&&setTimeout(()=>Ki.scrollIntoView({block:"center",behavior:"smooth"}))},key:Ta==null?void 0:Ta.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(_e.Z,{title:(cr=Dt==null?void 0:Dt.exam)==null?void 0:cr.name,getPopupContainer:Wn=>Wn.parentNode},y.createElement("span",{className:ge.t},(Yr=Dt==null?void 0:Dt.exam)==null?void 0:Yr.name))),zr&&((ui=Dt==null?void 0:Dt.exam)==null?void 0:ui.exercise_status)===1&&y.createElement(Qo.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:()=>{ec()}})},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},(ba=Dt==null?void 0:Dt.questionList)==null?void 0:ba.map((Wn,_a)=>{var Vi,Ta;return y.createElement(y.Fragment,{key:_a},y.createElement("div",{className:ge.head,style:_a===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${(Vi=Wn==null?void 0:Wn.questions)==null?void 0:Vi.map(Ir=>{var Zi;return(Zi=Ir==null?void 0:Ir.sub_item_banks)==null?void 0:Zi.length}).reduce((Ir,Zi)=>Ir+Zi)}\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:()=>{gs(Wn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),y.createElement(Se.ZP,{onClick:()=>Rs(Wn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Ta=Wn==null?void 0:Wn.questions)==null?void 0:Ta.map((Ir,Zi)=>{var Ki,ko,Xi,dl,Ro;return Pa===(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:()=>{Cu(Wn==null?void 0:Wn.type,Ir)},type:"primary"},"\u4FDD\u5B58")),Eu(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(Je.Z,{style:{paddingRight:10},value:Zi+1+"\u3001"+((Ki=Ir==null?void 0:Ir.program_attr)==null?void 0:Ki.description)}):y.createElement(Je.Z,{style:{paddingRight:10},className:ge.titleHtml,value:Zi+1+`\u3001${(Ir==null?void 0:Ir.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Ir==null?void 0:Ir.name)}),(0,ma.G5)()&&((ko=Ir==null?void 0:Ir.shixun)==null?void 0:ko.shixun_change)&&y.createElement(Te.Z,{trigger:"click",open:Eo[Zi],onOpenChange:ys=>{Eo[Zi]=!0,yl([...Eo])},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:()=>Lu(Ir,Zi)},"\u5FFD\u7565"),y.createElement(Se.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{Eo[Zi]=!1,yl([...Eo]),or({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>ku(Ir)}})}},"\u786E\u8BA4\u540C\u6B65"),y.createElement(Se.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,bt.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:ys=>ys.stopPropagation()})),zr&&y.createElement(Se.ZP,{onClick:()=>{var ys,Xs;if(Pa){ke.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Pl.setFieldsValue({standard_answers:Ir==null?void 0:Ir.standard_answer,hack:xi(xi({},Ir),Ir==null?void 0:Ir.program_attr),hack_codes:ga(xi({},Ir==null?void 0:Ir.program_attr),{code:ki.Base64.decode(((ys=Ir==null?void 0:Ir.program_attr)==null?void 0:ys.code)||"")}),hack_sets:Ir==null?void 0:Ir.hack_sets}),(Ir==null?void 0:Ir.item_type)=="program"?ct.history.push(`/problems/newedit/${(Xs=Ir==null?void 0:Ir.program_attr)==null?void 0:Xs.identifier}?type=exercises&express_id=${Gr.categoryId}&question_id=${Ir==null?void 0:Ir.id}&score=${Ir==null?void 0:Ir.score}&exercise=true&callback_url=/classrooms/${Gr.coursesId}/exercise/${Gr.categoryId}/detail?random=true`):ao(Ir==null?void 0:Ir.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!xu&&y.createElement(Se.ZP,{disabled:xu,className:"ml20",onClick:()=>Ps(Ir==null?void 0:Ir.id,Wn.type,Zi,Wn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Ir==null?void 0:Ir.item_type)==="bprogram"&&y.createElement(Je.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:ge.titleHtml,value:ki.Base64.decode(((Xi=Ir==null?void 0:Ir.program_attr)==null?void 0:Xi.code)||"")}),(Wn.type==="SINGLE"||Wn.type==="JUDGMENT"||Wn.type==="MULTIPLE")&&xs(Ir),Wn.type==="COMPLETION"&&Fs(Ir),Wn.type==="SUBJECTIVE"&&cs(Ir),Wn.type==="PROGRAM"&&Ss(Ir),Wn.type==="BPROGRAM"&&tu(Ir),Wn.type==="COMBINATION"&&js(Ir,Zi),Wn.type==="PRACTICAL"&&Is(Ir),y.createElement(dt.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((dl=Dt==null?void 0:Dt.exam)==null?void 0:dl.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Wn.type)&&y.createElement(Ge.Z,null,y.createElement(fo.Z,{state:Ir==null?void 0:Ir.is_wrong,onClick:()=>{Wr==null||Wr({value:ga(xi({},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:ga(xi({},Ir),{question_id:Ir==null?void 0:Ir.id})})),((Ro=Dt==null?void 0:Dt.exam)==null?void 0:Ro.exercise_status)===3&&["SINGLE"].includes(Wn.type)&&y.createElement(Ge.Z,null,y.createElement(Se.ZP,{style:{color:"#3061D0"},onClick:()=>{As({value:Ir})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),zr?y.createElement(Qo.vr,null,y.createElement(Ne.Z,{showTotal:bt.rU,total:(ca=Dt==null?void 0:Dt.exam)==null?void 0:ca.total_num,pageSize:1,current:pr+1,showSizeChanger:!1,onChange:Us,showQuickJumper:!1,hideOnSinglePage:!1})):y.createElement(Qo.vr,{LeftContent:y.createElement(Qo.op,{onClick:rn,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:y.createElement(dt.Z,{align:"middle"},y.createElement(Te.Z,{color:"#55575D",overlayClassName:ge.popover,open:qo,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(Qo.op,{onMouseEnter:()=>Ko(!0),onMouseLeave:()=>Ko(!1),onClick:()=>hi(void 0,null,function*(){const Wn=Number(ws);[100,120,150].includes(Wn)||(yield new Promise((_a,Vi)=>{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:()=>hi(void 0,null,function*(){_a("")}),onCancel:()=>{Vi()}})})),Ws()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),y.createElement(Qo.op,{shape:"default",type:"primary",onClick:()=>hi(void 0,null,function*(){const Wn=Number(ws);[100,120,150].includes(Wn)||(yield new Promise((_a,Vi)=>{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:()=>hi(void 0,null,function*(){_a("")}),onCancel:()=>{Vi()}})})),Jt()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),y.createElement(na,{visible:Xl,questionParams:Tl.current,getdata:aa,onRandomExchange:()=>hi(void 0,null,function*(){const Wn=Tl.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=Tl.current,_a=`${location.pathname}${location.search}`;_a.includes("exercise")&&ct.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Wn.id}&qtype=${Wn.type}&exerciseid=${Gr.categoryId}&from=${_a}`)},onCancel:()=>{Oi(!1)}}))};var si=(0,ct.connect)(({classroomList:Dt})=>({classroomList:Dt}))(di)},89908:function(Rn,qt,E){"use strict";E.r(qt),E.d(qt,{default:function(){return Jo}});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"},ce=E(6767),_e=E(28284),Se=E(91882),Ee=E(73635),Ce=E(98344),ke=E(29787),De=E(37568),fe=E(47889),We=E(77019),Te=E(4875),dt=E(7939),Ge=E(82875),Ne=Object.defineProperty,we=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,et=(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={}))Pe.call(vn,Tn)&&et(hn,Tn,vn[Tn]);if(we)for(var Tn of we(vn))Fe.call(vn,Tn)&&et(hn,Tn,vn[Tn]);return hn},Ae=(hn,vn,Tn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Tn.next(er))}catch(gr){Or(gr)}},ir=er=>{try{kn(Tn.throw(er))}catch(gr){Or(gr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Tn=Tn.apply(hn,vn)).next())});function Oe(hn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/examination_banks/${hn}/edit_random_exam_new.json`,{method:"get"})})}function qe(hn,vn){return Ae(this,null,function*(){return(0,Ge.ZP)(`/api/examination_banks/${hn}/update_random_exam.json`,{method:"post",body:vn})})}function Je(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:hn})})}function ct(hn){return Ae(this,null,function*(){return Fetch("/api/disciplines.json",{method:"get",params:hn})})}function bt(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 de(hn){return Ae(this,null,function*(){return(0,Ge.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:hn})})}function Ct(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||{}),Ie=E(89392),ye=Object.defineProperty,vt=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,ot=(hn,vn,Tn)=>vn in hn?ye(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Xt=(hn,vn)=>{for(var Tn in vn||(vn={}))Be.call(vn,Tn)&&ot(hn,Tn,vn[Tn]);if(Et)for(var Tn of Et(vn))ft.call(vn,Tn)&&ot(hn,Tn,vn[Tn]);return hn},xt=(hn,vn)=>vt(hn,Ht(vn)),wt=(hn=>(hn[hn.FileFolder=1]="FileFolder",hn[hn.Difficulty=2]="Difficulty",hn[hn.Knowledge=3]="Knowledge",hn))(wt||{});const ht=(0,y.createContext)(null),un={[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]},zt=(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(un))if(zt(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)),he=(hn,vn)=>{var Tn,wr,Or;switch(vn.type){case"init":return vn.payload;case"updateBaseInfo":return xt(Xt({},hn),{examination_bank:vn.payload});case"deleteQuestionType":{const{item_types:rr}=hn,ir=rr.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)),xt(Xt({},hn),{item_types:ir})}case"setQuestionType":{const{item_types:rr=[]}=hn,ir=rr.map(er=>er.item_type),kn=rr.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 xt(Xt({},hn),{item_types:kn})}case"updateItemTypes":return xt(Xt({},hn),{item_types:vn.payload});case"deleteRule":{const rr=(0,Ie.cloneDeep)(hn),ir=rr.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,rr.examination_bank.question_count-=kn==null?void 0:kn.quanlity,ir.total_score-=(kn==null?void 0:kn.quanlity)*ir.score,rr.examination_bank.total_score-=(kn==null?void 0:kn.quanlity)*ir.score,ir.total_score=se(ir.total_score),rr.examination_bank.total_score=se(rr.examination_bank.total_score),rr.contents=ir.contents,rr}case"changeQuestionNum":{const rr=(0,Ie.cloneDeep)(hn),ir=rr.item_types.find(Ci=>Ci.item_type===vn.payload.itemType),kn=(wr=ir==null?void 0:ir.contents)==null?void 0:wr.find(Ci=>Ci.id===vn.payload.id);if(vn.payload.itemType==="PRACTICAL")return vn.payload.num&&(rr.examination_bank.question_count=rr.examination_bank.question_count-ir.item_bank_count+vn.payload.num,rr.examination_bank.total_score=se(rr.examination_bank.total_score-ir.total_score+vn.payload.num*ir.score)),vn.payload.score&&(rr.examination_bank.total_score=se(rr.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),rr;rr.examination_bank.question_count=rr.examination_bank.question_count-(kn==null?void 0:kn.quanlity)+vn.payload.num;const er=ir.contents.find(Ci=>Ci.id===vn.payload.id&&Ci.teacher_group_id===vn.payload.teacher_group_id);er.quanlity=vn.payload.num;let gr=0,na=0;for(const Ci of ir.contents)gr+=Ci==null?void 0:Ci.quanlity,na+=(Ci==null?void 0:Ci.quanlity)*ir.score;return rr.examination_bank.total_score=se(rr.examination_bank.total_score-ir.total_score+na),ir.item_bank_count=gr,ir.total_score=se(na),rr}case"changeQuestionScore":{const rr=(0,Ie.cloneDeep)(hn),ir=rr.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),rr.examination_bank.total_score=se(rr.item_types.reduce((kn,er)=>kn+er.total_score,0)),rr}case"editRule":{const rr=(0,Ie.cloneDeep)(hn),ir=rr.item_types.find(kn=>kn.item_type===vn.payload.itemType);return ir.contents=vn.payload.tableData.map(kn=>xt(Xt({},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),rr.examination_bank.question_count=rr.item_types.reduce((kn,er)=>kn+er.item_bank_count,0),rr.examination_bank.total_score=se(rr.item_types.reduce((kn,er)=>kn+er.total_score,0)),rr}case"addShixun":{const rr=(0,Ie.cloneDeep)(hn),ir=rr.item_types.find(kn=>kn.item_type==="PRACTICAL");return ir.item_banks=vn.payload.shixunList,rr.examination_bank.question_count=rr.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,rr.examination_bank.total_score=(Or=rr==null?void 0:rr.item_types)==null?void 0:Or.map(kn=>kn.total_score).reduce((kn,er)=>kn+er),rr}case"deleteShixunQuestion":{const rr=(0,Ie.cloneDeep)(hn),ir=rr.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)),rr}}};var ie=E(29671),me=E(47905),He=Object.defineProperty,It=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,_t=(hn,vn,Tn)=>vn in hn?He(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Qe=(hn,vn)=>{for(var Tn in vn||(vn={}))yt.call(vn,Tn)&&_t(hn,Tn,vn[Tn]);if(Ke)for(var Tn of Ke(vn))Bt.call(vn,Tn)&&_t(hn,Tn,vn[Tn]);return hn},tt=(hn,vn)=>It(hn,Xe(vn)),Vt=(hn,vn,Tn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Tn.next(er))}catch(gr){Or(gr)}},ir=er=>{try{kn(Tn.throw(er))}catch(gr){Or(gr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Tn=Tn.apply(hn,vn)).next())}),Fn=({courseOptions:hn,setCurrentKey:vn,loading:Tn,form:wr})=>{var Or;const{data:rr,disabled:ir,dispatch:kn}=(0,y.useContext)(ht),er=(0,Ee.useParams)(),gr=(0,y.useRef)(!0),[na,Ci]=(0,y.useState)(!1),ki=(0,y.useMemo)(()=>{var fo,ro,Ha,ma,Hr;if(!hn.length||!rr)return;const _i=(fo=rr==null?void 0:rr.examination_bank)==null?void 0:fo.course_discipline_id,Li=((ro=rr==null?void 0:rr.examination_bank)==null?void 0:ro.time)===-1?void 0:gr.current?er.id?(Ha=rr==null?void 0:rr.examination_bank)==null?void 0:Ha.time:((ma=rr==null?void 0:rr.examination_bank)==null?void 0:ma.time)||60:(Hr=rr==null?void 0:rr.examination_bank)==null?void 0:Hr.time;return gr.current=!1,tt(Qe({},rr.examination_bank),{time:Li,course_discipline_id:_i})},[rr,hn]);return(0,y.useEffect)(()=>{wr.setFieldsValue(Qe({},ki))},[ki]),y.createElement(ke.Z,{spinning:Tn,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},y.createElement("div",{className:ge.formWrap},y.createElement(_e.default,{form:wr,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:ki||{difficulty:2,time:60},onValuesChange:(fo,ro)=>{const Ha=Qe({},ro);kn({type:"updateBaseInfo",payload:Ha})}},y.createElement(_e.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:ge.baseLineHeight,rules:[{required:!0,validator:(fo,ro)=>{var Ha;return((Ha=ro==null?void 0:ro.replaceAll(" ",""))==null?void 0:Ha.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},y.createElement(De.default,{maxLength:60,className:ge.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),y.createElement(_e.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:ge.baseLineHeight},y.createElement(me.q,{data:{course_discipline_id:(Or=rr==null?void 0:rr.examination_bank)==null?void 0:Or.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(_e.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ge.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},y.createElement(fe.ZP.Group,{disabled:ir,className:ge.radiogroup},y.createElement(fe.ZP.Button,{className:ge.easy,value:1},"\u7B80\u5355"),y.createElement(fe.ZP.Button,{className:ge.medium,value:2},"\u9002\u4E2D"),y.createElement(fe.ZP.Button,{className:ge.hard,value:3},"\u56F0\u96BE"))),y.createElement(_e.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ge.baseLineHeight},y.createElement(We.Z,{align:"middle"},y.createElement(_e.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(_e.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exam_notes"},y.createElement(De.default.TextArea,{rows:6,disabled:ir,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),y.createElement("div",{className:ge.fixedBottom},y.createElement(dt.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(dt.ZP,{className:`${ge.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>Vt(void 0,null,function*(){if(yield wr.validateFields(),!er.id&&!er.coursesId){const fo=yield Je(rr);fo.status===0&&(Ee.history.replace(`/randompaper/edit/${fo==null?void 0:fo.examination_bank_id}?type=settings`),vn("settings"))}else vn("settings")})},"\u4E0B\u4E00\u6B65")),y.createElement(ie.Z,{open:na,onCancel:()=>{Ci(!1)}}))},gn=E(62957),Lt=E(5269),Qt={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"},jt=E(40412),rt=E(78176),Nt=E(62673);const fn=[{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 lt=({open:hn,onCancel:vn,onOk:Tn})=>{const{data:wr,dispatch:Or}=(0,y.useContext)(ht);(0,y.useEffect)(()=>{if(hn){const{item_types:kn}=wr||{};ir(kn==null?void 0:kn.map(er=>er.item_type))}},[hn,wr]);const[rr,ir]=(0,y.useState)([]);return y.createElement(gn.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(rr)},y.createElement(Nt.default.Group,{value:rr,onChange:kn=>ir(kn)},y.createElement(We.Z,{gutter:[0,20]},fn.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,Yt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,Sn=(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={}))Yt.call(vn,Tn)&&Sn(hn,Tn,vn[Tn]);if(Pt)for(var Tn of Pt(vn))Gt.call(vn,Tn)&&Sn(hn,Tn,vn[Tn]);return hn},Zn=({open:hn,onCancel:vn,onOk:Tn})=>{const{data:wr}=(0,y.useContext)(ht),[Or,rr]=(0,y.useState)();console.log("--xxx-",Or),(0,y.useEffect)(()=>{hn&&rr((0,Ie.cloneDeep)(wr))},[hn,wr]);const ir=(0,y.useMemo)(()=>{var kn;let er;return er=(kn=Or==null?void 0:Or.item_types)==null?void 0:kn.map(gr=>gr.total_score).reduce((gr,na)=>parseFloat(gr)+parseFloat(na)),er==null?void 0:er.toFixed(1)},[Or]);return hn?y.createElement(gn.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:hn,width:640,centered:!0,closable:!0,onCancel:vn,onOk:()=>{Tn(Or)}},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:gr,item_type:na}=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:Ci=>{const ki=Or,fo=ki.item_types.find(Ha=>Ha.item_type===na);fo.score=Number(Ci);const ro=Ci*fo.item_bank_count;fo.total_score=ro&&Number(ro.toFixed(1)),ki.examination_bank.total_score=ki.item_types.reduce((Ha,ma)=>Number(Ha)+Number(ma.total_score),0),rr(jn({},ki))}}),"\u5206")}}],className:Qt.setScoreModalTable,dataSource:Or==null?void 0:Or.item_types,rowKey:"item_type",pagination:!1})):null},Ot=E(31691),Wt=E(82326),ln=E(18287),bn="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==",wn="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",Cn="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==",Pn={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},vr=E(21007),Qn=Object.defineProperty,dr=Object.defineProperties,br=Object.getOwnPropertyDescriptors,yr=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,An=(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={}))Vr.call(vn,Tn)&&An(hn,Tn,vn[Tn]);if(yr)for(var Tn of yr(vn))Zr.call(vn,Tn)&&An(hn,Tn,vn[Tn]);return hn},fr=(hn,vn)=>dr(hn,br(vn)),ur=(hn,vn,Tn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Tn.next(er))}catch(gr){Or(gr)}},ir=er=>{try{kn(Tn.throw(er))}catch(gr){Or(gr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Tn=Tn.apply(hn,vn)).next())});const kt=(hn,vn,Tn)=>hn.map(wr=>wr.key===vn?$n($n({},wr),Tn):wr.children?fr($n({},wr),{children:kt(wr.children,vn,Tn)}):wr),Ut={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},pt=(hn,vn,Tn)=>hn.map(wr=>{var Or;const rr=wr==null?void 0:wr.tag_disciplines.map(kn=>{const er=kn==null?void 0:kn.difficulty_count.map(gr=>({label:gr==null?void 0:gr.name,value:Ut[gr.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(_e.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:er})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"diffNum"],initialValue:kn==null?void 0:kn.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"extra"],initialValue:fr($n({},wr),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${kn.name}\uFF08${kn.child_count}\uFF09`,key:`${wr.id}_${kn.id}`,name:kn.name,parentName:wr.name,item_banks_count:kn.child_count,icon:null,isLeaf:!0,checkable:ue(vn)===it.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=wr==null?void 0:wr.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Ut[kn.name]}));return{title:ue(vn)===it.FileFolderAndDiff&&ir.length>0?y.createElement(We.Z,{justify:"space-between"},y.createElement(Lt.Z,null,`${wr.name}\uFF08${wr.item_banks_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ir})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffNum"],initialValue:wr==null?void 0:wr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}`,"extra"],initialValue:fr($n({},wr),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${wr.name}\uFF08${wr.item_banks_count}\uFF09`,key:`${wr.id}`,name:wr.name,item_banks_count:wr.item_banks_count,icon:kn=>kn.expanded?Tn==="0"?y.createElement("img",{src:tn,className:Pn.folderIcon}):y.createElement("img",{src:wn,className:Pn.shareFolderIcon}):Tn==="0"?y.createElement("img",{src:bn,className:Pn.folderIcon}):y.createElement("img",{src:Cn,className:Pn.shareFolderIcon}),isLeaf:!wr.have_child&&!((Or=wr.tag_disciplines)!=null&&Or.length),checkable:ue(vn)===it.OnlyFileFolder,disableCheckbox:wr.item_banks_count===0,children:wr.children.length?ue(vn)===it.All||ue(vn)===it.FileFolderAndKnowledge?[...pt(wr.children,vn,Tn),...rr]:pt(wr.children,vn,Tn):[]}}),Zt=(hn,vn,Tn)=>hn.map(wr=>{var Or;const rr=wr==null?void 0:wr.tag_disciplines.map(kn=>{console.log("tagItem:",kn);const er=kn==null?void 0:kn.difficulty_count.map(gr=>({label:gr==null?void 0:gr.name,value:Ut[gr.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(_e.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:er})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"diffNum"],initialValue:kn==null?void 0:kn.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"extra"],initialValue:fr($n({},wr),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${kn.name}\uFF08${kn.child_count}\uFF09`,key:`${wr.id}_${kn.id}`,name:kn.name,parentName:wr.name,item_banks_count:kn.child_count,icon:null,isLeaf:!0,checkable:ue(vn)===it.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=wr==null?void 0:wr.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Ut[kn.name]}));return{title:ue(vn)===it.FileFolderAndDiff&&ir.length>0?y.createElement(We.Z,{justify:"space-between"},y.createElement(Lt.Z,null,`${wr.name}\uFF08${wr.item_banks_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ir})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffNum"],initialValue:wr==null?void 0:wr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(_e.default.Item,{noStyle:!0,name:[`${wr.id}`,"extra"],initialValue:fr($n({},wr),{type:Tn})},y.createElement("input",{type:"hidden"})))):`${wr.name}\uFF08${wr.item_banks_count}\uFF09`,key:`${wr.id}`,name:wr.name,item_banks_count:wr.item_banks_count,icon:kn=>kn.expanded?Tn==="0"?y.createElement("img",{src:tn,className:Pn.folderIcon}):y.createElement("img",{src:wn,className:Pn.shareFolderIcon}):Tn==="0"?y.createElement("img",{src:bn,className:Pn.folderIcon}):y.createElement("img",{src:Cn,className:Pn.shareFolderIcon}),isLeaf:!wr.have_child&&!((Or=wr.tag_disciplines)!=null&&Or.length),checkable:ue(vn)===it.OnlyFileFolder,disableCheckbox:wr.item_banks_count===0,children:[...Zt(wr.children,vn,Tn),...rr]}});var gt=({ruleValue:hn,defaultData:vn,setSelectData:Tn,currentItemType:wr,selectData:Or})=>{const[rr,ir]=(0,y.useState)("1"),[kn,er]=(0,y.useState)(!0),[gr]=_e.default.useForm(),[na,Ci]=(0,y.useState)([]),[ki,fo]=(0,y.useState)("all"),ro=(qn,pr,Fr)=>{const{checkedNodes:aa}=pr;console.log("type:",Fr,aa,Or),Fr==="0"?(ma(qn),ue(hn)===it.OnlyFileFolder?(Tn(Wr=>fr($n({},Wr),{my:aa.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(aa.reduce((Wr,or)=>Wr+or.item_banks_count,0))):(console.log(aa),Tn(Wr=>fr($n({},Wr),{my:aa.map(or=>{const[ha,fa]=or.key.split("_");return{id:or.key,tag_discipline_name:or.name,group_id:ha,tag_discipline_id:fa,folderType:"0",group_name:or.parentName,item_bank_num:or.item_banks_count,quanlity:1}})})),zr(aa.reduce((Wr,or)=>Wr+or.item_banks_count,0)))):(_i(qn),ue(hn)===it.OnlyFileFolder?Tn(Wr=>(console.log("pre:",Wr),fr($n({},Wr),{public:aa.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(Wr=>fr($n({},Wr),{public:aa.map(or=>{const[ha,fa]=or.key.split("_");return{id:or.key==="0"?"00":or.key,tag_discipline_name:or.name,teacher_group_id:ha,tag_discipline_id:fa,folderType:"3",teacher_group_name:or.parentName,item_bank_num:or.item_banks_count,quanlity:1}})})),zr(aa.reduce((Wr,or)=>Wr+or.item_banks_count,0)))},[Ha,ma]=(0,y.useState)([]),[Hr,_i]=(0,y.useState)([]),[Li,vo]=(0,y.useState)([]),[_o,Ai]=(0,y.useState)([]),[go,xi]=(0,y.useState)([]),[ga,hi]=(0,y.useState)([]),[di,si]=(0,y.useState)(!1),[Dt,Jt]=(0,y.useState)(!1);function rn(){return ur(this,null,function*(){let qn=yield(0,Ge.ZP)("/api/teach_group_shares.json",{method:"get"});qn&&Ci(qn==null?void 0:qn.groups)})}(0,y.useEffect)(()=>{rn()},[]);const Nn=qn=>ur(void 0,null,function*(){var pr,Fr,aa,Wr,or,ha,fa,Nr,Da,ja,ua,cr;qn.type==="0"?si(!0):Jt(!0);const Yr=yield(0,vr.ex)(qn);qn.type==="0"?si(!1):Jt(!1),qn.type==="0"?xi(Yr):hi(Yr);const ui=(pr=Yr.navigation[0])==null?void 0:pr.difficulty_count.map(ca=>({label:ca==null?void 0:ca.name,value:Ut[ca.name]})),ba=(Fr=Yr.navigation[0])==null?void 0:Fr.tag_disciplines.map(ca=>{const ra=ca==null?void 0:ca.difficulty_count.map(Pa=>({label:Pa==null?void 0:Pa.name,value:Ut[Pa.name]}));return{title:ue(hn)===it.All&&ra.length>0?y.createElement(We.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(Lt.Z,null,`${ca.name}\uFF08${ca.child_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(_e.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ra})),y.createElement(_e.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"diffNum"],initialValue:ca==null?void 0:ca.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(_e.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"extra"],initialValue:{tag_discipline_name:ca.name,name:"\u6839\u76EE\u5F55",type:qn.type}},y.createElement("input",{type:"hidden"})))):y.createElement("span",{style:{color:"#232B40"}},ca.name,"\uFF08",ca.child_count,"\uFF09"),key:`0_${ca.id}`,name:ca.name,parentName:"\u6839\u76EE\u5F55",item_banks_count:ca.child_count,icon:null,isLeaf:!0,checkable:ue(hn)===it.FileFolderAndKnowledge,disableCheckbox:ca.child_count===0}});if(qn.type==="0"){const ca=pt(Yr.data,hn,"0"),ra=Zt(Yr.data,hn,"0");console.log("normalChildren2:",ra),vo([{title:ue(hn)===it.FileFolderAndDiff?y.createElement(We.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(Lt.Z,null,`\u6839\u76EE\u5F55\uFF08${(aa=Yr.navigation[0])==null?void 0:aa.child_count}\uFF09`),y.createElement(Lt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(_e.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ui})),y.createElement(_e.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Wr=Yr.navigation[0])==null?void 0:Wr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(_e.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=Yr.navigation[0])==null?void 0:or.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(ha=Yr.navigation[0])==null?void 0:ha.child_count,disabled:!(((fa=Yr.navigation[0])==null?void 0:fa.child_count)>0),checkable:ue(hn)===it.OnlyFileFolder,icon:Pa=>Pa.expanded?y.createElement("img",{src:tn,className:Pn.folderIcon}):y.createElement("img",{src:bn,className:Pn.folderIcon}),isLeaf:!1,children:ue(hn)===it.OnlyFileFolder||ue(hn)===it.FileFolderAndDiff?ca:[...ra,...ba]}])}else{const ca=pt(Yr.data,hn,"3"),ra=Zt(Yr.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=Yr.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(_e.default.Item,{noStyle:!0,name:["0","diffValue"]},y.createElement(Nt.default.Group,{style:{columnGap:12},options:ui})),y.createElement(_e.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Da=Yr.navigation[0])==null?void 0:Da.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(_e.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=Yr.navigation[0])==null?void 0:ja.child_count}\uFF09`),key:"0",name:"\u6839\u76EE\u5F55",item_banks_count:(ua=Yr.navigation[0])==null?void 0:ua.child_count,checkable:ue(hn)===it.OnlyFileFolder,icon:Pa=>Pa.expanded?y.createElement("img",{src:wn,className:Pn.shareFolderIcon}):y.createElement("img",{src:Cn,className:Pn.shareFolderIcon}),isLeaf:!1,disabled:!(((cr=Yr.navigation[0])==null?void 0:cr.child_count)>0),children:ue(hn)===it.OnlyFileFolder||ue(hn)===it.FileFolderAndDiff?ca:[...ra,...ba]}])}});(0,y.useEffect)(()=>{rr==="1"?Nn({type:"0",group_id:0,item_type:wr,show_children:!0}):rr==="2"&&Nn({type:"3",except_mine:!0,item_type:wr,show_children:!0,teach_group_id:ki==="all"?"":ki})},[hn,rr,ki]),(0,y.useEffect)(()=>{var qn,pr,Fr,aa,Wr,or,ha,fa,Nr,Da,ja,ua;console.log("selectData-active:",Or,vn,rr),rr==="1"?(ma((qn=Or==null?void 0:Or.my)==null?void 0:qn.map(cr=>cr.id)),zr(((Fr=(pr=Or==null?void 0:Or.my)==null?void 0:pr.reduce)==null?void 0:Fr.call(pr,(cr,Yr)=>cr+Yr.item_bank_num,0))||0)):rr==="2"&&(_i((aa=Or==null?void 0:Or.public)==null?void 0:aa.map(cr=>cr.id)),zr(((or=(Wr=Or==null?void 0:Or.public)==null?void 0:Wr.reduce)==null?void 0:or.call(Wr,(cr,Yr)=>cr+Yr.item_bank_num,0))||0)),ue(hn)===it.All&&(rr==="1"?(ma((ha=Or==null?void 0:Or.my)==null?void 0:ha.map(cr=>cr.id)),zr((Or==null?void 0:Or.filter(cr=>!cr.is_share).reduce((cr,Yr)=>cr+Yr.item_bank_num,0))||0),(fa=Or==null?void 0:Or.filter(cr=>!cr.is_share))==null||fa.forEach(cr=>{const Yr=gr.getFieldValue([`${cr.group_id||0}_${cr.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Yr),Yr!=null&&Yr.includes[cr.difficulty]||gr.setFieldValue([`${cr.group_id||0}_${cr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Yr,cr.difficulty])))})):rr==="2"&&(_i((Nr=Or==null?void 0:Or.public)==null?void 0:Nr.map(cr=>cr.id)),zr((Or==null?void 0:Or.filter(cr=>!!cr.is_share).reduce((cr,Yr)=>cr+Yr.item_bank_num,0))||0),(Da=Or==null?void 0:Or.filter(cr=>!!cr.is_share))==null||Da.forEach(cr=>{const Yr=gr.getFieldValue([`${cr.teacher_group_id||0}_${cr.tag_discipline_id}`,"diffValue"])||[];Yr!=null&&Yr.includes[cr.difficulty]||gr.setFieldValue([`${cr.teacher_group_id||0}_${cr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Yr,cr.difficulty])))}))),ue(hn)===it.FileFolderAndDiff&&(gr.resetFields(),setTimeout(()=>{Tn(Or)},300),rr==="1"?(zr((Or==null?void 0:Or.filter(cr=>!cr.is_share).reduce((cr,Yr)=>cr+Yr.item_bank_num,0))||0),(ja=Or==null?void 0:Or.filter(cr=>!cr.is_share))==null||ja.forEach(cr=>{const Yr=gr.getFieldValue([`${cr.group_id}`,"diffValue"])||[];console.log("prev:",Yr),Yr!=null&&Yr.includes[cr.difficulty]||gr.setFieldValue([`${cr.group_id}`,"diffValue"],Array.from(new Set([...Yr,cr.difficulty])))})):(zr((Or==null?void 0:Or.filter(cr=>!!cr.is_share).reduce((cr,Yr)=>cr+Yr.item_bank_num,0))||0),(ua=Or==null?void 0:Or.filter(cr=>!!cr.is_share))==null||ua.forEach(cr=>{const Yr=gr.getFieldValue([`${cr.teacher_group_id}`,"diffValue"])||[];Yr!=null&&Yr.includes[cr.difficulty]||gr.setFieldValue([`${cr.teacher_group_id}`,"diffValue"],Array.from(new Set([...Yr,cr.difficulty])))})))},[rr]),console.log("1111111111:",Ha,Hr),(0,y.useEffect)(()=>{setTimeout(()=>{var qn,pr,Fr,aa,Wr;switch(ue(hn)){case it.OnlyFileFolder:{const or=[],ha=[];for(const fa of Or.my||[])or.push(fa);for(const fa of Or.public||[])ha.push(fa);ma(or.map(fa=>`${fa.group_id}`)),_i(ha.map(fa=>`${fa.teacher_group_id}`)),zr(rr==="1"?or.reduce((fa,Nr)=>fa+Nr.item_bank_num,0):ha.reduce((fa,Nr)=>fa+Nr.item_bank_num,0));break}case it.FileFolderAndKnowledge:{const or=[],ha=[];for(const fa of(Or==null?void 0:Or.my)||[])or.push(fa);for(const fa of(Or==null?void 0:Or.public)||[])ha.push(fa);zr((qn=rr==="1"?or:ha)==null?void 0:qn.reduce((fa,Nr)=>fa+Nr.item_bank_num,0)),ma(or.map(fa=>`${fa.group_id}_${fa.tag_discipline_id}`)),_i(ha.map(fa=>`${fa.teacher_group_id}_${fa.tag_discipline_id}`));break}case it.All:{rr==="1"?(zr((Or==null?void 0:Or.filter(or=>!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(pr=Or==null?void 0:Or.filter(or=>!or.is_share))==null||pr.forEach(or=>{const ha=gr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty,or),ha!=null&&ha.includes[or.difficulty]||gr.setFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))})):(zr((Or==null?void 0:Or.filter(or=>!!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(Fr=Or==null?void 0:Or.filter(or=>!!or.is_share))==null||Fr.forEach(or=>{const ha=gr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty,or),ha!=null&&ha.includes[or.difficulty]||gr.setFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))}));break}case it.FileFolderAndDiff:{rr==="1"?(zr((Or==null?void 0:Or.filter(or=>!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(aa=Or==null?void 0:Or.filter(or=>!or.is_share))==null||aa.forEach(or=>{const ha=gr.getFieldValue([`${or.group_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty),ha!=null&&ha.includes[or.difficulty]||gr.setFieldValue([`${or.group_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))})):(zr((Or==null?void 0:Or.filter(or=>!!or.is_share).reduce((or,ha)=>or+ha.item_bank_num,0))||0),(Wr=Or==null?void 0:Or.filter(or=>!!or.is_share))==null||Wr.forEach(or=>{const ha=gr.getFieldValue([`${or.group_id}`,"diffValue"])||[];ha!=null&&ha.includes[or.difficulty]||gr.setFieldValue([`${or.group_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))}));break}}},800)},[vn,hn,Li,_o]);const[Va,zr]=(0,y.useState)(0);return y.createElement(_e.default,{form:gr,onValuesChange:(qn,pr)=>ur(void 0,null,function*(){var Fr,aa,Wr,or;console.log("onValuesChange:",pr,qn);let ha=0;if(ue(hn)===it.FileFolderAndDiff){const fa=yield gr.getFieldValue(),Nr=[],Da=[];for(const ua of Object.keys(fa))if((aa=(Fr=fa[ua])==null?void 0:Fr.diffValue)!=null&&aa.length&&ua!=="null"&&ua!==null){const cr=fa[ua];Nr.push($n({id:ua},cr))}const ja={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"};Nr.map(ua=>{var cr,Yr,ui,ba,ca;ua.id==0&&(ua.diffNum=rr==="1"?(Yr=(cr=go==null?void 0:go.navigation)==null?void 0:cr[0])==null?void 0:Yr.difficulty_count:(ba=(ui=ga==null?void 0:ga.navigation)==null?void 0:ui[0])==null?void 0:ba.difficulty_count),(ca=ua==null?void 0:ua.diffValue)==null||ca.map(ra=>{var Pa,ao,qo,Ko,Xl;const Oi={group_name:((Pa=ua.extra)==null?void 0:Pa.name)||"",teacher_group_name:"",id:`${ua.id}_${ra}`,group_id:ua.id,difficulty:ra,item_bank_num:(Ko=(qo=(ao=ua.diffNum)==null?void 0:ao.filter(Tl=>Tl.name===ja[ra]))==null?void 0:qo[0])==null?void 0:Ko.value};rr==="2"&&(Oi.is_share=!0,Oi.teacher_group_id=ua.id,Oi.teacher_group_name=(Xl=ua.extra)==null?void 0:Xl.name),Da.push(Oi)})}),ha=Da.reduce((ua,cr)=>ua+cr.item_bank_num,0),Tn([...Da,...Or==null?void 0:Or.filter(ua=>rr==="1"?ua.is_share:!ua.is_share)])}else if(ue(hn)===it.All){const fa=[];for(const Nr of Object.keys(pr)){const{diffNum:Da=[],diffValue:ja=[],extra:ua={}}=pr[Nr];console.log("---",ua);const[cr,Yr]=Nr.split("_");let ui=(or=(Wr=ua.tag_disciplines)==null?void 0:Wr.filter(ba=>parseInt(ba.id)===parseInt(Yr)))==null?void 0:or[0];ja.forEach(ba=>{var ca;const ra={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Pa=(ca=Da==null?void 0:Da.find(qo=>qo.name===ra[ba]))==null?void 0:ca.value,ao={group_name:"",teacher_group_name:"",tag_discipline_name:(ui==null?void 0:ui.name)||ua.tag_discipline_name,id:`${Nr}_${ba}`,group_id:cr,is_share:!!(ui!=null&&ui.is_share||(ua==null?void 0:ua.type)==="3"),tag_discipline_id:Yr,difficulty:ba,item_bank_num:Pa};ha+=Pa,ua.type==="0"?ao.group_name=ua.name:ao.teacher_group_name=ua.name,rr==="2"&&(ao.is_share=!0,ao.teacher_group_id=ua.id||0,ao.teacher_group_name=ua.name),Pa>0&&fa.push(ao)})}Tn([...fa,...Or==null?void 0:Or.filter(Nr=>rr==="1"?Nr.is_share:!Nr.is_share)])}zr(ha)})},y.createElement(Ot.default,{destroyInactiveTabPane:!0,activeKey:rr,onChange:qn=>ir(qn),style:{minHeight:260},tabBarExtraContent:{right:rr==="2"&&(na==null?void 0:na.length)>0&&y.createElement(Wt.default,{onChange:qn=>{fo(qn)},value:ki,style:{width:120}},y.createElement(Wt.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),na==null?void 0:na.map(qn=>y.createElement(Wt.default.Option,{key:qn==null?void 0:qn.group_id,value:qn==null?void 0:qn.group_id},qn==null?void 0:qn.name)))},items:[{key:"1",label:"\u6211\u521B\u5EFA\u7684",children:(Li==null?void 0:Li.length)===0?y.createElement(ke.Z,{spinning:di},y.createElement(jt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:Pn.folderAreaWrapper},y.createElement(We.Z,{justify:"space-between",align:"middle",className:Pn.folderAreaHeader},y.createElement("span",null,"\u6587\u4EF6\u5939"),y.createElement("span",{className:"mr20"},"\u5DF2\u9009",y.createElement("span",{style:{color:"#3061D0"}}," ",Va," "),"\u9898")),y.createElement(ke.Z,{spinning:di},y.createElement("div",{style:{minHeight:200}},Li.length>0&&y.createElement(ln.default,{checkable:!0,className:Pn.folderWrapper,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},selectable:!1,onCheck:(qn,pr)=>ro(qn,pr,"0"),checkedKeys:Ha,checkStrictly:!0,treeData:Li,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:Dt},y.createElement(jt.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:Pn.folderAreaWrapper},y.createElement(We.Z,{justify:"space-between",align:"middle",className:Pn.folderAreaHeader},y.createElement("span",null,"\u6587\u4EF6\u5939"),y.createElement("span",{className:"mr20"},"\u5DF2\u9009",y.createElement("span",{style:{color:"#3061D0"}}," ",Va||0," "),"\u9898")),y.createElement(ke.Z,{spinning:Dt},y.createElement("div",{style:{minHeight:200}},(_o==null?void 0:_o.length)>0&&y.createElement(ln.default,{checkable:!0,className:Pn.folderWrapper,selectable:!1,rootStyle:{paddingLeft:15,paddingRight:0,paddingTop:10},onCheck:(qn,pr)=>ro(qn,pr,"3"),checkedKeys:Hr,checkStrictly:!0,treeData:_o,showIcon:!0,blockNode:!0,defaultExpandAll:!0}))))}]}))},cn=E(52362),ar=E(48027),mr=Object.defineProperty,At=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Kn=(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={}))Kt.call(vn,Tn)&&Kn(hn,Tn,vn[Tn]);if(Mt)for(var Tn of Mt(vn))On.call(vn,Tn)&&Kn(hn,Tn,vn[Tn]);return hn},Hn=(hn,vn)=>At(hn,Tt(vn)),hr=(hn,vn,Tn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Tn.next(er))}catch(gr){Or(gr)}},ir=er=>{try{kn(Tn.throw(er))}catch(gr){Or(gr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Tn=Tn.apply(hn,vn)).next())});const Pr={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Lr=({ruleValue:hn,setSelectData:vn,currentItemType:Tn,defaultData:wr,isFirst:Or})=>{const[rr,ir]=(0,y.useState)([]),[kn,er,gr,na]=(0,ar.U)(bt,{keyword:"",course_discipline_id:null,item_type:Tn});(0,y.useEffect)(()=>{hr(void 0,null,function*(){const Hr=yield gr({},!0);ir((0,cn.L)(Hr.disciplines))})},[]),console.log(wr),(0,y.useEffect)(()=>{if(Or)switch(ue(hn)){case it.OnlyKnowledge:{Ha(wr.map(Hr=>Hr.tag_discipline_id));break}case it.KnowledgeAndDiff:{const Hr=new Map;wr.forEach(_i=>{_i&&(Hr.has(_i.tag_discipline_id)?Hr.set(_i.tag_discipline_id,[...Hr.get(_i.tag_discipline_id),_i.difficulty]):Hr.set(_i.tag_discipline_id,[_i.difficulty]))});for(const[_i,Li]of Hr.entries())Ci.setFieldValue([_i,"diff"],Li);break}}},[wr,hn,Or]);const[Ci]=_e.default.useForm(),ki=(0,y.useMemo)(()=>{var Hr;const _i=[];let Li="",vo="";const _o={};console.log(na,"disciplineRes");for(const Ai of((Hr=na==null?void 0:na.data)==null?void 0:Hr.list)||[]){const go={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};_i.push(go)}return _i},[na,wr]),fo=[{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline_name",show:!0,render:(Hr,_i)=>{const{item_bank_num:Li}=_i;return y.createElement("div",null,Hr,`(${Li})`)}},{title:"\u6240\u5C5E\u8BFE\u7A0B",dataIndex:"course_discipline_name",ellipsis:!0,show:!0},{title:"\u96BE\u5EA6",width:"35%",show:hn.includes(wt.Difficulty),render:(Hr,_i)=>{const{id:Li,difficulty_count:vo,total_count:_o,course_discipline_name:Ai,tag_discipline_name:go}=_i;return y.createElement(y.Fragment,null,y.createElement(_e.default.Item,{name:[Li,"diff"],noStyle:!0},y.createElement(Nt.default.Group,{style:{columnGap:12},options:vo.map(xi=>({label:xi.name,value:Pr[xi.name]}))})),y.createElement(_e.default.Item,{name:[Li,"extra"],initialValue:{difficulty_count:vo,total_count:_o,course_discipline_name:Ai,tag_discipline_name:go},noStyle:!0},y.createElement("input",{type:"hidden"})))}}].filter(Hr=>Hr.show),[ro,Ha]=(0,y.useState)([]),ma=(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(me.q,{size:"large",style:{width:240},showLinkButton:!1,onChange:Hr=>{gr({course_discipline_id:Hr})}})),y.createElement(Lt.Z,null,y.createElement(rt.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:kn.keyword,onChange:Hr=>gr({keyword:Hr})}))),y.createElement(_e.default,{form:Ci,onValuesChange:(Hr,_i)=>{var Li;console.log(_i),ma.current.clear();for(const vo of Object.keys(_i)){const _o={1:"\u7B80\u5355",2:"\u9002\u4E2D",3:"\u56F0\u96BE"},Ai=_i[vo],{difficulty_count:go,total_count:xi}=Ai.extra||{};(Li=Ai==null?void 0:Ai.diff)==null||Li.forEach(ga=>{var hi;const di=(hi=go==null?void 0:go.find(Dt=>Dt.name===_o[ga]))==null?void 0:hi.value,si=Hn(Un({},Ai.extra),{id:`${vo}_${ga}`,difficulty:ga,item_bank_num:di,tag_discipline_id:vo});di>0&&ma.current.set(`${vo}_${ga}`,si)})}vn([...ma.current.values()])}},(ki==null?void 0:ki.length)===0?y.createElement(jt.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(Hr,_i){console.log("table-selectedRowKeys:",Hr,_i),Ha(Hr),vn(_i)},getCheckboxProps:Hr=>({disabled:Hr.item_bank_num===0}),selectedRowKeys:ro}:void 0,columns:fo,dataSource:ki,loading:er,scroll:{y:480},rowKey:"id",pagination:!1})))},Cr=Object.defineProperty,Rr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,oa=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,Fa=(hn,vn,Tn)=>vn in hn?Cr(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Ur=(hn,vn)=>{for(var Tn in vn||(vn={}))ta.call(vn,Tn)&&Fa(hn,Tn,vn[Tn]);if(oa)for(var Tn of oa(vn))xa.call(vn,Tn)&&Fa(hn,Tn,vn[Tn]);return hn},ya=(hn,vn)=>Rr(hn,Xr(vn)),Xa=(hn,vn,Tn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Tn.next(er))}catch(gr){Or(gr)}},ir=er=>{try{kn(Tn.throw(er))}catch(gr){Or(gr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Tn=Tn.apply(hn,vn)).next())});const Ia={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var kr=({open:hn,onCancel:vn,setVisibleModalType:Tn,currentItemType:wr})=>{var Or;const{data:rr,dispatch:ir}=(0,y.useContext)(ht),[kn,er]=(0,y.useState)([]),[gr,na]=(0,y.useState)(),Ci=(Or=rr==null?void 0:rr.item_types)==null?void 0:Or.find(Li=>Li.item_type===wr);(0,y.useEffect)(()=>{var Li,vo,_o;if(hn){const Ai=(Li=rr==null?void 0:rr.item_types)==null?void 0:Li.find(go=>go.item_type===wr);if((Ai==null?void 0:Ai.random_rule_type)!==it.Shixun){const go=un[Ai==null?void 0:Ai.random_rule_type]||[];er(go);const xi=(_o=(vo=rr==null?void 0:rr.item_types)==null?void 0:vo.find(ga=>ga.item_type===wr))==null?void 0:_o.contents;switch(console.log("----xxx",ue(go)),ue(go)){case it.OnlyDifficulty:{Ha(xi.map(ga=>ga.difficulty));break}case it.OnlyFileFolder:{Ha({my:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)>=0)}),na({my:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)>=0)});break}case it.FileFolderAndKnowledge:{Ha({my:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)>=0)}),na({my:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:xi==null?void 0:xi.filter(ga=>parseInt(ga.teacher_group_id)>=0)});break}case it.FileFolderAndDiff:{Ha(xi),na(xi);break}case it.All:{Ha(xi),na(xi);break}default:Ha(xi)}}}},[hn]);const[ki,fo]=(0,y.useState)([]);(0,y.useEffect)(()=>{hn&&st({item_type:wr}).then(Li=>{Li.status===0&&fo(Li.data)})},[hn]),(0,y.useEffect)(()=>{console.log("selectData",gr)},[gr]);const[ro,Ha]=(0,y.useState)(),[ma,Hr]=(0,y.useState)(!0);console.log("isFirst:",ma);const _i=Li=>{er(Li),na([]),Ha([]),Hr(!1)};return y.createElement(gn.default,{title:"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219",width:948,closable:!0,centered:!0,open:hn,onCancel:vn,destroyOnClose:!0,onOk:()=>Xa(void 0,null,function*(){var Li,vo,_o,Ai,go,xi,ga;if(gr===void 0){Tn("");return}if(Object.prototype.toString.call(gr)==="[object Object]"&&!((Li=gr.my)!=null&&Li.length)&&!((vo=gr.public)!=null&&vo.length)){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!Object.keys(gr).length&&!(gr!=null&&gr.length)){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const hi=ue(kn);switch(hi){case it.OnlyFileFolder:{ir({type:"editRule",payload:{itemType:wr,tableData:[...gr.my||[],...gr.public||[]],randomRuleType:hi}});break}case it.OnlyDifficulty:{const di=(Ai=(_o=rr==null?void 0:rr.item_types)==null?void 0:_o.find(Dt=>Dt.item_type===wr))==null?void 0:Ai.contents;let si=[{},{value:(go=ki.find(Dt=>Dt.name==="\u7B80\u5355"))==null?void 0:go.value},{value:(xi=ki.find(Dt=>Dt.name==="\u9002\u4E2D"))==null?void 0:xi.value},{value:(ga=ki.find(Dt=>Dt.name==="\u56F0\u96BE"))==null?void 0:ga.value}];ir({type:"editRule",payload:{itemType:wr,tableData:gr.map((Dt,Jt)=>{var rn,Nn,Va,zr;return{difficulty:Dt,id:Jt,quanlity:((Nn=(rn=di==null?void 0:di.filter(qn=>qn.id===Jt))==null?void 0:rn[0])==null?void 0:Nn.quanlity)||1,item_bank_num:(ki==null?void 0:ki.length)===1?(Va=ki[0])==null?void 0:Va.value:(zr=si==null?void 0:si[Dt])==null?void 0:zr.value}}),randomRuleType:hi}});break}case it.OnlyKnowledge:{ir({type:"editRule",payload:{itemType:wr,tableData:gr.map(di=>ya(Ur({},di),{quanlity:di.quanlity||1})),randomRuleType:hi}});break}case it.KnowledgeAndDiff:{ir({type:"editRule",payload:{itemType:wr,tableData:gr.map(di=>ya(Ur({},di),{quanlity:di.quanlity||1})),randomRuleType:hi}});break}case it.FileFolderAndDiff:{ir({type:"editRule",payload:{itemType:wr,tableData:gr.map(di=>ya(Ur({},di),{quanlity:di.quanlity||1})),randomRuleType:hi}});break}case it.FileFolderAndKnowledge:{ir({type:"editRule",payload:{itemType:wr,tableData:[...gr.my||[],...gr.public||[]],randomRuleType:hi}});break}case it.All:{ir({type:"editRule",payload:{itemType:wr,tableData:gr.map(di=>ya(Ur({},di),{quanlity:di.quanlity||1})),randomRuleType:hi}});break}}Tn("")})},y.createElement(Nt.default.Group,{className:`${Pn.ruleCheckBox}`,style:{marginBottom:8},value:kn,onChange:Li=>{var vo;kn!=null&&kn.length&&((vo=Ci==null?void 0:Ci.contents)==null?void 0:vo.length)>0?gn.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:()=>_i(Li)}):_i(Li)},options:[{label:"\u6307\u5B9A\u6587\u4EF6\u5939\u62BD\u9898",value:wt.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:wt.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:wt.Knowledge}]}),kn.includes(wt.FileFolder)?y.createElement(gt,{defaultData:ro,selectData:gr,ruleValue:kn,setSelectData:na,currentItemType:wr}):kn.includes(wt.Knowledge)?y.createElement(Lr,{defaultData:ro,isFirst:ma,ruleValue:kn,setSelectData:na,currentItemType:wr}):kn.includes(wt.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:ki.map(Li=>({label:Li.name,value:Ia[Li.name]})),value:gr||ro,onChange:Li=>na(Li)})):null)},Sa=({open:hn,onCancel:vn,setVisibleModalType:Tn,currentItemType:wr})=>hn?y.createElement(kr,{open:hn,onCancel:vn,setVisibleModalType:Tn,currentItemType:wr}):null,la=E(79939),Kr=E(25399),Ya=E(16561),Mi=E(85410),ji=E(75363),za=E(49411),Di=E(61485),mi=E(16628),Ei=({open:hn,onCancel:vn,onOk:Tn})=>{const{data:wr}=(0,y.useContext)(ht),Or=(0,Ya.g)(),[rr,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"}),[gr,na]=(0,y.useState)(!1);(0,y.useEffect)(()=>{if(hn){kn({page:1,limit:10,type:0},!0).then(ma=>{(ma==null?void 0:ma.shixuns_count)===0&&na(!0)});const Ha=wr.item_types.find(ma=>ma.item_type==="PRACTICAL");ki(Ha.item_banks.map(ma=>ma.id)),ro(Ha.item_banks)}},[hn,wr]);const[Ci,ki]=(0,y.useState)([]),[fo,ro]=(0,y.useState)([]);return y.createElement(gn.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:hn,width:948,centered:!0,closable:!0,onCancel:vn,onOk:()=>Tn(fo),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:Or,onChange:Ha=>{kn({page:1,discipline_id:Ha==null?void 0:Ha[0],sub_discipline_id:Ha==null?void 0:Ha[1]})}}),y.createElement(Wt.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:Ha=>kn({page:1,diff:Ha})}),y.createElement(Wt.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:Ha=>kn({page:1,shixun_publish_status:Ha})})),y.createElement(rt.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Ha=>{kn({keyword:Ha,page:1})}})),gr?y.createElement("div",null,y.createElement(jt.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,za.xg)("/shixuns")})):y.createElement(Rt.default,{loading:ir,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(Ha,ma)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:ma!=null&&ma.high_resources_consume?Qt.title:"",title:Ha||"--"},y.createElement(ji.Z,{key:1,showLines:1,showTextOnly:!0,value:Ha||"--"})),(ma==null?void 0:ma.high_resources_consume)&&y.createElement(mi.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(Ha,ma,Hr)=>y.createElement("span",null,Ha||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:y.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",y.createElement(Kr.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(Di.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Ha,ma,Hr)=>y.createElement("span",null,Ha||"- -")},{title:"\u64CD\u4F5C",render(Ha,ma){const{title:Hr,challenge_names:_i,author_name:Li,identifier:vo,author_school_name:_o,study_count:Ai}=ma||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{gn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement(ji.Z,{value:Hr,style:{marginBottom:18}}),y.createElement("div",{className:Qt.challengeNameWrapper},_i.map((go,xi)=>y.createElement("div",{className:Qt.challengeName,key:xi},"\u7B2C",(0,za.EM)(xi+1),"\u9898\xA0",go))),y.createElement(We.Z,{className:Qt.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Lt.Z,{className:Qt.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:Qt.shixunInfo},Li.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:Qt.shixunInfo},_o),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:Qt.shixunInfo},Ai)),y.createElement(dt.ZP,{type:"primary",className:Qt.btnToDetail,onClick:()=>(0,za.xg)(`/shixuns/${vo}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(ma==null?void 0:ma.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${ma==null?void 0:ma.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:er==null?void 0:er.items,rowSelection:{selectedRowKeys:Ci,preserveSelectedRowKeys:!0,getCheckboxProps:Ha=>({disabled:Ha.shixun_tag_num===1}),onChange(Ha,ma){var Hr,_i,Li;console.log(Ha),ki(Ha);const vo=[];for(const Ai of fo)Ha.includes(Ai.id)&&vo.push(Ai);const _o=vo.map(Ai=>Ai.id);for(const Ai of ma)Ai&&Ha.includes(Ai.id)&&!_o.includes(Ai.id)&&vo.push({id:Ai.id,difficulty:Ai.level,identifier:Ai.identifier,name:Ai.name,real_name:(Hr=Ai==null?void 0:Ai.author_name)==null?void 0:Hr.split("\u3001")[0],school_name:Ai.author_school_name,challenge_names:Ai.challenge_names,challenges:(_i=Ai.challenge_names)==null?void 0:_i.map((go,xi)=>({subject:go,id:xi,score:5})),score:((Li=Ai.challenge_names)==null?void 0:Li.length)*5,study_count:Ai.study_count,challenges_count:Ai.challenges_count});ro(vo)}},pagination:{current:rr.page,pageSize:rr.limit,total:er==null?void 0:er.items_count,showTotal:Ha=>y.createElement("span",null,"\u5171\xA0",y.createElement("span",{style:{color:"#165DFF"}},Ha),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(Ha,ma){kn({page:Ha,limit:ma})},size:"default"},scroll:{y:400}}))},ei=E(22061),Ar=E(59301),Jn=Object.defineProperty,xr=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,Er=(hn,vn,Tn)=>vn in hn?Jn(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Dr=(hn,vn)=>{for(var Tn in vn||(vn={}))$r.call(vn,Tn)&&Er(hn,Tn,vn[Tn]);if(tr)for(var Tn of tr(vn))sa.call(vn,Tn)&&Er(hn,Tn,vn[Tn]);return hn},jr=(hn,vn)=>xr(hn,Sr(vn)),Na=({onDelete:hn,list:vn,onSelect:Tn})=>{const[wr,Or]=(0,y.useState)(!1),{dispatch:rr,disabled:ir}=(0,y.useContext)(ht),kn=(ki,fo,ro)=>{const Ha=Array.from(ki),[ma]=Ha.splice(fo,1);return Ha.splice(ro,0,ma),Ha},[er,gr]=(0,y.useState)(null),[na,Ci]=(0,y.useState)(!1);return Ar.createElement(ei.Z5,{onDragStart:()=>{Ci(!0)},onDragEnd:ki=>{if(Ci(!1),!ki.destination)return;const fo=kn(vn,ki.source.index,ki.destination.index);rr({type:"updateItemTypes",payload:fo})}},Ar.createElement(ei.bK,{droppableId:"droppable"},(ki,fo)=>Ar.createElement("div",jr(Dr({},ki.droppableProps),{ref:ki.innerRef}),Ar.createElement(ke.Z,{spinning:wr},vn.map((ro,Ha)=>Ar.createElement(ei._l,{key:Ha,draggableId:Ha.toString(),index:Ha,isDragDisabled:er!==ro.item_type},(ma,Hr)=>Ar.createElement(We.Z,jr(Dr(Dr({align:"middle",wrap:!1,ref:ma.innerRef},ma.draggableProps),ma.dragHandleProps),{className:`${Qt.dragItem} ${na?Qt.dragging:""}`}),Ar.createElement(Lt.Z,{className:Qt.contentArea,onClick:()=>{Tn(ro.item_type),(0,za.k3)()}},Ar.createElement("span",{className:Qt.blackText},(0,za.EM)(Ha+1),"\u3001\u3010",ro.item_type_text,"\u3011"),Ar.createElement(Kr.Z,{title:`\uFF08${ro.item_bank_count}\u5C0F\u9898\uFF0C\u5171${parseFloat(ro.total_score).toFixed(1)}\u5206\uFF09`},Ar.createElement("span",{className:Qt.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(Kr.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F",open:er===ro.item_type&&!na},Ar.createElement("div",{style:{cursor:"grab"},className:`${Qt.iconWrapper} ${na?Qt.hidden:""}`,onMouseEnter:()=>{gr(ro.item_type)},onMouseLeave:()=>gr(null)},Ar.createElement("i",{className:`iconfont icon-tuodong1 ${Qt.dragIcon}`}))),Ar.createElement(Kr.Z,{title:"\u5220\u9664"},Ar.createElement("div",{className:`${Qt.iconWrapper} ${na?Qt.hidden:""}`,style:{cursor:"pointer"},onClick:()=>hn(ro.item_type)},Ar.createElement("i",{className:`iconfont icon-shanchu12 ${Qt.deleteIcon}`})))))))),ki.placeholder)))},$a=E(71114),ea={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"},ai=E(73631),gi=E(31328);const zi=(hn,vn,Tn,wr)=>{const Or={[it.OnlyDifficulty]:[{title:"\u96BE\u5EA6",key:"difficulty",render(rr,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(rr,ir){return`${rr}`}}],[it.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(rr,ir,kn){const{group_name:er,teacher_group_name:gr}=ir,na=er||gr,Ci=gr?gi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:Ci,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:na},y.createElement("span",{className:ea.titles},na)))}},{title:"\u7C7B\u578B",render(rr,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(rr,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(rr,ir){const{group_name:kn,teacher_group_name:er}=ir,gr=kn||er,na=er?gi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:na,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:gr},y.createElement("span",{className:ea.titles},gr)))}},{title:"\u7C7B\u578B",render(rr,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(rr,ir){const{group_name:kn,teacher_group_name:er}=ir,gr=kn||er,na=er?gi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:na,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:gr},y.createElement("span",{className:ea.titles},gr)))}},{title:"\u7C7B\u578B",render(rr,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(rr,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(rr,ir){const{group_name:kn,teacher_group_name:er,teacher_group_id:gr}=ir,na=kn||er,Ci=gr||gr===0?gi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:Ci,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:na},y.createElement("span",{className:ea.titles},na)))}},{title:"\u7C7B\u578B",render(rr,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(rr,ir){const{difficulty:kn}=ir;return y.createElement("span",{style:{color:re[kn].color}},re[kn].label)}}],[it.Shixun]:[]};for(const rr of Object.values(Or))rr.push({title:"\u62BD\u9898\u6570\u91CF",key:"quanlity",render(ir,kn){const{item_bank_num:er,quanlity:gr,id:na,teacher_group_id:Ci}=kn||{};return y.createElement(We.Z,{align:"middle"},y.createElement(Te.Z,{disabled:wr,min:1,max:er,size:"large",precision:0,value:gr,onChange:ki=>{vn({type:"changeQuestionNum",payload:{itemType:Tn,id:na,num:ki,teacher_group_id:Ci}})}}),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:gr}=kn;return wr?y.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):y.createElement("span",{className:ea.deleteBtn,onClick:()=>{vn({type:"deleteRule",payload:{itemType:Tn,id:er,is_share:gr}})}},"\u5220\u9664")}});return Or[hn]},Ui=({setVisibleModalType:hn})=>{var vn,Tn,wr,Or;const{data:rr,dispatch:ir,disabled:kn}=(0,y.useContext)(ht),er=(vn=rr==null?void 0:rr.item_types)==null?void 0:vn.find(gr=>gr.item_type==="PRACTICAL");return y.createElement($a.Z,{className:ea.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:ea.title},"\u9898\u5E93\u9009\u9898"),y.createElement("span",{className:ea.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(rt.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(jt.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(gr,na,Ci){return y.createElement("span",null,Ci+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(gr,na)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:na!=null&&na.high_resources_consume?ea.q_title:"",title:gr||"--"},y.createElement(ji.Z,{key:1,showLines:1,showTextOnly:!0,value:gr})),(na==null?void 0:na.high_resources_consume)&&y.createElement(mi.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:(gr,na,Ci)=>y.createElement("span",null,gr||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(gr,na,Ci){const{id:ki,identifier:fo,name:ro,challenge_names:Ha=[],real_name:ma,school_name:Hr,study_count:_i,challenges:Li=[]}=na||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer",marginLeft:20},onClick:()=>{gn.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement(ji.Z,{value:ro,style:{marginBottom:18}}),y.createElement("div",{className:ea.challengeNameWrapper},Li==null?void 0:Li.map((vo,_o)=>y.createElement("div",{className:ea.challengeName,key:_o},"\u7B2C",(0,za.EM)(_o+1),"\u9898\xA0",vo==null?void 0:vo.subject))),y.createElement(We.Z,{className:ea.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Lt.Z,{className:ea.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:ea.shixunInfo},ma),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:ea.shixunInfo},Hr),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:ea.shixunInfo},_i)),y.createElement(dt.ZP,{type:"primary",className:ea.btnToDetail,onClick:()=>(0,za.xg)(`/shixuns/${fo}/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:ki}})},className:`ml20 ${ea.deleteBtn}`},"\u5220\u9664"))}}],dataSource:(er==null?void 0:er.item_banks)||[],pagination:!1}))},{children:y.createElement(We.Z,{style:{transform:(wr=er==null?void 0:er.item_banks)!=null&&wr.length?"translateY(-8px)":"none"},align:"middle",justify:"space-between"},y.createElement("span",{className:ea.title},"\u5DF2\u9009\u5B9E\u8BAD\u9898\u4E2D\u968F\u673A\u62BD\u9898"),!!((Or=er==null?void 0:er.item_banks)!=null&&Or.length)&&y.createElement(Lt.Z,null,y.createElement(We.Z,{align:"middle"},y.createElement("span",{className:ea.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:gr=>ir({type:"changeQuestionNum",payload:{num:gr||1,itemType:"PRACTICAL"}})}),y.createElement("span",{className:`${ea.normalText} mr30`},"/",er==null?void 0:er.item_bank_num),y.createElement("span",{className:ea.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:gr=>ir({type:"changeQuestionScore",payload:{score:gr,itemType:"PRACTICAL"}})}),y.createElement("span",{className:ea.normalText},"\u5206"))))}]})};var Yi=({setVisibleModalType:hn,currentItemType:vn,onDelete:Tn})=>{var wr,Or;const rr=(0,Ee.useParams)(),{data:ir,dispatch:kn,disabled:er}=(0,y.useContext)(ht),gr=((wr=ir==null?void 0:ir.item_types)==null?void 0:wr.findIndex(Ci=>Ci.item_type===vn))+1,na=(Or=ir==null?void 0:ir.item_types)==null?void 0:Or.find(Ci=>Ci.item_type===vn);return y.createElement("div",{className:ea.questionDetailWrapper},y.createElement(We.Z,{justify:"space-between",align:"middle",className:"mb30"},y.createElement(Lt.Z,null,y.createElement("span",{className:ea.questionTitle},`${(0,za.EM)(gr)}\u3001${na==null?void 0:na.item_type_text}`),y.createElement("span",{className:ea.questionScoreInfo},"\uFF08",y.createElement("span",{style:{color:"#3061D0"}},na==null?void 0:na.item_bank_count),"\u5C0F\u9898 ",y.createElement("span",null,"\uFF0C\u5171",y.createElement("span",{style:{color:"#3061D0"}},na==null?void 0:na.total_score),"\u5206"),"\uFF09")),!er&&y.createElement("i",{className:`iconfont icon-shanchutimu ${ea.deleteIcon}`,onClick:()=>Tn(vn)})),vn==="PRACTICAL"?y.createElement(Ui,{setVisibleModalType:hn}):y.createElement(y.Fragment,null,(na==null?void 0:na.contents.length)===0?y.createElement(jt.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:(rr==null?void 0:rr.id)&&y.createElement(We.Z,{justify:"center",className:"mt30"},y.createElement(rt.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:`${ea.normalText}`},"\u6BCF\u9898\u5206\u503C"),y.createElement(Te.Z,{disabled:er,size:"large",className:"ml10 mr10",min:.1,max:100,value:na==null?void 0:na.score,precision:1,onChange:Ci=>kn({type:"changeQuestionScore",payload:{score:Ci,itemType:vn}})}),y.createElement("span",{className:ea.normalText},"\u5206"))),(rr==null?void 0:rr.id)&&y.createElement(rt.op,{onClick:()=>hn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),y.createElement(Rt.default,{columns:zi(na==null?void 0:na.random_rule_type,kn,vn,er),dataSource:na==null?void 0:na.contents,pagination:!1,rowKey:"id"}))))},co=E(96194),No=E(17611),$o=E(30466),Wo=E(32637),Ba=E(59301),Ii=Object.defineProperty,ri=Object.defineProperties,So=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,il=Object.prototype.hasOwnProperty,$l=Object.prototype.propertyIsEnumerable,Ol=(hn,vn,Tn)=>vn in hn?Ii(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,Vo=(hn,vn)=>{for(var Tn in vn||(vn={}))il.call(vn,Tn)&&Ol(hn,Tn,vn[Tn]);if(ci)for(var Tn of ci(vn))$l.call(vn,Tn)&&Ol(hn,Tn,vn[Tn]);return hn},Yo=(hn,vn)=>ri(hn,So(vn)),no=(hn,vn,Tn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Tn.next(er))}catch(gr){Or(gr)}},ir=er=>{try{kn(Tn.throw(er))}catch(gr){Or(gr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Tn=Tn.apply(hn,vn)).next())}),Ul=({})=>{var hn,vn,Tn,wr,Or,rr,ir,kn,er,gr,na,Ci,ki,fo,ro;const[Ha]=(0,Ee.useSearchParams)(),ma=(0,Ee.useParams)(),{data:Hr,dispatch:_i,setPreview:Li,getData:vo,handlePreview:_o,disabled:Ai}=(0,y.useContext)(ht),[go,xi]=(0,y.useState)(""),[ga,hi]=(0,y.useState)((vn=(hn=Hr==null?void 0:Hr.item_types)==null?void 0:hn[0])==null?void 0:vn.item_type),[di,si]=(0,y.useState)(!0),[Dt,Jt]=(0,y.useState)(!1),rn=(qn,pr)=>no(void 0,null,function*(){var Fr,aa,Wr,or,ha,fa,Nr;const Da=Hr.item_types.map(ui=>ui.item_type_text),ja=(Fr=Hr==null?void 0:Hr.item_types)==null?void 0:Fr.filter(ui=>{var ba,ca;return((ba=ui.contents)==null?void 0:ba.length)>0||((ca=ui==null?void 0:ui.item_banks)==null?void 0:ca.length)>0});if(Hr.sort_by_item_type=Da,!((aa=Hr.item_types)!=null&&aa.length)){ce.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){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}if(!qn){const ui=Number((Wr=Hr==null?void 0:Hr.examination_bank)==null?void 0:Wr.total_score);[100,120,150].includes(ui)||(yield new Promise((ba,ca)=>{gn.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ba.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Ba.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*(){ba("")}),onCancel:()=>{ca()}})}))}let ua=()=>no(void 0,null,function*(){const ui=(0,Ie.cloneDeep)(Hr),{item_types:ba}=ui||{};ui.item_types=ba.filter(ra=>ra.item_type===ga),(yield qe(ma.id||ma.categoryId,ui)).status===0&&(hi(pr),ce.ZP.success("\u4FDD\u5B58\u6210\u529F"),qn||Ee.history.push("/paperlibrary"))}),cr=(ha=(or=Hr==null?void 0:Hr.item_types)==null?void 0:or.filter(ui=>ui.item_type_text==="\u5B9E\u8BAD\u9898")[0])==null?void 0:ha.item_banks,Yr=0;cr==null||cr.map(ui=>{ui.high_resources_consume&&(Yr=Yr+1)}),console.log(Yr),Yr>0?gn.default.info({centered:!0,icon:null,width:600,okText:"\u6211\u77E5\u9053\u4E86",title:"\u63D0\u793A",content:Ba.createElement("div",null,Ba.createElement("div",{className:Qt.tipcontent},Ba.createElement("div",null,Ba.createElement("div",{className:Qt.name},"\u60A8\u597D\uFF01",(fa=(0,$o.eY)())==null?void 0:fa.username,"\uFF08",(Nr=(0,$o.eY)())==null?void 0:Nr.login,"\uFF09\uFF1A"),Ba.createElement("div",{className:Qt.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ba.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"),Ba.createElement("div",{className:Qt.info},Ba.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),Ba.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Ba.createElement("span",{style:{color:"#232B40"}},`${Yr}\u4E2A`))),Ba.createElement("div",null,Ba.createElement("div",{className:Qt.img},Ba.createElement("img",{src:Wo,width:"124px",height:"124px"})),Ba.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{ua()}}):ua()}),Nn=(qn,pr,Fr,aa=!1)=>no(void 0,null,function*(){console.log(Hr);const Wr=Yo(Vo(Vo({},Hr.exercise),ma),{exerciseId:ma.categoryId,sort_by_item_type:Hr.sort_by_item_type,difficulty:Hr.examination_bank.difficulty,exam_notes:Hr.examination_bank.exam_notes,exercise_name:Hr.examination_bank.name,time:Hr.examination_bank.time,changed_item_type:ga,item_types:Hr.item_types,sub_discipline_id:Hr.examination_bank.sub_discipline_id});(!qn||pr===1)&&(Wr.is_reset=1);const or=yield(0,No.wy)(Wr);return or.status===0&&(aa||ce.ZP.success("\u4FEE\u6539\u6210\u529F "),hi(Fr),qn||Ee.history.push(`/classrooms/${ma.coursesId}/exercise/${ma.categoryId}/detail?random=true`)),or}),Va=qn=>{gn.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,closable:!0,content:Ba.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u8BE5\u9898\u578B\uFF1F"),onOk:()=>no(void 0,null,function*(){var pr,Fr,aa,Wr;if(ma.id){if((yield Le(ma.id,{item_type:[qn]})).status!==0)return}else{const or=yield xe(ma.categoryId,{item_type:[qn]});if(vo(),or.status!==0)return}if(_i({type:"deleteQuestionType",payload:qn}),qn===ga){const or=he(Hr,{type:"deleteQuestionType",payload:qn});hi(or.item_types.length?or.item_types[0].item_type:(Fr=(pr=Hr==null?void 0:Hr.item_types)==null?void 0:pr[0])==null?void 0:Fr.item_type)}else hi((Wr=(aa=Hr==null?void 0:Hr.item_types)==null?void 0:aa[0])==null?void 0:Wr.item_type)})})};(0,y.useEffect)(()=>{var qn;(qn=Hr==null?void 0:Hr.examination_bank)!=null&&qn.name&&si(!1),(0,za.Dk)("\u968F\u673A\u7EC4\u5377")},[(Tn=Hr==null?void 0:Hr.examination_bank)==null?void 0:Tn.name]);const zr=()=>no(void 0,null,function*(){var qn;let pr=yield Nn(!0,1,ga,!0);if((pr==null?void 0:pr.status)===0){const Fr=yield(0,Ge.ZP)(`/api/exercises/${ma==null?void 0:ma.categoryId}/simulate_start_answer.json`,{method:"get",params:{coursesId:ma==null?void 0:ma.coursesId,categoryId:ma==null?void 0:ma.categoryId}});(Fr==null?void 0:Fr.status)!=-1&&window.open(`/classrooms/${ma.coursesId}/exercise/${ma.categoryId}/${(qn=(0,$o.eY)())==null?void 0:qn.login}/initate_answer`)}});return Ba.createElement("div",{className:Qt.questionInfo},Ba.createElement("div",{className:"tc mb20"},Ba.createElement(Ce.VP,{defaultValue:(wr=Hr==null?void 0:Hr.examination_bank)==null?void 0:wr.name,onFinish:qn=>no(void 0,null,function*(){return _i({type:"updateBaseInfo",payload:Yo(Vo({},Hr.examination_bank),{name:qn})}),ma!=null&&ma.id?(0,No.se)({name:qn,exerciseId:(ma==null?void 0:ma.categoryId)||(ma==null?void 0:ma.id)}):(0,No.wy)({exercise_name:qn,exerciseId:(ma==null?void 0:ma.categoryId)||(ma==null?void 0:ma.id)}),!0})})),Ba.createElement(We.Z,{justify:"center",className:"mb20"},Ba.createElement(Lt.Z,{className:"mr30"},Ba.createElement("span",{className:Qt.label},"\u7B54\u9898\u65F6\u957F"),Ba.createElement("span",null,((Or=Hr==null?void 0:Hr.examination_bank)==null?void 0:Or.time)===-1?"\u4E0D\u9650":((rr=Hr==null?void 0:Hr.examination_bank)==null?void 0:rr.time)||"\u4E0D\u9650")),Ba.createElement(Lt.Z,{className:"mr30"},Ba.createElement("span",{className:Qt.label},"\u96BE\u5EA6"),Ba.createElement("span",null,(kn=re[`${(ir=Hr==null?void 0:Hr.examination_bank)==null?void 0:ir.difficulty}`])==null?void 0:kn.label)),Ba.createElement(Lt.Z,{className:"mr30"},Ba.createElement("span",{className:Qt.label},"\u8BD5\u9898\u603B\u6570"),Ba.createElement("span",null,((er=Hr==null?void 0:Hr.examination_bank)==null?void 0:er.question_count)||0)),Ba.createElement(Lt.Z,null,Ba.createElement("span",{className:Qt.label},"\u603B\u5206"),Ba.createElement("span",null,((na=(gr=Hr==null?void 0:Hr.examination_bank)==null?void 0:gr.total_score)==null?void 0:na.toFixed(1))||0))),Ba.createElement("div",{className:Qt.content,style:{border:((Ci=Hr==null?void 0:Hr.item_types)==null?void 0:Ci.length)<=0&&"none"}},((ki=Hr==null?void 0:Hr.item_types)==null?void 0:ki.length)>0?Ba.createElement(We.Z,{wrap:!1},Ba.createElement(Lt.Z,{flex:"260px",className:Qt.leftPart},!Ai&&Ba.createElement(We.Z,{className:"mb20"},Ba.createElement(rt.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>xi("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(ma==null?void 0:ma.id)&&Ba.createElement(rt.op,{shape:"default",onClick:()=>xi("questionType")},"\u6DFB\u52A0\u9898\u578B")),Ba.createElement(Na,{list:Hr.item_types,onSelect:qn=>no(void 0,null,function*(){if(qn===ga)return;si(!0);const pr=Hr.item_types.find(Fr=>Fr.item_type===ga);if(ga!=="PRACTICAL"&&pr.contents.length>0&&(ma!=null&&ma.id)){const Fr=(0,Ie.cloneDeep)(Hr),{item_types:aa}=Fr||{};Fr.item_types=aa.filter(Wr=>Wr.item_type===ga);try{(yield qe(ma.id||ma.categoryId,Fr)).status===0&&hi(qn)}catch(Wr){}}else ma.categoryId?Nn(!0,2,qn):rn(!0,qn);si(!1)}),onDelete:Va})),Ba.createElement(Lt.Z,{flex:1,className:Qt.rightPart},Ba.createElement(ke.Z,{spinning:di},Ba.createElement(Yi,{setVisibleModalType:xi,currentItemType:ga,onDelete:Va})))):Ba.createElement(jt.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:Ba.createElement(We.Z,{justify:"center",className:"mt20"},(ma==null?void 0:ma.id)&&Ba.createElement(rt.op,{style:{width:88},onClick:()=>xi("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(ma!=null&&ma.id)&&Ba.createElement("div",{className:Qt.fixedBottom},Ba.createElement(co.Z,{className:`${Qt.previewBtn} mr20`,onClick:()=>no(void 0,null,function*(){var qn,pr;const Fr=(qn=Hr==null?void 0:Hr.item_types)==null?void 0:qn.filter(aa=>{var Wr,or;return((Wr=aa.contents)==null?void 0:Wr.length)>0||((or=aa==null?void 0:aa.item_banks)==null?void 0:or.length)>0});if(!((pr=Hr.item_types)!=null&&pr.length)){ce.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){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}yield rn(!0,ga),_o()})},"\u8BD5\u5377\u9884\u89C8"),Ba.createElement(co.Z,{type:"primary",className:Qt.confirmBtn,onClick:()=>rn()},Ba.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(ma!=null&&ma.categoryId)&&Ba.createElement("div",{className:Qt.fixedBottom,style:{justifyContent:((fo=Hr==null?void 0:Hr.exercise)==null?void 0:fo.exercise_status)!==1?"end":"center"}},Ba.createElement(co.Z,{className:`${Qt.previewBtn} mr20`,onClick:()=>no(void 0,null,function*(){var qn,pr;document.body.scrollIntoView(),Ee.history.push(`/classrooms/${ma.coursesId}/exercise/${(qn=Hr==null?void 0:Hr.exercise)==null?void 0:qn.id}/detail?random=${(pr=Hr==null?void 0:Hr.exercise)==null?void 0:pr.is_random}`)})},"\u8FD4\u56DE"),((ro=Hr==null?void 0:Hr.exercise)==null?void 0:ro.exercise_status)===1&&Ba.createElement(co.Z,{className:`${Qt.previewBtn} mr20`,onClick:zr},"\u6A21\u62DF\u8003\u8BD5"),(Hr==null?void 0:Hr.exercise.exercise_status)===1&&Ba.createElement(co.Z,{type:"primary",className:Qt.confirmBtn,onClick:()=>no(void 0,null,function*(){var qn;const pr=Number((qn=Hr==null?void 0:Hr.examination_bank)==null?void 0:qn.total_score);[100,120,150].includes(pr)||(yield new Promise((Fr,aa)=>{gn.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ba.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Ba.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},pr),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>no(void 0,null,function*(){Fr("")}),onCancel:()=>{aa()}})})),Nn()})},"\u63D0\u4EA4")),Ba.createElement(lt,{open:go==="questionType",onCancel:()=>xi(""),onOk:qn=>no(void 0,null,function*(){var pr,Fr;const aa=[],Wr=he(Hr,{type:"setQuestionType",payload:qn}),or=((pr=Wr==null?void 0:Wr.item_types)==null?void 0:pr.map(ha=>ha.item_type))||[];for(const ha of((Fr=Hr==null?void 0:Hr.item_types)==null?void 0:Fr.map(fa=>fa.item_type))||[])or.includes(ha)||aa.push(ha);ma.id&&aa.length>0&&(yield Le(ma.id,{item_type:aa})).status!==0||(_i({type:"setQuestionType",payload:qn}),hi(ga||Wr.item_types[0].item_type),xi(""))})}),Ba.createElement(Zn,{open:go==="setScore",onCancel:()=>{xi("")},onOk:qn=>no(void 0,null,function*(){console.log("---newData",qn);const pr=qn.item_types.map(Fr=>({item_type:Fr.item_type,score:Fr.score}));ma.id?(yield $e(ma.id,{score_settings:pr})).status===0&&_i({type:"init",payload:qn}):(yield pe(ma.categoryId,{score_settings:pr})).status===0&&_i({type:"init",payload:qn}),xi("")})}),Ba.createElement(Sa,{open:go==="rule",onCancel:()=>xi(""),currentItemType:ga,setVisibleModalType:xi}),Ha.get("type")==="settings"&&Ba.createElement(Ei,{open:go==="selectShixun",onCancel:()=>xi(""),onOk:qn=>{if(console.log(qn),(qn==null?void 0:qn.length)<=0){ce.ZP.info("\u5B9E\u8BAD\u6570\u4E0D\u80FD\u4E3A0");return}_i({type:"addShixun",payload:{shixunList:[...qn]}}),xi("")}}))},_l=E(82873),Io=E(59301),es=Object.defineProperty,as=Object.defineProperties,Ni=Object.getOwnPropertyDescriptors,Qi=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,Hi=(hn,vn,Tn)=>vn in hn?es(hn,vn,{enumerable:!0,configurable:!0,writable:!0,value:Tn}):hn[vn]=Tn,uo=(hn,vn)=>{for(var Tn in vn||(vn={}))Pi.call(vn,Tn)&&Hi(hn,Tn,vn[Tn]);if(Qi)for(var Tn of Qi(vn))pi.call(vn,Tn)&&Hi(hn,Tn,vn[Tn]);return hn},Il=(hn,vn)=>as(hn,Ni(vn)),oo=(hn,vn,Tn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Tn.next(er))}catch(gr){Or(gr)}},ir=er=>{try{kn(Tn.throw(er))}catch(gr){Or(gr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Tn=Tn.apply(hn,vn)).next())}),Jo=()=>{var hn,vn,Tn,wr;const[Or,rr]=(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),[gr]=(0,Ee.useSearchParams)();(0,y.useEffect)(()=>{gr.get("type")==="settings"&&rr("settings")},[]);const[na,Ci]=(0,y.useReducer)(he,null),[ki,fo]=(0,y.useState)(!1),ro=()=>oo(void 0,null,function*(){fo(!0);let ga;kn.categoryId?ga=yield je(kn):ga=yield Oe(kn.id),fo(!1),ga.status===0&&Ci({type:"init",payload:ga})});(0,y.useEffect)(()=>{er?ro():Ci({type:"init",payload:{examination_bank:{difficulty:2}}})},[kn]);const[Ha,ma]=(0,y.useState)(""),Hr=(ga,hi)=>oo(void 0,null,function*(){var di,si,Dt,Jt;const rn=(di=na==null?void 0:na.item_types)==null?void 0:di.filter(zr=>{var qn;return((qn=zr==null?void 0:zr.item_type)==null?void 0:qn.toUpperCase())===(hi==null?void 0:hi.type)}),Nn={sort_by_item_type:na.sort_by_item_type,difficulty:na.examination_bank.difficulty,exam_notes:na.examination_bank.exam_notes,name:na.examination_bank.name,time:na.examination_bank.time,item_types:na.item_types};if(ga!==void 0&&!(ga!=null&&ga.single_question_id)){Nn.seleted_item_bank_ids=ga==null?void 0:ga.seleted_item_bank_ids,Nn.item_types=rn;const zr=yield Ct(Nn);if((zr==null?void 0:zr.status)===0){let qn=(0,Ie.cloneDeep)(Ai.data);qn.questionList=(si=qn==null?void 0:qn.questionList)==null?void 0:si.map(pr=>{var Fr;return pr.type===hi.type?Il(uo({},pr),{questions:((Fr=zr==null?void 0:zr.questions)==null?void 0:Fr.questions)||[]}):pr}),go({show:!0,data:qn})}return}if(ga!==void 0&&(ga!=null&&ga.single_question_id)){Nn.seleted_item_bank_ids=ga==null?void 0:ga.seleted_item_bank_ids,Nn.single_question_id=ga==null?void 0:ga.single_question_id,Nn.item_types=rn;const zr=yield Ct(Nn);if((zr==null?void 0:zr.status)===0){let qn=(0,Ie.cloneDeep)(Ai.data);qn.questionList=(Dt=qn==null?void 0:qn.questionList)==null?void 0:Dt.map(pr=>{var Fr,aa;if(pr.type===hi.type){const Wr=(0,Ie.cloneDeep)(pr==null?void 0:pr.questions);return Wr.splice(hi.index,1,(aa=(Fr=zr==null?void 0:zr.questions)==null?void 0:Fr.questions)==null?void 0:aa[0]),console.log(pr==null?void 0:pr.questions,Wr,hi.index,"new_questions"),Il(uo({},pr),{questions:Wr})}return pr}),go({show:!0,data:qn})}return}const Va=yield de(Nn);if((Va==null?void 0:Va.status)===0){const zr=(0,za.ad)(Va);let qn=[];(Jt=na==null?void 0:na.item_types)==null||Jt.forEach(pr=>{var Fr;const aa=(Fr=zr==null?void 0:zr.questionList)==null?void 0:Fr.find(Wr=>pr.item_type===Wr.type);qn.push(aa)}),console.log(na,"sortList"),qn=(0,Ie.compact)(qn),zr.questionList=qn,go({show:!0,data:zr}),ma(new Date)}}),_i=ga=>{var hi;let di=(0,Ie.cloneDeep)(Ai.data);di.questionList=(hi=di==null?void 0:di.questionList)==null?void 0:hi.map(si=>si.type===ga.type?Il(uo({},si),{questions_score:ga.scoreTotal}):si),Ci({type:"changeQuestionScore",payload:{score:ga.score,itemType:ga.type}}),go({show:!0,data:di})},Li=ga=>oo(void 0,null,function*(){const hi={sort_by_item_type:na.sort_by_item_type,difficulty:na.examination_bank.difficulty,exam_notes:na.examination_bank.exam_notes,name:na.examination_bank.name,time:na.examination_bank.time,item_types:na.item_types,course_discipline_id:na.examination_bank.course_discipline_id};if(ga){(yield Ye(uo(uo({},hi),ga))).status===0&&ce.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield qe(kn.id,hi)).status===0&&(ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),Ee.history.push("/paperlibrary?defaultActiveKey=0"))}),vo=(0,Ya.g)(),[_o]=_e.default.useForm(),[Ai,go]=(0,y.useState)({show:!1,data:{}}),xi=!!((hn=na==null?void 0:na.exercise)!=null&&hn.exercise_status)&&((vn=na==null?void 0:na.exercise)==null?void 0:vn.exercise_status)!==1;return Io.createElement(ht.Provider,{value:{data:na,disabled:xi,dispatch:Ci,setPreview:go,getData:ro,handlePreview:Hr}},Ai.show?Io.createElement(_l.Z,{key:Ha,data:Ai.data,onExchange:Hr,onTypeScore:_i,submit:Li,goBack:()=>go({show:!1,data:{}})}):Io.createElement("div",{className:ge.wrapper},Io.createElement("div",{className:"edu-container"},Io.createElement(Se.Z,{className:ge.breadCrumbWrapper,separator:">",items:kn!=null&&kn.categoryId?[{title:Io.createElement(Ee.Link,{to:`/classrooms/${kn.coursesId}/exercise`},(wr=(Tn=(0,$o.eY)())==null?void 0:Tn.course)==null?void 0:wr.course_name)},{title:Io.createElement(Ee.Link,{to:`/classrooms/${kn.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")},{title:"\u7F16\u8F91\u8BD5\u5377"}]:[{title:Io.createElement(Ee.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")},{title:"\u968F\u673A\u7EC4\u5377"}]}),Io.createElement(Ce.d4,{activeKey:Or,tabs:[{key:"baseInfo",label:"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F"},{key:"settings",label:"\u7EC4\u5377\u914D\u7F6E"}],onChange:ga=>oo(void 0,null,function*(){if(ga==="settings"&&(yield _o.validateFields(),!er)){const hi=yield Je(na);hi.status===0&&Ee.history.replace(`/randompaper/edit/${hi==null?void 0:hi.examination_bank_id}?type=settings`)}rr(ga)})}),Or==="baseInfo"&&Io.createElement(Fn,{courseOptions:vo,setCurrentKey:rr,loading:ki,form:_o}),Io.createElement("div",{style:{display:Or==="settings"?"block":"none"}},na&&Io.createElement(Ul,null)))))}},29671:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return fe}});var y=E(62957),ge={ul:"ul___TdfYY"},ce=E(32637),_e=E(59301),Se=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ke=(We,Te)=>{var dt={};for(var Ge in We)Ee.call(We,Ge)&&Te.indexOf(Ge)<0&&(dt[Ge]=We[Ge]);if(We!=null&&Se)for(var Ge of Se(We))Te.indexOf(Ge)<0&&Ce.call(We,Ge)&&(dt[Ge]=We[Ge]);return dt},fe=We=>{var Te=We,{open:dt,onCancel:Ge}=Te,Ne=ke(Te,["open","onCancel"]);return _e.createElement(y.default,{centered:!0,open:dt,title:_e.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ge,footer:null},_e.createElement("div",null,_e.createElement("div",{className:"tc"},_e.createElement("img",{className:"mt10",src:ce,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),_e.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),_e.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),_e.createElement("div",{style:{color:"#333"},className:"pt30 font14"},_e.createElement("ul",{className:ge.ul},_e.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"),_e.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"),_e.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")))))}},16561:function(Rn,qt,E){"use strict";E.d(qt,{g:function(){return Se}});var y=E(59301),ge=E(70926),ce=E(52362),_e=(Ee,Ce,ke)=>new Promise((De,fe)=>{var We=Ge=>{try{dt(ke.next(Ge))}catch(Ne){fe(Ne)}},Te=Ge=>{try{dt(ke.throw(Ge))}catch(Ne){fe(Ne)}},dt=Ge=>Ge.done?De(Ge.value):Promise.resolve(Ge.value).then(We,Te);dt((ke=ke.apply(Ee,Ce)).next())});const Se=()=>{const[Ee,Ce]=(0,y.useState)([]);return(0,y.useEffect)(()=>{_e(void 0,null,function*(){const De=yield(0,ge.d1)({source:"question"});De!=null&&De.disciplines&&Ce((0,ce.L)(De==null?void 0:De.disciplines))})},[]),Ee}},48027:function(Rn,qt,E){"use strict";E.d(qt,{U:function(){return De}});var y=E(59301),ge=Object.defineProperty,ce=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ee=(fe,We,Te)=>We in fe?ge(fe,We,{enumerable:!0,configurable:!0,writable:!0,value:Te}):fe[We]=Te,Ce=(fe,We)=>{for(var Te in We||(We={}))_e.call(We,Te)&&Ee(fe,Te,We[Te]);if(ce)for(var Te of ce(We))Se.call(We,Te)&&Ee(fe,Te,We[Te]);return fe},ke=(fe,We,Te)=>new Promise((dt,Ge)=>{var Ne=Fe=>{try{Pe(Te.next(Fe))}catch(et){Ge(et)}},we=Fe=>{try{Pe(Te.throw(Fe))}catch(et){Ge(et)}},Pe=Fe=>Fe.done?dt(Fe.value):Promise.resolve(Fe.value).then(Ne,we);Pe((Te=Te.apply(fe,We)).next())});function De(fe,We){const[Te,dt]=(0,y.useState)(We),[Ge,Ne]=(0,y.useState)(!1),[we,Pe]=(0,y.useState)();return[Te,Ge,(et,St=!1)=>ke(this,null,function*(){const Ae=St?We:Ce(Ce({},Te),et);Ne(!0),dt(Ae);const Oe=yield fe(Ae);return Ne(!1),Pe(Oe),Oe}),we,Pe]}},25386: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),ce=E(11690),_e=E.n(ce);let Se=1;function Ee(bt,st){const $e=bt.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[de]=xe;return de.length>=pe.length?Le.slice(pe.length):Le}).join(`
|
|
|
`)}let Ce=[],ke=["<ul>"];const De=new(ge()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function We(){Ce.length=0,ke=["<ul>"]}const Te={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function dt(bt,st,$e,pe){if(st>=bt.length||bt[st].level<=$e)return st;var Le=bt[st];pe.push("<li><a href='#"+Se+Le.anchor+"'>"+Le.text+"</a>"),st++;var xe=[];return st=dt(bt,st,Le.level,xe),xe.length>0&&(pe.push("<ul>"),xe.forEach(function(de){pe.push(de)}),pe.push("</ul>")),pe.push("</li>"),st=dt(bt,st,$e,pe),st}function Ge(){return dt(Ce,0,0,ke),ke.push("</ul>"),ke.join("")}const Ne={heading(bt){const st=fe.exec(bt);if(Se+=1,st)return{type:"heading",raw:st[0],depth:st[1].length,text:st[2]}},fences(bt){const st=this.rules.block.fences.exec(bt);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=Fe(),de=pe;pe=xe,et[xe]={type:"block",expression:de}}return{type:"code",raw:$e,lang:Le,text:pe}}}},we=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Pe=0;const Fe=()=>`__special_katext_id_${Pe++}__`;let et={};function St(){return et}function Ae(){Pe=0,et={}}function Oe(bt){return bt=bt.replace(we,(st,$e)=>{const pe=Fe();return et[pe]={type:"inline",expression:$e},pe}),bt}const qe=De.listitem;De.listitem=function(bt){return qe(Oe(bt))};const Je=De.paragraph;De.paragraph=function(bt){return Je(Oe(bt))};const ct=De.tablecell;De.tablecell=function(bt,st){return ct(Oe(bt),st)},De.code=function(bt,st,$e){const pe=(st||"").match(/\S*/)[0];return pe?["latex","katex","math"].indexOf(pe)>=0?`<p class='editormd-tex'>${bt}</p>`:`<pre class="prettyprint linenums"><code class="language-${st}">${$e?bt:(0,ce.escape)(bt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+($e?bt:(0,ce.escape)(bt,!0))+"</code></pre>"},De.heading=function(bt,st,$e){let pe=this.options.headerPrefix+$e.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ce.push({anchor:pe,level:st,text:bt}),"<h"+st+' id="'+Se+pe+'">'+bt+"</h"+st+">"},ge().setOptions({silent:!0,gfm:!0,pedantic:!1}),ge().use({tokenizer:Ne,renderer:De}),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 ce=ge<0||arguments.length<=ge?void 0:arguments[ge];ce&&Object.keys(ce).forEach(_e=>{const Se=ce[_e];Se!==void 0&&(y[_e]=Se)})}return y};qt.Z=E},86013:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(19248);const ce=_e=>{let Se;return typeof _e=="object"&&(_e!=null&&_e.clearIcon)?Se=_e:_e&&(Se={clearIcon:y.createElement(ge.Z,null)}),Se};qt.Z=ce},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(ce){return ce!=null&&ce===ce.window}const ge=ce=>{var _e,Se;if(typeof window=="undefined")return 0;let Ee=0;return y(ce)?Ee=ce.pageYOffset:ce instanceof Document?Ee=ce.documentElement.scrollTop:(ce instanceof HTMLElement||ce)&&(Ee=ce.scrollTop),ce&&!y(ce)&&typeof Ee!="number"&&(Ee=(Se=((_e=ce.ownerDocument)!==null&&_e!==void 0?_e:ce).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 _e}});var y=E(16089);function ge(Se,Ee,Ce,ke){const De=Ce-Ee;return Se/=ke/2,Se<1?De/2*Se*Se*Se+Ee:De/2*((Se-=2)*Se*Se+2)+Ee}var ce=E(97224);function _e(Se){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ce=()=>window,callback:ke,duration:De=450}=Ee,fe=Ce(),We=(0,ce.Z)(fe),Te=Date.now(),dt=()=>{const Ne=Date.now()-Te,we=ge(Ne>De?De:Ne,We,Se,De);(0,ce.F)(fe)?fe.scrollTo(window.pageXOffset,we):fe instanceof Document||fe.constructor.name==="HTMLDocument"?fe.documentElement.scrollTop=we:fe.scrollTop=we,Ne<De?(0,y.Z)(dt):typeof ke=="function"&&ke()};(0,y.Z)(dt)}},91882:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ye}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(11592),Se=E(26112),Ee=E(22703),Ce=E(48755),ke=E(84105),De=E(19563);const fe=je=>{let{children:it}=je;const{getPrefixCls:Ie}=y.useContext(Ce.E_),ye=Ie("breadcrumb");return y.createElement("li",{className:`${ye}-separator`,"aria-hidden":"true"},it===""?it:it||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var We=fe,Te=function(je,it){var Ie={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Ie[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])&&(Ie[ye[vt]]=je[ye[vt]]);return Ie};function dt(je,it){if(je.title===void 0||je.title===null)return null;const Ie=Object.keys(it).join("|");return typeof je.title=="object"?je.title:String(je.title).replace(new RegExp(`:(${Ie})`,"g"),(ye,vt)=>it[vt]||ye)}function Ge(je,it,Ie,ye){if(Ie==null)return null;const{className:vt,onClick:Ht}=it,Et=Te(it,["className","onClick"]),Be=Object.assign(Object.assign({},(0,Se.Z)(Et,{data:!0,aria:!0})),{onClick:Ht});return ye!==void 0?y.createElement("a",Object.assign({},Be,{className:ce()(`${je}-link`,vt),href:ye}),Ie):y.createElement("span",Object.assign({},Be,{className:ce()(`${je}-link`,vt)}),Ie)}function Ne(je,it){return(ye,vt,Ht,Et,Be)=>{if(it)return it(ye,vt,Ht,Et);const ft=dt(ye,vt);return Ge(je,ye,ft,Be)}}var we=function(je,it){var Ie={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Ie[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])&&(Ie[ye[vt]]=je[ye[vt]]);return Ie};const Pe=je=>{const{prefixCls:it,separator:Ie="/",children:ye,menu:vt,overlay:Ht,dropdownProps:Et,href:Be}=je,ot=(Xt=>{if(vt||Ht){const xt=Object.assign({},Et);if(vt){const wt=vt||{},{items:ht}=wt,un=we(wt,["items"]);xt.menu=Object.assign(Object.assign({},un),{items:ht==null?void 0:ht.map((zt,ue)=>{var{key:ae,title:re,label:se,path:he}=zt,ie=we(zt,["key","title","label","path"]);let me=se!=null?se:re;return he&&(me=y.createElement("a",{href:`${Be}${he}`},me)),Object.assign(Object.assign({},ie),{key:ae!=null?ae:ue,label:me})})})}else Ht&&(xt.overlay=Ht);return y.createElement(De.Z,Object.assign({placement:"bottom"},xt),y.createElement("span",{className:`${it}-overlay-link`},Xt,y.createElement(ke.Z,null)))}return Xt})(ye);return ot!=null?y.createElement(y.Fragment,null,y.createElement("li",null,ot),Ie&&y.createElement(We,null,Ie)):null},Fe=je=>{const{prefixCls:it,children:Ie,href:ye}=je,vt=we(je,["prefixCls","children","href"]),{getPrefixCls:Ht}=y.useContext(Ce.E_),Et=Ht("breadcrumb",it);return y.createElement(Pe,Object.assign({},vt,{prefixCls:Et}),Ge(Et,vt,Ie,ye))};Fe.__ANT_BREADCRUMB_ITEM=!0;var et=Fe,St=E(36237),Ae=E(63356),Oe=E(16931),qe=E(51636);const Je=je=>{const{componentCls:it,iconCls:Ie,calc:ye}=je;return{[it]:Object.assign(Object.assign({},(0,Ae.Wf)(je)),{color:je.itemColor,fontSize:je.fontSize,[Ie]:{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`]:{[`
|
|
|
> ${Ie} + span,
|
|
|
> ${Ie} + 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(),[`> ${Ie}`]:{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"}})}},ct=je=>({itemColor:je.colorTextDescription,lastItemColor:je.colorText,iconFontSize:je.fontSize,linkColor:je.colorTextDescription,linkHoverColor:je.colorText,separatorColor:je.colorTextDescription,separatorMargin:je.marginXS});var bt=(0,Oe.I$)("Breadcrumb",je=>{const it=(0,qe.mergeToken)(je,{});return Je(it)},ct),st=function(je,it){var Ie={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Ie[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])&&(Ie[ye[vt]]=je[ye[vt]]);return Ie};function $e(je){const{breadcrumbName:it,children:Ie}=je,ye=st(je,["breadcrumbName","children"]),vt=Object.assign({title:it},ye);return Ie&&(vt.menu={items:Ie.map(Ht=>{var{breadcrumbName:Et}=Ht,Be=st(Ht,["breadcrumbName"]);return Object.assign(Object.assign({},Be),{title:Et})})}),vt}function pe(je,it){return(0,y.useMemo)(()=>je||(it?it.map($e):null),[je,it])}var Le=function(je,it){var Ie={};for(var ye in je)Object.prototype.hasOwnProperty.call(je,ye)&&it.indexOf(ye)<0&&(Ie[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])&&(Ie[ye[vt]]=je[ye[vt]]);return Ie};const xe=(je,it)=>{if(it===void 0)return it;let Ie=(it||"").replace(/^\//,"");return Object.keys(je).forEach(ye=>{Ie=Ie.replace(`:${ye}`,je[ye])}),Ie},de=je=>{const{prefixCls:it,separator:Ie="/",style:ye,className:vt,rootClassName:Ht,routes:Et,items:Be,children:ft,itemRender:ot,params:Xt={}}=je,xt=Le(je,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wt,direction:ht,breadcrumb:un}=y.useContext(Ce.E_);let zt;const ue=wt("breadcrumb",it),[ae,re,se]=bt(ue),he=pe(Be,Et),ie=Ne(ue,ot);if(he&&he.length>0){const It=[],Xe=Be||Et;zt=he.map((Ke,yt)=>{const{path:Bt,key:_t,type:Qe,menu:tt,overlay:Vt,onClick:on,className:Fn,separator:gn,dropdownProps:Lt}=Ke,Qt=xe(Xt,Bt);Qt!==void 0&&It.push(Qt);const jt=_t!=null?_t:yt;if(Qe==="separator")return y.createElement(We,{key:jt},gn);const rt={},Nt=yt===he.length-1;tt?rt.menu=tt:Vt&&(rt.overlay=Vt);let{href:fn}=Ke;return It.length&&Qt!==void 0&&(fn=`#/${It.join("/")}`),y.createElement(Pe,Object.assign({key:jt},rt,(0,Se.Z)(Ke,{data:!0,aria:!0}),{className:Fn,dropdownProps:Lt,href:fn,separator:Nt?"":Ie,onClick:on,prefixCls:ue}),ie(Ke,Xt,Xe,It,fn))})}else if(ft){const It=(0,_e.Z)(ft).length;zt=(0,_e.Z)(ft).map((Xe,Ke)=>{if(!Xe)return Xe;const yt=Ke===It-1;return(0,Ee.Tm)(Xe,{separator:yt?"":Ie,key:Ke})})}const me=ce()(ue,un==null?void 0:un.className,{[`${ue}-rtl`]:ht==="rtl"},vt,Ht,re,se),He=Object.assign(Object.assign({},un==null?void 0:un.style),ye);return ae(y.createElement("nav",Object.assign({className:me,style:He},xt),y.createElement("ol",null,zt)))};de.Item=et,de.Separator=We;var Ct=de,Ye=Ct},79939:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return mr}});var y=E(77654),ge=E(59301),ce=E(92310),_e=E.n(ce),Se=E(60499),Ee=E(85899),Ce=E(72190),ke=E(42244),De=E(37463),fe=E(6551),We=E(6089),Te=E(18929),dt=ge.createContext({}),Ge=dt,Ne=E(43749),we=E(18642),Pe="__rc_cascader_search_mark__",Fe=function(Tt,Mt,Kt){var On=Kt.label,Kn=On===void 0?"":On;return Mt.some(function(Un){return String(Un[Kn]).toLowerCase().includes(Tt.toLowerCase())})},et=function(Tt,Mt,Kt,On){return Mt.map(function(Kn){return Kn[On.label]}).join(" / ")},St=function(Tt,Mt,Kt,On,Kn,Un){var Hn=Kn.filter,hr=Hn===void 0?Fe:Hn,Pr=Kn.render,Tr=Pr===void 0?et:Pr,Lr=Kn.limit,Cr=Lr===void 0?50:Lr,Rr=Kn.sort;return ge.useMemo(function(){var Xr=[];if(!Tt)return[];function oa(ta,xa){var Fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ta.forEach(function(Ur){if(!(!Rr&&Cr!==!1&&Cr>0&&Xr.length>=Cr)){var ya=[].concat((0,y.Z)(xa),[Ur]),Xa=Ur[Kt.children],Ia=Fa||Ur.disabled;if((!Xa||Xa.length===0||Un)&&hr(Tt,ya,{label:Kt.label})){var pa;Xr.push((0,Ee.Z)((0,Ee.Z)({},Ur),{},(pa={disabled:Ia},(0,we.Z)(pa,Kt.label,Tr(Tt,ya,On,Kt)),(0,we.Z)(pa,Pe,ya),(0,we.Z)(pa,Kt.children,void 0),pa)))}Xa&&oa(Ur[Kt.children],ya,Ia)}})}return oa(Mt,[]),Rr&&Xr.sort(function(ta,xa){return Rr(ta[Pe],xa[Pe],Tt,Kt)}),Cr!==!1&&Cr>0?Xr.slice(0,Cr):Xr},[Tt,Mt,Kt,On,Tr,Un,hr,Rr,Cr])},Ae=St,Oe="__RC_CASCADER_SPLIT__",qe="SHOW_PARENT",Je="SHOW_CHILD";function ct(At){return At.join(Oe)}function bt(At){return At.map(ct)}function st(At){return At.split(Oe)}function $e(At){var Tt=At||{},Mt=Tt.label,Kt=Tt.value,On=Tt.children,Kn=Kt||"value";return{label:Mt||"label",value:Kn,key:Kn,children:On||"children"}}function pe(At,Tt){var Mt,Kt;return(Mt=At.isLeaf)!==null&&Mt!==void 0?Mt:!((Kt=At[Tt.children])!==null&&Kt!==void 0&&Kt.length)}function Le(At){var Tt=At.parentElement;if(Tt){var Mt=At.offsetTop-Tt.offsetTop;Mt-Tt.scrollTop<0?Tt.scrollTo({top:Mt}):Mt+At.offsetHeight-Tt.scrollTop>Tt.offsetHeight&&Tt.scrollTo({top:Mt+At.offsetHeight-Tt.offsetHeight})}}function xe(At,Tt){return At.map(function(Mt){var Kt;return(Kt=Mt[Pe])===null||Kt===void 0?void 0:Kt.map(function(On){return On[Tt.value]})})}function de(At){return Array.isArray(At)&&Array.isArray(At[0])}function Ct(At){return At?de(At)?At:(At.length===0?[]:[At]).map(function(Tt){return Array.isArray(Tt)?Tt:[Tt]}):[]}function Ye(At,Tt,Mt){var Kt=new Set(At),On=Tt();return At.filter(function(Kn){var Un=On[Kn],Hn=Un?Un.parent:null,hr=Un?Un.children:null;return Un&&Un.node.disabled?!0:Mt===Je?!(hr&&hr.some(function(Pr){return Pr.key&&Kt.has(Pr.key)})):!(Hn&&!Hn.node.disabled&&Kt.has(Hn.key))})}function je(At,Tt,Mt){for(var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,On=Tt,Kn=[],Un=function(){var Pr,Tr,Lr,Cr=At[Hn],Rr=(Pr=On)===null||Pr===void 0?void 0:Pr.findIndex(function(oa){var ta=oa[Mt.value];return Kt?String(ta)===String(Cr):ta===Cr}),Xr=Rr!==-1?(Tr=On)===null||Tr===void 0?void 0:Tr[Rr]:null;Kn.push({value:(Lr=Xr==null?void 0:Xr[Mt.value])!==null&&Lr!==void 0?Lr:Cr,index:Rr,option:Xr}),On=Xr==null?void 0:Xr[Mt.children]},Hn=0;Hn<At.length;Hn+=1)Un();return Kn}var it=function(At,Tt,Mt,Kt,On){return ge.useMemo(function(){var Kn=On||function(Un){var Hn=Kt?Un.slice(-1):Un,hr=" / ";return Hn.every(function(Pr){return["string","number"].includes((0,Ne.Z)(Pr))})?Hn.join(hr):Hn.reduce(function(Pr,Tr,Lr){var Cr=ge.isValidElement(Tr)?ge.cloneElement(Tr,{key:Lr}):Tr;return Lr===0?[Cr]:[].concat((0,y.Z)(Pr),[hr,Cr])},[])};return At.map(function(Un){var Hn,hr=je(Un,Tt,Mt),Pr=Kn(hr.map(function(Lr){var Cr,Rr=Lr.option,Xr=Lr.value;return(Cr=Rr==null?void 0:Rr[Mt.label])!==null&&Cr!==void 0?Cr:Xr}),hr.map(function(Lr){var Cr=Lr.option;return Cr})),Tr=ct(Un);return{label:Pr,value:Tr,key:Tr,valueCells:Un,disabled:(Hn=hr[hr.length-1])===null||Hn===void 0||(Hn=Hn.option)===null||Hn===void 0?void 0:Hn.disabled}})},[At,Tt,Mt,On,Kt])};function Ie(At,Tt){return ge.useCallback(function(Mt){var Kt=[],On=[];return Mt.forEach(function(Kn){var Un=je(Kn,At,Tt);Un.every(function(Hn){return Hn.option})?On.push(Kn):Kt.push(Kn)}),[On,Kt]},[At,Tt])}var ye=E(34061),vt=function(At,Tt){var Mt=ge.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Kt=ge.useCallback(function(){return Mt.current.options!==At&&(Mt.current.options=At,Mt.current.info=(0,ye.I8)(At,{fieldNames:Tt,initWrapper:function(Kn){return(0,Ee.Z)((0,Ee.Z)({},Kn),{},{pathKeyEntities:{}})},processEntity:function(Kn,Un){var Hn=Kn.nodes.map(function(hr){return hr[Tt.value]}).join(Oe);Un.pathKeyEntities[Hn]=Kn,Kn.key=Hn}})),Mt.current.info.pathKeyEntities},[Tt,At]);return Kt};function Ht(At,Tt){var Mt=ge.useMemo(function(){return Tt||[]},[Tt]),Kt=vt(Mt,At),On=ge.useCallback(function(Kn){var Un=Kt();return Kn.map(function(Hn){var hr=Un[Hn].nodes;return hr.map(function(Pr){return Pr[At.value]})})},[Kt,At]);return[Mt,Kt,On]}var Et=E(48736);function Be(At){return ge.useMemo(function(){if(!At)return[!1,{}];var Tt={matchInputWidth:!0,limit:50};return At&&(0,Ne.Z)(At)==="object"&&(Tt=(0,Ee.Z)((0,Ee.Z)({},Tt),At)),Tt.limit<=0&&(Tt.limit=!1),[!0,Tt]},[At])}var ft=E(34643);function ot(At,Tt,Mt,Kt,On,Kn,Un,Hn){return function(hr){if(!At)Tt(hr);else{var Pr=ct(hr),Tr=bt(Mt),Lr=bt(Kt),Cr=Tr.includes(Pr),Rr=On.some(function(Ia){return ct(Ia)===Pr}),Xr=Mt,oa=On;if(Rr&&!Cr)oa=On.filter(function(Ia){return ct(Ia)!==Pr});else{var ta=Cr?Tr.filter(function(Ia){return Ia!==Pr}):[].concat((0,y.Z)(Tr),[Pr]),xa=Kn(),Fa;if(Cr){var Ur=(0,ft.S)(ta,{checked:!1,halfCheckedKeys:Lr},xa);Fa=Ur.checkedKeys}else{var ya=(0,ft.S)(ta,!0,xa);Fa=ya.checkedKeys}var Xa=Ye(Fa,Kn,Hn);Xr=Un(Xa)}Tt([].concat((0,y.Z)(oa),(0,y.Z)(Xr)))}}}function Xt(At,Tt,Mt,Kt,On){return ge.useMemo(function(){var Kn=On(Tt),Un=(0,Ce.Z)(Kn,2),Hn=Un[0],hr=Un[1];if(!At||!Tt.length)return[Hn,[],hr];var Pr=bt(Hn),Tr=Mt(),Lr=(0,ft.S)(Pr,!0,Tr),Cr=Lr.checkedKeys,Rr=Lr.halfCheckedKeys;return[Kt(Cr),Kt(Rr),hr]},[At,Tt,Mt,Kt,On])}var xt=ge.memo(function(At){var Tt=At.children;return Tt},function(At,Tt){return!Tt.open}),wt=xt;function ht(At){var Tt,Mt=At.prefixCls,Kt=At.checked,On=At.halfChecked,Kn=At.disabled,Un=At.onClick,Hn=At.disableCheckbox,hr=ge.useContext(Ge),Pr=hr.checkable,Tr=typeof Pr!="boolean"?Pr:null;return ge.createElement("span",{className:_e()("".concat(Mt),(Tt={},(0,we.Z)(Tt,"".concat(Mt,"-checked"),Kt),(0,we.Z)(Tt,"".concat(Mt,"-indeterminate"),!Kt&&On),(0,we.Z)(Tt,"".concat(Mt,"-disabled"),Kn||Hn),Tt)),onClick:Un},Tr)}var un="__cascader_fix_label__";function zt(At){var Tt=At.prefixCls,Mt=At.multiple,Kt=At.options,On=At.activeValue,Kn=At.prevValuePath,Un=At.onToggleOpen,Hn=At.onSelect,hr=At.onActive,Pr=At.checkedSet,Tr=At.halfCheckedSet,Lr=At.loadingKeys,Cr=At.isSelectable,Rr=At.disabled,Xr="".concat(Tt,"-menu"),oa="".concat(Tt,"-menu-item"),ta=ge.useContext(Ge),xa=ta.fieldNames,Fa=ta.changeOnSelect,Ur=ta.expandTrigger,ya=ta.expandIcon,Xa=ta.loadingIcon,Ia=ta.dropdownMenuColumnStyle,pa=ta.optionRender,kr=Ur==="hover",Za=function(Kr){return Rr||Kr},Sa=ge.useMemo(function(){return Kt.map(function(la){var Kr,Ya=la.disabled,Mi=la.disableCheckbox,ji=la[Pe],za=(Kr=la[un])!==null&&Kr!==void 0?Kr:la[xa.label],Di=la[xa.value],mi=pe(la,xa),Wi=ji?ji.map(function(xr){return xr[xa.value]}):[].concat((0,y.Z)(Kn),[Di]),Ei=ct(Wi),ei=Lr.includes(Ei),Ar=Pr.has(Ei),Jn=Tr.has(Ei);return{disabled:Ya,label:za,value:Di,isLeaf:mi,isLoading:ei,checked:Ar,halfChecked:Jn,option:la,disableCheckbox:Mi,fullPath:Wi,fullPathKey:Ei}})},[Kt,Pr,xa,Tr,Lr,Kn]);return ge.createElement("ul",{className:Xr,role:"menu"},Sa.map(function(la){var Kr,Ya=la.disabled,Mi=la.label,ji=la.value,za=la.isLeaf,Di=la.isLoading,mi=la.checked,Wi=la.halfChecked,Ei=la.option,ei=la.fullPath,Ar=la.fullPathKey,Jn=la.disableCheckbox,xr=function(){if(!Za(Ya)){var sa=(0,y.Z)(ei);kr&&za&&sa.pop(),hr(sa)}},Sr=function(){Cr(Ei)&&!Za(Ya)&&Hn(ei,za)},tr;return typeof Ei.title=="string"?tr=Ei.title:typeof Mi=="string"&&(tr=Mi),ge.createElement("li",{key:Ar,className:_e()(oa,(Kr={},(0,we.Z)(Kr,"".concat(oa,"-expand"),!za),(0,we.Z)(Kr,"".concat(oa,"-active"),On===ji||On===Ar),(0,we.Z)(Kr,"".concat(oa,"-disabled"),Za(Ya)),(0,we.Z)(Kr,"".concat(oa,"-loading"),Di),Kr)),style:Ia,role:"menuitemcheckbox",title:tr,"aria-checked":mi,"data-path-key":Ar,onClick:function(){xr(),!Jn&&(!Mt||za)&&Sr()},onDoubleClick:function(){Fa&&Un(!1)},onMouseEnter:function(){kr&&xr()},onMouseDown:function(sa){sa.preventDefault()}},Mt&&ge.createElement(ht,{prefixCls:"".concat(Tt,"-checkbox"),checked:mi,halfChecked:Wi,disabled:Za(Ya)||Jn,disableCheckbox:Jn,onClick:function(sa){Jn||(sa.stopPropagation(),Sr())}}),ge.createElement("div",{className:"".concat(oa,"-content")},pa?pa(Ei):Mi),!Di&&ya&&!za&&ge.createElement("div",{className:"".concat(oa,"-expand-icon")},ya),Di&&Xa&&ge.createElement("div",{className:"".concat(oa,"-loading-icon")},Xa))}))}var ue=function(Tt,Mt){var Kt=ge.useContext(Ge),On=Kt.values,Kn=On[0],Un=ge.useState([]),Hn=(0,Ce.Z)(Un,2),hr=Hn[0],Pr=Hn[1];return ge.useEffect(function(){Tt||Pr(Kn||[])},[Mt,Kn]),[hr,Pr]},ae=ue,re=E(10228),se=function(At,Tt,Mt,Kt,On,Kn,Un){var Hn=Un.direction,hr=Un.searchValue,Pr=Un.toggleOpen,Tr=Un.open,Lr=Hn==="rtl",Cr=ge.useMemo(function(){for(var Ia=-1,pa=Tt,kr=[],Za=[],Sa=Kt.length,la=xe(Tt,Mt),Kr=function(Di){var mi=pa.findIndex(function(Wi,Ei){return(la[Ei]?ct(la[Ei]):Wi[Mt.value])===Kt[Di]});if(mi===-1)return 1;Ia=mi,kr.push(Ia),Za.push(Kt[Di]),pa=pa[Ia][Mt.children]},Ya=0;Ya<Sa&&pa&&!Kr(Ya);Ya+=1);for(var Mi=Tt,ji=0;ji<kr.length-1;ji+=1)Mi=Mi[kr[ji]][Mt.children];return[Za,Ia,Mi,la]},[Kt,Mt,Tt]),Rr=(0,Ce.Z)(Cr,4),Xr=Rr[0],oa=Rr[1],ta=Rr[2],xa=Rr[3],Fa=function(pa){On(pa)},Ur=function(pa){var kr=ta.length,Za=oa;Za===-1&&pa<0&&(Za=kr);for(var Sa=0;Sa<kr;Sa+=1){Za=(Za+pa+kr)%kr;var la=ta[Za];if(la&&!la.disabled){var Kr=Xr.slice(0,-1).concat(xa[Za]?ct(xa[Za]):la[Mt.value]);Fa(Kr);return}}},ya=function(){if(Xr.length>1){var pa=Xr.slice(0,-1);Fa(pa)}else Pr(!1)},Xa=function(){var pa,kr=((pa=ta[oa])===null||pa===void 0?void 0:pa[Mt.children])||[],Za=kr.find(function(la){return!la.disabled});if(Za){var Sa=[].concat((0,y.Z)(Xr),[Za[Mt.value]]);Fa(Sa)}};ge.useImperativeHandle(At,function(){return{onKeyDown:function(pa){var kr=pa.which;switch(kr){case re.Z.UP:case re.Z.DOWN:{var Za=0;kr===re.Z.UP?Za=-1:kr===re.Z.DOWN&&(Za=1),Za!==0&&Ur(Za);break}case re.Z.LEFT:{if(hr)break;Lr?Xa():ya();break}case re.Z.RIGHT:{if(hr)break;Lr?ya():Xa();break}case re.Z.BACKSPACE:{hr||ya();break}case re.Z.ENTER:{if(Xr.length){var Sa=ta[oa],la=(Sa==null?void 0:Sa[Pe])||[];la.length?Kn(la.map(function(Kr){return Kr[Mt.value]}),la[la.length-1]):Kn(Xr,ta[oa])}break}case re.Z.ESC:Pr(!1),Tr&&pa.stopPropagation()}},onKeyUp:function(){}}})},he=ge.forwardRef(function(At,Tt){var Mt,Kt,On,Kn=At.prefixCls,Un=At.multiple,Hn=At.searchValue,hr=At.toggleOpen,Pr=At.notFoundContent,Tr=At.direction,Lr=At.open,Cr=At.disabled,Rr=ge.useRef(null),Xr=Tr==="rtl",oa=ge.useContext(Ge),ta=oa.options,xa=oa.values,Fa=oa.halfValues,Ur=oa.fieldNames,ya=oa.changeOnSelect,Xa=oa.onSelect,Ia=oa.searchOptions,pa=oa.dropdownPrefixCls,kr=oa.loadData,Za=oa.expandTrigger,Sa=pa||Kn,la=ge.useState([]),Kr=(0,Ce.Z)(la,2),Ya=Kr[0],Mi=Kr[1],ji=function($a){if(!(!kr||Hn)){var ea=je($a,ta,Ur),ai=ea.map(function(Ui){var Ji=Ui.option;return Ji}),gi=ai[ai.length-1];if(gi&&!pe(gi,Ur)){var zi=ct($a);Mi(function(Ui){return[].concat((0,y.Z)(Ui),[zi])}),kr(ai)}}};ge.useEffect(function(){Ya.length&&Ya.forEach(function(Na){var $a=st(Na),ea=je($a,ta,Ur,!0).map(function(gi){var zi=gi.option;return zi}),ai=ea[ea.length-1];(!ai||ai[Ur.children]||pe(ai,Ur))&&Mi(function(gi){return gi.filter(function(zi){return zi!==Na})})})},[ta,Ya,Ur]);var za=ge.useMemo(function(){return new Set(bt(xa))},[xa]),Di=ge.useMemo(function(){return new Set(bt(Fa))},[Fa]),mi=ae(Un,Lr),Wi=(0,Ce.Z)(mi,2),Ei=Wi[0],ei=Wi[1],Ar=function($a){ei($a),ji($a)},Jn=function($a){if(Cr)return!1;var ea=$a.disabled,ai=pe($a,Ur);return!ea&&(ai||ya||Un)},xr=function($a,ea){var ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Xa($a),!Un&&(ea||ya&&(Za==="hover"||ai))&&hr(!1)},Sr=ge.useMemo(function(){return Hn?Ia:ta},[Hn,Ia,ta]),tr=ge.useMemo(function(){for(var Na=[{options:Sr}],$a=Sr,ea=xe($a,Ur),ai=function(){var Ui=Ei[gi],Ji=$a.find(function(co,No){return(ea[No]?ct(ea[No]):co[Ur.value])===Ui}),Yi=Ji==null?void 0:Ji[Ur.children];if(!(Yi!=null&&Yi.length))return 1;$a=Yi,Na.push({options:Yi})},gi=0;gi<Ei.length&&!ai();gi+=1);return Na},[Sr,Ei,Ur]),$r=function($a,ea){Jn(ea)&&xr($a,pe(ea,Ur),!0)};se(Tt,Sr,Ur,Ei,Ar,$r,{direction:Tr,searchValue:Hn,toggleOpen:hr,open:Lr}),ge.useEffect(function(){if(!Hn)for(var Na=0;Na<Ei.length;Na+=1){var $a,ea=Ei.slice(0,Na+1),ai=ct(ea),gi=($a=Rr.current)===null||$a===void 0?void 0:$a.querySelector('li[data-path-key="'.concat(ai.replace(/\\{0,2}"/g,'\\"'),'"]'));gi&&Le(gi)}},[Ei,Hn]);var sa=!((Mt=tr[0])!==null&&Mt!==void 0&&(Mt=Mt.options)!==null&&Mt!==void 0&&Mt.length),Er=[(Kt={},(0,we.Z)(Kt,Ur.value,"__EMPTY__"),(0,we.Z)(Kt,un,Pr),(0,we.Z)(Kt,"disabled",!0),Kt)],Dr=(0,Ee.Z)((0,Ee.Z)({},At),{},{multiple:!sa&&Un,onSelect:xr,onActive:Ar,onToggleOpen:hr,checkedSet:za,halfCheckedSet:Di,loadingKeys:Ya,isSelectable:Jn}),jr=sa?[{options:Er}]:tr,Qr=jr.map(function(Na,$a){var ea=Ei.slice(0,$a),ai=Ei[$a];return ge.createElement(zt,(0,Se.Z)({key:$a},Dr,{prefixCls:Sa,options:Na.options,prevValuePath:ea,activeValue:ai}))});return ge.createElement(wt,{open:Lr},ge.createElement("div",{className:_e()("".concat(Sa,"-menus"),(On={},(0,we.Z)(On,"".concat(Sa,"-menu-empty"),sa),(0,we.Z)(On,"".concat(Sa,"-rtl"),Xr),On)),ref:Rr},Qr))}),ie=he,me=ge.forwardRef(function(At,Tt){var Mt=(0,De.lk)();return ge.createElement(ie,(0,Se.Z)({},At,Mt,{ref:Tt}))}),He=me,It=E(70425);function Xe(){}function Ke(At){var Tt,Mt=At,Kt=Mt.prefixCls,On=Kt===void 0?"rc-cascader":Kt,Kn=Mt.style,Un=Mt.className,Hn=Mt.options,hr=Mt.checkable,Pr=Mt.defaultValue,Tr=Mt.value,Lr=Mt.fieldNames,Cr=Mt.changeOnSelect,Rr=Mt.onChange,Xr=Mt.showCheckedStrategy,oa=Mt.loadData,ta=Mt.expandTrigger,xa=Mt.expandIcon,Fa=xa===void 0?">":xa,Ur=Mt.loadingIcon,ya=Mt.direction,Xa=Mt.notFoundContent,Ia=Xa===void 0?"Not Found":Xa,pa=Mt.disabled,kr=!!hr,Za=(0,It.C8)(Pr,{value:Tr,postState:Ct}),Sa=(0,Ce.Z)(Za,2),la=Sa[0],Kr=Sa[1],Ya=ge.useMemo(function(){return $e(Lr)},[JSON.stringify(Lr)]),Mi=Ht(Ya,Hn),ji=(0,Ce.Z)(Mi,3),za=ji[0],Di=ji[1],mi=ji[2],Wi=Ie(za,Ya),Ei=Xt(kr,la,Di,mi,Wi),ei=(0,Ce.Z)(Ei,3),Ar=ei[0],Jn=ei[1],xr=ei[2],Sr=(0,It.zX)(function(jr){if(Kr(jr),Rr){var Qr=Ct(jr),Na=Qr.map(function(ai){return je(ai,za,Ya).map(function(gi){return gi.option})}),$a=kr?Qr:Qr[0],ea=kr?Na:Na[0];Rr($a,ea)}}),tr=ot(kr,Sr,Ar,Jn,xr,Di,mi,Xr),$r=(0,It.zX)(function(jr){tr(jr)}),sa=ge.useMemo(function(){return{options:za,fieldNames:Ya,values:Ar,halfValues:Jn,changeOnSelect:Cr,onSelect:$r,checkable:hr,searchOptions:[],dropdownPrefixCls:void 0,loadData:oa,expandTrigger:ta,expandIcon:Fa,loadingIcon:Ur,dropdownMenuColumnStyle:void 0}},[za,Ya,Ar,Jn,Cr,$r,hr,oa,ta,Fa,Ur]),Er="".concat(On,"-panel"),Dr=!za.length;return ge.createElement(Ge.Provider,{value:sa},ge.createElement("div",{className:_e()(Er,(Tt={},(0,we.Z)(Tt,"".concat(Er,"-rtl"),ya==="rtl"),(0,we.Z)(Tt,"".concat(Er,"-empty"),Dr),Tt),Un),style:Kn},Dr?Ia:ge.createElement(ie,{prefixCls:On,searchValue:"",multiple:kr,toggleOpen:Xe,open:!0,direction:ya,disabled:pa})))}function yt(At){var Tt=At.onPopupVisibleChange,Mt=At.popupVisible,Kt=At.popupClassName,On=At.popupPlacement;warning(!Tt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Mt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Kt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(On===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Bt(At,Tt){if(At){var Mt=function Kt(On){for(var Kn=0;Kn<On.length;Kn++){var Un=On[Kn];if(Un[Tt==null?void 0:Tt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Un[Tt==null?void 0:Tt.children])&&Kt(Un[Tt==null?void 0:Tt.children]))return!0}};Mt(At)}}var _t=null,Qe=["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,Tt){var Mt=At.id,Kt=At.prefixCls,On=Kt===void 0?"rc-cascader":Kt,Kn=At.fieldNames,Un=At.defaultValue,Hn=At.value,hr=At.changeOnSelect,Pr=At.onChange,Tr=At.displayRender,Lr=At.checkable,Cr=At.autoClearSearchValue,Rr=Cr===void 0?!0:Cr,Xr=At.searchValue,oa=At.onSearch,ta=At.showSearch,xa=At.expandTrigger,Fa=At.options,Ur=At.dropdownPrefixCls,ya=At.loadData,Xa=At.popupVisible,Ia=At.open,pa=At.popupClassName,kr=At.dropdownClassName,Za=At.dropdownMenuColumnStyle,Sa=At.dropdownStyle,la=At.popupPlacement,Kr=At.placement,Ya=At.onDropdownVisibleChange,Mi=At.onPopupVisibleChange,ji=At.expandIcon,za=ji===void 0?">":ji,Di=At.loadingIcon,mi=At.children,Wi=At.dropdownMatchSelectWidth,Ei=Wi===void 0?!1:Wi,ei=At.showCheckedStrategy,Ar=ei===void 0?qe:ei,Jn=At.optionRender,xr=(0,ke.Z)(At,Qe),Sr=(0,fe.ZP)(Mt),tr=!!Lr,$r=(0,Te.Z)(Un,{value:Hn,postState:Ct}),sa=(0,Ce.Z)($r,2),Er=sa[0],Dr=sa[1],jr=ge.useMemo(function(){return $e(Kn)},[JSON.stringify(Kn)]),Qr=Ht(jr,Fa),Na=(0,Ce.Z)(Qr,3),$a=Na[0],ea=Na[1],ai=Na[2],gi=(0,Te.Z)("",{value:Xr,postState:function(Hi){return Hi||""}}),zi=(0,Ce.Z)(gi,2),Ui=zi[0],Ji=zi[1],Yi=function(Hi,uo){Ji(Hi),uo.source!=="blur"&&oa&&oa(Hi)},co=Be(ta),No=(0,Ce.Z)(co,2),$o=No[0],Wo=No[1],Ba=Ae(Ui,$a,jr,Ur||On,Wo,hr||tr),Ii=Ie($a,jr),ri=Xt(tr,Er,ea,ai,Ii),So=(0,Ce.Z)(ri,3),ci=So[0],il=So[1],$l=So[2],Ol=ge.useMemo(function(){var pi=bt(ci),Hi=Ye(pi,ea,Ar);return[].concat((0,y.Z)($l),(0,y.Z)(ai(Hi)))},[ci,ea,ai,$l,Ar]),Vo=it(Ol,$a,jr,tr,Tr),Yo=(0,We.Z)(function(pi){if(Dr(pi),Pr){var Hi=Ct(pi),uo=Hi.map(function(Qo){return je(Qo,$a,jr).map(function(Jo){return Jo.option})}),Il=tr?Hi:Hi[0],oo=tr?uo:uo[0];Pr(Il,oo)}}),no=ot(tr,Yo,ci,il,$l,ea,ai,Ar),Nl=(0,We.Z)(function(pi){(!tr||Rr)&&Ji(""),no(pi)}),Ul=function(Hi,uo){if(uo.type==="clear"){Yo([]);return}var Il=uo.values[0],oo=Il.valueCells;Nl(oo)},_l=Ia!==void 0?Ia:Xa,Io=kr||pa,es=Kr||la,as=function(Hi){Ya==null||Ya(Hi),Mi==null||Mi(Hi)},Ni=ge.useMemo(function(){return{options:$a,fieldNames:jr,values:ci,halfValues:il,changeOnSelect:hr,onSelect:Nl,checkable:Lr,searchOptions:Ba,dropdownPrefixCls:Ur,loadData:ya,expandTrigger:xa,expandIcon:za,loadingIcon:Di,dropdownMenuColumnStyle:Za,optionRender:Jn}},[$a,jr,ci,il,hr,Nl,Lr,Ba,Ur,ya,xa,za,Di,Za,Jn]),Qi=!(Ui?Ba:$a).length,Pi=Ui&&Wo.matchInputWidth||Qi?{}:{minWidth:"auto"};return ge.createElement(Ge.Provider,{value:Ni},ge.createElement(De.Ac,(0,Se.Z)({},xr,{ref:Tt,id:Sr,prefixCls:On,autoClearSearchValue:Rr,dropdownMatchSelectWidth:Ei,dropdownStyle:(0,Ee.Z)((0,Ee.Z)({},Pi),Sa),displayValues:Vo,onDisplayValuesChange:Ul,mode:tr?"multiple":void 0,searchValue:Ui,onSearch:Yi,showSearch:$o,OptionList:He,emptyOptions:Qi,open:_l,dropdownClassName:Io,placement:es,onDropdownVisibleChange:as,getRawInputElement:function(){return mi}})))});tt.SHOW_PARENT=qe,tt.SHOW_CHILD=Je,tt.Panel=Ke;var Vt=tt,on=Vt,Fn=E(2738),gn=E(75030),Lt=E(86641),Qt=E(45915),jt=E(82855),rt=E(48755),Nt=E(38406),fn=E(2171),yn=E(83397),lt=E(31756),Rt=E(56553),en=E(24971),Pt=E(1722),Yt=E(90376),Gt=E(68525),Sn=E(90005),jn=E(70045);function Dn(At,Tt){const{getPrefixCls:Mt,direction:Kt,renderEmpty:On}=ge.useContext(rt.E_),Kn=Tt||Kt,Un=Mt("select",At),Hn=Mt("cascader",At);return[Un,Hn,Kn,On]}var Zn=Dn;function Ot(At,Tt){return ge.useMemo(()=>Tt?ge.createElement("span",{className:`${At}-checkbox-inner`}):!1,[Tt])}var Wt=E(33853),ln=E(58617),bn=E(38819),wn=(At,Tt,Mt)=>{let Kt=Mt;Mt||(Kt=Tt?ge.createElement(Wt.Z,null):ge.createElement(bn.Z,null));const On=ge.createElement("span",{className:`${At}-menu-item-loading-icon`},ge.createElement(ln.Z,{spin:!0}));return ge.useMemo(()=>[Kt,On],[Kt])},Cn=E(56119),Pn=E(16931),vr=E(36237),Qn=E(36170),dr=E(63356),yr=At=>{const{prefixCls:Tt,componentCls:Mt}=At,Kt=`${Mt}-menu-item`,On=`
|
|
|
&${Kt}-expand ${Kt}-expand-icon,
|
|
|
${Kt}-loading-icon
|
|
|
`;return[(0,Qn.C2)(`${Tt}-checkbox`,At),{[Mt]:{"&-checkbox":{top:0,marginInlineEnd:At.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Mt}-menu-empty`]:{[`${Mt}-menu`]:{width:"100%",height:"auto",[Kt]:{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,vr.unit)(At.lineWidth)} ${At.lineType} ${At.colorSplit}`},"&-item":Object.assign(Object.assign({},dr.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"},[On]:{color:At.colorTextDisabled}},[`&-active:not(${Kt}-disabled)`]:{"&, &:hover":{color:At.optionSelectedColor,fontWeight:At.optionSelectedFontWeight,backgroundColor:At.optionSelectedBg}},"&-content":{flex:"auto"},[On]:{marginInlineStart:At.paddingXXS,color:At.colorTextDescription,fontSize:At.fontSizeIcon},"&-keyword":{color:At.colorHighlight}})}}}]};const Vr=At=>{const{componentCls:Tt,antCls:Mt}=At;return[{[Tt]:{width:At.controlWidth}},{[`${Tt}-dropdown`]:[{[`&${Mt}-select-dropdown`]:{padding:0}},yr(At)]},{[`${Tt}-dropdown-rtl`]:{direction:"rtl"}},(0,Cn.c)(At)]},Zr=At=>{const Tt=Math.round((At.controlHeight-At.fontSize*At.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:At.controlItemBgActive,optionSelectedFontWeight:At.fontWeightStrong,optionPadding:`${Tt}px ${At.paddingSM}px`,menuPadding:At.paddingXXS,optionSelectedColor:At.colorText}};var An=(0,Pn.I$)("Cascader",At=>[Vr(At)],Zr);const $n=At=>{const{componentCls:Tt}=At;return{[`${Tt}-panel`]:[yr(At),{display:"inline-flex",border:`${(0,vr.unit)(At.lineWidth)} ${At.lineType} ${At.colorSplit}`,borderRadius:At.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Tt}-menus`]:{alignItems:"stretch"},[`${Tt}-menu`]:{height:"auto"},"&-empty":{padding:At.paddingXXS}}]}};var fr=(0,Pn.A1)(["Cascader","Panel"],At=>$n(At),Zr);function ur(At){const{prefixCls:Tt,className:Mt,multiple:Kt,rootClassName:On,notFoundContent:Kn,direction:Un,expandIcon:Hn,disabled:hr}=At,Pr=ge.useContext(fn.Z),Tr=hr!=null?hr:Pr,[Lr,Cr,Rr,Xr]=Zn(Tt,Un),oa=(0,yn.Z)(Cr),[ta,xa,Fa]=An(Cr,oa);fr(Cr);const Ur=Rr==="rtl",[ya,Xa]=wn(Lr,Ur,Hn),Ia=Kn||(Xr==null?void 0:Xr("Cascader"))||ge.createElement(Nt.Z,{componentName:"Cascader"}),pa=Ot(Cr,Kt);return ta(ge.createElement(Ke,Object.assign({},At,{checkable:pa,prefixCls:Cr,className:_e()(Mt,xa,On,Fa,oa),notFoundContent:Ia,direction:Rr,expandIcon:ya,loadingIcon:Xa,disabled:Tr})))}var kt=ur,Ut=function(At,Tt){var Mt={};for(var Kt in At)Object.prototype.hasOwnProperty.call(At,Kt)&&Tt.indexOf(Kt)<0&&(Mt[Kt]=At[Kt]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var On=0,Kt=Object.getOwnPropertySymbols(At);On<Kt.length;On++)Tt.indexOf(Kt[On])<0&&Object.prototype.propertyIsEnumerable.call(At,Kt[On])&&(Mt[Kt[On]]=At[Kt[On]]);return Mt};const{SHOW_CHILD:pt,SHOW_PARENT:Zt}=on;function at(At,Tt,Mt){const Kt=At.toLowerCase().split(Tt).reduce((Un,Hn,hr)=>hr===0?[Hn]:[].concat((0,y.Z)(Un),[Tt,Hn]),[]),On=[];let Kn=0;return Kt.forEach((Un,Hn)=>{const hr=Kn+Un.length;let Pr=At.slice(Kn,hr);Kn=hr,Hn%2===1&&(Pr=ge.createElement("span",{className:`${Mt}-menu-item-keyword`,key:`separator-${Hn}`},Pr)),On.push(Pr)}),On}const gt=(At,Tt,Mt,Kt)=>{const On=[],Kn=At.toLowerCase();return Tt.forEach((Un,Hn)=>{Hn!==0&&On.push(" / ");let hr=Un[Kt.label];const Pr=typeof hr;(Pr==="string"||Pr==="number")&&(hr=at(String(hr),Kn,Mt)),On.push(hr)}),On},cn=ge.forwardRef((At,Tt)=>{var Mt;const{prefixCls:Kt,size:On,disabled:Kn,className:Un,rootClassName:Hn,multiple:hr,bordered:Pr=!0,transitionName:Tr,choiceTransitionName:Lr="",popupClassName:Cr,dropdownClassName:Rr,expandIcon:Xr,placement:oa,showSearch:ta,allowClear:xa=!0,notFoundContent:Fa,direction:Ur,getPopupContainer:ya,status:Xa,showArrow:Ia,builtinPlacements:pa,style:kr,variant:Za}=At,Sa=Ut(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,Fn.Z)(Sa,["suffixIcon"]),{getPrefixCls:Kr,getPopupContainer:Ya,className:Mi,style:ji}=(0,rt.dj)("cascader"),{popupOverflow:za}=ge.useContext(rt.E_),{status:Di,hasFeedback:mi,isFormItemInput:Wi,feedbackIcon:Ei}=ge.useContext(Rt.aM),ei=(0,jt.F)(Di,Xa),[Ar,Jn,xr,Sr]=Zn(Kt,Ur),tr=xr==="rtl",$r=Kr(),sa=(0,yn.Z)(Ar),[Er,Dr,jr]=(0,Yt.Z)(Ar,sa),Qr=(0,yn.Z)(Jn),[Na]=An(Jn,Qr),{compactSize:$a,compactItemClassnames:ea}=(0,jn.ri)(Ar,Ur),[ai,gi]=(0,en.Z)("cascader",Za,Pr),zi=Fa||(Sr==null?void 0:Sr("Cascader"))||ge.createElement(Nt.Z,{componentName:"Cascader"}),Ui=_e()(Cr||Rr,`${Jn}-dropdown`,{[`${Jn}-dropdown-rtl`]:xr==="rtl"},Hn,sa,Qr,Dr,jr),Ji=ge.useMemo(()=>{if(!ta)return ta;let Yo={render:gt};return typeof ta=="object"&&(Yo=Object.assign(Object.assign({},Yo),ta)),Yo},[ta]),Yi=(0,lt.Z)(Yo=>{var no;return(no=On!=null?On:$a)!==null&&no!==void 0?no:Yo}),co=ge.useContext(fn.Z),No=Kn!=null?Kn:co,[$o,Wo]=wn(Ar,tr,Xr),Ba=Ot(Jn,hr),Ii=(0,Sn.Z)(At.suffixIcon,Ia),{suffixIcon:ri,removeIcon:So,clearIcon:ci}=(0,Gt.Z)(Object.assign(Object.assign({},At),{hasFeedback:mi,feedbackIcon:Ei,showSuffixIcon:Ii,multiple:hr,prefixCls:Ar,componentName:"Cascader"})),il=ge.useMemo(()=>oa!==void 0?oa:tr?"bottomRight":"bottomLeft",[oa,tr]),$l=xa===!0?{clearIcon:ci}:xa,[Ol]=(0,gn.Cn)("SelectLike",(Mt=la.dropdownStyle)===null||Mt===void 0?void 0:Mt.zIndex),Vo=ge.createElement(on,Object.assign({prefixCls:Ar,className:_e()(!Kt&&Jn,{[`${Ar}-lg`]:Yi==="large",[`${Ar}-sm`]:Yi==="small",[`${Ar}-rtl`]:tr,[`${Ar}-${ai}`]:gi,[`${Ar}-in-form-item`]:Wi},(0,jt.Z)(Ar,ei,mi),ea,Mi,Un,Hn,sa,Qr,Dr,jr),disabled:No,style:Object.assign(Object.assign({},ji),kr)},la,{builtinPlacements:(0,Pt.Z)(pa,za),direction:xr,placement:il,notFoundContent:zi,allowClear:$l,showSearch:Ji,expandIcon:$o,suffixIcon:ri,removeIcon:So,loadingIcon:Wo,checkable:Ba,dropdownClassName:Ui,dropdownPrefixCls:Kt||Jn,dropdownStyle:Object.assign(Object.assign({},la.dropdownStyle),{zIndex:Ol}),choiceTransitionName:(0,Lt.m)($r,"",Lr),transitionName:(0,Lt.m)($r,"slide-up",Tr),getPopupContainer:ya||Ya,ref:Tt}));return Na(Er(Vo))}),ar=(0,Qt.Z)(cn,"dropdownAlign",At=>(0,Fn.Z)(At,["visible"]));cn.SHOW_PARENT=Zt,cn.SHOW_CHILD=pt,cn.Panel=kt,cn._InternalPanelDoNotUseOrYouWillBeFired=ar;var mr=cn},62673:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return bt}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(16632),Se=E(8654),Ee=E(12919),Ce=E(63872),ke=E(48755),De=E(2171),fe=E(83397),We=E(56553),dt=y.createContext(null),Ge=E(36170),Ne=E(74632),we=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 Pe=(st,$e)=>{var pe;const{prefixCls:Le,className:xe,rootClassName:de,children:Ct,indeterminate:Ye=!1,style:je,onMouseEnter:it,onMouseLeave:Ie,skipGroup:ye=!1,disabled:vt}=st,Ht=we(st,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Et,direction:Be,checkbox:ft}=y.useContext(ke.E_),ot=y.useContext(dt),{isFormItemInput:Xt}=y.useContext(We.aM),xt=y.useContext(De.Z),wt=(pe=(ot==null?void 0:ot.disabled)||vt)!==null&&pe!==void 0?pe:xt,ht=y.useRef(Ht.value),un=y.useRef(null),zt=(0,Se.sQ)($e,un);y.useEffect(()=>{ot==null||ot.registerValue(Ht.value)},[]),y.useEffect(()=>{if(!ye)return Ht.value!==ht.current&&(ot==null||ot.cancelValue(ht.current),ot==null||ot.registerValue(Ht.value),ht.current=Ht.value),()=>ot==null?void 0:ot.cancelValue(Ht.value)},[Ht.value]),y.useEffect(()=>{var Ke;!((Ke=un.current)===null||Ke===void 0)&&Ke.input&&(un.current.input.indeterminate=Ye)},[Ye]);const ue=Et("checkbox",Le),ae=(0,fe.Z)(ue),[re,se,he]=(0,Ge.ZP)(ue,ae),ie=Object.assign({},Ht);ot&&!ye&&(ie.onChange=function(){Ht.onChange&&Ht.onChange.apply(Ht,arguments),ot.toggleOption&&ot.toggleOption({label:Ct,value:Ht.value})},ie.name=ot.name,ie.checked=ot.value.includes(Ht.value));const me=ce()(`${ue}-wrapper`,{[`${ue}-rtl`]:Be==="rtl",[`${ue}-wrapper-checked`]:ie.checked,[`${ue}-wrapper-disabled`]:wt,[`${ue}-wrapper-in-form-item`]:Xt},ft==null?void 0:ft.className,xe,de,he,ae,se),He=ce()({[`${ue}-indeterminate`]:Ye},Ce.A,se),[It,Xe]=(0,Ne.Z)(ie.onClick);return re(y.createElement(Ee.Z,{component:"Checkbox",disabled:wt},y.createElement("label",{className:me,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),je),onMouseEnter:it,onMouseLeave:Ie,onClick:It},y.createElement(_e.Z,Object.assign({},ie,{onClick:Xe,prefixCls:ue,className:He,disabled:wt,ref:zt})),Ct!==void 0&&y.createElement("span",{className:`${ue}-label`},Ct))))};var et=y.forwardRef(Pe),St=E(77654),Ae=E(2738),Oe=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},Je=y.forwardRef((st,$e)=>{const{defaultValue:pe,children:Le,options:xe=[],prefixCls:de,className:Ct,rootClassName:Ye,style:je,onChange:it}=st,Ie=Oe(st,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ye,direction:vt}=y.useContext(ke.E_),[Ht,Et]=y.useState(Ie.value||pe||[]),[Be,ft]=y.useState([]);y.useEffect(()=>{"value"in Ie&&Et(Ie.value||[])},[Ie.value]);const ot=y.useMemo(()=>xe.map(He=>typeof He=="string"||typeof He=="number"?{label:He,value:He}:He),[xe]),Xt=He=>{ft(It=>It.filter(Xe=>Xe!==He))},xt=He=>{ft(It=>[].concat((0,St.Z)(It),[He]))},wt=He=>{const It=Ht.indexOf(He.value),Xe=(0,St.Z)(Ht);It===-1?Xe.push(He.value):Xe.splice(It,1),"value"in Ie||Et(Xe),it==null||it(Xe.filter(Ke=>Be.includes(Ke)).sort((Ke,yt)=>{const Bt=ot.findIndex(Qe=>Qe.value===Ke),_t=ot.findIndex(Qe=>Qe.value===yt);return Bt-_t}))},ht=ye("checkbox",de),un=`${ht}-group`,zt=(0,fe.Z)(ht),[ue,ae,re]=(0,Ge.ZP)(ht,zt),se=(0,Ae.Z)(Ie,["value","disabled"]),he=xe.length?ot.map(He=>y.createElement(et,{prefixCls:ht,key:He.value.toString(),disabled:"disabled"in He?He.disabled:Ie.disabled,value:He.value,checked:Ht.includes(He.value),onChange:He.onChange,className:`${un}-item`,style:He.style,title:He.title,id:He.id,required:He.required},He.label)):Le,ie={toggleOption:wt,value:Ht,disabled:Ie.disabled,name:Ie.name,registerValue:xt,cancelValue:Xt},me=ce()(un,{[`${un}-rtl`]:vt==="rtl"},Ct,Ye,re,zt,ae);return ue(y.createElement("div",Object.assign({className:me,style:je},se,{ref:$e}),y.createElement(dt.Provider,{value:ie},he)))});const ct=et;ct.Group=Je,ct.__ANT_CHECKBOX=!0;var bt=ct},36170:function(Rn,qt,E){"use strict";E.d(qt,{C2:function(){return Ee}});var y=E(36237),ge=E(63356),ce=E(51636),_e=E(16931);const Se=Ce=>{const{checkboxCls:ke}=Ce,De=`${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}}),[De]: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'"},[`& + ${De}`]:{marginInlineStart:0},[`&${De}-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}})},{[`
|
|
|
${De}:not(${De}-disabled),
|
|
|
${ke}:not(${ke}-disabled)
|
|
|
`]:{[`&:hover ${ke}-inner`]:{borderColor:Ce.colorPrimary}},[`${De}:not(${De}-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}`}}},[`
|
|
|
${De}-checked:not(${De}-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`}}}},{[`${De}-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 De=(0,ce.mergeToken)(ke,{checkboxCls:`.${Ce}`,checkboxSize:ke.controlInteractiveSize});return[Se(De)]}qt.ZP=(0,_e.I$)("Checkbox",(Ce,ke)=>{let{prefixCls:De}=ke;return[Ee(De,Ce)]})},38406:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(48755),ce=E(584);const _e=Se=>{const{componentName:Ee}=Se,{getPrefixCls:Ce}=(0,y.useContext)(ge.E_),ke=Ce("empty");switch(Ee){case"Table":case"List":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE,className:`${ke}-small`});case"Table.filter":return null;default:return y.createElement(ce.Z,null)}};qt.Z=_e},37285:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ge}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(48755),Se=E(36237),Ee=E(63356),Ce=E(16931),ke=E(51636);const De=Ne=>{const{componentCls:we,sizePaddingEdgeHorizontal:Pe,colorSplit:Fe,lineWidth:et,textPaddingInline:St,orientationMargin:Ae,verticalMarginInline:Oe}=Ne;return{[we]:Object.assign(Object.assign({},(0,Ee.Wf)(Ne)),{borderBlockStart:`${(0,Se.unit)(et)} solid ${Fe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Oe,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Se.unit)(et)} solid ${Fe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Se.unit)(Ne.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${we}-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 ${Fe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Se.unit)(et)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${we}-with-text-start`]:{"&::before":{width:`calc(${Ae} * 100%)`},"&::after":{width:`calc(100% - ${Ae} * 100%)`}},[`&-horizontal${we}-with-text-end`]:{"&::before":{width:`calc(100% - ${Ae} * 100%)`},"&::after":{width:`calc(${Ae} * 100%)`}},[`${we}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:St},"&-dashed":{background:"none",borderColor:Fe,borderStyle:"dashed",borderWidth:`${(0,Se.unit)(et)} 0 0`},[`&-horizontal${we}-with-text${we}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${we}-dashed`]:{borderInlineStartWidth:et,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Fe,borderStyle:"dotted",borderWidth:`${(0,Se.unit)(et)} 0 0`},[`&-horizontal${we}-with-text${we}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${we}-dotted`]:{borderInlineStartWidth:et,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${we}-with-text`]:{color:Ne.colorText,fontWeight:"normal",fontSize:Ne.fontSize},[`&-horizontal${we}-with-text-start${we}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${we}-inner-text`]:{paddingInlineStart:Pe}},[`&-horizontal${we}-with-text-end${we}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${we}-inner-text`]:{paddingInlineEnd:Pe}}})}},fe=Ne=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ne.marginXS});var We=(0,Ce.I$)("Divider",Ne=>{const we=(0,ke.mergeToken)(Ne,{dividerHorizontalWithTextGutterMargin:Ne.margin,dividerHorizontalGutterMargin:Ne.marginLG,sizePaddingEdgeHorizontal:0});return[De(we)]},fe,{unitless:{orientationMargin:!0}}),Te=function(Ne,we){var Pe={};for(var Fe in Ne)Object.prototype.hasOwnProperty.call(Ne,Fe)&&we.indexOf(Fe)<0&&(Pe[Fe]=Ne[Fe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Fe=Object.getOwnPropertySymbols(Ne);et<Fe.length;et++)we.indexOf(Fe[et])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Fe[et])&&(Pe[Fe[et]]=Ne[Fe[et]]);return Pe},Ge=Ne=>{const{getPrefixCls:we,direction:Pe,className:Fe,style:et}=(0,_e.dj)("divider"),{prefixCls:St,type:Ae="horizontal",orientation:Oe="center",orientationMargin:qe,className:Je,rootClassName:ct,children:bt,dashed:st,variant:$e="solid",plain:pe,style:Le}=Ne,xe=Te(Ne,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),de=we("divider",St),[Ct,Ye,je]=We(de),it=!!bt,Ie=y.useMemo(()=>Oe==="left"?Pe==="rtl"?"end":"start":Oe==="right"?Pe==="rtl"?"start":"end":Oe,[Pe,Oe]),ye=Ie==="start"&&qe!=null,vt=Ie==="end"&&qe!=null,Ht=ce()(de,Fe,Ye,je,`${de}-${Ae}`,{[`${de}-with-text`]:it,[`${de}-with-text-${Ie}`]:it,[`${de}-dashed`]:!!st,[`${de}-${$e}`]:$e!=="solid",[`${de}-plain`]:!!pe,[`${de}-rtl`]:Pe==="rtl",[`${de}-no-default-orientation-margin-start`]:ye,[`${de}-no-default-orientation-margin-end`]:vt},Je,ct),Et=y.useMemo(()=>typeof qe=="number"?qe:/^\d+$/.test(qe)?Number(qe):qe,[qe]),Be={marginInlineStart:ye?Et:void 0,marginInlineEnd:vt?Et:void 0};return Ct(y.createElement("div",Object.assign({className:Ht,style:Object.assign(Object.assign({},et),Le)},xe,{role:"separator"}),bt&&Ae!=="vertical"&&y.createElement("span",{className:`${de}-inner-text`,style:Be},bt)))}},36207:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return It}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(85899),Se=E(72190),Ee=E(43403),Ce=E(34280),ke=y.createContext(null),De=y.createContext({}),fe=ke,We=E(18642),Te=E(60499),dt=E(77900),Ge=E(10228),Ne=E(26112),we=E(42244),Pe=E(8654),Fe=["prefixCls","className","containerRef"],et=function(Ke){var yt=Ke.prefixCls,Bt=Ke.className,_t=Ke.containerRef,Qe=(0,we.Z)(Ke,Fe),tt=y.useContext(De),Vt=tt.panel,on=(0,Pe.x1)(Vt,_t);return y.createElement("div",(0,Te.Z)({className:ce()("".concat(yt,"-content"),Bt),role:"dialog",ref:on},(0,Ne.Z)(Ke,{aria:!0}),{"aria-modal":"true"},Qe))},St=et,Ae=E(48736);function Oe(Xe){return typeof Xe=="string"&&String(Number(Xe))===Xe?((0,Ae.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Xe)):Xe}function qe(Xe){warning(!("wrapperClassName"in Xe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Xe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Je={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ct(Xe,Ke){var yt,Bt,_t,Qe=Xe.prefixCls,tt=Xe.open,Vt=Xe.placement,on=Xe.inline,Fn=Xe.push,gn=Xe.forceRender,Lt=Xe.autoFocus,Qt=Xe.keyboard,jt=Xe.classNames,rt=Xe.rootClassName,Nt=Xe.rootStyle,fn=Xe.zIndex,yn=Xe.className,lt=Xe.id,Rt=Xe.style,en=Xe.motion,Pt=Xe.width,Yt=Xe.height,Gt=Xe.children,Sn=Xe.mask,jn=Xe.maskClosable,Dn=Xe.maskMotion,Zn=Xe.maskClassName,Ot=Xe.maskStyle,Wt=Xe.afterOpenChange,ln=Xe.onClose,bn=Xe.onMouseEnter,tn=Xe.onMouseOver,wn=Xe.onMouseLeave,Cn=Xe.onClick,Pn=Xe.onKeyDown,vr=Xe.onKeyUp,Qn=Xe.styles,dr=Xe.drawerRender,br=y.useRef(),yr=y.useRef(),Vr=y.useRef();y.useImperativeHandle(Ke,function(){return br.current});var Zr=function(Mt){var Kt=Mt.keyCode,On=Mt.shiftKey;switch(Kt){case Ge.Z.TAB:{if(Kt===Ge.Z.TAB){if(!On&&document.activeElement===Vr.current){var Kn;(Kn=yr.current)===null||Kn===void 0||Kn.focus({preventScroll:!0})}else if(On&&document.activeElement===yr.current){var Un;(Un=Vr.current)===null||Un===void 0||Un.focus({preventScroll:!0})}}break}case Ge.Z.ESC:{ln&&Qt&&(Mt.stopPropagation(),ln(Mt));break}}};y.useEffect(function(){if(tt&&Lt){var Tt;(Tt=br.current)===null||Tt===void 0||Tt.focus({preventScroll:!0})}},[tt]);var An=y.useState(!1),$n=(0,Se.Z)(An,2),fr=$n[0],ur=$n[1],kt=y.useContext(fe),Ut;typeof Fn=="boolean"?Ut=Fn?{}:{distance:0}:Ut=Fn||{};var pt=(yt=(Bt=(_t=Ut)===null||_t===void 0?void 0:_t.distance)!==null&&Bt!==void 0?Bt:kt==null?void 0:kt.pushDistance)!==null&&yt!==void 0?yt:180,Zt=y.useMemo(function(){return{pushDistance:pt,push:function(){ur(!0)},pull:function(){ur(!1)}}},[pt]);y.useEffect(function(){if(tt){var Tt;kt==null||(Tt=kt.push)===null||Tt===void 0||Tt.call(kt)}else{var Mt;kt==null||(Mt=kt.pull)===null||Mt===void 0||Mt.call(kt)}},[tt]),y.useEffect(function(){return function(){var Tt;kt==null||(Tt=kt.pull)===null||Tt===void 0||Tt.call(kt)}},[]);var at=Sn&&y.createElement(dt.default,(0,Te.Z)({key:"mask"},Dn,{visible:tt}),function(Tt,Mt){var Kt=Tt.className,On=Tt.style;return y.createElement("div",{className:ce()("".concat(Qe,"-mask"),Kt,jt==null?void 0:jt.mask,Zn),style:(0,_e.Z)((0,_e.Z)((0,_e.Z)({},On),Ot),Qn==null?void 0:Qn.mask),onClick:jn&&tt?ln:void 0,ref:Mt})}),gt=typeof en=="function"?en(Vt):en,cn={};if(fr&&pt)switch(Vt){case"top":cn.transform="translateY(".concat(pt,"px)");break;case"bottom":cn.transform="translateY(".concat(-pt,"px)");break;case"left":cn.transform="translateX(".concat(pt,"px)");break;default:cn.transform="translateX(".concat(-pt,"px)");break}Vt==="left"||Vt==="right"?cn.width=Oe(Pt):cn.height=Oe(Yt);var ar={onMouseEnter:bn,onMouseOver:tn,onMouseLeave:wn,onClick:Cn,onKeyDown:Pn,onKeyUp:vr},mr=y.createElement(dt.default,(0,Te.Z)({key:"panel"},gt,{visible:tt,forceRender:gn,onVisibleChanged:function(Mt){Wt==null||Wt(Mt)},removeOnLeave:!1,leavedClassName:"".concat(Qe,"-content-wrapper-hidden")}),function(Tt,Mt){var Kt=Tt.className,On=Tt.style,Kn=y.createElement(St,(0,Te.Z)({id:lt,containerRef:Mt,prefixCls:Qe,className:ce()(yn,jt==null?void 0:jt.content),style:(0,_e.Z)((0,_e.Z)({},Rt),Qn==null?void 0:Qn.content)},(0,Ne.Z)(Xe,{aria:!0}),ar),Gt);return y.createElement("div",(0,Te.Z)({className:ce()("".concat(Qe,"-content-wrapper"),jt==null?void 0:jt.wrapper,Kt),style:(0,_e.Z)((0,_e.Z)((0,_e.Z)({},cn),On),Qn==null?void 0:Qn.wrapper)},(0,Ne.Z)(Xe,{data:!0})),dr?dr(Kn):Kn)}),At=(0,_e.Z)({},Nt);return fn&&(At.zIndex=fn),y.createElement(fe.Provider,{value:Zt},y.createElement("div",{className:ce()(Qe,"".concat(Qe,"-").concat(Vt),rt,(0,We.Z)((0,We.Z)({},"".concat(Qe,"-open"),tt),"".concat(Qe,"-inline"),on)),style:At,tabIndex:-1,ref:br,onKeyDown:Zr},at,y.createElement("div",{tabIndex:0,ref:yr,style:Je,"aria-hidden":"true","data-sentinel":"start"}),mr,y.createElement("div",{tabIndex:0,ref:Vr,style:Je,"aria-hidden":"true","data-sentinel":"end"})))}var bt=y.forwardRef(ct),st=bt,$e=function(Ke){var yt=Ke.open,Bt=yt===void 0?!1:yt,_t=Ke.prefixCls,Qe=_t===void 0?"rc-drawer":_t,tt=Ke.placement,Vt=tt===void 0?"right":tt,on=Ke.autoFocus,Fn=on===void 0?!0:on,gn=Ke.keyboard,Lt=gn===void 0?!0:gn,Qt=Ke.width,jt=Qt===void 0?378:Qt,rt=Ke.mask,Nt=rt===void 0?!0:rt,fn=Ke.maskClosable,yn=fn===void 0?!0:fn,lt=Ke.getContainer,Rt=Ke.forceRender,en=Ke.afterOpenChange,Pt=Ke.destroyOnClose,Yt=Ke.onMouseEnter,Gt=Ke.onMouseOver,Sn=Ke.onMouseLeave,jn=Ke.onClick,Dn=Ke.onKeyDown,Zn=Ke.onKeyUp,Ot=Ke.panelRef,Wt=y.useState(!1),ln=(0,Se.Z)(Wt,2),bn=ln[0],tn=ln[1],wn=y.useState(!1),Cn=(0,Se.Z)(wn,2),Pn=Cn[0],vr=Cn[1];(0,Ce.Z)(function(){vr(!0)},[]);var Qn=Pn?Bt:!1,dr=y.useRef(),br=y.useRef();(0,Ce.Z)(function(){Qn&&(br.current=document.activeElement)},[Qn]);var yr=function(fr){var ur;if(tn(fr),en==null||en(fr),!fr&&br.current&&!((ur=dr.current)!==null&&ur!==void 0&&ur.contains(br.current))){var kt;(kt=br.current)===null||kt===void 0||kt.focus({preventScroll:!0})}},Vr=y.useMemo(function(){return{panel:Ot}},[Ot]);if(!Rt&&!bn&&!Qn&&Pt)return null;var Zr={onMouseEnter:Yt,onMouseOver:Gt,onMouseLeave:Sn,onClick:jn,onKeyDown:Dn,onKeyUp:Zn},An=(0,_e.Z)((0,_e.Z)({},Ke),{},{open:Qn,prefixCls:Qe,placement:Vt,autoFocus:Fn,keyboard:Lt,width:jt,mask:Nt,maskClosable:yn,inline:lt===!1,afterOpenChange:yr,ref:dr},Zr);return y.createElement(De.Provider,{value:Vr},y.createElement(Ee.Z,{open:Qn||Rt||bn,autoDestroy:!1,getContainer:lt,autoLock:Nt&&(Qn||bn)},y.createElement(st,An)))},pe=$e,Le=pe,xe=E(62487),de=E(75030),Ct=E(86641),Ye=E(55743),je=E(48755),it=E(91190),Ie=E(78776),ye=E(458),Ht=Xe=>{var Ke,yt;const{prefixCls:Bt,title:_t,footer:Qe,extra:tt,loading:Vt,onClose:on,headerStyle:Fn,bodyStyle:gn,footerStyle:Lt,children:Qt,classNames:jt,styles:rt}=Xe,Nt=(0,je.dj)("drawer"),fn=y.useCallback(Pt=>y.createElement("button",{type:"button",onClick:on,"aria-label":"Close",className:`${Bt}-close`},Pt),[on]),[yn,lt]=(0,Ie.Z)((0,Ie.w)(Xe),(0,Ie.w)(Nt),{closable:!0,closeIconRender:fn}),Rt=y.useMemo(()=>{var Pt,Yt;return!_t&&!yn?null:y.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Pt=Nt.styles)===null||Pt===void 0?void 0:Pt.header),Fn),rt==null?void 0:rt.header),className:ce()(`${Bt}-header`,{[`${Bt}-header-close-only`]:yn&&!_t&&!tt},(Yt=Nt.classNames)===null||Yt===void 0?void 0:Yt.header,jt==null?void 0:jt.header)},y.createElement("div",{className:`${Bt}-header-title`},lt,_t&&y.createElement("div",{className:`${Bt}-title`},_t)),tt&&y.createElement("div",{className:`${Bt}-extra`},tt))},[yn,lt,tt,Fn,Bt,_t]),en=y.useMemo(()=>{var Pt,Yt;if(!Qe)return null;const Gt=`${Bt}-footer`;return y.createElement("div",{className:ce()(Gt,(Pt=Nt.classNames)===null||Pt===void 0?void 0:Pt.footer,jt==null?void 0:jt.footer),style:Object.assign(Object.assign(Object.assign({},(Yt=Nt.styles)===null||Yt===void 0?void 0:Yt.footer),Lt),rt==null?void 0:rt.footer)},Qe)},[Qe,Lt,Bt]);return y.createElement(y.Fragment,null,Rt,y.createElement("div",{className:ce()(`${Bt}-body`,jt==null?void 0:jt.body,(Ke=Nt.classNames)===null||Ke===void 0?void 0:Ke.body),style:Object.assign(Object.assign(Object.assign({},(yt=Nt.styles)===null||yt===void 0?void 0:yt.body),gn),rt==null?void 0:rt.body)},Vt?y.createElement(ye.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Bt}-body-skeleton`}):Qt),en)},Et=E(36237),Be=E(63356),ft=E(16931),ot=E(51636);const Xt=Xe=>{const Ke="100%";return{left:`translateX(-${Ke})`,right:`translateX(${Ke})`,top:`translateY(-${Ke})`,bottom:`translateY(${Ke})`}[Xe]},xt=(Xe,Ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},Xe),{"&-active":Ke}),"&-leave":Object.assign(Object.assign({},Ke),{"&-active":Xe})}),wt=(Xe,Ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ke}`}}},xt({opacity:Xe},{opacity:1})),ht=(Xe,Ke)=>[wt(.7,Ke),xt({transform:Xt(Xe)},{transform:"none"})];var zt=Xe=>{const{componentCls:Ke,motionDurationSlow:yt}=Xe;return{[Ke]:{[`${Ke}-mask-motion`]:wt(0,yt),[`${Ke}-panel-motion`]:["left","right","top","bottom"].reduce((Bt,_t)=>Object.assign(Object.assign({},Bt),{[`&-${_t}`]:ht(_t,yt)}),{})}}};const ue=Xe=>{const{borderRadiusSM:Ke,componentCls:yt,zIndexPopup:Bt,colorBgMask:_t,colorBgElevated:Qe,motionDurationSlow:tt,motionDurationMid:Vt,paddingXS:on,padding:Fn,paddingLG:gn,fontSizeLG:Lt,lineHeightLG:Qt,lineWidth:jt,lineType:rt,colorSplit:Nt,marginXS:fn,colorIcon:yn,colorIconHover:lt,colorBgTextHover:Rt,colorBgTextActive:en,colorText:Pt,fontWeightStrong:Yt,footerPaddingBlock:Gt,footerPaddingInline:Sn,calc:jn}=Xe,Dn=`${yt}-content-wrapper`;return{[yt]:{position:"fixed",inset:0,zIndex:Bt,pointerEvents:"none",color:Pt,"&-pure":{position:"relative",background:Qe,display:"flex",flexDirection:"column",[`&${yt}-left`]:{boxShadow:Xe.boxShadowDrawerLeft},[`&${yt}-right`]:{boxShadow:Xe.boxShadowDrawerRight},[`&${yt}-top`]:{boxShadow:Xe.boxShadowDrawerUp},[`&${yt}-bottom`]:{boxShadow:Xe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${yt}-mask`]:{position:"absolute",inset:0,zIndex:Bt,background:_t,pointerEvents:"auto"},[Dn]:{position:"absolute",zIndex:Bt,maxWidth:"100vw",transition:`all ${tt}`,"&-hidden":{display:"none"}},[`&-left > ${Dn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Xe.boxShadowDrawerLeft},[`&-right > ${Dn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Xe.boxShadowDrawerRight},[`&-top > ${Dn}`]:{top:0,insetInline:0,boxShadow:Xe.boxShadowDrawerUp},[`&-bottom > ${Dn}`]:{bottom:0,insetInline:0,boxShadow:Xe.boxShadowDrawerDown},[`${yt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Qe,pointerEvents:"auto"},[`${yt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Et.unit)(Fn)} ${(0,Et.unit)(gn)}`,fontSize:Lt,lineHeight:Qt,borderBottom:`${(0,Et.unit)(jt)} ${rt} ${Nt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${yt}-extra`]:{flex:"none"},[`${yt}-close`]:Object.assign({display:"inline-flex",width:jn(Lt).add(on).equal(),height:jn(Lt).add(on).equal(),borderRadius:Ke,justifyContent:"center",alignItems:"center",marginInlineEnd:fn,color:yn,fontWeight:Yt,fontSize:Lt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Vt}`,textRendering:"auto","&:hover":{color:lt,backgroundColor:Rt,textDecoration:"none"},"&:active":{backgroundColor:en}},(0,Be.Qy)(Xe)),[`${yt}-title`]:{flex:1,margin:0,fontWeight:Xe.fontWeightStrong,fontSize:Lt,lineHeight:Qt},[`${yt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:gn,overflow:"auto",[`${yt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${yt}-footer`]:{flexShrink:0,padding:`${(0,Et.unit)(Gt)} ${(0,Et.unit)(Sn)}`,borderTop:`${(0,Et.unit)(jt)} ${rt} ${Nt}`},"&-rtl":{direction:"rtl"}}}},ae=Xe=>({zIndexPopup:Xe.zIndexPopupBase,footerPaddingBlock:Xe.paddingXS,footerPaddingInline:Xe.padding});var re=(0,ft.I$)("Drawer",Xe=>{const Ke=(0,ot.mergeToken)(Xe,{});return[ue(Ke),zt(Ke)]},ae),se=function(Xe,Ke){var yt={};for(var Bt in Xe)Object.prototype.hasOwnProperty.call(Xe,Bt)&&Ke.indexOf(Bt)<0&&(yt[Bt]=Xe[Bt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Bt=Object.getOwnPropertySymbols(Xe);_t<Bt.length;_t++)Ke.indexOf(Bt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Xe,Bt[_t])&&(yt[Bt[_t]]=Xe[Bt[_t]]);return yt};const he=null,ie={distance:180},me=Xe=>{var Ke;const{rootClassName:yt,width:Bt,height:_t,size:Qe="default",mask:tt=!0,push:Vt=ie,open:on,afterOpenChange:Fn,onClose:gn,prefixCls:Lt,getContainer:Qt,style:jt,className:rt,visible:Nt,afterVisibleChange:fn,maskStyle:yn,drawerStyle:lt,contentWrapperStyle:Rt}=Xe,en=se(Xe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Pt,getPrefixCls:Yt,direction:Gt,className:Sn,style:jn,classNames:Dn,styles:Zn}=(0,je.dj)("drawer"),Ot=Yt("drawer",Lt),[Wt,ln,bn]=re(Ot),tn=Qt===void 0&&Pt?()=>Pt(document.body):Qt,wn=ce()({"no-mask":!tt,[`${Ot}-rtl`]:Gt==="rtl"},yt,ln,bn),Cn=y.useMemo(()=>Bt!=null?Bt:Qe==="large"?736:378,[Bt,Qe]),Pn=y.useMemo(()=>_t!=null?_t:Qe==="large"?736:378,[_t,Qe]),vr={motionName:(0,Ct.m)(Ot,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Qn=An=>({motionName:(0,Ct.m)(Ot,`panel-motion-${An}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dr=(0,it.H)(),[br,yr]=(0,de.Cn)("Drawer",en.zIndex),{classNames:Vr={},styles:Zr={}}=en;return Wt(y.createElement(xe.Z,{form:!0,space:!0},y.createElement(Ye.Z.Provider,{value:yr},y.createElement(Le,Object.assign({prefixCls:Ot,onClose:gn,maskMotion:vr,motion:Qn},en,{classNames:{mask:ce()(Vr.mask,Dn.mask),content:ce()(Vr.content,Dn.content),wrapper:ce()(Vr.wrapper,Dn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Zr.mask),yn),Zn.mask),content:Object.assign(Object.assign(Object.assign({},Zr.content),lt),Zn.content),wrapper:Object.assign(Object.assign(Object.assign({},Zr.wrapper),Rt),Zn.wrapper)},open:on!=null?on:Nt,mask:tt,push:Vt,width:Cn,height:Pn,style:Object.assign(Object.assign({},jn),jt),className:ce()(Sn,rt),rootClassName:wn,getContainer:tn,afterOpenChange:Fn!=null?Fn:fn,panelRef:dr,zIndex:br}),y.createElement(Ht,Object.assign({prefixCls:Ot},en,{onClose:gn}))))))},He=Xe=>{const{prefixCls:Ke,style:yt,className:Bt,placement:_t="right"}=Xe,Qe=se(Xe,["prefixCls","style","className","placement"]),{getPrefixCls:tt}=y.useContext(je.E_),Vt=tt("drawer",Ke),[on,Fn,gn]=re(Vt),Lt=ce()(Vt,`${Vt}-pure`,`${Vt}-${_t}`,Fn,gn,Bt);return on(y.createElement("div",{className:Lt,style:yt},y.createElement(Ht,Object.assign({prefixCls:Vt},Qe))))};me._InternalPanelDoNotUseOrYouWillBeFired=He;var It=me},19563:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Et}});var y=E(59301),ge=E(33853),ce=E(38819),_e=E(92310),Se=E.n(_e),Ee=E(96478),Ce=E(6089),ke=E(18929),De=E(2738),fe=E(75030),Te=Be=>typeof Be!="object"&&typeof Be!="function"||Be===null,dt=E(52838),Ge=E(45915),Ne=E(22703),we=E(32383),Pe=E(55743),Fe=E(48755),et=E(83397),St=E(93041),Ae=E(78857),Oe=E(57700),qe=E(36237),Je=E(63356),ct=E(46e3),bt=E(93873),st=E(34925),$e=E(37645),pe=E(36305),Le=E(16931),xe=E(51636),Ct=Be=>{const{componentCls:ft,menuCls:ot,colorError:Xt,colorTextLightSolid:xt}=Be,wt=`${ot}-item`;return{[`${ft}, ${ft}-menu-submenu`]:{[`${ot} ${wt}`]:{[`&${wt}-danger:not(${wt}-disabled)`]:{color:Xt,"&:hover":{color:xt,backgroundColor:Xt}}}}}};const Ye=Be=>{const{componentCls:ft,menuCls:ot,zIndexPopup:Xt,dropdownArrowDistance:xt,sizePopupArrow:wt,antCls:ht,iconCls:un,motionDurationMid:zt,paddingBlock:ue,fontSize:ae,dropdownEdgeChildPadding:re,colorTextDisabled:se,fontSizeIcon:he,controlPaddingHorizontal:ie,colorBgElevated:me}=Be;return[{[ft]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Xt,display:"block","&::before":{position:"absolute",insetBlock:Be.calc(wt).div(2).sub(xt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ht}-btn`]:{[`& > ${un}-down, & > ${ht}-btn-icon > ${un}-down`]:{fontSize:he}},[`${ft}-wrap`]:{position:"relative",[`${ht}-btn > ${un}-down`]:{fontSize:he},[`${un}-down::before`]:{transition:`transform ${zt}`}},[`${ft}-wrap-open`]:{[`${un}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ht}-slide-down-enter${ht}-slide-down-enter-active${ft}-placement-bottomLeft,
|
|
|
&${ht}-slide-down-appear${ht}-slide-down-appear-active${ft}-placement-bottomLeft,
|
|
|
&${ht}-slide-down-enter${ht}-slide-down-enter-active${ft}-placement-bottom,
|
|
|
&${ht}-slide-down-appear${ht}-slide-down-appear-active${ft}-placement-bottom,
|
|
|
&${ht}-slide-down-enter${ht}-slide-down-enter-active${ft}-placement-bottomRight,
|
|
|
&${ht}-slide-down-appear${ht}-slide-down-appear-active${ft}-placement-bottomRight`]:{animationName:ct.fJ},[`&${ht}-slide-up-enter${ht}-slide-up-enter-active${ft}-placement-topLeft,
|
|
|
&${ht}-slide-up-appear${ht}-slide-up-appear-active${ft}-placement-topLeft,
|
|
|
&${ht}-slide-up-enter${ht}-slide-up-enter-active${ft}-placement-top,
|
|
|
&${ht}-slide-up-appear${ht}-slide-up-appear-active${ft}-placement-top,
|
|
|
&${ht}-slide-up-enter${ht}-slide-up-enter-active${ft}-placement-topRight,
|
|
|
&${ht}-slide-up-appear${ht}-slide-up-appear-active${ft}-placement-topRight`]:{animationName:ct.Qt},[`&${ht}-slide-down-leave${ht}-slide-down-leave-active${ft}-placement-bottomLeft,
|
|
|
&${ht}-slide-down-leave${ht}-slide-down-leave-active${ft}-placement-bottom,
|
|
|
&${ht}-slide-down-leave${ht}-slide-down-leave-active${ft}-placement-bottomRight`]:{animationName:ct.Uw},[`&${ht}-slide-up-leave${ht}-slide-up-leave-active${ft}-placement-topLeft,
|
|
|
&${ht}-slide-up-leave${ht}-slide-up-leave-active${ft}-placement-top,
|
|
|
&${ht}-slide-up-leave${ht}-slide-up-leave-active${ft}-placement-topRight`]:{animationName:ct.ly}}},(0,$e.ZP)(Be,me,{arrowPlacement:{top:!0,bottom:!0}}),{[`${ft} ${ot}`]:{position:"relative",margin:0},[`${ot}-submenu-popup`]:{position:"absolute",zIndex:Xt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ft}, ${ft}-menu-submenu`]:Object.assign(Object.assign({},(0,Je.Wf)(Be)),{[ot]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary},(0,Je.Qy)(Be)),{"&:empty":{padding:0,boxShadow:"none"},[`${ot}-item-group-title`]:{padding:`${(0,qe.unit)(ue)} ${(0,qe.unit)(ie)}`,color:Be.colorTextDescription,transition:`all ${zt}`},[`${ot}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ot}-item-icon`]:{minWidth:ae,marginInlineEnd:Be.marginXS,fontSize:Be.fontSizeSM},[`${ot}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${zt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${ot}-item-extra`]:{paddingInlineStart:Be.padding,marginInlineStart:"auto",fontSize:Be.fontSizeSM,color:Be.colorTextDescription}},[`${ot}-item, ${ot}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,qe.unit)(ue)} ${(0,qe.unit)(ie)}`,color:Be.colorText,fontWeight:"normal",fontSize:ae,lineHeight:Be.lineHeight,cursor:"pointer",transition:`all ${zt}`,borderRadius:Be.borderRadiusSM,"&:hover, &-active":{backgroundColor:Be.controlItemBgHover}},(0,Je.Qy)(Be)),{"&-selected":{color:Be.colorPrimary,backgroundColor:Be.controlItemBgActive,"&:hover, &-active":{backgroundColor:Be.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,qe.unit)(Be.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Be.colorSplit},[`${ft}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Be.paddingXS,[`${ft}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Be.colorTextDescription,fontSize:he,fontStyle:"normal"}}}),[`${ot}-item-group-list`]:{margin:`0 ${(0,qe.unit)(Be.marginXS)}`,padding:0,listStyle:"none"},[`${ot}-submenu-title`]:{paddingInlineEnd:Be.calc(ie).add(Be.fontSizeSM).equal()},[`${ot}-submenu-vertical`]:{position:"relative"},[`${ot}-submenu${ot}-submenu-disabled ${ft}-menu-submenu-title`]:{[`&, ${ft}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:me,cursor:"not-allowed"}},[`${ot}-submenu-selected ${ft}-menu-submenu-title`]:{color:Be.colorPrimary}})})},[(0,ct.oN)(Be,"slide-up"),(0,ct.oN)(Be,"slide-down"),(0,bt.Fm)(Be,"move-up"),(0,bt.Fm)(Be,"move-down"),(0,st._y)(Be,"zoom-big")]]},je=Be=>Object.assign(Object.assign({zIndexPopup:Be.zIndexPopupBase+50,paddingBlock:(Be.controlHeight-Be.fontSize*Be.lineHeight)/2},(0,$e.wZ)({contentRadius:Be.borderRadiusLG,limitVerticalRadius:!0})),(0,pe.w)(Be));var it=(0,Le.I$)("Dropdown",Be=>{const{marginXXS:ft,sizePopupArrow:ot,paddingXXS:Xt,componentCls:xt}=Be,wt=(0,xe.mergeToken)(Be,{menuCls:`${xt}-menu`,dropdownArrowDistance:Be.calc(ot).div(2).add(ft).equal(),dropdownEdgeChildPadding:Xt});return[Ye(wt),Ct(wt)]},je,{resetStyle:!1});const Ie=null,ye=Be=>{var ft;const{menu:ot,arrow:Xt,prefixCls:xt,children:wt,trigger:ht,disabled:un,dropdownRender:zt,getPopupContainer:ue,overlayClassName:ae,rootClassName:re,overlayStyle:se,open:he,onOpenChange:ie,visible:me,onVisibleChange:He,mouseEnterDelay:It=.15,mouseLeaveDelay:Xe=.1,autoAdjustOverflow:Ke=!0,placement:yt="",overlay:Bt,transitionName:_t}=Be,{getPopupContainer:Qe,getPrefixCls:tt,direction:Vt,dropdown:on}=y.useContext(Fe.E_),Fn=(0,we.ln)("Dropdown"),gn=y.useMemo(()=>{const tn=tt();return _t!==void 0?_t:yt.includes("top")?`${tn}-slide-down`:`${tn}-slide-up`},[tt,yt,_t]),Lt=y.useMemo(()=>yt?yt.includes("Center")?yt.slice(0,yt.indexOf("Center")):yt:Vt==="rtl"?"bottomRight":"bottomLeft",[yt,Vt]),Qt=tt("dropdown",xt),jt=(0,et.Z)(Qt),[rt,Nt,fn]=it(Qt,jt),[,yn]=(0,Oe.ZP)(),lt=y.Children.only(Te(wt)?y.createElement("span",null,wt):wt),Rt=(0,Ne.Tm)(lt,{className:Se()(`${Qt}-trigger`,{[`${Qt}-rtl`]:Vt==="rtl"},lt.props.className),disabled:(ft=lt.props.disabled)!==null&&ft!==void 0?ft:un}),en=un?[]:ht,Pt=!!(en!=null&&en.includes("contextMenu")),[Yt,Gt]=(0,ke.Z)(!1,{value:he!=null?he:me}),Sn=(0,Ce.Z)(tn=>{ie==null||ie(tn,{source:"trigger"}),He==null||He(tn),Gt(tn)}),jn=Se()(ae,re,Nt,fn,jt,on==null?void 0:on.className,{[`${Qt}-rtl`]:Vt==="rtl"}),Dn=(0,dt.Z)({arrowPointAtCenter:typeof Xt=="object"&&Xt.pointAtCenter,autoAdjustOverflow:Ke,offset:yn.marginXXS,arrowWidth:Xt?yn.sizePopupArrow:0,borderRadius:yn.borderRadius}),Zn=y.useCallback(()=>{ot!=null&&ot.selectable&&(ot!=null&&ot.multiple)||(ie==null||ie(!1,{source:"menu"}),Gt(!1))},[ot==null?void 0:ot.selectable,ot==null?void 0:ot.multiple]),Ot=()=>{let tn;return ot!=null&&ot.items?tn=y.createElement(St.default,Object.assign({},ot)):typeof Bt=="function"?tn=Bt():tn=Bt,zt&&(tn=zt(tn)),tn=y.Children.only(typeof tn=="string"?y.createElement("span",null,tn):tn),y.createElement(Ae.J,{prefixCls:`${Qt}-menu`,rootClassName:Se()(fn,jt),expandIcon:y.createElement("span",{className:`${Qt}-menu-submenu-arrow`},Vt==="rtl"?y.createElement(ge.Z,{className:`${Qt}-menu-submenu-arrow-icon`}):y.createElement(ce.Z,{className:`${Qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Zn,validator:wn=>{let{mode:Cn}=wn}},tn)},[Wt,ln]=(0,fe.Cn)("Dropdown",se==null?void 0:se.zIndex);let bn=y.createElement(Ee.Z,Object.assign({alignPoint:Pt},(0,De.Z)(Be,["rootClassName"]),{mouseEnterDelay:It,mouseLeaveDelay:Xe,visible:Yt,builtinPlacements:Dn,arrow:!!Xt,overlayClassName:jn,prefixCls:Qt,getPopupContainer:ue||Qe,transitionName:gn,trigger:en,overlay:Ot,placement:Lt,onVisibleChange:Sn,overlayStyle:Object.assign(Object.assign(Object.assign({},on==null?void 0:on.style),se),{zIndex:Wt})}),Rt);return Wt&&(bn=y.createElement(Pe.Z.Provider,{value:ln},bn)),rt(bn)},vt=(0,Ge.Z)(ye,"align",void 0,"dropdown",Be=>Be),Ht=Be=>y.createElement(vt,Object.assign({},Be),y.createElement("span",null));ye._InternalPanelDoNotUseOrYouWillBeFired=Ht;var Et=ye},75727:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ge}});var y=E(19563),ge=E(59301),ce=E(18785),_e=E(92310),Se=E.n(_e),Ee=E(7939),Ce=E(48755),ke=E(44104),De=E(70045),fe=function(Ne,we){var Pe={};for(var Fe in Ne)Object.prototype.hasOwnProperty.call(Ne,Fe)&&we.indexOf(Fe)<0&&(Pe[Fe]=Ne[Fe]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Fe=Object.getOwnPropertySymbols(Ne);et<Fe.length;et++)we.indexOf(Fe[et])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Fe[et])&&(Pe[Fe[et]]=Ne[Fe[et]]);return Pe};const We=Ne=>{const{getPopupContainer:we,getPrefixCls:Pe,direction:Fe}=ge.useContext(Ce.E_),{prefixCls:et,type:St="default",danger:Ae,disabled:Oe,loading:qe,onClick:Je,htmlType:ct,children:bt,className:st,menu:$e,arrow:pe,autoFocus:Le,overlay:xe,trigger:de,align:Ct,open:Ye,onOpenChange:je,placement:it,getPopupContainer:Ie,href:ye,icon:vt=ge.createElement(ce.Z,null),title:Ht,buttonsRender:Et=It=>It,mouseEnterDelay:Be,mouseLeaveDelay:ft,overlayClassName:ot,overlayStyle:Xt,destroyPopupOnHide:xt,dropdownRender:wt}=Ne,ht=fe(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"]),un=Pe("dropdown",et),zt=`${un}-button`,ue={menu:$e,arrow:pe,autoFocus:Le,align:Ct,disabled:Oe,trigger:Oe?[]:de,onOpenChange:je,getPopupContainer:Ie||we,mouseEnterDelay:Be,mouseLeaveDelay:ft,overlayClassName:ot,overlayStyle:Xt,destroyPopupOnHide:xt,dropdownRender:wt},{compactSize:ae,compactItemClassnames:re}=(0,De.ri)(un,Fe),se=Se()(zt,re,st);"overlay"in Ne&&(ue.overlay=xe),"open"in Ne&&(ue.open=Ye),"placement"in Ne?ue.placement=it:ue.placement=Fe==="rtl"?"bottomLeft":"bottomRight";const he=ge.createElement(Ee.ZP,{type:St,danger:Ae,disabled:Oe,loading:qe,onClick:Je,htmlType:ct,href:ye,title:Ht},bt),ie=ge.createElement(Ee.ZP,{type:St,danger:Ae,icon:vt}),[me,He]=Et([he,ie]);return ge.createElement(ke.Z.Compact,Object.assign({className:se,size:ae,block:!0},ht),me,ge.createElement(y.Z,Object.assign({},ue),He))};We.__ANT_BUTTON=!0;var Te=We;const dt=y.Z;dt.Button=Te;var Ge=dt},584:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return St}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(9017),Se=E(17835),Ee=E(57700),ke=()=>{const[,Ae]=(0,Ee.ZP)(),[Oe]=(0,_e.Z)("Empty"),Je=new Se.FastColor(Ae.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:Je,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Oe==null?void 0:Oe.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"}))))},fe=()=>{const[,Ae]=(0,Ee.ZP)(),[Oe]=(0,_e.Z)("Empty"),{colorFill:qe,colorFillTertiary:Je,colorFillQuaternary:ct,colorBgContainer:bt}=Ae,{borderColor:st,shadowColor:$e,contentColor:pe}=(0,y.useMemo)(()=>({borderColor:new Se.FastColor(qe).onBackground(bt).toHexString(),shadowColor:new Se.FastColor(Je).onBackground(bt).toHexString(),contentColor:new Se.FastColor(ct).onBackground(bt).toHexString()}),[qe,Je,ct,bt]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Oe==null?void 0:Oe.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 dt=Ae=>{const{componentCls:Oe,margin:qe,marginXS:Je,marginXL:ct,fontSize:bt,lineHeight:st}=Ae;return{[Oe]:{marginInline:Je,fontSize:bt,lineHeight:st,textAlign:"center",[`${Oe}-image`]:{height:Ae.emptyImgHeight,marginBottom:Je,opacity:Ae.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Oe}-description`]:{color:Ae.colorTextDescription},[`${Oe}-footer`]:{marginTop:qe},"&-normal":{marginBlock:ct,color:Ae.colorTextDescription,[`${Oe}-description`]:{color:Ae.colorTextDescription},[`${Oe}-image`]:{height:Ae.emptyImgHeightMD}},"&-small":{marginBlock:Je,color:Ae.colorTextDescription,[`${Oe}-image`]:{height:Ae.emptyImgHeightSM}}}}};var Ge=(0,We.I$)("Empty",Ae=>{const{componentCls:Oe,controlHeightLG:qe,calc:Je}=Ae,ct=(0,Te.mergeToken)(Ae,{emptyImgCls:`${Oe}-img`,emptyImgHeight:Je(qe).mul(2.5).equal(),emptyImgHeightMD:qe,emptyImgHeightSM:Je(qe).mul(.875).equal()});return[dt(ct)]}),Ne=E(48755),we=function(Ae,Oe){var qe={};for(var Je in Ae)Object.prototype.hasOwnProperty.call(Ae,Je)&&Oe.indexOf(Je)<0&&(qe[Je]=Ae[Je]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Je=Object.getOwnPropertySymbols(Ae);ct<Je.length;ct++)Oe.indexOf(Je[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Je[ct])&&(qe[Je[ct]]=Ae[Je[ct]]);return qe};const Pe=y.createElement(ke,null),Fe=y.createElement(fe,null),et=Ae=>{const{className:Oe,rootClassName:qe,prefixCls:Je,image:ct=Pe,description:bt,children:st,imageStyle:$e,style:pe,classNames:Le,styles:xe}=Ae,de=we(Ae,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ct,direction:Ye,className:je,style:it,classNames:Ie,styles:ye}=(0,Ne.dj)("empty"),vt=Ct("empty",Je),[Ht,Et,Be]=Ge(vt),[ft]=(0,_e.Z)("Empty"),ot=typeof bt!="undefined"?bt:ft==null?void 0:ft.description,Xt=typeof ot=="string"?ot:"empty";let xt=null;return typeof ct=="string"?xt=y.createElement("img",{alt:Xt,src:ct}):xt=ct,Ht(y.createElement("div",Object.assign({className:ce()(Et,Be,vt,je,{[`${vt}-normal`]:ct===Fe,[`${vt}-rtl`]:Ye==="rtl"},Oe,qe,Ie.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)},de),y.createElement("div",{className:ce()(`${vt}-image`,Ie.image,Le==null?void 0:Le.image),style:Object.assign(Object.assign(Object.assign({},$e),ye.image),xe==null?void 0:xe.image)},xt),ot&&y.createElement("div",{className:ce()(`${vt}-description`,Ie.description,Le==null?void 0:Le.description),style:Object.assign(Object.assign({},ye.description),xe==null?void 0:xe.description)},ot),st&&y.createElement("div",{className:ce()(`${vt}-footer`,Ie.footer,Le==null?void 0:Le.footer),style:Object.assign(Object.assign({},ye.footer),xe==null?void 0:xe.footer)},st)))};et.PRESENTED_IMAGE_DEFAULT=Pe,et.PRESENTED_IMAGE_SIMPLE=Fe;var St=et},28284:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return Ut}});var y=E(56553),ge=E(77654),ce=E(59301),_e=E(92310),Se=E.n(_e),Ee=E(77900),Ce=E(86641),ke=E(83397);function De(pt){const[Zt,at]=ce.useState(pt);return ce.useEffect(()=>{const gt=setTimeout(()=>{at(pt)},pt.length?0:10);return()=>{clearTimeout(gt)}},[pt]),Zt}var fe=E(36237),We=E(63356),Te=E(34925),dt=E(34961),Ge=E(51636),Ne=E(16931),Pe=pt=>{const{componentCls:Zt}=pt,at=`${Zt}-show-help`,gt=`${Zt}-show-help-item`;return{[at]:{transition:`opacity ${pt.motionDurationFast} ${pt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[gt]:{overflow:"hidden",transition:`height ${pt.motionDurationFast} ${pt.motionEaseInOut},
|
|
|
opacity ${pt.motionDurationFast} ${pt.motionEaseInOut},
|
|
|
transform ${pt.motionDurationFast} ${pt.motionEaseInOut} !important`,[`&${gt}-appear, &${gt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${gt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Fe=pt=>({legend:{display:"block",width:"100%",marginBottom:pt.marginLG,padding:0,color:pt.colorTextDescription,fontSize:pt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(pt.lineWidth)} ${pt.lineType} ${pt.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,fe.unit)(pt.controlOutlineWidth)} ${pt.controlOutline}`},output:{display:"block",paddingTop:15,color:pt.colorText,fontSize:pt.fontSize,lineHeight:pt.lineHeight}}),et=(pt,Zt)=>{const{formItemCls:at}=pt;return{[at]:{[`${at}-label > label`]:{height:Zt},[`${at}-control-input`]:{minHeight:Zt}}}},St=pt=>{const{componentCls:Zt}=pt;return{[pt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,We.Wf)(pt)),Fe(pt)),{[`${Zt}-text`]:{display:"inline-block",paddingInlineEnd:pt.paddingSM},"&-small":Object.assign({},et(pt,pt.controlHeightSM)),"&-large":Object.assign({},et(pt,pt.controlHeightLG))})}},Ae=pt=>{const{formItemCls:Zt,iconCls:at,rootPrefixCls:gt,antCls:cn,labelRequiredMarkColor:ar,labelColor:mr,labelFontSize:At,labelHeight:Tt,labelColonMarginInlineStart:Mt,labelColonMarginInlineEnd:Kt,itemMarginBottom:On}=pt;return{[Zt]:Object.assign(Object.assign({},(0,We.Wf)(pt)),{marginBottom:On,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${cn}-row`]:{display:"none"},"&-has-warning":{[`${Zt}-split`]:{color:pt.colorError}},"&-has-error":{[`${Zt}-split`]:{color:pt.colorWarning}},[`${Zt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:pt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Tt,color:mr,fontSize:At,[`> ${at}`]:{fontSize:pt.fontSize,verticalAlign:"top"},[`&${Zt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:pt.marginXXS,color:ar,fontSize:pt.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:pt.marginXXS,color:pt.colorTextDescription,[`&${Zt}-required-mark-hidden`]:{display:"none"}},[`${Zt}-tooltip`]:{color:pt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:pt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Mt,marginInlineEnd:Kt},[`&${Zt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Zt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${gt}-col-'"]):not([class*="' ${gt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:pt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Zt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:pt.colorTextDescription,fontSize:pt.fontSize,lineHeight:pt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:pt.controlHeightSM,transition:`color ${pt.motionDurationMid} ${pt.motionEaseOut}`},"&-explain":{"&-error":{color:pt.colorError},"&-warning":{color:pt.colorWarning}}},[`&-with-help ${Zt}-explain`]:{height:"auto",opacity:1},[`${Zt}-feedback-icon`]:{fontSize:pt.fontSize,textAlign:"center",visibility:"visible",animationName:Te.kr,animationDuration:pt.motionDurationMid,animationTimingFunction:pt.motionEaseOutBack,pointerEvents:"none","&-success":{color:pt.colorSuccess},"&-error":{color:pt.colorError},"&-warning":{color:pt.colorWarning},"&-validating":{color:pt.colorPrimary}}})}},Oe=(pt,Zt)=>{const{formItemCls:at}=pt;return{[`${Zt}-horizontal`]:{[`${at}-label`]:{flexGrow:0},[`${at}-control`]:{flex:"1 1 0",minWidth:0},[`${at}-label[class$='-24'], ${at}-label[class*='-24 ']`]:{[`& + ${at}-control`]:{minWidth:"unset"}}}}},qe=pt=>{const{componentCls:Zt,formItemCls:at,inlineItemMarginBottom:gt}=pt;return{[`${Zt}-inline`]:{display:"flex",flexWrap:"wrap",[at]:{flex:"none",marginInlineEnd:pt.margin,marginBottom:gt,"&-row":{flexWrap:"nowrap"},[`> ${at}-label,
|
|
|
> ${at}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${at}-label`]:{flex:"none"},[`${Zt}-text`]:{display:"inline-block"},[`${at}-has-feedback`]:{display:"inline-block"}}}}},Je=pt=>({padding:pt.verticalLabelPadding,margin:pt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ct=pt=>{const{componentCls:Zt,formItemCls:at,rootPrefixCls:gt}=pt;return{[`${at} ${at}-label`]:Je(pt),[`${Zt}:not(${Zt}-inline)`]:{[at]:{flexWrap:"wrap",[`${at}-label, ${at}-control`]:{[`&:not([class*=" ${gt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},bt=pt=>{const{componentCls:Zt,formItemCls:at,antCls:gt}=pt;return{[`${Zt}-vertical`]:{[`${at}:not(${at}-horizontal)`]:{[`${at}-row`]:{flexDirection:"column"},[`${at}-label > label`]:{height:"auto"},[`${at}-control`]:{width:"100%"},[`${at}-label,
|
|
|
${gt}-col-24${at}-label,
|
|
|
${gt}-col-xl-24${at}-label`]:Je(pt)}},[`@media (max-width: ${(0,fe.unit)(pt.screenXSMax)})`]:[ct(pt),{[Zt]:{[`${at}:not(${at}-horizontal)`]:{[`${gt}-col-xs-24${at}-label`]:Je(pt)}}}],[`@media (max-width: ${(0,fe.unit)(pt.screenSMMax)})`]:{[Zt]:{[`${at}:not(${at}-horizontal)`]:{[`${gt}-col-sm-24${at}-label`]:Je(pt)}}},[`@media (max-width: ${(0,fe.unit)(pt.screenMDMax)})`]:{[Zt]:{[`${at}:not(${at}-horizontal)`]:{[`${gt}-col-md-24${at}-label`]:Je(pt)}}},[`@media (max-width: ${(0,fe.unit)(pt.screenLGMax)})`]:{[Zt]:{[`${at}:not(${at}-horizontal)`]:{[`${gt}-col-lg-24${at}-label`]:Je(pt)}}}}},st=pt=>{const{formItemCls:Zt,antCls:at}=pt;return{[`${Zt}-vertical`]:{[`${Zt}-row`]:{flexDirection:"column"},[`${Zt}-label > label`]:{height:"auto"},[`${Zt}-control`]:{width:"100%"}},[`${Zt}-vertical ${Zt}-label,
|
|
|
${at}-col-24${Zt}-label,
|
|
|
${at}-col-xl-24${Zt}-label`]:Je(pt),[`@media (max-width: ${(0,fe.unit)(pt.screenXSMax)})`]:[ct(pt),{[Zt]:{[`${at}-col-xs-24${Zt}-label`]:Je(pt)}}],[`@media (max-width: ${(0,fe.unit)(pt.screenSMMax)})`]:{[Zt]:{[`${at}-col-sm-24${Zt}-label`]:Je(pt)}},[`@media (max-width: ${(0,fe.unit)(pt.screenMDMax)})`]:{[Zt]:{[`${at}-col-md-24${Zt}-label`]:Je(pt)}},[`@media (max-width: ${(0,fe.unit)(pt.screenLGMax)})`]:{[Zt]:{[`${at}-col-lg-24${Zt}-label`]:Je(pt)}}}},$e=pt=>({labelRequiredMarkColor:pt.colorError,labelColor:pt.colorTextHeading,labelFontSize:pt.fontSize,labelHeight:pt.controlHeight,labelColonMarginInlineStart:pt.marginXXS/2,labelColonMarginInlineEnd:pt.marginXS,itemMarginBottom:pt.marginLG,verticalLabelPadding:`0 0 ${pt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),pe=(pt,Zt)=>(0,Ge.mergeToken)(pt,{formItemCls:`${pt.componentCls}-item`,rootPrefixCls:Zt});var Le=(0,Ne.I$)("Form",(pt,Zt)=>{let{rootPrefixCls:at}=Zt;const gt=pe(pt,at);return[St(gt),Ae(gt),Pe(gt),Oe(gt,gt.componentCls),Oe(gt,gt.formItemCls),qe(gt),bt(gt),st(gt),(0,dt.Z)(gt),Te.kr]},$e,{order:-1e3});const xe=[];function de(pt,Zt,at){let gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof pt=="string"?pt:`${Zt}-${gt}`,error:pt,errorStatus:at}}var Ye=pt=>{let{help:Zt,helpStatus:at,errors:gt=xe,warnings:cn=xe,className:ar,fieldId:mr,onVisibleChanged:At}=pt;const{prefixCls:Tt}=ce.useContext(y.Rk),Mt=`${Tt}-item-explain`,Kt=(0,ke.Z)(Tt),[On,Kn,Un]=Le(Tt,Kt),Hn=ce.useMemo(()=>(0,Ce.Z)(Tt),[Tt]),hr=De(gt),Pr=De(cn),Tr=ce.useMemo(()=>Zt!=null?[de(Zt,"help",at)]:[].concat((0,ge.Z)(hr.map((Rr,Xr)=>de(Rr,"error","error",Xr))),(0,ge.Z)(Pr.map((Rr,Xr)=>de(Rr,"warning","warning",Xr)))),[Zt,at,hr,Pr]),Lr=ce.useMemo(()=>{const Rr={};return Tr.forEach(Xr=>{let{key:oa}=Xr;Rr[oa]=(Rr[oa]||0)+1}),Tr.map((Xr,oa)=>Object.assign(Object.assign({},Xr),{key:Rr[Xr.key]>1?`${Xr.key}-fallback-${oa}`:Xr.key}))},[Tr]),Cr={};return mr&&(Cr.id=`${mr}_help`),On(ce.createElement(Ee.default,{motionDeadline:Hn.motionDeadline,motionName:`${Tt}-show-help`,visible:!!Lr.length,onVisibleChanged:At},Rr=>{const{className:Xr,style:oa}=Rr;return ce.createElement("div",Object.assign({},Cr,{className:Se()(Mt,Xr,Un,Kt,ar,Kn),style:oa}),ce.createElement(Ee.CSSMotionList,Object.assign({keys:Lr},(0,Ce.Z)(Tt),{motionName:`${Tt}-show-help-item`,component:!1}),ta=>{const{key:xa,error:Fa,errorStatus:Ur,className:ya,style:Xa}=ta;return ce.createElement("div",{key:xa,className:Se()(ya,{[`${Mt}-${Ur}`]:Ur}),style:Xa},Fa)}))}))},je=E(55372),it=E(48755),Ie=E(2171),ye=E(31756),vt=E(23069),Ht=E(76846),Et=E(16722);const Be=["parentNode"],ft="form_item";function ot(pt){return pt===void 0||pt===!1?[]:Array.isArray(pt)?pt:[pt]}function Xt(pt,Zt){if(!pt.length)return;const at=pt.join("_");return Zt?`${Zt}_${at}`:Be.includes(at)?`${ft}_${at}`:at}function xt(pt,Zt,at,gt,cn,ar){let mr=gt;return ar!==void 0?mr=ar:at.validating?mr="validating":pt.length?mr="error":Zt.length?mr="warning":(at.touched||cn&&at.validated)&&(mr="success"),mr}var wt=function(pt,Zt){var at={};for(var gt in pt)Object.prototype.hasOwnProperty.call(pt,gt)&&Zt.indexOf(gt)<0&&(at[gt]=pt[gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,gt=Object.getOwnPropertySymbols(pt);cn<gt.length;cn++)Zt.indexOf(gt[cn])<0&&Object.prototype.propertyIsEnumerable.call(pt,gt[cn])&&(at[gt[cn]]=pt[gt[cn]]);return at};function ht(pt){return ot(pt).join("_")}function un(pt,Zt){const at=Zt.getFieldInstance(pt),gt=(0,Ht.bn)(at);if(gt)return gt;const cn=Xt(ot(pt),Zt.__INTERNAL__.name);if(cn)return document.getElementById(cn)}function zt(pt){const[Zt]=(0,je.useForm)(),at=ce.useRef({}),gt=ce.useMemo(()=>pt!=null?pt:Object.assign(Object.assign({},Zt),{__INTERNAL__:{itemRef:cn=>ar=>{const mr=ht(cn);ar?at.current[mr]=ar:delete at.current[mr]}},scrollToField:function(cn){let ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:mr}=ar,At=wt(ar,["focus"]),Tt=un(cn,gt);Tt&&((0,Et.Z)(Tt,Object.assign({scrollMode:"if-needed",block:"nearest"},At)),mr&>.focusField(cn))},focusField:cn=>{var ar,mr;const At=gt.getFieldInstance(cn);typeof(At==null?void 0:At.focus)=="function"?At.focus():(mr=(ar=un(cn,gt))===null||ar===void 0?void 0:ar.focus)===null||mr===void 0||mr.call(ar)},getFieldInstance:cn=>{const ar=ht(cn);return at.current[ar]}}),[pt,Zt]);return[gt]}var ue=E(98350),ae=function(pt,Zt){var at={};for(var gt in pt)Object.prototype.hasOwnProperty.call(pt,gt)&&Zt.indexOf(gt)<0&&(at[gt]=pt[gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,gt=Object.getOwnPropertySymbols(pt);cn<gt.length;cn++)Zt.indexOf(gt[cn])<0&&Object.prototype.propertyIsEnumerable.call(pt,gt[cn])&&(at[gt[cn]]=pt[gt[cn]]);return at};const re=(pt,Zt)=>{const at=ce.useContext(Ie.Z),{getPrefixCls:gt,direction:cn,requiredMark:ar,colon:mr,scrollToFirstError:At,className:Tt,style:Mt}=(0,it.dj)("form"),{prefixCls:Kt,className:On,rootClassName:Kn,size:Un,disabled:Hn=at,form:hr,colon:Pr,labelAlign:Tr,labelWrap:Lr,labelCol:Cr,wrapperCol:Rr,hideRequiredMark:Xr,layout:oa="horizontal",scrollToFirstError:ta,requiredMark:xa,onFinishFailed:Fa,name:Ur,style:ya,feedbackIcons:Xa,variant:Ia}=pt,pa=ae(pt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),kr=(0,ye.Z)(Un),Za=ce.useContext(ue.Z),Sa=ce.useMemo(()=>xa!==void 0?xa:Xr?!1:ar!==void 0?ar:!0,[Xr,xa,ar]),la=Pr!=null?Pr:mr,Kr=gt("form",Kt),Ya=(0,ke.Z)(Kr),[Mi,ji,za]=Le(Kr,Ya),Di=Se()(Kr,`${Kr}-${oa}`,{[`${Kr}-hide-required-mark`]:Sa===!1,[`${Kr}-rtl`]:cn==="rtl",[`${Kr}-${kr}`]:kr},za,Ya,ji,Tt,On,Kn),[mi]=zt(hr),{__INTERNAL__:Wi}=mi;Wi.name=Ur;const Ei=ce.useMemo(()=>({name:Ur,labelAlign:Tr,labelCol:Cr,labelWrap:Lr,wrapperCol:Rr,vertical:oa==="vertical",colon:la,requiredMark:Sa,itemRef:Wi.itemRef,form:mi,feedbackIcons:Xa}),[Ur,Tr,Cr,Rr,oa,la,Sa,mi,Xa]),ei=ce.useRef(null);ce.useImperativeHandle(Zt,()=>{var xr;return Object.assign(Object.assign({},mi),{nativeElement:(xr=ei.current)===null||xr===void 0?void 0:xr.nativeElement})});const Ar=(xr,Sr)=>{if(xr){let tr={block:"nearest"};typeof xr=="object"&&(tr=Object.assign(Object.assign({},tr),xr)),mi.scrollToField(Sr,tr)}},Jn=xr=>{if(Fa==null||Fa(xr),xr.errorFields.length){const Sr=xr.errorFields[0].name;if(ta!==void 0){Ar(ta,Sr);return}At!==void 0&&Ar(At,Sr)}};return Mi(ce.createElement(y.pg.Provider,{value:Ia},ce.createElement(Ie.n,{disabled:Hn},ce.createElement(vt.Z.Provider,{value:kr},ce.createElement(y.RV,{validateMessages:Za},ce.createElement(y.q3.Provider,{value:Ei},ce.createElement(je.default,Object.assign({id:Ur},pa,{name:Ur,onFinishFailed:Jn,form:mi,ref:ei,style:Object.assign(Object.assign({},Mt),ya),className:Di}))))))))};var he=ce.forwardRef(re),ie=E(41799),me=E(8654),He=E(22703),It=E(32383),Xe=E(11592);function Ke(pt){if(typeof pt=="function")return pt;const Zt=(0,Xe.Z)(pt);return Zt.length<=1?Zt[0]:Zt}const yt=()=>{const{status:pt,errors:Zt=[],warnings:at=[]}=ce.useContext(y.aM);return{status:pt,errors:Zt,warnings:at}};yt.Context=y.aM;var Bt=yt,_t=E(16089);function Qe(pt){const[Zt,at]=ce.useState(pt),gt=ce.useRef(null),cn=ce.useRef([]),ar=ce.useRef(!1);ce.useEffect(()=>(ar.current=!1,()=>{ar.current=!0,_t.Z.cancel(gt.current),gt.current=null}),[]);function mr(At){ar.current||(gt.current===null&&(cn.current=[],gt.current=(0,_t.Z)(()=>{gt.current=null,at(Tt=>{let Mt=Tt;return cn.current.forEach(Kt=>{Mt=Kt(Mt)}),Mt})})),cn.current.push(At))}return[Zt,mr]}function tt(){const{itemRef:pt}=ce.useContext(y.q3),Zt=ce.useRef({});function at(gt,cn){const ar=cn&&typeof cn=="object"&&(0,me.C4)(cn),mr=gt.join("_");return(Zt.current.name!==mr||Zt.current.originRef!==ar)&&(Zt.current.name=mr,Zt.current.originRef=ar,Zt.current.ref=(0,me.sQ)(pt(gt),ar)),Zt.current.ref}return at}var Vt=E(29194),on=E(34280),Fn=E(2738),gn=E(65970),Lt=E(70425),Qt=E(5472);const jt=pt=>{const{formItemCls:Zt}=pt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Zt}-control`]:{display:"flex"}}}};var rt=(0,Ne.bk)(["Form","item-item"],(pt,Zt)=>{let{rootPrefixCls:at}=Zt;const gt=pe(pt,at);return[jt(gt)]}),Nt=function(pt,Zt){var at={};for(var gt in pt)Object.prototype.hasOwnProperty.call(pt,gt)&&Zt.indexOf(gt)<0&&(at[gt]=pt[gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,gt=Object.getOwnPropertySymbols(pt);cn<gt.length;cn++)Zt.indexOf(gt[cn])<0&&Object.prototype.propertyIsEnumerable.call(pt,gt[cn])&&(at[gt[cn]]=pt[gt[cn]]);return at};const fn=24;var lt=pt=>{const{prefixCls:Zt,status:at,labelCol:gt,wrapperCol:cn,children:ar,errors:mr,warnings:At,_internalItemRender:Tt,extra:Mt,help:Kt,fieldId:On,marginBottom:Kn,onErrorVisibleChanged:Un,label:Hn}=pt,hr=`${Zt}-item`,Pr=ce.useContext(y.q3),Tr=ce.useMemo(()=>{let pa=Object.assign({},cn||Pr.wrapperCol||{});return Hn===null&&!gt&&!cn&&Pr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Za=>{const Sa=Za?[Za]:[],la=(0,Lt.U2)(Pr.labelCol,Sa),Kr=typeof la=="object"?la:{},Ya=(0,Lt.U2)(pa,Sa),Mi=typeof Ya=="object"?Ya:{};"span"in Kr&&!("offset"in Mi)&&Kr.span<fn&&(pa=(0,Lt.t8)(pa,[].concat(Sa,["offset"]),Kr.span))}),pa},[cn,Pr]),Lr=Se()(`${hr}-control`,Tr.className),Cr=ce.useMemo(()=>{const{labelCol:pa,wrapperCol:kr}=Pr;return Nt(Pr,["labelCol","wrapperCol"])},[Pr]),Rr=ce.useRef(null),[Xr,oa]=ce.useState(0);(0,on.Z)(()=>{Mt&&Rr.current?oa(Rr.current.clientHeight):oa(0)},[Mt]);const ta=ce.createElement("div",{className:`${hr}-control-input`},ce.createElement("div",{className:`${hr}-control-input-content`},ar)),xa=ce.useMemo(()=>({prefixCls:Zt,status:at}),[Zt,at]),Fa=Kn!==null||mr.length||At.length?ce.createElement(y.Rk.Provider,{value:xa},ce.createElement(Ye,{fieldId:On,errors:mr,warnings:At,help:Kt,helpStatus:at,className:`${hr}-explain-connected`,onVisibleChanged:Un})):null,Ur={};On&&(Ur.id=`${On}_extra`);const ya=Mt?ce.createElement("div",Object.assign({},Ur,{className:`${hr}-extra`,ref:Rr}),Mt):null,Xa=Fa||ya?ce.createElement("div",{className:`${hr}-additional`,style:Kn?{minHeight:Kn+Xr}:{}},Fa,ya):null,Ia=Tt&&Tt.mark==="pro_table_render"&&Tt.render?Tt.render(pt,{input:ta,errorList:Fa,extra:ya}):ce.createElement(ce.Fragment,null,ta,Xa);return ce.createElement(y.q3.Provider,{value:Cr},ce.createElement(Qt.Z,Object.assign({},Tr,{className:Lr}),Ia),ce.createElement(rt,{prefixCls:Zt}))},Rt=E(61485),en=E(9017),Pt=E(85981),Yt=E(25399),Gt=function(pt,Zt){var at={};for(var gt in pt)Object.prototype.hasOwnProperty.call(pt,gt)&&Zt.indexOf(gt)<0&&(at[gt]=pt[gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,gt=Object.getOwnPropertySymbols(pt);cn<gt.length;cn++)Zt.indexOf(gt[cn])<0&&Object.prototype.propertyIsEnumerable.call(pt,gt[cn])&&(at[gt[cn]]=pt[gt[cn]]);return at};function Sn(pt){return pt?typeof pt=="object"&&!ce.isValidElement(pt)?pt:{title:pt}:null}var Dn=pt=>{let{prefixCls:Zt,label:at,htmlFor:gt,labelCol:cn,labelAlign:ar,colon:mr,required:At,requiredMark:Tt,tooltip:Mt,vertical:Kt}=pt;var On;const[Kn]=(0,en.Z)("Form"),{labelAlign:Un,labelCol:Hn,labelWrap:hr,colon:Pr}=ce.useContext(y.q3);if(!at)return null;const Tr=cn||Hn||{},Lr=ar||Un,Cr=`${Zt}-item-label`,Rr=Se()(Cr,Lr==="left"&&`${Cr}-left`,Tr.className,{[`${Cr}-wrap`]:!!hr});let Xr=at;const oa=mr===!0||Pr!==!1&&mr!==!1;oa&&!Kt&&typeof at=="string"&&at.trim()&&(Xr=at.replace(/[:|:]\s*$/,""));const xa=Sn(Mt);if(xa){const{icon:pa=ce.createElement(Rt.Z,null)}=xa,kr=Gt(xa,["icon"]),Za=ce.createElement(Yt.Z,Object.assign({},kr),ce.cloneElement(pa,{className:`${Zt}-item-tooltip`,title:"",onClick:Sa=>{Sa.preventDefault()},tabIndex:null}));Xr=ce.createElement(ce.Fragment,null,Xr,Za)}const Fa=Tt==="optional",Ur=typeof Tt=="function",ya=Tt===!1;Ur?Xr=Tt(Xr,{required:!!At}):Fa&&!At&&(Xr=ce.createElement(ce.Fragment,null,Xr,ce.createElement("span",{className:`${Zt}-item-optional`,title:""},(Kn==null?void 0:Kn.optional)||((On=Pt.Z.Form)===null||On===void 0?void 0:On.optional))));let Xa;ya?Xa="hidden":(Fa||Ur)&&(Xa="optional");const Ia=Se()({[`${Zt}-item-required`]:At,[`${Zt}-item-required-mark-${Xa}`]:Xa,[`${Zt}-item-no-colon`]:!oa});return ce.createElement(Qt.Z,Object.assign({},Tr,{className:Rr}),ce.createElement("label",{htmlFor:gt,className:Ia,title:typeof at=="string"?at:""},Xr))},Zn=E(29679),Ot=E(19248),Wt=E(96512),ln=E(58617);const bn={success:Zn.Z,warning:Wt.Z,error:Ot.Z,validating:ln.Z};function tn(pt){let{children:Zt,errors:at,warnings:gt,hasFeedback:cn,validateStatus:ar,prefixCls:mr,meta:At,noStyle:Tt}=pt;const Mt=`${mr}-item`,{feedbackIcons:Kt}=ce.useContext(y.q3),On=xt(at,gt,At,null,!!cn,ar),{isFormItemInput:Kn,status:Un,hasFeedback:Hn,feedbackIcon:hr}=ce.useContext(y.aM),Pr=ce.useMemo(()=>{var Tr;let Lr;if(cn){const Rr=cn!==!0&&cn.icons||Kt,Xr=On&&((Tr=Rr==null?void 0:Rr({status:On,errors:at,warnings:gt}))===null||Tr===void 0?void 0:Tr[On]),oa=On&&bn[On];Lr=Xr!==!1&&oa?ce.createElement("span",{className:Se()(`${Mt}-feedback-icon`,`${Mt}-feedback-icon-${On}`)},Xr||ce.createElement(oa,null)):null}const Cr={status:On||"",errors:at,warnings:gt,hasFeedback:!!cn,feedbackIcon:Lr,isFormItemInput:!0};return Tt&&(Cr.status=(On!=null?On:Un)||"",Cr.isFormItemInput=Kn,Cr.hasFeedback=!!(cn!=null?cn:Hn),Cr.feedbackIcon=cn!==void 0?Cr.feedbackIcon:hr),Cr},[On,cn,Tt,Kn,Un]);return ce.createElement(y.aM.Provider,{value:Pr},Zt)}var wn=function(pt,Zt){var at={};for(var gt in pt)Object.prototype.hasOwnProperty.call(pt,gt)&&Zt.indexOf(gt)<0&&(at[gt]=pt[gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,gt=Object.getOwnPropertySymbols(pt);cn<gt.length;cn++)Zt.indexOf(gt[cn])<0&&Object.prototype.propertyIsEnumerable.call(pt,gt[cn])&&(at[gt[cn]]=pt[gt[cn]]);return at};function Cn(pt){const{prefixCls:Zt,className:at,rootClassName:gt,style:cn,help:ar,errors:mr,warnings:At,validateStatus:Tt,meta:Mt,hasFeedback:Kt,hidden:On,children:Kn,fieldId:Un,required:Hn,isRequired:hr,onSubItemMetaChange:Pr,layout:Tr}=pt,Lr=wn(pt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Cr=`${Zt}-item`,{requiredMark:Rr,vertical:Xr}=ce.useContext(y.q3),oa=Xr||Tr==="vertical",ta=ce.useRef(null),xa=De(mr),Fa=De(At),Ur=ar!=null,ya=!!(Ur||mr.length||At.length),Xa=!!ta.current&&(0,Vt.Z)(ta.current),[Ia,pa]=ce.useState(null);(0,on.Z)(()=>{if(ya&&ta.current){const Kr=getComputedStyle(ta.current);pa(parseInt(Kr.marginBottom,10))}},[ya,Xa]);const kr=Kr=>{Kr||pa(null)},Sa=function(){let Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ya=Kr?xa:Mt.errors,Mi=Kr?Fa:Mt.warnings;return xt(Ya,Mi,Mt,"",!!Kt,Tt)}(),la=Se()(Cr,at,gt,{[`${Cr}-with-help`]:Ur||xa.length||Fa.length,[`${Cr}-has-feedback`]:Sa&&Kt,[`${Cr}-has-success`]:Sa==="success",[`${Cr}-has-warning`]:Sa==="warning",[`${Cr}-has-error`]:Sa==="error",[`${Cr}-is-validating`]:Sa==="validating",[`${Cr}-hidden`]:On,[`${Cr}-${Tr}`]:Tr});return ce.createElement("div",{className:la,style:cn,ref:ta},ce.createElement(gn.Z,Object.assign({className:`${Cr}-row`},(0,Fn.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"])),ce.createElement(Dn,Object.assign({htmlFor:Un},pt,{requiredMark:Rr,required:Hn!=null?Hn:hr,prefixCls:Zt,vertical:oa})),ce.createElement(lt,Object.assign({},pt,Mt,{errors:xa,warnings:Fa,prefixCls:Zt,status:Sa,help:ar,marginBottom:Ia,onErrorVisibleChanged:kr}),ce.createElement(y.qI.Provider,{value:Pr},ce.createElement(tn,{prefixCls:Zt,meta:Mt,errors:Mt.errors,warnings:Mt.warnings,hasFeedback:Kt,validateStatus:Sa},Kn)))),!!Ia&&ce.createElement("div",{className:`${Cr}-margin-offset`,style:{marginBottom:-Ia}}))}const Pn="__SPLIT__",vr=null;function Qn(pt,Zt){const at=Object.keys(pt),gt=Object.keys(Zt);return at.length===gt.length&&at.every(cn=>{const ar=pt[cn],mr=Zt[cn];return ar===mr||typeof ar=="function"||typeof mr=="function"})}const dr=ce.memo(pt=>{let{children:Zt}=pt;return Zt},(pt,Zt)=>Qn(pt.control,Zt.control)&&pt.update===Zt.update&&pt.childProps.length===Zt.childProps.length&&pt.childProps.every((at,gt)=>at===Zt.childProps[gt]));function br(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function yr(pt){const{name:Zt,noStyle:at,className:gt,dependencies:cn,prefixCls:ar,shouldUpdate:mr,rules:At,children:Tt,required:Mt,label:Kt,messageVariables:On,trigger:Kn="onChange",validateTrigger:Un,hidden:Hn,help:hr,layout:Pr}=pt,{getPrefixCls:Tr}=ce.useContext(it.E_),{name:Lr}=ce.useContext(y.q3),Cr=Ke(Tt),Rr=typeof Cr=="function",Xr=ce.useContext(y.qI),{validateTrigger:oa}=ce.useContext(je.FieldContext),ta=Un!==void 0?Un:oa,xa=Zt!=null,Fa=Tr("form",ar),Ur=(0,ke.Z)(Fa),[ya,Xa,Ia]=Le(Fa,Ur),pa=(0,It.ln)("Form.Item"),kr=ce.useContext(je.ListContext),Za=ce.useRef(null),[Sa,la]=Qe({}),[Kr,Ya]=(0,ie.Z)(()=>br()),Mi=ei=>{const Ar=kr==null?void 0:kr.getKey(ei.name);if(Ya(ei.destroy?br():ei,!0),at&&hr!==!1&&Xr){let Jn=ei.name;if(ei.destroy)Jn=Za.current||Jn;else if(Ar!==void 0){const[xr,Sr]=Ar;Jn=[xr].concat((0,ge.Z)(Sr)),Za.current=Jn}Xr(ei,Jn)}},ji=(ei,Ar)=>{la(Jn=>{const xr=Object.assign({},Jn),tr=[].concat((0,ge.Z)(ei.name.slice(0,-1)),(0,ge.Z)(Ar)).join(Pn);return ei.destroy?delete xr[tr]:xr[tr]=ei,xr})},[za,Di]=ce.useMemo(()=>{const ei=(0,ge.Z)(Kr.errors),Ar=(0,ge.Z)(Kr.warnings);return Object.values(Sa).forEach(Jn=>{ei.push.apply(ei,(0,ge.Z)(Jn.errors||[])),Ar.push.apply(Ar,(0,ge.Z)(Jn.warnings||[]))}),[ei,Ar]},[Sa,Kr.errors,Kr.warnings]),mi=tt();function Wi(ei,Ar,Jn){return at&&!Hn?ce.createElement(tn,{prefixCls:Fa,hasFeedback:pt.hasFeedback,validateStatus:pt.validateStatus,meta:Kr,errors:za,warnings:Di,noStyle:!0},ei):ce.createElement(Cn,Object.assign({key:"row"},pt,{className:Se()(gt,Ia,Ur,Xa),prefixCls:Fa,fieldId:Ar,isRequired:Jn,errors:za,warnings:Di,meta:Kr,onSubItemMetaChange:ji,layout:Pr}),ei)}if(!xa&&!Rr&&!cn)return ya(Wi(Cr));let Ei={};return typeof Kt=="string"?Ei.label=Kt:Zt&&(Ei.label=String(Zt)),On&&(Ei=Object.assign(Object.assign({},Ei),On)),ya(ce.createElement(je.Field,Object.assign({},pt,{messageVariables:Ei,trigger:Kn,validateTrigger:ta,onMetaChange:Mi}),(ei,Ar,Jn)=>{const xr=ot(Zt).length&&Ar?Ar.name:[],Sr=Xt(xr,Lr),tr=Mt!==void 0?Mt:!!(At!=null&&At.some(Er=>{if(Er&&typeof Er=="object"&&Er.required&&!Er.warningOnly)return!0;if(typeof Er=="function"){const Dr=Er(Jn);return(Dr==null?void 0:Dr.required)&&!(Dr!=null&&Dr.warningOnly)}return!1})),$r=Object.assign({},ei);let sa=null;if(Array.isArray(Cr)&&xa)sa=Cr;else if(!(Rr&&(!(mr||cn)||xa))){if(!(cn&&!Rr&&!xa))if(ce.isValidElement(Cr)){const Er=Object.assign(Object.assign({},Cr.props),$r);if(Er.id||(Er.id=Sr),hr||za.length>0||Di.length>0||pt.extra){const Qr=[];(hr||za.length>0)&&Qr.push(`${Sr}_help`),pt.extra&&Qr.push(`${Sr}_extra`),Er["aria-describedby"]=Qr.join(" ")}za.length>0&&(Er["aria-invalid"]="true"),tr&&(Er["aria-required"]="true"),(0,me.Yr)(Cr)&&(Er.ref=mi(xr,Cr)),new Set([].concat((0,ge.Z)(ot(Kn)),(0,ge.Z)(ot(ta)))).forEach(Qr=>{Er[Qr]=function(){for(var Na,$a,ea,ai,gi,zi=arguments.length,Ui=new Array(zi),Ji=0;Ji<zi;Ji++)Ui[Ji]=arguments[Ji];(ea=$r[Qr])===null||ea===void 0||(Na=ea).call.apply(Na,[$r].concat(Ui)),(gi=(ai=Cr.props)[Qr])===null||gi===void 0||($a=gi).call.apply($a,[ai].concat(Ui))}});const jr=[Er["aria-required"],Er["aria-invalid"],Er["aria-describedby"]];sa=ce.createElement(dr,{control:$r,update:Cr,childProps:jr},(0,He.Tm)(Cr,Er))}else Rr&&(mr||cn)&&!xa?sa=Cr(Jn):sa=Cr}return Wi(sa,Sr,tr)}))}const Vr=yr;Vr.useStatus=Bt;var Zr=Vr,An=function(pt,Zt){var at={};for(var gt in pt)Object.prototype.hasOwnProperty.call(pt,gt)&&Zt.indexOf(gt)<0&&(at[gt]=pt[gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,gt=Object.getOwnPropertySymbols(pt);cn<gt.length;cn++)Zt.indexOf(gt[cn])<0&&Object.prototype.propertyIsEnumerable.call(pt,gt[cn])&&(at[gt[cn]]=pt[gt[cn]]);return at},fr=pt=>{var{prefixCls:Zt,children:at}=pt,gt=An(pt,["prefixCls","children"]);const{getPrefixCls:cn}=ce.useContext(it.E_),ar=cn("form",Zt),mr=ce.useMemo(()=>({prefixCls:ar,status:"error"}),[ar]);return ce.createElement(je.List,Object.assign({},gt),(At,Tt,Mt)=>ce.createElement(y.Rk.Provider,{value:mr},at(At.map(Kt=>Object.assign(Object.assign({},Kt),{fieldKey:Kt.key})),Tt,{errors:Mt.errors,warnings:Mt.warnings})))};function ur(){const{form:pt}=ce.useContext(y.q3);return pt}const kt=he;kt.Item=Zr,kt.List=fr,kt.ErrorList=Ye,kt.useForm=zt,kt.useFormInstance=ur,kt.useWatch=je.useWatch,kt.Provider=y.RV,kt.create=()=>{};var Ut=kt},4875:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return yn}});var y=E(59301),ge=E(84105),ce=E(87395),_e=E(92310),Se=E.n(_e),Ee=E(60499),Ce=E(18642),ke=E(43749),De=E(72190),fe=E(42244),We=E(38705),Te=E(17212);function dt(){return typeof BigInt=="function"}function Ge(lt){return!lt&<!==0&&!Number.isNaN(lt)||!String(lt).trim()}function Ne(lt){var Rt=lt.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",Yt=Pt.split("."),Gt=Yt[0]||"0",Sn=Yt[1]||"0";Gt==="0"&&Sn==="0"&&(en=!1);var jn=en?"-":"";return{negative:en,negativeStr:jn,trimStr:Pt,integerStr:Gt,decimalStr:Sn,fullStr:"".concat(jn).concat(Pt)}}function we(lt){var Rt=String(lt);return!Number.isNaN(Number(Rt))&&Rt.includes("e")}function Pe(lt){var Rt=String(lt);if(we(lt)){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(".")&&et(Rt)?Rt.length-Rt.indexOf(".")-1:0}function Fe(lt){var Rt=String(lt);if(we(lt)){if(lt>Number.MAX_SAFE_INTEGER)return String(dt()?BigInt(lt).toString():Number.MAX_SAFE_INTEGER);if(lt<Number.MIN_SAFE_INTEGER)return String(dt()?BigInt(lt).toString():Number.MIN_SAFE_INTEGER);Rt=lt.toFixed(Pe(Rt))}return Ne(Rt).fullStr}function et(lt){return typeof lt=="number"?!Number.isNaN(lt):lt?/^\s*-?\d+(\.\d+)?\s*$/.test(lt)||/^\s*-?\d+\.\s*$/.test(lt)||/^\s*-?\.\d+\s*$/.test(lt):!1}var St=function(){function lt(Rt){if((0,We.Z)(this,lt),(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(we(en)&&(en=Number(en)),en=typeof en=="string"?en:Fe(en),et(en)){var Pt=Ne(en);this.negative=Pt.negative;var Yt=Pt.trimStr.split(".");this.integer=BigInt(Yt[0]);var Gt=Yt[1]||"0";this.decimal=BigInt(Gt),this.decimalLen=Gt.length}else this.nan=!0}return(0,Te.Z)(lt,[{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 lt(this.toString());return en.negative=!en.negative,en}},{key:"cal",value:function(en,Pt,Yt){var Gt=Math.max(this.getDecimalStr().length,en.getDecimalStr().length),Sn=this.alignDecimal(Gt),jn=en.alignDecimal(Gt),Dn=Pt(Sn,jn).toString(),Zn=Yt(Gt),Ot=Ne(Dn),Wt=Ot.negativeStr,ln=Ot.trimStr,bn="".concat(Wt).concat(ln.padStart(Zn+1,"0"));return new lt("".concat(bn.slice(0,-Zn),".").concat(bn.slice(-Zn)))}},{key:"add",value:function(en){if(this.isInvalidate())return new lt(en);var Pt=new lt(en);return Pt.isInvalidate()?this:this.cal(Pt,function(Yt,Gt){return Yt+Gt},function(Yt){return Yt})}},{key:"multi",value:function(en){var Pt=new lt(en);return this.isInvalidate()||Pt.isInvalidate()?new lt(NaN):this.cal(Pt,function(Yt,Gt){return Yt*Gt},function(Yt){return Yt*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}}]),lt}(),Ae=function(){function lt(Rt){if((0,We.Z)(this,lt),(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)(lt,[{key:"negate",value:function(){return new lt(-this.toNumber())}},{key:"add",value:function(en){if(this.isInvalidate())return new lt(en);var Pt=Number(en);if(Number.isNaN(Pt))return this;var Yt=this.number+Pt;if(Yt>Number.MAX_SAFE_INTEGER)return new lt(Number.MAX_SAFE_INTEGER);if(Yt<Number.MIN_SAFE_INTEGER)return new lt(Number.MIN_SAFE_INTEGER);var Gt=Math.max(Pe(this.number),Pe(Pt));return new lt(Yt.toFixed(Gt))}},{key:"multi",value:function(en){var Pt=Number(en);if(this.isInvalidate()||Number.isNaN(Pt))return new lt(NaN);var Yt=this.number*Pt;if(Yt>Number.MAX_SAFE_INTEGER)return new lt(Number.MAX_SAFE_INTEGER);if(Yt<Number.MIN_SAFE_INTEGER)return new lt(Number.MIN_SAFE_INTEGER);var Gt=Math.max(Pe(this.number),Pe(Pt));return new lt(Yt.toFixed(Gt))}},{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()?"":Fe(this.number):this.origin}}]),lt}();function Oe(lt){return dt()?new St(lt):new Ae(lt)}function qe(lt,Rt,en){var Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(lt==="")return"";var Yt=Ne(lt),Gt=Yt.negativeStr,Sn=Yt.integerStr,jn=Yt.decimalStr,Dn="".concat(Rt).concat(jn),Zn="".concat(Gt).concat(Sn);if(en>=0){var Ot=Number(jn[en]);if(Ot>=5&&!Pt){var Wt=Oe(lt).add("".concat(Gt,"0.").concat("0".repeat(en)).concat(10-Ot));return qe(Wt.toString(),Rt,en,Pt)}return en===0?Zn:"".concat(Zn).concat(Rt).concat(jn.padEnd(en,"0").slice(0,en))}return Dn===".0"?Zn:"".concat(Zn).concat(Dn)}var Je=Oe,ct=E(36901),bt=E(34280);function st(lt,Rt){return typeof Proxy!="undefined"&<?new Proxy(lt,{get:function(Pt,Yt){if(Rt[Yt])return Rt[Yt];var Gt=Pt[Yt];return typeof Gt=="function"?Gt.bind(Pt):Gt}}):lt}var $e=E(8654),pe=E(48736);function Le(lt,Rt){var en=(0,y.useRef)(null);function Pt(){try{var Gt=lt.selectionStart,Sn=lt.selectionEnd,jn=lt.value,Dn=jn.substring(0,Gt),Zn=jn.substring(Sn);en.current={start:Gt,end:Sn,value:jn,beforeTxt:Dn,afterTxt:Zn}}catch(Ot){}}function Yt(){if(lt&&en.current&&Rt)try{var Gt=lt.value,Sn=en.current,jn=Sn.beforeTxt,Dn=Sn.afterTxt,Zn=Sn.start,Ot=Gt.length;if(Gt.startsWith(jn))Ot=jn.length;else if(Gt.endsWith(Dn))Ot=Gt.length-en.current.afterTxt.length;else{var Wt=jn[Zn-1],ln=Gt.indexOf(Wt,Zn-1);ln!==-1&&(Ot=ln+1)}lt.setSelectionRange(Ot,Ot)}catch(bn){(0,pe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(bn.message))}}return[Pt,Yt]}var xe=E(49658),de=function(){var Rt=(0,y.useState)(!1),en=(0,De.Z)(Rt,2),Pt=en[0],Yt=en[1];return(0,bt.Z)(function(){Yt((0,xe.Z)())},[]),Pt},Ct=de,Ye=E(16089),je=200,it=600;function Ie(lt){var Rt=lt.prefixCls,en=lt.upNode,Pt=lt.downNode,Yt=lt.upDisabled,Gt=lt.downDisabled,Sn=lt.onStep,jn=y.useRef(),Dn=y.useRef([]),Zn=y.useRef();Zn.current=Sn;var Ot=function(){clearTimeout(jn.current)},Wt=function(Qn,dr){Qn.preventDefault(),Ot(),Zn.current(dr);function br(){Zn.current(dr),jn.current=setTimeout(br,je)}jn.current=setTimeout(br,it)};y.useEffect(function(){return function(){Ot(),Dn.current.forEach(function(vr){return Ye.Z.cancel(vr)})}},[]);var ln=Ct();if(ln)return null;var bn="".concat(Rt,"-handler"),tn=Se()(bn,"".concat(bn,"-up"),(0,Ce.Z)({},"".concat(bn,"-up-disabled"),Yt)),wn=Se()(bn,"".concat(bn,"-down"),(0,Ce.Z)({},"".concat(bn,"-down-disabled"),Gt)),Cn=function(){return Dn.current.push((0,Ye.Z)(Ot))},Pn={unselectable:"on",role:"button",onMouseUp:Cn,onMouseLeave:Cn};return y.createElement("div",{className:"".concat(bn,"-wrap")},y.createElement("span",(0,Ee.Z)({},Pn,{onMouseDown:function(Qn){Wt(Qn,!0)},"aria-label":"Increase Value","aria-disabled":Yt,className:tn}),en||y.createElement("span",{unselectable:"on",className:"".concat(Rt,"-handler-up-inner")})),y.createElement("span",(0,Ee.Z)({},Pn,{onMouseDown:function(Qn){Wt(Qn,!1)},"aria-label":"Decrease Value","aria-disabled":Gt,className:wn}),Pt||y.createElement("span",{unselectable:"on",className:"".concat(Rt,"-handler-down-inner")})))}function ye(lt){var Rt=typeof lt=="number"?Fe(lt):Ne(lt).fullStr,en=Rt.includes(".");return en?Ne(Rt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:lt+"0"}var vt=E(30292),Ht=function(){var lt=(0,y.useRef)(0),Rt=function(){Ye.Z.cancel(lt.current)};return(0,y.useEffect)(function(){return Rt},[]),function(en){Rt(),lt.current=(0,Ye.Z)(function(){en()})}},Et=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Be=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ft=function(Rt,en){return Rt||en.isEmpty()?en.toString():en.toNumber()},ot=function(Rt){var en=Je(Rt);return en.isInvalidate()?null:en},Xt=y.forwardRef(function(lt,Rt){var en=lt.prefixCls,Pt=lt.className,Yt=lt.style,Gt=lt.min,Sn=lt.max,jn=lt.step,Dn=jn===void 0?1:jn,Zn=lt.defaultValue,Ot=lt.value,Wt=lt.disabled,ln=lt.readOnly,bn=lt.upHandler,tn=lt.downHandler,wn=lt.keyboard,Cn=lt.changeOnWheel,Pn=Cn===void 0?!1:Cn,vr=lt.controls,Qn=vr===void 0?!0:vr,dr=lt.classNames,br=lt.stringMode,yr=lt.parser,Vr=lt.formatter,Zr=lt.precision,An=lt.decimalSeparator,$n=lt.onChange,fr=lt.onInput,ur=lt.onPressEnter,kt=lt.onStep,Ut=lt.changeOnBlur,pt=Ut===void 0?!0:Ut,Zt=lt.domRef,at=(0,fe.Z)(lt,Et),gt="".concat(en,"-input"),cn=y.useRef(null),ar=y.useState(!1),mr=(0,De.Z)(ar,2),At=mr[0],Tt=mr[1],Mt=y.useRef(!1),Kt=y.useRef(!1),On=y.useRef(!1),Kn=y.useState(function(){return Je(Ot!=null?Ot:Zn)}),Un=(0,De.Z)(Kn,2),Hn=Un[0],hr=Un[1];function Pr(Sr){Ot===void 0&&hr(Sr)}var Tr=y.useCallback(function(Sr,tr){if(!tr)return Zr>=0?Zr:Math.max(Pe(Sr),Pe(Dn))},[Zr,Dn]),Lr=y.useCallback(function(Sr){var tr=String(Sr);if(yr)return yr(tr);var $r=tr;return An&&($r=$r.replace(An,".")),$r.replace(/[^\w.-]+/g,"")},[yr,An]),Cr=y.useRef(""),Rr=y.useCallback(function(Sr,tr){if(Vr)return Vr(Sr,{userTyping:tr,input:String(Cr.current)});var $r=typeof Sr=="number"?Fe(Sr):Sr;if(!tr){var sa=Tr($r,tr);if(et($r)&&(An||sa>=0)){var Er=An||".";$r=qe($r,Er,sa)}}return $r},[Vr,Tr,An]),Xr=y.useState(function(){var Sr=Zn!=null?Zn:Ot;return Hn.isInvalidate()&&["string","number"].includes((0,ke.Z)(Sr))?Number.isNaN(Sr)?"":Sr:Rr(Hn.toString(),!1)}),oa=(0,De.Z)(Xr,2),ta=oa[0],xa=oa[1];Cr.current=ta;function Fa(Sr,tr){xa(Rr(Sr.isInvalidate()?Sr.toString(!1):Sr.toString(!tr),tr))}var Ur=y.useMemo(function(){return ot(Sn)},[Sn,Zr]),ya=y.useMemo(function(){return ot(Gt)},[Gt,Zr]),Xa=y.useMemo(function(){return!Ur||!Hn||Hn.isInvalidate()?!1:Ur.lessEquals(Hn)},[Ur,Hn]),Ia=y.useMemo(function(){return!ya||!Hn||Hn.isInvalidate()?!1:Hn.lessEquals(ya)},[ya,Hn]),pa=Le(cn.current,At),kr=(0,De.Z)(pa,2),Za=kr[0],Sa=kr[1],la=function(tr){return Ur&&!tr.lessEquals(Ur)?Ur:ya&&!ya.lessEquals(tr)?ya:null},Kr=function(tr){return!la(tr)},Ya=function(tr,$r){var sa=tr,Er=Kr(sa)||sa.isEmpty();if(!sa.isEmpty()&&!$r&&(sa=la(sa)||sa,Er=!0),!ln&&!Wt&&Er){var Dr=sa.toString(),jr=Tr(Dr,$r);return jr>=0&&(sa=Je(qe(Dr,".",jr)),Kr(sa)||(sa=Je(qe(Dr,".",jr,!0)))),sa.equals(Hn)||(Pr(sa),$n==null||$n(sa.isEmpty()?null:ft(br,sa)),Ot===void 0&&Fa(sa,$r)),sa}return Hn},Mi=Ht(),ji=function Sr(tr){if(Za(),Cr.current=tr,xa(tr),!Kt.current){var $r=Lr(tr),sa=Je($r);sa.isNaN()||Ya(sa,!0)}fr==null||fr(tr),Mi(function(){var Er=tr;yr||(Er=tr.replace(/。/g,".")),Er!==tr&&Sr(Er)})},za=function(){Kt.current=!0},Di=function(){Kt.current=!1,ji(cn.current.value)},mi=function(tr){ji(tr.target.value)},Wi=function(tr){var $r;if(!(tr&&Xa||!tr&&Ia)){Mt.current=!1;var sa=Je(On.current?ye(Dn):Dn);tr||(sa=sa.negate());var Er=(Hn||Je(0)).add(sa.toString()),Dr=Ya(Er,!1);kt==null||kt(ft(br,Dr),{offset:On.current?ye(Dn):Dn,type:tr?"up":"down"}),($r=cn.current)===null||$r===void 0||$r.focus()}},Ei=function(tr){var $r=Je(Lr(ta)),sa;$r.isNaN()?sa=Ya(Hn,tr):sa=Ya($r,tr),Ot!==void 0?Fa(Hn,!1):sa.isNaN()||Fa(sa,!1)},ei=function(){Mt.current=!0},Ar=function(tr){var $r=tr.key,sa=tr.shiftKey;Mt.current=!0,On.current=sa,$r==="Enter"&&(Kt.current||(Mt.current=!1),Ei(!1),ur==null||ur(tr)),wn!==!1&&!Kt.current&&["Up","ArrowUp","Down","ArrowDown"].includes($r)&&(Wi($r==="Up"||$r==="ArrowUp"),tr.preventDefault())},Jn=function(){Mt.current=!1,On.current=!1};y.useEffect(function(){if(Pn&&At){var Sr=function(sa){Wi(sa.deltaY<0),sa.preventDefault()},tr=cn.current;if(tr)return tr.addEventListener("wheel",Sr,{passive:!1}),function(){return tr.removeEventListener("wheel",Sr)}}});var xr=function(){pt&&Ei(!1),Tt(!1),Mt.current=!1};return(0,bt.o)(function(){Hn.isInvalidate()||Fa(Hn,!1)},[Zr,Vr]),(0,bt.o)(function(){var Sr=Je(Ot);hr(Sr);var tr=Je(Lr(ta));(!Sr.equals(tr)||!Mt.current||Vr)&&Fa(Sr,Mt.current)},[Ot]),(0,bt.o)(function(){Vr&&Sa()},[ta]),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"),Wt),"".concat(en,"-readonly"),ln),"".concat(en,"-not-a-number"),Hn.isNaN()),"".concat(en,"-out-of-range"),!Hn.isInvalidate()&&!Kr(Hn))),style:Yt,onFocus:function(){Tt(!0)},onBlur:xr,onKeyDown:Ar,onKeyUp:Jn,onCompositionStart:za,onCompositionEnd:Di,onBeforeInput:ei},Qn&&y.createElement(Ie,{prefixCls:en,upNode:bn,downNode:tn,upDisabled:Xa,downDisabled:Ia,onStep:Wi}),y.createElement("div",{className:"".concat(gt,"-wrap")},y.createElement("input",(0,Ee.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Gt,"aria-valuemax":Sn,"aria-valuenow":Hn.isInvalidate()?null:Hn.toString(),step:Dn},at,{ref:(0,$e.sQ)(cn,Rt),className:gt,value:ta,onChange:mi,disabled:Wt,readOnly:ln}))))}),xt=y.forwardRef(function(lt,Rt){var en=lt.disabled,Pt=lt.style,Yt=lt.prefixCls,Gt=Yt===void 0?"rc-input-number":Yt,Sn=lt.value,jn=lt.prefix,Dn=lt.suffix,Zn=lt.addonBefore,Ot=lt.addonAfter,Wt=lt.className,ln=lt.classNames,bn=(0,fe.Z)(lt,Be),tn=y.useRef(null),wn=y.useRef(null),Cn=y.useRef(null),Pn=function(Qn){Cn.current&&(0,vt.nH)(Cn.current,Qn)};return y.useImperativeHandle(Rt,function(){return st(Cn.current,{focus:Pn,nativeElement:tn.current.nativeElement||wn.current})}),y.createElement(ct.BaseInput,{className:Wt,triggerFocus:Pn,prefixCls:Gt,value:Sn,disabled:en,style:Pt,prefix:jn,suffix:Dn,addonAfter:Ot,addonBefore:Zn,classNames:ln,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:tn},y.createElement(Xt,(0,Ee.Z)({prefixCls:Gt,disabled:en,ref:Cn,domRef:wn,className:ln==null?void 0:ln.input},bn)))}),wt=xt,ht=wt,un=E(62487),zt=E(82855),ue=E(48755),ae=E(60840),re=E(2171),se=E(83397),he=E(31756),ie=E(56553),me=E(24971),He=E(70045),It=E(36237),Xe=E(53075),Ke=E(64910),yt=E(39082),Bt=E(63356),_t=E(56119),Qe=E(16931),tt=E(51636),Vt=E(17835);const on=lt=>{var Rt;const en=(Rt=lt.handleVisible)!==null&&Rt!==void 0?Rt:"auto",Pt=lt.controlHeightSM-lt.lineWidth*2;return Object.assign(Object.assign({},(0,Ke.T)(lt)),{controlWidth:90,handleWidth:Pt,handleFontSize:lt.fontSize/2,handleVisible:en,handleActiveBg:lt.colorFillAlter,handleBg:lt.colorBgContainer,filledHandleBg:new Vt.FastColor(lt.colorFillSecondary).onBackground(lt.colorBgContainer).toHexString(),handleHoverColor:lt.colorPrimary,handleBorderColor:lt.colorBorder,handleOpacity:en===!0?1:0,handleVisibleWidth:en===!0?Pt:0})},Fn=(lt,Rt)=>{let{componentCls:en,borderRadiusSM:Pt,borderRadiusLG:Yt}=lt;const Gt=Rt==="lg"?Yt:Pt;return{[`&-${Rt}`]:{[`${en}-handler-wrap`]:{borderStartEndRadius:Gt,borderEndEndRadius:Gt},[`${en}-handler-up`]:{borderStartEndRadius:Gt},[`${en}-handler-down`]:{borderEndEndRadius:Gt}}}},gn=lt=>{const{componentCls:Rt,lineWidth:en,lineType:Pt,borderRadius:Yt,inputFontSizeSM:Gt,inputFontSizeLG:Sn,controlHeightLG:jn,controlHeightSM:Dn,colorError:Zn,paddingInlineSM:Ot,paddingBlockSM:Wt,paddingBlockLG:ln,paddingInlineLG:bn,colorTextDescription:tn,motionDurationMid:wn,handleHoverColor:Cn,handleOpacity:Pn,paddingInline:vr,paddingBlock:Qn,handleBg:dr,handleActiveBg:br,colorTextDisabled:yr,borderRadiusSM:Vr,borderRadiusLG:Zr,controlWidth:An,handleBorderColor:$n,filledHandleBg:fr,lineHeightLG:ur,calc:kt}=lt;return[{[Rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(lt)),(0,Xe.ik)(lt)),{display:"inline-block",width:An,margin:0,padding:0,borderRadius:Yt}),(0,yt.qG)(lt,{[`${Rt}-handler-wrap`]:{background:dr,[`${Rt}-handler-down`]:{borderBlockStart:`${(0,It.unit)(en)} ${Pt} ${$n}`}}})),(0,yt.H8)(lt,{[`${Rt}-handler-wrap`]:{background:fr,[`${Rt}-handler-down`]:{borderBlockStart:`${(0,It.unit)(en)} ${Pt} ${$n}`}},"&:focus-within":{[`${Rt}-handler-wrap`]:{background:dr}}})),(0,yt.vc)(lt,{[`${Rt}-handler-wrap`]:{background:dr,[`${Rt}-handler-down`]:{borderBlockStart:`${(0,It.unit)(en)} ${Pt} ${$n}`}}})),(0,yt.Mu)(lt)),{"&-rtl":{direction:"rtl",[`${Rt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Sn,lineHeight:ur,borderRadius:Zr,[`input${Rt}-input`]:{height:kt(jn).sub(kt(en).mul(2)).equal(),padding:`${(0,It.unit)(ln)} ${(0,It.unit)(bn)}`}},"&-sm":{padding:0,fontSize:Gt,borderRadius:Vr,[`input${Rt}-input`]:{height:kt(Dn).sub(kt(en).mul(2)).equal(),padding:`${(0,It.unit)(Wt)} ${(0,It.unit)(Ot)}`}},"&-out-of-range":{[`${Rt}-input-wrap`]:{input:{color:Zn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(lt)),(0,Xe.s7)(lt)),{"&-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:lt.fontSizeLG}},"&-sm":{[`${Rt}-group-addon`]:{borderRadius:Vr}}},(0,yt.ir)(lt)),(0,yt.S5)(lt)),{[`&: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,Bt.Wf)(lt)),{width:"100%",padding:`${(0,It.unit)(Qn)} ${(0,It.unit)(vr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Yt,outline:0,transition:`all ${wn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Xe.nz)(lt.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:lt.handleWidth,opacity:1}})},{[Rt]:Object.assign(Object.assign(Object.assign({[`${Rt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:lt.handleVisibleWidth,opacity:Pn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Yt,borderEndEndRadius:Yt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${wn}`,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:lt.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 ${wn} linear`,"&:active":{background:br},"&:hover":{height:"60%",[`
|
|
|
${Rt}-handler-up-inner,
|
|
|
${Rt}-handler-down-inner
|
|
|
`]:{color:Cn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Bt.Ro)()),{color:tn,transition:`all ${wn} linear`,userSelect:"none"})},[`${Rt}-handler-up`]:{borderStartEndRadius:Yt},[`${Rt}-handler-down`]:{borderEndEndRadius:Yt}},Fn(lt,"lg")),Fn(lt,"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:yr}})}]},Lt=lt=>{const{componentCls:Rt,paddingBlock:en,paddingInline:Pt,inputAffixPadding:Yt,controlWidth:Gt,borderRadiusLG:Sn,borderRadiusSM:jn,paddingInlineLG:Dn,paddingInlineSM:Zn,paddingBlockLG:Ot,paddingBlockSM:Wt,motionDurationMid:ln}=lt;return{[`${Rt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Rt}-input`]:{padding:`${(0,It.unit)(en)} 0`}},(0,Xe.ik)(lt)),{position:"relative",display:"inline-flex",alignItems:"center",width:Gt,padding:0,paddingInlineStart:Pt,"&-lg":{borderRadius:Sn,paddingInlineStart:Dn,[`input${Rt}-input`]:{padding:`${(0,It.unit)(Ot)} 0`}},"&-sm":{borderRadius:jn,paddingInlineStart:Zn,[`input${Rt}-input`]:{padding:`${(0,It.unit)(Wt)} 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:Yt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Pt,marginInlineStart:Yt,transition:`margin ${ln}`}},[`&:hover ${Rt}-handler-wrap, &-focused ${Rt}-handler-wrap`]:{width:lt.handleWidth,opacity:1},[`&:not(${Rt}-affix-wrapper-without-controls):hover ${Rt}-suffix`]:{marginInlineEnd:lt.calc(lt.handleWidth).add(Pt).equal()}})}};var Qt=(0,Qe.I$)("InputNumber",lt=>{const Rt=(0,tt.mergeToken)(lt,(0,Ke.e)(lt));return[gn(Rt),Lt(Rt),(0,_t.c)(Rt)]},on,{unitless:{handleOpacity:!0}}),jt=function(lt,Rt){var en={};for(var Pt in lt)Object.prototype.hasOwnProperty.call(lt,Pt)&&Rt.indexOf(Pt)<0&&(en[Pt]=lt[Pt]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Pt=Object.getOwnPropertySymbols(lt);Yt<Pt.length;Yt++)Rt.indexOf(Pt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(lt,Pt[Yt])&&(en[Pt[Yt]]=lt[Pt[Yt]]);return en};const rt=y.forwardRef((lt,Rt)=>{const{getPrefixCls:en,direction:Pt}=y.useContext(ue.E_),Yt=y.useRef(null);y.useImperativeHandle(Rt,()=>Yt.current);const{className:Gt,rootClassName:Sn,size:jn,disabled:Dn,prefixCls:Zn,addonBefore:Ot,addonAfter:Wt,prefix:ln,suffix:bn,bordered:tn,readOnly:wn,status:Cn,controls:Pn,variant:vr}=lt,Qn=jt(lt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),dr=en("input-number",Zn),br=(0,se.Z)(dr),[yr,Vr,Zr]=Qt(dr,br),{compactSize:An,compactItemClassnames:$n}=(0,He.ri)(dr,Pt);let fr=y.createElement(ce.Z,{className:`${dr}-handler-up-inner`}),ur=y.createElement(ge.Z,{className:`${dr}-handler-down-inner`});const kt=typeof Pn=="boolean"?Pn:void 0;typeof Pn=="object"&&(fr=typeof Pn.upIcon=="undefined"?fr:y.createElement("span",{className:`${dr}-handler-up-inner`},Pn.upIcon),ur=typeof Pn.downIcon=="undefined"?ur:y.createElement("span",{className:`${dr}-handler-down-inner`},Pn.downIcon));const{hasFeedback:Ut,status:pt,isFormItemInput:Zt,feedbackIcon:at}=y.useContext(ie.aM),gt=(0,zt.F)(pt,Cn),cn=(0,he.Z)(Un=>{var Hn;return(Hn=jn!=null?jn:An)!==null&&Hn!==void 0?Hn:Un}),ar=y.useContext(re.Z),mr=Dn!=null?Dn:ar,[At,Tt]=(0,me.Z)("inputNumber",vr,tn),Mt=Ut&&y.createElement(y.Fragment,null,at),Kt=Se()({[`${dr}-lg`]:cn==="large",[`${dr}-sm`]:cn==="small",[`${dr}-rtl`]:Pt==="rtl",[`${dr}-in-form-item`]:Zt},Vr),On=`${dr}-group`,Kn=y.createElement(ht,Object.assign({ref:Yt,disabled:mr,className:Se()(Zr,br,Gt,Sn,$n),upHandler:fr,downHandler:ur,prefixCls:dr,readOnly:wn,controls:kt,prefix:ln,suffix:Mt||bn,addonBefore:Ot&&y.createElement(un.Z,{form:!0,space:!0},Ot),addonAfter:Wt&&y.createElement(un.Z,{form:!0,space:!0},Wt),classNames:{input:Kt,variant:Se()({[`${dr}-${At}`]:Tt},(0,zt.Z)(dr,gt,Ut)),affixWrapper:Se()({[`${dr}-affix-wrapper-sm`]:cn==="small",[`${dr}-affix-wrapper-lg`]:cn==="large",[`${dr}-affix-wrapper-rtl`]:Pt==="rtl",[`${dr}-affix-wrapper-without-controls`]:Pn===!1||mr},Vr),wrapper:Se()({[`${On}-rtl`]:Pt==="rtl"},Vr),groupWrapper:Se()({[`${dr}-group-wrapper-sm`]:cn==="small",[`${dr}-group-wrapper-lg`]:cn==="large",[`${dr}-group-wrapper-rtl`]:Pt==="rtl",[`${dr}-group-wrapper-${At}`]:Tt},(0,zt.Z)(`${dr}-group-wrapper`,gt,Ut),Vr)}},Qn));return yr(Kn)}),Nt=rt,fn=lt=>y.createElement(ae.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(rt,Object.assign({},lt)));Nt._InternalPanelDoNotUseOrYouWillBeFired=fn;var yn=Nt},49397:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ae}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(36901),Se=E(8654),Ee=E(62487),Ce=E(86013),ke=E(82855),De=E(48755),fe=E(2171),We=E(83397),Te=E(31756),dt=E(56553),Ge=E(24971),Ne=E(70045),we=E(23826),Pe=E(53075);function Fe(Oe){return!!(Oe.prefix||Oe.suffix||Oe.allowClear||Oe.showCount)}var et=function(Oe,qe){var Je={};for(var ct in Oe)Object.prototype.hasOwnProperty.call(Oe,ct)&&qe.indexOf(ct)<0&&(Je[ct]=Oe[ct]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ct=Object.getOwnPropertySymbols(Oe);bt<ct.length;bt++)qe.indexOf(ct[bt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ct[bt])&&(Je[ct[bt]]=Oe[ct[bt]]);return Je},Ae=(0,y.forwardRef)((Oe,qe)=>{const{prefixCls:Je,bordered:ct=!0,status:bt,size:st,disabled:$e,onBlur:pe,onFocus:Le,suffix:xe,allowClear:de,addonAfter:Ct,addonBefore:Ye,className:je,style:it,styles:Ie,rootClassName:ye,onChange:vt,classNames:Ht,variant:Et}=Oe,Be=et(Oe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ft,direction:ot,allowClear:Xt,autoComplete:xt,className:wt,style:ht,classNames:un,styles:zt}=(0,De.dj)("input"),ue=ft("input",Je),ae=(0,y.useRef)(null),re=(0,We.Z)(ue),[se,he,ie]=(0,Pe.TI)(ue,ye),[me]=(0,Pe.ZP)(ue,re),{compactSize:He,compactItemClassnames:It}=(0,Ne.ri)(ue,ot),Xe=(0,Te.Z)(yn=>{var lt;return(lt=st!=null?st:He)!==null&<!==void 0?lt:yn}),Ke=y.useContext(fe.Z),yt=$e!=null?$e:Ke,{status:Bt,hasFeedback:_t,feedbackIcon:Qe}=(0,y.useContext)(dt.aM),tt=(0,ke.F)(Bt,bt),Vt=Fe(Oe)||!!_t,on=(0,y.useRef)(Vt),Fn=(0,we.Z)(ae,!0),gn=yn=>{Fn(),pe==null||pe(yn)},Lt=yn=>{Fn(),Le==null||Le(yn)},Qt=yn=>{Fn(),vt==null||vt(yn)},jt=(_t||xe)&&y.createElement(y.Fragment,null,xe,_t&&Qe),rt=(0,Ce.Z)(de!=null?de:Xt),[Nt,fn]=(0,Ge.Z)("input",Et,ct);return se(me(y.createElement(_e.default,Object.assign({ref:(0,Se.sQ)(qe,ae),prefixCls:ue,autoComplete:xt},Be,{disabled:yt,onBlur:gn,onFocus:Lt,style:Object.assign(Object.assign({},ht),it),styles:Object.assign(Object.assign({},zt),Ie),suffix:jt,allowClear:rt,className:ce()(je,ye,ie,re,It,wt),onChange:Qt,addonBefore:Ye&&y.createElement(Ee.Z,{form:!0,space:!0},Ye),addonAfter:Ct&&y.createElement(Ee.Z,{form:!0,space:!0},Ct),classNames:Object.assign(Object.assign(Object.assign({},Ht),un),{input:ce()({[`${ue}-sm`]:Xe==="small",[`${ue}-lg`]:Xe==="large",[`${ue}-rtl`]:ot==="rtl"},Ht==null?void 0:Ht.input,un.input,he),variant:ce()({[`${ue}-${Nt}`]:fn},(0,ke.Z)(ue,tt)),affixWrapper:ce()({[`${ue}-affix-wrapper-sm`]:Xe==="small",[`${ue}-affix-wrapper-lg`]:Xe==="large",[`${ue}-affix-wrapper-rtl`]:ot==="rtl"},he),wrapper:ce()({[`${ue}-group-rtl`]:ot==="rtl"},he),groupWrapper:ce()({[`${ue}-group-wrapper-sm`]:Xe==="small",[`${ue}-group-wrapper-lg`]:Xe==="large",[`${ue}-group-wrapper-rtl`]:ot==="rtl",[`${ue}-group-wrapper-${Nt}`]:fn},(0,ke.Z)(`${ue}-group-wrapper`,tt,_t),he)})}))))})},79809:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return qe}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(22711),Se=E(86013),Ee=E(82855),Ce=E(48755),ke=E(2171),De=E(83397),fe=E(31756),We=E(56553),Te=E(24971),dt=E(70045),Ge=E(30292),Ne=E(53075),we=E(16931),Pe=E(51636),Fe=E(64910);const et=Je=>{const{componentCls:ct,paddingLG:bt}=Je,st=`${ct}-textarea`;return{[`textarea${ct}`]:{maxWidth:"100%",height:"auto",minHeight:Je.controlHeight,lineHeight:Je.lineHeight,verticalAlign:"bottom",transition:`all ${Je.motionDurationSlow}`,resize:"vertical",[`&${ct}-mouse-active`]:{transition:`all ${Je.motionDurationSlow}, height 0s, width 0s`}},[`${ct}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[st]:{position:"relative","&-show-count":{[`> ${ct}`]:{height:"100%"},[`${ct}-data-count`]:{position:"absolute",bottom:Je.calc(Je.fontSize).mul(Je.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Je.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${ct},
|
|
|
&-affix-wrapper${st}-has-feedback ${ct}
|
|
|
`]:{paddingInlineEnd:bt},[`&-affix-wrapper${ct}-affix-wrapper`]:{padding:0,[`> textarea${ct}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Je.calc(Je.controlHeight).sub(Je.calc(Je.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ct}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ct}-clear-icon`]:{position:"absolute",insetInlineEnd:Je.paddingInline,insetBlockStart:Je.paddingXS},[`${st}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Je.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ct}-affix-wrapper-sm`]:{[`${ct}-suffix`]:{[`${ct}-clear-icon`]:{insetInlineEnd:Je.paddingInlineSM}}}}}};var St=(0,we.I$)(["Input","TextArea"],Je=>{const ct=(0,Pe.mergeToken)(Je,(0,Fe.e)(Je));return[et(ct)]},Fe.T,{resetFont:!1}),Ae=function(Je,ct){var bt={};for(var st in Je)Object.prototype.hasOwnProperty.call(Je,st)&&ct.indexOf(st)<0&&(bt[st]=Je[st]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,st=Object.getOwnPropertySymbols(Je);$e<st.length;$e++)ct.indexOf(st[$e])<0&&Object.prototype.propertyIsEnumerable.call(Je,st[$e])&&(bt[st[$e]]=Je[st[$e]]);return bt},qe=(0,y.forwardRef)((Je,ct)=>{var bt;const{prefixCls:st,bordered:$e=!0,size:pe,disabled:Le,status:xe,allowClear:de,classNames:Ct,rootClassName:Ye,className:je,style:it,styles:Ie,variant:ye,showCount:vt,onMouseDown:Ht,onResize:Et}=Je,Be=Ae(Je,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ft,direction:ot,allowClear:Xt,autoComplete:xt,className:wt,style:ht,classNames:un,styles:zt}=(0,Ce.dj)("textArea"),ue=y.useContext(ke.Z),ae=Le!=null?Le:ue,{status:re,hasFeedback:se,feedbackIcon:he}=y.useContext(We.aM),ie=(0,Ee.F)(re,xe),me=y.useRef(null);y.useImperativeHandle(ct,()=>{var fn;return{resizableTextArea:(fn=me.current)===null||fn===void 0?void 0:fn.resizableTextArea,focus:yn=>{var lt,Rt;(0,Ge.nH)((Rt=(lt=me.current)===null||lt===void 0?void 0:lt.resizableTextArea)===null||Rt===void 0?void 0:Rt.textArea,yn)},blur:()=>{var yn;return(yn=me.current)===null||yn===void 0?void 0:yn.blur()}}});const He=ft("input",st),It=(0,De.Z)(He),[Xe,Ke,yt]=(0,Ne.TI)(He,Ye),[Bt]=St(He,It),{compactSize:_t,compactItemClassnames:Qe}=(0,dt.ri)(He,ot),tt=(0,fe.Z)(fn=>{var yn;return(yn=pe!=null?pe:_t)!==null&&yn!==void 0?yn:fn}),[Vt,on]=(0,Te.Z)("textArea",ye,$e),Fn=(0,Se.Z)(de!=null?de:Xt),[gn,Lt]=y.useState(!1),[Qt,jt]=y.useState(!1),rt=fn=>{Lt(!0),Ht==null||Ht(fn);const yn=()=>{Lt(!1),document.removeEventListener("mouseup",yn)};document.addEventListener("mouseup",yn)},Nt=fn=>{var yn,lt;if(Et==null||Et(fn),gn&&typeof getComputedStyle=="function"){const Rt=(lt=(yn=me.current)===null||yn===void 0?void 0:yn.nativeElement)===null||lt===void 0?void 0:lt.querySelector("textarea");Rt&&getComputedStyle(Rt).resize==="both"&&jt(!0)}};return Xe(Bt(y.createElement(_e.default,Object.assign({autoComplete:xt},Be,{style:Object.assign(Object.assign({},ht),it),styles:Object.assign(Object.assign({},zt),Ie),disabled:ae,allowClear:Fn,className:ce()(yt,It,je,Ye,Qe,wt,Qt&&`${He}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ct),un),{textarea:ce()({[`${He}-sm`]:tt==="small",[`${He}-lg`]:tt==="large"},Ke,Ct==null?void 0:Ct.textarea,un.textarea,gn&&`${He}-mouse-active`),variant:ce()({[`${He}-${Vt}`]:on},(0,Ee.Z)(He,ie)),affixWrapper:ce()(`${He}-textarea-affix-wrapper`,{[`${He}-affix-wrapper-rtl`]:ot==="rtl",[`${He}-affix-wrapper-sm`]:tt==="small",[`${He}-affix-wrapper-lg`]:tt==="large",[`${He}-textarea-show-count`]:vt||((bt=Je.count)===null||bt===void 0?void 0:bt.show)},Ke)}),prefixCls:He,suffix:se&&y.createElement("span",{className:`${He}-textarea-suffix`},he),showCount:vt,ref:me,onResize:Nt,onMouseDown:rt}))))})},23826:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ge}});var y=E(59301);function ge(ce,_e){const Se=(0,y.useRef)([]),Ee=()=>{Se.current.push(setTimeout(()=>{var Ce,ke,De,fe;!((Ce=ce.current)===null||Ce===void 0)&&Ce.input&&((ke=ce.current)===null||ke===void 0?void 0:ke.input.getAttribute("type"))==="password"&&(!((De=ce.current)===null||De===void 0)&&De.input.hasAttribute("value"))&&((fe=ce.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(_e&&Ee(),()=>Se.current.forEach(Ce=>{Ce&&clearTimeout(Ce)})),[]),Ee}},37568:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return un}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(48755),Se=E(56553),Ee=E(53075),ke=zt=>{const{getPrefixCls:ue,direction:ae}=(0,y.useContext)(_e.E_),{prefixCls:re,className:se}=zt,he=ue("input-group",re),ie=ue("input"),[me,He,It]=(0,Ee.ZP)(ie),Xe=ce()(he,It,{[`${he}-lg`]:zt.size==="large",[`${he}-sm`]:zt.size==="small",[`${he}-compact`]:zt.compact,[`${he}-rtl`]:ae==="rtl"},He,se),Ke=(0,y.useContext)(Se.aM),yt=(0,y.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return me(y.createElement("span",{className:Xe,style:zt.style,onMouseEnter:zt.onMouseEnter,onMouseLeave:zt.onMouseLeave,onFocus:zt.onFocus,onBlur:zt.onBlur},y.createElement(Se.aM.Provider,{value:yt},zt.children)))},De=E(49397),fe=E(77654),We=E(6089),Te=E(26112),dt=E(82855),Ge=E(31756),Ne=E(16931),we=E(51636),Pe=E(64910);const Fe=zt=>{const{componentCls:ue,paddingXS:ae}=zt;return{[ue]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ae,"&-rtl":{direction:"rtl"},[`${ue}-input`]:{textAlign:"center",paddingInline:zt.paddingXXS},[`&${ue}-sm ${ue}-input`]:{paddingInline:zt.calc(zt.paddingXXS).div(2).equal()},[`&${ue}-lg ${ue}-input`]:{paddingInline:zt.paddingXS}}}};var et=(0,Ne.I$)(["Input","OTP"],zt=>{const ue=(0,we.mergeToken)(zt,(0,Pe.e)(zt));return[Fe(ue)]},Pe.T),St=E(16089),Ae=function(zt,ue){var ae={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ae[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(zt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[se])&&(ae[re[se]]=zt[re[se]]);return ae},qe=y.forwardRef((zt,ue)=>{const{value:ae,onChange:re,onActiveChange:se,index:he,mask:ie}=zt,me=Ae(zt,["value","onChange","onActiveChange","index","mask"]),He=ae&&typeof ie=="string"?ie:ae,It=_t=>{re(he,_t.target.value)},Xe=y.useRef(null);y.useImperativeHandle(ue,()=>Xe.current);const Ke=()=>{(0,St.Z)(()=>{var _t;const Qe=(_t=Xe.current)===null||_t===void 0?void 0:_t.input;document.activeElement===Qe&&Qe&&Qe.select()})},yt=_t=>{const{key:Qe,ctrlKey:tt,metaKey:Vt}=_t;Qe==="ArrowLeft"?se(he-1):Qe==="ArrowRight"?se(he+1):Qe==="z"&&(tt||Vt)&&_t.preventDefault(),Ke()},Bt=_t=>{_t.key==="Backspace"&&!ae&&se(he-1),Ke()};return y.createElement(De.Z,Object.assign({type:ie===!0?"password":"text"},me,{ref:Xe,value:He,onInput:It,onFocus:Ke,onKeyDown:yt,onKeyUp:Bt,onMouseDown:Ke,onMouseUp:Ke}))}),Je=function(zt,ue){var ae={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ae[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(zt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[se])&&(ae[re[se]]=zt[re[se]]);return ae};function ct(zt){return(zt||"").split("")}const bt=zt=>{const{index:ue,prefixCls:ae,separator:re}=zt,se=typeof re=="function"?re(ue):re;return se?y.createElement("span",{className:`${ae}-separator`},se):null};var $e=y.forwardRef((zt,ue)=>{const{prefixCls:ae,length:re=6,size:se,defaultValue:he,value:ie,onChange:me,formatter:He,separator:It,variant:Xe,disabled:Ke,status:yt,autoFocus:Bt,mask:_t,type:Qe,onInput:tt,inputMode:Vt}=zt,on=Je(zt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Fn,direction:gn}=y.useContext(_e.E_),Lt=Fn("otp",ae),Qt=(0,Te.Z)(on,{aria:!0,data:!0,attr:!0}),[jt,rt,Nt]=et(Lt),fn=(0,Ge.Z)(ln=>se!=null?se:ln),yn=y.useContext(Se.aM),lt=(0,dt.F)(yn.status,yt),Rt=y.useMemo(()=>Object.assign(Object.assign({},yn),{status:lt,hasFeedback:!1,feedbackIcon:null}),[yn,lt]),en=y.useRef(null),Pt=y.useRef({});y.useImperativeHandle(ue,()=>({focus:()=>{var ln;(ln=Pt.current[0])===null||ln===void 0||ln.focus()},blur:()=>{var ln;for(let bn=0;bn<re;bn+=1)(ln=Pt.current[bn])===null||ln===void 0||ln.blur()},nativeElement:en.current}));const Yt=ln=>He?He(ln):ln,[Gt,Sn]=y.useState(()=>ct(Yt(he||"")));y.useEffect(()=>{ie!==void 0&&Sn(ct(ie))},[ie]);const jn=(0,We.Z)(ln=>{Sn(ln),tt&&tt(ln),me&&ln.length===re&&ln.every(bn=>bn)&&ln.some((bn,tn)=>Gt[tn]!==bn)&&me(ln.join(""))}),Dn=(0,We.Z)((ln,bn)=>{let tn=(0,fe.Z)(Gt);for(let Cn=0;Cn<ln;Cn+=1)tn[Cn]||(tn[Cn]="");bn.length<=1?tn[ln]=bn:tn=tn.slice(0,ln).concat(ct(bn)),tn=tn.slice(0,re);for(let Cn=tn.length-1;Cn>=0&&!tn[Cn];Cn-=1)tn.pop();const wn=Yt(tn.map(Cn=>Cn||" ").join(""));return tn=ct(wn).map((Cn,Pn)=>Cn===" "&&!tn[Pn]?tn[Pn]:Cn),tn}),Zn=(ln,bn)=>{var tn;const wn=Dn(ln,bn),Cn=Math.min(ln+bn.length,re-1);Cn!==ln&&wn[ln]!==void 0&&((tn=Pt.current[Cn])===null||tn===void 0||tn.focus()),jn(wn)},Ot=ln=>{var bn;(bn=Pt.current[ln])===null||bn===void 0||bn.focus()},Wt={variant:Xe,disabled:Ke,status:lt,mask:_t,type:Qe,inputMode:Vt};return jt(y.createElement("div",Object.assign({},Qt,{ref:en,className:ce()(Lt,{[`${Lt}-sm`]:fn==="small",[`${Lt}-lg`]:fn==="large",[`${Lt}-rtl`]:gn==="rtl"},Nt,rt)}),y.createElement(Se.aM.Provider,{value:Rt},Array.from({length:re}).map((ln,bn)=>{const tn=`otp-${bn}`,wn=Gt[bn]||"";return y.createElement(y.Fragment,{key:tn},y.createElement(qe,Object.assign({ref:Cn=>{Pt.current[bn]=Cn},index:bn,size:fn,htmlSize:1,className:`${Lt}-input`,onChange:Zn,value:wn,onActiveChange:Ot,autoFocus:bn===0&&Bt},Wt)),bn<re-1&&y.createElement(bt,{separator:It,index:bn,prefixCls:Lt}))}))))}),pe=E(73331),Le=E(15277),xe=E(2738),de=E(8654),Ct=E(2171),Ye=E(23826),je=function(zt,ue){var ae={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ae[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(zt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[se])&&(ae[re[se]]=zt[re[se]]);return ae};const it=zt=>zt?y.createElement(Le.Z,null):y.createElement(pe.Z,null),Ie={click:"onClick",hover:"onMouseOver"};var vt=y.forwardRef((zt,ue)=>{const{disabled:ae,action:re="click",visibilityToggle:se=!0,iconRender:he=it}=zt,ie=y.useContext(Ct.Z),me=ae!=null?ae:ie,He=typeof se=="object"&&se.visible!==void 0,[It,Xe]=(0,y.useState)(()=>He?se.visible:!1),Ke=(0,y.useRef)(null);y.useEffect(()=>{He&&Xe(se.visible)},[He,se]);const yt=(0,Ye.Z)(Ke),Bt=()=>{var fn;if(me)return;It&&yt();const yn=!It;Xe(yn),typeof se=="object"&&((fn=se.onVisibleChange)===null||fn===void 0||fn.call(se,yn))},_t=fn=>{const yn=Ie[re]||"",lt=he(It),Rt={[yn]:Bt,className:`${fn}-icon`,key:"passwordIcon",onMouseDown:en=>{en.preventDefault()},onMouseUp:en=>{en.preventDefault()}};return y.cloneElement(y.isValidElement(lt)?lt:y.createElement("span",null,lt),Rt)},{className:Qe,prefixCls:tt,inputPrefixCls:Vt,size:on}=zt,Fn=je(zt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:gn}=y.useContext(_e.E_),Lt=gn("input",Vt),Qt=gn("input-password",tt),jt=se&&_t(Qt),rt=ce()(Qt,Qe,{[`${Qt}-${on}`]:!!on}),Nt=Object.assign(Object.assign({},(0,xe.Z)(Fn,["suffix","iconRender","visibilityToggle"])),{type:It?"text":"password",className:rt,prefixCls:Lt,suffix:jt});return on&&(Nt.size=on),y.createElement(De.Z,Object.assign({ref:(0,de.sQ)(ue,Ke)},Nt))}),Ht=E(47472),Et=E(22703),Be=E(7939),ft=E(70045),ot=function(zt,ue){var ae={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ae[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(zt);se<re.length;se++)ue.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[se])&&(ae[re[se]]=zt[re[se]]);return ae},xt=y.forwardRef((zt,ue)=>{const{prefixCls:ae,inputPrefixCls:re,className:se,size:he,suffix:ie,enterButton:me=!1,addonAfter:He,loading:It,disabled:Xe,onSearch:Ke,onChange:yt,onCompositionStart:Bt,onCompositionEnd:_t}=zt,Qe=ot(zt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:tt,direction:Vt}=y.useContext(_e.E_),on=y.useRef(!1),Fn=tt("input-search",ae),gn=tt("input",re),{compactSize:Lt}=(0,ft.ri)(Fn,Vt),Qt=(0,Ge.Z)(Zn=>{var Ot;return(Ot=he!=null?he:Lt)!==null&&Ot!==void 0?Ot:Zn}),jt=y.useRef(null),rt=Zn=>{Zn!=null&&Zn.target&&Zn.type==="click"&&Ke&&Ke(Zn.target.value,Zn,{source:"clear"}),yt==null||yt(Zn)},Nt=Zn=>{var Ot;document.activeElement===((Ot=jt.current)===null||Ot===void 0?void 0:Ot.input)&&Zn.preventDefault()},fn=Zn=>{var Ot,Wt;Ke&&Ke((Wt=(Ot=jt.current)===null||Ot===void 0?void 0:Ot.input)===null||Wt===void 0?void 0:Wt.value,Zn,{source:"input"})},yn=Zn=>{on.current||It||fn(Zn)},lt=typeof me=="boolean"?y.createElement(Ht.Z,null):null,Rt=`${Fn}-button`;let en;const Pt=me||{},Yt=Pt.type&&Pt.type.__ANT_BUTTON===!0;Yt||Pt.type==="button"?en=(0,Et.Tm)(Pt,Object.assign({onMouseDown:Nt,onClick:Zn=>{var Ot,Wt;(Wt=(Ot=Pt==null?void 0:Pt.props)===null||Ot===void 0?void 0:Ot.onClick)===null||Wt===void 0||Wt.call(Ot,Zn),fn(Zn)},key:"enterButton"},Yt?{className:Rt,size:Qt}:{})):en=y.createElement(Be.ZP,{className:Rt,type:me?"primary":void 0,size:Qt,disabled:Xe,key:"enterButton",onMouseDown:Nt,onClick:fn,loading:It,icon:lt},me),He&&(en=[en,(0,Et.Tm)(He,{key:"addonAfter"})]);const Gt=ce()(Fn,{[`${Fn}-rtl`]:Vt==="rtl",[`${Fn}-${Qt}`]:!!Qt,[`${Fn}-with-button`]:!!me},se),Sn=Object.assign(Object.assign({},Qe),{className:Gt,prefixCls:gn,type:"search"}),jn=Zn=>{on.current=!0,Bt==null||Bt(Zn)},Dn=Zn=>{on.current=!1,_t==null||_t(Zn)};return y.createElement(De.Z,Object.assign({ref:(0,de.sQ)(jt,ue),onPressEnter:yn},Sn,{size:Qt,onCompositionStart:jn,onCompositionEnd:Dn,addonAfter:en,suffix:ie,onChange:rt,disabled:Xe}))}),wt=E(79809);const ht=De.Z;ht.Group=ke,ht.Search=xt,ht.TextArea=wt.Z,ht.Password=vt,ht.OTP=$e;var un=ht},24303:function(Rn,qt,E){"use strict";E.d(qt,{D:function(){return Je},Z:function(){return st}});var y=E(59301),ge=E(60499),ce={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"},_e=ce,Se=E(7657),Ee=function(pe,Le){return y.createElement(Se.Z,(0,ge.Z)({},pe,{ref:Le,icon:_e}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(33853),fe=E(38819),We=E(92310),Te=E.n(We),dt=E(2738),Ge=E(48755),Ne=E(6989),we=E(36237),Pe=E(48923),Fe=E(16931);const et=$e=>{const{componentCls:pe,siderBg:Le,motionDurationMid:xe,motionDurationSlow:de,antCls:Ct,triggerHeight:Ye,triggerColor:je,triggerBg:it,headerHeight:Ie,zeroTriggerWidth:ye,zeroTriggerHeight:vt,borderRadiusLG:Ht,lightSiderBg:Et,lightTriggerColor:Be,lightTriggerBg:ft,bodyBg:ot}=$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,[`${Ct}-menu${Ct}-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,we.unit)(Ye),textAlign:"center",background:it,cursor:"pointer",transition:`all ${xe}`},[`${pe}-zero-width-trigger`]:{position:"absolute",top:Ie,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,we.unit)(Ht)} ${(0,we.unit)(Ht)} 0`,cursor:"pointer",transition:`background ${de} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${de}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:$e.calc(ye).mul(-1).equal(),borderRadius:`${(0,we.unit)(Ht)} 0 0 ${(0,we.unit)(Ht)}`}},"&-light":{background:Et,[`${pe}-trigger`]:{color:Be,background:ft},[`${pe}-zero-width-trigger`]:{color:Be,background:ft,border:`1px solid ${ot}`,borderInlineStart:0}}}}};var St=(0,Fe.I$)(["Layout","Sider"],$e=>[et($e)],Pe.eh,{deprecatedTokens:Pe.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 de=0,xe=Object.getOwnPropertySymbols($e);de<xe.length;de++)pe.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[de])&&(Le[xe[de]]=$e[xe[de]]);return Le};const Oe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},qe=$e=>!Number.isNaN(Number.parseFloat($e))&&isFinite($e),Je=y.createContext({}),ct=(()=>{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:de,children:Ct,defaultCollapsed:Ye=!1,theme:je="dark",style:it={},collapsible:Ie=!1,reverseArrow:ye=!1,width:vt=200,collapsedWidth:Ht=80,zeroWidthTriggerStyle:Et,breakpoint:Be,onCollapse:ft,onBreakpoint:ot}=$e,Xt=Ae($e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xt}=(0,y.useContext)(Ne.V),[wt,ht]=(0,y.useState)("collapsed"in $e?$e.collapsed:Ye),[un,zt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in $e&&ht($e.collapsed)},[$e.collapsed]);const ue=(Qt,jt)=>{"collapsed"in $e||ht(Qt),ft==null||ft(Qt,jt)},{getPrefixCls:ae,direction:re}=(0,y.useContext)(Ge.E_),se=ae("layout-sider",Le),[he,ie,me]=St(se),He=(0,y.useRef)(null);He.current=Qt=>{zt(Qt.matches),ot==null||ot(Qt.matches),wt!==Qt.matches&&ue(Qt.matches,"responsive")},(0,y.useEffect)(()=>{function Qt(rt){return He.current(rt)}let jt;if(typeof window!="undefined"){const{matchMedia:rt}=window;if(rt&&Be&&Be in Oe){jt=rt(`screen and (max-width: ${Oe[Be]})`);try{jt.addEventListener("change",Qt)}catch(Nt){jt.addListener(Qt)}Qt(jt)}}return()=>{try{jt==null||jt.removeEventListener("change",Qt)}catch(rt){jt==null||jt.removeListener(Qt)}}},[Be]),(0,y.useEffect)(()=>{const Qt=ct("ant-sider-");return xt.addSider(Qt),()=>xt.removeSider(Qt)},[]);const It=()=>{ue(!wt,"clickTrigger")},Xe=(0,dt.Z)(Xt,["collapsed"]),Ke=wt?Ht:vt,yt=qe(Ke)?`${Ke}px`:String(Ke),Bt=parseFloat(String(Ht||0))===0?y.createElement("span",{onClick:It,className:Te()(`${se}-zero-width-trigger`,`${se}-zero-width-trigger-${ye?"right":"left"}`),style:Et},de||y.createElement(ke,null)):null,_t=re==="rtl"==!ye,Vt={expanded:_t?y.createElement(fe.Z,null):y.createElement(De.Z,null),collapsed:_t?y.createElement(De.Z,null):y.createElement(fe.Z,null)}[wt?"collapsed":"expanded"],on=de!==null?Bt||y.createElement("div",{className:`${se}-trigger`,onClick:It,style:{width:yt}},de||Vt):null,Fn=Object.assign(Object.assign({},it),{flex:`0 0 ${yt}`,maxWidth:yt,minWidth:yt,width:yt}),gn=Te()(se,`${se}-${je}`,{[`${se}-collapsed`]:!!wt,[`${se}-has-trigger`]:Ie&&de!==null&&!Bt,[`${se}-below`]:!!un,[`${se}-zero-width`]:parseFloat(yt)===0},xe,ie,me),Lt=y.useMemo(()=>({siderCollapsed:wt}),[wt]);return he(y.createElement(Je.Provider,{value:Lt},y.createElement("aside",Object.assign({className:gn},Xe,{style:Fn,ref:pe}),y.createElement("div",{className:`${se}-children`},Ct),Ie||un&&Bt?on: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 _e},jn:function(){return Se}});var y=E(36237),ge=E(16931);const ce=Ee=>{const{antCls:Ce,componentCls:ke,colorText:De,footerBg:fe,headerHeight:We,headerPadding:Te,headerColor:dt,footerPadding:Ge,fontSize:Ne,bodyBg:we,headerBg:Pe}=Ee;return{[ke]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:we,"&, *":{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:dt,lineHeight:(0,y.unit)(We),background:Pe,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${ke}-footer`]:{padding:Ge,color:De,fontSize:Ne,background:fe},[`${ke}-content`]:{flex:"auto",color:De,minHeight:0}}},_e=Ee=>{const{colorBgLayout:Ce,controlHeight:ke,controlHeightLG:De,colorText:fe,controlHeightSM:We,marginXXS:Te,colorTextLightSolid:dt,colorBgContainer:Ge}=Ee,Ne=De*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:ke*2,headerPadding:`0 ${Ne}px`,headerColor:fe,footerPadding:`${We}px ${Ne}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:De+Te*2,triggerBg:"#002140",triggerColor:dt,zeroTriggerWidth:De,zeroTriggerHeight:De,lightSiderBg:Ge,lightTriggerBg:Ge,lightTriggerColor:fe}},Se=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];qt.ZP=(0,ge.I$)("Layout",Ee=>[ce(Ee)],_e,{deprecatedTokens:Se})},78857:function(Rn,qt,E){"use strict";E.d(qt,{J:function(){return Ee}});var y=E(59301),ge=E(8654),ce=E(62487),_e=function(Ce,ke){var De={};for(var fe in Ce)Object.prototype.hasOwnProperty.call(Ce,fe)&&ke.indexOf(fe)<0&&(De[fe]=Ce[fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,fe=Object.getOwnPropertySymbols(Ce);We<fe.length;We++)ke.indexOf(fe[We])<0&&Object.prototype.propertyIsEnumerable.call(Ce,fe[We])&&(De[fe[We]]=Ce[fe[We]]);return De};const Se=y.createContext(null),Ee=y.forwardRef((Ce,ke)=>{const{children:De}=Ce,fe=_e(Ce,["children"]),We=y.useContext(Se),Te=y.useMemo(()=>Object.assign(Object.assign({},We),fe),[We,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),dt=(0,ge.t4)(De),Ge=(0,ge.x1)(ke,dt?(0,ge.C4)(De):null);return y.createElement(Se.Provider,{value:Te},y.createElement(ce.Z,{space:!0},dt?y.cloneElement(De,{ref:Ge}):De))});qt.Z=Se},93041:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return he}});var y=E(59301),ge=E(28321),ce=E(24303),_e=E(18785),Se=E(92310),Ee=E.n(Se),Ce=E(6089),ke=E(2738),De=E(86641),fe=E(22703),We=E(48755),Te=E(83397),Ge=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=function(ie,me){var He={};for(var It in ie)Object.prototype.hasOwnProperty.call(ie,It)&&me.indexOf(It)<0&&(He[It]=ie[It]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,It=Object.getOwnPropertySymbols(ie);Xe<It.length;Xe++)me.indexOf(It[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ie,It[Xe])&&(He[It[Xe]]=ie[It[Xe]]);return He},Pe=ie=>{const{prefixCls:me,className:He,dashed:It}=ie,Xe=Ne(ie,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=y.useContext(We.E_),yt=Ke("menu",me),Bt=Ee()({[`${yt}-item-divider-dashed`]:!!It},He);return y.createElement(ge.iz,Object.assign({className:Bt},Xe))},Fe=E(11592),et=E(25399),Ae=ie=>{var me;const{className:He,children:It,icon:Xe,title:Ke,danger:yt,extra:Bt}=ie,{prefixCls:_t,firstLevel:Qe,direction:tt,disableMenuItemTitleTooltip:Vt,inlineCollapsed:on}=y.useContext(Ge),Fn=Nt=>{const fn=It==null?void 0:It[0],yn=y.createElement("span",{className:Ee()(`${_t}-title-content`,{[`${_t}-title-content-with-extra`]:!!Bt||Bt===0})},It);return(!Xe||y.isValidElement(It)&&It.type==="span")&&It&&Nt&&Qe&&typeof fn=="string"?y.createElement("div",{className:`${_t}-inline-collapsed-noicon`},fn.charAt(0)):yn},{siderCollapsed:gn}=y.useContext(ce.D);let Lt=Ke;typeof Ke=="undefined"?Lt=Qe?It:"":Ke===!1&&(Lt="");const Qt={title:Lt};!gn&&!on&&(Qt.title=null,Qt.open=!1);const jt=(0,Fe.Z)(It).length;let rt=y.createElement(ge.ck,Object.assign({},(0,ke.Z)(ie,["title","icon","danger"]),{className:Ee()({[`${_t}-item-danger`]:yt,[`${_t}-item-only-child`]:(Xe?jt+1:jt)===1},He),title:typeof Ke=="string"?Ke:void 0}),(0,fe.Tm)(Xe,{className:Ee()(y.isValidElement(Xe)?(me=Xe.props)===null||me===void 0?void 0:me.className:"",`${_t}-item-icon`)}),Fn(on));return Vt||(rt=y.createElement(et.Z,Object.assign({},Qt,{placement:tt==="rtl"?"left":"right",classNames:{root:`${_t}-inline-collapsed-tooltip`}}),rt)),rt},Oe=E(78857),qe=E(36237),Je=E(17835),ct=E(63356),bt=E(34961),st=E(46e3),$e=E(34925),pe=E(16931),Le=E(51636),de=ie=>{const{componentCls:me,motionDurationSlow:He,horizontalLineHeight:It,colorSplit:Xe,lineWidth:Ke,lineType:yt,itemPaddingInline:Bt}=ie;return{[`${me}-horizontal`]:{lineHeight:It,border:0,borderBottom:`${(0,qe.unit)(Ke)} ${yt} ${Xe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${me}-item, ${me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Bt},[`> ${me}-item:hover,
|
|
|
> ${me}-item-active,
|
|
|
> ${me}-submenu ${me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${me}-item, ${me}-submenu-title`]:{transition:[`border-color ${He}`,`background ${He}`].join(",")},[`${me}-submenu-arrow`]:{display:"none"}}}},Ye=ie=>{let{componentCls:me,menuArrowOffset:He,calc:It}=ie;return{[`${me}-rtl`]:{direction:"rtl"},[`${me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${me}-rtl${me}-vertical,
|
|
|
${me}-submenu-rtl ${me}-vertical`]:{[`${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,qe.unit)(It(He).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,qe.unit)(He)})`}}}}};const je=ie=>Object.assign({},(0,ct.oN)(ie));var Ie=(ie,me)=>{const{componentCls:He,itemColor:It,itemSelectedColor:Xe,subMenuItemSelectedColor:Ke,groupTitleColor:yt,itemBg:Bt,subMenuItemBg:_t,itemSelectedBg:Qe,activeBarHeight:tt,activeBarWidth:Vt,activeBarBorderWidth:on,motionDurationSlow:Fn,motionEaseInOut:gn,motionEaseOut:Lt,itemPaddingInline:Qt,motionDurationMid:jt,itemHoverColor:rt,lineType:Nt,colorSplit:fn,itemDisabledColor:yn,dangerItemColor:lt,dangerItemHoverColor:Rt,dangerItemSelectedColor:en,dangerItemActiveBg:Pt,dangerItemSelectedBg:Yt,popupBg:Gt,itemHoverBg:Sn,itemActiveBg:jn,menuSubMenuBg:Dn,horizontalItemSelectedColor:Zn,horizontalItemSelectedBg:Ot,horizontalItemBorderRadius:Wt,horizontalItemHoverBg:ln}=ie;return{[`${He}-${me}, ${He}-${me} > ${He}`]:{color:It,background:Bt,[`&${He}-root:focus-visible`]:Object.assign({},je(ie)),[`${He}-item`]:{"&-group-title, &-extra":{color:yt}},[`${He}-submenu-selected > ${He}-submenu-title`]:{color:Ke},[`${He}-item, ${He}-submenu-title`]:{color:It,[`&:not(${He}-item-disabled):focus-visible`]:Object.assign({},je(ie))},[`${He}-item-disabled, ${He}-submenu-disabled`]:{color:`${yn} !important`},[`${He}-item:not(${He}-item-selected):not(${He}-submenu-selected)`]:{[`&:hover, > ${He}-submenu-title:hover`]:{color:rt}},[`&:not(${He}-horizontal)`]:{[`${He}-item:not(${He}-item-selected)`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:jn}},[`${He}-submenu-title`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:jn}}},[`${He}-item-danger`]:{color:lt,[`&${He}-item:hover`]:{[`&:not(${He}-item-selected):not(${He}-submenu-selected)`]:{color:Rt}},[`&${He}-item:active`]:{background:Pt}},[`${He}-item a`]:{"&, &:hover":{color:"inherit"}},[`${He}-item-selected`]:{color:Xe,[`&${He}-item-danger`]:{color:en},"a, a:hover":{color:"inherit"}},[`& ${He}-item-selected`]:{backgroundColor:Qe,[`&${He}-item-danger`]:{backgroundColor:Yt}},[`&${He}-submenu > ${He}`]:{backgroundColor:Dn},[`&${He}-popup > ${He}`]:{backgroundColor:Gt},[`&${He}-submenu-popup > ${He}`]:{backgroundColor:Gt},[`&${He}-horizontal`]:Object.assign(Object.assign({},me==="dark"?{borderBottom:0}:{}),{[`> ${He}-item, > ${He}-submenu`]:{top:on,marginTop:ie.calc(on).mul(-1).equal(),marginBottom:0,borderRadius:Wt,"&::after":{position:"absolute",insetInline:Qt,bottom:0,borderBottom:`${(0,qe.unit)(tt)} solid transparent`,transition:`border-color ${Fn} ${gn}`,content:'""'},"&:hover, &-active, &-open":{background:ln,"&::after":{borderBottomWidth:tt,borderBottomColor:Zn}},"&-selected":{color:Zn,backgroundColor:Ot,"&:hover":{backgroundColor:Ot},"&::after":{borderBottomWidth:tt,borderBottomColor:Zn}}}}),[`&${He}-root`]:{[`&${He}-inline, &${He}-vertical`]:{borderInlineEnd:`${(0,qe.unit)(on)} ${Nt} ${fn}`}},[`&${He}-inline`]:{[`${He}-sub${He}-inline`]:{background:_t},[`${He}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,qe.unit)(Vt)} solid ${Xe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${jt} ${Lt}`,`opacity ${jt} ${Lt}`].join(","),content:'""'},[`&${He}-item-danger`]:{"&::after":{borderInlineEndColor:en}}},[`${He}-selected, ${He}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${jt} ${gn}`,`opacity ${jt} ${gn}`].join(",")}}}}}};const ye=ie=>{const{componentCls:me,itemHeight:He,itemMarginInline:It,padding:Xe,menuArrowSize:Ke,marginXS:yt,itemMarginBlock:Bt,itemWidth:_t,itemPaddingInline:Qe}=ie,tt=ie.calc(Ke).add(Xe).add(yt).equal();return{[`${me}-item`]:{position:"relative",overflow:"hidden"},[`${me}-item, ${me}-submenu-title`]:{height:He,lineHeight:(0,qe.unit)(He),paddingInline:Qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:It,marginBlock:Bt,width:_t},[`> ${me}-item,
|
|
|
> ${me}-submenu > ${me}-submenu-title`]:{height:He,lineHeight:(0,qe.unit)(He)},[`${me}-item-group-list ${me}-submenu-title,
|
|
|
${me}-submenu-title`]:{paddingInlineEnd:tt}}};var Ht=ie=>{const{componentCls:me,iconCls:He,itemHeight:It,colorTextLightSolid:Xe,dropdownWidth:Ke,controlHeightLG:yt,motionEaseOut:Bt,paddingXL:_t,itemMarginInline:Qe,fontSizeLG:tt,motionDurationFast:Vt,motionDurationSlow:on,paddingXS:Fn,boxShadowSecondary:gn,collapsedWidth:Lt,collapsedIconSize:Qt}=ie,jt={height:It,lineHeight:(0,qe.unit)(It),listStylePosition:"inside",listStyleType:"disc"};return[{[me]:{"&-inline, &-vertical":Object.assign({[`&${me}-root`]:{boxShadow:"none"}},ye(ie))},[`${me}-submenu-popup`]:{[`${me}-vertical`]:Object.assign(Object.assign({},ye(ie)),{boxShadow:gn})}},{[`${me}-submenu-popup ${me}-vertical${me}-sub`]:{minWidth:Ke,maxHeight:`calc(100vh - ${(0,qe.unit)(ie.calc(yt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${me}-inline`]:{width:"100%",[`&${me}-root`]:{[`${me}-item, ${me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${on}`,`background ${on}`,`padding ${Vt} ${Bt}`].join(","),[`> ${me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${me}-sub${me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${me}-submenu > ${me}-submenu-title`]:jt,[`& ${me}-item-group-title`]:{paddingInlineStart:_t}},[`${me}-item`]:jt}},{[`${me}-inline-collapsed`]:{width:Lt,[`&${me}-root`]:{[`${me}-item, ${me}-submenu ${me}-submenu-title`]:{[`> ${me}-inline-collapsed-noicon`]:{fontSize:tt,textAlign:"center"}}},[`> ${me}-item,
|
|
|
> ${me}-item-group > ${me}-item-group-list > ${me}-item,
|
|
|
> ${me}-item-group > ${me}-item-group-list > ${me}-submenu > ${me}-submenu-title,
|
|
|
> ${me}-submenu > ${me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,qe.unit)(ie.calc(Qt).div(2).equal())} - ${(0,qe.unit)(Qe)})`,textOverflow:"clip",[`
|
|
|
${me}-submenu-arrow,
|
|
|
${me}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${me}-item-icon, ${He}`]:{margin:0,fontSize:Qt,lineHeight:(0,qe.unit)(It),"+ span":{display:"inline-block",opacity:0}}},[`${me}-item-icon, ${He}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${me}-item-icon, ${He}`]:{display:"none"},"a, a:hover":{color:Xe}},[`${me}-item-group-title`]:Object.assign(Object.assign({},ct.vS),{paddingInline:Fn})}}]};const Et=ie=>{const{componentCls:me,motionDurationSlow:He,motionDurationMid:It,motionEaseInOut:Xe,motionEaseOut:Ke,iconCls:yt,iconSize:Bt,iconMarginInlineEnd:_t}=ie;return{[`${me}-item, ${me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${He}`,`background ${He}`,`padding calc(${He} + 0.1s) ${Xe}`].join(","),[`${me}-item-icon, ${yt}`]:{minWidth:Bt,fontSize:Bt,transition:[`font-size ${It} ${Ke}`,`margin ${He} ${Xe}`,`color ${He}`].join(","),"+ span":{marginInlineStart:_t,opacity:1,transition:[`opacity ${He} ${Xe}`,`margin ${He}`,`color ${He}`].join(",")}},[`${me}-item-icon`]:Object.assign({},(0,ct.Ro)()),[`&${me}-item-only-child`]:{[`> ${yt}, > ${me}-item-icon`]:{marginInlineEnd:0}}},[`${me}-item-disabled, ${me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Be=ie=>{const{componentCls:me,motionDurationSlow:He,motionEaseInOut:It,borderRadius:Xe,menuArrowSize:Ke,menuArrowOffset:yt}=ie;return{[`${me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ie.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${He} ${It}, opacity ${He}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ie.calc(Ke).mul(.6).equal(),height:ie.calc(Ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Xe,transition:[`background ${He} ${It}`,`transform ${He} ${It}`,`top ${He} ${It}`,`color ${He} ${It}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,qe.unit)(ie.calc(yt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,qe.unit)(yt)})`}}}}},ft=ie=>{const{antCls:me,componentCls:He,fontSize:It,motionDurationSlow:Xe,motionDurationMid:Ke,motionEaseInOut:yt,paddingXS:Bt,padding:_t,colorSplit:Qe,lineWidth:tt,zIndexPopup:Vt,borderRadiusLG:on,subMenuItemBorderRadius:Fn,menuArrowSize:gn,menuArrowOffset:Lt,lineType:Qt,groupTitleLineHeight:jt,groupTitleFontSize:rt}=ie;return[{"":{[He]:Object.assign(Object.assign({},(0,ct.dF)()),{"&-hidden":{display:"none"}})},[`${He}-submenu-hidden`]:{display:"none"}},{[He]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(ie)),(0,ct.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:It,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Xe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${He}-item`]:{flex:"none"}},[`${He}-item, ${He}-submenu, ${He}-submenu-title`]:{borderRadius:ie.itemBorderRadius},[`${He}-item-group-title`]:{padding:`${(0,qe.unit)(Bt)} ${(0,qe.unit)(_t)}`,fontSize:rt,lineHeight:jt,transition:`all ${Xe}`},[`&-horizontal ${He}-submenu`]:{transition:[`border-color ${Xe} ${yt}`,`background ${Xe} ${yt}`].join(",")},[`${He}-submenu, ${He}-submenu-inline`]:{transition:[`border-color ${Xe} ${yt}`,`background ${Xe} ${yt}`,`padding ${Ke} ${yt}`].join(",")},[`${He}-submenu ${He}-sub`]:{cursor:"initial",transition:[`background ${Xe} ${yt}`,`padding ${Xe} ${yt}`].join(",")},[`${He}-title-content`]:{transition:`color ${Xe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${me}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${He}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ie.padding}},[`${He}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${He}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Qe,borderStyle:Qt,borderWidth:0,borderTopWidth:tt,marginBlock:tt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Et(ie)),{[`${He}-item-group`]:{[`${He}-item-group-list`]:{margin:0,padding:0,[`${He}-item, ${He}-submenu-title`]:{paddingInline:`${(0,qe.unit)(ie.calc(It).mul(2).equal())} ${(0,qe.unit)(_t)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Vt,borderRadius:on,boxShadow:"none",transformOrigin:"0 0",[`&${He}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${He}`]:Object.assign(Object.assign(Object.assign({borderRadius:on},Et(ie)),Be(ie)),{[`${He}-item, ${He}-submenu > ${He}-submenu-title`]:{borderRadius:Fn},[`${He}-submenu-title::after`]:{transition:`transform ${Xe} ${yt}`}})},"\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}}}),Be(ie)),{[`&-inline-collapsed ${He}-submenu-arrow,
|
|
|
&-inline ${He}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,qe.unit)(Lt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,qe.unit)(ie.calc(Lt).mul(-1).equal())})`}},[`${He}-submenu-open${He}-submenu-inline > ${He}-submenu-title > ${He}-submenu-arrow`]:{transform:`translateY(${(0,qe.unit)(ie.calc(gn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,qe.unit)(ie.calc(Lt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,qe.unit)(Lt)})`}}})},{[`${me}-layout-header`]:{[He]:{lineHeight:"inherit"}}}]},ot=ie=>{var me,He,It;const{colorPrimary:Xe,colorError:Ke,colorTextDisabled:yt,colorErrorBg:Bt,colorText:_t,colorTextDescription:Qe,colorBgContainer:tt,colorFillAlter:Vt,colorFillContent:on,lineWidth:Fn,lineWidthBold:gn,controlItemBgActive:Lt,colorBgTextHover:Qt,controlHeightLG:jt,lineHeight:rt,colorBgElevated:Nt,marginXXS:fn,padding:yn,fontSize:lt,controlHeightSM:Rt,fontSizeLG:en,colorTextLightSolid:Pt,colorErrorHover:Yt}=ie,Gt=(me=ie.activeBarWidth)!==null&&me!==void 0?me:0,Sn=(He=ie.activeBarBorderWidth)!==null&&He!==void 0?He:Fn,jn=(It=ie.itemMarginInline)!==null&&It!==void 0?It:ie.marginXXS,Dn=new Je.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:_t,itemColor:_t,colorItemTextHover:_t,itemHoverColor:_t,colorItemTextHoverHorizontal:Xe,horizontalItemHoverColor:Xe,colorGroupTitle:Qe,groupTitleColor:Qe,colorItemTextSelected:Xe,itemSelectedColor:Xe,subMenuItemSelectedColor:Xe,colorItemTextSelectedHorizontal:Xe,horizontalItemSelectedColor:Xe,colorItemBg:tt,itemBg:tt,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:on,itemActiveBg:Lt,colorSubItemBg:Vt,subMenuItemBg:Vt,colorItemBgSelected:Lt,itemSelectedBg:Lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Gt,colorActiveBarHeight:gn,activeBarHeight:gn,colorActiveBarBorderSize:Fn,activeBarBorderWidth:Sn,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:Bt,dangerItemActiveBg:Bt,colorDangerItemBgSelected:Bt,dangerItemSelectedBg:Bt,itemMarginInline:jn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:jt,groupTitleLineHeight:rt,collapsedWidth:jt*2,popupBg:Nt,itemMarginBlock:fn,itemPaddingInline:yn,horizontalLineHeight:`${jt*1.15}px`,iconSize:lt,iconMarginInlineEnd:Rt-lt,collapsedIconSize:en,groupTitleFontSize:lt,darkItemDisabledColor:new Je.FastColor(Pt).setA(.25).toRgbString(),darkItemColor:Dn,darkDangerItemColor:Ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Pt,darkItemSelectedBg:Xe,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:Dn,darkItemHoverColor:Pt,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Ke,itemWidth:Gt?`calc(100% + ${Sn}px)`:`calc(100% - ${jn*2}px)`}};var Xt=function(ie){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie,He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,pe.I$)("Menu",Xe=>{const{colorBgElevated:Ke,controlHeightLG:yt,fontSize:Bt,darkItemColor:_t,darkDangerItemColor:Qe,darkItemBg:tt,darkSubMenuItemBg:Vt,darkItemSelectedColor:on,darkItemSelectedBg:Fn,darkDangerItemSelectedBg:gn,darkItemHoverBg:Lt,darkGroupTitleColor:Qt,darkItemHoverColor:jt,darkItemDisabledColor:rt,darkDangerItemHoverColor:Nt,darkDangerItemSelectedColor:fn,darkDangerItemActiveBg:yn,popupBg:lt,darkPopupBg:Rt}=Xe,en=Xe.calc(Bt).div(7).mul(5).equal(),Pt=(0,Le.mergeToken)(Xe,{menuArrowSize:en,menuHorizontalHeight:Xe.calc(yt).mul(1.15).equal(),menuArrowOffset:Xe.calc(en).mul(.25).equal(),menuSubMenuBg:Ke,calc:Xe.calc,popupBg:lt}),Yt=(0,Le.mergeToken)(Pt,{itemColor:_t,itemHoverColor:jt,groupTitleColor:Qt,itemSelectedColor:on,subMenuItemSelectedColor:on,itemBg:tt,popupBg:Rt,subMenuItemBg:Vt,itemActiveBg:"transparent",itemSelectedBg:Fn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Lt,itemDisabledColor:rt,dangerItemColor:Qe,dangerItemHoverColor:Nt,dangerItemSelectedColor:fn,dangerItemActiveBg:yn,dangerItemSelectedBg:gn,menuSubMenuBg:Vt,horizontalItemSelectedColor:on,horizontalItemSelectedBg:Fn});return[ft(Pt),de(Pt),Ht(Pt),Ie(Pt,"light"),Ie(Yt,"dark"),Ye(Pt),(0,bt.Z)(Pt),(0,st.oN)(Pt,"slide-up"),(0,st.oN)(Pt,"slide-down"),(0,$e._y)(Pt,"zoom-big")]},ot,{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:He,unitless:{groupTitleLineHeight:!0}})(ie,me)},xt=E(75030),ht=ie=>{var me;const{popupClassName:He,icon:It,title:Xe,theme:Ke}=ie,yt=y.useContext(Ge),{prefixCls:Bt,inlineCollapsed:_t,theme:Qe}=yt,tt=(0,ge.Xl)();let Vt;if(!It)Vt=_t&&!tt.length&&Xe&&typeof Xe=="string"?y.createElement("div",{className:`${Bt}-inline-collapsed-noicon`},Xe.charAt(0)):y.createElement("span",{className:`${Bt}-title-content`},Xe);else{const gn=y.isValidElement(Xe)&&Xe.type==="span";Vt=y.createElement(y.Fragment,null,(0,fe.Tm)(It,{className:Ee()(y.isValidElement(It)?(me=It.props)===null||me===void 0?void 0:me.className:"",`${Bt}-item-icon`)}),gn?Xe:y.createElement("span",{className:`${Bt}-title-content`},Xe))}const on=y.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]),[Fn]=(0,xt.Cn)("Menu");return y.createElement(Ge.Provider,{value:on},y.createElement(ge.Wd,Object.assign({},(0,ke.Z)(ie,["icon"]),{title:Vt,popupClassName:Ee()(Bt,He,`${Bt}-${Ke||Qe}`),popupStyle:Object.assign({zIndex:Fn},ie.popupStyle)})))},un=function(ie,me){var He={};for(var It in ie)Object.prototype.hasOwnProperty.call(ie,It)&&me.indexOf(It)<0&&(He[It]=ie[It]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,It=Object.getOwnPropertySymbols(ie);Xe<It.length;Xe++)me.indexOf(It[Xe])<0&&Object.prototype.propertyIsEnumerable.call(ie,It[Xe])&&(He[It[Xe]]=ie[It[Xe]]);return He};function zt(ie){return ie===null||ie===!1}const ue={item:Ae,submenu:ht,divider:Pe};var re=(0,y.forwardRef)((ie,me)=>{var He;const It=y.useContext(Oe.Z),Xe=It||{},{getPrefixCls:Ke,getPopupContainer:yt,direction:Bt,menu:_t}=y.useContext(We.E_),Qe=Ke(),{prefixCls:tt,className:Vt,style:on,theme:Fn="light",expandIcon:gn,_internalDisableMenuItemTitleTooltip:Lt,inlineCollapsed:Qt,siderCollapsed:jt,rootClassName:rt,mode:Nt,selectable:fn,onClick:yn,overflowedIndicatorPopupClassName:lt}=ie,Rt=un(ie,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),en=(0,ke.Z)(Rt,["collapsedWidth"]);(He=Xe.validator)===null||He===void 0||He.call(Xe,{mode:Nt});const Pt=(0,Ce.Z)(function(){var Cn;yn==null||yn.apply(void 0,arguments),(Cn=Xe.onClick)===null||Cn===void 0||Cn.call(Xe)}),Yt=Xe.mode||Nt,Gt=fn!=null?fn:Xe.selectable,Sn=Qt!=null?Qt:jt,jn={horizontal:{motionName:`${Qe}-slide-up`},inline:(0,De.Z)(Qe),other:{motionName:`${Qe}-zoom-big`}},Dn=Ke("menu",tt||Xe.prefixCls),Zn=(0,Te.Z)(Dn),[Ot,Wt,ln]=Xt(Dn,Zn,!It),bn=Ee()(`${Dn}-${Fn}`,_t==null?void 0:_t.className,Vt),tn=y.useMemo(()=>{var Cn,Pn;if(typeof gn=="function"||zt(gn))return gn||null;if(typeof Xe.expandIcon=="function"||zt(Xe.expandIcon))return Xe.expandIcon||null;if(typeof(_t==null?void 0:_t.expandIcon)=="function"||zt(_t==null?void 0:_t.expandIcon))return(_t==null?void 0:_t.expandIcon)||null;const vr=(Cn=gn!=null?gn:Xe==null?void 0:Xe.expandIcon)!==null&&Cn!==void 0?Cn:_t==null?void 0:_t.expandIcon;return(0,fe.Tm)(vr,{className:Ee()(`${Dn}-submenu-expand-icon`,y.isValidElement(vr)?(Pn=vr.props)===null||Pn===void 0?void 0:Pn.className:void 0)})},[gn,Xe==null?void 0:Xe.expandIcon,_t==null?void 0:_t.expandIcon,Dn]),wn=y.useMemo(()=>({prefixCls:Dn,inlineCollapsed:Sn||!1,direction:Bt,firstLevel:!0,theme:Fn,mode:Yt,disableMenuItemTitleTooltip:Lt}),[Dn,Sn,Bt,Lt,Fn]);return Ot(y.createElement(Oe.Z.Provider,{value:null},y.createElement(Ge.Provider,{value:wn},y.createElement(ge.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:y.createElement(_e.Z,null),overflowedIndicatorPopupClassName:Ee()(Dn,`${Dn}-${Fn}`,lt),mode:Yt,selectable:Gt,onClick:Pt},en,{inlineCollapsed:Sn,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),on),className:bn,prefixCls:Dn,direction:Bt,defaultMotions:jn,expandIcon:tn,ref:me,rootClassName:Ee()(rt,Wt,Xe.rootClassName,ln,Zn),_internalComponents:ue})))))});const se=(0,y.forwardRef)((ie,me)=>{const He=(0,y.useRef)(null),It=y.useContext(ce.D);return(0,y.useImperativeHandle)(me,()=>({menu:He.current,focus:Xe=>{var Ke;(Ke=He.current)===null||Ke===void 0||Ke.focus(Xe)}})),y.createElement(re,Object.assign({ref:He},ie,It))});se.Item=Ae,se.SubMenu=ht,se.Divider=Pe,se.ItemGroup=ge.BW;var he=se},31709:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return _t}});var y=E(59301),ge=E(60499),ce={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"},_e=ce,Se=E(7657),Ee=function(tt,Vt){return y.createElement(Se.Z,(0,ge.Z)({},tt,{ref:Vt,icon:_e}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(49198),fe=E(33853),We=E(38819),Te=E(92310),dt=E.n(Te),Ge=E(18642),Ne=E(43749),we=E(85899),Pe=E(72190),Fe=E(18929),et=E(10228),St=E(26112),Ae=E(48736),Oe=E(17119),qe=[10,20,50,100],Je=function(tt){var Vt=tt.pageSizeOptions,on=Vt===void 0?qe:Vt,Fn=tt.locale,gn=tt.changeSize,Lt=tt.pageSize,Qt=tt.goButton,jt=tt.quickGo,rt=tt.rootPrefixCls,Nt=tt.disabled,fn=tt.buildOptionText,yn=tt.showSizeChanger,lt=tt.sizeChangerRender,Rt=y.useState(""),en=(0,Pe.Z)(Rt,2),Pt=en[0],Yt=en[1],Gt=function(){return!Pt||Number.isNaN(Pt)?void 0:Number(Pt)},Sn=typeof fn=="function"?fn:function(wn){return"".concat(wn," ").concat(Fn.items_per_page)},jn=function(Cn){Yt(Cn.target.value)},Dn=function(Cn){Qt||Pt===""||(Yt(""),!(Cn.relatedTarget&&(Cn.relatedTarget.className.indexOf("".concat(rt,"-item-link"))>=0||Cn.relatedTarget.className.indexOf("".concat(rt,"-item"))>=0))&&(jt==null||jt(Gt())))},Zn=function(Cn){Pt!==""&&(Cn.keyCode===et.Z.ENTER||Cn.type==="click")&&(Yt(""),jt==null||jt(Gt()))},Ot=function(){return on.some(function(Cn){return Cn.toString()===Lt.toString()})?on:on.concat([Lt]).sort(function(Cn,Pn){var vr=Number.isNaN(Number(Cn))?0:Number(Cn),Qn=Number.isNaN(Number(Pn))?0:Number(Pn);return vr-Qn})},Wt="".concat(rt,"-options");if(!yn&&!jt)return null;var ln=null,bn=null,tn=null;return yn&<&&(ln=lt({disabled:Nt,size:Lt,onSizeChange:function(Cn){gn==null||gn(Number(Cn))},"aria-label":Fn.page_size,className:"".concat(Wt,"-size-changer"),options:Ot().map(function(wn){return{label:Sn(wn),value:wn}})})),jt&&(Qt&&(tn=typeof Qt=="boolean"?y.createElement("button",{type:"button",onClick:Zn,onKeyUp:Zn,disabled:Nt,className:"".concat(Wt,"-quick-jumper-button")},Fn.jump_to_confirm):y.createElement("span",{onClick:Zn,onKeyUp:Zn},Qt)),bn=y.createElement("div",{className:"".concat(Wt,"-quick-jumper")},Fn.jump_to,y.createElement("input",{disabled:Nt,type:"text",value:Pt,onChange:jn,onKeyUp:Zn,onBlur:Dn,"aria-label":Fn.page}),Fn.page,tn)),y.createElement("li",{className:Wt},ln,bn)},ct=Je,bt=function(tt){var Vt=tt.rootPrefixCls,on=tt.page,Fn=tt.active,gn=tt.className,Lt=tt.showTitle,Qt=tt.onClick,jt=tt.onKeyPress,rt=tt.itemRender,Nt="".concat(Vt,"-item"),fn=dt()(Nt,"".concat(Nt,"-").concat(on),(0,Ge.Z)((0,Ge.Z)({},"".concat(Nt,"-active"),Fn),"".concat(Nt,"-disabled"),!on),gn),yn=function(){Qt(on)},lt=function(Pt){jt(Pt,Qt,on)},Rt=rt(on,"page",y.createElement("a",{rel:"nofollow"},on));return Rt?y.createElement("li",{title:Lt?String(on):null,className:fn,onClick:yn,onKeyDown:lt,tabIndex:0},Rt):null},st=bt,$e=function(tt,Vt,on){return on};function pe(){}function Le(Qe){var tt=Number(Qe);return typeof tt=="number"&&!Number.isNaN(tt)&&isFinite(tt)&&Math.floor(tt)===tt}function xe(Qe,tt,Vt){var on=typeof Qe=="undefined"?tt:Qe;return Math.floor((Vt-1)/on)+1}var de=function(tt){var Vt=tt.prefixCls,on=Vt===void 0?"rc-pagination":Vt,Fn=tt.selectPrefixCls,gn=Fn===void 0?"rc-select":Fn,Lt=tt.className,Qt=tt.current,jt=tt.defaultCurrent,rt=jt===void 0?1:jt,Nt=tt.total,fn=Nt===void 0?0:Nt,yn=tt.pageSize,lt=tt.defaultPageSize,Rt=lt===void 0?10:lt,en=tt.onChange,Pt=en===void 0?pe:en,Yt=tt.hideOnSinglePage,Gt=tt.align,Sn=tt.showPrevNextJumpers,jn=Sn===void 0?!0:Sn,Dn=tt.showQuickJumper,Zn=tt.showLessItems,Ot=tt.showTitle,Wt=Ot===void 0?!0:Ot,ln=tt.onShowSizeChange,bn=ln===void 0?pe:ln,tn=tt.locale,wn=tn===void 0?Oe.Z:tn,Cn=tt.style,Pn=tt.totalBoundaryShowSizeChanger,vr=Pn===void 0?50:Pn,Qn=tt.disabled,dr=tt.simple,br=tt.showTotal,yr=tt.showSizeChanger,Vr=yr===void 0?fn>vr:yr,Zr=tt.sizeChangerRender,An=tt.pageSizeOptions,$n=tt.itemRender,fr=$n===void 0?$e:$n,ur=tt.jumpPrevIcon,kt=tt.jumpNextIcon,Ut=tt.prevIcon,pt=tt.nextIcon,Zt=y.useRef(null),at=(0,Fe.Z)(10,{value:yn,defaultValue:Rt}),gt=(0,Pe.Z)(at,2),cn=gt[0],ar=gt[1],mr=(0,Fe.Z)(1,{value:Qt,defaultValue:rt,postState:function(ri){return Math.max(1,Math.min(ri,xe(void 0,cn,fn)))}}),At=(0,Pe.Z)(mr,2),Tt=At[0],Mt=At[1],Kt=y.useState(Tt),On=(0,Pe.Z)(Kt,2),Kn=On[0],Un=On[1];(0,y.useEffect)(function(){Un(Tt)},[Tt]);var Hn=Pt!==pe,hr="current"in tt,Pr=Math.max(1,Tt-(Zn?3:5)),Tr=Math.min(xe(void 0,cn,fn),Tt+(Zn?3:5));function Lr(Ii,ri){var So=Ii||y.createElement("button",{type:"button","aria-label":ri,className:"".concat(on,"-item-link")});return typeof Ii=="function"&&(So=y.createElement(Ii,(0,we.Z)({},tt))),So}function Cr(Ii){var ri=Ii.target.value,So=xe(void 0,cn,fn),ci;return ri===""?ci=ri:Number.isNaN(Number(ri))?ci=Kn:ri>=So?ci=So:ci=Number(ri),ci}function Rr(Ii){return Le(Ii)&&Ii!==Tt&&Le(fn)&&fn>0}var Xr=fn>cn?Dn:!1;function oa(Ii){(Ii.keyCode===et.Z.UP||Ii.keyCode===et.Z.DOWN)&&Ii.preventDefault()}function ta(Ii){var ri=Cr(Ii);switch(ri!==Kn&&Un(ri),Ii.keyCode){case et.Z.ENTER:Ur(ri);break;case et.Z.UP:Ur(ri-1);break;case et.Z.DOWN:Ur(ri+1);break;default:break}}function xa(Ii){Ur(Cr(Ii))}function Fa(Ii){var ri=xe(Ii,cn,fn),So=Tt>ri&&ri!==0?ri:Tt;ar(Ii),Un(So),bn==null||bn(Tt,Ii),Mt(So),Pt==null||Pt(So,Ii)}function Ur(Ii){if(Rr(Ii)&&!Qn){var ri=xe(void 0,cn,fn),So=Ii;return Ii>ri?So=ri:Ii<1&&(So=1),So!==Kn&&Un(So),Mt(So),Pt==null||Pt(So,cn),So}return Tt}var ya=Tt>1,Xa=Tt<xe(void 0,cn,fn);function Ia(){ya&&Ur(Tt-1)}function pa(){Xa&&Ur(Tt+1)}function kr(){Ur(Pr)}function Za(){Ur(Tr)}function Sa(Ii,ri){if(Ii.key==="Enter"||Ii.charCode===et.Z.ENTER||Ii.keyCode===et.Z.ENTER){for(var So=arguments.length,ci=new Array(So>2?So-2:0),il=2;il<So;il++)ci[il-2]=arguments[il];ri.apply(void 0,ci)}}function la(Ii){Sa(Ii,Ia)}function Kr(Ii){Sa(Ii,pa)}function Ya(Ii){Sa(Ii,kr)}function Mi(Ii){Sa(Ii,Za)}function ji(Ii){var ri=fr(Ii,"prev",Lr(Ut,"prev page"));return y.isValidElement(ri)?y.cloneElement(ri,{disabled:!ya}):ri}function za(Ii){var ri=fr(Ii,"next",Lr(pt,"next page"));return y.isValidElement(ri)?y.cloneElement(ri,{disabled:!Xa}):ri}function Di(Ii){(Ii.type==="click"||Ii.keyCode===et.Z.ENTER)&&Ur(Kn)}var mi=null,Wi=(0,St.Z)(tt,{aria:!0,data:!0}),Ei=br&&y.createElement("li",{className:"".concat(on,"-total-text")},br(fn,[fn===0?0:(Tt-1)*cn+1,Tt*cn>fn?fn:Tt*cn])),ei=null,Ar=xe(void 0,cn,fn);if(Yt&&fn<=cn)return null;var Jn=[],xr={rootPrefixCls:on,onClick:Ur,onKeyPress:Sa,showTitle:Wt,itemRender:fr,page:-1},Sr=Tt-1>0?Tt-1:0,tr=Tt+1<Ar?Tt+1:Ar,$r=Dn&&Dn.goButton,sa=(0,Ne.Z)(dr)==="object"?dr.readOnly:!dr,Er=$r,Dr=null;dr&&($r&&(typeof $r=="boolean"?Er=y.createElement("button",{type:"button",onClick:Di,onKeyUp:Di},wn.jump_to_confirm):Er=y.createElement("span",{onClick:Di,onKeyUp:Di},$r),Er=y.createElement("li",{title:Wt?"".concat(wn.jump_to).concat(Tt,"/").concat(Ar):null,className:"".concat(on,"-simple-pager")},Er)),Dr=y.createElement("li",{title:Wt?"".concat(Tt,"/").concat(Ar):null,className:"".concat(on,"-simple-pager")},sa?Kn:y.createElement("input",{type:"text","aria-label":wn.jump_to,value:Kn,disabled:Qn,onKeyDown:oa,onKeyUp:ta,onChange:ta,onBlur:xa,size:3}),y.createElement("span",{className:"".concat(on,"-slash")},"/"),Ar));var jr=Zn?1:2;if(Ar<=3+jr*2){Ar||Jn.push(y.createElement(st,(0,ge.Z)({},xr,{key:"noPager",page:1,className:"".concat(on,"-item-disabled")})));for(var Qr=1;Qr<=Ar;Qr+=1)Jn.push(y.createElement(st,(0,ge.Z)({},xr,{key:Qr,page:Qr,active:Tt===Qr})))}else{var Na=Zn?wn.prev_3:wn.prev_5,$a=Zn?wn.next_3:wn.next_5,ea=fr(Pr,"jump-prev",Lr(ur,"prev page")),ai=fr(Tr,"jump-next",Lr(kt,"next page"));jn&&(mi=ea?y.createElement("li",{title:Wt?Na:null,key:"prev",onClick:kr,tabIndex:0,onKeyDown:Ya,className:dt()("".concat(on,"-jump-prev"),(0,Ge.Z)({},"".concat(on,"-jump-prev-custom-icon"),!!ur))},ea):null,ei=ai?y.createElement("li",{title:Wt?$a:null,key:"next",onClick:Za,tabIndex:0,onKeyDown:Mi,className:dt()("".concat(on,"-jump-next"),(0,Ge.Z)({},"".concat(on,"-jump-next-custom-icon"),!!kt))},ai):null);var gi=Math.max(1,Tt-jr),zi=Math.min(Tt+jr,Ar);Tt-1<=jr&&(zi=1+jr*2),Ar-Tt<=jr&&(gi=Ar-jr*2);for(var Ui=gi;Ui<=zi;Ui+=1)Jn.push(y.createElement(st,(0,ge.Z)({},xr,{key:Ui,page:Ui,active:Tt===Ui})));if(Tt-1>=jr*2&&Tt!==3&&(Jn[0]=y.cloneElement(Jn[0],{className:dt()("".concat(on,"-item-after-jump-prev"),Jn[0].props.className)}),Jn.unshift(mi)),Ar-Tt>=jr*2&&Tt!==Ar-2){var Ji=Jn[Jn.length-1];Jn[Jn.length-1]=y.cloneElement(Ji,{className:dt()("".concat(on,"-item-before-jump-next"),Ji.props.className)}),Jn.push(ei)}gi!==1&&Jn.unshift(y.createElement(st,(0,ge.Z)({},xr,{key:1,page:1}))),zi!==Ar&&Jn.push(y.createElement(st,(0,ge.Z)({},xr,{key:Ar,page:Ar})))}var Yi=ji(Sr);if(Yi){var co=!ya||!Ar;Yi=y.createElement("li",{title:Wt?wn.prev_page:null,onClick:Ia,tabIndex:co?null:0,onKeyDown:la,className:dt()("".concat(on,"-prev"),(0,Ge.Z)({},"".concat(on,"-disabled"),co)),"aria-disabled":co},Yi)}var No=za(tr);if(No){var $o,Wo;dr?($o=!Xa,Wo=ya?0:null):($o=!Xa||!Ar,Wo=$o?null:0),No=y.createElement("li",{title:Wt?wn.next_page:null,onClick:pa,tabIndex:Wo,onKeyDown:Kr,className:dt()("".concat(on,"-next"),(0,Ge.Z)({},"".concat(on,"-disabled"),$o)),"aria-disabled":$o},No)}var Ba=dt()(on,Lt,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},"".concat(on,"-start"),Gt==="start"),"".concat(on,"-center"),Gt==="center"),"".concat(on,"-end"),Gt==="end"),"".concat(on,"-simple"),dr),"".concat(on,"-disabled"),Qn));return y.createElement("ul",(0,ge.Z)({className:Ba,style:Cn,ref:Zt},Wi),Ei,Yi,dr?Dr:Jn,No,y.createElement(ct,{locale:wn,rootPrefixCls:on,disabled:Qn,selectPrefixCls:gn,changeSize:Fa,pageSize:cn,pageSizeOptions:An,quickGo:Xr?Ur:null,goButton:Er,showSizeChanger:Vr,sizeChangerRender:Zr}))},Ct=de,Ye=E(61852),je=E(48755),it=E(31756),Ie=E(13783),ye=E(9017),vt=E(82326),Ht=E(57700),Et=E(36237),Be=E(53075),ft=E(64910),ot=E(39082),Xt=E(63356),xt=E(51636),wt=E(16931);const ht=Qe=>{const{componentCls:tt}=Qe;return{[`${tt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Qe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Qe.colorTextDisabled,cursor:"not-allowed"}}},[`&${tt}-disabled`]:{cursor:"not-allowed",[`${tt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Qe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Qe.colorBorder,backgroundColor:Qe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Qe.itemActiveBgDisabled},a:{color:Qe.itemActiveColorDisabled}}},[`${tt}-item-link`]:{color:Qe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${tt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${tt}-simple-pager`]:{color:Qe.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"}}}}}},un=Qe=>{const{componentCls:tt}=Qe;return{[`&${tt}-mini ${tt}-total-text, &${tt}-mini ${tt}-simple-pager`]:{height:Qe.itemSizeSM,lineHeight:(0,Et.unit)(Qe.itemSizeSM)},[`&${tt}-mini ${tt}-item`]:{minWidth:Qe.itemSizeSM,height:Qe.itemSizeSM,margin:0,lineHeight:(0,Et.unit)(Qe.calc(Qe.itemSizeSM).sub(2).equal())},[`&${tt}-mini ${tt}-prev, &${tt}-mini ${tt}-next`]:{minWidth:Qe.itemSizeSM,height:Qe.itemSizeSM,margin:0,lineHeight:(0,Et.unit)(Qe.itemSizeSM)},[`&${tt}-mini:not(${tt}-disabled)`]:{[`${tt}-prev, ${tt}-next`]:{[`&:hover ${tt}-item-link`]:{backgroundColor:Qe.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Qe.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:Qe.itemSizeSM,lineHeight:(0,Et.unit)(Qe.itemSizeSM)}},[`&${tt}-mini ${tt}-jump-prev, &${tt}-mini ${tt}-jump-next`]:{height:Qe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Et.unit)(Qe.itemSizeSM)},[`&${tt}-mini ${tt}-options`]:{marginInlineStart:Qe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Qe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Qe.itemSizeSM,lineHeight:(0,Et.unit)(Qe.itemSizeSM),input:Object.assign(Object.assign({},(0,Be.x0)(Qe)),{width:Qe.paginationMiniQuickJumperInputWidth,height:Qe.controlHeightSM})}}}},zt=Qe=>{const{componentCls:tt}=Qe;return{[`
|
|
|
&${tt}-simple ${tt}-prev,
|
|
|
&${tt}-simple ${tt}-next
|
|
|
`]:{height:Qe.itemSizeSM,lineHeight:(0,Et.unit)(Qe.itemSizeSM),verticalAlign:"top",[`${tt}-item-link`]:{height:Qe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Qe.colorBgTextHover},"&:active":{backgroundColor:Qe.colorBgTextActive},"&::after":{height:Qe.itemSizeSM,lineHeight:(0,Et.unit)(Qe.itemSizeSM)}}},[`&${tt}-simple ${tt}-simple-pager`]:{display:"inline-block",height:Qe.itemSizeSM,marginInlineEnd:Qe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Et.unit)(Qe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Qe.itemInputBg,border:`${(0,Et.unit)(Qe.lineWidth)} ${Qe.lineType} ${Qe.colorBorder}`,borderRadius:Qe.borderRadius,outline:"none",transition:`border-color ${Qe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Qe.colorPrimary},"&:focus":{borderColor:Qe.colorPrimaryHover,boxShadow:`${(0,Et.unit)(Qe.inputOutlineOffset)} 0 ${(0,Et.unit)(Qe.controlOutlineWidth)} ${Qe.controlOutline}`},"&[disabled]":{color:Qe.colorTextDisabled,backgroundColor:Qe.colorBgContainerDisabled,borderColor:Qe.colorBorder,cursor:"not-allowed"}}}}},ue=Qe=>{const{componentCls:tt}=Qe;return{[`${tt}-jump-prev, ${tt}-jump-next`]:{outline:0,[`${tt}-item-container`]:{position:"relative",[`${tt}-item-link-icon`]:{color:Qe.colorPrimary,fontSize:Qe.fontSizeSM,opacity:0,transition:`all ${Qe.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:Qe.colorTextDisabled,letterSpacing:Qe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Qe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Qe.motionDurationMid}`}},"&:hover":{[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{marginInlineEnd:Qe.marginXS},[`
|
|
|
${tt}-prev,
|
|
|
${tt}-next,
|
|
|
${tt}-jump-prev,
|
|
|
${tt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Qe.itemSize,height:Qe.itemSize,color:Qe.colorText,fontFamily:Qe.fontFamily,lineHeight:(0,Et.unit)(Qe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Qe.borderRadius,cursor:"pointer",transition:`all ${Qe.motionDurationMid}`},[`${tt}-prev, ${tt}-next`]:{outline:0,button:{color:Qe.colorText,cursor:"pointer",userSelect:"none"},[`${tt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Qe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Et.unit)(Qe.lineWidth)} ${Qe.lineType} transparent`,borderRadius:Qe.borderRadius,outline:"none",transition:`all ${Qe.motionDurationMid}`},[`&:hover ${tt}-item-link`]:{backgroundColor:Qe.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Qe.colorBgTextActive},[`&${tt}-disabled:hover`]:{[`${tt}-item-link`]:{backgroundColor:"transparent"}}},[`${tt}-slash`]:{marginInlineEnd:Qe.paginationSlashMarginInlineEnd,marginInlineStart:Qe.paginationSlashMarginInlineStart},[`${tt}-options`]:{display:"inline-block",marginInlineStart:Qe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Qe.controlHeight,marginInlineStart:Qe.marginXS,lineHeight:(0,Et.unit)(Qe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Be.ik)(Qe)),(0,ot.$U)(Qe,{borderColor:Qe.colorBorder,hoverBorderColor:Qe.colorPrimaryHover,activeBorderColor:Qe.colorPrimary,activeShadow:Qe.activeShadow})),{"&[disabled]":Object.assign({},(0,ot.Xy)(Qe)),width:Qe.calc(Qe.controlHeightLG).mul(1.25).equal(),height:Qe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Qe.marginXS,marginInlineEnd:Qe.marginXS})}}}},ae=Qe=>{const{componentCls:tt}=Qe;return{[`${tt}-item`]:{display:"inline-block",minWidth:Qe.itemSize,height:Qe.itemSize,marginInlineEnd:Qe.marginXS,fontFamily:Qe.fontFamily,lineHeight:(0,Et.unit)(Qe.calc(Qe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Qe.itemBg,border:`${(0,Et.unit)(Qe.lineWidth)} ${Qe.lineType} transparent`,borderRadius:Qe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Et.unit)(Qe.paginationItemPaddingInline)}`,color:Qe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${tt}-item-active)`]:{"&:hover":{transition:`all ${Qe.motionDurationMid}`,backgroundColor:Qe.colorBgTextHover},"&:active":{backgroundColor:Qe.colorBgTextActive}},"&-active":{fontWeight:Qe.fontWeightStrong,backgroundColor:Qe.itemActiveBg,borderColor:Qe.colorPrimary,a:{color:Qe.colorPrimary},"&:hover":{borderColor:Qe.colorPrimaryHover},"&:hover a":{color:Qe.colorPrimaryHover}}}}},re=Qe=>{const{componentCls:tt}=Qe;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(Qe)),{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:Qe.itemSize,marginInlineEnd:Qe.marginXS,lineHeight:(0,Et.unit)(Qe.calc(Qe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ae(Qe)),ue(Qe)),zt(Qe)),un(Qe)),ht(Qe)),{[`@media only screen and (max-width: ${Qe.screenLG}px)`]:{[`${tt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Qe.screenSM}px)`]:{[`${tt}-options`]:{display:"none"}}}),[`&${Qe.componentCls}-rtl`]:{direction:"rtl"}}},se=Qe=>{const{componentCls:tt}=Qe;return{[`${tt}:not(${tt}-disabled)`]:{[`${tt}-item`]:Object.assign({},(0,Xt.Qy)(Qe)),[`${tt}-jump-prev, ${tt}-jump-next`]:{"&:focus-visible":Object.assign({[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}},(0,Xt.oN)(Qe))},[`${tt}-prev, ${tt}-next`]:{[`&:focus-visible ${tt}-item-link`]:Object.assign({},(0,Xt.oN)(Qe))}}}},he=Qe=>Object.assign({itemBg:Qe.colorBgContainer,itemSize:Qe.controlHeight,itemSizeSM:Qe.controlHeightSM,itemActiveBg:Qe.colorBgContainer,itemLinkBg:Qe.colorBgContainer,itemActiveColorDisabled:Qe.colorTextDisabled,itemActiveBgDisabled:Qe.controlItemBgActiveDisabled,itemInputBg:Qe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,ft.T)(Qe)),ie=Qe=>(0,xt.mergeToken)(Qe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Qe.calc(Qe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Qe.calc(Qe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Qe.calc(Qe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Qe.calc(Qe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Qe.marginSM,paginationSlashMarginInlineEnd:Qe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ft.e)(Qe));var me=(0,wt.I$)("Pagination",Qe=>{const tt=ie(Qe);return[re(tt),se(tt)]},he);const He=Qe=>{const{componentCls:tt}=Qe;return{[`${tt}${tt}-bordered${tt}-disabled:not(${tt}-mini)`]:{"&, &:hover":{[`${tt}-item-link`]:{borderColor:Qe.colorBorder}},"&:focus-visible":{[`${tt}-item-link`]:{borderColor:Qe.colorBorder}},[`${tt}-item, ${tt}-item-link`]:{backgroundColor:Qe.colorBgContainerDisabled,borderColor:Qe.colorBorder,[`&:hover:not(${tt}-item-active)`]:{backgroundColor:Qe.colorBgContainerDisabled,borderColor:Qe.colorBorder,a:{color:Qe.colorTextDisabled}},[`&${tt}-item-active`]:{backgroundColor:Qe.itemActiveBgDisabled}},[`${tt}-prev, ${tt}-next`]:{"&:hover button":{backgroundColor:Qe.colorBgContainerDisabled,borderColor:Qe.colorBorder,color:Qe.colorTextDisabled},[`${tt}-item-link`]:{backgroundColor:Qe.colorBgContainerDisabled,borderColor:Qe.colorBorder}}},[`${tt}${tt}-bordered:not(${tt}-mini)`]:{[`${tt}-prev, ${tt}-next`]:{"&:hover button":{borderColor:Qe.colorPrimaryHover,backgroundColor:Qe.itemBg},[`${tt}-item-link`]:{backgroundColor:Qe.itemLinkBg,borderColor:Qe.colorBorder},[`&:hover ${tt}-item-link`]:{borderColor:Qe.colorPrimary,backgroundColor:Qe.itemBg,color:Qe.colorPrimary},[`&${tt}-disabled`]:{[`${tt}-item-link`]:{borderColor:Qe.colorBorder,color:Qe.colorTextDisabled}}},[`${tt}-item`]:{backgroundColor:Qe.itemBg,border:`${(0,Et.unit)(Qe.lineWidth)} ${Qe.lineType} ${Qe.colorBorder}`,[`&:hover:not(${tt}-item-active)`]:{borderColor:Qe.colorPrimary,backgroundColor:Qe.itemBg,a:{color:Qe.colorPrimary}},"&-active":{borderColor:Qe.colorPrimary}}}}};var It=(0,wt.bk)(["Pagination","bordered"],Qe=>{const tt=ie(Qe);return[He(tt)]},he);function Xe(Qe){return(0,y.useMemo)(()=>typeof Qe=="boolean"?[Qe,{}]:Qe&&typeof Qe=="object"?[!0,Qe]:[void 0,void 0],[Qe])}var Ke=function(Qe,tt){var Vt={};for(var on in Qe)Object.prototype.hasOwnProperty.call(Qe,on)&&tt.indexOf(on)<0&&(Vt[on]=Qe[on]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,on=Object.getOwnPropertySymbols(Qe);Fn<on.length;Fn++)tt.indexOf(on[Fn])<0&&Object.prototype.propertyIsEnumerable.call(Qe,on[Fn])&&(Vt[on[Fn]]=Qe[on[Fn]]);return Vt},Bt=Qe=>{const{align:tt,prefixCls:Vt,selectPrefixCls:on,className:Fn,rootClassName:gn,style:Lt,size:Qt,locale:jt,responsive:rt,showSizeChanger:Nt,selectComponentClass:fn,pageSizeOptions:yn}=Qe,lt=Ke(Qe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Rt}=(0,Ie.Z)(rt),[,en]=(0,Ht.ZP)(),{getPrefixCls:Pt,direction:Yt,showSizeChanger:Gt,className:Sn,style:jn}=(0,je.dj)("pagination"),Dn=Pt("pagination",Vt),[Zn,Ot,Wt]=me(Dn),ln=(0,it.Z)(Qt),bn=ln==="small"||!!(Rt&&!ln&&rt),[tn]=(0,ye.Z)("Pagination",Ye.Z),wn=Object.assign(Object.assign({},tn),jt),[Cn,Pn]=Xe(Nt),[vr,Qn]=Xe(Gt),dr=Cn!=null?Cn:vr,br=Pn!=null?Pn:Qn,yr=fn||vt.default,Vr=y.useMemo(()=>yn?yn.map(kt=>Number(kt)):void 0,[yn]),Zr=kt=>{var Ut;const{disabled:pt,size:Zt,onSizeChange:at,"aria-label":gt,className:cn,options:ar}=kt,{className:mr,onChange:At}=br||{},Tt=(Ut=ar.find(Mt=>String(Mt.value)===String(Zt)))===null||Ut===void 0?void 0:Ut.value;return y.createElement(yr,Object.assign({disabled:pt,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Mt=>Mt.parentNode,"aria-label":gt,options:ar},br,{value:Tt,onChange:(Mt,Kt)=>{at==null||at(Mt),At==null||At(Mt,Kt)},size:bn?"small":"middle",className:dt()(cn,mr)}))},An=y.useMemo(()=>{const kt=y.createElement("span",{className:`${Dn}-item-ellipsis`},"\u2022\u2022\u2022"),Ut=y.createElement("button",{className:`${Dn}-item-link`,type:"button",tabIndex:-1},Yt==="rtl"?y.createElement(We.Z,null):y.createElement(fe.Z,null)),pt=y.createElement("button",{className:`${Dn}-item-link`,type:"button",tabIndex:-1},Yt==="rtl"?y.createElement(fe.Z,null):y.createElement(We.Z,null)),Zt=y.createElement("a",{className:`${Dn}-item-link`},y.createElement("div",{className:`${Dn}-item-container`},Yt==="rtl"?y.createElement(De.Z,{className:`${Dn}-item-link-icon`}):y.createElement(ke,{className:`${Dn}-item-link-icon`}),kt)),at=y.createElement("a",{className:`${Dn}-item-link`},y.createElement("div",{className:`${Dn}-item-container`},Yt==="rtl"?y.createElement(ke,{className:`${Dn}-item-link-icon`}):y.createElement(De.Z,{className:`${Dn}-item-link-icon`}),kt));return{prevIcon:Ut,nextIcon:pt,jumpPrevIcon:Zt,jumpNextIcon:at}},[Yt,Dn]),$n=Pt("select",on),fr=dt()({[`${Dn}-${tt}`]:!!tt,[`${Dn}-mini`]:bn,[`${Dn}-rtl`]:Yt==="rtl",[`${Dn}-bordered`]:en.wireframe},Sn,Fn,gn,Ot,Wt),ur=Object.assign(Object.assign({},jn),Lt);return Zn(y.createElement(y.Fragment,null,en.wireframe&&y.createElement(It,{prefixCls:Dn}),y.createElement(Ct,Object.assign({},An,lt,{style:ur,prefixCls:Dn,selectPrefixCls:$n,className:fr,locale:wn,pageSizeOptions:Vr,showSizeChanger:dr,sizeChangerRender:Zr}))))},_t=Bt},93725:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return st}});var y=E(59301),ge=E(96512),ce=E(92310),_e=E.n(ce),Se=E(18929),Ee=E(2738),Ce=E(48755),ke=E(37639),De=E(15565),fe=E(54500),We=E(7939),Te=E(61670),dt=E(9017),Ge=E(85981),Ne=E(69106),we=E(16931);const Pe=$e=>{const{componentCls:pe,iconCls:Le,antCls:xe,zIndexPopup:de,colorText:Ct,colorWarning:Ye,marginXXS:je,marginXS:it,fontSize:Ie,fontWeightStrong:ye,colorTextHeading:vt}=$e;return{[pe]:{zIndex:de,[`&${xe}-popover`]:{fontSize:Ie},[`${pe}-message`]:{marginBottom:it,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${pe}-message-icon ${Le}`]:{color:Ye,fontSize:Ie,lineHeight:1,marginInlineEnd:it},[`${pe}-title`]:{fontWeight:ye,color:vt,"&:only-child":{fontWeight:"normal"}},[`${pe}-description`]:{marginTop:je,color:Ct}},[`${pe}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:it}}}}},Fe=$e=>{const{zIndexPopupBase:pe}=$e;return{zIndexPopup:pe+60}};var et=(0,we.I$)("Popconfirm",$e=>Pe($e),Fe,{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 de=0,xe=Object.getOwnPropertySymbols($e);de<xe.length;de++)pe.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[de])&&(Le[xe[de]]=$e[xe[de]]);return Le};const Ae=$e=>{const{prefixCls:pe,okButtonProps:Le,cancelButtonProps:xe,title:de,description:Ct,cancelText:Ye,okText:je,okType:it="primary",icon:Ie=y.createElement(ge.Z,null),showCancel:ye=!0,close:vt,onConfirm:Ht,onCancel:Et,onPopupClick:Be}=$e,{getPrefixCls:ft}=y.useContext(Ce.E_),[ot]=(0,dt.Z)("Popconfirm",Ge.Z.Popconfirm),Xt=(0,fe.Z)(de),xt=(0,fe.Z)(Ct);return y.createElement("div",{className:`${pe}-inner-content`,onClick:Be},y.createElement("div",{className:`${pe}-message`},Ie&&y.createElement("span",{className:`${pe}-message-icon`},Ie),y.createElement("div",{className:`${pe}-message-text`},Xt&&y.createElement("div",{className:`${pe}-title`},Xt),xt&&y.createElement("div",{className:`${pe}-description`},xt))),y.createElement("div",{className:`${pe}-buttons`},ye&&y.createElement(We.ZP,Object.assign({onClick:Et,size:"small"},xe),Ye||(ot==null?void 0:ot.cancelText)),y.createElement(De.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Te.nx)(it)),Le),actionFn:Ht,close:vt,prefixCls:ft("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},je||(ot==null?void 0:ot.okText))))};var qe=$e=>{const{prefixCls:pe,placement:Le,className:xe,style:de}=$e,Ct=St($e,["prefixCls","placement","className","style"]),{getPrefixCls:Ye}=y.useContext(Ce.E_),je=Ye("popconfirm",pe),[it]=et(je);return it(y.createElement(Ne.ZP,{placement:Le,className:_e()(je,xe),style:de,content:y.createElement(Ae,Object.assign({prefixCls:je},Ct))}))},Je=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 de=0,xe=Object.getOwnPropertySymbols($e);de<xe.length;de++)pe.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[de])&&(Le[xe[de]]=$e[xe[de]]);return Le};const bt=y.forwardRef(($e,pe)=>{var Le,xe;const{prefixCls:de,placement:Ct="top",trigger:Ye="click",okType:je="primary",icon:it=y.createElement(ge.Z,null),children:Ie,overlayClassName:ye,onOpenChange:vt,onVisibleChange:Ht,overlayStyle:Et,styles:Be,classNames:ft}=$e,ot=Je($e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:Xt,className:xt,style:wt,classNames:ht,styles:un}=(0,Ce.dj)("popconfirm"),[zt,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,yt)=>{ue(Ke,!0),Ht==null||Ht(Ke),vt==null||vt(Ke,yt)},re=Ke=>{ae(!1,Ke)},se=Ke=>{var yt;return(yt=$e.onConfirm)===null||yt===void 0?void 0:yt.call(void 0,Ke)},he=Ke=>{var yt;ae(!1,Ke),(yt=$e.onCancel)===null||yt===void 0||yt.call(void 0,Ke)},ie=(Ke,yt)=>{const{disabled:Bt=!1}=$e;Bt||ae(Ke,yt)},me=Xt("popconfirm",de),He=_e()(me,xt,ye,ht.root,ft==null?void 0:ft.root),It=_e()(ht.body,ft==null?void 0:ft.body),[Xe]=et(me);return Xe(y.createElement(ke.Z,Object.assign({},(0,Ee.Z)(ot,["title"]),{trigger:Ye,placement:Ct,onOpenChange:ie,open:zt,ref:pe,classNames:{root:He,body:It},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},un.root),wt),Et),Be==null?void 0:Be.root),body:Object.assign(Object.assign({},un.body),Be==null?void 0:Be.body)},content:y.createElement(Ae,Object.assign({okType:je,icon:it},$e,{prefixCls:me,close:re,onConfirm:se,onCancel:he})),"data-popover-inject":!0}),Ie))});bt._InternalPanelDoNotUseOrYouWillBeFired=qe;var st=bt},69106:function(Rn,qt,E){"use strict";E.d(qt,{aV:function(){return De},t5:function(){return fe}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(29125),Se=E(54500),Ee=E(48755),Ce=E(85074),ke=function(Te,dt){var Ge={};for(var Ne in Te)Object.prototype.hasOwnProperty.call(Te,Ne)&&dt.indexOf(Ne)<0&&(Ge[Ne]=Te[Ne]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Ne=Object.getOwnPropertySymbols(Te);we<Ne.length;we++)dt.indexOf(Ne[we])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ne[we])&&(Ge[Ne[we]]=Te[Ne[we]]);return Ge};const De=Te=>{let{title:dt,content:Ge,prefixCls:Ne}=Te;return!dt&&!Ge?null:y.createElement(y.Fragment,null,dt&&y.createElement("div",{className:`${Ne}-title`},dt),Ge&&y.createElement("div",{className:`${Ne}-inner-content`},Ge))},fe=Te=>{const{hashId:dt,prefixCls:Ge,className:Ne,style:we,placement:Pe="top",title:Fe,content:et,children:St}=Te,Ae=(0,Se.Z)(Fe),Oe=(0,Se.Z)(et),qe=ce()(dt,Ge,`${Ge}-pure`,`${Ge}-placement-${Pe}`,Ne);return y.createElement("div",{className:qe,style:we},y.createElement("div",{className:`${Ge}-arrow`}),y.createElement(_e.G,Object.assign({},Te,{className:dt,prefixCls:Ge}),St||y.createElement(De,{prefixCls:Ge,title:Ae,content:Oe})))},We=Te=>{const{prefixCls:dt,className:Ge}=Te,Ne=ke(Te,["prefixCls","className"]),{getPrefixCls:we}=y.useContext(Ee.E_),Pe=we("popover",dt),[Fe,et,St]=(0,Ce.Z)(Pe);return Fe(y.createElement(fe,Object.assign({},Ne,{prefixCls:Pe,hashId:et,className:ce()(Ge,St)})))};qt.ZP=We},37639:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(18929),Se=E(10228),Ee=E(54500),Ce=E(86641),ke=E(22703),De=E(25399),fe=E(69106),We=E(48755),Te=E(85074),dt=function(we,Pe){var Fe={};for(var et in we)Object.prototype.hasOwnProperty.call(we,et)&&Pe.indexOf(et)<0&&(Fe[et]=we[et]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,et=Object.getOwnPropertySymbols(we);St<et.length;St++)Pe.indexOf(et[St])<0&&Object.prototype.propertyIsEnumerable.call(we,et[St])&&(Fe[et[St]]=we[et[St]]);return Fe};const Ne=y.forwardRef((we,Pe)=>{var Fe,et;const{prefixCls:St,title:Ae,content:Oe,overlayClassName:qe,placement:Je="top",trigger:ct="hover",children:bt,mouseEnterDelay:st=.1,mouseLeaveDelay:$e=.1,onOpenChange:pe,overlayStyle:Le={},styles:xe,classNames:de}=we,Ct=dt(we,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Ye,className:je,style:it,classNames:Ie,styles:ye}=(0,We.dj)("popover"),vt=Ye("popover",St),[Ht,Et,Be]=(0,Te.Z)(vt),ft=Ye(),ot=ce()(qe,Et,Be,je,Ie.root,de==null?void 0:de.root),Xt=ce()(Ie.body,de==null?void 0:de.body),[xt,wt]=(0,_e.Z)(!1,{value:(Fe=we.open)!==null&&Fe!==void 0?Fe:we.visible,defaultValue:(et=we.defaultOpen)!==null&&et!==void 0?et:we.defaultVisible}),ht=(re,se)=>{wt(re,!0),pe==null||pe(re,se)},un=re=>{re.keyCode===Se.Z.ESC&&ht(!1,re)},zt=re=>{ht(re)},ue=(0,Ee.Z)(Ae),ae=(0,Ee.Z)(Oe);return Ht(y.createElement(De.Z,Object.assign({placement:Je,trigger:ct,mouseEnterDelay:st,mouseLeaveDelay:$e},Ct,{prefixCls:vt,classNames:{root:ot,body:Xt},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:Pe,open:xt,onOpenChange:zt,overlay:ue||ae?y.createElement(fe.aV,{prefixCls:vt,title:ue,content:ae}):null,transitionName:(0,Ce.m)(ft,"zoom-big",Ct.transitionName),"data-popover-inject":!0}),(0,ke.Tm)(bt,{onKeyDown:re=>{var se,he;y.isValidElement(bt)&&((he=bt==null?void 0:(se=bt.props).onKeyDown)===null||he===void 0||he.call(se,re)),un(re)}})))});Ne._InternalPanelDoNotUseOrYouWillBeFired=fe.ZP,qt.Z=Ne},85074:function(Rn,qt,E){"use strict";var y=E(63356),ge=E(34925),ce=E(37645),_e=E(36305),Se=E(34998),Ee=E(16931),Ce=E(51636);const ke=We=>{const{componentCls:Te,popoverColor:dt,titleMinWidth:Ge,fontWeightStrong:Ne,innerPadding:we,boxShadowSecondary:Pe,colorTextHeading:Fe,borderRadiusLG:et,zIndexPopup:St,titleMarginBottom:Ae,colorBgElevated:Oe,popoverBg:qe,titleBorderBottom:Je,innerContentPadding:ct,titlePadding:bt}=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":Oe,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Te}-content`]:{position:"relative"},[`${Te}-inner`]:{backgroundColor:qe,backgroundClip:"padding-box",borderRadius:et,boxShadow:Pe,padding:we},[`${Te}-title`]:{minWidth:Ge,marginBottom:Ae,color:Fe,fontWeight:Ne,borderBottom:Je,padding:bt},[`${Te}-inner-content`]:{color:dt,padding:ct}})},(0,ce.ZP)(We,"var(--antd-arrow-background-color)"),{[`${Te}-pure`]:{position:"relative",maxWidth:"none",margin:We.sizePopupArrow,display:"inline-block",[`${Te}-content`]:{display:"inline-block"}}}]},De=We=>{const{componentCls:Te}=We;return{[Te]:Se.i.map(dt=>{const Ge=We[`${dt}6`];return{[`&${Te}-${dt}`]:{"--antd-arrow-background-color":Ge,[`${Te}-inner`]:{backgroundColor:Ge},[`${Te}-arrow`]:{background:"transparent"}}}})}},fe=We=>{const{lineWidth:Te,controlHeight:dt,fontHeight:Ge,padding:Ne,wireframe:we,zIndexPopupBase:Pe,borderRadiusLG:Fe,marginXS:et,lineType:St,colorSplit:Ae,paddingSM:Oe}=We,qe=dt-Ge,Je=qe/2,ct=qe/2-Te,bt=Ne;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Pe+30},(0,_e.w)(We)),(0,ce.wZ)({contentRadius:Fe,limitVerticalRadius:!0})),{innerPadding:we?0:12,titleMarginBottom:we?0:et,titlePadding:we?`${Je}px ${bt}px ${ct}px`:0,titleBorderBottom:we?`${Te}px ${St} ${Ae}`:"none",innerContentPadding:we?`${Oe}px ${bt}px`:0})};qt.Z=(0,Ee.I$)("Popover",We=>{const{colorBgElevated:Te,colorText:dt}=We,Ge=(0,Ce.mergeToken)(We,{popoverBg:Te,popoverColor:dt});return[ke(Ge),De(Ge),(0,ge._y)(Ge,"zoom-big")]},fe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return jt}});var y=E(59301),ge=E(17835),ce=E(29679),_e=E(40001),Se=E(19248),Ee=E(99267),Ce=E(92310),ke=E.n(Ce),De=E(2738),fe=E(48755),We=E(60499),Te=E(85899),dt=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)([]),fn=(0,y.useRef)(null);return(0,y.useEffect)(function(){var yn=Date.now(),lt=!1;Nt.current.forEach(function(Rt){if(Rt){lt=!0;var en=Rt.style;en.transitionDuration=".3s, .3s, .3s, .06s",fn.current&&yn-fn.current<100&&(en.transitionDuration="0s, 0s")}}),lt&&(fn.current=Date.now())}),Nt.current},we=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Pe=function(Nt){var fn=(0,Te.Z)((0,Te.Z)({},Ge),Nt),yn=fn.className,lt=fn.percent,Rt=fn.prefixCls,en=fn.strokeColor,Pt=fn.strokeLinecap,Yt=fn.strokeWidth,Gt=fn.style,Sn=fn.trailColor,jn=fn.trailWidth,Dn=fn.transition,Zn=(0,dt.Z)(fn,we);delete Zn.gapPosition;var Ot=Array.isArray(lt)?lt:[lt],Wt=Array.isArray(en)?en:[en],ln=Ne(),bn=Yt/2,tn=100-Yt/2,wn="M ".concat(Pt==="round"?bn:0,",").concat(bn,`
|
|
|
L `).concat(Pt==="round"?tn:100,",").concat(bn),Cn="0 0 100 ".concat(Yt),Pn=0;return y.createElement("svg",(0,We.Z)({className:ke()("".concat(Rt,"-line"),yn),viewBox:Cn,preserveAspectRatio:"none",style:Gt},Zn),y.createElement("path",{className:"".concat(Rt,"-line-trail"),d:wn,strokeLinecap:Pt,stroke:Sn,strokeWidth:jn||Yt,fillOpacity:"0"}),Ot.map(function(vr,Qn){var dr=1;switch(Pt){case"round":dr=1-Yt/100;break;case"square":dr=1-Yt/2/100;break;default:dr=1;break}var br={strokeDasharray:"".concat(vr*dr,"px, 100px"),strokeDashoffset:"-".concat(Pn,"px"),transition:Dn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},yr=Wt[Qn]||Wt[Wt.length-1];return Pn+=vr,y.createElement("path",{key:Qn,className:"".concat(Rt,"-line-path"),d:wn,strokeLinecap:Pt,stroke:yr,strokeWidth:Yt,fillOpacity:"0",ref:function(Zr){ln[Qn]=Zr},style:br})}))},Fe=Pe,et=E(43749),St=E(72190),Ae=E(47273),Oe=0,qe=(0,Ae.Z)();function Je(){var rt;return qe?(rt=Oe,Oe+=1):rt="TEST_OR_SSR",rt}var ct=function(rt){var Nt=y.useState(),fn=(0,St.Z)(Nt,2),yn=fn[0],lt=fn[1];return y.useEffect(function(){lt("rc_progress_".concat(Je()))},[]),rt||yn},bt=function(Nt){var fn=Nt.bg,yn=Nt.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:fn}},yn)};function st(rt,Nt){return Object.keys(rt).map(function(fn){var yn=parseFloat(fn),lt="".concat(Math.floor(yn*Nt),"%");return"".concat(rt[fn]," ").concat(lt)})}var $e=y.forwardRef(function(rt,Nt){var fn=rt.prefixCls,yn=rt.color,lt=rt.gradientId,Rt=rt.radius,en=rt.style,Pt=rt.ptg,Yt=rt.strokeLinecap,Gt=rt.strokeWidth,Sn=rt.size,jn=rt.gapDegree,Dn=yn&&(0,et.Z)(yn)==="object",Zn=Dn?"#FFF":void 0,Ot=Sn/2,Wt=y.createElement("circle",{className:"".concat(fn,"-circle-path"),r:Rt,cx:Ot,cy:Ot,stroke:Zn,strokeLinecap:Yt,strokeWidth:Gt,opacity:Pt===0?0:1,style:en,ref:Nt});if(!Dn)return Wt;var ln="".concat(lt,"-conic"),bn=jn?"".concat(180+jn/2,"deg"):"0deg",tn=st(yn,(360-jn)/360),wn=st(yn,1),Cn="conic-gradient(from ".concat(bn,", ").concat(tn.join(", "),")"),Pn="linear-gradient(to ".concat(jn?"bottom":"top",", ").concat(wn.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:ln},Wt),y.createElement("foreignObject",{x:0,y:0,width:Sn,height:Sn,mask:"url(#".concat(ln,")")},y.createElement(bt,{bg:Pn},y.createElement(bt,{bg:Cn}))))}),pe=$e,Le=100,xe=function(Nt,fn,yn,lt,Rt,en,Pt,Yt,Gt,Sn){var jn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Dn=yn/100*360*((360-en)/360),Zn=en===0?0:{bottom:0,top:180,left:90,right:-90}[Pt],Ot=(100-lt)/100*fn;Gt==="round"&<!==100&&(Ot+=Sn/2,Ot>=fn&&(Ot=fn-.01));var Wt=Le/2;return{stroke:typeof Yt=="string"?Yt:void 0,strokeDasharray:"".concat(fn,"px ").concat(Nt),strokeDashoffset:Ot+jn,transform:"rotate(".concat(Rt+Dn+Zn,"deg)"),transformOrigin:"".concat(Wt,"px ").concat(Wt,"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}},de=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ct(rt){var Nt=rt!=null?rt:[];return Array.isArray(Nt)?Nt:[Nt]}var Ye=function(Nt){var fn=(0,Te.Z)((0,Te.Z)({},Ge),Nt),yn=fn.id,lt=fn.prefixCls,Rt=fn.steps,en=fn.strokeWidth,Pt=fn.trailWidth,Yt=fn.gapDegree,Gt=Yt===void 0?0:Yt,Sn=fn.gapPosition,jn=fn.trailColor,Dn=fn.strokeLinecap,Zn=fn.style,Ot=fn.className,Wt=fn.strokeColor,ln=fn.percent,bn=(0,dt.Z)(fn,de),tn=Le/2,wn=ct(yn),Cn="".concat(wn,"-gradient"),Pn=tn-en/2,vr=Math.PI*2*Pn,Qn=Gt>0?90+Gt/2:-90,dr=vr*((360-Gt)/360),br=(0,et.Z)(Rt)==="object"?Rt:{count:Rt,gap:2},yr=br.count,Vr=br.gap,Zr=Ct(ln),An=Ct(Wt),$n=An.find(function(at){return at&&(0,et.Z)(at)==="object"}),fr=$n&&(0,et.Z)($n)==="object",ur=fr?"butt":Dn,kt=xe(vr,dr,0,100,Qn,Gt,Sn,jn,ur,en),Ut=Ne(),pt=function(){var gt=0;return Zr.map(function(cn,ar){var mr=An[ar]||An[An.length-1],At=xe(vr,dr,gt,cn,Qn,Gt,Sn,mr,ur,en);return gt+=cn,y.createElement(pe,{key:ar,color:mr,ptg:cn,radius:Pn,prefixCls:lt,gradientId:Cn,style:At,strokeLinecap:ur,strokeWidth:en,gapDegree:Gt,ref:function(Mt){Ut[ar]=Mt},size:Le})}).reverse()},Zt=function(){var gt=Math.round(yr*(Zr[0]/100)),cn=100/yr,ar=0;return new Array(yr).fill(null).map(function(mr,At){var Tt=At<=gt-1?An[0]:jn,Mt=Tt&&(0,et.Z)(Tt)==="object"?"url(#".concat(Cn,")"):void 0,Kt=xe(vr,dr,ar,cn,Qn,Gt,Sn,Tt,"butt",en,Vr);return ar+=(dr-Kt.strokeDashoffset+Vr)*100/dr,y.createElement("circle",{key:At,className:"".concat(lt,"-circle-path"),r:Pn,cx:tn,cy:tn,stroke:Mt,strokeWidth:en,opacity:1,style:Kt,ref:function(Kn){Ut[At]=Kn}})})};return y.createElement("svg",(0,We.Z)({className:ke()("".concat(lt,"-circle"),Ot),viewBox:"0 0 ".concat(Le," ").concat(Le),style:Zn,id:yn,role:"presentation"},bn),!yr&&y.createElement("circle",{className:"".concat(lt,"-circle-trail"),r:Pn,cx:tn,cy:tn,stroke:jn,strokeLinecap:ur,strokeWidth:Pt||en,style:kt}),yr?Zt():pt())},je=Ye,it={Line:Fe,Circle:je},Ie=E(25399),ye=E(68361);function vt(rt){return!rt||rt<0?0:rt>100?100:rt}function Ht(rt){let{success:Nt,successPercent:fn}=rt,yn=fn;return Nt&&"progress"in Nt&&(yn=Nt.progress),Nt&&"percent"in Nt&&(yn=Nt.percent),yn}const Et=rt=>{let{percent:Nt,success:fn,successPercent:yn}=rt;const lt=vt(Ht({success:fn,successPercent:yn}));return[lt,vt(vt(Nt)-lt)]},Be=rt=>{let{success:Nt={},strokeColor:fn}=rt;const{strokeColor:yn}=Nt;return[yn||ye.presetPrimaryColors.green,fn||null]},ft=(rt,Nt,fn)=>{var yn,lt,Rt,en;let Pt=-1,Yt=-1;if(Nt==="step"){const Gt=fn.steps,Sn=fn.strokeWidth;typeof rt=="string"||typeof rt=="undefined"?(Pt=rt==="small"?2:14,Yt=Sn!=null?Sn:8):typeof rt=="number"?[Pt,Yt]=[rt,rt]:[Pt=14,Yt=8]=Array.isArray(rt)?rt:[rt.width,rt.height],Pt*=Gt}else if(Nt==="line"){const Gt=fn==null?void 0:fn.strokeWidth;typeof rt=="string"||typeof rt=="undefined"?Yt=Gt||(rt==="small"?6:8):typeof rt=="number"?[Pt,Yt]=[rt,rt]:[Pt=-1,Yt=8]=Array.isArray(rt)?rt:[rt.width,rt.height]}else(Nt==="circle"||Nt==="dashboard")&&(typeof rt=="string"||typeof rt=="undefined"?[Pt,Yt]=rt==="small"?[60,60]:[120,120]:typeof rt=="number"?[Pt,Yt]=[rt,rt]:Array.isArray(rt)&&(Pt=(lt=(yn=rt[0])!==null&&yn!==void 0?yn:rt[1])!==null&<!==void 0?lt:120,Yt=(en=(Rt=rt[0])!==null&&Rt!==void 0?Rt:rt[1])!==null&&en!==void 0?en:120));return[Pt,Yt]},ot=3,Xt=rt=>ot/rt*100;var wt=rt=>{const{prefixCls:Nt,trailColor:fn=null,strokeLinecap:yn="round",gapPosition:lt,gapDegree:Rt,width:en=120,type:Pt,children:Yt,success:Gt,size:Sn=en,steps:jn}=rt,[Dn,Zn]=ft(Sn,"circle");let{strokeWidth:Ot}=rt;Ot===void 0&&(Ot=Math.max(Xt(Dn),6));const Wt={width:Dn,height:Zn,fontSize:Dn*.15+6},ln=y.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Pt==="dashboard")return 75},[Rt,Pt]),bn=Et(rt),tn=lt||Pt==="dashboard"&&"bottom"||void 0,wn=Object.prototype.toString.call(rt.strokeColor)==="[object Object]",Cn=Be({success:Gt,strokeColor:rt.strokeColor}),Pn=ke()(`${Nt}-inner`,{[`${Nt}-circle-gradient`]:wn}),vr=y.createElement(je,{steps:jn,percent:jn?bn[1]:bn,strokeWidth:Ot,trailWidth:Ot,strokeColor:jn?Cn[1]:Cn,strokeLinecap:yn,trailColor:fn,prefixCls:Nt,gapDegree:ln,gapPosition:tn}),Qn=Dn<=20,dr=y.createElement("div",{className:Pn,style:Wt},vr,!Qn&&Yt);return Qn?y.createElement(Ie.Z,{title:Yt},dr):dr},ht=E(36237),un=E(63356),zt=E(16931),ue=E(51636);const ae="--progress-line-stroke-color",re="--progress-percent",se=rt=>{const Nt=rt?"100%":"-100%";return new ht.Keyframes(`antProgress${rt?"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}})},he=rt=>{const{componentCls:Nt,iconCls:fn}=rt;return{[Nt]:Object.assign(Object.assign({},(0,un.Wf)(rt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:rt.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:rt.remainingColor,borderRadius:rt.lineBorderRadius},[`${Nt}-inner:not(${Nt}-circle-gradient)`]:{[`${Nt}-circle-path`]:{stroke:rt.defaultColor}},[`${Nt}-success-bg, ${Nt}-bg`]:{position:"relative",background:rt.defaultColor,borderRadius:rt.lineBorderRadius,transition:`all ${rt.motionDurationSlow} ${rt.motionEaseInOutCirc}`},[`${Nt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Nt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:rt.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:rt.colorWhite,[`&${Nt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Nt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:rt.colorSuccess},[`${Nt}-text`]:{display:"inline-block",marginInlineStart:rt.marginXS,color:rt.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[fn]:{fontSize:rt.fontSize},[`&${Nt}-text-outer`]:{width:"max-content"},[`&${Nt}-text-outer${Nt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:rt.marginXS}},[`${Nt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ht.unit)(rt.paddingXXS)}`,[`&${Nt}-text-start`]:{justifyContent:"start"},[`&${Nt}-text-end`]:{justifyContent:"end"}},[`&${Nt}-status-active`]:{[`${Nt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:rt.colorBgContainer,borderRadius:rt.lineBorderRadius,opacity:0,animationName:se(),animationDuration:rt.progressActiveMotionDuration,animationTimingFunction:rt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Nt}-rtl${Nt}-status-active`]:{[`${Nt}-bg::before`]:{animationName:se(!0)}},[`&${Nt}-status-exception`]:{[`${Nt}-bg`]:{backgroundColor:rt.colorError},[`${Nt}-text`]:{color:rt.colorError}},[`&${Nt}-status-exception ${Nt}-inner:not(${Nt}-circle-gradient)`]:{[`${Nt}-circle-path`]:{stroke:rt.colorError}},[`&${Nt}-status-success`]:{[`${Nt}-bg`]:{backgroundColor:rt.colorSuccess},[`${Nt}-text`]:{color:rt.colorSuccess}},[`&${Nt}-status-success ${Nt}-inner:not(${Nt}-circle-gradient)`]:{[`${Nt}-circle-path`]:{stroke:rt.colorSuccess}}})}},ie=rt=>{const{componentCls:Nt,iconCls:fn}=rt;return{[Nt]:{[`${Nt}-circle-trail`]:{stroke:rt.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:rt.circleTextColor,fontSize:rt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[fn]:{fontSize:rt.circleIconFontSize}},[`${Nt}-circle&-status-exception`]:{[`${Nt}-text`]:{color:rt.colorError}},[`${Nt}-circle&-status-success`]:{[`${Nt}-text`]:{color:rt.colorSuccess}}},[`${Nt}-inline-circle`]:{lineHeight:1,[`${Nt}-inner`]:{verticalAlign:"bottom"}}}},me=rt=>{const{componentCls:Nt}=rt;return{[Nt]:{[`${Nt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:rt.progressStepMinWidth,marginInlineEnd:rt.progressStepMarginInlineEnd,backgroundColor:rt.remainingColor,transition:`all ${rt.motionDurationSlow}`,"&-active":{backgroundColor:rt.defaultColor}}}}}},He=rt=>{const{componentCls:Nt,iconCls:fn}=rt;return{[Nt]:{[`${Nt}-small&-line, ${Nt}-small&-line ${Nt}-text ${fn}`]:{fontSize:rt.fontSizeSM}}}},It=rt=>({circleTextColor:rt.colorText,defaultColor:rt.colorInfo,remainingColor:rt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${rt.fontSize/rt.fontSizeSM}em`});var Xe=(0,zt.I$)("Progress",rt=>{const Nt=rt.calc(rt.marginXXS).div(2).equal(),fn=(0,ue.mergeToken)(rt,{progressStepMarginInlineEnd:Nt,progressStepMinWidth:Nt,progressActiveMotionDuration:"2.4s"});return[he(fn),ie(fn),me(fn),He(fn)]},It),Ke=function(rt,Nt){var fn={};for(var yn in rt)Object.prototype.hasOwnProperty.call(rt,yn)&&Nt.indexOf(yn)<0&&(fn[yn]=rt[yn]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,yn=Object.getOwnPropertySymbols(rt);lt<yn.length;lt++)Nt.indexOf(yn[lt])<0&&Object.prototype.propertyIsEnumerable.call(rt,yn[lt])&&(fn[yn[lt]]=rt[yn[lt]]);return fn};const yt=rt=>{let Nt=[];return Object.keys(rt).forEach(fn=>{const yn=parseFloat(fn.replace(/%/g,""));Number.isNaN(yn)||Nt.push({key:yn,value:rt[fn]})}),Nt=Nt.sort((fn,yn)=>fn.key-yn.key),Nt.map(fn=>{let{key:yn,value:lt}=fn;return`${lt} ${yn}%`}).join(", ")},Bt=(rt,Nt)=>{const{from:fn=ye.presetPrimaryColors.blue,to:yn=ye.presetPrimaryColors.blue,direction:lt=Nt==="rtl"?"to left":"to right"}=rt,Rt=Ke(rt,["from","to","direction"]);if(Object.keys(Rt).length!==0){const Pt=yt(Rt),Yt=`linear-gradient(${lt}, ${Pt})`;return{background:Yt,[ae]:Yt}}const en=`linear-gradient(${lt}, ${fn}, ${yn})`;return{background:en,[ae]:en}};var Qe=rt=>{const{prefixCls:Nt,direction:fn,percent:yn,size:lt,strokeWidth:Rt,strokeColor:en,strokeLinecap:Pt="round",children:Yt,trailColor:Gt=null,percentPosition:Sn,success:jn}=rt,{align:Dn,type:Zn}=Sn,Ot=en&&typeof en!="string"?Bt(en,fn):{[ae]:en,background:en},Wt=Pt==="square"||Pt==="butt"?0:void 0,ln=lt!=null?lt:[-1,Rt||(lt==="small"?6:8)],[bn,tn]=ft(ln,"line",{strokeWidth:Rt}),wn={backgroundColor:Gt||void 0,borderRadius:Wt},Cn=Object.assign(Object.assign({width:`${vt(yn)}%`,height:tn,borderRadius:Wt},Ot),{[re]:vt(yn)/100}),Pn=Ht(rt),vr={width:`${vt(Pn)}%`,height:tn,borderRadius:Wt,backgroundColor:jn==null?void 0:jn.strokeColor},Qn={width:bn<0?"100%":bn},dr=y.createElement("div",{className:`${Nt}-inner`,style:wn},y.createElement("div",{className:ke()(`${Nt}-bg`,`${Nt}-bg-${Zn}`),style:Cn},Zn==="inner"&&Yt),Pn!==void 0&&y.createElement("div",{className:`${Nt}-success-bg`,style:vr})),br=Zn==="outer"&&Dn==="start",yr=Zn==="outer"&&Dn==="end";return Zn==="outer"&&Dn==="center"?y.createElement("div",{className:`${Nt}-layout-bottom`},dr,Yt):y.createElement("div",{className:`${Nt}-outer`,style:Qn},br&&Yt,dr,yr&&Yt)},Vt=rt=>{const{size:Nt,steps:fn,rounding:yn=Math.round,percent:lt=0,strokeWidth:Rt=8,strokeColor:en,trailColor:Pt=null,prefixCls:Yt,children:Gt}=rt,Sn=yn(fn*(lt/100)),jn=Nt==="small"?2:14,Dn=Nt!=null?Nt:[jn,Rt],[Zn,Ot]=ft(Dn,"step",{steps:fn,strokeWidth:Rt}),Wt=Zn/fn,ln=Array.from({length:fn});for(let bn=0;bn<fn;bn++){const tn=Array.isArray(en)?en[bn]:en;ln[bn]=y.createElement("div",{key:bn,className:ke()(`${Yt}-steps-item`,{[`${Yt}-steps-item-active`]:bn<=Sn-1}),style:{backgroundColor:bn<=Sn-1?tn:Pt,width:Wt,height:Ot}})}return y.createElement("div",{className:`${Yt}-steps-outer`},ln,Gt)},on=function(rt,Nt){var fn={};for(var yn in rt)Object.prototype.hasOwnProperty.call(rt,yn)&&Nt.indexOf(yn)<0&&(fn[yn]=rt[yn]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,yn=Object.getOwnPropertySymbols(rt);lt<yn.length;lt++)Nt.indexOf(yn[lt])<0&&Object.prototype.propertyIsEnumerable.call(rt,yn[lt])&&(fn[yn[lt]]=rt[yn[lt]]);return fn};const Fn=null,gn=["normal","exception","active","success"];var Qt=y.forwardRef((rt,Nt)=>{const{prefixCls:fn,className:yn,rootClassName:lt,steps:Rt,strokeColor:en,percent:Pt=0,size:Yt="default",showInfo:Gt=!0,type:Sn="line",status:jn,format:Dn,style:Zn,percentPosition:Ot={}}=rt,Wt=on(rt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:ln="end",type:bn="outer"}=Ot,tn=Array.isArray(en)?en[0]:en,wn=typeof en=="string"||Array.isArray(en)?en:void 0,Cn=y.useMemo(()=>{if(tn){const pt=typeof tn=="string"?tn:Object.values(tn)[0];return new ge.FastColor(pt).isLight()}return!1},[en]),Pn=y.useMemo(()=>{var pt,Zt;const at=Ht(rt);return parseInt(at!==void 0?(pt=at!=null?at:0)===null||pt===void 0?void 0:pt.toString():(Zt=Pt!=null?Pt:0)===null||Zt===void 0?void 0:Zt.toString(),10)},[Pt,rt.success,rt.successPercent]),vr=y.useMemo(()=>!gn.includes(jn)&&Pn>=100?"success":jn||"normal",[jn,Pn]),{getPrefixCls:Qn,direction:dr,progress:br}=y.useContext(fe.E_),yr=Qn("progress",fn),[Vr,Zr,An]=Xe(yr),$n=Sn==="line",fr=$n&&!Rt,ur=y.useMemo(()=>{if(!Gt)return null;const pt=Ht(rt);let Zt;const at=Dn||(cn=>`${cn}%`),gt=$n&&Cn&&bn==="inner";return bn==="inner"||Dn||vr!=="exception"&&vr!=="success"?Zt=at(vt(Pt),vt(pt)):vr==="exception"?Zt=$n?y.createElement(Se.Z,null):y.createElement(Ee.Z,null):vr==="success"&&(Zt=$n?y.createElement(ce.Z,null):y.createElement(_e.Z,null)),y.createElement("span",{className:ke()(`${yr}-text`,{[`${yr}-text-bright`]:gt,[`${yr}-text-${ln}`]:fr,[`${yr}-text-${bn}`]:fr}),title:typeof Zt=="string"?Zt:void 0},Zt)},[Gt,Pt,Pn,vr,Sn,yr,Dn]);let kt;Sn==="line"?kt=Rt?y.createElement(Vt,Object.assign({},rt,{strokeColor:wn,prefixCls:yr,steps:typeof Rt=="object"?Rt.count:Rt}),ur):y.createElement(Qe,Object.assign({},rt,{strokeColor:tn,prefixCls:yr,direction:dr,percentPosition:{align:ln,type:bn}}),ur):(Sn==="circle"||Sn==="dashboard")&&(kt=y.createElement(wt,Object.assign({},rt,{strokeColor:tn,prefixCls:yr,progressStatus:vr}),ur));const Ut=ke()(yr,`${yr}-status-${vr}`,{[`${yr}-${Sn==="dashboard"&&"circle"||Sn}`]:Sn!=="line",[`${yr}-inline-circle`]:Sn==="circle"&&ft(Yt,"circle")[0]<=20,[`${yr}-line`]:fr,[`${yr}-line-align-${ln}`]:fr,[`${yr}-line-position-${bn}`]:fr,[`${yr}-steps`]:Rt,[`${yr}-show-info`]:Gt,[`${yr}-${Yt}`]:typeof Yt=="string",[`${yr}-rtl`]:dr==="rtl"},br==null?void 0:br.className,yn,lt,Zr,An);return Vr(y.createElement("div",Object.assign({ref:Nt,style:Object.assign(Object.assign({},br==null?void 0:br.style),Zn),className:Ut,role:"progressbar","aria-valuenow":Pn,"aria-valuemin":0,"aria-valuemax":100},(0,De.Z)(Wt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),kt))}),jt=Qt},63139:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Et}});var y=E(59301),ge=E(60499),ce={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"},_e=ce,Se=E(7657),Ee=function(ft,ot){return y.createElement(Se.Z,(0,ge.Z)({},ft,{ref:ot,icon:_e}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(92310),fe=E.n(De),We=E(18642),Te=E(72190),dt=E(42244),Ge=E(18929),Ne=E(10228),we=E(26112);function Pe(Be,ft){var ot=Be.disabled,Xt=Be.prefixCls,xt=Be.character,wt=Be.characterRender,ht=Be.index,un=Be.count,zt=Be.value,ue=Be.allowHalf,ae=Be.focused,re=Be.onHover,se=Be.onClick,he=function(Bt){re(Bt,ht)},ie=function(Bt){se(Bt,ht)},me=function(Bt){Bt.keyCode===Ne.Z.ENTER&&se(Bt,ht)},He=ht+1,It=new Set([Xt]);zt===0&&ht===0&&ae?It.add("".concat(Xt,"-focused")):ue&&zt+.5>=He&&zt<He?(It.add("".concat(Xt,"-half")),It.add("".concat(Xt,"-active")),ae&&It.add("".concat(Xt,"-focused"))):(He<=zt?It.add("".concat(Xt,"-full")):It.add("".concat(Xt,"-zero")),He===zt&&ae&&It.add("".concat(Xt,"-focused")));var Xe=typeof xt=="function"?xt(Be):xt,Ke=y.createElement("li",{className:fe()(Array.from(It)),ref:ft},y.createElement("div",{onClick:ot?null:ie,onKeyDown:ot?null:me,onMouseMove:ot?null:he,role:"radio","aria-checked":zt>ht?"true":"false","aria-posinset":ht+1,"aria-setsize":un,tabIndex:ot?-1:0},y.createElement("div",{className:"".concat(Xt,"-first")},Xe),y.createElement("div",{className:"".concat(Xt,"-second")},Xe)));return wt&&(Ke=wt(Ke,Be)),Ke}var Fe=y.forwardRef(Pe);function et(){var Be=y.useRef({});function ft(Xt){return Be.current[Xt]}function ot(Xt){return function(xt){Be.current[Xt]=xt}}return[ft,ot]}function St(Be){var ft=Be.pageXOffset,ot="scrollLeft";if(typeof ft!="number"){var Xt=Be.document;ft=Xt.documentElement[ot],typeof ft!="number"&&(ft=Xt.body[ot])}return ft}function Ae(Be){var ft,ot,Xt=Be.ownerDocument,xt=Xt.body,wt=Xt&&Xt.documentElement,ht=Be.getBoundingClientRect();return ft=ht.left,ot=ht.top,ft-=wt.clientLeft||xt.clientLeft||0,ot-=wt.clientTop||xt.clientTop||0,{left:ft,top:ot}}function Oe(Be){var ft=Ae(Be),ot=Be.ownerDocument,Xt=ot.defaultView||ot.parentWindow;return ft.left+=St(Xt),ft.left}var qe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Je(Be,ft){var ot=Be.prefixCls,Xt=ot===void 0?"rc-rate":ot,xt=Be.className,wt=Be.defaultValue,ht=Be.value,un=Be.count,zt=un===void 0?5:un,ue=Be.allowHalf,ae=ue===void 0?!1:ue,re=Be.allowClear,se=re===void 0?!0:re,he=Be.keyboard,ie=he===void 0?!0:he,me=Be.character,He=me===void 0?"\u2605":me,It=Be.characterRender,Xe=Be.disabled,Ke=Be.direction,yt=Ke===void 0?"ltr":Ke,Bt=Be.tabIndex,_t=Bt===void 0?0:Bt,Qe=Be.autoFocus,tt=Be.onHoverChange,Vt=Be.onChange,on=Be.onFocus,Fn=Be.onBlur,gn=Be.onKeyDown,Lt=Be.onMouseLeave,Qt=(0,dt.Z)(Be,qe),jt=et(),rt=(0,Te.Z)(jt,2),Nt=rt[0],fn=rt[1],yn=y.useRef(null),lt=function(){if(!Xe){var ur;(ur=yn.current)===null||ur===void 0||ur.focus()}};y.useImperativeHandle(ft,function(){return{focus:lt,blur:function(){if(!Xe){var ur;(ur=yn.current)===null||ur===void 0||ur.blur()}}}});var Rt=(0,Ge.Z)(wt||0,{value:ht}),en=(0,Te.Z)(Rt,2),Pt=en[0],Yt=en[1],Gt=(0,Ge.Z)(null),Sn=(0,Te.Z)(Gt,2),jn=Sn[0],Dn=Sn[1],Zn=function(ur,kt){var Ut=yt==="rtl",pt=ur+1;if(ae){var Zt=Nt(ur),at=Oe(Zt),gt=Zt.clientWidth;(Ut&&kt-at>gt/2||!Ut&&kt-at<gt/2)&&(pt-=.5)}return pt},Ot=function(ur){Yt(ur),Vt==null||Vt(ur)},Wt=y.useState(!1),ln=(0,Te.Z)(Wt,2),bn=ln[0],tn=ln[1],wn=function(){tn(!0),on==null||on()},Cn=function(){tn(!1),Fn==null||Fn()},Pn=y.useState(null),vr=(0,Te.Z)(Pn,2),Qn=vr[0],dr=vr[1],br=function(ur,kt){var Ut=Zn(kt,ur.pageX);Ut!==jn&&(dr(Ut),Dn(null)),tt==null||tt(Ut)},yr=function(ur){Xe||(dr(null),Dn(null),tt==null||tt(void 0)),ur&&(Lt==null||Lt(ur))},Vr=function(ur,kt){var Ut=Zn(kt,ur.pageX),pt=!1;se&&(pt=Ut===Pt),yr(),Ot(pt?0:Ut),Dn(pt?Ut:null)},Zr=function(ur){var kt=ur.keyCode,Ut=yt==="rtl",pt=ae?.5:1;ie&&(kt===Ne.Z.RIGHT&&Pt<zt&&!Ut?(Ot(Pt+pt),ur.preventDefault()):kt===Ne.Z.LEFT&&Pt>0&&!Ut||kt===Ne.Z.RIGHT&&Pt>0&&Ut?(Ot(Pt-pt),ur.preventDefault()):kt===Ne.Z.LEFT&&Pt<zt&&Ut&&(Ot(Pt+pt),ur.preventDefault())),gn==null||gn(ur)};y.useEffect(function(){Qe&&!Xe&<()},[]);var An=new Array(zt).fill(0).map(function(fr,ur){return y.createElement(Fe,{ref:fn(ur),index:ur,count:zt,disabled:Xe,prefixCls:"".concat(Xt,"-star"),allowHalf:ae,value:Qn===null?Pt:Qn,onClick:Vr,onHover:br,key:fr||ur,character:He,characterRender:It,focused:bn})}),$n=fe()(Xt,xt,(0,We.Z)((0,We.Z)({},"".concat(Xt,"-disabled"),Xe),"".concat(Xt,"-rtl"),yt==="rtl"));return y.createElement("ul",(0,ge.Z)({className:$n,onMouseLeave:yr,tabIndex:Xe?-1:_t,onFocus:Xe?null:wn,onBlur:Xe?null:Cn,onKeyDown:Xe?null:Zr,ref:yn},(0,we.Z)(Qt,{aria:!0,data:!0,attr:!0})),An)}var ct=y.forwardRef(Je),bt=ct,st=E(48755),$e=E(25399),pe=E(36237),Le=E(63356),xe=E(16931),de=E(51636);const Ct=Be=>{const{componentCls:ft}=Be;return{[`${ft}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Be.marginXS},"> div":{transition:`all ${Be.motionDurationMid}, outline 0s`,"&:hover":{transform:Be.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,pe.unit)(Be.lineWidth)} dashed ${Be.starColor}`,transform:Be.starHoverScale}},"&-first, &-second":{color:Be.starBg,transition:`all ${Be.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ft}-star-first, &-half ${ft}-star-second`]:{opacity:1},[`&-half ${ft}-star-first, &-full ${ft}-star-second`]:{color:"inherit"}}}},Ye=Be=>({[`&-rtl${Be.componentCls}`]:{direction:"rtl"}}),je=Be=>{const{componentCls:ft}=Be;return{[ft]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(Be)),{display:"inline-block",margin:0,padding:0,color:Be.starColor,fontSize:Be.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${ft} ${ft}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ct(Be)),Ye(Be))}},it=Be=>({starColor:Be.yellow6,starSize:Be.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Be.colorFillContent});var Ie=(0,xe.I$)("Rate",Be=>{const ft=(0,de.mergeToken)(Be,{});return[je(ft)]},it),ye=E(2171),vt=function(Be,ft){var ot={};for(var Xt in Be)Object.prototype.hasOwnProperty.call(Be,Xt)&&ft.indexOf(Xt)<0&&(ot[Xt]=Be[Xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Xt=Object.getOwnPropertySymbols(Be);xt<Xt.length;xt++)ft.indexOf(Xt[xt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Xt[xt])&&(ot[Xt[xt]]=Be[Xt[xt]]);return ot},Et=y.forwardRef((Be,ft)=>{const{prefixCls:ot,className:Xt,rootClassName:xt,style:wt,tooltips:ht,character:un=y.createElement(ke,null),disabled:zt}=Be,ue=vt(Be,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ae=(Bt,_t)=>{let{index:Qe}=_t;return ht?y.createElement($e.Z,{title:ht[Qe]},Bt):Bt},{getPrefixCls:re,direction:se,rate:he}=y.useContext(st.E_),ie=re("rate",ot),[me,He,It]=Ie(ie),Xe=Object.assign(Object.assign({},he==null?void 0:he.style),wt),Ke=y.useContext(ye.Z),yt=zt!=null?zt:Ke;return me(y.createElement(bt,Object.assign({ref:ft,character:un,characterRender:ae,disabled:yt},ue,{className:fe()(Xt,xt,He,It,he==null?void 0:he.className),style:Xe,prefixCls:ie,direction:se})))})},82326:function(Rn,qt,E){"use strict";var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(37463),Se=E(2738),Ee=E(75030),Ce=E(86641),ke=E(45915),De=E(82855),fe=E(48755),We=E(38406),Te=E(2171),dt=E(83397),Ge=E(31756),Ne=E(56553),we=E(24971),Pe=E(70045),Fe=E(57700),et=E(1722),St=E(90376),Ae=E(68525),Oe=E(90005),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 de=0,xe=Object.getOwnPropertySymbols($e);de<xe.length;de++)pe.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[de])&&(Le[xe[de]]=$e[xe[de]]);return Le};const Je="SECRET_COMBOBOX_MODE_DO_NOT_USE",ct=($e,pe)=>{var Le;const{prefixCls:xe,bordered:de,className:Ct,rootClassName:Ye,getPopupContainer:je,popupClassName:it,dropdownClassName:Ie,listHeight:ye=256,placement:vt,listItemHeight:Ht,size:Et,disabled:Be,notFoundContent:ft,status:ot,builtinPlacements:Xt,dropdownMatchSelectWidth:xt,popupMatchSelectWidth:wt,direction:ht,style:un,allowClear:zt,variant:ue,dropdownStyle:ae,transitionName:re,tagRender:se,maxCount:he,prefix:ie}=$e,me=qe($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:He,getPrefixCls:It,renderEmpty:Xe,direction:Ke,virtual:yt,popupMatchSelectWidth:Bt,popupOverflow:_t}=y.useContext(fe.E_),Qe=(0,fe.dj)("select"),[,tt]=(0,Fe.ZP)(),Vt=Ht!=null?Ht:tt==null?void 0:tt.controlHeight,on=It("select",xe),Fn=It(),gn=ht!=null?ht:Ke,{compactSize:Lt,compactItemClassnames:Qt}=(0,Pe.ri)(on,gn),[jt,rt]=(0,we.Z)("select",ue,de),Nt=(0,dt.Z)(on),[fn,yn,lt]=(0,St.Z)(on,Nt),Rt=y.useMemo(()=>{const{mode:Zr}=$e;if(Zr!=="combobox")return Zr===Je?"combobox":Zr},[$e.mode]),en=Rt==="multiple"||Rt==="tags",Pt=(0,Oe.Z)($e.suffixIcon,$e.showArrow),Yt=(Le=wt!=null?wt:xt)!==null&&Le!==void 0?Le:Bt,{status:Gt,hasFeedback:Sn,isFormItemInput:jn,feedbackIcon:Dn}=y.useContext(Ne.aM),Zn=(0,De.F)(Gt,ot);let Ot;ft!==void 0?Ot=ft:Rt==="combobox"?Ot=null:Ot=(Xe==null?void 0:Xe("Select"))||y.createElement(We.Z,{componentName:"Select"});const{suffixIcon:Wt,itemIcon:ln,removeIcon:bn,clearIcon:tn}=(0,Ae.Z)(Object.assign(Object.assign({},me),{multiple:en,hasFeedback:Sn,feedbackIcon:Dn,showSuffixIcon:Pt,prefixCls:on,componentName:"Select"})),wn=zt===!0?{clearIcon:tn}:zt,Cn=(0,Se.Z)(me,["suffixIcon","itemIcon"]),Pn=ce()(it||Ie,{[`${on}-dropdown-${gn}`]:gn==="rtl"},Ye,lt,Nt,yn),vr=(0,Ge.Z)(Zr=>{var An;return(An=Et!=null?Et:Lt)!==null&&An!==void 0?An:Zr}),Qn=y.useContext(Te.Z),dr=Be!=null?Be:Qn,br=ce()({[`${on}-lg`]:vr==="large",[`${on}-sm`]:vr==="small",[`${on}-rtl`]:gn==="rtl",[`${on}-${jt}`]:rt,[`${on}-in-form-item`]:jn},(0,De.Z)(on,Zn,Sn),Qt,Qe.className,Ct,Ye,lt,Nt,yn),yr=y.useMemo(()=>vt!==void 0?vt:gn==="rtl"?"bottomRight":"bottomLeft",[vt,gn]),[Vr]=(0,Ee.Cn)("SelectLike",ae==null?void 0:ae.zIndex);return fn(y.createElement(_e.ZP,Object.assign({ref:pe,virtual:yt,showSearch:Qe.showSearch},Cn,{style:Object.assign(Object.assign({},Qe.style),un),dropdownMatchSelectWidth:Yt,transitionName:(0,Ce.m)(Fn,"slide-up",re),builtinPlacements:(0,et.Z)(Xt,_t),listHeight:ye,listItemHeight:Vt,mode:Rt,prefixCls:on,placement:yr,direction:gn,prefix:ie,suffixIcon:Wt,menuItemSelectedIcon:ln,removeIcon:bn,allowClear:wn,notFoundContent:Ot,className:br,getPopupContainer:je||He,dropdownClassName:Pn,disabled:dr,dropdownStyle:Object.assign(Object.assign({},ae),{zIndex:Vr}),maxCount:en?he:void 0,tagRender:en?se:void 0})))},bt=y.forwardRef(ct),st=(0,ke.Z)(bt,"dropdownAlign");bt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Je,bt.Option=_e.Wx,bt.OptGroup=_e.Xo,bt._InternalPanelDoNotUseOrYouWillBeFired=st,qt.default=bt},1722:function(Rn,qt){"use strict";const E=ge=>{const _e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ge==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},_e),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},_e),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},_e),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},_e),{points:["br","tr"],offset:[0,-4]})}};function y(ge,ce){return ge||E(ce)}qt.Z=y},90376:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return xe}});var y=E(63356),ge=E(56119),ce=E(16931),_e=E(51636),Se=E(46e3),Ee=E(93873);const Ce=de=>{const{optionHeight:Ct,optionFontSize:Ye,optionLineHeight:je,optionPadding:it}=de;return{position:"relative",display:"block",minHeight:Ct,padding:it,color:de.colorText,fontWeight:"normal",fontSize:Ye,lineHeight:je,boxSizing:"border-box"}};var De=de=>{const{antCls:Ct,componentCls:Ye}=de,je=`${Ye}-item`,it=`&${Ct}-slide-up-enter${Ct}-slide-up-enter-active`,Ie=`&${Ct}-slide-up-appear${Ct}-slide-up-appear-active`,ye=`&${Ct}-slide-up-leave${Ct}-slide-up-leave-active`,vt=`${Ye}-dropdown-placement-`,Ht=`${je}-option-selected`;return[{[`${Ye}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(de)),{position:"absolute",top:-9999,zIndex:de.zIndexPopup,boxSizing:"border-box",padding:de.paddingXXS,overflow:"hidden",fontSize:de.fontSize,fontVariant:"initial",backgroundColor:de.colorBgElevated,borderRadius:de.borderRadiusLG,outline:"none",boxShadow:de.boxShadowSecondary,[`
|
|
|
${it}${vt}bottomLeft,
|
|
|
${Ie}${vt}bottomLeft
|
|
|
`]:{animationName:Se.fJ},[`
|
|
|
${it}${vt}topLeft,
|
|
|
${Ie}${vt}topLeft,
|
|
|
${it}${vt}topRight,
|
|
|
${Ie}${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(de)),{cursor:"pointer",transition:`background ${de.motionDurationSlow} ease`,borderRadius:de.borderRadiusSM,"&-group":{color:de.colorTextDescription,fontSize:de.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:de.optionActiveBg},[`&-selected:not(${je}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${je}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${je}-option-selected`]:{backgroundColor:de.colorBgContainerDisabled},color:de.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:de.calc(de.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ce(de)),{color:de.colorTextDisabled})}),[`${Ht}:has(+ ${Ht})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ht}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Se.oN)(de,"slide-up"),(0,Se.oN)(de,"slide-down"),(0,Ee.Fm)(de,"move-up"),(0,Ee.Fm)(de,"move-down")]},fe=E(26743),We=E(36237);function Te(de,Ct){const{componentCls:Ye,inputPaddingHorizontalBase:je,borderRadius:it}=de,Ie=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),ye=Ct?`${Ye}-${Ct}`:"";return{[`${Ye}-single${ye}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${Ye}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(de,!0)),{display:"flex",borderRadius:it,flex:"1 1 auto",[`${Ye}-selection-wrap:after`]:{lineHeight:(0,We.unit)(Ie)},[`${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)(Ie),transition:`all ${de.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:de.showArrowPaddingInlineEnd},[`&${Ye}-open ${Ye}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${Ye}-customize-input)`]:{[`${Ye}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,We.unit)(je)}`,[`${Ye}-selection-search-input`]:{height:Ie,fontSize:de.fontSize},"&:after":{lineHeight:(0,We.unit)(Ie)}}},[`&${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 dt(de){const{componentCls:Ct}=de,Ye=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[Te(de),Te((0,_e.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${Ct}-single${Ct}-sm`]:{[`&:not(${Ct}-customize-input)`]:{[`${Ct}-selector`]:{padding:`0 ${(0,We.unit)(Ye)}`},[`&${Ct}-show-arrow ${Ct}-selection-search`]:{insetInlineEnd:de.calc(Ye).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Ct}-show-arrow ${Ct}-selection-item,
|
|
|
&${Ct}-show-arrow ${Ct}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},Te((0,_e.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const Ge=de=>{const{fontSize:Ct,lineHeight:Ye,lineWidth:je,controlHeight:it,controlHeightSM:Ie,controlHeightLG:ye,paddingXXS:vt,controlPaddingHorizontal:Ht,zIndexPopupBase:Et,colorText:Be,fontWeightStrong:ft,controlItemBgActive:ot,controlItemBgHover:Xt,colorBgContainer:xt,colorFillSecondary:wt,colorBgContainerDisabled:ht,colorTextDisabled:un,colorPrimaryHover:zt,colorPrimary:ue,controlOutline:ae}=de,re=vt*2,se=je*2,he=Math.min(it-re,it-se),ie=Math.min(Ie-re,Ie-se),me=Math.min(ye-re,ye-se);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(vt/2),zIndexPopup:Et+50,optionSelectedColor:Be,optionSelectedFontWeight:ft,optionSelectedBg:ot,optionActiveBg:Xt,optionPadding:`${(it-Ct*Ye)/2}px ${Ht}px`,optionFontSize:Ct,optionLineHeight:Ye,optionHeight:it,selectorBg:xt,clearBg:xt,singleItemHeightLG:ye,multipleItemBg:wt,multipleItemBorderColor:"transparent",multipleItemHeight:he,multipleItemHeightSM:ie,multipleItemHeightLG:me,multipleSelectorBgDisabled:ht,multipleItemColorDisabled:un,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:zt,activeBorderColor:ue,activeOutlineColor:ae,selectAffixPadding:vt}},Ne=(de,Ct)=>{const{componentCls:Ye,antCls:je,controlOutlineWidth:it}=de;return{[`&:not(${Ye}-customize-input) ${Ye}-selector`]:{border:`${(0,We.unit)(de.lineWidth)} ${de.lineType} ${Ct.borderColor}`,background:de.selectorBg},[`&:not(${Ye}-disabled):not(${Ye}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Ye}-selector`]:{borderColor:Ct.hoverBorderHover},[`${Ye}-focused& ${Ye}-selector`]:{borderColor:Ct.activeBorderColor,boxShadow:`0 0 0 ${(0,We.unit)(it)} ${Ct.activeOutlineColor}`,outline:0},[`${Ye}-prefix`]:{color:Ct.color}}}},we=(de,Ct)=>({[`&${de.componentCls}-status-${Ct.status}`]:Object.assign({},Ne(de,Ct))}),Pe=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),we(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),we(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,We.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),Fe=(de,Ct)=>{const{componentCls:Ye,antCls:je}=de;return{[`&:not(${Ye}-customize-input) ${Ye}-selector`]:{background:Ct.bg,border:`${(0,We.unit)(de.lineWidth)} ${de.lineType} transparent`,color:Ct.color},[`&:not(${Ye}-disabled):not(${Ye}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Ye}-selector`]:{background:Ct.hoverBg},[`${Ye}-focused& ${Ye}-selector`]:{background:de.selectorBg,borderColor:Ct.activeBorderColor,outline:0}}}},et=(de,Ct)=>({[`&${de.componentCls}-status-${Ct.status}`]:Object.assign({},Fe(de,Ct))}),St=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Fe(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),et(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),et(de,{status:"warning",bg:de.colorWarningBg,hoverBg:de.colorWarningBgHover,activeBorderColor:de.colorWarning,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{borderColor:de.colorBorder,background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.colorBgContainer,border:`${(0,We.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),Ae=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,We.unit)(de.lineWidth)} ${de.lineType} transparent`},[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,We.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`},[`&${de.componentCls}-status-error`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorError}},[`&${de.componentCls}-status-warning`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorWarning}}}}),Oe=(de,Ct)=>{const{componentCls:Ye,antCls:je}=de;return{[`&:not(${Ye}-customize-input) ${Ye}-selector`]:{borderWidth:`0 0 ${(0,We.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:Ct.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${Ye}-disabled):not(${Ye}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Ye}-selector`]:{borderColor:Ct.hoverBorderHover},[`${Ye}-focused& ${Ye}-selector`]:{borderColor:Ct.activeBorderColor,outline:0},[`${Ye}-prefix`]:{color:Ct.color}}}},qe=(de,Ct)=>({[`&${de.componentCls}-status-${Ct.status}`]:Object.assign({},Oe(de,Ct))}),Je=de=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Oe(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),qe(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),qe(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,We.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var bt=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Pe(de)),St(de)),Ae(de)),Je(de))});const st=de=>{const{componentCls:Ct}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ct}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ct}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},$e=de=>{const{componentCls:Ct}=de;return{[`${Ct}-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=de=>{const{antCls:Ct,componentCls:Ye,inputPaddingHorizontalBase:je,iconCls:it}=de;return{[Ye]:Object.assign(Object.assign({},(0,y.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ye}-customize-input) ${Ye}-selector`]:Object.assign(Object.assign({},st(de)),$e(de)),[`${Ye}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${Ct}-typography`]:{display:"inline"}}),[`${Ye}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${Ye}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${de.motionDurationSlow} ease`,[it]:{verticalAlign:"top",transition:`transform ${de.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:de.selectAffixPadding},[`${Ye}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:de.fontSizeIcon,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${de.motionDurationMid} ease, opacity ${de.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:de.colorTextTertiary}},[`&:hover ${Ye}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${Ye}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ye}-has-feedback`]:{[`${Ye}-clear`]:{insetInlineEnd:de.calc(je).add(de.fontSize).add(de.paddingXS).equal()}}}}}},Le=de=>{const{componentCls:Ct}=de;return[{[Ct]:{[`&${Ct}-in-form-item`]:{width:"100%"}}},pe(de),dt(de),(0,fe.ZP)(de),De(de),{[`${Ct}-rtl`]:{direction:"rtl"}},(0,ge.c)(de,{borderElCls:`${Ct}-selector`,focusElCls:`${Ct}-focused`})]};var xe=(0,ce.I$)("Select",(de,Ct)=>{let{rootPrefixCls:Ye}=Ct;const je=(0,_e.mergeToken)(de,{rootPrefixCls:Ye,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[Le(je),bt(je)]},Ge,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Rn,qt,E){"use strict";E.d(qt,{_z:function(){return Ee},gp:function(){return _e}});var y=E(36237),ge=E(63356),ce=E(51636);const _e=fe=>{const{multipleSelectItemHeight:We,paddingXXS:Te,lineWidth:dt,INTERNAL_FIXED_ITEM_MARGIN:Ge}=fe,Ne=fe.max(fe.calc(Te).sub(dt).equal(),0),we=fe.max(fe.calc(Ne).sub(Ge).equal(),0);return{basePadding:Ne,containerPadding:we,itemHeight:(0,y.unit)(We),itemLineHeight:(0,y.unit)(fe.calc(We).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},Se=fe=>{const{multipleSelectItemHeight:We,selectHeight:Te,lineWidth:dt}=fe;return fe.calc(Te).sub(We).div(2).sub(dt).equal()},Ee=fe=>{const{componentCls:We,iconCls:Te,borderRadiusSM:dt,motionDurationSlow:Ge,paddingXS:Ne,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:Pe,colorIcon:Fe,colorIconHover:et,INTERNAL_FIXED_ITEM_MARGIN:St}=fe;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:dt,cursor:"default",transition:`font-size ${Ge}, line-height ${Ge}, height ${Ge}`,marginInlineEnd:fe.calc(St).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:fe.calc(Ne).div(2).equal(),[`${We}-disabled&`]:{color:we,borderColor:Pe,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.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:Fe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Te}`]:{verticalAlign:"-0.2em"},"&:hover":{color:et}})}}}},Ce=(fe,We)=>{const{componentCls:Te,INTERNAL_FIXED_ITEM_MARGIN:dt}=fe,Ge=`${Te}-selection-overflow`,Ne=fe.multipleSelectItemHeight,we=Se(fe),Pe=We?`${Te}-${We}`:"",Fe=_e(fe);return{[`${Te}-multiple${Pe}`]:Object.assign(Object.assign({},Ee(fe)),{[`${Te}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Fe.basePadding,paddingBlock:Fe.containerPadding,borderRadius:fe.borderRadius,[`${Te}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(dt)} 0`,lineHeight:(0,y.unit)(Ne),visibility:"hidden",content:'"\\a0"'}},[`${Te}-selection-item`]:{height:Fe.itemHeight,lineHeight:(0,y.unit)(Fe.itemLineHeight)},[`${Te}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(Ne),marginBlock:dt}},[`${Te}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Fe.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:Fe.itemHeight,marginBlock:dt},[`${Te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(we).equal(),"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:fe.fontFamily,lineHeight:(0,y.unit)(Ne),transition:`all ${fe.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:fe.calc(fe.inputPaddingHorizontalBase).sub(Fe.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function ke(fe,We){const{componentCls:Te}=fe,dt=We?`${Te}-${We}`:"",Ge={[`${Te}-multiple${dt}`]:{fontSize:fe.fontSize,[`${Te}-selector`]:{[`${Te}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Te}-show-arrow ${Te}-selector,
|
|
|
&${Te}-allow-clear ${Te}-selector
|
|
|
`]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Ce(fe,We),Ge]}const De=fe=>{const{componentCls:We}=fe,Te=(0,ce.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),dt=(0,ce.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[ke(fe),ke(Te,"sm"),{[`${We}-multiple${We}-sm`]:{[`${We}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${We}-selection-search`]:{marginInlineStart:2}}},ke(dt,"lg")]};qt.ZP=De},68525:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});var y=E(59301),ge=E(40001),ce=E(19248),_e=E(99267),Se=E(84105),Ee=E(58617),Ce=E(47472);function ke(De){let{suffixIcon:fe,clearIcon:We,menuItemSelectedIcon:Te,removeIcon:dt,loading:Ge,multiple:Ne,hasFeedback:we,prefixCls:Pe,showSuffixIcon:Fe,feedbackIcon:et,showArrow:St,componentName:Ae}=De;const Oe=We!=null?We:y.createElement(ce.Z,null),qe=st=>fe===null&&!we&&!St?null:y.createElement(y.Fragment,null,Fe!==!1&&st,we&&et);let Je=null;if(fe!==void 0)Je=qe(fe);else if(Ge)Je=qe(y.createElement(Ee.Z,{spin:!0}));else{const st=`${Pe}-suffix`;Je=$e=>{let{open:pe,showSearch:Le}=$e;return qe(pe&&Le?y.createElement(Ce.Z,{className:st}):y.createElement(Se.Z,{className:st}))}}let ct=null;Te!==void 0?ct=Te:Ne?ct=y.createElement(ge.Z,null):ct=null;let bt=null;return dt!==void 0?bt=dt:bt=y.createElement(_e.Z,null),{clearIcon:Oe,suffixIcon:Je,itemIcon:ct,removeIcon:bt}}},90005:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return y}});function y(ge,ce){return ce!==void 0?ce:ge!==null}},11938:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return $e}});var y=E(59301),ge=E(40192),ce=E(22703),_e=E(92310),Se=E.n(_e),Ee=E(26112),Ce=E(48755),ke=E(458),fe=pe=>{const{value:Le,formatter:xe,precision:de,decimalSeparator:Ct,groupSeparator:Ye="",prefixCls:je}=pe;let it;if(typeof xe=="function")it=xe(Le);else{const Ie=String(Le),ye=Ie.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ye||Ie==="-")it=Ie;else{const vt=ye[1];let Ht=ye[2]||"0",Et=ye[4]||"";Ht=Ht.replace(/\B(?=(\d{3})+(?!\d))/g,Ye),typeof de=="number"&&(Et=Et.padEnd(de,"0").slice(0,de>0?de:0)),Et&&(Et=`${Ct}${Et}`),it=[y.createElement("span",{key:"int",className:`${je}-content-value-int`},vt,Ht),Et&&y.createElement("span",{key:"decimal",className:`${je}-content-value-decimal`},Et)]}}return y.createElement("span",{className:`${je}-content-value`},it)},We=E(63356),Te=E(16931),dt=E(51636);const Ge=pe=>{const{componentCls:Le,marginXXS:xe,padding:de,colorTextDescription:Ct,titleFontSize:Ye,colorTextHeading:je,contentFontSize:it,fontFamily:Ie}=pe;return{[Le]:Object.assign(Object.assign({},(0,We.Wf)(pe)),{[`${Le}-title`]:{marginBottom:xe,color:Ct,fontSize:Ye},[`${Le}-skeleton`]:{paddingTop:de},[`${Le}-content`]:{color:je,fontSize:it,fontFamily:Ie,[`${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 we=(0,Te.I$)("Statistic",pe=>{const Le=(0,dt.mergeToken)(pe,{});return[Ge(Le)]},Ne),Pe=function(pe,Le){var xe={};for(var de in pe)Object.prototype.hasOwnProperty.call(pe,de)&&Le.indexOf(de)<0&&(xe[de]=pe[de]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,de=Object.getOwnPropertySymbols(pe);Ct<de.length;Ct++)Le.indexOf(de[Ct])<0&&Object.prototype.propertyIsEnumerable.call(pe,de[Ct])&&(xe[de[Ct]]=pe[de[Ct]]);return xe},et=pe=>{const{prefixCls:Le,className:xe,rootClassName:de,style:Ct,valueStyle:Ye,value:je=0,title:it,valueRender:Ie,prefix:ye,suffix:vt,loading:Ht=!1,formatter:Et,precision:Be,decimalSeparator:ft=".",groupSeparator:ot=",",onMouseEnter:Xt,onMouseLeave:xt}=pe,wt=Pe(pe,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:ht,direction:un,className:zt,style:ue}=(0,Ce.dj)("statistic"),ae=ht("statistic",Le),[re,se,he]=we(ae),ie=y.createElement(fe,{decimalSeparator:ft,groupSeparator:ot,prefixCls:ae,formatter:Et,precision:Be,value:je}),me=Se()(ae,{[`${ae}-rtl`]:un==="rtl"},zt,xe,de,se,he),He=(0,Ee.Z)(wt,{aria:!0,data:!0});return re(y.createElement("div",Object.assign({},He,{className:me,style:Object.assign(Object.assign({},ue),Ct),onMouseEnter:Xt,onMouseLeave:xt}),it&&y.createElement("div",{className:`${ae}-title`},it),y.createElement(ke.Z,{paragraph:!1,loading:Ht,className:`${ae}-skeleton`},y.createElement("div",{style:Ye,className:`${ae}-content`},ye&&y.createElement("span",{className:`${ae}-content-prefix`},ye),Ie?Ie(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 de=/\[[^\]]*]/g,Ct=(Le.match(de)||[]).map(Ie=>Ie.slice(1,-1)),Ye=Le.replace(de,"[]"),je=St.reduce((Ie,ye)=>{let[vt,Ht]=ye;if(Ie.includes(vt)){const Et=Math.floor(xe/Ht);return xe-=Et*Ht,Ie.replace(new RegExp(`${vt}+`,"g"),Be=>{const ft=Be.length;return Et.toString().padStart(ft,"0")})}return Ie},Ye);let it=0;return je.replace(de,()=>{const Ie=Ct[it];return it+=1,Ie})}function Oe(pe,Le){const{format:xe=""}=Le,de=new Date(pe).getTime(),Ct=Date.now(),Ye=Math.max(de-Ct,0);return Ae(Ye,xe)}var qe=function(pe,Le){var xe={};for(var de in pe)Object.prototype.hasOwnProperty.call(pe,de)&&Le.indexOf(de)<0&&(xe[de]=pe[de]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,de=Object.getOwnPropertySymbols(pe);Ct<de.length;Ct++)Le.indexOf(de[Ct])<0&&Object.prototype.propertyIsEnumerable.call(pe,de[Ct])&&(xe[de[Ct]]=pe[de[Ct]]);return xe};const Je=1e3/30;function ct(pe){return new Date(pe).getTime()}const bt=pe=>{const{value:Le,format:xe="HH:mm:ss",onChange:de,onFinish:Ct}=pe,Ye=qe(pe,["value","format","onChange","onFinish"]),je=(0,ge.Z)(),it=y.useRef(null),Ie=()=>{Ct==null||Ct(),it.current&&(clearInterval(it.current),it.current=null)},ye=()=>{const Et=ct(Le);Et>=Date.now()&&(it.current=setInterval(()=>{je(),de==null||de(Et-Date.now()),Et<Date.now()&&Ie()},Je))};y.useEffect(()=>(ye(),()=>{it.current&&(clearInterval(it.current),it.current=null)}),[Le]);const vt=(Et,Be)=>Oe(Et,Object.assign(Object.assign({},Be),{format:xe})),Ht=Et=>(0,ce.Tm)(Et,{title:void 0});return y.createElement(et,Object.assign({},Ye,{value:Le,valueRender:Ht,formatter:vt}))};var st=y.memo(bt);et.Countdown=st;var $e=et},58755:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Ct}});var y=E(59301),ge=E(58617),ce=E(92310),_e=E.n(ce),Se=E(60499),Ee=E(18642),Ce=E(72190),ke=E(42244),De=E(18929),fe=E(10228),We=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Te=y.forwardRef(function(Ye,je){var it,Ie=Ye.prefixCls,ye=Ie===void 0?"rc-switch":Ie,vt=Ye.className,Ht=Ye.checked,Et=Ye.defaultChecked,Be=Ye.disabled,ft=Ye.loadingIcon,ot=Ye.checkedChildren,Xt=Ye.unCheckedChildren,xt=Ye.onClick,wt=Ye.onChange,ht=Ye.onKeyDown,un=(0,ke.Z)(Ye,We),zt=(0,De.Z)(!1,{value:Ht,defaultValue:Et}),ue=(0,Ce.Z)(zt,2),ae=ue[0],re=ue[1];function se(He,It){var Xe=ae;return Be||(Xe=He,re(Xe),wt==null||wt(Xe,It)),Xe}function he(He){He.which===fe.Z.LEFT?se(!1,He):He.which===fe.Z.RIGHT&&se(!0,He),ht==null||ht(He)}function ie(He){var It=se(!ae,He);xt==null||xt(It,He)}var me=_e()(ye,vt,(it={},(0,Ee.Z)(it,"".concat(ye,"-checked"),ae),(0,Ee.Z)(it,"".concat(ye,"-disabled"),Be),it));return y.createElement("button",(0,Se.Z)({},un,{type:"button",role:"switch","aria-checked":ae,disabled:Be,className:me,ref:je,onKeyDown:he,onClick:ie}),ft,y.createElement("span",{className:"".concat(ye,"-inner")},y.createElement("span",{className:"".concat(ye,"-inner-checked")},ot),y.createElement("span",{className:"".concat(ye,"-inner-unchecked")},Xt)))});Te.displayName="Switch";var dt=Te,Ge=E(12919),Ne=E(48755),we=E(2171),Pe=E(31756),Fe=E(36237),et=E(17835),St=E(63356),Ae=E(16931),Oe=E(51636);const qe=Ye=>{const{componentCls:je,trackHeightSM:it,trackPadding:Ie,trackMinWidthSM:ye,innerMinMarginSM:vt,innerMaxMarginSM:Ht,handleSizeSM:Et,calc:Be}=Ye,ft=`${je}-inner`,ot=(0,Fe.unit)(Be(Et).add(Be(Ie).mul(2)).equal()),Xt=(0,Fe.unit)(Be(Ht).mul(2).equal());return{[je]:{[`&${je}-small`]:{minWidth:ye,height:it,lineHeight:(0,Fe.unit)(it),[`${je}-inner`]:{paddingInlineStart:Ht,paddingInlineEnd:vt,[`${ft}-checked, ${ft}-unchecked`]:{minHeight:it},[`${ft}-checked`]:{marginInlineStart:`calc(-100% + ${ot} - ${Xt})`,marginInlineEnd:`calc(100% - ${ot} + ${Xt})`},[`${ft}-unchecked`]:{marginTop:Be(it).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${je}-handle`]:{width:Et,height:Et},[`${je}-loading-icon`]:{top:Be(Be(Et).sub(Ye.switchLoadingIconSize)).div(2).equal(),fontSize:Ye.switchLoadingIconSize},[`&${je}-checked`]:{[`${je}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:Ht,[`${ft}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ft}-unchecked`]:{marginInlineStart:`calc(100% - ${ot} + ${Xt})`,marginInlineEnd:`calc(-100% + ${ot} - ${Xt})`}},[`${je}-handle`]:{insetInlineStart:`calc(100% - ${(0,Fe.unit)(Be(Et).add(Ie).equal())})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${ft}`]:{[`${ft}-unchecked`]:{marginInlineStart:Be(Ye.marginXXS).div(2).equal(),marginInlineEnd:Be(Ye.marginXXS).mul(-1).div(2).equal()}},[`&${je}-checked ${ft}`]:{[`${ft}-checked`]:{marginInlineStart:Be(Ye.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Be(Ye.marginXXS).div(2).equal()}}}}}}},Je=Ye=>{const{componentCls:je,handleSize:it,calc:Ie}=Ye;return{[je]:{[`${je}-loading-icon${Ye.iconCls}`]:{position:"relative",top:Ie(Ie(it).sub(Ye.fontSize)).div(2).equal(),color:Ye.switchLoadingIconColor,verticalAlign:"top"},[`&${je}-checked ${je}-loading-icon`]:{color:Ye.switchColor}}}},ct=Ye=>{const{componentCls:je,trackPadding:it,handleBg:Ie,handleShadow:ye,handleSize:vt,calc:Ht}=Ye,Et=`${je}-handle`;return{[je]:{[Et]:{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:Ie,borderRadius:Ht(vt).div(2).equal(),boxShadow:ye,transition:`all ${Ye.switchDuration} ease-in-out`,content:'""'}},[`&${je}-checked ${Et}`]:{insetInlineStart:`calc(100% - ${(0,Fe.unit)(Ht(vt).add(it).equal())})`},[`&:not(${je}-disabled):active`]:{[`${Et}::before`]:{insetInlineEnd:Ye.switchHandleActiveInset,insetInlineStart:0},[`&${je}-checked ${Et}::before`]:{insetInlineEnd:0,insetInlineStart:Ye.switchHandleActiveInset}}}}},bt=Ye=>{const{componentCls:je,trackHeight:it,trackPadding:Ie,innerMinMargin:ye,innerMaxMargin:vt,handleSize:Ht,calc:Et}=Ye,Be=`${je}-inner`,ft=(0,Fe.unit)(Et(Ht).add(Et(Ie).mul(2)).equal()),ot=(0,Fe.unit)(Et(vt).mul(2).equal());return{[je]:{[Be]:{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`,[`${Be}-checked, ${Be}-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},[`${Be}-checked`]:{marginInlineStart:`calc(-100% + ${ft} - ${ot})`,marginInlineEnd:`calc(100% - ${ft} + ${ot})`},[`${Be}-unchecked`]:{marginTop:Et(it).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${je}-checked ${Be}`]:{paddingInlineStart:ye,paddingInlineEnd:vt,[`${Be}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Be}-unchecked`]:{marginInlineStart:`calc(100% - ${ft} + ${ot})`,marginInlineEnd:`calc(-100% + ${ft} - ${ot})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Be}`]:{[`${Be}-unchecked`]:{marginInlineStart:Et(Ie).mul(2).equal(),marginInlineEnd:Et(Ie).mul(-1).mul(2).equal()}},[`&${je}-checked ${Be}`]:{[`${Be}-checked`]:{marginInlineStart:Et(Ie).mul(-1).mul(2).equal(),marginInlineEnd:Et(Ie).mul(2).equal()}}}}}},st=Ye=>{const{componentCls:je,trackHeight:it,trackMinWidth:Ie}=Ye;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Ye)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ie,height:it,lineHeight:(0,Fe.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:Ie,colorWhite:ye}=Ye,vt=je*it,Ht=Ie/2,Et=2,Be=vt-Et*2,ft=Ht-Et*2;return{trackHeight:vt,trackHeightSM:Ht,trackMinWidth:Be*2+Et*4,trackMinWidthSM:ft*2+Et*2,trackPadding:Et,handleBg:ye,handleSize:Be,handleSizeSM:ft,handleShadow:`0 2px 4px 0 ${new et.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Be/2,innerMaxMargin:Be+Et+Et*2,innerMinMarginSM:ft/2,innerMaxMarginSM:ft+Et+Et*2}};var pe=(0,Ae.I$)("Switch",Ye=>{const je=(0,Oe.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),bt(je),ct(je),Je(je),qe(je)]},$e),Le=function(Ye,je){var it={};for(var Ie in Ye)Object.prototype.hasOwnProperty.call(Ye,Ie)&&je.indexOf(Ie)<0&&(it[Ie]=Ye[Ie]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Ie=Object.getOwnPropertySymbols(Ye);ye<Ie.length;ye++)je.indexOf(Ie[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ie[ye])&&(it[Ie[ye]]=Ye[Ie[ye]]);return it};const de=y.forwardRef((Ye,je)=>{const{prefixCls:it,size:Ie,disabled:ye,loading:vt,className:Ht,rootClassName:Et,style:Be,checked:ft,value:ot,defaultChecked:Xt,defaultValue:xt,onChange:wt}=Ye,ht=Le(Ye,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[un,zt]=(0,De.Z)(!1,{value:ft!=null?ft:ot,defaultValue:Xt!=null?Xt:xt}),{getPrefixCls:ue,direction:ae,switch:re}=y.useContext(Ne.E_),se=y.useContext(we.Z),he=(ye!=null?ye:se)||vt,ie=ue("switch",it),me=y.createElement("div",{className:`${ie}-handle`},vt&&y.createElement(ge.Z,{className:`${ie}-loading-icon`})),[He,It,Xe]=pe(ie),Ke=(0,Pe.Z)(Ie),yt=_e()(re==null?void 0:re.className,{[`${ie}-small`]:Ke==="small",[`${ie}-loading`]:vt,[`${ie}-rtl`]:ae==="rtl"},Ht,Et,It,Xe),Bt=Object.assign(Object.assign({},re==null?void 0:re.style),Be),_t=function(){zt(arguments.length<=0?void 0:arguments[0]),wt==null||wt.apply(void 0,arguments)};return He(y.createElement(Ge.Z,{component:"Switch"},y.createElement(dt,Object.assign({},ht,{checked:un,onChange:_t,prefixCls:ie,className:yt,style:Bt,disabled:he,ref:je,loadingIcon:me}))))});de.__ANT_SWITCH=!0;var Ct=de},70858:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return jl}});var y=E(59301),ge={},ce="rc-table-internal-hook",_e=E(72190),Se=E(6089),Ee=E(34280),Ce=E(13697),ke=E(4676);function De(Ze){var Re=y.createContext(void 0),Ft=function(an){var pn=an.value,Mn=an.children,In=y.useRef(pn);In.current=pn;var zn=y.useState(function(){return{getValue:function(){return In.current},listeners:new Set}}),Ln=(0,_e.Z)(zn,1),Br=Ln[0];return(0,Ee.Z)(function(){(0,ke.unstable_batchedUpdates)(function(){Br.listeners.forEach(function(lr){lr(pn)})})},[pn]),y.createElement(Re.Provider,{value:Br},Mn)};return{Context:Re,Provider:Ft,defaultValue:Ze}}function fe(Ze,Re){var Ft=(0,Se.Z)(typeof Re=="function"?Re:function(lr){if(Re===void 0)return lr;if(!Array.isArray(Re))return lr[Re];var nr={};return Re.forEach(function(Xn){nr[Xn]=lr[Xn]}),nr}),$t=y.useContext(Ze==null?void 0:Ze.Context),an=$t||{},pn=an.listeners,Mn=an.getValue,In=y.useRef();In.current=Ft($t?Mn():Ze==null?void 0:Ze.defaultValue);var zn=y.useState({}),Ln=(0,_e.Z)(zn,2),Br=Ln[1];return(0,Ee.Z)(function(){if(!$t)return;function lr(nr){var Xn=Ft(nr);(0,Ce.Z)(In.current,Xn,!0)||Br({})}return pn.add(lr),function(){pn.delete(lr)}},[$t]),In.current}var We=E(60499),Te=E(8654);function dt(){var Ze=y.createContext(null);function Re(){return y.useContext(Ze)}function Ft(an,pn){var Mn=(0,Te.Yr)(an),In=function(Ln,Br){var lr=Mn?{ref:Br}:{},nr=y.useRef(0),Xn=y.useRef(Ln),Gn=Re();return Gn!==null?y.createElement(an,(0,We.Z)({},Ln,lr)):((!pn||pn(Xn.current,Ln))&&(nr.current+=1),Xn.current=Ln,y.createElement(Ze.Provider,{value:nr.current},y.createElement(an,(0,We.Z)({},Ln,lr))))};return Mn?y.forwardRef(In):In}function $t(an,pn){var Mn=(0,Te.Yr)(an),In=function(Ln,Br){var lr=Mn?{ref:Br}:{};return Re(),y.createElement(an,(0,We.Z)({},Ln,lr))};return Mn?y.memo(y.forwardRef(In),pn):y.memo(In,pn)}return{makeImmutable:Ft,responseImmutable:$t,useImmutableMark:Re}}var Ge=dt(),Ne=Ge.makeImmutable,we=Ge.responseImmutable,Pe=Ge.useImmutableMark,Fe=dt(),et=Fe.makeImmutable,St=Fe.responseImmutable,Ae=Fe.useImmutableMark,Oe=De(),qe=Oe;function Je(Ze,Re){var Ft=React.useRef(0);Ft.current+=1;var $t=React.useRef(Ze),an=[];Object.keys(Ze||{}).map(function(Mn){var In;(Ze==null?void 0:Ze[Mn])!==((In=$t.current)===null||In===void 0?void 0:In[Mn])&&an.push(Mn)}),$t.current=Ze;var pn=React.useRef([]);return an.length&&(pn.current=an),React.useDebugValue(Ft.current),React.useDebugValue(pn.current.join(", ")),Re&&console.log("".concat(Re,":"),Ft.current,pn.current),Ft.current}var ct=null,bt=null,st=E(43749),$e=E(85899),pe=E(18642),Le=E(92310),xe=E.n(Le),de=E(80547),Ct=E(97938),Ye=E(48736),je=y.createContext({renderWithProps:!1}),it=je,Ie="RC_TABLE_KEY";function ye(Ze){return Ze==null?[]:Array.isArray(Ze)?Ze:[Ze]}function vt(Ze){var Re=[],Ft={};return Ze.forEach(function($t){for(var an=$t||{},pn=an.key,Mn=an.dataIndex,In=pn||ye(Mn).join("-")||Ie;Ft[In];)In="".concat(In,"_next");Ft[In]=!0,Re.push(In)}),Re}function Ht(Ze){return Ze!=null}function Et(Ze){return typeof Ze=="number"&&!Number.isNaN(Ze)}function Be(Ze){return Ze&&(0,st.Z)(Ze)==="object"&&!Array.isArray(Ze)&&!y.isValidElement(Ze)}function ft(Ze,Re,Ft,$t,an,pn){var Mn=y.useContext(it),In=Ae(),zn=(0,de.Z)(function(){if(Ht($t))return[$t];var Ln=Re==null||Re===""?[]:Array.isArray(Re)?Re:[Re],Br=(0,Ct.Z)(Ze,Ln),lr=Br,nr=void 0;if(an){var Xn=an(Br,Ze,Ft);Be(Xn)?(lr=Xn.children,nr=Xn.props,Mn.renderWithProps=!0):lr=Xn}return[lr,nr]},[In,Ze,$t,Re,an,Ft],function(Ln,Br){if(pn){var lr=(0,_e.Z)(Ln,2),nr=lr[1],Xn=(0,_e.Z)(Br,2),Gn=Xn[1];return pn(Gn,nr)}return Mn.renderWithProps?!0:!(0,Ce.Z)(Ln,Br,!0)});return zn}function ot(Ze,Re,Ft,$t){var an=Ze+Re-1;return Ze<=$t&&an>=Ft}function Xt(Ze,Re){return fe(qe,function(Ft){var $t=ot(Ze,Re||1,Ft.hoverStartRow,Ft.hoverEndRow);return[$t,Ft.onHover]})}var xt=E(70425),wt=function(Re){var Ft=Re.ellipsis,$t=Re.rowType,an=Re.children,pn,Mn=Ft===!0?{showTitle:!0}:Ft;return Mn&&(Mn.showTitle||$t==="header")&&(typeof an=="string"||typeof an=="number"?pn=an.toString():y.isValidElement(an)&&typeof an.props.children=="string"&&(pn=an.props.children)),pn};function ht(Ze){var Re,Ft,$t,an,pn,Mn,In,zn,Ln=Ze.component,Br=Ze.children,lr=Ze.ellipsis,nr=Ze.scope,Xn=Ze.prefixCls,Gn=Ze.className,ia=Ze.align,_r=Ze.record,da=Ze.render,Ea=Ze.dataIndex,Jr=Ze.renderIndex,Aa=Ze.shouldCellUpdate,La=Ze.index,Qa=Ze.rowType,Ga=Ze.colSpan,eo=Ze.rowSpan,Si=Ze.fixLeft,vi=Ze.fixRight,$i=Ze.firstFixLeft,qa=Ze.lastFixLeft,ti=Ze.firstFixRight,Ra=Ze.lastFixRight,Ca=Ze.appendNode,Ja=Ze.additionalProps,ni=Ja===void 0?{}:Ja,wi=Ze.isSticky,Ma="".concat(Xn,"-cell"),lo=fe(qe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),so=lo.supportSticky,pl=lo.allColumnsFixedLeft,ul=lo.rowHoverable,el=ft(_r,Ea,Jr,Br,da,Aa),ol=(0,_e.Z)(el,2),El=ol[0],mo=ol[1],yo={},ll=typeof Si=="number"&&so,cl=typeof vi=="number"&&so;ll&&(yo.position="sticky",yo.left=Si),cl&&(yo.position="sticky",yo.right=vi);var fi=(Re=(Ft=($t=mo==null?void 0:mo.colSpan)!==null&&$t!==void 0?$t:ni.colSpan)!==null&&Ft!==void 0?Ft:Ga)!==null&&Re!==void 0?Re:1,qi=(an=(pn=(Mn=mo==null?void 0:mo.rowSpan)!==null&&Mn!==void 0?Mn:ni.rowSpan)!==null&&pn!==void 0?pn:eo)!==null&&an!==void 0?an:1,li=Xt(La,qi),Ua=(0,_e.Z)(li,2),po=Ua[0],To=Ua[1],sl=(0,xt.zX)(function(zo){var jo;_r&&To(La,La+qi-1),ni==null||(jo=ni.onMouseEnter)===null||jo===void 0||jo.call(ni,zo)}),Co=(0,xt.zX)(function(zo){var jo;_r&&To(-1,-1),ni==null||(jo=ni.onMouseLeave)===null||jo===void 0||jo.call(ni,zo)});if(fi===0||qi===0)return null;var hl=(In=ni.title)!==null&&In!==void 0?In:wt({rowType:Qa,ellipsis:lr,children:El}),Bl=xe()(Ma,Gn,(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(Ma,"-fix-left"),ll&&so),"".concat(Ma,"-fix-left-first"),$i&&so),"".concat(Ma,"-fix-left-last"),qa&&so),"".concat(Ma,"-fix-left-all"),qa&&pl&&so),"".concat(Ma,"-fix-right"),cl&&so),"".concat(Ma,"-fix-right-first"),ti&&so),"".concat(Ma,"-fix-right-last"),Ra&&so),"".concat(Ma,"-ellipsis"),lr),"".concat(Ma,"-with-append"),Ca),"".concat(Ma,"-fix-sticky"),(ll||cl)&&wi&&so),(0,pe.Z)(zn,"".concat(Ma,"-row-hover"),!mo&&po)),ni.className,mo==null?void 0:mo.className),Bi={};ia&&(Bi.textAlign=ia);var Ri=(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({},mo==null?void 0:mo.style),yo),Bi),ni.style),Do=El;return(0,st.Z)(Do)==="object"&&!Array.isArray(Do)&&!y.isValidElement(Do)&&(Do=null),lr&&(qa||ti)&&(Do=y.createElement("span",{className:"".concat(Ma,"-content")},Do)),y.createElement(Ln,(0,We.Z)({},mo,ni,{className:Bl,style:Ri,title:hl,scope:nr,onMouseEnter:ul?sl:void 0,onMouseLeave:ul?Co:void 0,colSpan:fi!==1?fi:null,rowSpan:qi!==1?qi:null}),Ca,Do)}var un=y.memo(ht);function zt(Ze,Re,Ft,$t,an){var pn=Ft[Ze]||{},Mn=Ft[Re]||{},In,zn;pn.fixed==="left"?In=$t.left[an==="rtl"?Re:Ze]:Mn.fixed==="right"&&(zn=$t.right[an==="rtl"?Ze:Re]);var Ln=!1,Br=!1,lr=!1,nr=!1,Xn=Ft[Re+1],Gn=Ft[Ze-1],ia=Xn&&!Xn.fixed||Gn&&!Gn.fixed||Ft.every(function(Aa){return Aa.fixed==="left"});if(an==="rtl"){if(In!==void 0){var _r=Gn&&Gn.fixed==="left";nr=!_r&&ia}else if(zn!==void 0){var da=Xn&&Xn.fixed==="right";lr=!da&&ia}}else if(In!==void 0){var Ea=Xn&&Xn.fixed==="left";Ln=!Ea&&ia}else if(zn!==void 0){var Jr=Gn&&Gn.fixed==="right";Br=!Jr&&ia}return{fixLeft:In,fixRight:zn,lastFixLeft:Ln,firstFixRight:Br,lastFixRight:lr,firstFixLeft:nr,isSticky:$t.isSticky}}var ue=y.createContext({}),ae=ue;function re(Ze){var Re=Ze.className,Ft=Ze.index,$t=Ze.children,an=Ze.colSpan,pn=an===void 0?1:an,Mn=Ze.rowSpan,In=Ze.align,zn=fe(qe,["prefixCls","direction"]),Ln=zn.prefixCls,Br=zn.direction,lr=y.useContext(ae),nr=lr.scrollColumnIndex,Xn=lr.stickyOffsets,Gn=lr.flattenColumns,ia=Ft+pn-1,_r=ia+1===nr?pn+1:pn,da=zt(Ft,Ft+_r-1,Gn,Xn,Br);return y.createElement(un,(0,We.Z)({className:Re,index:Ft,component:"td",prefixCls:Ln,record:null,dataIndex:null,align:In,colSpan:_r,rowSpan:Mn,render:function(){return $t}},da))}var se=E(42244),he=["children"];function ie(Ze){var Re=Ze.children,Ft=(0,se.Z)(Ze,he);return y.createElement("tr",Ft,Re)}function me(Ze){var Re=Ze.children;return Re}me.Row=ie,me.Cell=re;var He=me;function It(Ze){var Re=Ze.children,Ft=Ze.stickyOffsets,$t=Ze.flattenColumns,an=fe(qe,"prefixCls"),pn=$t.length-1,Mn=$t[pn],In=y.useMemo(function(){return{stickyOffsets:Ft,flattenColumns:$t,scrollColumnIndex:Mn!=null&&Mn.scrollbar?pn:null}},[Mn,$t,pn,Ft]);return y.createElement(ae.Provider,{value:In},y.createElement("tfoot",{className:"".concat(an,"-summary")},Re))}var Xe=St(It),Ke=He,yt=E(29301),Bt=E(24514),_t=E(75152),Qe=E(26112);function tt(Ze,Re,Ft,$t,an,pn,Mn){Ze.push({record:Re,indent:Ft,index:Mn});var In=pn(Re),zn=an==null?void 0:an.has(In);if(Re&&Array.isArray(Re[$t])&&zn)for(var Ln=0;Ln<Re[$t].length;Ln+=1)tt(Ze,Re[$t][Ln],Ft+1,$t,an,pn,Ln)}function Vt(Ze,Re,Ft,$t){var an=y.useMemo(function(){if(Ft!=null&&Ft.size){for(var pn=[],Mn=0;Mn<(Ze==null?void 0:Ze.length);Mn+=1){var In=Ze[Mn];tt(pn,In,0,Re,Ft,$t,Mn)}return pn}return Ze==null?void 0:Ze.map(function(zn,Ln){return{record:zn,indent:0,index:Ln}})},[Ze,Re,Ft,$t]);return an}function on(Ze,Re,Ft,$t){var an=fe(qe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),pn=an.flattenColumns,Mn=an.expandableType,In=an.expandedKeys,zn=an.childrenColumnName,Ln=an.onTriggerExpand,Br=an.rowExpandable,lr=an.onRow,nr=an.expandRowByClick,Xn=an.rowClassName,Gn=Mn==="nest",ia=Mn==="row"&&(!Br||Br(Ze)),_r=ia||Gn,da=In&&In.has(Re),Ea=zn&&Ze&&Ze[zn],Jr=(0,xt.zX)(Ln),Aa=lr==null?void 0:lr(Ze,Ft),La=Aa==null?void 0:Aa.onClick,Qa=function(vi){nr&&_r&&Ln(Ze,vi);for(var $i=arguments.length,qa=new Array($i>1?$i-1:0),ti=1;ti<$i;ti++)qa[ti-1]=arguments[ti];La==null||La.apply(void 0,[vi].concat(qa))},Ga;typeof Xn=="string"?Ga=Xn:typeof Xn=="function"&&(Ga=Xn(Ze,Ft,$t));var eo=vt(pn);return(0,$e.Z)((0,$e.Z)({},an),{},{columnsKey:eo,nestExpandable:Gn,expanded:da,hasNestChildren:Ea,record:Ze,onTriggerExpand:Jr,rowSupportExpand:ia,expandable:_r,rowProps:(0,$e.Z)((0,$e.Z)({},Aa),{},{className:xe()(Ga,Aa==null?void 0:Aa.className),onClick:Qa})})}function Fn(Ze){var Re=Ze.prefixCls,Ft=Ze.children,$t=Ze.component,an=Ze.cellComponent,pn=Ze.className,Mn=Ze.expanded,In=Ze.colSpan,zn=Ze.isEmpty,Ln=fe(qe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Br=Ln.scrollbarSize,lr=Ln.fixHeader,nr=Ln.fixColumn,Xn=Ln.componentWidth,Gn=Ln.horizonScroll,ia=Ft;return(zn?Gn&&Xn:nr)&&(ia=y.createElement("div",{style:{width:Xn-(lr&&!zn?Br:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Re,"-expanded-row-fixed")},ia)),y.createElement($t,{className:pn,style:{display:Mn?null:"none"}},y.createElement(un,{component:an,prefixCls:Re,colSpan:In},ia))}var gn=Fn;function Lt(Ze){var Re=Ze.prefixCls,Ft=Ze.record,$t=Ze.onExpand,an=Ze.expanded,pn=Ze.expandable,Mn="".concat(Re,"-row-expand-icon");if(!pn)return y.createElement("span",{className:xe()(Mn,"".concat(Re,"-row-spaced"))});var In=function(Ln){$t(Ft,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:In})}function Qt(Ze,Re,Ft){var $t=[];function an(pn){(pn||[]).forEach(function(Mn,In){$t.push(Re(Mn,In)),an(Mn[Ft])})}return an(Ze),$t}function jt(Ze,Re,Ft,$t){return typeof Ze=="string"?Ze:typeof Ze=="function"?Ze(Re,Ft,$t):""}function rt(Ze,Re,Ft,$t,an){var pn=Ze.record,Mn=Ze.prefixCls,In=Ze.columnsKey,zn=Ze.fixedInfoList,Ln=Ze.expandIconColumnIndex,Br=Ze.nestExpandable,lr=Ze.indentSize,nr=Ze.expandIcon,Xn=Ze.expanded,Gn=Ze.hasNestChildren,ia=Ze.onTriggerExpand,_r=In[Ft],da=zn[Ft],Ea;Ft===(Ln||0)&&Br&&(Ea=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(lr*$t,"px")},className:"".concat(Mn,"-row-indent indent-level-").concat($t)}),nr({prefixCls:Mn,expanded:Xn,expandable:Gn,record:pn,onExpand:ia})));var Jr;return Re.onCell&&(Jr=Re.onCell(pn,an)),{key:_r,fixedInfo:da,appendCellNode:Ea,additionalCellProps:Jr||{}}}function Nt(Ze){var Re=Ze.className,Ft=Ze.style,$t=Ze.record,an=Ze.index,pn=Ze.renderIndex,Mn=Ze.rowKey,In=Ze.indent,zn=In===void 0?0:In,Ln=Ze.rowComponent,Br=Ze.cellComponent,lr=Ze.scopeCellComponent,nr=on($t,Mn,an,zn),Xn=nr.prefixCls,Gn=nr.flattenColumns,ia=nr.expandedRowClassName,_r=nr.expandedRowRender,da=nr.rowProps,Ea=nr.expanded,Jr=nr.rowSupportExpand,Aa=y.useRef(!1);Aa.current||(Aa.current=Ea);var La=jt(ia,$t,an,zn),Qa=y.createElement(Ln,(0,We.Z)({},da,{"data-row-key":Mn,className:xe()(Re,"".concat(Xn,"-row"),"".concat(Xn,"-row-level-").concat(zn),da==null?void 0:da.className,(0,pe.Z)({},La,zn>=1)),style:(0,$e.Z)((0,$e.Z)({},Ft),da==null?void 0:da.style)}),Gn.map(function(Si,vi){var $i=Si.render,qa=Si.dataIndex,ti=Si.className,Ra=rt(nr,Si,vi,zn,an),Ca=Ra.key,Ja=Ra.fixedInfo,ni=Ra.appendCellNode,wi=Ra.additionalCellProps;return y.createElement(un,(0,We.Z)({className:ti,ellipsis:Si.ellipsis,align:Si.align,scope:Si.rowScope,component:Si.rowScope?lr:Br,prefixCls:Xn,key:Ca,record:$t,index:an,renderIndex:pn,dataIndex:qa,render:$i,shouldCellUpdate:Si.shouldCellUpdate},Ja,{appendNode:ni,additionalProps:wi}))})),Ga;if(Jr&&(Aa.current||Ea)){var eo=_r($t,an,zn+1,Ea);Ga=y.createElement(gn,{expanded:Ea,className:xe()("".concat(Xn,"-expanded-row"),"".concat(Xn,"-expanded-row-level-").concat(zn+1),La),prefixCls:Xn,component:Ln,cellComponent:Br,colSpan:Gn.length,isEmpty:!1},eo)}return y.createElement(y.Fragment,null,Qa,Ga)}var fn=St(Nt);function yn(Ze){var Re=Ze.columnKey,Ft=Ze.onColumnResize,$t=y.useRef();return(0,Ee.Z)(function(){$t.current&&Ft(Re,$t.current.offsetWidth)},[]),y.createElement(yt.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 lt=E(29194);function Rt(Ze){var Re=Ze.prefixCls,Ft=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(yt.Z.Collection,{onBatchResize:function(Mn){(0,lt.Z)(an.current)&&Mn.forEach(function(In){var zn=In.data,Ln=In.size;$t(zn,Ln.offsetWidth)})}},Ft.map(function(pn){return y.createElement(yn,{key:pn,columnKey:pn,onColumnResize:$t})})))}function en(Ze){var Re=Ze.data,Ft=Ze.measureColumnWidth,$t=fe(qe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),an=$t.prefixCls,pn=$t.getComponent,Mn=$t.onColumnResize,In=$t.flattenColumns,zn=$t.getRowKey,Ln=$t.expandedKeys,Br=$t.childrenColumnName,lr=$t.emptyNode,nr=Vt(Re,Br,Ln,zn),Xn=y.useRef({renderWithProps:!1}),Gn=pn(["body","wrapper"],"tbody"),ia=pn(["body","row"],"tr"),_r=pn(["body","cell"],"td"),da=pn(["body","cell"],"th"),Ea;Re.length?Ea=nr.map(function(Aa,La){var Qa=Aa.record,Ga=Aa.indent,eo=Aa.index,Si=zn(Qa,La);return y.createElement(fn,{key:Si,rowKey:Si,record:Qa,index:La,renderIndex:eo,rowComponent:ia,cellComponent:_r,scopeCellComponent:da,indent:Ga})}):Ea=y.createElement(gn,{expanded:!0,className:"".concat(an,"-placeholder"),prefixCls:an,component:ia,cellComponent:_r,colSpan:In.length,isEmpty:!0},lr);var Jr=vt(In);return y.createElement(it.Provider,{value:Xn.current},y.createElement(Gn,{className:"".concat(an,"-tbody")},Ft&&y.createElement(Rt,{prefixCls:an,columnsKey:Jr,onColumnResize:Mn}),Ea))}var Pt=St(en),Yt=["expandable"],Gt="RC_TABLE_INTERNAL_COL_DEFINE";function Sn(Ze){var Re=Ze.expandable,Ft=(0,se.Z)(Ze,Yt),$t;return"expandable"in Ze?$t=(0,$e.Z)((0,$e.Z)({},Ft),Re):$t=Ft,$t.showExpandColumn===!1&&($t.expandIconColumnIndex=-1),$t}var jn=["columnType"];function Dn(Ze){for(var Re=Ze.colWidths,Ft=Ze.columns,$t=Ze.columCount,an=fe(qe,["tableLayout"]),pn=an.tableLayout,Mn=[],In=$t||Ft.length,zn=!1,Ln=In-1;Ln>=0;Ln-=1){var Br=Re[Ln],lr=Ft&&Ft[Ln],nr=void 0,Xn=void 0;if(lr&&(nr=lr[Gt],pn==="auto"&&(Xn=lr.minWidth)),Br||Xn||nr||zn){var Gn=nr||{},ia=Gn.columnType,_r=(0,se.Z)(Gn,jn);Mn.unshift(y.createElement("col",(0,We.Z)({key:Ln,style:{width:Br,minWidth:Xn}},_r))),zn=!0}}return y.createElement("colgroup",null,Mn)}var Zn=Dn,Ot=E(77654),Wt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ln(Ze,Re){return(0,y.useMemo)(function(){for(var Ft=[],$t=0;$t<Re;$t+=1){var an=Ze[$t];if(an!==void 0)Ft[$t]=an;else return null}return Ft},[Ze.join("_"),Re])}var bn=y.forwardRef(function(Ze,Re){var Ft=Ze.className,$t=Ze.noData,an=Ze.columns,pn=Ze.flattenColumns,Mn=Ze.colWidths,In=Ze.columCount,zn=Ze.stickyOffsets,Ln=Ze.direction,Br=Ze.fixHeader,lr=Ze.stickyTopOffset,nr=Ze.stickyBottomOffset,Xn=Ze.stickyClassName,Gn=Ze.onScroll,ia=Ze.maxContentScroll,_r=Ze.children,da=(0,se.Z)(Ze,Wt),Ea=fe(qe,["prefixCls","scrollbarSize","isSticky","getComponent"]),Jr=Ea.prefixCls,Aa=Ea.scrollbarSize,La=Ea.isSticky,Qa=Ea.getComponent,Ga=Qa(["header","table"],"table"),eo=La&&!Br?0:Aa,Si=y.useRef(null),vi=y.useCallback(function(wi){(0,Te.mH)(Re,wi),(0,Te.mH)(Si,wi)},[]);y.useEffect(function(){var wi;function Ma(lo){var so=lo,pl=so.currentTarget,ul=so.deltaX;ul&&(Gn({currentTarget:pl,scrollLeft:pl.scrollLeft+ul}),lo.preventDefault())}return(wi=Si.current)===null||wi===void 0||wi.addEventListener("wheel",Ma,{passive:!1}),function(){var lo;(lo=Si.current)===null||lo===void 0||lo.removeEventListener("wheel",Ma)}},[]);var $i=y.useMemo(function(){return pn.every(function(wi){return wi.width})},[pn]),qa=pn[pn.length-1],ti={fixed:qa?qa.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Jr,"-cell-scrollbar")}}},Ra=(0,y.useMemo)(function(){return eo?[].concat((0,Ot.Z)(an),[ti]):an},[eo,an]),Ca=(0,y.useMemo)(function(){return eo?[].concat((0,Ot.Z)(pn),[ti]):pn},[eo,pn]),Ja=(0,y.useMemo)(function(){var wi=zn.right,Ma=zn.left;return(0,$e.Z)((0,$e.Z)({},zn),{},{left:Ln==="rtl"?[].concat((0,Ot.Z)(Ma.map(function(lo){return lo+eo})),[0]):Ma,right:Ln==="rtl"?wi:[].concat((0,Ot.Z)(wi.map(function(lo){return lo+eo})),[0]),isSticky:La})},[eo,zn,La]),ni=ln(Mn,In);return y.createElement("div",{style:(0,$e.Z)({overflow:"hidden"},La?{top:lr,bottom:nr}:{}),ref:vi,className:xe()(Ft,(0,pe.Z)({},Xn,!!Xn))},y.createElement(Ga,{style:{tableLayout:"fixed",visibility:$t||ni?null:"hidden"}},(!$t||!ia||$i)&&y.createElement(Zn,{colWidths:ni?[].concat((0,Ot.Z)(ni),[eo]):[],columCount:In+1,columns:Ca}),_r((0,$e.Z)((0,$e.Z)({},da),{},{stickyOffsets:Ja,columns:Ra,flattenColumns:Ca}))))}),tn=y.memo(bn),wn=function(Re){var Ft=Re.cells,$t=Re.stickyOffsets,an=Re.flattenColumns,pn=Re.rowComponent,Mn=Re.cellComponent,In=Re.onHeaderRow,zn=Re.index,Ln=fe(qe,["prefixCls","direction"]),Br=Ln.prefixCls,lr=Ln.direction,nr;In&&(nr=In(Ft.map(function(Gn){return Gn.column}),zn));var Xn=vt(Ft.map(function(Gn){return Gn.column}));return y.createElement(pn,nr,Ft.map(function(Gn,ia){var _r=Gn.column,da=zt(Gn.colStart,Gn.colEnd,an,$t,lr),Ea;return _r&&_r.onHeaderCell&&(Ea=Gn.column.onHeaderCell(_r)),y.createElement(un,(0,We.Z)({},Gn,{scope:_r.title?Gn.colSpan>1?"colgroup":"col":null,ellipsis:_r.ellipsis,align:_r.align,component:Mn,prefixCls:Br,key:Xn[ia]},da,{additionalProps:Ea,rowType:"header"}))}))},Cn=wn;function Pn(Ze){var Re=[];function Ft(Mn,In){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Re[zn]=Re[zn]||[];var Ln=In,Br=Mn.filter(Boolean).map(function(lr){var nr={key:lr.key,className:lr.className||"",children:lr.title,column:lr,colStart:Ln},Xn=1,Gn=lr.children;return Gn&&Gn.length>0&&(Xn=Ft(Gn,Ln,zn+1).reduce(function(ia,_r){return ia+_r},0),nr.hasSubColumns=!0),"colSpan"in lr&&(Xn=lr.colSpan),"rowSpan"in lr&&(nr.rowSpan=lr.rowSpan),nr.colSpan=Xn,nr.colEnd=nr.colStart+Xn-1,Re[zn].push(nr),Ln+=Xn,Xn});return Br}Ft(Ze,0);for(var $t=Re.length,an=function(In){Re[In].forEach(function(zn){!("rowSpan"in zn)&&!zn.hasSubColumns&&(zn.rowSpan=$t-In)})},pn=0;pn<$t;pn+=1)an(pn);return Re}var vr=function(Re){var Ft=Re.stickyOffsets,$t=Re.columns,an=Re.flattenColumns,pn=Re.onHeaderRow,Mn=fe(qe,["prefixCls","getComponent"]),In=Mn.prefixCls,zn=Mn.getComponent,Ln=y.useMemo(function(){return Pn($t)},[$t]),Br=zn(["header","wrapper"],"thead"),lr=zn(["header","row"],"tr"),nr=zn(["header","cell"],"th");return y.createElement(Br,{className:"".concat(In,"-thead")},Ln.map(function(Xn,Gn){var ia=y.createElement(Cn,{key:Gn,flattenColumns:an,cells:Xn,stickyOffsets:Ft,rowComponent:lr,cellComponent:nr,onHeaderRow:pn,index:Gn});return ia}))},Qn=St(vr),dr=E(11592);function br(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 yr(Ze,Re,Ft){return y.useMemo(function(){if(Re&&Re>0){var $t=0,an=0;Ze.forEach(function(nr){var Xn=br(Re,nr.width);Xn?$t+=Xn:an+=1});var pn=Math.max(Re,Ft),Mn=Math.max(pn-$t,an),In=an,zn=Mn/an,Ln=0,Br=Ze.map(function(nr){var Xn=(0,$e.Z)({},nr),Gn=br(Re,Xn.width);if(Gn)Xn.width=Gn;else{var ia=Math.floor(zn);Xn.width=In===1?Mn:ia,Mn-=ia,In-=1}return Ln+=Xn.width,Xn});if(Ln<pn){var lr=pn/Ln;Mn=pn,Br.forEach(function(nr,Xn){var Gn=Math.floor(nr.width*lr);nr.width=Xn===Br.length-1?Mn:Gn,Mn-=Gn})}return[Br,Math.max(Ln,pn)]}return[Ze,Re]},[Ze,Re,Ft])}var Vr=["children"],Zr=["fixed"];function An(Ze){return(0,dr.Z)(Ze).filter(function(Re){return y.isValidElement(Re)}).map(function(Re){var Ft=Re.key,$t=Re.props,an=$t.children,pn=(0,se.Z)($t,Vr),Mn=(0,$e.Z)({key:Ft},pn);return an&&(Mn.children=An(an)),Mn})}function $n(Ze){return Ze.filter(function(Re){return Re&&(0,st.Z)(Re)==="object"&&!Re.hidden}).map(function(Re){var Ft=Re.children;return Ft&&Ft.length>0?(0,$e.Z)((0,$e.Z)({},Re),{},{children:$n(Ft)}):Re})}function fr(Ze){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ze.filter(function(Ft){return Ft&&(0,st.Z)(Ft)==="object"}).reduce(function(Ft,$t,an){var pn=$t.fixed,Mn=pn===!0?"left":pn,In="".concat(Re,"-").concat(an),zn=$t.children;return zn&&zn.length>0?[].concat((0,Ot.Z)(Ft),(0,Ot.Z)(fr(zn,In).map(function(Ln){return(0,$e.Z)({fixed:Mn},Ln)}))):[].concat((0,Ot.Z)(Ft),[(0,$e.Z)((0,$e.Z)({key:In},$t),{},{fixed:Mn})])},[])}function ur(Ze){return Ze.map(function(Re){var Ft=Re.fixed,$t=(0,se.Z)(Re,Zr),an=Ft;return Ft==="left"?an="right":Ft==="right"&&(an="left"),(0,$e.Z)({fixed:an},$t)})}function kt(Ze,Re){var Ft=Ze.prefixCls,$t=Ze.columns,an=Ze.children,pn=Ze.expandable,Mn=Ze.expandedKeys,In=Ze.columnTitle,zn=Ze.getRowKey,Ln=Ze.onTriggerExpand,Br=Ze.expandIcon,lr=Ze.rowExpandable,nr=Ze.expandIconColumnIndex,Xn=Ze.direction,Gn=Ze.expandRowByClick,ia=Ze.columnWidth,_r=Ze.fixed,da=Ze.scrollWidth,Ea=Ze.clientWidth,Jr=y.useMemo(function(){var qa=$t||An(an)||[];return $n(qa.slice())},[$t,an]),Aa=y.useMemo(function(){if(pn){var qa=Jr.slice();if(!qa.includes(ge)){var ti=nr||0;ti>=0&&(ti||_r==="left"||!_r)&&qa.splice(ti,0,ge),_r==="right"&&qa.splice(Jr.length,0,ge)}var Ra=qa.indexOf(ge);qa=qa.filter(function(wi,Ma){return wi!==ge||Ma===Ra});var Ca=Jr[Ra],Ja;_r?Ja=_r:Ja=Ca?Ca.fixed:null;var ni=(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},Gt,{className:"".concat(Ft,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",In),"fixed",Ja),"className","".concat(Ft,"-row-expand-icon-cell")),"width",ia),"render",function(Ma,lo,so){var pl=zn(lo,so),ul=Mn.has(pl),el=lr?lr(lo):!0,ol=Br({prefixCls:Ft,expanded:ul,expandable:el,record:lo,onExpand:Ln});return Gn?y.createElement("span",{onClick:function(mo){return mo.stopPropagation()}},ol):ol});return qa.map(function(wi){return wi===ge?ni:wi})}return Jr.filter(function(wi){return wi!==ge})},[pn,Jr,zn,Mn,Br,Xn]),La=y.useMemo(function(){var qa=Aa;return Re&&(qa=Re(qa)),qa.length||(qa=[{render:function(){return null}}]),qa},[Re,Aa,Xn]),Qa=y.useMemo(function(){return Xn==="rtl"?ur(fr(La)):fr(La)},[La,Xn,da]),Ga=y.useMemo(function(){for(var qa=-1,ti=Qa.length-1;ti>=0;ti-=1){var Ra=Qa[ti].fixed;if(Ra==="left"||Ra===!0){qa=ti;break}}if(qa>=0)for(var Ca=0;Ca<=qa;Ca+=1){var Ja=Qa[Ca].fixed;if(Ja!=="left"&&Ja!==!0)return!0}var ni=Qa.findIndex(function(lo){var so=lo.fixed;return so==="right"});if(ni>=0)for(var wi=ni;wi<Qa.length;wi+=1){var Ma=Qa[wi].fixed;if(Ma!=="right")return!0}return!1},[Qa]),eo=yr(Qa,da,Ea),Si=(0,_e.Z)(eo,2),vi=Si[0],$i=Si[1];return[La,vi,$i,Ga]}var Ut=kt;function pt(Ze,Re,Ft){var $t=Sn(Ze),an=$t.expandIcon,pn=$t.expandedRowKeys,Mn=$t.defaultExpandedRowKeys,In=$t.defaultExpandAllRows,zn=$t.expandedRowRender,Ln=$t.onExpand,Br=$t.onExpandedRowsChange,lr=$t.childrenColumnName,nr=an||Lt,Xn=lr||"children",Gn=y.useMemo(function(){return zn?"row":Ze.expandable&&Ze.internalHooks===ce&&Ze.expandable.__PARENT_RENDER_ICON__||Re.some(function(La){return La&&(0,st.Z)(La)==="object"&&La[Xn]})?"nest":!1},[!!zn,Re]),ia=y.useState(function(){return Mn||(In?Qt(Re,Ft,Xn):[])}),_r=(0,_e.Z)(ia,2),da=_r[0],Ea=_r[1],Jr=y.useMemo(function(){return new Set(pn||da||[])},[pn,da]),Aa=y.useCallback(function(La){var Qa=Ft(La,Re.indexOf(La)),Ga,eo=Jr.has(Qa);eo?(Jr.delete(Qa),Ga=(0,Ot.Z)(Jr)):Ga=[].concat((0,Ot.Z)(Jr),[Qa]),Ea(Ga),Ln&&Ln(!eo,La),Br&&Br(Ga)},[Ft,Jr,Re,Ln,Br]);return[$t,Gn,Jr,nr,Xn,Aa]}function Zt(Ze,Re,Ft){var $t=Ze.map(function(an,pn){return zt(pn,pn,Ze,Re,Ft)});return(0,de.Z)(function(){return $t},[$t],function(an,pn){return!(0,Ce.Z)(an,pn)})}function at(Ze){var Re=(0,y.useRef)(Ze),Ft=(0,y.useState)({}),$t=(0,_e.Z)(Ft,2),an=$t[1],pn=(0,y.useRef)(null),Mn=(0,y.useRef)([]);function In(zn){Mn.current.push(zn);var Ln=Promise.resolve();pn.current=Ln,Ln.then(function(){if(pn.current===Ln){var Br=Mn.current,lr=Re.current;Mn.current=[],Br.forEach(function(nr){Re.current=nr(Re.current)}),pn.current=null,lr!==Re.current&&an({})}})}return(0,y.useEffect)(function(){return function(){pn.current=null}},[]),[Re.current,In]}function gt(Ze){var Re=(0,y.useRef)(Ze||null),Ft=(0,y.useRef)();function $t(){window.clearTimeout(Ft.current)}function an(Mn){Re.current=Mn,$t(),Ft.current=window.setTimeout(function(){Re.current=null,Ft.current=void 0},100)}function pn(){return Re.current}return(0,y.useEffect)(function(){return $t},[]),[an,pn]}function cn(){var Ze=y.useState(-1),Re=(0,_e.Z)(Ze,2),Ft=Re[0],$t=Re[1],an=y.useState(-1),pn=(0,_e.Z)(an,2),Mn=pn[0],In=pn[1],zn=y.useCallback(function(Ln,Br){$t(Ln),In(Br)},[]);return[Ft,Mn,zn]}var ar=E(47273),mr=(0,ar.Z)()?window:null;function At(Ze,Re){var Ft=(0,st.Z)(Ze)==="object"?Ze:{},$t=Ft.offsetHeader,an=$t===void 0?0:$t,pn=Ft.offsetSummary,Mn=pn===void 0?0:pn,In=Ft.offsetScroll,zn=In===void 0?0:In,Ln=Ft.getContainer,Br=Ln===void 0?function(){return mr}:Ln,lr=Br()||mr,nr=!!Ze;return y.useMemo(function(){return{isSticky:nr,stickyClassName:nr?"".concat(Re,"-sticky-holder"):"",offsetHeader:an,offsetSummary:Mn,offsetScroll:zn,container:lr}},[nr,zn,an,Mn,Re,lr])}function Tt(Ze,Re,Ft){var $t=(0,y.useMemo)(function(){var an=Re.length,pn=function(Ln,Br,lr){for(var nr=[],Xn=0,Gn=Ln;Gn!==Br;Gn+=lr)nr.push(Xn),Re[Gn].fixed&&(Xn+=Ze[Gn]||0);return nr},Mn=pn(0,an,1),In=pn(an-1,-1,-1).reverse();return Ft==="rtl"?{left:In,right:Mn}:{left:Mn,right:In}},[Ze,Re,Ft]);return $t}var Mt=Tt;function Kt(Ze){var Re=Ze.className,Ft=Ze.children;return y.createElement("div",{className:Re},Ft)}var On=Kt,Kn=E(8224),Un=E(16089),Hn=E(76846);function hr(Ze){var Re=(0,Hn.bn)(Ze),Ft=Re.getBoundingClientRect(),$t=document.documentElement;return{left:Ft.left+(window.pageXOffset||$t.scrollLeft)-($t.clientLeft||document.body.clientLeft||0),top:Ft.top+(window.pageYOffset||$t.scrollTop)-($t.clientTop||document.body.clientTop||0)}}var Pr=function(Re,Ft){var $t,an,pn=Re.scrollBodyRef,Mn=Re.onScroll,In=Re.offsetScroll,zn=Re.container,Ln=Re.direction,Br=fe(qe,"prefixCls"),lr=(($t=pn.current)===null||$t===void 0?void 0:$t.scrollWidth)||0,nr=((an=pn.current)===null||an===void 0?void 0:an.clientWidth)||0,Xn=lr&&nr*(nr/lr),Gn=y.useRef(),ia=at({scrollLeft:0,isHiddenScrollBar:!0}),_r=(0,_e.Z)(ia,2),da=_r[0],Ea=_r[1],Jr=y.useRef({delta:0,x:0}),Aa=y.useState(!1),La=(0,_e.Z)(Aa,2),Qa=La[0],Ga=La[1],eo=y.useRef(null);y.useEffect(function(){return function(){Un.Z.cancel(eo.current)}},[]);var Si=function(){Ga(!1)},vi=function(Ca){Ca.persist(),Jr.current.delta=Ca.pageX-da.scrollLeft,Jr.current.x=0,Ga(!0),Ca.preventDefault()},$i=function(Ca){var Ja,ni=Ca||((Ja=window)===null||Ja===void 0?void 0:Ja.event),wi=ni.buttons;if(!Qa||wi===0){Qa&&Ga(!1);return}var Ma=Jr.current.x+Ca.pageX-Jr.current.x-Jr.current.delta,lo=Ln==="rtl";Ma=Math.max(lo?Xn-nr:0,Math.min(lo?0:nr-Xn,Ma));var so=!lo||Math.abs(Ma)+Math.abs(Xn)<nr;so&&(Mn({scrollLeft:Ma/nr*(lr+2)}),Jr.current.x=Ca.pageX)},qa=function(){Un.Z.cancel(eo.current),eo.current=(0,Un.Z)(function(){if(pn.current){var Ca=hr(pn.current).top,Ja=Ca+pn.current.offsetHeight,ni=zn===window?document.documentElement.scrollTop+window.innerHeight:hr(zn).top+zn.clientHeight;Ja-(0,_t.Z)()<=ni||Ca>=ni-In?Ea(function(wi){return(0,$e.Z)((0,$e.Z)({},wi),{},{isHiddenScrollBar:!0})}):Ea(function(wi){return(0,$e.Z)((0,$e.Z)({},wi),{},{isHiddenScrollBar:!1})})}})},ti=function(Ca){Ea(function(Ja){return(0,$e.Z)((0,$e.Z)({},Ja),{},{scrollLeft:Ca/lr*nr||0})})};return y.useImperativeHandle(Ft,function(){return{setScrollLeft:ti,checkScrollBarVisible:qa}}),y.useEffect(function(){var Ra=(0,Kn.Z)(document.body,"mouseup",Si,!1),Ca=(0,Kn.Z)(document.body,"mousemove",$i,!1);return qa(),function(){Ra.remove(),Ca.remove()}},[Xn,Qa]),y.useEffect(function(){if(pn.current){for(var Ra=[],Ca=(0,Hn.bn)(pn.current);Ca;)Ra.push(Ca),Ca=Ca.parentElement;return Ra.forEach(function(Ja){return Ja.addEventListener("scroll",qa,!1)}),window.addEventListener("resize",qa,!1),window.addEventListener("scroll",qa,!1),zn.addEventListener("scroll",qa,!1),function(){Ra.forEach(function(Ja){return Ja.removeEventListener("scroll",qa)}),window.removeEventListener("resize",qa),window.removeEventListener("scroll",qa),zn.removeEventListener("scroll",qa)}}},[zn]),y.useEffect(function(){da.isHiddenScrollBar||Ea(function(Ra){var Ca=pn.current;return Ca?(0,$e.Z)((0,$e.Z)({},Ra),{},{scrollLeft:Ca.scrollLeft/Ca.scrollWidth*Ca.clientWidth}):Ra})},[da.isHiddenScrollBar]),lr<=nr||!Xn||da.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,_t.Z)(),width:nr,bottom:In},className:"".concat(Br,"-sticky-scroll")},y.createElement("div",{onMouseDown:vi,ref:Gn,className:xe()("".concat(Br,"-sticky-scroll-bar"),(0,pe.Z)({},"".concat(Br,"-sticky-scroll-bar-active"),Qa)),style:{width:"".concat(Xn,"px"),transform:"translate3d(".concat(da.scrollLeft,"px, 0, 0)")}}))},Tr=y.forwardRef(Pr);function Lr(Ze){return null}var Cr=Lr;function Rr(Ze){return null}var Xr=Rr,oa="rc-table",ta=[],xa={};function Fa(){return"No Data"}function Ur(Ze,Re){var Ft=(0,$e.Z)({rowKey:"key",prefixCls:oa,emptyText:Fa},Ze),$t=Ft.prefixCls,an=Ft.className,pn=Ft.rowClassName,Mn=Ft.style,In=Ft.data,zn=Ft.rowKey,Ln=Ft.scroll,Br=Ft.tableLayout,lr=Ft.direction,nr=Ft.title,Xn=Ft.footer,Gn=Ft.summary,ia=Ft.caption,_r=Ft.id,da=Ft.showHeader,Ea=Ft.components,Jr=Ft.emptyText,Aa=Ft.onRow,La=Ft.onHeaderRow,Qa=Ft.onScroll,Ga=Ft.internalHooks,eo=Ft.transformColumns,Si=Ft.internalRefs,vi=Ft.tailor,$i=Ft.getContainerWidth,qa=Ft.sticky,ti=Ft.rowHoverable,Ra=ti===void 0?!0:ti,Ca=In||ta,Ja=!!Ca.length,ni=Ga===ce,wi=y.useCallback(function(Fo,Mo){return(0,Ct.Z)(Ea,Fo)||Mo},[Ea]),Ma=y.useMemo(function(){return typeof zn=="function"?zn:function(Fo){var Mo=Fo&&Fo[zn];return Mo}},[zn]),lo=wi(["body"]),so=cn(),pl=(0,_e.Z)(so,3),ul=pl[0],el=pl[1],ol=pl[2],El=pt(Ft,Ca,Ma),mo=(0,_e.Z)(El,6),yo=mo[0],ll=mo[1],cl=mo[2],fi=mo[3],qi=mo[4],li=mo[5],Ua=Ln==null?void 0:Ln.x,po=y.useState(0),To=(0,_e.Z)(po,2),sl=To[0],Co=To[1],hl=Ut((0,$e.Z)((0,$e.Z)((0,$e.Z)({},Ft),yo),{},{expandable:!!yo.expandedRowRender,columnTitle:yo.columnTitle,expandedKeys:cl,getRowKey:Ma,onTriggerExpand:li,expandIcon:fi,expandIconColumnIndex:yo.expandIconColumnIndex,direction:lr,scrollWidth:ni&&vi&&typeof Ua=="number"?Ua:null,clientWidth:sl}),ni?eo:null),Bl=(0,_e.Z)(hl,4),Bi=Bl[0],Ri=Bl[1],Do=Bl[2],zo=Bl[3],jo=Do!=null?Do:Ua,Ml=y.useMemo(function(){return{columns:Bi,flattenColumns:Ri}},[Bi,Ri]),Cl=y.useRef(),Yl=y.useRef(),Go=y.useRef(),Ao=y.useRef();y.useImperativeHandle(Re,function(){return{nativeElement:Cl.current,scrollTo:function(Mo){var Ql;if(Go.current instanceof HTMLElement){var ds=Mo.index,Jl=Mo.top,_s=Mo.key;if(Et(Jl)){var Ks;(Ks=Go.current)===null||Ks===void 0||Ks.scrollTo({top:Jl})}else{var Ts,iu=_s!=null?_s:Ma(Ca[ds]);(Ts=Go.current.querySelector('[data-row-key="'.concat(iu,'"]')))===null||Ts===void 0||Ts.scrollIntoView()}}else(Ql=Go.current)!==null&&Ql!==void 0&&Ql.scrollTo&&Go.current.scrollTo(Mo)}}});var Xo=y.useRef(),tl=y.useState(!1),Dl=(0,_e.Z)(tl,2),vl=Dl[0],Oo=Dl[1],nl=y.useState(!1),Lo=(0,_e.Z)(nl,2),Kl=Lo[0],gl=Lo[1],ts=y.useState(new Map),os=(0,_e.Z)(ts,2),Bs=os[0],rl=os[1],fu=vt(Ri),ls=fu.map(function(Fo){return Bs.get(Fo)}),bs=y.useMemo(function(){return ls},[ls.join("_")]),Es=Mt(bs,Ri,lr),Wl=Ln&&Ht(Ln.y),al=Ln&&Ht(jo)||!!yo.fixed,ss=al&&Ri.some(function(Fo){var Mo=Fo.fixed;return Mo}),Hs=y.useRef(),Os=At(qa,$t),Ns=Os.isSticky,nu=Os.offsetHeader,mu=Os.offsetSummary,Su=Os.offsetScroll,wu=Os.stickyClassName,Zu=Os.container,io=y.useMemo(function(){return Gn==null?void 0:Gn(Ca)},[Gn,Ca]),wo=(Wl||Ns)&&y.isValidElement(io)&&io.type===He&&io.props.fixed,fl,xl,zl;Wl&&(xl={overflowY:Ja?"scroll":"auto",maxHeight:Ln.y}),al&&(fl={overflowX:"auto"},Wl||(xl={overflowY:"hidden"}),zl={width:jo===!0?"auto":jo,minWidth:"100%"});var Sl=y.useCallback(function(Fo,Mo){rl(function(Ql){if(Ql.get(Fo)!==Mo){var ds=new Map(Ql);return ds.set(Fo,Mo),ds}return Ql})},[]),Ds=gt(null),Gl=(0,_e.Z)(Ds,2),ks=Gl[0],Bu=Gl[1];function ru(Fo,Mo){Mo&&(typeof Mo=="function"?Mo(Fo):Mo.scrollLeft!==Fo&&(Mo.scrollLeft=Fo,Mo.scrollLeft!==Fo&&setTimeout(function(){Mo.scrollLeft=Fo},0)))}var Ys=(0,Se.Z)(function(Fo){var Mo=Fo.currentTarget,Ql=Fo.scrollLeft,ds=lr==="rtl",Jl=typeof Ql=="number"?Ql:Mo.scrollLeft,_s=Mo||xa;if(!Bu()||Bu()===_s){var Ks;ks(_s),ru(Jl,Yl.current),ru(Jl,Go.current),ru(Jl,Xo.current),ru(Jl,(Ks=Hs.current)===null||Ks===void 0?void 0:Ks.setScrollLeft)}var Ts=Mo||Yl.current;if(Ts){var iu=ni&&vi&&typeof jo=="number"?jo:Ts.scrollWidth,Yu=Ts.clientWidth;if(iu===Yu){Oo(!1),gl(!1);return}ds?(Oo(-Jl<iu-Yu),gl(-Jl>0)):(Oo(Jl>0),gl(Jl<iu-Yu))}}),pu=(0,Se.Z)(function(Fo){Ys(Fo),Qa==null||Qa(Fo)}),Qs=function(){if(al&&Go.current){var Mo;Ys({currentTarget:(0,Hn.bn)(Go.current),scrollLeft:(Mo=Go.current)===null||Mo===void 0?void 0:Mo.scrollLeft})}else Oo(!1),gl(!1)},$u=function(Mo){var Ql,ds=Mo.width;(Ql=Hs.current)===null||Ql===void 0||Ql.checkScrollBarVisible();var Jl=Cl.current?Cl.current.offsetWidth:ds;ni&&$i&&Cl.current&&(Jl=$i(Cl.current,Jl)||Jl),Jl!==sl&&(Qs(),Co(Jl))},Ls=y.useRef(!1);y.useEffect(function(){Ls.current&&Qs()},[al,In,Bi.length]),y.useEffect(function(){Ls.current=!0},[]);var ju=y.useState(0),tc=(0,_e.Z)(ju,2),Vs=tc[0],Wu=tc[1],zu=y.useState(!0),Hu=(0,_e.Z)(zu,2),hu=Hu[0],sc=Hu[1];(0,Ee.Z)(function(){(!vi||!ni)&&(Go.current instanceof Element?Wu((0,_t.o)(Go.current).width):Wu((0,_t.o)(Ao.current).width)),sc((0,Bt.G)("position","sticky"))},[]),y.useEffect(function(){ni&&Si&&(Si.body.current=Go.current)});var uc=y.useCallback(function(Fo){return y.createElement(y.Fragment,null,y.createElement(Qn,Fo),wo==="top"&&y.createElement(Xe,Fo,io))},[wo,io]),vu=y.useCallback(function(Fo){return y.createElement(Xe,Fo,io)},[io]),Vu=wi(["table"],"table"),gu=y.useMemo(function(){return Br||(ss?jo==="max-content"?"auto":"fixed":Wl||Ns||Ri.some(function(Fo){var Mo=Fo.ellipsis;return Mo})?"fixed":"auto")},[Wl,ss,Ri,Br,Ns]),Du,yu={colWidths:bs,columCount:Ri.length,stickyOffsets:Es,onHeaderRow:La,fixHeader:Wl,scroll:Ln},Ku=y.useMemo(function(){return Ja?null:typeof Jr=="function"?Jr():Jr},[Ja,Jr]),nc=y.createElement(Pt,{data:Ca,measureColumnWidth:Wl||al||Ns}),Gu=y.createElement(Zn,{colWidths:Ri.map(function(Fo){var Mo=Fo.width;return Mo}),columns:Ri}),Fu=ia!=null?y.createElement("caption",{className:"".concat($t,"-caption")},ia):void 0,cc=(0,Qe.Z)(Ft,{data:!0}),Iu=(0,Qe.Z)(Ft,{aria:!0});if(Wl||Ns){var Js;typeof lo=="function"?(Js=lo(Ca,{scrollbarSize:Vs,ref:Go,onScroll:Ys}),yu.colWidths=Ri.map(function(Fo,Mo){var Ql=Fo.width,ds=Mo===Ri.length-1?Ql-Vs:Ql;return typeof ds=="number"&&!Number.isNaN(ds)?ds:0})):Js=y.createElement("div",{style:(0,$e.Z)((0,$e.Z)({},fl),xl),onScroll:pu,ref:Go,className:xe()("".concat($t,"-body"))},y.createElement(Vu,(0,We.Z)({style:(0,$e.Z)((0,$e.Z)({},zl),{},{tableLayout:gu})},Iu),Fu,Gu,nc,!wo&&io&&y.createElement(Xe,{stickyOffsets:Es,flattenColumns:Ri},io)));var au=(0,$e.Z)((0,$e.Z)((0,$e.Z)({noData:!Ca.length,maxContentScroll:al&&jo==="max-content"},yu),Ml),{},{direction:lr,stickyClassName:wu,onScroll:Ys});Du=y.createElement(y.Fragment,null,da!==!1&&y.createElement(tn,(0,We.Z)({},au,{stickyTopOffset:nu,className:"".concat($t,"-header"),ref:Yl}),uc),Js,wo&&wo!=="top"&&y.createElement(tn,(0,We.Z)({},au,{stickyBottomOffset:mu,className:"".concat($t,"-summary"),ref:Xo}),vu),Ns&&Go.current&&Go.current instanceof Element&&y.createElement(Tr,{ref:Hs,offsetScroll:Su,scrollBodyRef:Go,onScroll:Ys,container:Zu,direction:lr}))}else Du=y.createElement("div",{style:(0,$e.Z)((0,$e.Z)({},fl),xl),className:xe()("".concat($t,"-content")),onScroll:Ys,ref:Go},y.createElement(Vu,(0,We.Z)({style:(0,$e.Z)((0,$e.Z)({},zl),{},{tableLayout:gu})},Iu),Fu,Gu,da!==!1&&y.createElement(Qn,(0,We.Z)({},yu,Ml)),nc,io&&y.createElement(Xe,{stickyOffsets:Es,flattenColumns:Ri},io)));var Uu=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"),vl),"".concat($t,"-ping-right"),Kl),"".concat($t,"-layout-fixed"),Br==="fixed"),"".concat($t,"-fixed-header"),Wl),"".concat($t,"-fixed-column"),ss),"".concat($t,"-fixed-column-gapped"),ss&&zo),"".concat($t,"-scroll-horizontal"),al),"".concat($t,"-has-fix-left"),Ri[0]&&Ri[0].fixed),"".concat($t,"-has-fix-right"),Ri[Ri.length-1]&&Ri[Ri.length-1].fixed==="right")),style:Mn,id:_r,ref:Cl},cc),nr&&y.createElement(On,{className:"".concat($t,"-title")},nr(Ca)),y.createElement("div",{ref:Ao,className:"".concat($t,"-container")},Du),Xn&&y.createElement(On,{className:"".concat($t,"-footer")},Xn(Ca)));al&&(Uu=y.createElement(yt.Z,{onResize:$u},Uu));var Xu=Zt(Ri,Es,lr),Pu=y.useMemo(function(){return{scrollX:jo,prefixCls:$t,getComponent:wi,scrollbarSize:Vs,direction:lr,fixedInfoList:Xu,isSticky:Ns,supportSticky:hu,componentWidth:sl,fixHeader:Wl,fixColumn:ss,horizonScroll:al,tableLayout:gu,rowClassName:pn,expandedRowClassName:yo.expandedRowClassName,expandIcon:fi,expandableType:ll,expandRowByClick:yo.expandRowByClick,expandedRowRender:yo.expandedRowRender,onTriggerExpand:li,expandIconColumnIndex:yo.expandIconColumnIndex,indentSize:yo.indentSize,allColumnsFixedLeft:Ri.every(function(Fo){return Fo.fixed==="left"}),emptyNode:Ku,columns:Bi,flattenColumns:Ri,onColumnResize:Sl,hoverStartRow:ul,hoverEndRow:el,onHover:ol,rowExpandable:yo.rowExpandable,onRow:Aa,getRowKey:Ma,expandedKeys:cl,childrenColumnName:qi,rowHoverable:Ra}},[jo,$t,wi,Vs,lr,Xu,Ns,hu,sl,Wl,ss,al,gu,pn,yo.expandedRowClassName,fi,ll,yo.expandRowByClick,yo.expandedRowRender,li,yo.expandIconColumnIndex,yo.indentSize,Ku,Bi,Ri,Sl,ul,el,ol,yo.rowExpandable,Aa,Ma,cl,qi,Ra]);return y.createElement(qe.Provider,{value:Pu},Uu)}var ya=y.forwardRef(Ur);function Xa(Ze){return et(ya,Ze)}var Ia=Xa();Ia.EXPAND_COLUMN=ge,Ia.INTERNAL_HOOKS=ce,Ia.Column=Cr,Ia.ColumnGroup=Xr,Ia.Summary=Ke;var pa=Ia,kr=E(48911),Za=De(null),Sa=De(null);function la(Ze,Re,Ft){var $t=Re||1;return Ft[Ze+$t]-(Ft[Ze]||0)}function Kr(Ze){var Re=Ze.rowInfo,Ft=Ze.column,$t=Ze.colIndex,an=Ze.indent,pn=Ze.index,Mn=Ze.component,In=Ze.renderIndex,zn=Ze.record,Ln=Ze.style,Br=Ze.className,lr=Ze.inverse,nr=Ze.getHeight,Xn=Ft.render,Gn=Ft.dataIndex,ia=Ft.className,_r=Ft.width,da=fe(Sa,["columnsOffset"]),Ea=da.columnsOffset,Jr=rt(Re,Ft,$t,an,pn),Aa=Jr.key,La=Jr.fixedInfo,Qa=Jr.appendCellNode,Ga=Jr.additionalCellProps,eo=Ga.style,Si=Ga.colSpan,vi=Si===void 0?1:Si,$i=Ga.rowSpan,qa=$i===void 0?1:$i,ti=$t-1,Ra=la(ti,vi,Ea),Ca=vi>1?_r-Ra:0,Ja=(0,$e.Z)((0,$e.Z)((0,$e.Z)({},eo),Ln),{},{flex:"0 0 ".concat(Ra,"px"),width:"".concat(Ra,"px"),marginRight:Ca,pointerEvents:"auto"}),ni=y.useMemo(function(){return lr?qa<=1:vi===0||qa===0||qa>1},[qa,vi,lr]);ni?Ja.visibility="hidden":lr&&(Ja.height=nr==null?void 0:nr(qa));var wi=ni?function(){return null}:Xn,Ma={};return(qa===0||vi===0)&&(Ma.rowSpan=1,Ma.colSpan=1),y.createElement(un,(0,We.Z)({className:xe()(ia,Br),ellipsis:Ft.ellipsis,align:Ft.align,scope:Ft.rowScope,component:Mn,prefixCls:Re.prefixCls,key:Aa,record:zn,index:pn,renderIndex:In,dataIndex:Gn,render:wi,shouldCellUpdate:Ft.shouldCellUpdate},La,{appendNode:Qa,additionalProps:(0,$e.Z)((0,$e.Z)({},Ga),{},{style:Ja},Ma)}))}var Ya=Kr,Mi=["data","index","className","rowKey","style","extra","getHeight"],ji=y.forwardRef(function(Ze,Re){var Ft=Ze.data,$t=Ze.index,an=Ze.className,pn=Ze.rowKey,Mn=Ze.style,In=Ze.extra,zn=Ze.getHeight,Ln=(0,se.Z)(Ze,Mi),Br=Ft.record,lr=Ft.indent,nr=Ft.index,Xn=fe(qe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Gn=Xn.scrollX,ia=Xn.flattenColumns,_r=Xn.prefixCls,da=Xn.fixColumn,Ea=Xn.componentWidth,Jr=fe(Za,["getComponent"]),Aa=Jr.getComponent,La=on(Br,pn,$t,lr),Qa=Aa(["body","row"],"div"),Ga=Aa(["body","cell"],"div"),eo=La.rowSupportExpand,Si=La.expanded,vi=La.rowProps,$i=La.expandedRowRender,qa=La.expandedRowClassName,ti;if(eo&&Si){var Ra=$i(Br,$t,lr+1,Si),Ca=jt(qa,Br,$t,lr),Ja={};da&&(Ja={style:(0,pe.Z)({},"--virtual-width","".concat(Ea,"px"))});var ni="".concat(_r,"-expanded-row-cell");ti=y.createElement(Qa,{className:xe()("".concat(_r,"-expanded-row"),"".concat(_r,"-expanded-row-level-").concat(lr+1),Ca)},y.createElement(un,{component:Ga,prefixCls:_r,className:xe()(ni,(0,pe.Z)({},"".concat(ni,"-fixed"),da)),additionalProps:Ja},Ra))}var wi=(0,$e.Z)((0,$e.Z)({},Mn),{},{width:Gn});In&&(wi.position="absolute",wi.pointerEvents="none");var Ma=y.createElement(Qa,(0,We.Z)({},vi,Ln,{"data-row-key":pn,ref:eo?null:Re,className:xe()(an,"".concat(_r,"-row"),vi==null?void 0:vi.className,(0,pe.Z)({},"".concat(_r,"-row-extra"),In)),style:(0,$e.Z)((0,$e.Z)({},wi),vi==null?void 0:vi.style)}),ia.map(function(lo,so){return y.createElement(Ya,{key:so,component:Ga,rowInfo:La,column:lo,colIndex:so,indent:lr,index:$t,renderIndex:nr,record:Br,inverse:In,getHeight:zn})}));return eo?y.createElement("div",{ref:Re},Ma,ti):Ma}),za=St(ji),Di=za,mi=y.forwardRef(function(Ze,Re){var Ft=Ze.data,$t=Ze.onScroll,an=fe(qe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),pn=an.flattenColumns,Mn=an.onColumnResize,In=an.getRowKey,zn=an.expandedKeys,Ln=an.prefixCls,Br=an.childrenColumnName,lr=an.scrollX,nr=an.direction,Xn=fe(Za),Gn=Xn.sticky,ia=Xn.scrollY,_r=Xn.listItemHeight,da=Xn.getComponent,Ea=Xn.onScroll,Jr=y.useRef(),Aa=Vt(Ft,Br,zn,In),La=y.useMemo(function(){var ti=0;return pn.map(function(Ra){var Ca=Ra.width,Ja=Ra.key;return ti+=Ca,[Ja,Ca,ti]})},[pn]),Qa=y.useMemo(function(){return La.map(function(ti){return ti[2]})},[La]);y.useEffect(function(){La.forEach(function(ti){var Ra=(0,_e.Z)(ti,2),Ca=Ra[0],Ja=Ra[1];Mn(Ca,Ja)})},[La]),y.useImperativeHandle(Re,function(){var ti,Ra={scrollTo:function(Ja){var ni;(ni=Jr.current)===null||ni===void 0||ni.scrollTo(Ja)},nativeElement:(ti=Jr.current)===null||ti===void 0?void 0:ti.nativeElement};return Object.defineProperty(Ra,"scrollLeft",{get:function(){var Ja;return((Ja=Jr.current)===null||Ja===void 0?void 0:Ja.getScrollInfo().x)||0},set:function(Ja){var ni;(ni=Jr.current)===null||ni===void 0||ni.scrollTo({left:Ja})}}),Ra});var Ga=function(Ra,Ca){var Ja,ni=(Ja=Aa[Ca])===null||Ja===void 0?void 0:Ja.record,wi=Ra.onCell;if(wi){var Ma,lo=wi(ni,Ca);return(Ma=lo==null?void 0:lo.rowSpan)!==null&&Ma!==void 0?Ma:1}return 1},eo=function(Ra){var Ca=Ra.start,Ja=Ra.end,ni=Ra.getSize,wi=Ra.offsetY;if(Ja<0)return null;for(var Ma=pn.filter(function(fi){return Ga(fi,Ca)===0}),lo=Ca,so=function(qi){if(Ma=Ma.filter(function(li){return Ga(li,qi)===0}),!Ma.length)return lo=qi,1},pl=Ca;pl>=0&&!so(pl);pl-=1);for(var ul=pn.filter(function(fi){return Ga(fi,Ja)!==1}),el=Ja,ol=function(qi){if(ul=ul.filter(function(li){return Ga(li,qi)!==1}),!ul.length)return el=Math.max(qi-1,Ja),1},El=Ja;El<Aa.length&&!ol(El);El+=1);for(var mo=[],yo=function(qi){var li=Aa[qi];if(!li)return 1;pn.some(function(Ua){return Ga(Ua,qi)>1})&&mo.push(qi)},ll=lo;ll<=el;ll+=1)yo(ll);var cl=mo.map(function(fi){var qi=Aa[fi],li=In(qi.record,fi),Ua=function(sl){var Co=fi+sl-1,hl=In(Aa[Co].record,Co),Bl=ni(li,hl);return Bl.bottom-Bl.top},po=ni(li);return y.createElement(Di,{key:fi,data:qi,rowKey:li,index:fi,style:{top:-wi+po.top},extra:!0,getHeight:Ua})});return cl},Si=y.useMemo(function(){return{columnsOffset:Qa}},[Qa]),vi="".concat(Ln,"-tbody"),$i=da(["body","wrapper"]),qa={};return Gn&&(qa.position="sticky",qa.bottom=0,(0,st.Z)(Gn)==="object"&&Gn.offsetScroll&&(qa.bottom=Gn.offsetScroll)),y.createElement(Sa.Provider,{value:Si},y.createElement(kr.Z,{fullHeight:!1,ref:Jr,prefixCls:"".concat(vi,"-virtual"),styles:{horizontalScrollBar:qa},className:vi,height:ia,itemHeight:_r||24,data:Aa,itemKey:function(Ra){return In(Ra.record)},component:$i,scrollWidth:lr,direction:nr,onVirtualScroll:function(Ra){var Ca,Ja=Ra.x;$t({currentTarget:(Ca=Jr.current)===null||Ca===void 0?void 0:Ca.nativeElement,scrollLeft:Ja})},onScroll:Ea,extraRender:eo},function(ti,Ra,Ca){var Ja=In(ti.record,Ra);return y.createElement(Di,{data:ti,rowKey:Ja,index:Ra,style:Ca.style})}))}),Wi=St(mi),Ei=Wi,ei=function(Re,Ft){var $t=Ft.ref,an=Ft.onScroll;return y.createElement(Ei,{ref:$t,data:Re,onScroll:an})};function Ar(Ze,Re){var Ft=Ze.data,$t=Ze.columns,an=Ze.scroll,pn=Ze.sticky,Mn=Ze.prefixCls,In=Mn===void 0?oa:Mn,zn=Ze.className,Ln=Ze.listItemHeight,Br=Ze.components,lr=Ze.onScroll,nr=an||{},Xn=nr.x,Gn=nr.y;typeof Xn!="number"&&(Xn=1),typeof Gn!="number"&&(Gn=500);var ia=(0,xt.zX)(function(Ea,Jr){return(0,Ct.Z)(Br,Ea)||Jr}),_r=(0,xt.zX)(lr),da=y.useMemo(function(){return{sticky:pn,scrollY:Gn,listItemHeight:Ln,getComponent:ia,onScroll:_r}},[pn,Gn,Ln,ia,_r]);return y.createElement(Za.Provider,{value:da},y.createElement(pa,(0,We.Z)({},Ze,{className:xe()(zn,"".concat(In,"-virtual")),scroll:(0,$e.Z)((0,$e.Z)({},an),{},{x:Xn}),components:(0,$e.Z)((0,$e.Z)({},Br),{},{body:Ft!=null&&Ft.length?ei:void 0}),columns:$t,internalHooks:ce,tailor:!0,ref:Re})))}var Jn=y.forwardRef(Ar);function xr(Ze){return et(Jn,Ze)}var Sr=xr(),tr=null,sa=Ze=>null,Dr=Ze=>null,jr=E(84105),Qr=E(82661),Na=E(34643),$a=E(34061),ea=E(18929);function ai(Ze){const[Re,Ft]=(0,y.useState)(null);return[(0,y.useCallback)((pn,Mn,In)=>{const zn=Re!=null?Re:pn,Ln=Math.min(zn||0,pn),Br=Math.max(zn||0,pn),lr=Mn.slice(Ln,Br+1).map(Gn=>Ze(Gn)),nr=lr.some(Gn=>!In.has(Gn)),Xn=[];return lr.forEach(Gn=>{nr?(In.has(Gn)||Xn.push(Gn),In.add(Gn)):(In.delete(Gn),Xn.push(Gn))}),Ft(nr?Br:null),Xn},[Re]),pn=>{Ft(pn)}]}var gi=E(32383),zi=E(62673),Ui=E(75727),Ji=E(47889);const Yi={},co="SELECT_ALL",No="SELECT_INVERT",$o="SELECT_NONE",Wo=[],Ba=(Ze,Re)=>{let Ft=[];return(Re||[]).forEach($t=>{Ft.push($t),$t&&typeof $t=="object"&&Ze in $t&&(Ft=[].concat((0,Ot.Z)(Ft),(0,Ot.Z)(Ba(Ze,$t[Ze]))))}),Ft};var ri=(Ze,Re)=>{const{preserveSelectedRowKeys:Ft,selectedRowKeys:$t,defaultSelectedRowKeys:an,getCheckboxProps:pn,onChange:Mn,onSelect:In,onSelectAll:zn,onSelectInvert:Ln,onSelectNone:Br,onSelectMultiple:lr,columnWidth:nr,type:Xn,selections:Gn,fixed:ia,renderCell:_r,hideSelectAll:da,checkStrictly:Ea=!0}=Re||{},{prefixCls:Jr,data:Aa,pageData:La,getRecordByKey:Qa,getRowKey:Ga,expandType:eo,childrenColumnName:Si,locale:vi,getPopupContainer:$i}=Ze,qa=(0,gi.ln)("Table"),[ti,Ra]=ai(fi=>fi),[Ca,Ja]=(0,ea.Z)($t||an||Wo,{value:$t}),ni=y.useRef(new Map),wi=(0,y.useCallback)(fi=>{if(Ft){const qi=new Map;fi.forEach(li=>{let Ua=Qa(li);!Ua&&ni.current.has(li)&&(Ua=ni.current.get(li)),qi.set(li,Ua)}),ni.current=qi}},[Qa,Ft]);y.useEffect(()=>{wi(Ca)},[Ca]);const Ma=(0,y.useMemo)(()=>Ba(Si,La),[Si,La]),{keyEntities:lo}=(0,y.useMemo)(()=>{if(Ea)return{keyEntities:null};let fi=Aa;if(Ft){const qi=new Set(Ma.map((Ua,po)=>Ga(Ua,po))),li=Array.from(ni.current).reduce((Ua,po)=>{let[To,sl]=po;return qi.has(To)?Ua:Ua.concat(sl)},[]);fi=[].concat((0,Ot.Z)(fi),(0,Ot.Z)(li))}return(0,$a.I8)(fi,{externalGetKey:Ga,childrenPropName:Si})},[Aa,Ga,Ea,Si,Ft,Ma]),so=(0,y.useMemo)(()=>{const fi=new Map;return Ma.forEach((qi,li)=>{const Ua=Ga(qi,li),po=(pn?pn(qi):null)||{};fi.set(Ua,po)}),fi},[Ma,Ga,pn]),pl=(0,y.useCallback)(fi=>{const qi=Ga(fi);let li;return so.has(qi)?li=so.get(Ga(fi)):li=pn?pn(fi):void 0,!!(li!=null&&li.disabled)},[so,Ga]),[ul,el]=(0,y.useMemo)(()=>{if(Ea)return[Ca||[],[]];const{checkedKeys:fi,halfCheckedKeys:qi}=(0,Na.S)(Ca,!0,lo,pl);return[fi||[],qi]},[Ca,Ea,lo,pl]),ol=(0,y.useMemo)(()=>{const fi=Xn==="radio"?ul.slice(0,1):ul;return new Set(fi)},[ul,Xn]),El=(0,y.useMemo)(()=>Xn==="radio"?new Set:new Set(el),[el,Xn]);y.useEffect(()=>{Re||Ja(Wo)},[!!Re]);const mo=(0,y.useCallback)((fi,qi)=>{let li,Ua;wi(fi),Ft?(li=fi,Ua=fi.map(po=>ni.current.get(po))):(li=[],Ua=[],fi.forEach(po=>{const To=Qa(po);To!==void 0&&(li.push(po),Ua.push(To))})),Ja(li),Mn==null||Mn(li,Ua,{type:qi})},[Ja,Qa,Mn,Ft]),yo=(0,y.useCallback)((fi,qi,li,Ua)=>{if(In){const po=li.map(To=>Qa(To));In(Qa(fi),qi,po,Ua)}mo(li,"single")},[In,Qa,mo]),ll=(0,y.useMemo)(()=>!Gn||da?null:(Gn===!0?[co,No,$o]:Gn).map(qi=>qi===co?{key:"all",text:vi.selectionAll,onSelect(){mo(Aa.map((li,Ua)=>Ga(li,Ua)).filter(li=>{const Ua=so.get(li);return!(Ua!=null&&Ua.disabled)||ol.has(li)}),"all")}}:qi===No?{key:"invert",text:vi.selectInvert,onSelect(){const li=new Set(ol);La.forEach((po,To)=>{const sl=Ga(po,To),Co=so.get(sl);Co!=null&&Co.disabled||(li.has(sl)?li.delete(sl):li.add(sl))});const Ua=Array.from(li);Ln&&(qa.deprecated(!1,"onSelectInvert","onChange"),Ln(Ua)),mo(Ua,"invert")}}:qi===$o?{key:"none",text:vi.selectNone,onSelect(){Br==null||Br(),mo(Array.from(ol).filter(li=>{const Ua=so.get(li);return Ua==null?void 0:Ua.disabled}),"none")}}:qi).map(qi=>Object.assign(Object.assign({},qi),{onSelect:function(){for(var li,Ua,po=arguments.length,To=new Array(po),sl=0;sl<po;sl++)To[sl]=arguments[sl];(Ua=qi.onSelect)===null||Ua===void 0||(li=Ua).call.apply(li,[qi].concat(To)),Ra(null)}})),[Gn,ol,La,Ga,Ln,mo]);return[(0,y.useCallback)(fi=>{var qi;if(!Re)return fi.filter(Ao=>Ao!==Yi);let li=(0,Ot.Z)(fi);const Ua=new Set(ol),po=Ma.map(Ga).filter(Ao=>!so.get(Ao).disabled),To=po.every(Ao=>Ua.has(Ao)),sl=po.some(Ao=>Ua.has(Ao)),Co=()=>{const Ao=[];To?po.forEach(tl=>{Ua.delete(tl),Ao.push(tl)}):po.forEach(tl=>{Ua.has(tl)||(Ua.add(tl),Ao.push(tl))});const Xo=Array.from(Ua);zn==null||zn(!To,Xo.map(tl=>Qa(tl)),Ao.map(tl=>Qa(tl))),mo(Xo,"all"),Ra(null)};let hl,Bl;if(Xn!=="radio"){let Ao;if(ll){const Oo={getPopupContainer:$i,items:ll.map((nl,Lo)=>{const{key:Kl,text:gl,onSelect:ts}=nl;return{key:Kl!=null?Kl:Lo,onClick:()=>{ts==null||ts(po)},label:gl}})};Ao=y.createElement("div",{className:`${Jr}-selection-extra`},y.createElement(Ui.Z,{menu:Oo,getPopupContainer:$i},y.createElement("span",null,y.createElement(jr.Z,null))))}const Xo=Ma.map((Oo,nl)=>{const Lo=Ga(Oo,nl),Kl=so.get(Lo)||{};return Object.assign({checked:Ua.has(Lo)},Kl)}).filter(Oo=>{let{disabled:nl}=Oo;return nl}),tl=!!Xo.length&&Xo.length===Ma.length,Dl=tl&&Xo.every(Oo=>{let{checked:nl}=Oo;return nl}),vl=tl&&Xo.some(Oo=>{let{checked:nl}=Oo;return nl});Bl=y.createElement(zi.default,{checked:tl?Dl:!!Ma.length&&To,indeterminate:tl?!Dl&&vl:!To&&sl,onChange:Co,disabled:Ma.length===0||tl,"aria-label":Ao?"Custom selection":"Select all",skipGroup:!0}),hl=!da&&y.createElement("div",{className:`${Jr}-selection`},Bl,Ao)}let Bi;Xn==="radio"?Bi=(Ao,Xo,tl)=>{const Dl=Ga(Xo,tl),vl=Ua.has(Dl),Oo=so.get(Dl);return{node:y.createElement(Ji.ZP,Object.assign({},Oo,{checked:vl,onClick:nl=>{var Lo;nl.stopPropagation(),(Lo=Oo==null?void 0:Oo.onClick)===null||Lo===void 0||Lo.call(Oo,nl)},onChange:nl=>{var Lo;Ua.has(Dl)||yo(Dl,!0,[Dl],nl.nativeEvent),(Lo=Oo==null?void 0:Oo.onChange)===null||Lo===void 0||Lo.call(Oo,nl)}})),checked:vl}}:Bi=(Ao,Xo,tl)=>{var Dl;const vl=Ga(Xo,tl),Oo=Ua.has(vl),nl=El.has(vl),Lo=so.get(vl);let Kl;return eo==="nest"?Kl=nl:Kl=(Dl=Lo==null?void 0:Lo.indeterminate)!==null&&Dl!==void 0?Dl:nl,{node:y.createElement(zi.default,Object.assign({},Lo,{indeterminate:Kl,checked:Oo,skipGroup:!0,onClick:gl=>{var ts;gl.stopPropagation(),(ts=Lo==null?void 0:Lo.onClick)===null||ts===void 0||ts.call(Lo,gl)},onChange:gl=>{var ts;const{nativeEvent:os}=gl,{shiftKey:Bs}=os,rl=po.findIndex(ls=>ls===vl),fu=ul.some(ls=>po.includes(ls));if(Bs&&Ea&&fu){const ls=ti(rl,po,Ua),bs=Array.from(Ua);lr==null||lr(!Oo,bs.map(Es=>Qa(Es)),ls.map(Es=>Qa(Es))),mo(bs,"multiple")}else{const ls=ul;if(Ea){const bs=Oo?(0,Qr._5)(ls,vl):(0,Qr.L0)(ls,vl);yo(vl,!Oo,bs,os)}else{const bs=(0,Na.S)([].concat((0,Ot.Z)(ls),[vl]),!0,lo,pl),{checkedKeys:Es,halfCheckedKeys:Wl}=bs;let al=Es;if(Oo){const ss=new Set(Es);ss.delete(vl),al=(0,Na.S)(Array.from(ss),{checked:!1,halfCheckedKeys:Wl},lo,pl).checkedKeys}yo(vl,!Oo,al,os)}}Ra(Oo?null:rl),(ts=Lo==null?void 0:Lo.onChange)===null||ts===void 0||ts.call(Lo,gl)}})),checked:Oo}};const Ri=(Ao,Xo,tl)=>{const{node:Dl,checked:vl}=Bi(Ao,Xo,tl);return _r?_r(vl,Xo,tl,Dl):Dl};if(!li.includes(Yi))if(li.findIndex(Ao=>{var Xo;return((Xo=Ao[Gt])===null||Xo===void 0?void 0:Xo.columnType)==="EXPAND_COLUMN"})===0){const[Ao,...Xo]=li;li=[Ao,Yi].concat((0,Ot.Z)(Xo))}else li=[Yi].concat((0,Ot.Z)(li));const Do=li.indexOf(Yi);li=li.filter((Ao,Xo)=>Ao!==Yi||Xo===Do);const zo=li[Do-1],jo=li[Do+1];let Ml=ia;Ml===void 0&&((jo==null?void 0:jo.fixed)!==void 0?Ml=jo.fixed:(zo==null?void 0:zo.fixed)!==void 0&&(Ml=zo.fixed)),Ml&&zo&&((qi=zo[Gt])===null||qi===void 0?void 0:qi.columnType)==="EXPAND_COLUMN"&&zo.fixed===void 0&&(zo.fixed=Ml);const Cl=xe()(`${Jr}-selection-col`,{[`${Jr}-selection-col-with-dropdown`]:Gn&&Xn==="checkbox"}),Yl=()=>Re!=null&&Re.columnTitle?typeof Re.columnTitle=="function"?Re.columnTitle(Bl):Re.columnTitle:hl,Go={fixed:Ml,width:nr,className:`${Jr}-selection-column`,title:Yl(),render:Ri,onCell:Re.onCell,[Gt]:{className:Cl}};return li.map(Ao=>Ao===Yi?Go:Ao)},[Ga,Ma,Re,ul,ol,El,nr,ll,eo,so,lr,yo,pl]),ol]},So=E(2738);function ci(Ze,Re){return Ze._antProxy=Ze._antProxy||{},Object.keys(Re).forEach(Ft=>{if(!(Ft in Ze._antProxy)){const $t=Ze[Ft];Ze._antProxy[Ft]=$t,Ze[Ft]=Re[Ft]}}),Ze}function il(Ze,Re){return(0,y.useImperativeHandle)(Ze,()=>{const Ft=Re(),{nativeElement:$t}=Ft;return typeof Proxy!="undefined"?new Proxy($t,{get(an,pn){return Ft[pn]?Ft[pn]:Reflect.get(an,pn)}}):ci($t,Ft)})}var $l=E(83010),Ol=E(48755),Vo=E(38406),Yo=E(83397),no=E(31756),Nl=E(13783),Ul=E(85981),_l=E(31709),Io=E(29787),es=E(57700);function as(Ze){return Re=>{const{prefixCls:Ft,onExpand:$t,record:an,expanded:pn,expandable:Mn}=Re,In=`${Ft}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:zn=>{$t(an,zn),zn.stopPropagation()},className:xe()(In,{[`${In}-spaced`]:!Mn,[`${In}-expanded`]:Mn&&pn,[`${In}-collapsed`]:Mn&&!pn}),"aria-label":pn?Ze.collapse:Ze.expand,"aria-expanded":pn})}}var Ni=as;function Qi(Ze){return(Ft,$t)=>{const an=Ft.querySelector(`.${Ze}-container`);let pn=$t;if(an){const Mn=getComputedStyle(an),In=parseInt(Mn.borderLeftWidth,10),zn=parseInt(Mn.borderRightWidth,10);pn=$t-In-zn}return pn}}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 pi(Ze,Re){return Re?`${Re}-${Ze}`:`${Ze}`}const Hi=(Ze,Re)=>typeof Ze=="function"?Ze(Re):Ze,uo=(Ze,Re)=>{const Ft=Hi(Ze,Re);return Object.prototype.toString.call(Ft)==="[object Object]"?"":Ft};var Il={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"},oo=Il,Qo=E(7657),Jo=function(Re,Ft){return y.createElement(Qo.Z,(0,We.Z)({},Re,{ref:Ft,icon:oo}))},hn=y.forwardRef(Jo),vn=hn,Tn=E(9981),wr=E(40192);function Or(Ze){const Re=y.useRef(Ze),Ft=(0,wr.Z)();return[()=>Re.current,$t=>{Re.current=$t,Ft()}]}var rr=E(7939),ir=E(584),kn=E(93041),er=E(78857),gr=E(18287),na=E(47472),Ci=E(49397),fo=Ze=>{const{value:Re,filterSearch:Ft,tablePrefixCls:$t,locale:an,onChange:pn}=Ze;return Ft?y.createElement("div",{className:`${$t}-filter-dropdown-search`},y.createElement(Ci.Z,{prefix:y.createElement(na.Z,null),placeholder:an.filterSearchPlaceholder,onChange:pn,value:Re,htmlSize:1,className:`${$t}-filter-dropdown-search-input`})):null},ro=E(10228);const Ha=Ze=>{const{keyCode:Re}=Ze;Re===ro.Z.ENTER&&Ze.stopPropagation()};var Hr=y.forwardRef((Ze,Re)=>y.createElement("div",{className:Ze.className,onClick:Ft=>Ft.stopPropagation(),onKeyDown:Ha,ref:Re},Ze.children));function _i(Ze){let Re=[];return(Ze||[]).forEach(Ft=>{let{value:$t,children:an}=Ft;Re.push($t),an&&(Re=[].concat((0,Ot.Z)(Re),(0,Ot.Z)(_i(an))))}),Re}function Li(Ze){return Ze.some(Re=>{let{children:Ft}=Re;return Ft})}function vo(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:Ft,filteredKeys:$t,filterMultiple:an,searchValue:pn,filterSearch:Mn}=Ze;return Re.map((In,zn)=>{const Ln=String(In.value);if(In.children)return{key:Ln||zn,label:In.text,popupClassName:`${Ft}-dropdown-submenu`,children:_o({filters:In.children,prefixCls:Ft,filteredKeys:$t,filterMultiple:an,searchValue:pn,filterSearch:Mn})};const Br=an?zi.default:Ji.ZP,lr={key:In.value!==void 0?Ln:zn,label:y.createElement(y.Fragment,null,y.createElement(Br,{checked:$t.includes(Ln)}),y.createElement("span",null,In.text))};return pn.trim()?typeof Mn=="function"?Mn(pn,In)?lr:null:vo(pn,In.text)?lr:null:lr})}function Ai(Ze){return Ze||[]}var xi=Ze=>{var Re,Ft,$t,an;const{tablePrefixCls:pn,prefixCls:Mn,column:In,dropdownPrefixCls:zn,columnKey:Ln,filterOnClose:Br,filterMultiple:lr,filterMode:nr="menu",filterSearch:Xn=!1,filterState:Gn,triggerFilter:ia,locale:_r,children:da,getPopupContainer:Ea,rootClassName:Jr}=Ze,{filterResetToDefaultFilteredValue:Aa,defaultFilteredValue:La,filterDropdownProps:Qa={},filterDropdownOpen:Ga,filterDropdownVisible:eo,onFilterDropdownVisibleChange:Si,onFilterDropdownOpenChange:vi}=In,[$i,qa]=y.useState(!1),ti=!!(Gn&&(!((Re=Gn.filteredKeys)===null||Re===void 0)&&Re.length||Gn.forceFiltered)),Ra=Bi=>{var Ri;qa(Bi),(Ri=Qa.onOpenChange)===null||Ri===void 0||Ri.call(Qa,Bi),vi==null||vi(Bi),Si==null||Si(Bi)},Ca=(an=($t=(Ft=Qa.open)!==null&&Ft!==void 0?Ft:Ga)!==null&&$t!==void 0?$t:eo)!==null&&an!==void 0?an:$i,Ja=Gn==null?void 0:Gn.filteredKeys,[ni,wi]=Or(Ai(Ja)),Ma=Bi=>{let{selectedKeys:Ri}=Bi;wi(Ri)},lo=(Bi,Ri)=>{let{node:Do,checked:zo}=Ri;Ma(lr?{selectedKeys:Bi}:{selectedKeys:zo&&Do.key?[Do.key]:[]})};y.useEffect(()=>{$i&&Ma({selectedKeys:Ai(Ja)})},[Ja]);const[so,pl]=y.useState([]),ul=Bi=>{pl(Bi)},[el,ol]=y.useState(""),El=Bi=>{const{value:Ri}=Bi.target;ol(Ri)};y.useEffect(()=>{$i||ol("")},[$i]);const mo=Bi=>{const Ri=Bi!=null&&Bi.length?Bi:null;if(Ri===null&&(!Gn||!Gn.filteredKeys)||(0,Ce.Z)(Ri,Gn==null?void 0:Gn.filteredKeys,!0))return null;ia({column:In,key:Ln,filteredKeys:Ri})},yo=()=>{Ra(!1),mo(ni())},ll=function(){let{confirm:Bi,closeDropdown:Ri}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Bi&&mo([]),Ri&&Ra(!1),ol(""),wi(Aa?(La||[]).map(Do=>String(Do)):[])},cl=function(){let{closeDropdown:Bi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Bi&&Ra(!1),mo(ni())},fi=(Bi,Ri)=>{Ri.source==="trigger"&&(Bi&&Ja!==void 0&&wi(Ai(Ja)),Ra(Bi),!Bi&&!In.filterDropdown&&Br&&yo())},qi=xe()({[`${zn}-menu-without-submenu`]:!Li(In.filters||[])}),li=Bi=>{if(Bi.target.checked){const Ri=_i(In==null?void 0:In.filters).map(Do=>String(Do));wi(Ri)}else wi([])},Ua=Bi=>{let{filters:Ri}=Bi;return(Ri||[]).map((Do,zo)=>{const jo=String(Do.value),Ml={title:Do.text,key:Do.value!==void 0?jo:String(zo)};return Do.children&&(Ml.children=Ua({filters:Do.children})),Ml})},po=Bi=>{var Ri;return Object.assign(Object.assign({},Bi),{text:Bi.title,value:Bi.key,children:((Ri=Bi.children)===null||Ri===void 0?void 0:Ri.map(Do=>po(Do)))||[]})};let To;const{direction:sl,renderEmpty:Co}=y.useContext(Ol.E_);if(typeof In.filterDropdown=="function")To=In.filterDropdown({prefixCls:`${zn}-custom`,setSelectedKeys:Bi=>Ma({selectedKeys:Bi}),selectedKeys:ni(),confirm:cl,clearFilters:ll,filters:In.filters,visible:Ca,close:()=>{Ra(!1)}});else if(In.filterDropdown)To=In.filterDropdown;else{const Bi=ni()||[],Ri=()=>{var zo,jo;const Ml=(zo=Co==null?void 0:Co("Table.filter"))!==null&&zo!==void 0?zo:y.createElement(ir.Z,{image:ir.Z.PRESENTED_IMAGE_SIMPLE,description:_r.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((In.filters||[]).length===0)return Ml;if(nr==="tree")return y.createElement(y.Fragment,null,y.createElement(fo,{filterSearch:Xn,value:el,onChange:El,tablePrefixCls:pn,locale:_r}),y.createElement("div",{className:`${pn}-filter-dropdown-tree`},lr?y.createElement(zi.default,{checked:Bi.length===_i(In.filters).length,indeterminate:Bi.length>0&&Bi.length<_i(In.filters).length,className:`${pn}-filter-dropdown-checkall`,onChange:li},(jo=_r==null?void 0:_r.filterCheckall)!==null&&jo!==void 0?jo:_r==null?void 0:_r.filterCheckAll):null,y.createElement(gr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:lr,checkStrictly:!lr,className:`${zn}-menu`,onCheck:lo,checkedKeys:Bi,selectedKeys:Bi,showIcon:!1,treeData:Ua({filters:In.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:el.trim()?Go=>typeof Xn=="function"?Xn(el,po(Go)):vo(el,Go.title):void 0})));const Cl=_o({filters:In.filters||[],filterSearch:Xn,prefixCls:Mn,filteredKeys:ni(),filterMultiple:lr,searchValue:el}),Yl=Cl.every(Go=>Go===null);return y.createElement(y.Fragment,null,y.createElement(fo,{filterSearch:Xn,value:el,onChange:El,tablePrefixCls:pn,locale:_r}),Yl?Ml:y.createElement(kn.default,{selectable:!0,multiple:lr,prefixCls:`${zn}-menu`,className:qi,onSelect:Ma,onDeselect:Ma,selectedKeys:Bi,getPopupContainer:Ea,openKeys:so,onOpenChange:ul,items:Cl}))},Do=()=>Aa?(0,Ce.Z)((La||[]).map(zo=>String(zo)),Bi,!0):Bi.length===0;To=y.createElement(y.Fragment,null,Ri(),y.createElement("div",{className:`${Mn}-dropdown-btns`},y.createElement(rr.ZP,{type:"link",size:"small",disabled:Do(),onClick:()=>ll()},_r.filterReset),y.createElement(rr.ZP,{type:"primary",size:"small",onClick:yo},_r.filterConfirm)))}In.filterDropdown&&(To=y.createElement(er.J,{selectable:void 0},To)),To=y.createElement(Hr,{className:`${Mn}-dropdown`},To);const hl=()=>{let Bi;return typeof In.filterIcon=="function"?Bi=In.filterIcon(ti):In.filterIcon?Bi=In.filterIcon:Bi=y.createElement(vn,null),y.createElement("span",{role:"button",tabIndex:-1,className:xe()(`${Mn}-trigger`,{active:ti}),onClick:Ri=>{Ri.stopPropagation()}},Bi)},Bl=(0,Tn.Z)({trigger:["click"],placement:sl==="rtl"?"bottomLeft":"bottomRight",children:hl(),getPopupContainer:Ea},Object.assign(Object.assign({},Qa),{rootClassName:xe()(Jr,Qa.rootClassName),open:Ca,onOpenChange:fi,dropdownRender:()=>typeof(Qa==null?void 0:Qa.dropdownRender)=="function"?Qa.dropdownRender(To):To}));return y.createElement("div",{className:`${Mn}-column`},y.createElement("span",{className:`${pn}-column-title`},da),y.createElement(Ui.Z,Object.assign({},Bl)))};const ga=(Ze,Re,Ft)=>{let $t=[];return(Ze||[]).forEach((an,pn)=>{var Mn;const In=pi(pn,Ft);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,In),filteredKeys:zn,forceFiltered:an.filtered})}else $t.push({column:an,key:Pi(an,In),filteredKeys:Re&&an.defaultFilteredValue?an.defaultFilteredValue:void 0,forceFiltered:an.filtered});"children"in an&&($t=[].concat((0,Ot.Z)($t),(0,Ot.Z)(ga(an.children,Re,In))))}),$t};function hi(Ze,Re,Ft,$t,an,pn,Mn,In,zn){return Ft.map((Ln,Br)=>{const lr=pi(Br,In),{filterOnClose:nr=!0,filterMultiple:Xn=!0,filterMode:Gn,filterSearch:ia}=Ln;let _r=Ln;if(_r.filters||_r.filterDropdown){const da=Pi(_r,lr),Ea=$t.find(Jr=>{let{key:Aa}=Jr;return da===Aa});_r=Object.assign(Object.assign({},_r),{title:Jr=>y.createElement(xi,{tablePrefixCls:Ze,prefixCls:`${Ze}-filter`,dropdownPrefixCls:Re,column:_r,columnKey:da,filterState:Ea,filterOnClose:nr,filterMultiple:Xn,filterMode:Gn,filterSearch:ia,triggerFilter:pn,locale:an,getPopupContainer:Mn,rootClassName:zn},Hi(Ln.title,Jr))})}return"children"in _r&&(_r=Object.assign(Object.assign({},_r),{children:hi(Ze,Re,_r.children,$t,an,pn,Mn,lr,zn)})),_r})}const di=Ze=>{const Re={};return Ze.forEach(Ft=>{let{key:$t,filteredKeys:an,column:pn}=Ft;const Mn=$t,{filters:In,filterDropdown:zn}=pn;if(zn)Re[Mn]=an||null;else if(Array.isArray(an)){const Ln=_i(In);Re[Mn]=Ln.filter(Br=>an.includes(String(Br)))}else Re[Mn]=null}),Re},si=(Ze,Re,Ft)=>Re.reduce((an,pn)=>{const{column:{onFilter:Mn,filters:In},filteredKeys:zn}=pn;return Mn&&zn&&zn.length?an.map(Ln=>Object.assign({},Ln)).filter(Ln=>zn.some(Br=>{const lr=_i(In),nr=lr.findIndex(Gn=>String(Gn)===String(Br)),Xn=nr!==-1?lr[nr]:Br;return Ln[Ft]&&(Ln[Ft]=si(Ln[Ft],Re,Ft)),Mn(Xn,Ln)})):an},Ze),Dt=Ze=>Ze.flatMap(Re=>"children"in Re?[Re].concat((0,Ot.Z)(Dt(Re.children||[]))):[Re]);var rn=Ze=>{const{prefixCls:Re,dropdownPrefixCls:Ft,mergedColumns:$t,onFilterChange:an,getPopupContainer:pn,locale:Mn,rootClassName:In}=Ze,zn=(0,gi.ln)("Table"),Ln=y.useMemo(()=>Dt($t||[]),[$t]),[Br,lr]=y.useState(()=>ga(Ln,!0)),nr=y.useMemo(()=>{const _r=ga(Ln,!1);if(_r.length===0)return _r;let da=!0,Ea=!0;if(_r.forEach(Jr=>{let{filteredKeys:Aa}=Jr;Aa!==void 0?da=!1:Ea=!1}),da){const Jr=(Ln||[]).map((Aa,La)=>Pi(Aa,pi(La)));return Br.filter(Aa=>{let{key:La}=Aa;return Jr.includes(La)}).map(Aa=>{const La=Ln[Jr.findIndex(Qa=>Qa===Aa.key)];return Object.assign(Object.assign({},Aa),{column:Object.assign(Object.assign({},Aa.column),La),forceFiltered:La.filtered})})}return _r},[Ln,Br]),Xn=y.useMemo(()=>di(nr),[nr]),Gn=_r=>{const da=nr.filter(Ea=>{let{key:Jr}=Ea;return Jr!==_r.key});da.push(_r),lr(da),an(di(da),da)};return[_r=>hi(Re,Ft,_r,nr,Mn,Gn,pn,void 0,In),nr,Xn]},Va=(Ze,Re,Ft)=>{const $t=y.useRef({});function an(pn){var Mn;if(!$t.current||$t.current.data!==Ze||$t.current.childrenColumnName!==Re||$t.current.getRowKey!==Ft){let zn=function(Ln){Ln.forEach((Br,lr)=>{const nr=Ft(Br,lr);In.set(nr,Br),Br&&typeof Br=="object"&&Re in Br&&zn(Br[Re]||[])})};const In=new Map;zn(Ze),$t.current={data:Ze,childrenColumnName:Re,kvMap:In,getRowKey:Ft}}return(Mn=$t.current.kvMap)===null||Mn===void 0?void 0:Mn.get(pn)}return[an]},zr=function(Ze,Re){var Ft={};for(var $t in Ze)Object.prototype.hasOwnProperty.call(Ze,$t)&&Re.indexOf($t)<0&&(Ft[$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])&&(Ft[$t[an]]=Ze[$t[an]]);return Ft};const qn=10;function pr(Ze,Re){const Ft={current:Ze.current,pageSize:Ze.pageSize};return Object.keys(Re&&typeof Re=="object"?Re:{}).forEach(an=>{const pn=Ze[an];typeof pn!="function"&&(Ft[an]=pn)}),Ft}function Fr(Ze,Re,Ft){const $t=Ft&&typeof Ft=="object"?Ft:{},{total:an=0}=$t,pn=zr($t,["total"]),[Mn,In]=(0,y.useState)(()=>({current:"defaultCurrent"in pn?pn.defaultCurrent:1,pageSize:"defaultPageSize"in pn?pn.defaultPageSize:qn})),zn=(0,Tn.Z)(Mn,pn,{total:an>0?an:Ze}),Ln=Math.ceil((an||Ze)/zn.pageSize);zn.current>Ln&&(zn.current=Ln||1);const Br=(nr,Xn)=>{In({current:nr!=null?nr:1,pageSize:Xn||zn.pageSize})},lr=(nr,Xn)=>{var Gn;Ft&&((Gn=Ft.onChange)===null||Gn===void 0||Gn.call(Ft,nr,Xn)),Br(nr,Xn),Re(nr,Xn||(zn==null?void 0:zn.pageSize))};return Ft===!1?[{},()=>{}]:[Object.assign(Object.assign({},zn),{onChange:lr}),Br]}var aa=Fr,Wr=E(89489),or=E(59477),ha=E(25399);const fa="ascend",Nr="descend",Da=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,ua=(Ze,Re)=>Re?Ze[Ze.indexOf(Re)+1]:Ze[0],cr=(Ze,Re,Ft)=>{let $t=[];const an=(pn,Mn)=>{$t.push({column:pn,key:Pi(pn,Mn),multiplePriority:Da(pn),sortOrder:pn.sortOrder})};return(Ze||[]).forEach((pn,Mn)=>{const In=pi(Mn,Ft);pn.children?("sortOrder"in pn&&an(pn,In),$t=[].concat((0,Ot.Z)($t),(0,Ot.Z)(cr(pn.children,Re,In)))):pn.sorter&&("sortOrder"in pn?an(pn,In):Re&&pn.defaultSortOrder&&$t.push({column:pn,key:Pi(pn,In),multiplePriority:Da(pn),sortOrder:pn.defaultSortOrder}))}),$t},Yr=(Ze,Re,Ft,$t,an,pn,Mn,In)=>(Re||[]).map((Ln,Br)=>{const lr=pi(Br,In);let nr=Ln;if(nr.sorter){const Xn=nr.sortDirections||an,Gn=nr.showSorterTooltip===void 0?Mn:nr.showSorterTooltip,ia=Pi(nr,lr),_r=Ft.find(Si=>{let{key:vi}=Si;return vi===ia}),da=_r?_r.sortOrder:null,Ea=ua(Xn,da);let Jr;if(Ln.sortIcon)Jr=Ln.sortIcon({sortOrder:da});else{const Si=Xn.includes(fa)&&y.createElement(or.Z,{className:xe()(`${Ze}-column-sorter-up`,{active:da===fa})}),vi=Xn.includes(Nr)&&y.createElement(Wr.Z,{className:xe()(`${Ze}-column-sorter-down`,{active:da===Nr})});Jr=y.createElement("span",{className:xe()(`${Ze}-column-sorter`,{[`${Ze}-column-sorter-full`]:!!(Si&&vi)})},y.createElement("span",{className:`${Ze}-column-sorter-inner`,"aria-hidden":"true"},Si,vi))}const{cancelSort:Aa,triggerAsc:La,triggerDesc:Qa}=pn||{};let Ga=Aa;Ea===Nr?Ga=Qa:Ea===fa&&(Ga=La);const eo=typeof Gn=="object"?Object.assign({title:Ga},Gn):{title:Ga};nr=Object.assign(Object.assign({},nr),{className:xe()(nr.className,{[`${Ze}-column-sort`]:da}),title:Si=>{const vi=`${Ze}-column-sorters`,$i=y.createElement("span",{className:`${Ze}-column-title`},Hi(Ln.title,Si)),qa=y.createElement("div",{className:vi},$i,Jr);return Gn?typeof Gn!="boolean"&&(Gn==null?void 0:Gn.target)==="sorter-icon"?y.createElement("div",{className:`${vi} ${Ze}-column-sorters-tooltip-target-sorter`},$i,y.createElement(ha.Z,Object.assign({},eo),Jr)):y.createElement(ha.Z,Object.assign({},eo),qa):qa},onHeaderCell:Si=>{var vi;const $i=((vi=Ln.onHeaderCell)===null||vi===void 0?void 0:vi.call(Ln,Si))||{},qa=$i.onClick,ti=$i.onKeyDown;$i.onClick=Ja=>{$t({column:Ln,key:ia,sortOrder:Ea,multiplePriority:Da(Ln)}),qa==null||qa(Ja)},$i.onKeyDown=Ja=>{Ja.keyCode===ro.Z.ENTER&&($t({column:Ln,key:ia,sortOrder:Ea,multiplePriority:Da(Ln)}),ti==null||ti(Ja))};const Ra=uo(Ln.title,{}),Ca=Ra==null?void 0:Ra.toString();return da&&($i["aria-sort"]=da==="ascend"?"ascending":"descending"),$i["aria-label"]=Ca||"",$i.className=xe()($i.className,`${Ze}-column-has-sorters`),$i.tabIndex=0,Ln.ellipsis&&($i.title=(Ra!=null?Ra:"").toString()),$i}})}return"children"in nr&&(nr=Object.assign(Object.assign({},nr),{children:Yr(Ze,nr.children,Ft,$t,an,pn,Mn,lr)})),nr}),ui=Ze=>{const{column:Re,sortOrder:Ft}=Ze;return{column:Re,order:Ft,field:Re.dataIndex,columnKey:Re.key}},ba=Ze=>{const Re=Ze.filter(Ft=>{let{sortOrder:$t}=Ft;return $t}).map(ui);if(Re.length===0&&Ze.length){const Ft=Ze.length-1;return Object.assign(Object.assign({},ui(Ze[Ft])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Re.length<=1?Re[0]||{}:Re},ca=(Ze,Re,Ft)=>{const $t=Re.slice().sort((Mn,In)=>In.multiplePriority-Mn.multiplePriority),an=Ze.slice(),pn=$t.filter(Mn=>{let{column:{sorter:In},sortOrder:zn}=Mn;return ja(In)&&zn});return pn.length?an.sort((Mn,In)=>{for(let zn=0;zn<pn.length;zn+=1){const Ln=pn[zn],{column:{sorter:Br},sortOrder:lr}=Ln,nr=ja(Br);if(nr&&lr){const Xn=nr(Mn,In,lr);if(Xn!==0)return lr===fa?Xn:-Xn}}return 0}).map(Mn=>{const In=Mn[Ft];return In?Object.assign(Object.assign({},Mn),{[Ft]:ca(In,Re,Ft)}):Mn}):an};var Pa=Ze=>{const{prefixCls:Re,mergedColumns:Ft,sortDirections:$t,tableLocale:an,showSorterTooltip:pn,onSorterChange:Mn}=Ze,[In,zn]=y.useState(cr(Ft,!0)),Ln=(ia,_r)=>{const da=[];return ia.forEach((Ea,Jr)=>{const Aa=pi(Jr,_r);if(da.push(Pi(Ea,Aa)),Array.isArray(Ea.children)){const La=Ln(Ea.children,Aa);da.push.apply(da,(0,Ot.Z)(La))}}),da},Br=y.useMemo(()=>{let ia=!0;const _r=cr(Ft,!1);if(!_r.length){const Aa=Ln(Ft);return In.filter(La=>{let{key:Qa}=La;return Aa.includes(Qa)})}const da=[];function Ea(Aa){ia?da.push(Aa):da.push(Object.assign(Object.assign({},Aa),{sortOrder:null}))}let Jr=null;return _r.forEach(Aa=>{Jr===null?(Ea(Aa),Aa.sortOrder&&(Aa.multiplePriority===!1?ia=!1:Jr=!0)):(Jr&&Aa.multiplePriority!==!1||(ia=!1),Ea(Aa))}),da},[Ft,In]),lr=y.useMemo(()=>{var ia,_r;const da=Br.map(Ea=>{let{column:Jr,sortOrder:Aa}=Ea;return{column:Jr,order:Aa}});return{sortColumns:da,sortColumn:(ia=da[0])===null||ia===void 0?void 0:ia.column,sortOrder:(_r=da[0])===null||_r===void 0?void 0:_r.order}},[Br]),nr=ia=>{let _r;ia.multiplePriority===!1||!Br.length||Br[0].multiplePriority===!1?_r=[ia]:_r=[].concat((0,Ot.Z)(Br.filter(da=>{let{key:Ea}=da;return Ea!==ia.key})),[ia]),zn(_r),Mn(ba(_r),_r)};return[ia=>Yr(Re,ia,Br,nr,$t,an,pn),Br,lr,()=>ba(Br)]};const ao=(Ze,Re)=>Ze.map($t=>{const an=Object.assign({},$t);return an.title=Hi($t.title,Re),"children"in an&&(an.children=ao(an.children,Re)),an});var Ko=Ze=>[y.useCallback(Ft=>ao(Ft,Ze),[Ze])],Oi=Xa((Ze,Re)=>{const{_renderTimes:Ft}=Ze,{_renderTimes:$t}=Re;return Ft!==$t}),Pl=xr((Ze,Re)=>{const{_renderTimes:Ft}=Ze,{_renderTimes:$t}=Re;return Ft!==$t}),Gr=E(36237),bo=E(17835),Po=E(63356),Eo=E(16931),yl=E(51636),Ms=Ze=>{const{componentCls:Re,lineWidth:Ft,lineType:$t,tableBorderColor:an,tableHeaderBg:pn,tablePaddingVertical:Mn,tablePaddingHorizontal:In,calc:zn}=Ze,Ln=`${(0,Gr.unit)(Ft)} ${$t} ${an}`,Br=(lr,nr,Xn)=>({[`&${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,Gr.unit)(zn(nr).mul(-1).equal())}
|
|
|
${(0,Gr.unit)(zn(zn(Xn).add(Ft)).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,Gr.unit)(zn(Mn).mul(-1).equal())} ${(0,Gr.unit)(zn(zn(In).add(Ft)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ft,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}}}}}},Br("middle",Ze.tablePaddingVerticalMiddle,Ze.tablePaddingHorizontalMiddle)),Br("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,Gr.unit)(Ft)} 0 ${(0,Gr.unit)(Ft)} ${pn}`}},[`${Re}-bordered ${Re}-cell-scrollbar`]:{borderInlineEnd:Ln}}}},xs=Ze=>{const{componentCls:Re}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-cell-ellipsis`]:Object.assign(Object.assign({},Po.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}}}}},Ss=Ze=>{const{componentCls:Re,antCls:Ft,motionDurationSlow:$t,lineWidth:an,paddingXS:pn,lineType:Mn,tableBorderColor:In,tableExpandIconBg:zn,tableExpandColumnWidth:Ln,borderRadius:Br,tablePaddingVertical:lr,tablePaddingHorizontal:nr,tableExpandedRowBg:Xn,paddingXXS:Gn,expandIconMarginTop:ia,expandIconSize:_r,expandIconHalfInner:da,expandIconScale:Ea,calc:Jr}=Ze,Aa=`${(0,Gr.unit)(an)} ${Mn} ${In}`,La=Jr(Gn).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,Po.Nd)(Ze)),{position:"relative",float:"left",width:_r,height:_r,color:"inherit",lineHeight:(0,Gr.unit)(_r),background:zn,border:Aa,borderRadius:Br,transform:`scale(${Ea})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${$t} ease-out`,content:'""'},"&::before":{top:da,insetInlineEnd:La,insetInlineStart:La,height:an},"&::after":{top:La,bottom:La,insetInlineStart:da,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:pn},[`tr${Re}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xn}},[`${Ft}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Re}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Gr.unit)(Jr(lr).mul(-1).equal())} ${(0,Gr.unit)(Jr(nr).mul(-1).equal())}`,padding:`${(0,Gr.unit)(lr)} ${(0,Gr.unit)(nr)}`}}}},Is=Ze=>{const{componentCls:Re,antCls:Ft,iconCls:$t,tableFilterDropdownWidth:an,tableFilterDropdownSearchWidth:pn,paddingXXS:Mn,paddingXS:In,colorText:zn,lineWidth:Ln,lineType:Br,tableBorderColor:lr,headerIconColor:nr,fontSizeSM:Xn,tablePaddingHorizontal:Gn,borderRadius:ia,motionDurationSlow:_r,colorTextDescription:da,colorPrimary:Ea,tableHeaderFilterActiveBg:Jr,colorTextDisabled:Aa,tableFilterDropdownBg:La,tableFilterDropdownHeight:Qa,controlItemBgHover:Ga,controlItemBgActive:eo,boxShadowSecondary:Si,filterDropdownMenuBg:vi,calc:$i}=Ze,qa=`${Ft}-dropdown`,ti=`${Re}-filter-dropdown`,Ra=`${Ft}-tree`,Ca=`${(0,Gr.unit)(Ln)} ${Br} ${lr}`;return[{[`${Re}-wrapper`]:{[`${Re}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Re}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$i(Mn).mul(-1).equal(),marginInline:`${(0,Gr.unit)(Mn)} ${(0,Gr.unit)($i(Gn).div(2).mul(-1).equal())}`,padding:`0 ${(0,Gr.unit)(Mn)}`,color:nr,fontSize:Xn,borderRadius:ia,cursor:"pointer",transition:`all ${_r}`,"&:hover":{color:da,background:Jr},"&.active":{color:Ea}}}},{[`${Ft}-dropdown`]:{[ti]:Object.assign(Object.assign({},(0,Po.Wf)(Ze)),{minWidth:an,backgroundColor:La,borderRadius:ia,boxShadow:Si,overflow:"hidden",[`${qa}-menu`]:{maxHeight:Qa,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:vi,"&:empty::after":{display:"block",padding:`${(0,Gr.unit)(In)} 0`,color:Aa,fontSize:Xn,textAlign:"center",content:'"Not Found"'}},[`${ti}-tree`]:{paddingBlock:`${(0,Gr.unit)(In)} 0`,paddingInline:In,[Ra]:{padding:0},[`${Ra}-treenode ${Ra}-node-content-wrapper:hover`]:{backgroundColor:Ga},[`${Ra}-treenode-checkbox-checked ${Ra}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:eo}}},[`${ti}-search`]:{padding:In,borderBottom:Ca,"&-input":{input:{minWidth:pn},[$t]:{color:Aa}}},[`${ti}-checkall`]:{width:"100%",marginBottom:Mn,marginInlineStart:Mn},[`${ti}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Gr.unit)($i(In).sub(Ln).equal())} ${(0,Gr.unit)(In)}`,overflow:"hidden",borderTop:Ca}})}},{[`${Ft}-dropdown ${ti}, ${ti}-submenu`]:{[`${Ft}-checkbox-wrapper + span`]:{paddingInlineStart:In,color:zn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ws=Ze=>{const{componentCls:Re,lineWidth:Ft,colorSplit:$t,motionDurationSlow:an,zIndexTableFixed:pn,tableBg:Mn,zIndexTableSticky:In,calc:zn}=Ze,Ln=$t;return{[`${Re}-wrapper`]:{[`
|
|
|
${Re}-cell-fix-left,
|
|
|
${Re}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:pn,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(Ft).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(Ft).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(In).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"}}}}},Rs=Ze=>{const{componentCls:Re,antCls:Ft,margin:$t}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-pagination${Ft}-pagination`]:{margin:`${(0,Gr.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"}}}}},Us=Ze=>{const{componentCls:Re,tableRadius:Ft}=Ze;return{[`${Re}-wrapper`]:{[Re]:{[`${Re}-title, ${Re}-header`]:{borderRadius:`${(0,Gr.unit)(Ft)} ${(0,Gr.unit)(Ft)} 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:Ft,borderStartEndRadius:Ft,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ft},"> *:last-child":{borderStartEndRadius:Ft}}},"&-footer":{borderRadius:`0 0 ${(0,Gr.unit)(Ft)} ${(0,Gr.unit)(Ft)}`}}}}},Cu=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"}}}}},As=Ze=>{const{componentCls:Re,antCls:Ft,iconCls:$t,fontSizeIcon:an,padding:pn,paddingXS:Mn,headerIconColor:In,headerIconHoverColor:zn,tableSelectionColumnWidth:Ln,tableSelectedRowBg:Br,tableSelectedRowHoverBg:lr,tableRowHoverBg:nr,tablePaddingHorizontal:Xn,calc:Gn}=Ze;return{[`${Re}-wrapper`]:{[`${Re}-selection-col`]:{width:Ln,[`&${Re}-selection-col-with-dropdown`]:{width:Gn(Ln).add(an).add(Gn(pn).div(4)).equal()}},[`${Re}-bordered ${Re}-selection-col`]:{width:Gn(Ln).add(Gn(Mn).mul(2)).equal(),[`&${Re}-selection-col-with-dropdown`]:{width:Gn(Ln).add(an).add(Gn(pn).div(4)).add(Gn(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",[`${Ft}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Re}-selection-column${Re}-cell-fix-left`]:{zIndex:Gn(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,Gr.unit)(Gn(Xn).div(4).equal()),[$t]:{color:In,fontSize:an,verticalAlign:"baseline","&:hover":{color:zn}}},[`${Re}-tbody`]:{[`${Re}-row`]:{[`&${Re}-row-selected`]:{[`> ${Re}-cell`]:{background:Br,"&-row-hover":{background:lr}}},[`> ${Re}-cell-row-hover`]:{background:nr}}}}}},xu=Ze=>{const{componentCls:Re,tableExpandColumnWidth:Ft,calc:$t}=Ze,an=(pn,Mn,In,zn)=>({[`${Re}${Re}-${pn}`]:{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,Gr.unit)(Mn)} ${(0,Gr.unit)(In)}`},[`${Re}-filter-trigger`]:{marginInlineEnd:(0,Gr.unit)($t(In).div(2).mul(-1).equal())},[`${Re}-expanded-row-fixed`]:{margin:`${(0,Gr.unit)($t(Mn).mul(-1).equal())} ${(0,Gr.unit)($t(In).mul(-1).equal())}`},[`${Re}-tbody`]:{[`${Re}-wrapper:only-child ${Re}`]:{marginBlock:(0,Gr.unit)($t(Mn).mul(-1).equal()),marginInline:`${(0,Gr.unit)($t(Ft).sub(In).equal())} ${(0,Gr.unit)($t(In).mul(-1).equal())}`}},[`${Re}-selection-extra`]:{paddingInlineStart:(0,Gr.unit)($t(In).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))}},Lu=Ze=>{const{componentCls:Re,marginXXS:Ft,fontSizeIcon:$t,headerIconColor:an,headerIconHoverColor:pn}=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:Ft,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:pn}}}},_a=Ze=>{const{componentCls:Re,opacityLoading:Ft,tableScrollThumbBg:$t,tableScrollThumbBgHover:an,tableScrollThumbSize:pn,tableScrollBg:Mn,zIndexTableSticky:In,stickyScrollBarBorderRadius:zn,lineWidth:Ln,lineType:Br,tableBorderColor:lr}=Ze,nr=`${(0,Gr.unit)(Ln)} ${Br} ${lr}`;return{[`${Re}-wrapper`]:{[`${Re}-sticky`]:{"&-holder":{position:"sticky",zIndex:In,background:Ze.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Gr.unit)(pn)} !important`,zIndex:In,display:"flex",alignItems:"center",background:Mn,borderTop:nr,opacity:Ft,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:pn,backgroundColor:$t,borderRadius:zn,transition:`all ${Ze.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:an}}}}}}},Ta=Ze=>{const{componentCls:Re,lineWidth:Ft,tableBorderColor:$t,calc:an}=Ze,pn=`${(0,Gr.unit)(Ft)} ${Ze.lineType} ${$t}`;return{[`${Re}-wrapper`]:{[`${Re}-summary`]:{position:"relative",zIndex:Ze.zIndexTableFixed,background:Ze.tableBg,"> tr":{"> th, > td":{borderBottom:pn}}},[`div${Re}-summary`]:{boxShadow:`0 ${(0,Gr.unit)(an(Ft).mul(-1).equal())} 0 ${$t}`}}}},Zi=Ze=>{const{componentCls:Re,motionDurationMid:Ft,lineWidth:$t,lineType:an,tableBorderColor:pn,calc:Mn}=Ze,In=`${(0,Gr.unit)($t)} ${an} ${pn}`,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:In,transition:`background ${Ft}`},[`${Re}-expanded-row`]:{[`${zn}${zn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Gr.unit)($t)})`,borderInlineEnd:"none"}}},[`${Re}-bordered`]:{[`${Re}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:In,position:"absolute"},[`${Re}-cell`]:{borderInlineEnd:In,[`&${Re}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Mn($t).mul(-1).equal(),borderInlineStart:In}}},[`&${Re}-virtual`]:{[`${Re}-placeholder ${Re}-cell`]:{borderInlineEnd:In,borderBottom:In}}}}}};const Ki=Ze=>{const{componentCls:Re,fontWeightStrong:Ft,tablePaddingVertical:$t,tablePaddingHorizontal:an,tableExpandColumnWidth:pn,lineWidth:Mn,lineType:In,tableBorderColor:zn,tableFontSize:Ln,tableBg:Br,tableRadius:lr,tableHeaderTextColor:nr,motionDurationMid:Xn,tableHeaderBg:Gn,tableHeaderCellSplitColor:ia,tableFooterTextColor:_r,tableFooterBg:da,calc:Ea}=Ze,Jr=`${(0,Gr.unit)(Mn)} ${In} ${zn}`;return{[`${Re}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Po.dF)()),{[Re]:Object.assign(Object.assign({},(0,Po.Wf)(Ze)),{fontSize:Ln,background:Br,borderRadius:`${(0,Gr.unit)(lr)} ${(0,Gr.unit)(lr)} 0 0`,scrollbarColor:`${Ze.tableScrollThumbBg} ${Ze.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Gr.unit)(lr)} ${(0,Gr.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,Gr.unit)($t)} ${(0,Gr.unit)(an)}`,overflowWrap:"break-word"},[`${Re}-title`]:{padding:`${(0,Gr.unit)($t)} ${(0,Gr.unit)(an)}`},[`${Re}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:nr,fontWeight:Ft,textAlign:"start",background:Gn,borderBottom:Jr,transition:`background ${Xn} 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 ${Xn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Re}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Xn}, border-color ${Xn}`,borderBottom:Jr,[`
|
|
|
> ${Re}-wrapper:only-child,
|
|
|
> ${Re}-expanded-row-fixed > ${Re}-wrapper:only-child
|
|
|
`]:{[Re]:{marginBlock:(0,Gr.unit)(Ea($t).mul(-1).equal()),marginInline:`${(0,Gr.unit)(Ea(pn).sub(an).equal())}
|
|
|
${(0,Gr.unit)(Ea(an).mul(-1).equal())}`,[`${Re}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:nr,fontWeight:Ft,textAlign:"start",background:Gn,borderBottom:Jr,transition:`background ${Xn} ease`}}},[`${Re}-footer`]:{padding:`${(0,Gr.unit)($t)} ${(0,Gr.unit)(an)}`,color:_r,background:da}})}},ko=Ze=>{const{colorFillAlter:Re,colorBgContainer:Ft,colorTextHeading:$t,colorFillSecondary:an,colorFillContent:pn,controlItemBgActive:Mn,controlItemBgActiveHover:In,padding:zn,paddingSM:Ln,paddingXS:Br,colorBorderSecondary:lr,borderRadiusLG:nr,controlHeight:Xn,colorTextPlaceholder:Gn,fontSize:ia,fontSizeSM:_r,lineHeight:da,lineWidth:Ea,colorIcon:Jr,colorIconHover:Aa,opacityLoading:La,controlInteractiveSize:Qa}=Ze,Ga=new bo.FastColor(an).onBackground(Ft).toHexString(),eo=new bo.FastColor(pn).onBackground(Ft).toHexString(),Si=new bo.FastColor(Re).onBackground(Ft).toHexString(),vi=new bo.FastColor(Jr),$i=new bo.FastColor(Aa),qa=Qa/2-Ea,ti=qa*2+Ea*3;return{headerBg:Si,headerColor:$t,headerSortActiveBg:Ga,headerSortHoverBg:eo,bodySortBg:Si,rowHoverBg:Si,rowSelectedBg:Mn,rowSelectedHoverBg:In,rowExpandedBg:Re,cellPaddingBlock:zn,cellPaddingInline:zn,cellPaddingBlockMD:Ln,cellPaddingInlineMD:Br,cellPaddingBlockSM:Br,cellPaddingInlineSM:Br,borderColor:lr,headerBorderRadius:nr,footerBg:Si,footerColor:$t,cellFontSize:ia,cellFontSizeMD:ia,cellFontSizeSM:ia,headerSplitColor:lr,fixedHeaderSortActiveBg:Ga,headerFilterHoverBg:pn,filterDropdownMenuBg:Ft,filterDropdownBg:Ft,expandIconBg:Ft,selectionColumnWidth:Xn,stickyScrollBarBg:Gn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(ia*da-Ea*3)/2-Math.ceil((_r*1.4-Ea*3)/2),headerIconColor:vi.clone().setA(vi.a*La).toRgbString(),headerIconHoverColor:$i.clone().setA($i.a*La).toRgbString(),expandIconHalfInner:qa,expandIconSize:ti,expandIconScale:Qa/ti}},Xi=2;var dl=(0,Eo.I$)("Table",Ze=>{const{colorTextHeading:Re,colorSplit:Ft,colorBgContainer:$t,controlInteractiveSize:an,headerBg:pn,headerColor:Mn,headerSortActiveBg:In,headerSortHoverBg:zn,bodySortBg:Ln,rowHoverBg:Br,rowSelectedBg:lr,rowSelectedHoverBg:nr,rowExpandedBg:Xn,cellPaddingBlock:Gn,cellPaddingInline:ia,cellPaddingBlockMD:_r,cellPaddingInlineMD:da,cellPaddingBlockSM:Ea,cellPaddingInlineSM:Jr,borderColor:Aa,footerBg:La,footerColor:Qa,headerBorderRadius:Ga,cellFontSize:eo,cellFontSizeMD:Si,cellFontSizeSM:vi,headerSplitColor:$i,fixedHeaderSortActiveBg:qa,headerFilterHoverBg:ti,filterDropdownBg:Ra,expandIconBg:Ca,selectionColumnWidth:Ja,stickyScrollBarBg:ni,calc:wi}=Ze,Ma=(0,yl.mergeToken)(Ze,{tableFontSize:eo,tableBg:$t,tableRadius:Ga,tablePaddingVertical:Gn,tablePaddingHorizontal:ia,tablePaddingVerticalMiddle:_r,tablePaddingHorizontalMiddle:da,tablePaddingVerticalSmall:Ea,tablePaddingHorizontalSmall:Jr,tableBorderColor:Aa,tableHeaderTextColor:Mn,tableHeaderBg:pn,tableFooterTextColor:Qa,tableFooterBg:La,tableHeaderCellSplitColor:$i,tableHeaderSortBg:In,tableHeaderSortHoverBg:zn,tableBodySortBg:Ln,tableFixedHeaderSortActiveBg:qa,tableHeaderFilterActiveBg:ti,tableFilterDropdownBg:Ra,tableRowHoverBg:Br,tableSelectedRowBg:lr,tableSelectedRowHoverBg:nr,zIndexTableFixed:Xi,zIndexTableSticky:wi(Xi).add(1).equal({unit:!1}),tableFontSizeMiddle:Si,tableFontSizeSmall:vi,tableSelectionColumnWidth:Ja,tableExpandIconBg:Ca,tableExpandColumnWidth:wi(an).add(wi(Ze.padding).mul(2)).equal(),tableExpandedRowBg:Xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ni,tableScrollThumbBgHover:Re,tableScrollBg:Ft});return[Ki(Ma),Rs(Ma),Ta(Ma),Lu(Ma),Is(Ma),Ms(Ma),Us(Ma),Ss(Ma),Ta(Ma),tu(Ma),As(Ma),Ws(Ma),_a(Ma),xs(Ma),xu(Ma),Cu(Ma),Zi(Ma)]},ko,{unitless:{expandIconScale:!0}});const Ro=[],ys=(Ze,Re)=>{var Ft,$t;const{prefixCls:an,className:pn,rootClassName:Mn,style:In,size:zn,bordered:Ln,dropdownPrefixCls:Br,dataSource:lr,pagination:nr,rowSelection:Xn,rowKey:Gn="key",rowClassName:ia,columns:_r,children:da,childrenColumnName:Ea,onChange:Jr,getPopupContainer:Aa,loading:La,expandIcon:Qa,expandable:Ga,expandedRowRender:eo,expandIconColumnIndex:Si,indentSize:vi,scroll:$i,sortDirections:qa,locale:ti,showSorterTooltip:Ra={target:"full-header"},virtual:Ca}=Ze,Ja=(0,gi.ln)("Table"),ni=y.useMemo(()=>_r||An(da),[_r,da]),wi=y.useMemo(()=>ni.some(io=>io.responsive),[ni]),Ma=(0,Nl.Z)(wi),lo=y.useMemo(()=>{const io=new Set(Object.keys(Ma).filter(wo=>Ma[wo]));return ni.filter(wo=>!wo.responsive||wo.responsive.some(fl=>io.has(fl)))},[ni,Ma]),so=(0,So.Z)(Ze,["className","style","columns"]),{locale:pl=Ul.Z,direction:ul,table:el,renderEmpty:ol,getPrefixCls:El,getPopupContainer:mo}=y.useContext(Ol.E_),yo=(0,no.Z)(zn),ll=Object.assign(Object.assign({},pl.Table),ti),cl=lr||Ro,fi=El("table",an),qi=El("dropdown",Br),[,li]=(0,es.ZP)(),Ua=(0,Yo.Z)(fi),[po,To,sl]=dl(fi,Ua),Co=Object.assign(Object.assign({childrenColumnName:Ea,expandIconColumnIndex:Si},Ga),{expandIcon:(Ft=Ga==null?void 0:Ga.expandIcon)!==null&&Ft!==void 0?Ft:($t=el==null?void 0:el.expandable)===null||$t===void 0?void 0:$t.expandIcon}),{childrenColumnName:hl="children"}=Co,Bl=y.useMemo(()=>cl.some(io=>io==null?void 0:io[hl])?"nest":eo||Ga!=null&&Ga.expandedRowRender?"row":null,[cl]),Bi={body:y.useRef(null)},Ri=Qi(fi),Do=y.useRef(null),zo=y.useRef(null);il(Re,()=>Object.assign(Object.assign({},zo.current),{nativeElement:Do.current}));const jo=y.useMemo(()=>typeof Gn=="function"?Gn:io=>io==null?void 0:io[Gn],[Gn]),[Ml]=Va(cl,hl,jo),Cl={},Yl=function(io,wo){let fl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var xl,zl,Sl,Ds;const Gl=Object.assign(Object.assign({},Cl),io);fl&&((xl=Cl.resetPagination)===null||xl===void 0||xl.call(Cl),!((zl=Gl.pagination)===null||zl===void 0)&&zl.current&&(Gl.pagination.current=1),nr&&((Sl=nr.onChange)===null||Sl===void 0||Sl.call(nr,1,(Ds=Gl.pagination)===null||Ds===void 0?void 0:Ds.pageSize))),$i&&$i.scrollToFirstRowOnChange!==!1&&Bi.body.current&&(0,$l.Z)(0,{getContainer:()=>Bi.body.current}),Jr==null||Jr(Gl.pagination,Gl.filters,Gl.sorter,{currentDataSource:si(ca(cl,Gl.sorterStates,hl),Gl.filterStates,hl),action:wo})},Go=(io,wo)=>{Yl({sorter:io,sorterStates:wo},"sort",!1)},[Ao,Xo,tl,Dl]=Pa({prefixCls:fi,mergedColumns:lo,onSorterChange:Go,sortDirections:qa||["ascend","descend"],tableLocale:ll,showSorterTooltip:Ra}),vl=y.useMemo(()=>ca(cl,Xo,hl),[cl,Xo]);Cl.sorter=Dl(),Cl.sorterStates=Xo;const Oo=(io,wo)=>{Yl({filters:io,filterStates:wo},"filter",!0)},[nl,Lo,Kl]=rn({prefixCls:fi,locale:ll,dropdownPrefixCls:qi,mergedColumns:lo,onFilterChange:Oo,getPopupContainer:Aa||mo,rootClassName:xe()(Mn,Ua)}),gl=si(vl,Lo,hl);Cl.filters=Kl,Cl.filterStates=Lo;const ts=y.useMemo(()=>{const io={};return Object.keys(Kl).forEach(wo=>{Kl[wo]!==null&&(io[wo]=Kl[wo])}),Object.assign(Object.assign({},tl),{filters:io})},[tl,Kl]),[os]=Ko(ts),Bs=(io,wo)=>{Yl({pagination:Object.assign(Object.assign({},Cl.pagination),{current:io,pageSize:wo})},"paginate")},[rl,fu]=aa(gl.length,Bs,nr);Cl.pagination=nr===!1?{}:pr(rl,nr),Cl.resetPagination=fu;const ls=y.useMemo(()=>{if(nr===!1||!rl.pageSize)return gl;const{current:io=1,total:wo,pageSize:fl=qn}=rl;return gl.length<wo?gl.length>fl?gl.slice((io-1)*fl,io*fl):gl:gl.slice((io-1)*fl,io*fl)},[!!nr,gl,rl==null?void 0:rl.current,rl==null?void 0:rl.pageSize,rl==null?void 0:rl.total]),[bs,Es]=ri({prefixCls:fi,data:gl,pageData:ls,getRowKey:jo,getRecordByKey:Ml,expandType:Bl,childrenColumnName:hl,locale:ll,getPopupContainer:Aa||mo},Xn),Wl=(io,wo,fl)=>{let xl;return typeof ia=="function"?xl=xe()(ia(io,wo,fl)):xl=xe()(ia),xe()({[`${fi}-row-selected`]:Es.has(jo(io,wo))},xl)};Co.__PARENT_RENDER_ICON__=Co.expandIcon,Co.expandIcon=Co.expandIcon||Qa||Ni(ll),Bl==="nest"&&Co.expandIconColumnIndex===void 0?Co.expandIconColumnIndex=Xn?1:0:Co.expandIconColumnIndex>0&&Xn&&(Co.expandIconColumnIndex-=1),typeof Co.indentSize!="number"&&(Co.indentSize=typeof vi=="number"?vi:15);const al=y.useCallback(io=>os(bs(nl(Ao(io)))),[Ao,nl,bs]);let ss,Hs;if(nr!==!1&&(rl!=null&&rl.total)){let io;rl.size?io=rl.size:io=yo==="small"||yo==="middle"?"small":void 0;const wo=zl=>y.createElement(_l.Z,Object.assign({},rl,{className:xe()(`${fi}-pagination ${fi}-pagination-${zl}`,rl.className),size:io})),fl=ul==="rtl"?"left":"right",{position:xl}=rl;if(xl!==null&&Array.isArray(xl)){const zl=xl.find(Gl=>Gl.includes("top")),Sl=xl.find(Gl=>Gl.includes("bottom")),Ds=xl.every(Gl=>`${Gl}`=="none");!zl&&!Sl&&!Ds&&(Hs=wo(fl)),zl&&(ss=wo(zl.toLowerCase().replace("top",""))),Sl&&(Hs=wo(Sl.toLowerCase().replace("bottom","")))}else Hs=wo(fl)}let Os;typeof La=="boolean"?Os={spinning:La}:typeof La=="object"&&(Os=Object.assign({spinning:!0},La));const Ns=xe()(sl,Ua,`${fi}-wrapper`,el==null?void 0:el.className,{[`${fi}-wrapper-rtl`]:ul==="rtl"},pn,Mn,To),nu=Object.assign(Object.assign({},el==null?void 0:el.style),In),mu=typeof(ti==null?void 0:ti.emptyText)!="undefined"?ti.emptyText:(ol==null?void 0:ol("Table"))||y.createElement(Vo.Z,{componentName:"Table"}),Su=Ca?Pl:Oi,wu={},Zu=y.useMemo(()=>{const{fontSize:io,lineHeight:wo,lineWidth:fl,padding:xl,paddingXS:zl,paddingSM:Sl}=li,Ds=Math.floor(io*wo);switch(yo){case"middle":return Sl*2+Ds+fl;case"small":return zl*2+Ds+fl;default:return xl*2+Ds+fl}},[li,yo]);return Ca&&(wu.listItemHeight=Zu),po(y.createElement("div",{ref:Do,className:Ns,style:nu},y.createElement(Io.Z,Object.assign({spinning:!1},Os),ss,y.createElement(Su,Object.assign({},wu,so,{ref:zo,columns:lo,direction:ul,expandable:Co,prefixCls:fi,className:xe()({[`${fi}-middle`]:yo==="middle",[`${fi}-small`]:yo==="small",[`${fi}-bordered`]:Ln,[`${fi}-empty`]:cl.length===0},sl,Ua,To),data:ls,rowKey:jo,rowClassName:Wl,emptyText:mu,internalHooks:ce,internalRefs:Bi,transformColumns:al,getContainerWidth:Ri})),Hs)))};var Xs=y.forwardRef(ys);const yi=(Ze,Re)=>{const Ft=y.useRef(0);return Ft.current+=1,y.createElement(Xs,Object.assign({},Ze,{ref:Re,_renderTimes:Ft.current}))},bl=y.forwardRef(yi);bl.SELECTION_COLUMN=Yi,bl.EXPAND_COLUMN=ge,bl.SELECTION_ALL=co,bl.SELECTION_INVERT=No,bl.SELECTION_NONE=$o,bl.Column=sa,bl.ColumnGroup=Dr,bl.Summary=Ke;var is=bl,jl=is},96599:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return xe}});var y=E(59301),ge=E(92310),ce=E.n(ge),_e=E(2738),Se=E(29509),Ee=E(78776),Ce=E(22703),ke=E(12919),De=E(48755),fe=E(36237),We=E(17835),Te=E(63356),dt=E(51636),Ge=E(16931);const Ne=de=>{const{paddingXXS:Ct,lineWidth:Ye,tagPaddingHorizontal:je,componentCls:it,calc:Ie}=de,ye=Ie(je).sub(Ye).equal(),vt=Ie(Ct).sub(Ye).equal();return{[it]:Object.assign(Object.assign({},(0,Te.Wf)(de)),{display:"inline-block",height:"auto",marginInlineEnd:de.marginXS,paddingInline:ye,fontSize:de.tagFontSize,lineHeight:de.tagLineHeight,whiteSpace:"nowrap",background:de.defaultBg,border:`${(0,fe.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadiusSM,opacity:1,transition:`all ${de.motionDurationMid}`,textAlign:"start",position:"relative",[`&${it}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:de.defaultColor},[`${it}-close-icon`]:{marginInlineStart:vt,fontSize:de.tagIconSize,color:de.colorTextDescription,cursor:"pointer",transition:`all ${de.motionDurationMid}`,"&:hover":{color:de.colorTextHeading}},[`&${it}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${de.iconCls}-close, ${de.iconCls}-close:hover`]:{color:de.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${it}-checkable-checked):hover`]:{color:de.colorPrimary,backgroundColor:de.colorFillSecondary},"&:active, &-checked":{color:de.colorTextLightSolid},"&-checked":{backgroundColor:de.colorPrimary,"&:hover":{backgroundColor:de.colorPrimaryHover}},"&:active":{backgroundColor:de.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${de.iconCls} + span, > span + ${de.iconCls}`]:{marginInlineStart:ye}}),[`${it}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},we=de=>{const{lineWidth:Ct,fontSizeIcon:Ye,calc:je}=de,it=de.fontSizeSM;return(0,dt.mergeToken)(de,{tagFontSize:it,tagLineHeight:(0,fe.unit)(je(de.lineHeightSM).mul(it).equal()),tagIconSize:je(Ye).sub(je(Ct).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},Pe=de=>({defaultBg:new We.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var Fe=(0,Ge.I$)("Tag",de=>{const Ct=we(de);return Ne(Ct)},Pe),et=function(de,Ct){var Ye={};for(var je in de)Object.prototype.hasOwnProperty.call(de,je)&&Ct.indexOf(je)<0&&(Ye[je]=de[je]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,je=Object.getOwnPropertySymbols(de);it<je.length;it++)Ct.indexOf(je[it])<0&&Object.prototype.propertyIsEnumerable.call(de,je[it])&&(Ye[je[it]]=de[je[it]]);return Ye},Ae=y.forwardRef((de,Ct)=>{const{prefixCls:Ye,style:je,className:it,checked:Ie,onChange:ye,onClick:vt}=de,Ht=et(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Et,tag:Be}=y.useContext(De.E_),ft=un=>{ye==null||ye(!Ie),vt==null||vt(un)},ot=Et("tag",Ye),[Xt,xt,wt]=Fe(ot),ht=ce()(ot,`${ot}-checkable`,{[`${ot}-checkable-checked`]:Ie},Be==null?void 0:Be.className,it,xt,wt);return Xt(y.createElement("span",Object.assign({},Ht,{ref:Ct,style:Object.assign(Object.assign({},je),Be==null?void 0:Be.style),className:ht,onClick:ft})))}),Oe=E(93427);const qe=de=>(0,Oe.Z)(de,(Ct,Ye)=>{let{textColor:je,lightBorderColor:it,lightColor:Ie,darkColor:ye}=Ye;return{[`${de.componentCls}${de.componentCls}-${Ct}`]:{color:je,background:Ie,borderColor:it,"&-inverse":{color:de.colorTextLightSolid,background:ye,borderColor:ye},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Je=(0,Ge.bk)(["Tag","preset"],de=>{const Ct=we(de);return qe(Ct)},Pe);function ct(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const bt=(de,Ct,Ye)=>{const je=ct(Ye);return{[`${de.componentCls}${de.componentCls}-${Ct}`]:{color:de[`color${Ye}`],background:de[`color${je}Bg`],borderColor:de[`color${je}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var st=(0,Ge.bk)(["Tag","status"],de=>{const Ct=we(de);return[bt(Ct,"success","Success"),bt(Ct,"processing","Info"),bt(Ct,"error","Error"),bt(Ct,"warning","Warning")]},Pe),$e=function(de,Ct){var Ye={};for(var je in de)Object.prototype.hasOwnProperty.call(de,je)&&Ct.indexOf(je)<0&&(Ye[je]=de[je]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,je=Object.getOwnPropertySymbols(de);it<je.length;it++)Ct.indexOf(je[it])<0&&Object.prototype.propertyIsEnumerable.call(de,je[it])&&(Ye[je[it]]=de[je[it]]);return Ye};const Le=y.forwardRef((de,Ct)=>{const{prefixCls:Ye,className:je,rootClassName:it,style:Ie,children:ye,icon:vt,color:Ht,onClose:Et,bordered:Be=!0,visible:ft}=de,ot=$e(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Xt,direction:xt,tag:wt}=y.useContext(De.E_),[ht,un]=y.useState(!0),zt=(0,_e.Z)(ot,["closeIcon","closable"]);y.useEffect(()=>{ft!==void 0&&un(ft)},[ft]);const ue=(0,Se.o2)(Ht),ae=(0,Se.yT)(Ht),re=ue||ae,se=Object.assign(Object.assign({backgroundColor:Ht&&!re?Ht:void 0},wt==null?void 0:wt.style),Ie),he=Xt("tag",Ye),[ie,me,He]=Fe(he),It=ce()(he,wt==null?void 0:wt.className,{[`${he}-${Ht}`]:re,[`${he}-has-color`]:Ht&&!re,[`${he}-hidden`]:!ht,[`${he}-rtl`]:xt==="rtl",[`${he}-borderless`]:!Be},je,it,me,He),Xe=tt=>{tt.stopPropagation(),Et==null||Et(tt),!tt.defaultPrevented&&un(!1)},[,Ke]=(0,Ee.Z)((0,Ee.w)(de),(0,Ee.w)(wt),{closable:!1,closeIconRender:tt=>{const Vt=y.createElement("span",{className:`${he}-close-icon`,onClick:Xe},tt);return(0,Ce.wm)(tt,Vt,on=>({onClick:Fn=>{var gn;(gn=on==null?void 0:on.onClick)===null||gn===void 0||gn.call(on,Fn),Xe(Fn)},className:ce()(on==null?void 0:on.className,`${he}-close-icon`)}))}}),yt=typeof ot.onClick=="function"||ye&&ye.type==="a",Bt=vt||null,_t=Bt?y.createElement(y.Fragment,null,Bt,ye&&y.createElement("span",null,ye)):ye,Qe=y.createElement("span",Object.assign({},zt,{ref:Ct,className:It,style:se}),_t,Ke,ue&&y.createElement(Je,{key:"preset",prefixCls:he}),ae&&y.createElement(st,{key:"status",prefixCls:he}));return ie(yt?y.createElement(ke.Z,{component:"Tag"},Qe):Qe)});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),ce=E.n(ge),_e=E(48755),Se=E(83397),Ee=E(36237),Ce=E(63356),ke=E(16931),De=E(51636);const fe=$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,De.mergeToken)($e,{itemHeadSize:10,customHeadPaddingVertical:$e.paddingXXS,paddingInlineEnd:2});return[fe(pe)]},We),dt=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 de=0,xe=Object.getOwnPropertySymbols($e);de<xe.length;de++)pe.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[de])&&(Le[xe[de]]=$e[xe[de]]);return Le},Ne=$e=>{var{prefixCls:pe,className:Le,color:xe="blue",dot:de,pending:Ct=!1,position:Ye,label:je,children:it}=$e,Ie=dt($e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:ye}=y.useContext(_e.E_),vt=ye("timeline",pe),Ht=ce()(`${vt}-item`,{[`${vt}-item-pending`]:Ct},Le),Et=/blue|red|green|gray/.test(xe||"")?void 0:xe,Be=ce()(`${vt}-item-head`,{[`${vt}-item-head-custom`]:!!de,[`${vt}-item-head-${xe}`]:!Et});return y.createElement("li",Object.assign({},Ie,{className:Ht}),je&&y.createElement("div",{className:`${vt}-item-label`},je),y.createElement("div",{className:`${vt}-item-tail`}),y.createElement("div",{className:Be,style:{borderColor:Et,color:Et}},de),y.createElement("div",{className:`${vt}-item-content`},it))},we=E(77654),Pe=E(58617),Fe=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 de=0,xe=Object.getOwnPropertySymbols($e);de<xe.length;de++)pe.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[de])&&(Le[xe[de]]=$e[xe[de]]);return Le},St=$e=>{var{prefixCls:pe,className:Le,pending:xe=!1,children:de,items:Ct,rootClassName:Ye,reverse:je=!1,direction:it,hashId:Ie,pendingDot:ye,mode:vt=""}=$e,Ht=Fe($e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const Et=(un,zt)=>vt==="alternate"?un==="right"?`${pe}-item-right`:un==="left"?`${pe}-item-left`:zt%2===0?`${pe}-item-left`:`${pe}-item-right`:vt==="left"?`${pe}-item-left`:vt==="right"?`${pe}-item-right`:un==="right"?`${pe}-item-right`:"",Be=(0,we.Z)(Ct||[]),ft=typeof xe=="boolean"?null:xe;xe&&Be.push({pending:!!xe,dot:ye||y.createElement(Pe.Z,null),children:ft}),je&&Be.reverse();const ot=Be.length,Xt=`${pe}-item-last`,xt=Be.filter(un=>!!un).map((un,zt)=>{var ue;const ae=zt===ot-2?Xt:"",re=zt===ot-1?Xt:"",{className:se}=un,he=Fe(un,["className"]);return y.createElement(Ne,Object.assign({},he,{className:ce()([se,!je&&xe?ae:re,Et((ue=un==null?void 0:un.position)!==null&&ue!==void 0?ue:"",zt)]),key:(un==null?void 0:un.key)||zt}))}),wt=Be.some(un=>!!(un!=null&&un.label)),ht=ce()(pe,{[`${pe}-pending`]:!!xe,[`${pe}-reverse`]:!!je,[`${pe}-${vt}`]:!!vt&&!wt,[`${pe}-label`]:wt,[`${pe}-rtl`]:it==="rtl"},Le,Ye,Ie);return y.createElement("ul",Object.assign({},Ht,{className:ht}),xt)},Ae=E(11592);function Oe($e,pe){return $e&&Array.isArray($e)?$e:(0,Ae.Z)(pe).map(Le=>{var xe,de;return Object.assign({children:(de=(xe=Le==null?void 0:Le.props)===null||xe===void 0?void 0:xe.children)!==null&&de!==void 0?de:""},Le.props)})}var qe=Oe,Je=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 de=0,xe=Object.getOwnPropertySymbols($e);de<xe.length;de++)pe.indexOf(xe[de])<0&&Object.prototype.propertyIsEnumerable.call($e,xe[de])&&(Le[xe[de]]=$e[xe[de]]);return Le};const ct=$e=>{const{getPrefixCls:pe,direction:Le,timeline:xe}=y.useContext(_e.E_),{prefixCls:de,children:Ct,items:Ye,className:je,style:it}=$e,Ie=Je($e,["prefixCls","children","items","className","style"]),ye=pe("timeline",de),vt=(0,Se.Z)(ye),[Ht,Et,Be]=Te(ye,vt),ft=qe(Ye,Ct);return Ht(y.createElement(St,Object.assign({},Ie,{className:ce()(xe==null?void 0:xe.className,je,Be,vt),style:Object.assign(Object.assign({},xe==null?void 0:xe.style),it),prefixCls:ye,direction:Le,items:ft,hashId:Et})))};ct.Item=Ne;var bt=ct,st=bt},18287:function(Rn,qt,E){"use strict";E.d(qt,{default:function(){return Et}});var y=E(87632),ge=E(77654),ce=E(59301),_e=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,De=E(7657),fe=function(ft,ot){return ce.createElement(De.Z,(0,Ee.Z)({},ft,{ref:ot,icon:ke}))},We=ce.forwardRef(fe),Te=We,dt=E(92310),Ge=E.n(dt),Ne=E(82661),we=E(34061),Pe=E(48755),Fe=E(56082),et=E(86641),St=E(57700),Ae=E(12425);const Oe=4;function qe(Be){const{dropPosition:ft,dropLevelOffset:ot,prefixCls:Xt,indent:xt,direction:wt="ltr"}=Be,ht=wt==="ltr"?"left":"right",un=wt==="ltr"?"right":"left",zt={[ht]:-ot*xt+Oe,[un]:0};switch(ft){case-1:zt.top=-3;break;case 1:zt.bottom=-3;break;default:zt.bottom=-3,zt[ht]=xt+Oe;break}return ce.createElement("div",{style:zt,className:`${Xt}-drop-indicator`})}var Je=qe,ct=E(85278),st=ce.forwardRef((Be,ft)=>{var ot;const{getPrefixCls:Xt,direction:xt,virtual:wt,tree:ht}=ce.useContext(Pe.E_),{prefixCls:un,className:zt,showIcon:ue=!1,showLine:ae,switcherIcon:re,switcherLoadingIcon:se,blockNode:he=!1,children:ie,checkable:me=!1,selectable:He=!0,draggable:It,motion:Xe,style:Ke}=Be,yt=Xt("tree",un),Bt=Xt(),_t=Xe!=null?Xe:Object.assign(Object.assign({},(0,et.Z)(Bt)),{motionAppear:!1}),Qe=Object.assign(Object.assign({},Be),{checkable:me,selectable:He,showIcon:ue,motion:_t,blockNode:he,showLine:!!ae,dropIndicatorRender:Je}),[tt,Vt,on]=(0,Ae.ZP)(yt),[,Fn]=(0,St.ZP)(),gn=Fn.paddingXS/2+(((ot=Fn.Tree)===null||ot===void 0?void 0:ot.titleHeight)||Fn.controlHeightSM),Lt=ce.useMemo(()=>{if(!It)return!1;let jt={};switch(typeof It){case"function":jt.nodeDraggable=It;break;case"object":jt=Object.assign({},It);break;default:break}return jt.icon!==!1&&(jt.icon=jt.icon||ce.createElement(Fe.Z,null)),jt},[It]),Qt=jt=>ce.createElement(ct.Z,{prefixCls:yt,switcherIcon:re,switcherLoadingIcon:se,treeNodeProps:jt,showLine:ae});return tt(ce.createElement(y.ZP,Object.assign({itemHeight:gn,ref:ft,virtual:wt},Qe,{style:Object.assign(Object.assign({},ht==null?void 0:ht.style),Ke),prefixCls:yt,className:Ge()({[`${yt}-icon-hide`]:!ue,[`${yt}-block-node`]:he,[`${yt}-unselectable`]:!He,[`${yt}-rtl`]:xt==="rtl"},ht==null?void 0:ht.className,zt,Vt,on),direction:xt,checkable:me&&ce.createElement("span",{className:`${yt}-checkbox-inner`}),selectable:He,switcherIcon:Qt,draggable:Lt}),ie))});const $e=0,pe=1,Le=2;function xe(Be,ft,ot){const{key:Xt,children:xt}=ot;function wt(ht){const un=ht[Xt],zt=ht[xt];ft(un,ht)!==!1&&xe(zt||[],ft,ot)}Be.forEach(wt)}function de(Be){let{treeData:ft,expandedKeys:ot,startKey:Xt,endKey:xt,fieldNames:wt}=Be;const ht=[];let un=$e;if(Xt&&Xt===xt)return[Xt];if(!Xt||!xt)return[];function zt(ue){return ue===Xt||ue===xt}return xe(ft,ue=>{if(un===Le)return!1;if(zt(ue)){if(ht.push(ue),un===$e)un=pe;else if(un===pe)return un=Le,!1}else un===pe&&ht.push(ue);return ot.includes(ue)},(0,we.w$)(wt)),ht}function Ct(Be,ft,ot){const Xt=(0,ge.Z)(ft),xt=[];return xe(Be,(wt,ht)=>{const un=Xt.indexOf(wt);return un!==-1&&(xt.push(ht),Xt.splice(un,1)),!!Xt.length},(0,we.w$)(ot)),xt}var Ye=function(Be,ft){var ot={};for(var Xt in Be)Object.prototype.hasOwnProperty.call(Be,Xt)&&ft.indexOf(Xt)<0&&(ot[Xt]=Be[Xt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Xt=Object.getOwnPropertySymbols(Be);xt<Xt.length;xt++)ft.indexOf(Xt[xt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Xt[xt])&&(ot[Xt[xt]]=Be[Xt[xt]]);return ot};function je(Be){const{isLeaf:ft,expanded:ot}=Be;return ft?ce.createElement(_e.Z,null):ot?ce.createElement(Se.Z,null):ce.createElement(Te,null)}function it(Be){let{treeData:ft,children:ot}=Be;return ft||(0,we.zn)(ot)}const Ie=(Be,ft)=>{var{defaultExpandAll:ot,defaultExpandParent:Xt,defaultExpandedKeys:xt}=Be,wt=Ye(Be,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ht=ce.useRef(null),un=ce.useRef(null),zt=()=>{const{keyEntities:tt}=(0,we.I8)(it(wt));let Vt;return ot?Vt=Object.keys(tt):Xt?Vt=(0,Ne.r7)(wt.expandedKeys||xt||[],tt):Vt=wt.expandedKeys||xt||[],Vt},[ue,ae]=ce.useState(wt.selectedKeys||wt.defaultSelectedKeys||[]),[re,se]=ce.useState(()=>zt());ce.useEffect(()=>{"selectedKeys"in wt&&ae(wt.selectedKeys)},[wt.selectedKeys]),ce.useEffect(()=>{"expandedKeys"in wt&&se(wt.expandedKeys)},[wt.expandedKeys]);const he=(tt,Vt)=>{var on;return"expandedKeys"in wt||se(tt),(on=wt.onExpand)===null||on===void 0?void 0:on.call(wt,tt,Vt)},ie=(tt,Vt)=>{var on;const{multiple:Fn,fieldNames:gn}=wt,{node:Lt,nativeEvent:Qt}=Vt,{key:jt=""}=Lt,rt=it(wt),Nt=Object.assign(Object.assign({},Vt),{selected:!0}),fn=(Qt==null?void 0:Qt.ctrlKey)||(Qt==null?void 0:Qt.metaKey),yn=Qt==null?void 0:Qt.shiftKey;let lt;Fn&&fn?(lt=tt,ht.current=jt,un.current=lt,Nt.selectedNodes=Ct(rt,lt,gn)):Fn&&yn?(lt=Array.from(new Set([].concat((0,ge.Z)(un.current||[]),(0,ge.Z)(de({treeData:rt,expandedKeys:re,startKey:jt,endKey:ht.current,fieldNames:gn}))))),Nt.selectedNodes=Ct(rt,lt,gn)):(lt=[jt],ht.current=jt,un.current=lt,Nt.selectedNodes=Ct(rt,lt,gn)),(on=wt.onSelect)===null||on===void 0||on.call(wt,lt,Nt),"selectedKeys"in wt||ae(lt)},{getPrefixCls:me,direction:He}=ce.useContext(Pe.E_),{prefixCls:It,className:Xe,showIcon:Ke=!0,expandAction:yt="click"}=wt,Bt=Ye(wt,["prefixCls","className","showIcon","expandAction"]),_t=me("tree",It),Qe=Ge()(`${_t}-directory`,{[`${_t}-directory-rtl`]:He==="rtl"},Xe);return ce.createElement(st,Object.assign({icon:je,ref:ft,blockNode:!0},Bt,{showIcon:Ke,expandAction:yt,prefixCls:_t,className:Qe,expandedKeys:re,selectedKeys:ue,onSelect:ie,onExpand:he}))};var vt=ce.forwardRef(Ie);const Ht=st;Ht.DirectoryTree=vt,Ht.TreeNode=y.OF;var Et=Ht},12425:function(Rn,qt,E){"use strict";E.d(qt,{ZP:function(){return Ne},Yk:function(){return Te},TM:function(){return dt}});var y=E(36237),ge=E(36170),ce=E(63356),_e=E(34961),Se=E(51636),Ee=E(16931);const Ce=we=>{let{treeCls:Pe,treeNodeCls:Fe,directoryNodeSelectedBg:et,directoryNodeSelectedColor:St,motionDurationMid:Ae,borderRadius:Oe,controlItemBgHover:qe}=we;return{[`${Pe}${Pe}-directory ${Fe}`]:{[`${Pe}-node-content-wrapper`]:{position:"static",[`> *:not(${Pe}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Ae}`,content:'""',borderRadius:Oe},"&:hover:before":{background:qe}},[`${Pe}-switcher, ${Pe}-checkbox, ${Pe}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Pe}-switcher, ${Pe}-draggable-icon`]:{color:St},[`${Pe}-node-content-wrapper`]:{color:St,background:"transparent","&:before, &:hover:before":{background:et}}}}}},ke=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),De=(we,Pe)=>({[`.${we}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Pe.motionDurationSlow}`}}}),fe=(we,Pe)=>({[`.${we}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Pe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(Pe.lineWidthBold)} solid ${Pe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),We=(we,Pe)=>{const{treeCls:Fe,treeNodeCls:et,treeNodePadding:St,titleHeight:Ae,indentSize:Oe,nodeSelectedBg:qe,nodeHoverBg:Je,colorTextQuaternary:ct,controlItemBgActiveDisabled:bt}=Pe;return{[Fe]:Object.assign(Object.assign({},(0,ce.Wf)(Pe)),{background:Pe.colorBgContainer,borderRadius:Pe.borderRadius,transition:`background-color ${Pe.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Fe}-rtl ${Fe}-switcher_close ${Fe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Fe}-active-focused)`]:Object.assign({},(0,ce.oN)(Pe)),[`${Fe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Fe}-block-node`]:{[`${Fe}-list-holder-inner`]:{alignItems:"stretch",[`${Fe}-node-content-wrapper`]:{flex:"auto"},[`${et}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Pe.colorPrimary}`,opacity:0,animationName:ke,animationDuration:Pe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Pe.borderRadius}}},[et]:{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 ${Fe}-node-content-wrapper`]:{color:Pe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Fe}-checkbox-disabled + ${Fe}-node-selected,&${et}-disabled${et}-selected ${Fe}-node-content-wrapper`]:{backgroundColor:bt},[`${Fe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${et}-disabled)`]:{[`${Fe}-node-content-wrapper`]:{"&:hover":{color:Pe.nodeHoverColor}}},[`&-active ${Fe}-node-content-wrapper`]:{background:Pe.controlItemBgHover},[`&:not(${et}-disabled).filter-node ${Fe}-title`]:{color:Pe.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Fe}-draggable-icon`]:{flexShrink:0,width:Ae,textAlign:"center",visibility:"visible",color:ct},[`&${et}-disabled ${Fe}-draggable-icon`]:{visibility:"hidden"}}},[`${Fe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Oe}},[`${Fe}-draggable-icon`]:{visibility:"hidden"},[`${Fe}-switcher, ${Fe}-checkbox`]:{marginInlineEnd:Pe.calc(Pe.calc(Ae).sub(Pe.controlInteractiveSize)).div(2).equal()},[`${Fe}-switcher`]:Object.assign(Object.assign({},De(we,Pe)),{position:"relative",flex:"none",alignSelf:"stretch",width:Ae,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Pe.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Ae,height:Ae,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Pe.borderRadius,transition:`all ${Pe.motionDurationSlow}`},[`&:not(${Fe}-switcher-noop):hover:before`]:{backgroundColor:Pe.colorBgTextHover},[`&_close ${Fe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Pe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Pe.calc(Ae).div(2).equal(),bottom:Pe.calc(St).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Pe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Pe.calc(Pe.calc(Ae).div(2).equal()).mul(.8).equal(),height:Pe.calc(Ae).div(2).equal(),borderBottom:`1px solid ${Pe.colorBorder}`,content:'""'}}}),[`${Fe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Ae,paddingBlock:0,paddingInline:Pe.paddingXS,background:"transparent",borderRadius:Pe.borderRadius,cursor:"pointer",transition:`all ${Pe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},fe(we,Pe)),{"&:hover":{backgroundColor:Je},[`&${Fe}-node-selected`]:{color:Pe.nodeSelectedColor,backgroundColor:qe},[`${Fe}-iconEle`]:{display:"inline-block",width:Ae,height:Ae,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Fe}-unselectable ${Fe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${et}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Pe.colorPrimary}`},"&-show-line":{[`${Fe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Pe.calc(Ae).div(2).equal(),bottom:Pe.calc(St).mul(-1).equal(),borderInlineEnd:`1px solid ${Pe.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Fe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${et}-leaf-last ${Fe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(Pe.calc(Ae).div(2).equal())} !important`}})}},Te=function(we,Pe){let Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const et=`.${we}`,St=`${et}-treenode`,Ae=Pe.calc(Pe.paddingXS).div(2).equal(),Oe=(0,Se.mergeToken)(Pe,{treeCls:et,treeNodeCls:St,treeNodePadding:Ae});return[We(we,Oe),Fe&&Ce(Oe)].filter(Boolean)},dt=we=>{const{controlHeightSM:Pe,controlItemBgHover:Fe,controlItemBgActive:et}=we,St=Pe;return{titleHeight:St,indentSize:St,nodeHoverBg:Fe,nodeHoverColor:we.colorText,nodeSelectedBg:et,nodeSelectedColor:we.colorText}},Ge=we=>{const{colorTextLightSolid:Pe,colorPrimary:Fe}=we;return Object.assign(Object.assign({},dt(we)),{directoryNodeSelectedColor:Pe,directoryNodeSelectedBg:Fe})};var Ne=(0,Ee.I$)("Tree",(we,Pe)=>{let{prefixCls:Fe}=Pe;return[{[we.componentCls]:(0,ge.C2)(`${Fe}-checkbox`,we)},Te(Fe,we),(0,_e.Z)(we)]},Ge)},85278:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return Pe}});var y=E(59301),ge=E(60499),ce={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"},_e=ce,Se=E(7657),Ee=function(et,St){return y.createElement(Se.Z,(0,ge.Z)({},et,{ref:St,icon:_e}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(52671),fe=E(58617),We=E(15075),Te=E(43531),dt=E(92310),Ge=E.n(dt),Ne=E(22703),Pe=Fe=>{const{prefixCls:et,switcherIcon:St,treeNodeProps:Ae,showLine:Oe,switcherLoadingIcon:qe}=Fe,{isLeaf:Je,expanded:ct,loading:bt}=Ae;if(bt)return y.isValidElement(qe)?qe:y.createElement(fe.Z,{className:`${et}-switcher-loading-icon`});let st;if(Oe&&typeof Oe=="object"&&(st=Oe.showLeafIcon),Je){if(!Oe)return null;if(typeof st!="boolean"&&st){const Le=typeof st=="function"?st(Ae):st,xe=`${et}-switcher-line-custom-icon`;return y.isValidElement(Le)?(0,Ne.Tm)(Le,{className:Ge()(Le.props.className||"",xe)}):Le}return st?y.createElement(De.Z,{className:`${et}-switcher-line-icon`}):y.createElement("span",{className:`${et}-switcher-leaf-line`})}const $e=`${et}-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:Oe?ct?y.createElement(We.Z,{className:`${et}-switcher-line-icon`}):y.createElement(Te.Z,{className:`${et}-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,De,fe){var We=fe&&fe!=y.Init;if(De&&!We)ke.on("blur",Se),ke.on("change",Ee),ke.on("swapDoc",Ee),y.on(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose=function(){_e(ke)}),Ee(ke);else if(!De&&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","")}De&&!ke.hasFocus()&&Se(ke)});function ge(ke){ke.state.placeholder&&(ke.state.placeholder.parentNode.removeChild(ke.state.placeholder),ke.state.placeholder=null)}function ce(ke){ge(ke);var De=ke.state.placeholder=document.createElement("pre");De.style.cssText="height: 0; overflow: visible",De.style.direction=ke.getOption("direction"),De.className="CodeMirror-placeholder CodeMirror-line-like";var fe=ke.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),De.appendChild(fe),ke.display.lineSpace.insertBefore(De,ke.display.lineSpace.firstChild)}function _e(ke){setTimeout(function(){var De=!1,fe=ke.getInputField();fe.nodeName=="TEXTAREA"?De=!fe.value:ke.lineCount()==1&&(De=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),De?ce(ke):ge(ke)},20)}function Se(ke){Ce(ke)&&ce(ke)}function Ee(ke){var De=ke.getWrapperElement(),fe=Ce(ke);De.className=De.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ce(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:"[]{}"},ce=y.Pos;y.defineOption("autoCloseBrackets",!1,function(Ne,we,Pe){Pe&&Pe!=y.Init&&(Ne.removeKeyMap(Se),Ne.state.closeBrackets=null),we&&(Ee(_e(we,"pairs")),Ne.state.closeBrackets=we,Ne.addKeyMap(Se))});function _e(Ne,we){return we=="pairs"&&typeof Ne=="string"?Ne:typeof Ne=="object"&&Ne[we]!=null?Ne[we]:ge[we]}var Se={Backspace:De,Enter:fe};function Ee(Ne){for(var we=0;we<Ne.length;we++){var Pe=Ne.charAt(we),Fe="'"+Pe+"'";Se[Fe]||(Se[Fe]=Ce(Pe))}}Ee(ge.pairs+"`");function Ce(Ne){return function(we){return Te(we,Ne)}}function ke(Ne){var we=Ne.state.closeBrackets;if(!we||we.override)return we;var Pe=Ne.getModeAt(Ne.getCursor());return Pe.closeBrackets||we}function De(Ne){var we=ke(Ne);if(!we||Ne.getOption("disableInput"))return y.Pass;for(var Pe=_e(we,"pairs"),Fe=Ne.listSelections(),et=0;et<Fe.length;et++){if(!Fe[et].empty())return y.Pass;var St=dt(Ne,Fe[et].head);if(!St||Pe.indexOf(St)%2!=0)return y.Pass}for(var et=Fe.length-1;et>=0;et--){var Ae=Fe[et].head;Ne.replaceRange("",ce(Ae.line,Ae.ch-1),ce(Ae.line,Ae.ch+1),"+delete")}}function fe(Ne){var we=ke(Ne),Pe=we&&_e(we,"explode");if(!Pe||Ne.getOption("disableInput"))return y.Pass;for(var Fe=Ne.listSelections(),et=0;et<Fe.length;et++){if(!Fe[et].empty())return y.Pass;var St=dt(Ne,Fe[et].head);if(!St||Pe.indexOf(St)%2!=0)return y.Pass}Ne.operation(function(){var Ae=Ne.lineSeparator()||`
|
|
|
`;Ne.replaceSelection(Ae+Ae,null),Ne.execCommand("goCharLeft"),Fe=Ne.listSelections();for(var Oe=0;Oe<Fe.length;Oe++){var qe=Fe[Oe].head.line;Ne.indentLine(qe,null,!0),Ne.indentLine(qe+1,null,!0)}})}function We(Ne){var we=y.cmpPos(Ne.anchor,Ne.head)>0;return{anchor:new ce(Ne.anchor.line,Ne.anchor.ch+(we?-1:1)),head:new ce(Ne.head.line,Ne.head.ch+(we?1:-1))}}function Te(Ne,we){var Pe=ke(Ne);if(!Pe||Ne.getOption("disableInput"))return y.Pass;var Fe=_e(Pe,"pairs"),et=Fe.indexOf(we);if(et==-1)return y.Pass;for(var St=_e(Pe,"closeBefore"),Ae=_e(Pe,"triples"),Oe=Fe.charAt(et+1)==we,qe=Ne.listSelections(),Je=et%2==0,ct,bt=0;bt<qe.length;bt++){var st=qe[bt],$e=st.head,pe,Le=Ne.getRange($e,ce($e.line,$e.ch+1));if(Je&&!st.empty())pe="surround";else if((Oe||!Je)&&Le==we)Oe&&Ge(Ne,$e)?pe="both":Ae.indexOf(we)>=0&&Ne.getRange($e,ce($e.line,$e.ch+3))==we+we+we?pe="skipThree":pe="skip";else if(Oe&&$e.ch>1&&Ae.indexOf(we)>=0&&Ne.getRange(ce($e.line,$e.ch-2),$e)==we+we){if($e.ch>2&&/\bstring/.test(Ne.getTokenTypeAt(ce($e.line,$e.ch-2))))return y.Pass;pe="addFour"}else if(Oe){var xe=$e.ch==0?" ":Ne.getRange(ce($e.line,$e.ch-1),$e);if(!y.isWordChar(Le)&&xe!=we&&!y.isWordChar(xe))pe="both";else return y.Pass}else if(Je&&(Le.length===0||/\s/.test(Le)||St.indexOf(Le)>-1))pe="both";else return y.Pass;if(!ct)ct=pe;else if(ct!=pe)return y.Pass}var de=et%2?Fe.charAt(et-1):we,Ct=et%2?we:Fe.charAt(et+1);Ne.operation(function(){if(ct=="skip")Ne.execCommand("goCharRight");else if(ct=="skipThree")for(var Ye=0;Ye<3;Ye++)Ne.execCommand("goCharRight");else if(ct=="surround"){for(var je=Ne.getSelections(),Ye=0;Ye<je.length;Ye++)je[Ye]=de+je[Ye]+Ct;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 ct=="both"?(Ne.replaceSelection(de+Ct,null),Ne.triggerElectric(de+Ct),Ne.execCommand("goCharLeft")):ct=="addFour"&&(Ne.replaceSelection(de+de+de+de,"before"),Ne.execCommand("goCharRight"))})}function dt(Ne,we){var Pe=Ne.getRange(ce(we.line,we.ch-1),ce(we.line,we.ch+1));return Pe.length==2?Pe:null}function Ge(Ne,we){var Pe=Ne.getTokenAt(ce(we.line,we.ch+1));return/\bstring/.test(Pe.type)&&Pe.start==we.ch&&(we.ch==0||!/\bstring/.test(Ne.getTokenTypeAt(we)))}})},6313:function(Rn,qt,E){(function(y){y(E(89780),E(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(De,fe,We){if(We!=y.Init&&We&&De.removeKeyMap("autoCloseTags"),!!fe){var Te={name:"autoCloseTags"};(typeof fe!="object"||fe.whenClosing!==!1)&&(Te["'/'"]=function(dt){return Ee(dt)}),(typeof fe!="object"||fe.whenOpening!==!1)&&(Te["'>'"]=function(dt){return _e(dt)}),De.addKeyMap(Te)}});var ge=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ce=["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 _e(De){if(De.getOption("disableInput"))return y.Pass;for(var fe=De.listSelections(),We=[],Te=De.getOption("autoCloseTags"),dt=0;dt<fe.length;dt++){if(!fe[dt].empty())return y.Pass;var Ge=fe[dt].head,Ne=De.getTokenAt(Ge),we=y.innerMode(De.getMode(),Ne.state),Pe=we.state,Fe=we.mode.xmlCurrentTag&&we.mode.xmlCurrentTag(Pe),et=Fe&&Fe.name;if(!et)return y.Pass;var St=we.mode.configuration=="html",Ae=typeof Te=="object"&&Te.dontCloseTags||St&&ge,Oe=typeof Te=="object"&&Te.indentTags||St&&ce;Ne.end>Ge.ch&&(et=et.slice(0,et.length-Ne.end+Ge.ch));var qe=et.toLowerCase();if(!et||Ne.type=="string"&&(Ne.end!=Ge.ch||!/[\"\']/.test(Ne.string.charAt(Ne.string.length-1))||Ne.string.length==1)||Ne.type=="tag"&&Fe.close||Ne.string.indexOf("/")==Ge.ch-Ne.start-1||Ae&&Ce(Ae,qe)>-1||ke(De,we.mode.xmlCurrentContext&&we.mode.xmlCurrentContext(Pe)||[],et,Ge,!0))return y.Pass;var Je=typeof Te=="object"&&Te.emptyTags;if(Je&&Ce(Je,et)>-1){We[dt]={text:"/>",newPos:y.Pos(Ge.line,Ge.ch+2)};continue}var ct=Oe&&Ce(Oe,qe)>-1;We[dt]={indent:ct,text:">"+(ct?`
|
|
|
|
|
|
`:"")+"</"+et+">",newPos:ct?y.Pos(Ge.line+1,0):y.Pos(Ge.line,Ge.ch+1)}}for(var bt=typeof Te=="object"&&Te.dontIndentOnAutoClose,dt=fe.length-1;dt>=0;dt--){var st=We[dt];De.replaceRange(st.text,fe[dt].head,fe[dt].anchor,"+insert");var $e=De.listSelections().slice(0);$e[dt]={head:st.newPos,anchor:st.newPos},De.setSelections($e),!bt&&st.indent&&(De.indentLine(st.newPos.line,null,!0),De.indentLine(st.newPos.line+1,null,!0))}}function Se(De,fe){for(var We=De.listSelections(),Te=[],dt=fe?"/":"</",Ge=De.getOption("autoCloseTags"),Ne=typeof Ge=="object"&&Ge.dontIndentOnSlash,we=0;we<We.length;we++){if(!We[we].empty())return y.Pass;var Pe=We[we].head,Fe=De.getTokenAt(Pe),et=y.innerMode(De.getMode(),Fe.state),St=et.state;if(fe&&(Fe.type=="string"||Fe.string.charAt(0)!="<"||Fe.start!=Pe.ch-1))return y.Pass;var Ae,Oe=et.mode.name!="xml"&&De.getMode().name=="htmlmixed";if(Oe&&et.mode.name=="javascript")Ae=dt+"script";else if(Oe&&et.mode.name=="css")Ae=dt+"style";else{var qe=et.mode.xmlCurrentContext&&et.mode.xmlCurrentContext(St);if(!qe||qe.length&&ke(De,qe,qe[qe.length-1],Pe))return y.Pass;Ae=dt+qe[qe.length-1]}De.getLine(Pe.line).charAt(Fe.end)!=">"&&(Ae+=">"),Te[we]=Ae}if(De.replaceSelections(Te),We=De.listSelections(),!Ne)for(var we=0;we<We.length;we++)(we==We.length-1||We[we].head.line<We[we+1].head.line)&&De.indentLine(We[we].head.line)}function Ee(De){return De.getOption("disableInput")?y.Pass:Se(De,!0)}y.commands.closeTag=function(De){return Se(De)};function Ce(De,fe){if(De.indexOf)return De.indexOf(fe);for(var We=0,Te=De.length;We<Te;++We)if(De[We]==fe)return We;return-1}function ke(De,fe,We,Te,dt){if(!y.scanForClosingTag)return!1;var Ge=Math.min(De.lastLine()+1,Te.line+500),Ne=y.scanForClosingTag(De,Te,null,Ge);if(!Ne||Ne.tag!=We)return!1;for(var we=dt?1:0,Pe=fe.length-1;Pe>=0&&fe[Pe]==We;Pe--)++we;Te=Ne.to;for(var Pe=1;Pe<we;Pe++){var Fe=y.scanForClosingTag(De,Te,null,Ge);if(!Fe||Fe.tag!=We)return!1;Te=Fe.to}return!0}})},32855:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){"use strict";var ge=y.Pos;function ce(Pe,Fe){return Pe.line-Fe.line||Pe.ch-Fe.ch}var _e="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=_e+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+_e+"]["+Se+"]*)","g");function Ce(Pe,Fe,et,St){this.line=Fe,this.ch=et,this.cm=Pe,this.text=Pe.getLine(Fe),this.min=St?Math.max(St.from,Pe.firstLine()):Pe.firstLine(),this.max=St?Math.min(St.to-1,Pe.lastLine()):Pe.lastLine()}function ke(Pe,Fe){var et=Pe.cm.getTokenTypeAt(ge(Pe.line,Fe));return et&&/\btag\b/.test(et)}function De(Pe){if(!(Pe.line>=Pe.max))return Pe.ch=0,Pe.text=Pe.cm.getLine(++Pe.line),!0}function fe(Pe){if(!(Pe.line<=Pe.min))return Pe.text=Pe.cm.getLine(--Pe.line),Pe.ch=Pe.text.length,!0}function We(Pe){for(;;){var Fe=Pe.text.indexOf(">",Pe.ch);if(Fe==-1){if(De(Pe))continue;return}if(!ke(Pe,Fe+1)){Pe.ch=Fe+1;continue}var et=Pe.text.lastIndexOf("/",Fe),St=et>-1&&!/\S/.test(Pe.text.slice(et+1,Fe));return Pe.ch=Fe+1,St?"selfClose":"regular"}}function Te(Pe){for(;;){var Fe=Pe.ch?Pe.text.lastIndexOf("<",Pe.ch-1):-1;if(Fe==-1){if(fe(Pe))continue;return}if(!ke(Pe,Fe+1)){Pe.ch=Fe;continue}Ee.lastIndex=Fe,Pe.ch=Fe;var et=Ee.exec(Pe.text);if(et&&et.index==Fe)return et}}function dt(Pe){for(;;){Ee.lastIndex=Pe.ch;var Fe=Ee.exec(Pe.text);if(!Fe){if(De(Pe))continue;return}if(!ke(Pe,Fe.index+1)){Pe.ch=Fe.index+1;continue}return Pe.ch=Fe.index+Fe[0].length,Fe}}function Ge(Pe){for(;;){var Fe=Pe.ch?Pe.text.lastIndexOf(">",Pe.ch-1):-1;if(Fe==-1){if(fe(Pe))continue;return}if(!ke(Pe,Fe+1)){Pe.ch=Fe;continue}var et=Pe.text.lastIndexOf("/",Fe),St=et>-1&&!/\S/.test(Pe.text.slice(et+1,Fe));return Pe.ch=Fe+1,St?"selfClose":"regular"}}function Ne(Pe,Fe){for(var et=[];;){var St=dt(Pe),Ae,Oe=Pe.line,qe=Pe.ch-(St?St[0].length:0);if(!St||!(Ae=We(Pe)))return;if(Ae!="selfClose")if(St[1]){for(var Je=et.length-1;Je>=0;--Je)if(et[Je]==St[2]){et.length=Je;break}if(Je<0&&(!Fe||Fe==St[2]))return{tag:St[2],from:ge(Oe,qe),to:ge(Pe.line,Pe.ch)}}else et.push(St[2])}}function we(Pe,Fe){for(var et=[];;){var St=Ge(Pe);if(!St)return;if(St=="selfClose"){Te(Pe);continue}var Ae=Pe.line,Oe=Pe.ch,qe=Te(Pe);if(!qe)return;if(qe[1])et.push(qe[2]);else{for(var Je=et.length-1;Je>=0;--Je)if(et[Je]==qe[2]){et.length=Je;break}if(Je<0&&(!Fe||Fe==qe[2]))return{tag:qe[2],from:ge(Pe.line,Pe.ch),to:ge(Ae,Oe)}}}}y.registerHelper("fold","xml",function(Pe,Fe){for(var et=new Ce(Pe,Fe.line,0);;){var St=dt(et);if(!St||et.line!=Fe.line)return;var Ae=We(et);if(!Ae)return;if(!St[1]&&Ae!="selfClose"){var Oe=ge(et.line,et.ch),qe=Ne(et,St[2]);return qe&&ce(qe.from,Oe)>0?{from:Oe,to:qe.from}:null}}}),y.findMatchingTag=function(Pe,Fe,et){var St=new Ce(Pe,Fe.line,Fe.ch,et);if(!(St.text.indexOf(">")==-1&&St.text.indexOf("<")==-1)){var Ae=We(St),Oe=Ae&&ge(St.line,St.ch),qe=Ae&&Te(St);if(!(!Ae||!qe||ce(St,Fe)>0)){var Je={from:ge(St.line,St.ch),to:Oe,tag:qe[2]};return Ae=="selfClose"?{open:Je,close:null,at:"open"}:qe[1]?{open:we(St,qe[2]),close:Je,at:"close"}:(St=new Ce(Pe,Oe.line,Oe.ch,et),{open:Je,close:Ne(St,qe[2]),at:"open"})}}},y.findEnclosingTag=function(Pe,Fe,et,St){for(var Ae=new Ce(Pe,Fe.line,Fe.ch,et);;){var Oe=we(Ae,St);if(!Oe)break;var qe=new Ce(Pe,Fe.line,Fe.ch,et),Je=Ne(qe,Oe.tag);if(Je)return{open:Oe,close:Je}}},y.scanForClosingTag=function(Pe,Fe,et,St){var Ae=new Ce(Pe,Fe.line,Fe.ch,St?{from:0,to:St}:null);return Ne(Ae,et)}})},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),ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(qt),_e=/Edge\/(\d+)/.exec(qt),Se=ge||ce||_e,Ee=Se&&(ge?document.documentMode||6:+(_e||ce)[1]),Ce=!_e&&/WebKit\//.test(qt),ke=Ce&&/Qt\/\d+\.\d+/.test(qt),De=!_e&&/Chrome\//.test(qt),fe=/Opera\//.test(qt),We=/Apple Computer/.test(navigator.vendor),Te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(qt),dt=/PhantomJS/.test(qt),Ge=!_e&&/AppleWebKit/.test(qt)&&/Mobile\/\w+/.test(qt),Ne=/Android/.test(qt),we=Ge||Ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(qt),Pe=Ge||/Mac/.test(E),Fe=/\bCrOS\b/.test(qt),et=/win/i.test(E),St=fe&&qt.match(/Version\/(\d*\.\d*)/);St&&(St=Number(St[1])),St&&St>=15&&(fe=!1,Ce=!0);var Ae=Pe&&(ke||fe&&(St==null||St<12.11)),Oe=y||Se&&Ee>=9;function qe(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Je=function(a,b){var z=a.className,x=qe(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 ct(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function bt(a,b){return ct(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 de(a,b){var z=a.className;qe(b).test(z)||(a.className+=(z?" ":"")+b)}function Ct(a,b){for(var z=a.split(" "),x=0;x<z.length;x++)z[x]&&!qe(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 Ie(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 Ht=50,Et={toString:function(){return"CodeMirror.Pass"}},Be={scroll:!1},ft={origin:"*mouse"},ot={origin:"+move"};function Xt(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 xt=[""];function wt(a){for(;xt.length<=a;)xt.push(ht(xt)+" ");return xt[a]}function ht(a){return a[a.length-1]}function un(a,b){for(var z=[],x=0;x<a.length;x++)z[x]=b(a[x],x);return z}function zt(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 he(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 me=/[\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 He(a){return a.charCodeAt(0)>=768&&me.test(a)}function It(a,b,z){for(;(z<0?b>0:b<a.length)&&He(a.charAt(b));)b+=z;return b}function Xe(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 yt=null;function Bt(a,b,z){var x;yt=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:yt=ee),le.from==b&&(le.from!=le.to&&z!="before"?x=ee:yt=ee)}return x!=null?x:yt}var _t=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function z(ut){return ut<=247?a.charAt(ut):1424<=ut&&ut<=1524?"R":1536<=ut&&ut<=1785?b.charAt(ut-1536):1774<=ut&&ut<=2220?"r":8192<=ut&&ut<=8203?"w":ut==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,le=/[LRr]/,be=/[Lb1n]/,Me=/[1n]/;function Ue(ut,dn,xn){this.level=ut,this.from=dn,this.to=xn}return function(ut,dn){var xn=dn=="ltr"?"L":"R";if(ut.length==0||dn=="ltr"&&!x.test(ut))return!1;for(var Yn=ut.length,Vn=[],Mr=0;Mr<Yn;++Mr)Vn.push(z(ut.charCodeAt(Mr)));for(var qr=0,wa=xn;qr<Yn;++qr){var Ka=Vn[qr];Ka=="m"?Vn[qr]=wa:wa=Ka}for(var ii=0,Wa=xn;ii<Yn;++ii){var bi=Vn[ii];bi=="1"&&Wa=="r"?Vn[ii]="n":le.test(bi)&&(Wa=bi,bi=="r"&&(Vn[ii]="R"))}for(var to=1,Gi=Vn[0];to<Yn-1;++to){var Bo=Vn[to];Bo=="+"&&Gi=="1"&&Vn[to+1]=="1"?Vn[to]="1":Bo==","&&Gi==Vn[to+1]&&(Gi=="1"||Gi=="n")&&(Vn[to]=Gi),Gi=Bo}for(var ml=0;ml<Yn;++ml){var ql=Vn[ml];if(ql==",")Vn[ml]="N";else if(ql=="%"){var Fl=void 0;for(Fl=ml+1;Fl<Yn&&Vn[Fl]=="%";++Fl);for(var Cs=ml&&Vn[ml-1]=="!"||Fl<Yn&&Vn[Fl]=="1"?"1":"N",fs=ml;fs<Fl;++fs)Vn[fs]=Cs;ml=Fl-1}}for(var kl=0,ms=xn;kl<Yn;++kl){var ns=Vn[kl];ms=="L"&&ns=="1"?Vn[kl]="L":le.test(ns)&&(ms=ns)}for(var Ll=0;Ll<Yn;++Ll)if(ee.test(Vn[Ll])){var Zl=void 0;for(Zl=Ll+1;Zl<Yn&&ee.test(Vn[Zl]);++Zl);for(var Al=(Ll?Vn[Ll-1]:xn)=="L",ps=(Zl<Yn?Vn[Zl]:xn)=="L",Tu=Al==ps?Al?"L":"R":xn,ou=Ll;ou<Zl;++ou)Vn[ou]=Tu;Ll=Zl-1}for(var rs=[],te,ne=0;ne<Yn;)if(be.test(Vn[ne])){var oe=ne;for(++ne;ne<Yn&&be.test(Vn[ne]);++ne);rs.push(new Ue(0,oe,ne))}else{var ve=ne,ze=rs.length,Ve=dn=="rtl"?1:0;for(++ne;ne<Yn&&Vn[ne]!="L";++ne);for(var nt=ve;nt<ne;)if(Me.test(Vn[nt])){ve<nt&&(rs.splice(ze,0,new Ue(1,ve,nt)),ze+=Ve);var mt=nt;for(++nt;nt<ne&&Me.test(Vn[nt]);++nt);rs.splice(ze,0,new Ue(2,mt,nt)),ze+=Ve,ve=nt}else++nt;ve<ne&&rs.splice(ze,0,new Ue(1,ve,ne))}return dn=="ltr"&&(rs[0].level==1&&(te=ut.match(/^\s+/))&&(rs[0].from=te[0].length,rs.unshift(new Ue(0,0,te[0].length))),ht(rs).level==1&&(te=ut.match(/\s+$/))&&(ht(rs).to-=te[0].length,rs.push(new Ue(0,Yn-te[0].length,Yn)))),dn=="rtl"?rs.reverse():rs}}();function Qe(a,b){var z=a.order;return z==null&&(z=a.order=_t(a.text,b)),z}var tt=[],Vt=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 on(a,b){return a._handlers&&a._handlers[b]||tt}function Fn(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 gn(a,b){var z=on(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}}),gn(a,z||b.type,a,b),yn(b)||b.codemirrorIgnore}function Qt(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 jt(a,b){return on(a,b).length>0}function rt(a){a.prototype.on=function(b,z){Vt(this,b,z)},a.prototype.off=function(b,z){Fn(this,b,z)}}function Nt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function fn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function yn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function lt(a){Nt(a),fn(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)),Pe&&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}(),Yt;function Gt(a){if(Yt==null){var b=st("span","\u200B");bt(a,st("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Yt=b.offsetWidth<=1&&b.offsetHeight>2&&!(Se&&Ee<8))}var z=Yt?st("span","\u200B"):st("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return z.setAttribute("cm-text",""),z}var Sn;function jn(a){if(Sn!=null)return Sn;var b=bt(a,document.createTextNode("A\u062EA")),z=pe(b,0,1).getBoundingClientRect(),x=pe(b,1,2).getBoundingClientRect();return ct(a),!z||z.left==z.right?!1:Sn=x.right-z.right<3}var Dn=`
|
|
|
|
|
|
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")}(),Wt=null;function ln(a){if(Wt!=null)return Wt;var b=bt(a,st("span","x")),z=b.getBoundingClientRect(),x=pe(b,0,1).getBoundingClientRect();return Wt=Math.abs(z.left-x.left)>1}var bn={},tn={};function wn(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),bn[a]=b}function Cn(a,b){tn[a]=b}function Pn(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 Pn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Pn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function vr(a,b){b=Pn(b);var z=bn[b.name];if(!z)return vr(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 dr(a,b){var z=Qn.hasOwnProperty(a)?Qn[a]:Qn[a]={};it(b,z)}function br(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 yr(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 Vr(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=Ie(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ie(this.string,this.lineStart,this.tabSize):0)},Zr.prototype.indentation=function(){return Ie(this.string,null,this.tabSize)-(this.lineStart?Ie(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 An(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 fr(a,b,z){var x=[];return a.iter(b,z,function(ee){x.push(ee.text)}),x}function ur(a,b){var z=b-a.height;if(z)for(var x=a;x;x=x.parent)x.height+=z}function kt(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 Ut(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 pt(a,b){return b>=a.first&&b<a.first+a.size}function Zt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function at(a,b,z){if(z===void 0&&(z=null),!(this instanceof at))return new at(a,b,z);this.line=a,this.ch=b,this.sticky=z}function gt(a,b){return a.line-b.line||a.ch-b.ch}function cn(a,b){return a.sticky==b.sticky&>(a,b)==0}function ar(a){return at(a.line,a.ch)}function mr(a,b){return gt(a,b)<0?b:a}function At(a,b){return gt(a,b)<0?a:b}function Tt(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function Mt(a,b){if(b.line<a.first)return at(a.first,0);var z=a.first+a.size-1;return b.line>z?at(z,An(a,z).text.length):Kt(b,An(a,b.line).text.length)}function Kt(a,b){var z=a.ch;return z==null||z>b?at(a.line,b):z<0?at(a.line,0):a}function On(a,b){for(var z=[],x=0;x<b.length;x++)z[x]=Mt(a,b[x]);return z}var Kn=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 Kn?new Un(a,br(a.mode,b.state),z,b.lookAhead):new Un(a,br(a.mode,b),z)},Un.prototype.save=function(a){var b=a!==!1?br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Kn(b,this.maxLookAhead):b};function Hn(a,b,z,x){var ee=[a.state.modeGen],le={};ta(a,b.text,a.doc.mode,z,function(ut,dn){return ee.push(ut,dn)},le,x);for(var be=z.state,Me=function(ut){z.baseTokens=ee;var dn=a.state.overlays[ut],xn=1,Yn=0;z.state=!0,ta(a,b.text,dn.mode,z,function(Vn,Mr){for(var qr=xn;Yn<Vn;){var wa=ee[xn];wa>Vn&&ee.splice(xn,1,Vn,ee[xn+1],wa),xn+=2,Yn=Math.min(Vn,wa)}if(Mr)if(dn.opaque)ee.splice(qr,xn-qr,Vn,"overlay "+Mr),xn=qr+2;else for(;qr<xn;qr+=2){var Ka=ee[qr+1];ee[qr+1]=(Ka?Ka+" ":"")+"overlay "+Mr}},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 hr(a,b,z){if(!b.styles||b.styles[0]!=a.state.modeGen){var x=Pr(a,kt(b)),ee=b.text.length>a.options.maxHighlightLength&&br(a.doc.mode,x.state),le=Hn(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 Pr(a,b,z){var x=a.doc,ee=a.display;if(!x.mode.startState)return new Un(x,!0,b);var le=xa(a,b,z),be=le>x.first&&An(x,le-1).stateAfter,Me=be?Un.fromSaved(x,be,le):new Un(x,Vr(x.mode),le);return x.iter(le,b,function(Ue){Tr(a,Ue.text,Me);var ut=Me.line;Ue.stateAfter=ut==b-1||ut%5==0||ut>=ee.viewFrom&&ut<ee.viewTo?Me.save():null,Me.nextLine()}),z&&(x.modeFrontier=Me.line),Me}function Tr(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();)Cr(ee,le,z.state),le.start=le.pos}function Lr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var z=yr(a,b);if(z.mode.blankLine)return z.mode.blankLine(z.state)}}function Cr(a,b,z,x){for(var ee=0;ee<10;ee++){x&&(x[0]=yr(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 Rr=function(a,b,z){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=z};function Xr(a,b,z,x){var ee=a.doc,le=ee.mode,be;b=Mt(ee,b);var Me=An(ee,b.line),Ue=Pr(a,b.line,z),ut=new Zr(Me.text,a.options.tabSize,Ue),dn;for(x&&(dn=[]);(x||ut.pos<b.ch)&&!ut.eol();)ut.start=ut.pos,be=Cr(le,ut,Ue.state),x&&dn.push(new Rr(ut,be,br(ee.mode,Ue.state)));return x?dn:new Rr(ut,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 ta(a,b,z,x,ee,le,be){var Me=z.flattenSpans;Me==null&&(Me=a.options.flattenSpans);var Ue=0,ut=null,dn=new Zr(b,a.options.tabSize,x),xn,Yn=a.options.addModeClass&&[null];for(b==""&&oa(Lr(z,x.state),le);!dn.eol();){if(dn.pos>a.options.maxHighlightLength?(Me=!1,be&&Tr(a,b,x,dn.pos),dn.pos=b.length,xn=null):xn=oa(Cr(z,dn,x.state,Yn),le),Yn){var Vn=Yn[0].name;Vn&&(xn="m-"+(xn?Vn+" "+xn:Vn))}if(!Me||ut!=xn){for(;Ue<dn.start;)Ue=Math.min(dn.start,Ue+5e3),ee(Ue,ut);ut=xn}dn.start=dn.pos}for(;Ue<dn.pos;){var Mr=Math.min(dn.pos,Ue+5e3);ee(Mr,ut),Ue=Mr}}function xa(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=An(le,Me-1),ut=Ue.stateAfter;if(ut&&(!z||Me+(ut instanceof Kn?ut.lookAhead:0)<=le.modeFrontier))return Me;var dn=Ie(Ue.text,null,a.options.tabSize);(ee==null||x>dn)&&(ee=Me-1,x=dn)}return ee}function Fa(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=An(a,x).stateAfter;if(ee&&(!(ee instanceof Kn)||x+ee.lookAhead<b)){z=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,z)}}var Ur=!1,ya=!1;function Xa(){Ur=!0}function Ia(){ya=!0}function pa(a,b,z){this.marker=a,this.from=b,this.to=z}function kr(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 Sa(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 pa(be,le.from,Ue?null:le.to))}}return x}function Kr(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 pa(be,Ue?null:le.from-b,le.to==null?null:le.to-b))}}return x}function Ya(a,b){if(b.full)return null;var z=pt(a,b.from.line)&&An(a,b.from.line).markedSpans,x=pt(a,b.to.line)&&An(a,b.to.line).markedSpans;if(!z&&!x)return null;var ee=b.from.ch,le=b.to.ch,be=gt(b.from,b.to)==0,Me=la(z,ee,be),Ue=Kr(x,le,be),ut=b.text.length==1,dn=ht(b.text).length+(ut?ee:0);if(Me)for(var xn=0;xn<Me.length;++xn){var Yn=Me[xn];if(Yn.to==null){var Vn=kr(Ue,Yn.marker);Vn?ut&&(Yn.to=Vn.to==null?null:Vn.to+dn):Yn.to=ee}}if(Ue)for(var Mr=0;Mr<Ue.length;++Mr){var qr=Ue[Mr];if(qr.to!=null&&(qr.to+=dn),qr.from==null){var wa=kr(Me,qr.marker);wa||(qr.from=dn,ut&&(Me||(Me=[])).push(qr))}else qr.from+=dn,ut&&(Me||(Me=[])).push(qr)}Me&&(Me=Mi(Me)),Ue&&Ue!=Me&&(Ue=Mi(Ue));var Ka=[Me];if(!ut){var ii=b.text.length-2,Wa;if(ii>0&&Me)for(var bi=0;bi<Me.length;++bi)Me[bi].to==null&&(Wa||(Wa=[])).push(new pa(Me[bi].marker,null,null));for(var to=0;to<ii;++to)Ka.push(Wa);Ka.push(Ue)}return Ka}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 ji(a,b,z){var x=null;if(a.iter(b.line,z.line+1,function(Vn){if(Vn.markedSpans)for(var Mr=0;Mr<Vn.markedSpans.length;++Mr){var qr=Vn.markedSpans[Mr].marker;qr.readOnly&&(!x||vt(x,qr)==-1)&&(x||(x=[])).push(qr)}}),!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 ut=ee[Ue];if(!(gt(ut.to,Me.from)<0||gt(ut.from,Me.to)>0)){var dn=[Ue,1],xn=gt(ut.from,Me.from),Yn=gt(ut.to,Me.to);(xn<0||!be.inclusiveLeft&&!xn)&&dn.push({from:ut.from,to:Me.from}),(Yn>0||!be.inclusiveRight&&!Yn)&&dn.push({from:Me.to,to:ut.to}),ee.splice.apply(ee,dn),Ue+=dn.length-3}}return ee}function za(a){var b=a.markedSpans;if(b){for(var z=0;z<b.length;++z)b[z].marker.detachLine(a);a.markedSpans=null}}function Di(a,b){if(b){for(var z=0;z<b.length;++z)b[z].marker.attachLine(a);a.markedSpans=b}}function mi(a){return a.inclusiveLeft?-1:0}function Wi(a){return a.inclusiveRight?1:0}function Ei(a,b){var z=a.lines.length-b.lines.length;if(z!=0)return z;var x=a.find(),ee=b.find(),le=gt(x.from,ee.from)||mi(a)-mi(b);if(le)return-le;var be=gt(x.to,ee.to)||Wi(a)-Wi(b);return be||b.id-a.id}function ei(a,b){var z=ya&&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||Ei(x,ee.marker)<0)&&(x=ee.marker);return x}function Ar(a){return ei(a,!0)}function Jn(a){return ei(a,!1)}function xr(a,b){var z=ya&&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||Ei(x,le.marker)<0)&&(x=le.marker)}return x}function Sr(a,b,z,x,ee){var le=An(a,b),be=ya&&le.markedSpans;if(be)for(var Me=0;Me<be.length;++Me){var Ue=be[Me];if(Ue.marker.collapsed){var ut=Ue.marker.find(0),dn=gt(ut.from,z)||mi(Ue.marker)-mi(ee),xn=gt(ut.to,x)||Wi(Ue.marker)-Wi(ee);if(!(dn>=0&&xn<=0||dn<=0&&xn>=0)&&(dn<=0&&(Ue.marker.inclusiveRight&&ee.inclusiveLeft?gt(ut.to,z)>=0:gt(ut.to,z)>0)||dn>=0&&(Ue.marker.inclusiveRight&&ee.inclusiveLeft?gt(ut.from,x)<=0:gt(ut.from,x)<0)))return!0}}}function tr(a){for(var b;b=Ar(a);)a=b.find(-1,!0).line;return a}function $r(a){for(var b;b=Jn(a);)a=b.find(1,!0).line;return a}function sa(a){for(var b,z;b=Jn(a);)a=b.find(1,!0).line,(z||(z=[])).push(a);return z}function Er(a,b){var z=An(a,b),x=tr(z);return z==x?b:kt(x)}function Dr(a,b){if(b>a.lastLine())return b;var z=An(a,b),x;if(!jr(a,z))return b;for(;x=Jn(z);)z=x.find(1,!0).line;return kt(z)+1}function jr(a,b){var z=ya&&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,kr(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 Na(a){a=tr(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 $a(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=Jn(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 ea(a){var b=a.display,z=a.doc;b.maxLine=An(z,z.first),b.maxLineLength=$a(b.maxLine),b.maxLineChanged=!0,z.iter(function(x){var ee=$a(x);ee>b.maxLineLength&&(b.maxLineLength=ee,b.maxLine=x)})}var ai=function(a,b,z){this.text=a,Di(this,b),this.height=z?z(this):1};ai.prototype.lineNo=function(){return kt(this)},rt(ai);function gi(a,b,z,x){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),za(a),Di(a,z);var ee=x?x(a):1;ee!=a.height&&ur(a,ee)}function zi(a){a.parent=null,za(a)}var Ui={},Ji={};function Yi(a,b){if(!a||/^\s*$/.test(a))return null;var z=b.addModeClass?Ji:Ui;return z[a]||(z[a]=a.replace(/\S+/g,"cm-$&"))}function co(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=$o,jn(a.display.measure)&&(be=Qe(le,a.doc.direction))&&(x.addToken=Ba(x.addToken,be)),x.map=[];var Me=b!=a.display.externalMeasured&&kt(le);ri(le,x,hr(a,le,Me)),le.styleClasses&&(le.styleClasses.bgClass&&(x.bgClass=Ct(le.styleClasses.bgClass,x.bgClass||"")),le.styleClasses.textClass&&(x.textClass=Ct(le.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Gt(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 gn(a,"renderLine",a,b.line,x.pre),x.pre.className&&(x.textClass=Ct(x.pre.className,x.textClass||"")),x}function No(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 $o(a,b,z,x,ee,le,be){if(b){var Me=a.splitSpaces?Wo(b,a.trailingSpace):b,Ue=a.cm.state.specialChars,ut=!1,dn;if(!Ue.test(b))a.col+=b.length,dn=document.createTextNode(Me),a.map.push(a.pos,a.pos+b.length,dn),Se&&Ee<9&&(ut=!0),a.pos+=b.length;else{dn=document.createDocumentFragment();for(var xn=0;;){Ue.lastIndex=xn;var Yn=Ue.exec(b),Vn=Yn?Yn.index-xn:b.length-xn;if(Vn){var Mr=document.createTextNode(Me.slice(xn,xn+Vn));Se&&Ee<9?dn.appendChild(st("span",[Mr])):dn.appendChild(Mr),a.map.push(a.pos,a.pos+Vn,Mr),a.col+=Vn,a.pos+=Vn}if(!Yn)break;xn+=Vn+1;var qr=void 0;if(Yn[0]==" "){var wa=a.cm.options.tabSize,Ka=wa-a.col%wa;qr=dn.appendChild(st("span",wt(Ka),"cm-tab")),qr.setAttribute("role","presentation"),qr.setAttribute("cm-text"," "),a.col+=Ka}else Yn[0]=="\r"||Yn[0]==`
|
|
|
`?(qr=dn.appendChild(st("span",Yn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),qr.setAttribute("cm-text",Yn[0]),a.col+=1):(qr=a.cm.options.specialCharPlaceholder(Yn[0]),qr.setAttribute("cm-text",Yn[0]),Se&&Ee<9?dn.appendChild(st("span",[qr])):dn.appendChild(qr),a.col+=1);a.map.push(a.pos,a.pos+1,qr),a.pos++}}if(a.trailingSpace=Me.charCodeAt(b.length-1)==32,z||x||ee||ut||le||be){var ii=z||"";x&&(ii+=x),ee&&(ii+=ee);var Wa=st("span",[dn],ii,le);if(be)for(var bi in be)be.hasOwnProperty(bi)&&bi!="style"&&bi!="class"&&Wa.setAttribute(bi,be[bi]);return a.content.appendChild(Wa)}a.content.appendChild(dn)}}function Wo(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 Ba(a,b){return function(z,x,ee,le,be,Me,Ue){ee=ee?ee+" cm-force-border":"cm-force-border";for(var ut=z.pos,dn=ut+x.length;;){for(var xn=void 0,Yn=0;Yn<b.length&&(xn=b[Yn],!(xn.to>ut&&xn.from<=ut));Yn++);if(xn.to>=dn)return a(z,x,ee,le,be,Me,Ue);a(z,x.slice(0,xn.to-ut),ee,le,null,Me,Ue),le=null,x=x.slice(xn.to-ut),ut=xn.to}}}function Ii(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 ri(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,ut=1,dn="",xn,Yn,Vn=0,Mr,qr,wa,Ka,ii;;){if(Vn==Ue){Mr=qr=wa=Yn="",ii=null,Ka=null,Vn=1/0;for(var Wa=[],bi=void 0,to=0;to<x.length;++to){var Gi=x[to],Bo=Gi.marker;if(Bo.type=="bookmark"&&Gi.from==Ue&&Bo.widgetNode)Wa.push(Bo);else if(Gi.from<=Ue&&(Gi.to==null||Gi.to>Ue||Bo.collapsed&&Gi.to==Ue&&Gi.from==Ue)){if(Gi.to!=null&&Gi.to!=Ue&&Vn>Gi.to&&(Vn=Gi.to,qr=""),Bo.className&&(Mr+=" "+Bo.className),Bo.css&&(Yn=(Yn?Yn+";":"")+Bo.css),Bo.startStyle&&Gi.from==Ue&&(wa+=" "+Bo.startStyle),Bo.endStyle&&Gi.to==Vn&&(bi||(bi=[])).push(Bo.endStyle,Gi.to),Bo.title&&((ii||(ii={})).title=Bo.title),Bo.attributes)for(var ml in Bo.attributes)(ii||(ii={}))[ml]=Bo.attributes[ml];Bo.collapsed&&(!Ka||Ei(Ka.marker,Bo)<0)&&(Ka=Gi)}else Gi.from>Ue&&Vn>Gi.from&&(Vn=Gi.from)}if(bi)for(var ql=0;ql<bi.length;ql+=2)bi[ql+1]==Vn&&(qr+=" "+bi[ql]);if(!Ka||Ka.from==Ue)for(var Fl=0;Fl<Wa.length;++Fl)Ii(b,0,Wa[Fl]);if(Ka&&(Ka.from||0)==Ue){if(Ii(b,(Ka.to==null?Me+1:Ka.to)-Ue,Ka.marker,Ka.from==null),Ka.to==null)return;Ka.to==Ue&&(Ka=!1)}}if(Ue>=Me)break;for(var Cs=Math.min(Me,Vn);;){if(dn){var fs=Ue+dn.length;if(!Ka){var kl=fs>Cs?dn.slice(0,Cs-Ue):dn;b.addToken(b,kl,xn?xn+Mr:Mr,wa,Ue+kl.length==Vn?qr:"",Yn,ii)}if(fs>=Cs){dn=dn.slice(Cs-Ue),Ue=Cs;break}Ue=fs,wa=""}dn=ee.slice(le,le=z[ut++]),xn=Yi(z[ut++],b.cm.options)}}}function So(a,b,z){this.line=b,this.rest=sa(b),this.size=this.rest?kt(ht(this.rest))-z+1:1,this.node=this.text=null,this.hidden=jr(a,b)}function ci(a,b,z){for(var x=[],ee,le=b;le<z;le=ee){var be=new So(a.doc,An(a.doc,le),le);ee=le+be.size,x.push(be)}return x}var il=null;function $l(a){il?il.ops.push(a):a.ownsGroup=il={ops:[a],delayedCallbacks:[]}}function Ol(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 Vo(a,b){var z=a.ownsGroup;if(z)try{Ol(z)}finally{il=null,b(z)}}var Yo=null;function no(a,b){var z=on(a,b);if(z.length){var x=Array.prototype.slice.call(arguments,2),ee;il?ee=il.delayedCallbacks:Yo?ee=Yo:(ee=Yo=[],setTimeout(Nl,0));for(var le=function(Me){ee.push(function(){return z[Me].apply(null,x)})},be=0;be<z.length;++be)le(be)}}function Nl(){var a=Yo;Yo=null;for(var b=0;b<a.length;++b)a[b]()}function Ul(a,b,z,x){for(var ee=0;ee<b.changes.length;ee++){var le=b.changes[ee];le=="text"?as(a,b):le=="gutter"?Qi(a,b,z,x):le=="class"?Ni(a,b):le=="widget"&&Pi(a,b,x)}b.changes=null}function _l(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 Io(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=_l(b);b.background=x.insertBefore(st("div",null,z),x.firstChild),a.display.input.setUneditable(b.background)}}function es(a,b){var z=a.display.externalMeasured;return z&&z.line==b.line?(a.display.externalMeasured=null,b.measure=z.measure,z.built):co(a,b)}function as(a,b){var z=b.text.className,x=es(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,Ni(a,b)):z&&(b.text.className=z)}function Ni(a,b){Io(a,b),b.line.wrapClass?_l(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 Qi(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=_l(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=_l(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 ut=a.display.gutterSpecs[Ue].className,dn=le.hasOwnProperty(ut)&&le[ut];dn&&Me.appendChild(st("div",[dn],"CodeMirror-gutter-elt","left: "+x.gutterLeft[ut]+"px; width: "+x.gutterWidth[ut]+"px"))}}}function Pi(a,b,z){b.alignable&&(b.alignable=null);for(var x=qe("CodeMirror-linewidget"),ee=b.node.firstChild,le=void 0;ee;ee=le)le=ee.nextSibling,x.test(ee.className)&&b.node.removeChild(ee);Hi(a,b,z)}function pi(a,b,z,x){var ee=es(a,b);return b.text=b.node=ee.pre,ee.bgClass&&(b.bgClass=ee.bgClass),ee.textClass&&(b.textClass=ee.textClass),Ni(a,b),Qi(a,b,z,x),Hi(a,b,x),b.node}function Hi(a,b,z){if(uo(a,b.line,b,z,!0),b.rest)for(var x=0;x<b.rest.length;x++)uo(a,b.rest[x],b,z,!1)}function uo(a,b,z,x,ee){if(b.widgets)for(var le=_l(z),be=0,Me=b.widgets;be<Me.length;++be){var Ue=Me[be],ut=st("div",[Ue.node],"CodeMirror-linewidget"+(Ue.className?" "+Ue.className:""));Ue.handleMouseEvents||ut.setAttribute("cm-ignore-events","true"),Il(Ue,ut,z,x),a.display.input.setUneditable(ut),ee&&Ue.above?le.insertBefore(ut,z.gutter||z.text):le.appendChild(ut),no(Ue,"redraw")}}function Il(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 oo(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;"),bt(b.display.measure,st("div",[a.node],null,z))}return a.height=a.node.parentNode.offsetHeight}function Qo(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 Jo(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=bt(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 Ht-a.display.nativeBarWidth}function wr(a){return a.display.scroller.clientWidth-Tn(a)-a.display.barWidth}function Or(a){return a.display.scroller.clientHeight-Tn(a)-a.display.barHeight}function rr(a,b,z){var x=a.options.lineWrapping,ee=x&&wr(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],ut=be[Me+1];Math.abs(Ue.bottom-ut.bottom)>2&&le.push((Ue.bottom+ut.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(kt(a.rest[ee])>z)return{map:a.measure.maps[ee],cache:a.measure.caches[ee],before:!0}}function kn(a,b){b=tr(b);var z=kt(b),x=a.display.externalMeasured=new So(a.doc,b,z);x.lineN=z;var ee=x.built=co(a,x);return x.text=ee.pre,bt(a.display.lineMeasure,ee.pre),x}function er(a,b,z,x){return Ci(a,na(a,b),z,x)}function gr(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Da(a,b)];var z=a.display.externalMeasured;if(z&&b>=z.lineN&&b<z.lineN+z.size)return z}function na(a,b){var z=kt(b),x=gr(a,z);x&&!x.text?x=null:x&&x.changes&&(Ul(a,x,z,Wr(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 Ci(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||(rr(a,b.view,b.rect),b.hasHeights=!0),be=Ha(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 ki={left:0,right:0,top:0,bottom:0};function fo(a,b,z){for(var x,ee,le,be,Me,Ue,ut=0;ut<a.length;ut+=3)if(Me=a[ut],Ue=a[ut+1],b<Me?(ee=0,le=1,be="left"):b<Ue?(ee=b-Me,le=ee+1):(ut==a.length-3||b==Ue&&a[ut+3]>b)&&(le=Ue-Me,ee=le-1,b>=Ue&&(be="right")),ee!=null){if(x=a[ut+2],Me==Ue&&z==(x.insertLeft?"left":"right")&&(be=z),z=="left"&&ee==0)for(;ut&&a[ut-2]==a[ut-3]&&a[ut-1].insertLeft;)x=a[(ut-=3)+2],be="left";if(z=="right"&&ee==Ue-Me)for(;ut<a.length-3&&a[ut+3]==a[ut+4]&&!a[ut+5].insertLeft;)x=a[(ut+=3)+2],be="right";break}return{node:x,start:ee,end:le,collapse:be,coverStart:Me,coverEnd:Ue}}function ro(a,b){var z=ki;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 Ha(a,b,z,x){var ee=fo(b.map,z,x),le=ee.node,be=ee.start,Me=ee.end,Ue=ee.collapse,ut;if(le.nodeType==3){for(var dn=0;dn<4;dn++){for(;be&&He(b.line.text.charAt(ee.coverStart+be));)--be;for(;ee.coverStart+Me<ee.coverEnd&&He(b.line.text.charAt(ee.coverStart+Me));)++Me;if(Se&&Ee<9&&be==0&&Me==ee.coverEnd-ee.coverStart?ut=le.parentNode.getBoundingClientRect():ut=ro(pe(le,be,Me).getClientRects(),x),ut.left||ut.right||be==0)break;Me=be,be=be-1,Ue="right"}Se&&Ee<11&&(ut=ma(a.display.measure,ut))}else{be>0&&(Ue=x="right");var xn;a.options.lineWrapping&&(xn=le.getClientRects()).length>1?ut=xn[x=="right"?xn.length-1:0]:ut=le.getBoundingClientRect()}if(Se&&Ee<9&&!be&&(!ut||!ut.left&&!ut.right)){var Yn=le.parentNode.getClientRects()[0];Yn?ut={left:Yn.left,right:Yn.left+aa(a.display),top:Yn.top,bottom:Yn.bottom}:ut=ki}for(var Vn=ut.top-b.rect.top,Mr=ut.bottom-b.rect.top,qr=(Vn+Mr)/2,wa=b.view.measure.heights,Ka=0;Ka<wa.length-1&&!(qr<wa[Ka]);Ka++);var ii=Ka?wa[Ka-1]:0,Wa=wa[Ka],bi={left:(Ue=="right"?ut.right:ut.left)-b.rect.left,right:(Ue=="left"?ut.left:ut.right)-b.rect.left,top:ii,bottom:Wa};return!ut.left&&!ut.right&&(bi.bogus=!0),a.options.singleCursorHeightPerLine||(bi.rtop=Vn,bi.rbottom=Mr),bi}function ma(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ln(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 Hr(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 _i(a){a.display.externalMeasure=null,ct(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Hr(a.display.view[b])}function Li(a){_i(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function vo(){return De&&Ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function _o(){return De&&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+=oo(a.widgets[z]));return b}function go(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=Na(b);if(x=="local"?be+=Jo(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:vo());z.left+=Ue,z.right+=Ue}return z.top+=be,z.bottom+=be,z}function xi(a,b,z){if(z=="div")return b;var x=b.left,ee=b.top;if(z=="page")x-=vo(),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 ga(a,b,z,x,ee){return x||(x=An(a.doc,b.line)),go(a,x,er(a,x,b.ch,ee),z)}function hi(a,b,z,x,ee,le){x=x||An(a.doc,b.line),ee||(ee=na(a,x));function be(Mr,qr){var wa=Ci(a,ee,Mr,qr?"right":"left",le);return qr?wa.left=wa.right:wa.right=wa.left,go(a,x,wa,z)}var Me=Qe(x,a.doc.direction),Ue=b.ch,ut=b.sticky;if(Ue>=x.text.length?(Ue=x.text.length,ut="before"):Ue<=0&&(Ue=0,ut="after"),!Me)return be(ut=="before"?Ue-1:Ue,ut=="before");function dn(Mr,qr,wa){var Ka=Me[qr],ii=Ka.level==1;return be(wa?Mr-1:Mr,ii!=wa)}var xn=Bt(Me,Ue,ut),Yn=yt,Vn=dn(Ue,xn,ut=="before");return Yn!=null&&(Vn.other=dn(Ue,Yn,ut!="before")),Vn}function di(a,b){var z=0;b=Mt(a.doc,b),a.options.lineWrapping||(z=aa(a.display)*b.ch);var x=An(a.doc,b.line),ee=Na(x)+Jo(a.display);return{left:z,right:z,top:ee,bottom:ee+x.height}}function si(a,b,z,x,ee){var le=at(a,b,z);return le.xRel=ee,x&&(le.outside=x),le}function Dt(a,b,z){var x=a.doc;if(z+=a.display.viewOffset,z<0)return si(x.first,0,null,-1,-1);var ee=Ut(x,z),le=x.first+x.size-1;if(ee>le)return si(x.first+x.size-1,An(x,le).text.length,null,1,1);b<0&&(b=0);for(var be=An(x,ee);;){var Me=Va(a,be,ee,b,z),Ue=xr(be,Me.ch+(Me.xRel>0||Me.outside>0?1:0));if(!Ue)return Me;var ut=Ue.find(1);if(ut.line==ee)return ut;be=An(x,ee=ut.line)}}function Jt(a,b,z,x){x-=Ai(b);var ee=b.text.length,le=Xe(function(be){return Ci(a,z,be-1).bottom<=x},ee,0);return ee=Xe(function(be){return Ci(a,z,be).top>x},le,ee),{begin:le,end:ee}}function rn(a,b,z,x){z||(z=na(a,b));var ee=go(a,b,Ci(a,z,x),"line").top;return Jt(a,b,z,ee)}function Nn(a,b,z,x){return a.bottom<=z?!1:a.top>z?!0:(x?a.left:a.right)>b}function Va(a,b,z,x,ee){ee-=Na(b);var le=na(a,b),be=Ai(b),Me=0,Ue=b.text.length,ut=!0,dn=Qe(b,a.doc.direction);if(dn){var xn=(a.options.lineWrapping?qn:zr)(a,b,z,le,dn,x,ee);ut=xn.level!=1,Me=ut?xn.from:xn.to-1,Ue=ut?xn.to:xn.from-1}var Yn=null,Vn=null,Mr=Xe(function(to){var Gi=Ci(a,le,to);return Gi.top+=be,Gi.bottom+=be,Nn(Gi,x,ee,!1)?(Gi.top<=ee&&Gi.left<=x&&(Yn=to,Vn=Gi),!0):!1},Me,Ue),qr,wa,Ka=!1;if(Vn){var ii=x-Vn.left<Vn.right-x,Wa=ii==ut;Mr=Yn+(Wa?0:1),wa=Wa?"after":"before",qr=ii?Vn.left:Vn.right}else{!ut&&(Mr==Ue||Mr==Me)&&Mr++,wa=Mr==0?"after":Mr==b.text.length?"before":Ci(a,le,Mr-(ut?1:0)).bottom+be<=ee==ut?"after":"before";var bi=hi(a,at(z,Mr,wa),"line",b,le);qr=bi.left,Ka=ee<bi.top?-1:ee>=bi.bottom?1:0}return Mr=It(b.text,Mr,1),si(z,Mr,wa,Ka,x-qr)}function zr(a,b,z,x,ee,le,be){var Me=Xe(function(xn){var Yn=ee[xn],Vn=Yn.level!=1;return Nn(hi(a,at(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 ut=Ue.level!=1,dn=hi(a,at(z,ut?Ue.from:Ue.to,ut?"after":"before"),"line",b,x);Nn(dn,le,be,!0)&&dn.top>be&&(Ue=ee[Me-1])}return Ue}function qn(a,b,z,x,ee,le,be){var Me=Jt(a,b,x,be),Ue=Me.begin,ut=Me.end;/\s/.test(b.text.charAt(ut-1))&&ut--;for(var dn=null,xn=null,Yn=0;Yn<ee.length;Yn++){var Vn=ee[Yn];if(!(Vn.from>=ut||Vn.to<=Ue)){var Mr=Vn.level!=1,qr=Ci(a,x,Mr?Math.min(ut,Vn.to)-1:Math.max(Ue,Vn.from)).right,wa=qr<le?le-qr+1e9:qr-le;(!dn||xn>wa)&&(dn=Vn,xn=wa)}}return dn||(dn=ee[ee.length-1]),dn.from<Ue&&(dn={from:Ue,to:dn.to,level:dn.level}),dn.to>ut&&(dn={from:dn.from,to:ut,level:dn.level}),dn}var pr;function Fr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(pr==null){pr=st("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)pr.appendChild(document.createTextNode("x")),pr.appendChild(st("br"));pr.appendChild(document.createTextNode("x"))}bt(a.measure,pr);var z=pr.offsetHeight/50;return z>3&&(a.cachedTextHeight=z),ct(a.measure),z||1}function aa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=st("span","xxxxxxxxxx"),z=st("pre",[b],"CodeMirror-line-like");bt(a.measure,z);var x=b.getBoundingClientRect(),ee=(x.right-x.left)/10;return ee>2&&(a.cachedCharWidth=ee),ee||10}function Wr(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 ha(a){var b=Fr(a.display),z=a.options.lineWrapping,x=z&&Math.max(5,a.display.scroller.clientWidth/aa(a.display)-3);return function(ee){if(jr(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 fa(a){var b=a.doc,z=ha(a);b.iter(function(x){var ee=z(x);ee!=x.height&&ur(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(xn){return null}var Ue=Dt(a,le,be),ut;if(x&&Ue.xRel>0&&(ut=An(a.doc,Ue.line).text).length==Ue.ch){var dn=Ie(ut,ut.length,a.options.tabSize)-ut.length;Ue=at(Ue.line,Math.max(0,Math.round((le-vn(a.display).left)/aa(a.display))-dn))}return Ue}function Da(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)ya&&Er(a.doc,b)<ee.viewTo&&cr(a);else if(z<=ee.viewFrom)ya&&Dr(a.doc,z+x)>ee.viewFrom?cr(a):(ee.viewFrom+=x,ee.viewTo+=x);else if(b<=ee.viewFrom&&z>=ee.viewTo)cr(a);else if(b<=ee.viewFrom){var le=Yr(a,z,z+x,1);le?(ee.view=ee.view.slice(le.index),ee.viewFrom=le.lineN,ee.viewTo+=x):cr(a)}else if(z>=ee.viewTo){var be=Yr(a,b,b,-1);be?(ee.view=ee.view.slice(0,be.index),ee.viewTo=be.lineN):cr(a)}else{var Me=Yr(a,b,b,-1),Ue=Yr(a,z,z+x,1);Me&&Ue?(ee.view=ee.view.slice(0,Me.index).concat(ci(a,Me.lineN,Ue.lineN)).concat(ee.view.slice(Ue.index)),ee.viewTo+=x):cr(a)}var ut=ee.externalMeasured;ut&&(z<ut.lineN?ut.lineN+=x:b<ut.lineN+ut.size&&(ee.externalMeasured=null))}function ua(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[Da(a,b)];if(le.node!=null){var be=le.changes||(le.changes=[]);vt(be,z)==-1&&be.push(z)}}}function cr(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Yr(a,b,z,x){var ee=Da(a,b),le,be=a.display.view;if(!ya||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=ci(a,b,z),x.viewFrom=b):(x.viewFrom>b?x.view=ci(a,b,x.viewFrom).concat(x.view):x.viewFrom<b&&(x.view=x.view.slice(Da(a,b))),x.viewFrom=b,x.viewTo<z?x.view=x.view.concat(ci(a,x.viewTo,z)):x.viewTo>z&&(x.view=x.view.slice(0,Da(a,z)))),x.viewTo=z}function ba(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 ca(a){a.display.input.showSelection(a.display.input.prepareSelection())}function ra(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)&&Pa(a,Me.head,ee),Ue||qo(a,Me,le)}}return x}function Pa(a,b,z){var x=hi(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 qo(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,wr(a)-x.sizer.offsetLeft)-be.right,ut=ee.direction=="ltr";function dn(Wa,bi,to,Gi){bi<0&&(bi=0),bi=Math.round(bi),Gi=Math.round(Gi),le.appendChild(st("div",null,"CodeMirror-selected","position: absolute; left: "+Wa+`px;
|
|
|
top: `+bi+"px; width: "+(to==null?Ue-Wa:to)+`px;
|
|
|
height: `+(Gi-bi)+"px"))}function xn(Wa,bi,to){var Gi=An(ee,Wa),Bo=Gi.text.length,ml,ql;function Fl(kl,ms){return ga(a,at(Wa,kl),"div",Gi,ms)}function Cs(kl,ms,ns){var Ll=rn(a,Gi,null,kl),Zl=ms=="ltr"==(ns=="after")?"left":"right",Al=ns=="after"?Ll.begin:Ll.end-(/\s/.test(Gi.text.charAt(Ll.end-1))?2:1);return Fl(Al,Zl)[Zl]}var fs=Qe(Gi,ee.direction);return Ke(fs,bi||0,to==null?Bo:to,function(kl,ms,ns,Ll){var Zl=ns=="ltr",Al=Fl(kl,Zl?"left":"right"),ps=Fl(ms-1,Zl?"right":"left"),Tu=bi==null&&kl==0,ou=to==null&&ms==Bo,rs=Ll==0,te=!fs||Ll==fs.length-1;if(ps.top-Al.top<=3){var ne=(ut?Tu:ou)&&rs,oe=(ut?ou:Tu)&&te,ve=ne?Me:(Zl?Al:ps).left,ze=oe?Ue:(Zl?ps:Al).right;dn(ve,Al.top,ze-ve,Al.bottom)}else{var Ve,nt,mt,nn;Zl?(Ve=ut&&Tu&&rs?Me:Al.left,nt=ut?Ue:Cs(kl,ns,"before"),mt=ut?Me:Cs(ms,ns,"after"),nn=ut&&ou&&te?Ue:ps.right):(Ve=ut?Cs(kl,ns,"before"):Me,nt=!ut&&Tu&&rs?Ue:Al.right,mt=!ut&&ou&&te?Me:ps.left,nn=ut?Cs(ms,ns,"after"):Ue),dn(Ve,Al.top,nt-Ve,Al.bottom),Al.bottom<ps.top&&dn(Me,Al.bottom,null,ps.top),dn(mt,ps.top,nn-mt,ps.bottom)}(!ml||ao(Al,ml)<0)&&(ml=Al),ao(ps,ml)<0&&(ml=ps),(!ql||ao(Al,ql)<0)&&(ql=Al),ao(ps,ql)<0&&(ql=ps)}),{start:ml,end:ql}}var Yn=b.from(),Vn=b.to();if(Yn.line==Vn.line)xn(Yn.line,Yn.ch,Vn.ch);else{var Mr=An(ee,Yn.line),qr=An(ee,Vn.line),wa=tr(Mr)==tr(qr),Ka=xn(Yn.line,Yn.ch,wa?Mr.text.length+1:null).end,ii=xn(Vn.line,wa?0:null,Vn.ch).start;wa&&(Ka.top<ii.top-2?(dn(Ka.right,Ka.top,null,Ka.bottom),dn(Me,ii.top,ii.left,ii.bottom)):dn(Ka.right,Ka.top,ii.left-Ka.right,Ka.bottom)),Ka.bottom<ii.top&&dn(Me,Ka.bottom,null,ii.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()||Pl(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(),Tl(a))}function Oi(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Pl(a))},100)}function Tl(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(gn(a,"focus",a,b),a.state.focused=!0,de(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 Pl(a,b){a.state.delayingBlurEvent||(a.state.focused&&(gn(a,"blur",a,b),a.state.focused=!1,Je(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Gr(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 ut=ee.node.getBoundingClientRect();be=ut.bottom-ut.top,!le&&ee.text.firstChild&&(Me=ee.text.firstChild.getBoundingClientRect().right-ut.left-1)}var dn=ee.line.height-be;if((dn>.005||dn<-.005)&&(ur(ee.line,be),bo(ee.line),ee.rest))for(var xn=0;xn<ee.rest.length;xn++)bo(ee.rest[xn]);if(Me>a.display.sizerWidth){var Yn=Math.ceil(Me/aa(a.display));Yn>a.display.maxLineLength&&(a.display.maxLineLength=Yn,a.display.maxLine=ee.line,a.display.maxLineChanged=!0)}}}}function bo(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 Po(a,b,z){var x=z&&z.top!=null?Math.max(0,z.top):a.scroller.scrollTop;x=Math.floor(x-Jo(a));var ee=z&&z.bottom!=null?z.bottom:x+a.wrapper.clientHeight,le=Ut(b,x),be=Ut(b,ee);if(z&&z.ensure){var Me=z.ensure.from.line,Ue=z.ensure.to.line;Me<le?(le=Me,be=Ut(b,Na(An(b,Me))+a.wrapper.clientHeight)):Math.min(Ue,b.lastLine())>=be&&(le=Ut(b,Na(An(b,Ue))-a.wrapper.clientHeight),be=Ue)}return{from:le,to:Math.max(be,le+1)}}function Eo(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&&!dt){var le=st("div","\u200B",null,`position: absolute;
|
|
|
top: `+(b.top-z.viewOffset-Jo(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 yl(a,b,z,x){x==null&&(x=0);var ee;!a.options.lineWrapping&&b==z&&(b=b.ch?at(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,z=b.sticky=="before"?at(b.line,b.ch+1,"before"):b);for(var le=0;le<5;le++){var be=!1,Me=hi(a,b),Ue=!z||z==b?Me:hi(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 ut=Ms(a,ee),dn=a.doc.scrollTop,xn=a.doc.scrollLeft;if(ut.scrollTop!=null&&(js(a,ut.scrollTop),Math.abs(a.doc.scrollTop-dn)>1&&(be=!0)),ut.scrollLeft!=null&&(gs(a,ut.scrollLeft),Math.abs(a.doc.scrollLeft-xn)>1&&(be=!0)),!be)break}return ee}function $s(a,b){var z=Ms(a,b);z.scrollTop!=null&&js(a,z.scrollTop),z.scrollLeft!=null&&gs(a,z.scrollLeft)}function Ms(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=Or(a),be={};b.bottom-b.top>le&&(b.bottom=b.top+le);var Me=a.doc.height+hn(z),Ue=b.top<x,ut=b.bottom>Me-x;if(b.top<ee)be.scrollTop=Ue?0:b.top;else if(b.bottom>ee+le){var dn=Math.min(b.top,(ut?Me:b.bottom)-le);dn!=ee&&(be.scrollTop=dn)}var xn=a.options.fixedGutter?0:z.gutters.offsetWidth,Yn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:z.scroller.scrollLeft-xn,Vn=wr(a)-z.gutters.offsetWidth,Mr=b.right-b.left>Vn;return Mr&&(b.right=b.left+Vn),b.left<10?be.scrollLeft=0:b.left<Yn?be.scrollLeft=Math.max(0,b.left+xn-(Mr?0:10)):b.right>Vn+Yn-3&&(be.scrollLeft=b.right+(Mr?0:10)-Vn),be}function eu(a,b){b!=null&&(cs(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function xs(a){cs(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)&&cs(a),b!=null&&(a.curOp.scrollLeft=b),z!=null&&(a.curOp.scrollTop=z)}function tu(a,b){cs(a),a.curOp.scrollToPos=b}function cs(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var z=di(a,b.from),x=di(a,b.to);Ss(a,z,x,b.margin)}}function Ss(a,b,z,x){var ee=Ms(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 js(a,b){Math.abs(a.doc.scrollTop-b)<2||(y||is(a,{top:b}),Is(a,b,!0),y&&is(a),ko(a,100))}function Is(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 gs(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,Ft(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Ws(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 Ps=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),Vt(x,"scroll",function(){x.clientHeight&&b(x.scrollTop,"vertical")}),Vt(ee,"scroll",function(){ee.clientWidth&&b(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ps.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}},Ps.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ps.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ps.prototype.zeroWidthHack=function(){var a=Pe&&!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},Ps.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)},Ps.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Rs=function(){};Rs.prototype.update=function(){return{bottom:0,right:0}},Rs.prototype.setScrollLeft=function(){},Rs.prototype.setScrollTop=function(){},Rs.prototype.clear=function(){};function zs(a,b){b||(b=Ws(a));var z=a.display.barWidth,x=a.display.barHeight;Us(a,b);for(var ee=0;ee<4&&z!=a.display.barWidth||x!=a.display.barHeight;ee++)z!=a.display.barWidth&&a.options.lineWrapping&&Gr(a),Us(a,Ws(a)),z=a.display.barWidth,x=a.display.barHeight}function Us(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 Eu={native:Ps,null:Rs};function Cu(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Je(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Eu[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Vt(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"?gs(a,b):js(a,b)},a),a.display.scrollbars.addClass&&de(a.display.wrapper,a.display.scrollbars.addClass)}var ec=0;function As(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:++ec},$l(a.curOp)}function ws(a){var b=a.curOp;b&&Vo(b,function(z){for(var x=0;x<z.ops.length;x++)z.ops[x].cm.curOp=null;xu(z)})}function xu(a){for(var b=a.ops,z=0;z<b.length;z++)ku(b[z]);for(var x=0;x<b.length;x++)Lu(b[x]);for(var ee=0;ee<b.length;ee++)Wn(b[ee]);for(var le=0;le<b.length;le++)_a(b[le]);for(var be=0;be<b.length;be++)Vi(b[be])}function ku(a){var b=a.cm,z=b.display;Ro(b),a.updateMaxLine&&ea(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 dl(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Lu(a){a.updatedDisplay=a.mustUpdate&&yi(a.cm,a.update)}function Wn(a){var b=a.cm,z=b.display;a.updatedDisplay&&Gr(b),a.barMeasure=Ws(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-wr(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=z.input.prepareSelection())}function _a(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&gs(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 Vi(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&&Is(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&gs(b,a.scrollLeft,!0,!0),a.scrollToPos){var ee=yl(b,Mt(x,a.scrollToPos.from),Mt(x,a.scrollToPos.to),a.scrollToPos.margin);Eo(b,ee)}var le=a.maybeHiddenMarkers,be=a.maybeUnhiddenMarkers;if(le)for(var Me=0;Me<le.length;++Me)le[Me].lines.length||gn(le[Me],"hide");if(be)for(var Ue=0;Ue<be.length;++Ue)be[Ue].lines.length&&gn(be[Ue],"unhide");z.wrapper.offsetHeight&&(x.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&gn(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function Ta(a,b){if(a.curOp)return b();As(a);try{return b()}finally{ws(a)}}function Ir(a,b){return function(){if(a.curOp)return b.apply(a,arguments);As(a);try{return b.apply(a,arguments)}finally{ws(a)}}}function Zi(a){return function(){if(this.curOp)return a.apply(this,arguments);As(this);try{return a.apply(this,arguments)}finally{ws(this)}}}function Ki(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);As(b);try{return a.apply(this,arguments)}finally{ws(b)}}}function ko(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,je(Xi,a))}function Xi(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var z=+new Date+a.options.workTime,x=Pr(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?br(b.mode,x.state):null,Ue=Hn(a,le,x,!0);Me&&(x.state=Me),le.styles=Ue.styles;var ut=le.styleClasses,dn=Ue.classes;dn?le.styleClasses=dn:ut&&(le.styleClasses=null);for(var xn=!be||be.length!=le.styles.length||ut!=dn&&(!ut||!dn||ut.bgClass!=dn.bgClass||ut.textClass!=dn.textClass),Yn=0;!xn&&Yn<be.length;++Yn)xn=be[Yn]!=le.styles[Yn];xn&&ee.push(x.line),le.stateAfter=x.save(),x.nextLine()}else le.text.length<=a.options.maxHighlightLength&&Tr(a,le.text,x),le.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>z)return ko(a,a.options.workDelay),!0}),b.highlightFrontier=x.line,b.modeFrontier=Math.max(b.modeFrontier,x.line),ee.length&&Ta(a,function(){for(var le=0;le<ee.length;le++)ua(a,ee[le],"text")})}}var dl=function(a,b,z){var x=a.display;this.viewport=b,this.visible=Po(x,a.doc,b),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=wr(a),this.force=z,this.dims=Wr(a),this.events=[]};dl.prototype.signal=function(a,b){jt(a,b)&&this.events.push(arguments)},dl.prototype.finish=function(){for(var a=0;a<this.events.length;a++)gn.apply(null,this.events[a])};function Ro(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 ys(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 Xs(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 cr(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&&ba(a)==0)return!1;$t(a)&&(cr(a),b.dims=Wr(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)),ya&&(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=Na(An(a.doc,z.viewFrom)),a.display.mover.style.top=z.viewOffset+"px";var Ue=ba(a);if(!Me&&Ue==0&&!b.force&&z.renderedView==z.view&&(z.updateLineNumbers==null||z.updateLineNumbers>=z.viewTo))return!1;var ut=ys(a);return Ue>4&&(z.lineDiv.style.display="none"),jl(a,z.updateLineNumbers,b.dims),Ue>4&&(z.lineDiv.style.display=""),z.renderedView=z.view,Xs(ut),ct(z.cursorDiv),ct(z.selectionDiv),z.gutters.style.height=z.sizer.style.minHeight=0,Me&&(z.lastWrapHeight=b.wrapperHeight,z.lastWrapWidth=b.wrapperWidth,ko(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==wr(a)){if(z&&z.top!=null&&(z={top:Math.min(a.doc.height+hn(a.display)-Or(a),z.top)}),b.visible=Po(a.display,a.doc,z),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else x&&(b.visible=Po(a.display,a.doc,z));if(!yi(a,b))break;Gr(a);var ee=Ws(a);ca(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 is(a,b){var z=new dl(a,b);if(yi(a,z)){Gr(a),bl(a,z);var x=Ws(a);ca(a),zs(a,x),Re(a,x),z.finish()}}function jl(a,b,z){var x=a.display,ee=a.options.lineNumbers,le=x.lineDiv,be=le.firstChild;function Me(Mr){var qr=Mr.nextSibling;return Ce&&Pe&&a.display.currentWheelTarget==Mr?Mr.style.display="none":Mr.parentNode.removeChild(Mr),qr}for(var Ue=x.view,ut=x.viewFrom,dn=0;dn<Ue.length;dn++){var xn=Ue[dn];if(!xn.hidden)if(!xn.node||xn.node.parentNode!=le){var Yn=pi(a,xn,ut,z);le.insertBefore(Yn,be)}else{for(;be!=xn.node;)be=Me(be);var Vn=ee&&b!=null&&b<=ut&&xn.lineNumber;xn.changes&&(vt(xn.changes,"gutter")>-1&&(Vn=!1),Ul(a,xn,ut,z)),Vn&&(ct(xn.lineNumber),xn.lineNumber.appendChild(document.createTextNode(Zt(a.options,ut)))),be=xn.node.nextSibling}ut+=xn.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 Ft(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 pn(a){var b=a.gutters,z=a.gutterSpecs;ct(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){pn(a.display),ja(a),Ft(a)}function In(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: "+Ht+"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&&we)&&(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),pn(ee),z.init(ee)}var zn=0,Ln=null;Se?Ln=-.53:y?Ln=15:De?Ln=-.7:We&&(Ln=-1/3);function Br(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=Br(a);return b.x*=Ln,b.y*=Ln,b}function nr(a,b){var z=Br(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&&Pe&&Ce){e:for(var ut=b.target,dn=le.view;ut!=be;ut=ut.parentNode)for(var xn=0;xn<dn.length;xn++)if(dn[xn].node==ut){a.display.currentWheelTarget=ut;break e}}if(x&&!y&&!fe&&Ln!=null){ee&&Ue&&js(a,Math.max(0,be.scrollTop+ee*Ln)),gs(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,Mr=Vn+le.wrapper.clientHeight;Yn<0?Vn=Math.max(0,Vn+Yn-50):Mr=Math.min(a.doc.height,Mr+Yn+50),is(a,{top:Vn,bottom:Mr})}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 qr=be.scrollLeft-le.wheelStartX,wa=be.scrollTop-le.wheelStartY,Ka=wa&&le.wheelDY&&wa/le.wheelDY||qr&&le.wheelDX&&qr/le.wheelDX;le.wheelStartX=le.wheelStartY=null,Ka&&(Ln=(Ln*zn+Ka)/(zn+1),++zn)}},200)):(le.wheelDX+=x,le.wheelDY+=ee))}}var Xn=function(a,b){this.ranges=a,this.primIndex=b};Xn.prototype.primary=function(){return this.ranges[this.primIndex]},Xn.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(!cn(z.anchor,x.anchor)||!cn(z.head,x.head))return!1}return!0},Xn.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Gn(ar(this.ranges[b].anchor),ar(this.ranges[b].head));return new Xn(a,this.primIndex)},Xn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Xn.prototype.contains=function(a,b){b||(b=a);for(var z=0;z<this.ranges.length;z++){var x=this.ranges[z];if(gt(b,x.from())>=0&>(a,x.to())<=0)return z}return-1};var Gn=function(a,b){this.anchor=a,this.head=b};Gn.prototype.from=function(){return At(this.anchor,this.head)},Gn.prototype.to=function(){return mr(this.anchor,this.head)},Gn.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 gt(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=gt(Me.to(),be.from());if(x&&!be.empty()?Ue>0:Ue>=0){var ut=At(Me.from(),be.from()),dn=mr(Me.to(),be.to()),xn=Me.empty()?be.from()==be.head:Me.from()==Me.head;le<=z&&--z,b.splice(--le,2,new Gn(xn?dn:ut,xn?ut:dn))}}return new Xn(b,z)}function _r(a,b){return new Xn([new Gn(a,b||a)],0)}function da(a){return a.text?at(a.from.line+a.text.length-1,ht(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ea(a,b){if(gt(a,b.from)<0)return a;if(gt(a,b.to)<=0)return da(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+=da(b).ch-b.to.ch),at(z,x)}function Jr(a,b){for(var z=[],x=0;x<a.sel.ranges.length;x++){var ee=a.sel.ranges[x];z.push(new Gn(Ea(ee.anchor,b),Ea(ee.head,b)))}return ia(a.cm,z,a.sel.primIndex)}function Aa(a,b,z){return a.line==b.line?at(z.line,a.ch-b.ch+z.ch):at(z.line+(a.line-b.line),a.ch)}function La(a,b,z){for(var x=[],ee=at(a.first,0),le=ee,be=0;be<b.length;be++){var Me=b[be],Ue=Aa(Me.from,ee,le),ut=Aa(da(Me),ee,le);if(ee=Me.to,le=ut,z=="around"){var dn=a.sel.ranges[be],xn=gt(dn.head,dn.anchor)<0;x[be]=new Gn(xn?ut:Ue,xn?Ue:ut)}else x[be]=new Gn(Ue,Ue)}return new Xn(x,a.sel.primIndex)}function Qa(a){a.doc.mode=vr(a.options,a.doc.modeOption),Ga(a)}function Ga(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,ko(a,100),a.state.modeGen++,a.curOp&&ja(a)}function eo(a,b){return b.from.ch==0&&b.to.ch==0&&ht(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Si(a,b,z,x){function ee(ii){return z?z[ii]:null}function le(ii,Wa,bi){gi(ii,Wa,bi,x),no(ii,"change",ii,b)}function be(ii,Wa){for(var bi=[],to=ii;to<Wa;++to)bi.push(new ai(ut[to],ee(to),x));return bi}var Me=b.from,Ue=b.to,ut=b.text,dn=An(a,Me.line),xn=An(a,Ue.line),Yn=ht(ut),Vn=ee(ut.length-1),Mr=Ue.line-Me.line;if(b.full)a.insert(0,be(0,ut.length)),a.remove(ut.length,a.size-ut.length);else if(eo(a,b)){var qr=be(0,ut.length-1);le(xn,xn.text,Vn),Mr&&a.remove(Me.line,Mr),qr.length&&a.insert(Me.line,qr)}else if(dn==xn)if(ut.length==1)le(dn,dn.text.slice(0,Me.ch)+Yn+dn.text.slice(Ue.ch),Vn);else{var wa=be(1,ut.length-1);wa.push(new ai(Yn+dn.text.slice(Ue.ch),Vn,x)),le(dn,dn.text.slice(0,Me.ch)+ut[0],ee(0)),a.insert(Me.line+1,wa)}else if(ut.length==1)le(dn,dn.text.slice(0,Me.ch)+ut[0]+xn.text.slice(Ue.ch),ee(0)),a.remove(Me.line+1,Mr);else{le(dn,dn.text.slice(0,Me.ch)+ut[0],ee(0)),le(xn,Yn+xn.text.slice(Ue.ch),Vn);var Ka=be(1,ut.length-1);Mr>1&&a.remove(Me.line+1,Mr-1),a.insert(Me.line+1,Ka)}no(a,"change",a,b)}function vi(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 ut=be&&Ue.sharedHist;z&&!ut||(b(Ue.doc,ut),x(Ue.doc,ee,ut))}}}x(a,null,!0)}function $i(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,fa(a),Qa(a),qa(a),a.options.lineWrapping||ea(a),a.options.mode=b.modeOption,ja(a)}function qa(a){(a.doc.direction=="rtl"?de:Je)(a.display.lineDiv,"CodeMirror-rtl")}function ti(a){Ta(a,function(){qa(a),ja(a)})}function Ra(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 Ca(a,b){var z={from:ar(b.from),to:da(b),text:$n(a,b.from,b.to)};return pl(a,z,b.from.line,b.to.line+1),vi(a,function(x){return pl(x,z,b.from.line,b.to.line+1)},!0),z}function Ja(a){for(;a.length;){var b=ht(a);if(b.ranges)a.pop();else break}}function ni(a,b){if(b)return Ja(a.done),ht(a.done);if(a.done.length&&!ht(a.done).ranges)return ht(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ht(a.done)}function wi(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=ni(ee,ee.lastOp==x)))Me=ht(be.changes),gt(b.from,b.to)==0&>(b.from,Me.to)==0?Me.to=da(b):be.changes.push(Ca(a,b));else{var Ue=ht(ee.done);for((!Ue||!Ue.ranges)&&so(a.sel,ee.done),be={changes:[Ca(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||gn(a,"historyAdded")}function Ma(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||Ma(a,le,ht(ee.done),b))?ee.done[ee.done.length-1]=b:so(b,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=le,ee.lastSelOp=z,x&&x.clearRedo!==!1&&Ja(ee.undone)}function so(a,b){var z=ht(b);z&&z.ranges&&z.equals(a)||b.push(a)}function pl(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 ol(a,b){var z=el(a,b),x=Ya(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],ut=0;ut<le.length;++ut)if(le[ut].marker==Ue.marker)continue e;le.push(Ue)}else be&&(z[ee]=be)}return z}function El(a,b,z){for(var x=[],ee=0;ee<a.length;++ee){var le=a[ee];if(le.ranges){x.push(z?Xn.prototype.deepCopy.call(le):le);continue}var be=le.changes,Me=[];x.push({changes:Me});for(var Ue=0;Ue<be.length;++Ue){var ut=be[Ue],dn=void 0;if(Me.push({from:ut.from,to:ut.to,text:ut.text}),b)for(var xn in ut)(dn=xn.match(/^spans_(\d+)$/))&&vt(b,Number(dn[1]))>-1&&(ht(Me)[xn]=ut[xn],delete ut[xn])}}return x}function mo(a,b,z,x){if(x){var ee=a.anchor;if(z){var le=gt(b,ee)<0;le!=gt(z,ee)<0?(ee=b,b=z):le!=gt(b,z)<0&&(b=z)}return new Gn(ee,b)}else return new Gn(z||b,b)}function yo(a,b,z,x,ee){ee==null&&(ee=a.cm&&(a.cm.display.shift||a.extend)),Ua(a,new Xn([mo(a.sel.primary(),b,z,ee)],0),x)}function ll(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]=mo(a.sel.ranges[le],b[le],null,ee);var be=ia(a.cm,x,a.sel.primIndex);Ua(a,be,z)}function cl(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 fi(a,b,z,x){Ua(a,_r(b,z),x)}function qi(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 Gn(Mt(a,ee[le].anchor),Mt(a,ee[le].head))},origin:z&&z.origin};return gn(a,"beforeSelectionChange",a,x),a.cm&&gn(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=b.ranges?ia(a.cm,x.ranges,x.ranges.length-1):b}function li(a,b,z){var x=a.history.done,ee=ht(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){(jt(a,"beforeSelectionChange")||a.cm&&jt(a.cm,"beforeSelectionChange"))&&(b=qi(a,b,z));var x=z&&z.bias||(gt(b.primary().head,a.sel.primary().head)<0?-1:1);To(a,Co(a,b,x,!0)),!(z&&z.scroll===!1)&&a.cm&&xs(a.cm)}function To(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Qt(a.cm)),no(a,"cursorActivity",a))}function sl(a){To(a,Co(a,a.sel,null,!1))}function Co(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=Bl(a,be.anchor,Me&&Me.anchor,z,x),ut=Bl(a,be.head,Me&&Me.head,z,x);(ee||Ue!=be.anchor||ut!=be.head)&&(ee||(ee=b.ranges.slice(0,le)),ee[le]=new Gn(Ue,ut))}return ee?ia(a.cm,ee,b.primIndex):b}function hl(a,b,z,x,ee){var le=An(a,b.line);if(le.markedSpans)for(var be=0;be<le.markedSpans.length;++be){var Me=le.markedSpans[be],Ue=Me.marker,ut="selectLeft"in Ue?!Ue.selectLeft:Ue.inclusiveLeft,dn="selectRight"in Ue?!Ue.selectRight:Ue.inclusiveRight;if((Me.from==null||(ut?Me.from<=b.ch:Me.from<b.ch))&&(Me.to==null||(dn?Me.to>=b.ch:Me.to>b.ch))){if(ee&&(gn(Ue,"beforeCursorEnter"),Ue.explicitlyCleared))if(le.markedSpans){--be;continue}else break;if(!Ue.atomic)continue;if(z){var xn=Ue.find(x<0?1:-1),Yn=void 0;if((x<0?dn:ut)&&(xn=Bi(a,xn,-x,xn&&xn.line==b.line?le:null)),xn&&xn.line==b.line&&(Yn=gt(xn,z))&&(x<0?Yn<0:Yn>0))return hl(a,xn,b,x,ee)}var Vn=Ue.find(x<0?-1:1);return(x<0?ut:dn)&&(Vn=Bi(a,Vn,x,Vn.line==b.line?le:null)),Vn?hl(a,Vn,b,x,ee):null}}return b}function Bl(a,b,z,x,ee){var le=x||1,be=hl(a,b,z,le,ee)||!ee&&hl(a,b,z,le,!0)||hl(a,b,z,-le,ee)||!ee&&hl(a,b,z,-le,!0);return be||(a.cantEdit=!0,at(a.first,0))}function Bi(a,b,z,x){return z<0&&b.ch==0?b.line>a.first?Mt(a,at(b.line-1)):null:z>0&&b.ch==(x||An(a,b.line)).text.length?b.line<a.first+a.size-1?at(b.line+1,0):null:new at(b.line,b.ch+z)}function Ri(a){a.setSelection(at(a.firstLine(),0),at(a.lastLine()),Be)}function Do(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=Mt(a,ee)),le&&(x.to=Mt(a,le)),be&&(x.text=be),Me!==void 0&&(x.origin=Me)}),gn(a,"beforeChange",a,x),a.cm&&gn(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 zo(a,b,z){if(a.cm){if(!a.cm.curOp)return Ir(a.cm,zo)(a,b,z);if(a.cm.state.suppressEdits)return}if(!((jt(a,"beforeChange")||a.cm&&jt(a.cm,"beforeChange"))&&(b=Do(a,b,!0),!b))){var x=Ur&&!z&&ji(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]==""&>(b.from,b.to)==0)){var z=Jr(a,b);wi(a,b,z,a.cm?a.cm.curOp.id:NaN),Yl(a,b,z,Ya(a,b));var x=[];vi(a,function(ee,le){!le&&vt(x,ee.history)==-1&&(Dl(ee.history,b),x.push(ee.history)),Yl(ee,b,null,Ya(ee,b))})}}function Ml(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,ut=0;ut<Me.length&&(le=Me[ut],!(z?le.ranges&&!le.equals(a.sel):!le.ranges));ut++);if(ut!=Me.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(le=Me.pop(),le.ranges){if(so(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 dn=[];so(be,Ue),Ue.push({changes:dn,generation:ee.generation}),ee.generation=le.generation||++ee.maxGeneration;for(var xn=jt(a,"beforeChange")||a.cm&&jt(a.cm,"beforeChange"),Yn=function(qr){var wa=le.changes[qr];if(wa.origin=b,xn&&!Do(a,wa,!1))return Me.length=0,{};dn.push(Ca(a,wa));var Ka=qr?Jr(a,wa):ht(Me);Yl(a,wa,Ka,ol(a,wa)),!qr&&a.cm&&a.cm.scrollIntoView({from:wa.from,to:da(wa)});var ii=[];vi(a,function(Wa,bi){!bi&&vt(ii,Wa.history)==-1&&(Dl(Wa.history,wa),ii.push(Wa.history)),Yl(Wa,wa,null,ol(Wa,wa))})},Vn=le.changes.length-1;Vn>=0;--Vn){var Mr=Yn(Vn);if(Mr)return Mr.v}}}}function Cl(a,b){if(b!=0&&(a.first+=b,a.sel=new Xn(un(a.sel.ranges,function(ee){return new Gn(at(ee.anchor.line+b,ee.anchor.ch),at(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++)ua(a.cm,x,"gutter")}}function Yl(a,b,z,x){if(a.cm&&!a.cm.curOp)return Ir(a.cm,Yl)(a,b,z,x);if(b.to.line<a.first){Cl(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);Cl(a,ee),b={from:at(a.first,0),to:at(b.to.line+ee,b.to.ch),text:[ht(b.text)],origin:b.origin}}var le=a.lastLine();b.to.line>le&&(b={from:b.from,to:at(le,An(a,le).text.length),text:[b.text[0]],origin:b.origin}),b.removed=$n(a,b.from,b.to),z||(z=Jr(a,b)),a.cm?Go(a.cm,b,x):Si(a,b,x),po(a,z,Be),a.cantEdit&&Bl(a,at(a.firstLine(),0))&&(a.cantEdit=!1)}}function Go(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=kt(tr(An(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&&Qt(a),Si(x,b,z,ha(a)),a.options.lineWrapping||(x.iter(Ue,le.line+b.text.length,function(Vn){var Mr=$a(Vn);Mr>ee.maxLineLength&&(ee.maxLine=Vn,ee.maxLineLength=Mr,ee.maxLineChanged=!0,Me=!1)}),Me&&(a.curOp.updateMaxLine=!0)),Fa(x,le.line),ko(a,400);var ut=b.text.length-(be.line-le.line)-1;b.full?ja(a):le.line==be.line&&b.text.length==1&&!eo(a.doc,b)?ua(a,le.line,"text"):ja(a,le.line,be.line+1,ut);var dn=jt(a,"changes"),xn=jt(a,"change");if(xn||dn){var Yn={from:le,to:be,text:b.text,removed:b.removed,origin:b.origin};xn&&no(a,"change",a,Yn),dn&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Yn)}a.display.selForContextMenu=null}function Ao(a,b,z,x,ee){var le;x||(x=z),gt(x,z)<0&&(le=[x,z],z=le[0],x=le[1]),typeof b=="string"&&(b=a.splitLines(b)),zo(a,{from:z,to:x,text:b,origin:ee})}function Xo(a,b,z,x){z<a.line?a.line+=x:b<a.line&&(a.line=b,a.ch=0)}function tl(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++)Xo(le.ranges[Me].anchor,b,z,x),Xo(le.ranges[Me].head,b,z,x);continue}for(var Ue=0;Ue<le.changes.length;++Ue){var ut=le.changes[Ue];if(z<ut.from.line)ut.from=at(ut.from.line+x,ut.from.ch),ut.to=at(ut.to.line+x,ut.to.ch);else if(b<=ut.to.line){be=!1;break}}be||(a.splice(0,ee+1),ee=0)}}function Dl(a,b){var z=b.from.line,x=b.to.line,ee=b.text.length-(x-z)-1;tl(a.done,z,x,ee),tl(a.undone,z,x,ee)}function vl(a,b,z,x){var ee=b,le=b;return typeof b=="number"?le=An(a,Tt(a,b)):ee=kt(b),ee==null?null:(x(le,ee)&&a.cm&&ua(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 nl(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}nl.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 nl(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 nl(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 Lo=function(a,b,z){if(z)for(var x in z)z.hasOwnProperty(x)&&(this[x]=z[x]);this.doc=a,this.node=b};Lo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,z=this.line,x=kt(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=oo(this);ur(z,Math.max(0,z.height-le)),a&&(Ta(a,function(){Kl(a,z,-le),ua(a,x,"widget")}),no(a,"lineWidgetCleared",a,this,x))}},Lo.prototype.changed=function(){var a=this,b=this.height,z=this.doc.cm,x=this.line;this.height=null;var ee=oo(this)-b;ee&&(jr(this.doc,x)||ur(x,x.height+ee),z&&Ta(z,function(){z.curOp.forceUpdate=!0,Kl(z,x,ee),no(z,"lineWidgetChanged",z,a,kt(x))}))},rt(Lo);function Kl(a,b,z){Na(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&eu(a,z)}function gl(a,b,z,x){var ee=new Lo(a,z,x),le=a.cm;return le&&ee.noHScroll&&(le.display.alignWidgets=!0),vl(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&&!jr(a,be)){var Ue=Na(be)<a.scrollTop;ur(be,be.height+oo(ee)),Ue&&eu(le,ee.height),le.curOp.forceUpdate=!0}return!0}),le&&no(le,"lineWidgetAdded",le,ee,typeof b=="number"?b:kt(b)),ee}var ts=0,os=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++ts};os.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&As(a),jt(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=kr(be.markedSpans,this);a&&!this.collapsed?ua(a,kt(be),"text"):a&&(Me.to!=null&&(ee=kt(be)),Me.from!=null&&(x=kt(be))),be.markedSpans=Za(be.markedSpans,Me),Me.from==null&&this.collapsed&&!jr(this.doc,be)&&a&&ur(be,Fr(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Ue=0;Ue<this.lines.length;++Ue){var ut=tr(this.lines[Ue]),dn=$a(ut);dn>a.display.maxLineLength&&(a.display.maxLine=ut,a.display.maxLineLength=dn,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&&sl(a.doc)),a&&no(a,"markerCleared",a,this,x,ee),b&&ws(a),this.parent&&this.parent.clear()}},os.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=kr(le.markedSpans,this);if(be.from!=null&&(z=at(b?le:kt(le),be.from),a==-1))return z;if(be.to!=null&&(x=at(b?le:kt(le),be.to),a==1))return x}return z&&{from:z,to:x}},os.prototype.changed=function(){var a=this,b=this.find(-1,!0),z=this,x=this.doc.cm;!b||!x||Ta(x,function(){var ee=b.line,le=kt(b.line),be=gr(x,le);if(be&&(Hr(be),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!jr(z.doc,ee)&&z.height!=null){var Me=z.height;z.height=null;var Ue=oo(z)-Me;Ue&&ur(ee,ee.height+Ue)}no(x,"markerChanged",x,a)})},os.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)},os.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)}},rt(os);function Bs(a,b,z,x,ee){if(x&&x.shared)return fu(a,b,z,x,ee);if(a.cm&&!a.cm.curOp)return Ir(a.cm,Bs)(a,b,z,x,ee);var le=new os(a,ee),be=gt(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(Sr(a,b.line,b,z,le)||b.line!=z.line&&Sr(a,z.line,b,z,le))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ia()}le.addToHistory&&wi(a,{from:b,to:z,origin:"markText"},a.sel,NaN);var Me=b.line,Ue=a.cm,ut;if(a.iter(Me,z.line+1,function(xn){Ue&&le.collapsed&&!Ue.options.lineWrapping&&tr(xn)==Ue.display.maxLine&&(ut=!0),le.collapsed&&Me!=b.line&&ur(xn,0),Sa(xn,new pa(le,Me==b.line?b.ch:null,Me==z.line?z.ch:null)),++Me}),le.collapsed&&a.iter(b.line,z.line+1,function(xn){jr(a,xn)&&ur(xn,0)}),le.clearOnEnter&&Vt(le,"beforeCursorEnter",function(){return le.clear()}),le.readOnly&&(Xa(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),le.collapsed&&(le.id=++ts,le.atomic=!0),Ue){if(ut&&(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 dn=b.line;dn<=z.line;dn++)ua(Ue,dn,"text");le.atomic&&sl(Ue.doc),no(Ue,"markerAdded",Ue,le)}return le}var rl=function(a,b){this.markers=a,this.primary=b;for(var z=0;z<a.length;++z)a[z].parent=this};rl.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")}},rl.prototype.find=function(a,b){return this.primary.find(a,b)},rt(rl);function fu(a,b,z,x,ee){x=it(x),x.shared=!1;var le=[Bs(a,b,z,x,ee)],be=le[0],Me=x.widgetNode;return vi(a,function(Ue){Me&&(x.widgetNode=Me.cloneNode(!0)),le.push(Bs(Ue,Mt(Ue,b),Mt(Ue,z),x,ee));for(var ut=0;ut<Ue.linked.length;++ut)if(Ue.linked[ut].isParent)return;be=ht(le)}),new rl(le,be)}function ls(a){return a.findMarks(at(a.first,0),a.clipPos(at(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(gt(le,be)){var Me=Bs(a,le,be,x.primary,x.primary.type);x.markers.push(Me),Me.parent=x}}}function Es(a){for(var b=function(x){var ee=a[x],le=[ee.primary.doc];vi(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 Wl=0,al=function(a,b,z,x,ee){if(!(this instanceof al))return new al(a,b,z,x,ee);z==null&&(z=0),nl.call(this,[new Oo([new ai("",null)])]),this.first=z,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=z;var le=at(z,0);this.sel=_r(le),this.history=new Ra(null),this.id=++Wl,this.modeOption=b,this.lineSep=x,this.direction=ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Si(this,{from:le,to:le,text:a}),Ua(this,_r(le),Be)};al.prototype=ae(nl.prototype,{constructor:al,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=fr(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Ki(function(a){var b=at(this.first,0),z=this.first+this.size-1;zo(this,{from:b,to:at(z,An(this,z).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Fs(this.cm,0,0),Ua(this,_r(b),Be)}),replaceRange:function(a,b,z,x){b=Mt(this,b),z=z?Mt(this,z):b,Ao(this,a,b,z,x)},getRange:function(a,b,z){var x=$n(this,Mt(this,a),Mt(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(pt(this,a))return An(this,a)},getLineNumber:function(a){return kt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=An(this,a)),tr(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Mt(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:Ki(function(a,b,z){fi(this,Mt(this,typeof a=="number"?at(a,b||0):a),null,z)}),setSelection:Ki(function(a,b,z){fi(this,Mt(this,a),Mt(this,b||a),z)}),extendSelection:Ki(function(a,b,z){yo(this,Mt(this,a),b&&Mt(this,b),z)}),extendSelections:Ki(function(a,b){ll(this,On(this,a),b)}),extendSelectionsBy:Ki(function(a,b){var z=un(this.sel.ranges,a);ll(this,On(this,z),b)}),setSelections:Ki(function(a,b,z){if(a.length){for(var x=[],ee=0;ee<a.length;ee++)x[ee]=new Gn(Mt(this,a[ee].anchor),Mt(this,a[ee].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Ua(this,ia(this.cm,x,b),z)}}),addSelection:Ki(function(a,b,z){var x=this.sel.ranges.slice(0);x.push(new Gn(Mt(this,a),Mt(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:Ki(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--)zo(this,x[Ue]);Me?li(this,Me):this.cm&&xs(this.cm)}),undo:Ki(function(){Ml(this,"undo")}),redo:Ki(function(){Ml(this,"redo")}),undoSelection:Ki(function(){Ml(this,"undo",!0)}),redoSelection:Ki(function(){Ml(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 Ra(this.history.maxGeneration),vi(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:El(this.history.done),undone:El(this.history.undone)}},setHistory:function(a){var b=this.history=new Ra(this.history.maxGeneration);b.done=El(a.done.slice(0),null,!0),b.undone=El(a.undone.slice(0),null,!0)},setGutterMarker:Ki(function(a,b,z){return vl(this,a,"gutter",function(x){var ee=x.gutterMarkers||(x.gutterMarkers={});return ee[b]=z,!z&&ie(ee)&&(x.gutterMarkers=null),!0})}),clearGutter:Ki(function(a){var b=this;this.iter(function(z){z.gutterMarkers&&z.gutterMarkers[a]&&vl(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(!pt(this,a)||(b=a,a=An(this,a),!a))return null}else if(b=kt(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:Ki(function(a,b,z){return vl(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(qe(z).test(x[ee]))return!1;x[ee]+=" "+z}return!0})}),removeLineClass:Ki(function(a,b,z){return vl(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(qe(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:Ki(function(a,b,z){return gl(this,a,b,z)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,z){return Bs(this,Mt(this,a),Mt(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=Mt(this,a),Bs(this,a,a,z,"bookmark")},findMarksAt:function(a){a=Mt(this,a);var b=[],z=An(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=Mt(this,a),b=Mt(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}),Mt(this,at(z,b))},indexFromPos:function(a){a=Mt(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 al(fr(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 al(fr(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,ls(this)),x},unlinkDoc:function(a){if(a instanceof wl&&(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),Es(ls(this));break}}if(a.history==this.history){var x=[a.id];vi(a,function(ee){return x.push(ee.id)},!0),a.history=new Ra(null),a.history.done=El(this.history.done,x),a.history.undone=El(this.history.undone,x)}},iterLinkedDocs:function(a){vi(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Dn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Ki(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))})}),al.prototype.eachLine=al.prototype.iter;var ss=0;function Hs(a){var b=this;if(nu(b),!(Lt(b,a)||Qo(b.display,a))){Nt(a),Se&&(ss=+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=Mt(b.doc,z);var Vn={from:z,to:z,text:b.doc.splitLines(le.filter(function(Mr){return Mr!=null}).join(b.doc.lineSeparator())),origin:"paste"};zo(b.doc,Vn),li(b.doc,_r(Mt(b.doc,z),Mt(b.doc,da(Vn))))})()},Ue=function(Vn,Mr){if(b.options.allowDropFileTypes&&vt(b.options.allowDropFileTypes,Vn.type)==-1){Me();return}var qr=new FileReader;qr.onerror=function(){return Me()},qr.onload=function(){var wa=qr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(wa)){Me();return}le[Mr]=wa,Me()},qr.readAsText(Vn)},ut=0;ut<x.length;ut++)Ue(x[ut],ut);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 dn=a.dataTransfer.getData("Text");if(dn){var xn;if(b.state.draggingText&&!b.state.draggingText.copy&&(xn=b.listSelections()),po(b.doc,_r(z,z)),xn)for(var Yn=0;Yn<xn.length;++Yn)Ao(b.doc,"",xn[Yn].anchor,xn[Yn].head,"drag");b.replaceSelection(dn,"around","paste"),b.display.input.focus()}}catch(Vn){}}}}function Os(a,b){if(Se&&(!a.state.draggingText||+new Date-ss<100)){lt(b);return}if(!(Lt(a,b)||Qo(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==",fe&&(z.width=z.height=1,a.display.wrapper.appendChild(z),z._top=z.offsetTop),b.dataTransfer.setDragImage(z,0,0),fe&&z.parentNode.removeChild(z)}}function Ns(a,b){var z=Nr(a,b);if(z){var x=document.createDocumentFragment();Pa(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)),bt(a.display.dragCursor,x)}}function nu(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function mu(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 Su=!1;function wu(){Su||(Zu(),Su=!0)}function Zu(){var a;Vt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,mu(io)},100))}),Vt(window,"blur",function(){return mu(Pl)})}function io(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var wo={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"},fl=0;fl<10;fl++)wo[fl+48]=wo[fl+96]=String(fl);for(var xl=65;xl<=90;xl++)wo[xl]=String.fromCharCode(xl);for(var zl=1;zl<=12;zl++)wo[zl+111]=wo[zl+63235]="F"+zl;var Sl={};Sl.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"},Sl.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"},Sl.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"},Sl.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"]},Sl.default=Pe?Sl.macDefault:Sl.pcDefault;function Ds(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 Gl(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=un(z.split(" "),Ds),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 ut in b)a[ut]=b[ut];return a}function ks(a,b,z,x){b=pu(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 ks(a,b.fallthrough,z,x);for(var le=0;le<b.fallthrough.length;le++){var be=ks(a,b.fallthrough[le],z,x);if(be)return be}}}function Bu(a){var b=typeof a=="string"?a:wo[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function ru(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 Ys(a,b){if(fe&&a.keyCode==34&&a.char)return!1;var z=wo[a.keyCode];return z==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(z=a.code),ru(z,a,b))}function pu(a){return typeof a=="string"?Sl[a]:a}function Qs(a,b){for(var z=a.doc.sel.ranges,x=[],ee=0;ee<z.length;ee++){for(var le=b(z[ee]);x.length&>(le.from,ht(x).to)<=0;){var be=x.pop();if(gt(be.from,le.from)<0){le.from=be.from;break}}x.push(le)}Ta(a,function(){for(var Me=x.length-1;Me>=0;Me--)Ao(a.doc,"",x[Me].from,x[Me].to,"+delete");xs(a)})}function $u(a,b,z){var x=It(a.text,b+z,z);return x<0||x>a.text.length?null:x}function Ls(a,b,z){var x=$u(a,b.ch,z);return x==null?null:new at(b.line,x,z<0?"after":"before")}function ju(a,b,z,x,ee){if(a){b.doc.direction=="rtl"&&(ee=-ee);var le=Qe(z,b.doc.direction);if(le){var be=ee<0?ht(le):le[0],Me=ee<0==(be.level==1),Ue=Me?"after":"before",ut;if(be.level>0||b.doc.direction=="rtl"){var dn=na(b,z);ut=ee<0?z.text.length-1:0;var xn=Ci(b,dn,ut).top;ut=Xe(function(Yn){return Ci(b,dn,Yn).top==xn},ee<0==(be.level==1)?be.from:be.to-1,ut),Ue=="before"&&(ut=$u(z,ut,1))}else ut=ee<0?be.to:be.from;return new at(x,ut,Ue)}}return new at(x,ee<0?z.text.length:0,ee<0?"before":"after")}function tc(a,b,z,x){var ee=Qe(b,a.doc.direction);if(!ee)return Ls(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=Bt(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 Ls(b,z,x);var Me=function(Ka,ii){return $u(b,Ka instanceof at?Ka.ch:Ka,ii)},Ue,ut=function(Ka){return a.options.lineWrapping?(Ue=Ue||na(a,b),rn(a,b,Ue,Ka)):{begin:0,end:b.text.length}},dn=ut(z.sticky=="before"?Me(z,-1):z.ch);if(a.doc.direction=="rtl"||be.level==1){var xn=be.level==1==x<0,Yn=Me(z,xn?1:-1);if(Yn!=null&&(xn?Yn<=be.to&&Yn<=dn.end:Yn>=be.from&&Yn>=dn.begin)){var Vn=xn?"before":"after";return new at(z.line,Yn,Vn)}}var Mr=function(Ka,ii,Wa){for(var bi=function(ml,ql){return ql?new at(z.line,Me(ml,1),"before"):new at(z.line,ml,"after")};Ka>=0&&Ka<ee.length;Ka+=ii){var to=ee[Ka],Gi=ii>0==(to.level!=1),Bo=Gi?Wa.begin:Me(Wa.end,-1);if(to.from<=Bo&&Bo<to.to||(Bo=Gi?to.from:Me(to.to,-1),Wa.begin<=Bo&&Bo<Wa.end))return bi(Bo,Gi)}},qr=Mr(le+x,x,dn);if(qr)return qr;var wa=x>0?dn.end:Me(dn.begin,-1);return wa!=null&&!(x>0&&wa==b.text.length)&&(qr=Mr(x>0?0:ee.length-1,x,ut(wa)),qr)?qr:null}var Vs={selectAll:Ri,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Be)},killLine:function(a){return Qs(a,function(b){if(b.empty()){var z=An(a.doc,b.head.line).text.length;return b.head.ch==z&&b.head.line<a.lastLine()?{from:b.head,to:at(b.head.line+1,0)}:{from:b.head,to:at(b.head.line,z)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return Qs(a,function(b){return{from:at(b.from().line,0),to:Mt(a.doc,at(b.to().line+1,0))}})},delLineLeft:function(a){return Qs(a,function(b){return{from:at(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return Qs(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 Qs(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(at(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(at(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Wu(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Hu(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return zu(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")},ot)},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")},ot)},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/)?Hu(a,b.head):x},ot)},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=Ie(a.getLine(le.line),le.ch,x);b.push(wt(x-be%x))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Ta(a,function(){for(var b=a.listSelections(),z=[],x=0;x<b.length;x++)if(b[x].empty()){var ee=b[x].head,le=An(a.doc,ee.line).text;if(le){if(ee.ch==le.length&&(ee=new at(ee.line,ee.ch-1)),ee.ch>0)ee=new at(ee.line,ee.ch+1),a.replaceRange(le.charAt(ee.ch-1)+le.charAt(ee.ch-2),at(ee.line,ee.ch-2),ee,"+transpose");else if(ee.line>a.doc.first){var be=An(a.doc,ee.line-1).text;be&&(ee=new at(ee.line,1),a.replaceRange(le.charAt(0)+a.doc.lineSeparator()+be.charAt(be.length-1),at(ee.line-1,be.length-1),ee,"+transpose"))}}z.push(new Gn(ee,ee))}a.setSelections(z)})},newlineAndIndent:function(a){return Ta(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);xs(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Wu(a,b){var z=An(a.doc,b),x=tr(z);return x!=z&&(b=kt(x)),ju(!0,a,x,b,1)}function zu(a,b){var z=An(a.doc,b),x=$r(z);return x!=z&&(b=kt(x)),ju(!0,a,z,b,-1)}function Hu(a,b){var z=Wu(a,b.line),x=An(a.doc,z.line),ee=Qe(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 at(z.line,be?0:le,z.sticky)}return z}function hu(a,b,z){if(typeof b=="string"&&(b=Vs[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)!=Et}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=ks(b,a.state.keyMaps[x],z,a);if(ee)return ee}return a.options.extraKeys&&ks(b,a.options.extraKeys,z,a)||ks(b,a.options.keyMap,z,a)}var uc=new ye;function vu(a,b,z,x){var ee=a.state.keySeq;if(ee){if(Bu(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())}),Vu(a,ee+" "+b,z,x))return!0}return Vu(a,b,z,x)}function Vu(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 gu(a,b){var z=Ys(b,!0);return z?b.shiftKey&&!a.state.keySeq?vu(a,"Shift-"+z,b,function(x){return hu(a,x,!0)})||vu(a,z,b,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return hu(a,x)}):vu(a,z,b,function(x){return hu(a,x)}):!1}function Du(a,b,z){return vu(a,"'"+z+"'",b,function(x){return hu(a,x,!0)})}var yu=null;function Ku(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=gu(b,a);fe&&(yu=x?z:null,!x&&z==88&&!Ot&&(Pe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),y&&!Pe&&!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;de(b,"CodeMirror-crosshair");function z(x){(x.keyCode==18||!x.altKey)&&(Je(b,"CodeMirror-crosshair"),Fn(document,"keyup",z),Fn(document,"mouseover",z))}Vt(document,"keyup",z),Vt(document,"mouseover",z)}function Gu(a){a.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,a)}function Fu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Qo(b.display,a)||Lt(b,a)||a.ctrlKey&&!a.altKey||Pe&&a.metaKey)){var z=a.keyCode,x=a.charCode;if(fe&&z==yu){yu=null,Nt(a);return}if(!(fe&&(!a.which||a.which<10)&&gu(b,a))){var ee=String.fromCharCode(x==null?z:x);ee!="\b"&&(Du(b,a,ee)||b.display.input.onKeyPress(a))}}}var cc=400,Iu=function(a,b,z){this.time=a,this.pos=b,this.button=z};Iu.prototype.compare=function(a,b,z){return this.time+cc>a&>(b,this.pos)==0&&z==this.button};var Js,au;function Uu(a,b){var z=+new Date;return au&&au.compare(z,a,b)?(Js=au=null,"triple"):Js&&Js.compare(z,a,b)?(au=new Iu(z,a,b),Js=null,"double"):(Js=new Iu(z,a,b),au=null,"single")}function Xu(a){var b=this,z=b.display;if(!(Lt(b,a)||z.activeTouch&&z.input.supportsTouch())){if(z.input.ensurePolled(),z.shift=a.shiftKey,Qo(z,a)){Ce||(z.scroller.draggable=!1,setTimeout(function(){return z.scroller.draggable=!0},100));return}if(!Ts(b,a)){var x=Nr(b,a),ee=en(a),le=x?Uu(x,ee):"single";window.focus(),ee==1&&b.state.selectingText&&b.state.selectingText(a),!(x&&Pu(b,ee,x,le,a))&&(ee==1?x?Mo(b,x,le,a):Rt(a)==z.scroller&&Nt(a):ee==2?(x&&yo(b.doc,x),setTimeout(function(){return z.input.focus()},20)):ee==3&&(Oe?b.display.input.onContextMenu(a):Oi(b)))}}}function Pu(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,vu(a,ru(le,ee),ee,function(be){if(typeof be=="string"&&(be=Vs[be]),!be)return!1;var Me=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Me=be(a,z)!=Et}finally{a.state.suppressEdits=!1}return Me})}function Fo(a,b,z){var x=a.getOption("configureMouse"),ee=x?x(a,b,z):{};if(ee.unit==null){var le=Fe?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=Pe?z.metaKey:z.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(Pe?z.altKey:z.ctrlKey)),ee}function Mo(a,b,z,x){Se?setTimeout(je(Xl,a),0):a.curOp.focus=xe();var ee=Fo(a,z,x),le=a.doc.sel,be;a.options.dragDrop&&Pt&&!a.isReadOnly()&&z=="single"&&(be=le.contains(b))>-1&&(gt((be=le.ranges[be]).from(),b)<0||b.xRel>0)&&(gt(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(ut){Ce&&(ee.scroller.draggable=!1),a.state.draggingText=!1,Fn(ee.wrapper.ownerDocument,"mouseup",be),Fn(ee.wrapper.ownerDocument,"mousemove",Me),Fn(ee.scroller,"dragstart",Ue),Fn(ee.scroller,"drop",be),le||(Nt(ut),x.addNew||yo(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(ut){le=le||Math.abs(b.clientX-ut.clientX)+Math.abs(b.clientY-ut.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(),Vt(ee.wrapper.ownerDocument,"mouseup",be),Vt(ee.wrapper.ownerDocument,"mousemove",Me),Vt(ee.scroller,"dragstart",Ue),Vt(ee.scroller,"drop",be),Oi(a),setTimeout(function(){return ee.input.focus()},20)}function ds(a,b,z){if(z=="char")return new Gn(b,b);if(z=="word")return a.findWordAt(b);if(z=="line")return new Gn(at(b.line,0),Mt(a.doc,at(b.line+1,0)));var x=z(a,b);return new Gn(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,ut=Ue.ranges;if(x.addNew&&!x.extend?(Me=le.sel.contains(z),Me>-1?be=ut[Me]:be=new Gn(z,z)):(be=le.sel.primary(),Me=le.sel.primIndex),x.unit=="rectangle")x.addNew||(be=new Gn(z,z)),z=Nr(a,b,!0,!0),Me=-1;else{var dn=ds(a,z,x.unit);x.extend?be=mo(be,dn.anchor,dn.head,x.extend):be=dn}x.addNew?Me==-1?(Me=ut.length,Ua(le,ia(a,ut.concat([be]),Me),{scroll:!1,origin:"*mouse"})):ut.length>1&&ut[Me].empty()&&x.unit=="char"&&!x.extend?(Ua(le,ia(a,ut.slice(0,Me).concat(ut.slice(Me+1)),0),{scroll:!1,origin:"*mouse"}),Ue=le.sel):cl(le,Me,be,ft):(Me=0,Ua(le,new Xn([be],0),ft),Ue=le.sel);var xn=z;function Yn(Wa){if(gt(xn,Wa)!=0)if(xn=Wa,x.unit=="rectangle"){for(var bi=[],to=a.options.tabSize,Gi=Ie(An(le,z.line).text,z.ch,to),Bo=Ie(An(le,Wa.line).text,Wa.ch,to),ml=Math.min(Gi,Bo),ql=Math.max(Gi,Bo),Fl=Math.min(z.line,Wa.line),Cs=Math.min(a.lastLine(),Math.max(z.line,Wa.line));Fl<=Cs;Fl++){var fs=An(le,Fl).text,kl=Xt(fs,ml,to);ml==ql?bi.push(new Gn(at(Fl,kl),at(Fl,kl))):fs.length>kl&&bi.push(new Gn(at(Fl,kl),at(Fl,Xt(fs,ql,to))))}bi.length||bi.push(new Gn(z,z)),Ua(le,ia(a,Ue.ranges.slice(0,Me).concat(bi),Me),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Wa)}else{var ms=be,ns=ds(a,Wa,x.unit),Ll=ms.anchor,Zl;gt(ns.anchor,Ll)>0?(Zl=ns.head,Ll=At(ms.from(),ns.anchor)):(Zl=ns.anchor,Ll=mr(ms.to(),ns.head));var Al=Ue.ranges.slice(0);Al[Me]=_s(a,new Gn(Mt(le,Ll),Zl)),Ua(le,ia(a,Al,Me),ft)}}var Vn=ee.wrapper.getBoundingClientRect(),Mr=0;function qr(Wa){var bi=++Mr,to=Nr(a,Wa,!0,x.unit=="rectangle");if(to)if(gt(to,xn)!=0){a.curOp.focus=xe(),Yn(to);var Gi=Po(ee,le);(to.line>=Gi.to||to.line<Gi.from)&&setTimeout(Ir(a,function(){Mr==bi&&qr(Wa)}),150)}else{var Bo=Wa.clientY<Vn.top?-20:Wa.clientY>Vn.bottom?20:0;Bo&&setTimeout(Ir(a,function(){Mr==bi&&(ee.scroller.scrollTop+=Bo,qr(Wa))}),50)}}function wa(Wa){a.state.selectingText=!1,Mr=1/0,Wa&&(Nt(Wa),ee.input.focus()),Fn(ee.wrapper.ownerDocument,"mousemove",Ka),Fn(ee.wrapper.ownerDocument,"mouseup",ii),le.history.lastSelOrigin=null}var Ka=Ir(a,function(Wa){Wa.buttons===0||!en(Wa)?wa(Wa):qr(Wa)}),ii=Ir(a,wa);a.state.selectingText=ii,Vt(ee.wrapper.ownerDocument,"mousemove",Ka),Vt(ee.wrapper.ownerDocument,"mouseup",ii)}function _s(a,b){var z=b.anchor,x=b.head,ee=An(a.doc,z.line);if(gt(z,x)==0&&z.sticky==x.sticky)return b;var le=Qe(ee);if(!le)return b;var be=Bt(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 ut;if(x.line!=z.line)ut=(x.line-z.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var dn=Bt(le,x.ch,x.sticky),xn=dn-be||(x.ch-z.ch)*(Me.level==1?-1:1);dn==Ue-1||dn==Ue?ut=xn<0:ut=xn>0}var Yn=le[Ue+(ut?-1:0)],Vn=ut==(Yn.level==1),Mr=Vn?Yn.from:Yn.to,qr=Vn?"after":"before";return z.ch==Mr&&z.sticky==qr?b:new Gn(new at(z.line,Mr,qr),x)}function Ks(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||!jt(a,z))return yn(b);le-=Me.top-be.viewOffset;for(var Ue=0;Ue<a.display.gutterSpecs.length;++Ue){var ut=be.gutters.childNodes[Ue];if(ut&&ut.getBoundingClientRect().right>=ee){var dn=Ut(a.doc,le),xn=a.display.gutterSpecs[Ue];return gn(a,z,a,dn,xn.className,b),yn(b)}}}function Ts(a,b){return Ks(a,b,"gutterClick",!0)}function iu(a,b){Qo(a.display,b)||Yu(a,b)||Lt(a,b,"contextmenu")||Oe||a.display.input.onContextMenu(b)}function Yu(a,b){return jt(a,"gutterContextMenu")?Ks(a,b,"gutterContextMenu",!1):!1}function Tc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Li(a)}var Au={toString:function(){return"CodeMirror.Init"}},rc={},ac={};function Mc(a){var b=a.optionHandlers;function z(x,ee,le,be){a.defaults[x]=ee,le&&(b[x]=be?function(Me,Ue,ut){ut!=Au&&le(Me,Ue,ut)}:le)}a.defineOption=z,a.Init=Au,z("value","",function(x,ee){return x.setValue(ee)},!0),z("mode",null,function(x,ee){x.doc.modeOption=ee,Qa(x)},!0),z("indentUnit",2,Qa,!0),z("indentWithTabs",!1),z("smartIndent",!0),z("tabSize",4,function(x){Ga(x),Li(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 ut=0;;){var dn=Ue.text.indexOf(ee,ut);if(dn==-1)break;ut=dn+ee.length,le.push(at(be,dn))}be++});for(var Me=le.length-1;Me>=0;Me--)Ao(x.doc,ee,le[Me],at(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!=Au&&x.refresh()}),z("specialCharPlaceholder",No,function(x){return x.refresh()},!0),z("electricChars",!0),z("inputStyle",we?"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",!et),z("wholeLineUpdateBefore",!0),z("theme","default",function(x){Tc(x),Mn(x)},!0),z("keyMap","default",function(x,ee,le){var be=pu(ee),Me=le!=Au&&pu(le);Me&&Me.detach&&Me.detach(x,be),be.attach&&be.attach(x,Me||null)}),z("extraKeys",null),z("configureMouse",null),z("lineWrapping",!1,bc,!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){Cu(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,ca,!0),z("resetSelectionOnContextMenu",!0),z("lineWiseCopyCut",!0),z("pasteLinesPerSelection",!0),z("selectionsMayTouch",!1),z("readOnly",!1,function(x,ee){ee=="nocursor"&&(Pl(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,Rc),z("allowDropFileTypes",null),z("cursorBlinkRate",530),z("cursorScrollMargin",0),z("cursorHeight",1,ca,!0),z("singleCursorHeightPerLine",!0,ca,!0),z("workTime",100),z("workDelay",100),z("flattenSpans",!0,Ga,!0),z("addModeClass",!1,Ga,!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,Ga,!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 Rc(a,b,z){var x=z&&z!=Au;if(!b!=!x){var ee=a.display.dragFunctions,le=b?Vt:Fn;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 bc(a){a.options.lineWrapping?(de(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Je(a.display.wrapper,"CodeMirror-wrap"),ea(a)),fa(a),ja(a),Li(a),setTimeout(function(){return zs(a)},100)}function wl(a,b){var z=this;if(!(this instanceof wl))return new wl(a,b);this.options=b=b?it(b):{},it(rc,b,!1);var x=b.value;typeof x=="string"?x=new al(x,b.mode,null,b.lineSeparator,b.direction):b.mode&&(x.modeOption=b.mode),this.doc=x;var ee=new wl.inputStyles[b.inputStyle](this),le=this.display=new In(a,x,ee,b);le.wrapper.CodeMirror=this,Tc(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Cu(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&&!we&&le.input.focus(),Se&&Ee<11&&setTimeout(function(){return z.display.input.reset(!0)},20),Ec(this),wu(),As(this),this.curOp.forceUpdate=!0,$i(this,x),b.autofocus&&!we||this.hasFocus()?setTimeout(function(){z.hasFocus()&&!z.state.focused&&Tl(z)},20):Pl(this);for(var be in ac)ac.hasOwnProperty(be)&&ac[be](this,b[be],Au);$t(this),b.finishInit&&b.finishInit(this);for(var Me=0;Me<dc.length;++Me)dc[Me](this);ws(this),Ce&&b.lineWrapping&&getComputedStyle(le.lineDiv).textRendering=="optimizelegibility"&&(le.lineDiv.style.textRendering="auto")}wl.defaults=rc,wl.optionHandlers=ac;function Ec(a){var b=a.display;Vt(b.scroller,"mousedown",Ir(a,Xu)),Se&&Ee<11?Vt(b.scroller,"dblclick",Ir(a,function(Ue){if(!Lt(a,Ue)){var ut=Nr(a,Ue);if(!(!ut||Ts(a,Ue)||Qo(a.display,Ue))){Nt(Ue);var dn=a.findWordAt(ut);yo(a.doc,dn.anchor,dn.head)}}})):Vt(b.scroller,"dblclick",function(Ue){return Lt(a,Ue)||Nt(Ue)}),Vt(b.scroller,"contextmenu",function(Ue){return iu(a,Ue)}),Vt(b.input.getField(),"contextmenu",function(Ue){b.scroller.contains(Ue.target)||iu(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 ut=Ue.touches[0];return ut.radiusX<=1&&ut.radiusY<=1}function be(Ue,ut){if(ut.left==null)return!0;var dn=ut.left-Ue.left,xn=ut.top-Ue.top;return dn*dn+xn*xn>20*20}Vt(b.scroller,"touchstart",function(Ue){if(!Lt(a,Ue)&&!le(Ue)&&!Ts(a,Ue)){b.input.ensurePolled(),clearTimeout(z);var ut=+new Date;b.activeTouch={start:ut,moved:!1,prev:ut-x.end<=300?x:null},Ue.touches.length==1&&(b.activeTouch.left=Ue.touches[0].pageX,b.activeTouch.top=Ue.touches[0].pageY)}}),Vt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Vt(b.scroller,"touchend",function(Ue){var ut=b.activeTouch;if(ut&&!Qo(b,Ue)&&ut.left!=null&&!ut.moved&&new Date-ut.start<300){var dn=a.coordsChar(b.activeTouch,"page"),xn;!ut.prev||be(ut,ut.prev)?xn=new Gn(dn,dn):!ut.prev.prev||be(ut,ut.prev.prev)?xn=a.findWordAt(dn):xn=new Gn(at(dn.line,0),Mt(a.doc,at(dn.line+1,0))),a.setSelection(xn.anchor,xn.head),a.focus(),Nt(Ue)}ee()}),Vt(b.scroller,"touchcancel",ee),Vt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(js(a,b.scroller.scrollTop),gs(a,b.scroller.scrollLeft,!0),gn(a,"scroll",a))}),Vt(b.scroller,"mousewheel",function(Ue){return nr(a,Ue)}),Vt(b.scroller,"DOMMouseScroll",function(Ue){return nr(a,Ue)}),Vt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(Ue){Lt(a,Ue)||lt(Ue)},over:function(Ue){Lt(a,Ue)||(Ns(a,Ue),lt(Ue))},start:function(Ue){return Os(a,Ue)},drop:Ir(a,Hs),leave:function(Ue){Lt(a,Ue)||nu(a)}};var Me=b.input.getField();Vt(Me,"keyup",function(Ue){return Gu.call(a,Ue)}),Vt(Me,"keydown",Ir(a,Ku)),Vt(Me,"keypress",Ir(a,Fu)),Vt(Me,"focus",function(Ue){return Tl(a,Ue)}),Vt(Me,"blur",function(Ue){return Pl(a,Ue)})}var dc=[];wl.defineInitHook=function(a){return dc.push(a)};function Ou(a,b,z,x){var ee=a.doc,le;z==null&&(z="add"),z=="smart"&&(ee.mode.indent?le=Pr(a,b).state:z="prev");var be=a.options.tabSize,Me=An(ee,b),Ue=Ie(Me.text,null,be);Me.stateAfter&&(Me.stateAfter=null);var ut=Me.text.match(/^\s*/)[0],dn;if(!x&&!/\S/.test(Me.text))dn=0,z="not";else if(z=="smart"&&(dn=ee.mode.indent(le,Me.text.slice(ut.length),Me.text),dn==Et||dn>150)){if(!x)return;z="prev"}z=="prev"?b>ee.first?dn=Ie(An(ee,b-1).text,null,be):dn=0:z=="add"?dn=Ue+a.options.indentUnit:z=="subtract"?dn=Ue-a.options.indentUnit:typeof z=="number"&&(dn=Ue+z),dn=Math.max(0,dn);var xn="",Yn=0;if(a.options.indentWithTabs)for(var Vn=Math.floor(dn/be);Vn;--Vn)Yn+=be,xn+=" ";if(Yn<dn&&(xn+=wt(dn-Yn)),xn!=ut)return Ao(ee,xn,at(b,0),at(b,ut.length),"+input"),Me.stateAfter=null,!0;for(var Mr=0;Mr<ee.sel.ranges.length;Mr++){var qr=ee.sel.ranges[Mr];if(qr.head.line==b&&qr.head.ch<ut.length){var wa=at(b,ut.length);cl(ee,Mr,new Gn(wa,wa));break}}}var Gs=null;function Nu(a){Gs=a}function fc(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=Dn(b),ut=null;if(Me&&x.ranges.length>1)if(Gs&&Gs.text.join(`
|
|
|
`)==b){if(x.ranges.length%Gs.text.length==0){ut=[];for(var dn=0;dn<Gs.text.length;dn++)ut.push(le.splitLines(Gs.text[dn]))}}else Ue.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(ut=un(Ue,function(Ka){return[Ka]}));for(var xn=a.curOp.updateInput,Yn=x.ranges.length-1;Yn>=0;Yn--){var Vn=x.ranges[Yn],Mr=Vn.from(),qr=Vn.to();Vn.empty()&&(z&&z>0?Mr=at(Mr.line,Mr.ch-z):a.state.overwrite&&!Me?qr=at(qr.line,Math.min(An(le,qr.line).text.length,qr.ch+ht(Ue).length)):Me&&Gs&&Gs.lineWise&&Gs.text.join(`
|
|
|
`)==Ue.join(`
|
|
|
`)&&(Mr=qr=at(Mr.line,0)));var wa={from:Mr,to:qr,text:ut?ut[Yn%ut.length]:Ue,origin:ee||(Me?"paste":a.state.cutIncoming>be?"cut":"+input")};zo(a.doc,wa),no(a,"inputRead",a,wa)}b&&!Me&&xc(a,b),xs(a),a.curOp.updateInput<2&&(a.curOp.updateInput=xn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Cc(a,b){var z=a.clipboardData&&a.clipboardData.getData("Text");if(z)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&Ta(b,function(){return fc(b,z,0,null,"paste")}),!0}function xc(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=Ou(a,ee.head.line,"smart");break}}else le.electricInput&&le.electricInput.test(An(a.doc,ee.head.line).text.slice(0,ee.head.ch))&&(be=Ou(a,ee.head.line,"smart"));be&&no(a,"electricInput",a,ee.head.line)}}}function Sc(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:at(ee,0),head:at(ee+1,0)};z.push(le),b.push(a.getRange(le.anchor,le.head))}return{text:b,ranges:z}}function wc(a,b,z,x){a.setAttribute("autocorrect",z?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!b)}function Bc(){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"),wc(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),gn(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"](pu(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:Zi(function(x,ee){var le=x.token?x:a.getMode(this.options,x);if(le.startState)throw new Error("Overlays may not be stateful.");zt(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:Zi(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:Zi(function(x,ee,le){typeof ee!="string"&&typeof ee!="number"&&(ee==null?ee=this.options.smartIndent?"smart":"prev":ee=ee?"add":"subtract"),pt(this.doc,x)&&Ou(this,x,ee,le)}),indentSelection:Zi(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&&(Ou(this,Me.head.line,x,!0),le=Me.head.line,be==this.doc.sel.primIndex&&xs(this));else{var Ue=Me.from(),ut=Me.to(),dn=Math.max(le,Ue.line);le=Math.min(this.lastLine(),ut.line-(ut.ch?0:1))+1;for(var xn=dn;xn<le;++xn)Ou(this,xn,x);var Yn=this.doc.sel.ranges;Ue.ch==0&&ee.length==Yn.length&&Yn[be].from().ch>0&&cl(this.doc,be,new Gn(Ue,Yn[be].to()),Be)}}}),getTokenAt:function(x,ee){return Xr(this,x,ee)},getLineTokens:function(x,ee){return Xr(this,at(x),ee,!0)},getTokenTypeAt:function(x){x=Mt(this.doc,x);var ee=hr(this,An(this.doc,x.line)),le=0,be=(ee.length-1)/2,Me=x.ch,Ue;if(Me==0)Ue=ee[2];else for(;;){var ut=le+be>>1;if((ut?ee[ut*2-1]:0)>=Me)be=ut;else if(ee[ut*2+1]<Me)le=ut+1;else{Ue=ee[ut*2+2];break}}var dn=Ue?Ue.indexOf("overlay "):-1;return dn<0?Ue:dn==0?null:Ue.slice(0,dn-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 ut=be[Me[ee][Ue]];ut&&le.push(ut)}else Me.helperType&&be[Me.helperType]?le.push(be[Me.helperType]):be[Me.name]&&le.push(be[Me.name]);for(var dn=0;dn<be._global.length;dn++){var xn=be._global[dn];xn.pred(Me,this)&&vt(le,xn.val)==-1&&le.push(xn.val)}return le},getStateAfter:function(x,ee){var le=this.doc;return x=Tt(le,x==null?le.first+le.size-1:x),Pr(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=Mt(this.doc,x):le=x?be.from():be.to(),hi(this,le,ee||"page")},charCoords:function(x,ee){return ga(this,Mt(this.doc,x),ee||"page")},coordsChar:function(x,ee){return x=xi(this,x,ee||"page"),Dt(this,x.left,x.top)},lineAtHeight:function(x,ee){return x=xi(this,{top:x,left:0},ee||"page").top,Ut(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=An(this.doc,x)}else Me=x;return go(this,Me,{top:0,left:0},ee||"page",le||be).top+(be?this.doc.height-Na(Me):0)},defaultTextHeight:function(){return Fr(this.display)},defaultCharWidth:function(){return aa(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=hi(this,Mt(this.doc,x));var ut=x.bottom,dn=x.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),Ue.sizer.appendChild(ee),be=="over")ut=x.top;else if(be=="above"||be=="near"){var xn=Math.max(Ue.wrapper.clientHeight,this.doc.height),Yn=Math.max(Ue.sizer.clientWidth,Ue.lineSpace.clientWidth);(be=="above"||x.bottom+ee.offsetHeight>xn)&&x.top>ee.offsetHeight?ut=x.top-ee.offsetHeight:x.bottom+ee.offsetHeight<=xn&&(ut=x.bottom),dn+ee.offsetWidth>Yn&&(dn=Yn-ee.offsetWidth)}ee.style.top=ut+"px",ee.style.left=ee.style.right="",Me=="right"?(dn=Ue.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(Me=="left"?dn=0:Me=="middle"&&(dn=(Ue.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=dn+"px"),le&&$s(this,{left:dn,top:ut,right:dn+ee.offsetWidth,bottom:ut+ee.offsetHeight})},triggerOnKeyDown:Zi(Ku),triggerOnKeyPress:Zi(Fu),triggerOnKeyUp:Gu,triggerOnMouseDown:Zi(Xu),execCommand:function(x){if(Vs.hasOwnProperty(x))return Vs[x].call(null,this)},triggerElectric:Zi(function(x){xc(this,x)}),findPosH:function(x,ee,le,be){var Me=1;ee<0&&(Me=-1,ee=-ee);for(var Ue=Mt(this.doc,x),ut=0;ut<ee&&(Ue=ic(this.doc,Ue,Me,le,be),!Ue.hitSide);++ut);return Ue},moveH:Zi(function(x,ee){var le=this;this.extendSelectionsBy(function(be){return le.display.shift||le.doc.extend||be.empty()?ic(le.doc,be.head,x,ee,le.options.rtlMoveVisually):x<0?be.from():be.to()},ot)}),deleteH:Zi(function(x,ee){var le=this.doc.sel,be=this.doc;le.somethingSelected()?be.replaceSelection("",null,"+delete"):Qs(this,function(Me){var Ue=ic(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 ut=Mt(this.doc,x),dn=0;dn<ee;++dn){var xn=hi(this,ut,"div");if(Ue==null?Ue=xn.left:xn.left=Ue,ut=Qu(this,xn,Me,le),ut.hitSide)break}return ut},moveV:Zi(function(x,ee){var le=this,be=this.doc,Me=[],Ue=!this.display.shift&&!be.extend&&be.sel.somethingSelected();if(be.extendSelectionsBy(function(dn){if(Ue)return x<0?dn.from():dn.to();var xn=hi(le,dn.head,"div");dn.goalColumn!=null&&(xn.left=dn.goalColumn),Me.push(xn.left);var Yn=Qu(le,xn,x,ee);return ee=="page"&&dn==be.sel.primary()&&eu(le,ga(le,Yn,"div").top-xn.top),Yn},ot),Me.length)for(var ut=0;ut<be.sel.ranges.length;ut++)be.sel.ranges[ut].goalColumn=Me[ut]}),findWordAt:function(x){var ee=this.doc,le=An(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 ut=le.charAt(be),dn=he(ut,Ue)?function(xn){return he(xn,Ue)}:/\s/.test(ut)?function(xn){return/\s/.test(xn)}:function(xn){return!/\s/.test(xn)&&!he(xn)};be>0&&dn(le.charAt(be-1));)--be;for(;Me<le.length&&dn(le.charAt(Me));)++Me}return new Gn(at(x.line,be),at(x.line,Me))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):Je(this.display.cursorDiv,"CodeMirror-overwrite"),gn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==xe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Zi(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:Or(this),clientWidth:wr(this)}},scrollIntoView:Zi(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:at(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):Ss(this,x.from,x.to,x.margin)}),setSize:Zi(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&&_i(this);var Me=this.display.viewFrom;this.doc.iter(Me,this.display.viewTo,function(Ue){if(Ue.widgets){for(var ut=0;ut<Ue.widgets.length;ut++)if(Ue.widgets[ut].noHScroll){ua(le,Me,"widget");break}}++Me}),this.curOp.forceUpdate=!0,gn(this,"refresh",this)}),operation:function(x){return Ta(this,x)},startOperation:function(){return As(this)},endOperation:function(){return ws(this)},refresh:Zi(function(){var x=this.display.cachedTextHeight;ja(this),this.curOp.forceUpdate=!0,Li(this),Fs(this,this.doc.scrollLeft,this.doc.scrollTop),Ze(this.display),(x==null||Math.abs(x-Fr(this.display))>.5||this.options.lineWrapping)&&fa(this),gn(this,"refresh",this)}),swapDoc:Zi(function(x){var ee=this.doc;return ee.cm=null,this.state.selectingText&&this.state.selectingText(),$i(this,x),Li(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}},rt(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 ic(a,b,z,x,ee){var le=b,be=z,Me=An(a,b.line),Ue=ee&&a.direction=="rtl"?-z:z;function ut(){var ii=b.line+Ue;return ii<a.first||ii>=a.first+a.size?!1:(b=new at(ii,b.ch,b.sticky),Me=An(a,ii))}function dn(ii){var Wa;if(x=="codepoint"){var bi=Me.text.charCodeAt(b.ch+(x>0?0:-1));isNaN(bi)?Wa=null:Wa=new at(b.line,Math.max(0,Math.min(Me.text.length,b.ch+z*(bi>=55296&&bi<56320?2:1))),-z)}else ee?Wa=tc(a.cm,Me,b,z):Wa=Ls(Me,b,z);if(Wa==null)if(!ii&&ut())b=ju(ee,a.cm,Me,b.line,Ue);else return!1;else b=Wa;return!0}if(x=="char"||x=="codepoint")dn();else if(x=="column")dn(!0);else if(x=="word"||x=="group")for(var xn=null,Yn=x=="group",Vn=a.cm&&a.cm.getHelper(b,"wordChars"),Mr=!0;!(z<0&&!dn(!Mr));Mr=!1){var qr=Me.text.charAt(b.ch)||`
|
|
|
`,wa=he(qr,Vn)?"w":Yn&&qr==`
|
|
|
`?"n":!Yn||/\s/.test(qr)?null:"p";if(Yn&&!Mr&&!wa&&(wa="s"),xn&&xn!=wa){z<0&&(z=1,dn(),b.sticky="after");break}if(wa&&(xn=wa),z>0&&!dn(!Mr))break}var Ka=Bl(a,b,le,be,!0);return cn(le,Ka)&&(Ka.hitSide=!0),Ka}function Qu(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 ut;ut=Dt(a,le,be),!!ut.outside;){if(z<0?be<=0:be>=ee.height){ut.hitSide=!0;break}be+=z*5}return ut}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;wc(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}Vt(ee,"paste",function(Me){!le(Me)||Lt(x,Me)||Cc(Me,x)||Ee<=11&&setTimeout(Ir(x,function(){return b.updateFromDOM()}),20)}),Vt(ee,"compositionstart",function(Me){b.composing={data:Me.data,done:!1}}),Vt(ee,"compositionupdate",function(Me){b.composing||(b.composing={data:Me.data,done:!1})}),Vt(ee,"compositionend",function(Me){b.composing&&(Me.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Vt(ee,"touchstart",function(){return z.forceCompositionEnd()}),Vt(ee,"input",function(){b.composing||b.readFromDOMSoon()});function be(Me){if(!(!le(Me)||Lt(x,Me))){if(x.somethingSelected())Nu({lineWise:!1,text:x.getSelections()}),Me.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var Ue=Sc(x);Nu({lineWise:!0,text:Ue.text}),Me.type=="cut"&&x.operation(function(){x.setSelections(Ue.ranges,0,Be),x.replaceSelection("",null,"cut")})}else return;if(Me.clipboardData){Me.clipboardData.clearData();var ut=Gs.text.join(`
|
|
|
`);if(Me.clipboardData.setData("Text",ut),Me.clipboardData.getData("Text")==ut){Me.preventDefault();return}}var dn=Bc(),xn=dn.firstChild;x.display.lineSpace.insertBefore(dn,x.display.lineSpace.firstChild),xn.value=Gs.text.join(`
|
|
|
`);var Yn=document.activeElement;Ye(xn),setTimeout(function(){x.display.lineSpace.removeChild(dn),Yn.focus(),Yn==ee&&z.showPrimarySelection()},50)}}Vt(ee,"copy",be),Vt(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=ra(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=oc(b,a.anchorNode,a.anchorOffset),be=oc(b,a.focusNode,a.focusOffset);if(!(le&&!le.bad&&be&&!be.bad&>(At(le,be),x)==0&>(mr(le,be),ee)==0)){var Me=b.display.view,Ue=x.line>=b.display.viewFrom&&Dc(b,x)||{node:Me[0].measure.map[2],offset:0},ut=ee.line<b.display.viewTo&&Dc(b,ee);if(!ut){var dn=Me[Me.length-1].measure,xn=dn.maps?dn.maps[dn.maps.length-1]:dn.map;ut={node:xn[xn.length-1],offset:xn[xn.length-2]-xn[xn.length-3]}}if(!Ue||!ut){a.removeAllRanges();return}var Yn=a.rangeCount&&a.getRangeAt(0),Vn;try{Vn=pe(Ue.node,Ue.offset,ut.offset,ut.node)}catch(Mr){}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){bt(this.cm.display.cursorDiv,a.cursors),bt(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():Ta(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&&De&&this.cm.display.gutterSpecs.length&&mc(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var z=oc(b,a.anchorNode,a.anchorOffset),x=oc(b,a.focusNode,a.focusOffset);z&&x&&Ta(b,function(){Ua(b.doc,_r(z,x),Be),(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=at(x.line-1,An(a.doc,x.line-1).length)),ee.ch==An(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=at(ee.line+1,0)),x.line<b.viewFrom||ee.line>b.viewTo-1)return!1;var le,be,Me;x.line==b.viewFrom||(le=Da(a,x.line))==0?(be=kt(b.view[0].line),Me=b.view[0].node):(be=kt(b.view[le].line),Me=b.view[le-1].node.nextSibling);var Ue=Da(a,ee.line),ut,dn;if(Ue==b.view.length-1?(ut=b.viewTo-1,dn=b.lineDiv.lastChild):(ut=kt(b.view[Ue+1].line)-1,dn=b.view[Ue+1].node.previousSibling),!Me)return!1;for(var xn=a.doc.splitLines(Lc(a,Me,dn,be,ut)),Yn=$n(a.doc,at(be,0),at(ut,An(a.doc,ut).text.length));xn.length>1&&Yn.length>1;)if(ht(xn)==ht(Yn))xn.pop(),Yn.pop(),ut--;else if(xn[0]==Yn[0])xn.shift(),Yn.shift(),be++;else break;for(var Vn=0,Mr=0,qr=xn[0],wa=Yn[0],Ka=Math.min(qr.length,wa.length);Vn<Ka&&qr.charCodeAt(Vn)==wa.charCodeAt(Vn);)++Vn;for(var ii=ht(xn),Wa=ht(Yn),bi=Math.min(ii.length-(xn.length==1?Vn:0),Wa.length-(Yn.length==1?Vn:0));Mr<bi&&ii.charCodeAt(ii.length-Mr-1)==Wa.charCodeAt(Wa.length-Mr-1);)++Mr;if(xn.length==1&&Yn.length==1&&be==x.line)for(;Vn&&Vn>x.ch&&ii.charCodeAt(ii.length-Mr-1)==Wa.charCodeAt(Wa.length-Mr-1);)Vn--,Mr++;xn[xn.length-1]=ii.slice(0,ii.length-Mr).replace(/^\u200b+/,""),xn[0]=xn[0].slice(Vn).replace(/\u200b+$/,"");var to=at(be,Vn),Gi=at(ut,Yn.length?ht(Yn).length-Mr:0);if(xn.length>1||xn[0]||gt(to,Gi))return Ao(a.doc,xn,to,Gi,"+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())&&Ta(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,fc)(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 Dc(a,b){var z=gr(a,b.line);if(!z||z.hidden)return null;var x=An(a.doc,b.line),ee=ir(z,x,b.line),le=Qe(x,a.doc.direction),be="left";if(le){var Me=Bt(le,b.ch);be=Me%2?"right":"left"}var Ue=fo(ee.map,b.ch,be);return Ue.offset=Ue.collapse=="right"?Ue.end:Ue.start,Ue}function mc(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function bu(a,b){return b&&(a.bad=!0),a}function Lc(a,b,z,x,ee){var le="",be=!1,Me=a.doc.lineSeparator(),Ue=!1;function ut(Vn){return function(Mr){return Mr.id==Vn}}function dn(){be&&(le+=Me,Ue&&(le+=Me),be=Ue=!1)}function xn(Vn){Vn&&(dn(),le+=Vn)}function Yn(Vn){if(Vn.nodeType==1){var Mr=Vn.getAttribute("cm-text");if(Mr){xn(Mr);return}var qr=Vn.getAttribute("cm-marker"),wa;if(qr){var Ka=a.findMarks(at(x,0),at(ee+1,0),ut(+qr));Ka.length&&(wa=Ka[0].find(0))&&xn($n(a.doc,wa.from,wa.to).join(Me));return}if(Vn.getAttribute("contenteditable")=="false")return;var ii=/^(pre|div|p|li|table|br)$/i.test(Vn.nodeName);if(!/^br$/i.test(Vn.nodeName)&&Vn.textContent.length==0)return;ii&&dn();for(var Wa=0;Wa<Vn.childNodes.length;Wa++)Yn(Vn.childNodes[Wa]);/^(pre|p)$/i.test(Vn.nodeName)&&(Ue=!0),ii&&(be=!0)}else Vn.nodeType==3&&xn(Vn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Yn(b),b!=z;)b=b.nextSibling,Ue=!1;return le}function oc(a,b,z){var x;if(b==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[z],!x)return bu(a.clipPos(at(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 bu(at(kt(a.line),0),!0);if(b==x&&(ee=!0,b=x.childNodes[z],z=0,!b)){var le=a.rest?ht(a.rest):a.line;return bu(at(kt(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,ut=Ue.maps;function dn(wa,Ka,ii){for(var Wa=-1;Wa<(ut?ut.length:0);Wa++)for(var bi=Wa<0?Ue.map:ut[Wa],to=0;to<bi.length;to+=3){var Gi=bi[to+2];if(Gi==wa||Gi==Ka){var Bo=kt(Wa<0?a.line:a.rest[Wa]),ml=bi[to]+ii;return(ii<0||Gi!=wa)&&(ml=bi[to+(ii?1:0)]),at(Bo,ml)}}}var xn=dn(be,Me,z);if(xn)return bu(xn,ee);for(var Yn=Me.nextSibling,Vn=be?be.nodeValue.length-z:0;Yn;Yn=Yn.nextSibling){if(xn=dn(Yn,Yn.firstChild,0),xn)return bu(at(xn.line,xn.ch-Vn),ee);Vn+=Yn.textContent.length}for(var Mr=Me.previousSibling,qr=z;Mr;Mr=Mr.previousSibling){if(xn=dn(Mr,Mr.firstChild,-1),xn)return bu(at(xn.line,xn.ch+qr),ee);qr+=Mr.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"),Vt(ee,"input",function(){Se&&Ee>=9&&b.hasSelection&&(b.hasSelection=null),z.poll()}),Vt(ee,"paste",function(be){Lt(x,be)||Cc(be,x)||(x.state.pasteIncoming=+new Date,z.fastPoll())});function le(be){if(!Lt(x,be)){if(x.somethingSelected())Nu({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var Me=Sc(x);Nu({lineWise:!0,text:Me.text}),be.type=="cut"?x.setSelections(Me.ranges,null,Be):(z.prevInput="",ee.value=Me.text.join(`
|
|
|
`),Ye(ee))}else return;be.type=="cut"&&(x.state.cutIncoming=+new Date)}}Vt(ee,"cut",le),Vt(ee,"copy",le),Vt(a.scroller,"paste",function(be){if(!(Qo(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)}}),Vt(a.lineSpace,"selectstart",function(be){Qo(a,be)||Nt(be)}),Vt(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"})}}),Vt(ee,"compositionend",function(){z.composing&&(z.poll(),z.composing.range.clear(),z.composing=null)})},Rl.prototype.createField=function(a){this.wrapper=Bc(),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=ra(a);if(a.options.moveInputWithCursor){var ee=hi(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;bt(z.cursorDiv,a.cursors),bt(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"&&(!we||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||Pe&&/[\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 Ta(b,function(){fc(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||fe)return;var Me=z.options.resetSelectionOnContextMenu;Me&&z.doc.sel.contains(le)==-1&&Ir(z,Ua)(z.doc,_r(le),Be);var Ue=ee.style.cssText,ut=b.wrapper.style.cssText,dn=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ee.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-dn.top-5)+"px; left: "+(a.clientX-dn.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 xn;Ce&&(xn=window.scrollY),x.input.focus(),Ce&&window.scrollTo(null,xn),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 qr=z.somethingSelected(),wa="\u200B"+(qr?ee.value:"");ee.value="\u21DA",ee.value=wa,b.prevInput=qr?"":"\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=ut,ee.style.cssText=Ue,Se&&Ee<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=be),ee.selectionStart!=null)){(!Se||Se&&Ee<9)&&Yn();var qr=0,wa=function(){x.selForContextMenu==z.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&b.prevInput=="\u200B"?Ir(z,Ri)(z):qr++<10?x.detectingSelectAll=setTimeout(wa,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(wa,200)}}if(Se&&Ee>=9&&Yn(),Oe){lt(a);var Mr=function(){Fn(window,"mouseup",Mr),setTimeout(Vn,20)};Vt(window,"mouseup",Mr)}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 pc(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&&(Vt(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&&(Fn(a.form,"submit",x),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ee))}},a.style.display="none";var Me=wl(function(Ue){return a.parentNode.insertBefore(Ue,a.nextSibling)},b);return Me}function Fc(a){a.off=Fn,a.on=Vt,a.wheelEventPixels=lr,a.Doc=al,a.splitLines=Dn,a.countColumn=Ie,a.findColumn=Xt,a.isWordChar=se,a.Pass=Et,a.signal=gn,a.Line=ai,a.changeEnd=da,a.scrollbarModel=Eu,a.Pos=at,a.cmpPos=gt,a.modes=bn,a.mimeModes=tn,a.resolveMode=Pn,a.getMode=vr,a.modeExtensions=Qn,a.extendMode=dr,a.copyState=br,a.startState=Vr,a.innerMode=yr,a.commands=Vs,a.keyMap=Sl,a.keyName=Ys,a.isModifierKey=Bu,a.lookupKey=ks,a.normalizeKeyMap=Gl,a.StringStream=Zr,a.SharedTextMarker=rl,a.TextMarker=os,a.LineWidget=Lo,a.e_preventDefault=Nt,a.e_stopPropagation=fn,a.e_stop=lt,a.addClass=de,a.contains=Le,a.rmClass=Je,a.keyNames=wo}Mc(wl),kc(wl);var hc="iter insert remove copy getEditor constructor".split(" ");for(var _u in al.prototype)al.prototype.hasOwnProperty(_u)&&vt(hc,_u)<0&&(wl.prototype[_u]=function(a){return function(){return a.apply(this.doc,arguments)}}(al.prototype[_u]));return rt(al),wl.inputStyles={textarea:Rl,contenteditable:Uo},wl.defineMode=function(a){!wl.defaults.mode&&a!="null"&&(wl.defaults.mode=a),wn.apply(this,arguments)},wl.defineMIME=Cn,wl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),wl.defineMIME("text/plain","null"),wl.defineExtension=function(a,b){wl.prototype[a]=b},wl.defineDocExtension=function(a,b){al.prototype[a]=b},wl.fromTextArea=pc,Fc(wl),wl.version="5.58.2",wl})},25419:function(Rn,qt,E){(function(y){y(E(89780),E(15525),E(98101))})(function(y){"use strict";y.defineMode("markdown",function(ge,ce){var _e=y.getMode(ge,"text/html"),Se=_e.name=="null";function Ee(Ie){if(y.findModeByName){var ye=y.findModeByName(Ie);ye&&(Ie=ye.mime||ye.mimes[0])}var vt=y.getMode(ge,Ie);return vt.name=="null"?null:vt}ce.highlightFormatting===void 0&&(ce.highlightFormatting=!1),ce.maxBlockquoteDepth===void 0&&(ce.maxBlockquoteDepth=0),ce.taskLists===void 0&&(ce.taskLists=!1),ce.strikethrough===void 0&&(ce.strikethrough=!1),ce.emoji===void 0&&(ce.emoji=!1),ce.fencedCodeBlockHighlighting===void 0&&(ce.fencedCodeBlockHighlighting=!0),ce.fencedCodeBlockDefaultMode===void 0&&(ce.fencedCodeBlockDefaultMode="text/plain"),ce.xml===void 0&&(ce.xml=!0),ce.tokenTypeOverrides===void 0&&(ce.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)&&ce.tokenTypeOverrides[ke]&&(Ce[ke]=ce.tokenTypeOverrides[ke]);var De=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,We=/^\[(x| )\](?=\s)/i,Te=ce.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,dt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ge=/^[^#!\[\]*_\\<>` "'(~:]+/,Ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,we=/^\s*\[[^\]]+?\]:.*$/,Pe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Fe=" ";function et(Ie,ye,vt){return ye.f=ye.inline=vt,vt(Ie,ye)}function St(Ie,ye,vt){return ye.f=ye.block=vt,vt(Ie,ye)}function Ae(Ie){return!Ie||!/\S/.test(Ie.string)}function Oe(Ie){if(Ie.linkTitle=!1,Ie.linkHref=!1,Ie.linkText=!1,Ie.em=!1,Ie.strong=!1,Ie.strikethrough=!1,Ie.quote=0,Ie.indentedCode=!1,Ie.f==Je){var ye=Se;if(!ye){var vt=y.innerMode(_e,Ie.htmlState);ye=vt.mode.name=="xml"&&vt.state.tagStart===null&&!vt.state.context&&vt.state.tokenize.isInText}ye&&(Ie.f=$e,Ie.block=qe,Ie.htmlState=null)}return Ie.trailingSpace=0,Ie.trailingSpaceNewLine=!1,Ie.prevLine=Ie.thisLine,Ie.thisLine={stream:null},null}function qe(Ie,ye){var vt=Ie.column()===ye.indentation,Ht=Ae(ye.prevLine.stream),Et=ye.indentedCode,Be=ye.prevLine.hr,ft=ye.list!==!1,ot=(ye.listStack[ye.listStack.length-1]||0)+3;ye.indentedCode=!1;var Xt=ye.indentation;if(ye.indentationDiff===null&&(ye.indentationDiff=ye.indentation,ft)){for(ye.list=null;Xt<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=Xt-ye.listStack[ye.listStack.length-1])}var xt=!Ht&&!Be&&!ye.prevLine.header&&(!ft||!Et)&&!ye.prevLine.fencedCodeEnd,wt=(ye.list===!1||Be||Ht)&&ye.indentation<=ot&&Ie.match(De),ht=null;if(ye.indentationDiff>=4&&(Et||ye.prevLine.fencedCodeEnd||ye.prevLine.header||Ht))return Ie.skipToEnd(),ye.indentedCode=!0,Ce.code;if(Ie.eatSpace())return null;if(vt&&ye.indentation<=ot&&(ht=Ie.match(Te))&&ht[1].length<=6)return ye.quote=0,ye.header=ht[1].length,ye.thisLine.header=!0,ce.highlightFormatting&&(ye.formatting="header"),ye.f=ye.inline,bt(ye);if(ye.indentation<=ot&&Ie.eat(">"))return ye.quote=vt?1:ye.quote+1,ce.highlightFormatting&&(ye.formatting="quote"),Ie.eatSpace(),bt(ye);if(!wt&&!ye.setext&&vt&&ye.indentation<=ot&&(ht=Ie.match(fe))){var un=ht[1]?"ol":"ul";return ye.indentation=Xt+Ie.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,ce.taskLists&&Ie.match(We,!1)&&(ye.taskList=!0),ye.f=ye.inline,ce.highlightFormatting&&(ye.formatting=["list","list-"+un]),bt(ye)}else{if(vt&&ye.indentation<=ot&&(ht=Ie.match(Ne,!0)))return ye.quote=0,ye.fencedEndRE=new RegExp(ht[1]+"+ *$"),ye.localMode=ce.fencedCodeBlockHighlighting&&Ee(ht[2]||ce.fencedCodeBlockDefaultMode),ye.localMode&&(ye.localState=y.startState(ye.localMode)),ye.f=ye.block=ct,ce.highlightFormatting&&(ye.formatting="code-block"),ye.code=-1,bt(ye);if(ye.setext||(!xt||!ft)&&!ye.quote&&ye.list===!1&&!ye.code&&!wt&&!we.test(Ie.string)&&(ht=Ie.lookAhead(1))&&(ht=ht.match(dt)))return ye.setext?(ye.header=ye.setext,ye.setext=0,Ie.skipToEnd(),ce.highlightFormatting&&(ye.formatting="header")):(ye.header=ht[0].charAt(0)=="="?1:2,ye.setext=ye.header),ye.thisLine.header=!0,ye.f=ye.inline,bt(ye);if(wt)return Ie.skipToEnd(),ye.hr=!0,ye.thisLine.hr=!0,Ce.hr;if(Ie.peek()==="[")return et(Ie,ye,Ct)}return et(Ie,ye,ye.inline)}function Je(Ie,ye){var vt=_e.token(Ie,ye.htmlState);if(!Se){var Ht=y.innerMode(_e,ye.htmlState);(Ht.mode.name=="xml"&&Ht.state.tagStart===null&&!Ht.state.context&&Ht.state.tokenize.isInText||ye.md_inside&&Ie.current().indexOf(">")>-1)&&(ye.f=$e,ye.block=qe,ye.htmlState=null)}return vt}function ct(Ie,ye){var vt=ye.listStack[ye.listStack.length-1]||0,Ht=ye.indentation<vt,Et=vt+3;if(ye.fencedEndRE&&ye.indentation<=Et&&(Ht||Ie.match(ye.fencedEndRE))){ce.highlightFormatting&&(ye.formatting="code-block");var Be;return Ht||(Be=bt(ye)),ye.localMode=ye.localState=null,ye.block=qe,ye.f=$e,ye.fencedEndRE=null,ye.code=0,ye.thisLine.fencedCodeEnd=!0,Ht?St(Ie,ye,ye.block):Be}else return ye.localMode?ye.localMode.token(Ie,ye.localState):(Ie.skipToEnd(),Ce.code)}function bt(Ie){var ye=[];if(Ie.formatting){ye.push(Ce.formatting),typeof Ie.formatting=="string"&&(Ie.formatting=[Ie.formatting]);for(var vt=0;vt<Ie.formatting.length;vt++)ye.push(Ce.formatting+"-"+Ie.formatting[vt]),Ie.formatting[vt]==="header"&&ye.push(Ce.formatting+"-"+Ie.formatting[vt]+"-"+Ie.header),Ie.formatting[vt]==="quote"&&(!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Ie.quote?ye.push(Ce.formatting+"-"+Ie.formatting[vt]+"-"+Ie.quote):ye.push("error"))}if(Ie.taskOpen)return ye.push("meta"),ye.length?ye.join(" "):null;if(Ie.taskClosed)return ye.push("property"),ye.length?ye.join(" "):null;if(Ie.linkHref?ye.push(Ce.linkHref,"url"):(Ie.strong&&ye.push(Ce.strong),Ie.em&&ye.push(Ce.em),Ie.strikethrough&&ye.push(Ce.strikethrough),Ie.emoji&&ye.push(Ce.emoji),Ie.linkText&&ye.push(Ce.linkText),Ie.code&&ye.push(Ce.code),Ie.image&&ye.push(Ce.image),Ie.imageAltText&&ye.push(Ce.imageAltText,"link"),Ie.imageMarker&&ye.push(Ce.imageMarker)),Ie.header&&ye.push(Ce.header,Ce.header+"-"+Ie.header),Ie.quote&&(ye.push(Ce.quote),!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Ie.quote?ye.push(Ce.quote+"-"+Ie.quote):ye.push(Ce.quote+"-"+ce.maxBlockquoteDepth)),Ie.list!==!1){var Ht=(Ie.listStack.length-1)%3;Ht?Ht===1?ye.push(Ce.list2):ye.push(Ce.list3):ye.push(Ce.list1)}return Ie.trailingSpaceNewLine?ye.push("trailing-space-new-line"):Ie.trailingSpace&&ye.push("trailing-space-"+(Ie.trailingSpace%2?"a":"b")),ye.length?ye.join(" "):null}function st(Ie,ye){if(Ie.match(Ge,!0))return bt(ye)}function $e(Ie,ye){var vt=ye.text(Ie,ye);if(typeof vt!="undefined")return vt;if(ye.list)return ye.list=null,bt(ye);if(ye.taskList){var Ht=Ie.match(We,!0)[1]===" ";return Ht?ye.taskOpen=!0:ye.taskClosed=!0,ce.highlightFormatting&&(ye.formatting="task"),ye.taskList=!1,bt(ye)}if(ye.taskOpen=!1,ye.taskClosed=!1,ye.header&&Ie.match(/^#+$/,!0))return ce.highlightFormatting&&(ye.formatting="header"),bt(ye);var Et=Ie.next();if(ye.linkTitle){ye.linkTitle=!1;var Be=Et;Et==="("&&(Be=")"),Be=(Be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ft="^\\s*(?:[^"+Be+"\\\\]+|\\\\\\\\|\\\\.)"+Be;if(Ie.match(new RegExp(ft),!0))return Ce.linkHref}if(Et==="`"){var ot=ye.formatting;ce.highlightFormatting&&(ye.formatting="code"),Ie.eatWhile("`");var Xt=Ie.current().length;if(ye.code==0&&(!ye.quote||Xt==1))return ye.code=Xt,bt(ye);if(Xt==ye.code){var xt=bt(ye);return ye.code=0,xt}else return ye.formatting=ot,bt(ye)}else if(ye.code)return bt(ye);if(Et==="\\"&&(Ie.next(),ce.highlightFormatting)){var wt=bt(ye),ht=Ce.formatting+"-escape";return wt?wt+" "+ht:ht}if(Et==="!"&&Ie.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ye.imageMarker=!0,ye.image=!0,ce.highlightFormatting&&(ye.formatting="image"),bt(ye);if(Et==="["&&ye.imageMarker&&Ie.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ye.imageMarker=!1,ye.imageAltText=!0,ce.highlightFormatting&&(ye.formatting="image"),bt(ye);if(Et==="]"&&ye.imageAltText){ce.highlightFormatting&&(ye.formatting="image");var wt=bt(ye);return ye.imageAltText=!1,ye.image=!1,ye.inline=ye.f=Le,wt}if(Et==="["&&!ye.image)return ye.linkText&&Ie.match(/^.*?\]/)||(ye.linkText=!0,ce.highlightFormatting&&(ye.formatting="link")),bt(ye);if(Et==="]"&&ye.linkText){ce.highlightFormatting&&(ye.formatting="link");var wt=bt(ye);return ye.linkText=!1,ye.inline=ye.f=Ie.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:$e,wt}if(Et==="<"&&Ie.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=pe,ce.highlightFormatting&&(ye.formatting="link");var wt=bt(ye);return wt?wt+=" ":wt="",wt+Ce.linkInline}if(Et==="<"&&Ie.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=pe,ce.highlightFormatting&&(ye.formatting="link");var wt=bt(ye);return wt?wt+=" ":wt="",wt+Ce.linkEmail}if(ce.xml&&Et==="<"&&Ie.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var un=Ie.string.indexOf(">",Ie.pos);if(un!=-1){var zt=Ie.string.substring(Ie.start,un);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(zt)&&(ye.md_inside=!0)}return Ie.backUp(1),ye.htmlState=y.startState(_e),St(Ie,ye,Je)}if(ce.xml&&Et==="<"&&Ie.match(/^\/\w*?>/))return ye.md_inside=!1,"tag";if(Et==="*"||Et==="_"){for(var ue=1,ae=Ie.pos==1?" ":Ie.string.charAt(Ie.pos-2);ue<3&&Ie.eat(Et);)ue++;var re=Ie.peek()||" ",se=!/\s/.test(re)&&(!Pe.test(re)||/\s/.test(ae)||Pe.test(ae)),he=!/\s/.test(ae)&&(!Pe.test(ae)||/\s/.test(re)||Pe.test(re)),ie=null,me=null;if(ue%2&&(!ye.em&&se&&(Et==="*"||!he||Pe.test(ae))?ie=!0:ye.em==Et&&he&&(Et==="*"||!se||Pe.test(re))&&(ie=!1)),ue>1&&(!ye.strong&&se&&(Et==="*"||!he||Pe.test(ae))?me=!0:ye.strong==Et&&he&&(Et==="*"||!se||Pe.test(re))&&(me=!1)),me!=null||ie!=null){ce.highlightFormatting&&(ye.formatting=ie==null?"strong":me==null?"em":"strong em"),ie===!0&&(ye.em=Et),me===!0&&(ye.strong=Et);var xt=bt(ye);return ie===!1&&(ye.em=!1),me===!1&&(ye.strong=!1),xt}}else if(Et===" "&&(Ie.eat("*")||Ie.eat("_"))){if(Ie.peek()===" ")return bt(ye);Ie.backUp(1)}if(ce.strikethrough){if(Et==="~"&&Ie.eatWhile(Et)){if(ye.strikethrough){ce.highlightFormatting&&(ye.formatting="strikethrough");var xt=bt(ye);return ye.strikethrough=!1,xt}else if(Ie.match(/^[^\s]/,!1))return ye.strikethrough=!0,ce.highlightFormatting&&(ye.formatting="strikethrough"),bt(ye)}else if(Et===" "&&Ie.match(/^~~/,!0)){if(Ie.peek()===" ")return bt(ye);Ie.backUp(2)}}if(ce.emoji&&Et===":"&&Ie.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ye.emoji=!0,ce.highlightFormatting&&(ye.formatting="emoji");var He=bt(ye);return ye.emoji=!1,He}return Et===" "&&(Ie.match(/^ +$/,!1)?ye.trailingSpace++:ye.trailingSpace&&(ye.trailingSpaceNewLine=!0)),bt(ye)}function pe(Ie,ye){var vt=Ie.next();if(vt===">"){ye.f=ye.inline=$e,ce.highlightFormatting&&(ye.formatting="link");var Ht=bt(ye);return Ht?Ht+=" ":Ht="",Ht+Ce.linkInline}return Ie.match(/^[^>]+/,!0),Ce.linkInline}function Le(Ie,ye){if(Ie.eatSpace())return null;var vt=Ie.next();return vt==="("||vt==="["?(ye.f=ye.inline=de(vt==="("?")":"]"),ce.highlightFormatting&&(ye.formatting="link-string"),ye.linkHref=!0,bt(ye)):"error"}var xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(Ie){return function(ye,vt){var Ht=ye.next();if(Ht===Ie){vt.f=vt.inline=$e,ce.highlightFormatting&&(vt.formatting="link-string");var Et=bt(vt);return vt.linkHref=!1,Et}return ye.match(xe[Ie]),vt.linkHref=!0,bt(vt)}}function Ct(Ie,ye){return Ie.match(/^([^\]\\]|\\.)*\]:/,!1)?(ye.f=Ye,Ie.next(),ce.highlightFormatting&&(ye.formatting="link"),ye.linkText=!0,bt(ye)):et(Ie,ye,$e)}function Ye(Ie,ye){if(Ie.match(/^\]:/,!0)){ye.f=ye.inline=je,ce.highlightFormatting&&(ye.formatting="link");var vt=bt(ye);return ye.linkText=!1,vt}return Ie.match(/^([^\]\\]|\\.)+/,!0),Ce.linkText}function je(Ie,ye){return Ie.eatSpace()?null:(Ie.match(/^[^\s]+/,!0),Ie.peek()===void 0?ye.linkTitle=!0:Ie.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ye.f=ye.inline=$e,Ce.linkHref+" url")}var it={startState:function(){return{f:qe,prevLine:{stream:null},thisLine:{stream:null},block:qe,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(Ie){return{f:Ie.f,prevLine:Ie.prevLine,thisLine:Ie.thisLine,block:Ie.block,htmlState:Ie.htmlState&&y.copyState(_e,Ie.htmlState),indentation:Ie.indentation,localMode:Ie.localMode,localState:Ie.localMode?y.copyState(Ie.localMode,Ie.localState):null,inline:Ie.inline,text:Ie.text,formatting:!1,linkText:Ie.linkText,linkTitle:Ie.linkTitle,linkHref:Ie.linkHref,code:Ie.code,em:Ie.em,strong:Ie.strong,strikethrough:Ie.strikethrough,emoji:Ie.emoji,header:Ie.header,setext:Ie.setext,hr:Ie.hr,taskList:Ie.taskList,list:Ie.list,listStack:Ie.listStack.slice(0),quote:Ie.quote,indentedCode:Ie.indentedCode,trailingSpace:Ie.trailingSpace,trailingSpaceNewLine:Ie.trailingSpaceNewLine,md_inside:Ie.md_inside,fencedEndRE:Ie.fencedEndRE}},token:function(Ie,ye){if(ye.formatting=!1,Ie!=ye.thisLine.stream){if(ye.header=0,ye.hr=!1,Ie.match(/^\s*$/,!0))return Oe(ye),null;if(ye.prevLine=ye.thisLine,ye.thisLine={stream:Ie},ye.taskList=!1,ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,!ye.localState&&(ye.f=ye.block,ye.f!=Je)){var vt=Ie.match(/^\s*/,!0)[0].replace(/\t/g,Fe).length;if(ye.indentation=vt,ye.indentationDiff=null,vt>0)return null}}return ye.f(Ie,ye)},innerMode:function(Ie){return Ie.block==Je?{state:Ie.htmlState,mode:_e}:Ie.localState?{state:Ie.localState,mode:Ie.localMode}:{state:Ie,mode:it}},indent:function(Ie,ye,vt){return Ie.block==Je&&_e.indent?_e.indent(Ie.htmlState,ye,vt):Ie.localState&&Ie.localMode.indent?Ie.localMode.indent(Ie.localState,ye,vt):y.Pass},blankLine:Oe,getType:bt,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 ce=y.modeInfo[ge];ce.mimes&&(ce.mime=ce.mimes[0])}y.findModeByMIME=function(_e){_e=_e.toLowerCase();for(var Se=0;Se<y.modeInfo.length;Se++){var Ee=y.modeInfo[Se];if(Ee.mime==_e)return Ee;if(Ee.mimes){for(var Ce=0;Ce<Ee.mimes.length;Ce++)if(Ee.mimes[Ce]==_e)return Ee}}if(/\+xml$/.test(_e))return y.findModeByMIME("application/xml");if(/\+json$/.test(_e))return y.findModeByMIME("application/json")},y.findModeByExtension=function(_e){_e=_e.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]==_e)return Ee}}},y.findModeByFileName=function(_e){for(var Se=0;Se<y.modeInfo.length;Se++){var Ee=y.modeInfo[Se];if(Ee.file&&Ee.file.test(_e))return Ee}var Ce=_e.lastIndexOf("."),ke=Ce>-1&&_e.substring(Ce+1,_e.length);if(ke)return y.findModeByExtension(ke)},y.findModeByName=function(_e){_e=_e.toLowerCase();for(var Se=0;Se<y.modeInfo.length;Se++){var Ee=y.modeInfo[Se];if(Ee.name.toLowerCase()==_e)return Ee;if(Ee.alias){for(var Ce=0;Ce<Ee.alias.length;Ce++)if(Ee.alias[Ce].toLowerCase()==_e)return Ee}}}})},67549:function(Rn,qt,E){(function(y){y(E(89780))})(function(y){"use strict";y.defineMode("stex",function(ge,ce){"use strict";function _e(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,we=Ne.length-1;we>=0;we--){var Pe=Ne[we];if(Pe.name!="DEFAULT")return Pe}return{styleIdentifier:function(){return null}}}function ke(Ge,Ne,we){return function(){this.name=Ge,this.bracketNo=0,this.style=Ne,this.styles=we,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var De={};De.importmodule=ke("importmodule","tag",["string","builtin"]),De.documentclass=ke("documentclass","tag",["","atom"]),De.usepackage=ke("usepackage","tag",["atom"]),De.begin=ke("begin","tag",["atom"]),De.end=ke("end","tag",["atom"]),De.label=ke("label","tag",["atom"]),De.ref=ke("ref","tag",["atom"]),De.eqref=ke("eqref","tag",["atom"]),De.cite=ke("cite","tag",["atom"]),De.bibitem=ke("bibitem","tag",["atom"]),De.Bibitem=ke("Bibitem","tag",["atom"]),De.RBibitem=ke("RBibitem","tag",["atom"]),De.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(Ge,Ne){Ge.f=Ne}function We(Ge,Ne){var we;if(Ge.match(/^\\[a-zA-Z@]+/)){var Pe=Ge.current().slice(1);return we=De.hasOwnProperty(Pe)?De[Pe]:De.DEFAULT,we=new we,_e(Ne,we),fe(Ne,dt),we.style}if(Ge.match(/^\\[$&%#{}_]/)||Ge.match(/^\\[,;!\/\\]/))return"tag";if(Ge.match("\\["))return fe(Ne,function(et,St){return Te(et,St,"\\]")}),"keyword";if(Ge.match("\\("))return fe(Ne,function(et,St){return Te(et,St,"\\)")}),"keyword";if(Ge.match("$$"))return fe(Ne,function(et,St){return Te(et,St,"$$")}),"keyword";if(Ge.match("$"))return fe(Ne,function(et,St){return Te(et,St,"$")}),"keyword";var Fe=Ge.next();if(Fe=="%")return Ge.skipToEnd(),"comment";if(Fe=="}"||Fe=="]"){if(we=Se(Ne),we)we.closeBracket(Fe),fe(Ne,dt);else return"error";return"bracket"}else return Fe=="{"||Fe=="["?(we=De.DEFAULT,we=new we,_e(Ne,we),"bracket"):/\d/.test(Fe)?(Ge.eatWhile(/[\w.%]/),"atom"):(Ge.eatWhile(/[\w\-_]/),we=Ce(Ne),we.name=="begin"&&(we.argument=Ge.current()),we.styleIdentifier())}function Te(Ge,Ne,we){if(Ge.eatSpace())return null;if(we&&Ge.match(we))return fe(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 Pe=Ge.next();return Pe=="{"||Pe=="}"||Pe=="["||Pe=="]"||Pe=="("||Pe==")"?"bracket":Pe=="%"?(Ge.skipToEnd(),"comment"):"error"}function dt(Ge,Ne){var we=Ge.peek(),Pe;return we=="{"||we=="["?(Pe=Se(Ne),Pe.openBracket(we),Ge.eat(we),fe(Ne,We),"bracket"):/[ \t\r]/.test(we)?(Ge.eat(we),null):(fe(Ne,We),Ee(Ne),We(Ge,Ne))}return{startState:function(){var Ge=ce.inMathMode?function(Ne,we){return Te(Ne,we)}: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},ce={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(_e,Se){var Ee=_e.indentUnit,Ce={},ke=Se.htmlMode?ge:ce;for(var De in ke)Ce[De]=ke[De];for(var De in Se)Ce[De]=Se[De];var fe,We;function Te(pe,Le){function xe(Ye){return Le.tokenize=Ye,Ye(pe,Le)}var de=pe.next();if(de=="<")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(we(1))):null:pe.eat("?")?(pe.eatWhile(/[\w\._\-]/),Le.tokenize=Ne("meta","?>"),"meta"):(fe=pe.eat("/")?"closeTag":"openTag",Le.tokenize=dt,"tag bracket");if(de=="&"){var Ct;return pe.eat("#")?pe.eat("x")?Ct=pe.eatWhile(/[a-fA-F\d]/)&&pe.eat(";"):Ct=pe.eatWhile(/[\d]/)&&pe.eat(";"):Ct=pe.eatWhile(/[\w\.\-:]/)&&pe.eat(";"),Ct?"atom":"error"}else return pe.eatWhile(/[^&<]/),null}Te.isInText=!0;function dt(pe,Le){var xe=pe.next();if(xe==">"||xe=="/"&&pe.eat(">"))return Le.tokenize=Te,fe=xe==">"?"endTag":"selfcloseTag","tag bracket";if(xe=="=")return fe="equals",null;if(xe=="<"){Le.tokenize=Te,Le.state=St,Le.tagName=Le.tagStart=null;var de=Le.tokenize(pe,Le);return de?de+" 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,de){for(;!xe.eol();)if(xe.next()==pe){de.tokenize=dt;break}return"string"};return Le.isInAttribute=!0,Le}function Ne(pe,Le){return function(xe,de){for(;!xe.eol();){if(xe.match(Le)){de.tokenize=Te;break}xe.next()}return pe}}function we(pe){return function(Le,xe){for(var de;(de=Le.next())!=null;){if(de=="<")return xe.tokenize=we(pe+1),xe.tokenize(Le,xe);if(de==">")if(pe==1){xe.tokenize=Te;break}else return xe.tokenize=we(pe-1),xe.tokenize(Le,xe)}return"meta"}}function Pe(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 Fe(pe){pe.context&&(pe.context=pe.context.prev)}function et(pe,Le){for(var xe;;){if(!pe.context||(xe=pe.context.tagName,!Ce.contextGrabbers.hasOwnProperty(xe)||!Ce.contextGrabbers[xe].hasOwnProperty(Le)))return;Fe(pe)}}function St(pe,Le,xe){return pe=="openTag"?(xe.tagStart=Le.column(),Ae):pe=="closeTag"?Oe:St}function Ae(pe,Le,xe){return pe=="word"?(xe.tagName=Le.current(),We="tag",ct):Ce.allowMissingTagName&&pe=="endTag"?(We="tag bracket",ct(pe,Le,xe)):(We="error",Ae)}function Oe(pe,Le,xe){if(pe=="word"){var de=Le.current();return xe.context&&xe.context.tagName!=de&&Ce.implicitlyClosed.hasOwnProperty(xe.context.tagName)&&Fe(xe),xe.context&&xe.context.tagName==de||Ce.matchClosing===!1?(We="tag",qe):(We="tag error",Je)}else return Ce.allowMissingTagName&&pe=="endTag"?(We="tag bracket",qe(pe,Le,xe)):(We="error",Je)}function qe(pe,Le,xe){return pe!="endTag"?(We="error",qe):(Fe(xe),St)}function Je(pe,Le,xe){return We="error",qe(pe,Le,xe)}function ct(pe,Le,xe){if(pe=="word")return We="attribute",bt;if(pe=="endTag"||pe=="selfcloseTag"){var de=xe.tagName,Ct=xe.tagStart;return xe.tagName=xe.tagStart=null,pe=="selfcloseTag"||Ce.autoSelfClosers.hasOwnProperty(de)?et(xe,de):(et(xe,de),xe.context=new Pe(xe,de,Ct==xe.indented)),St}return We="error",ct}function bt(pe,Le,xe){return pe=="equals"?st:(Ce.allowMissing||(We="error"),ct(pe,Le,xe))}function st(pe,Le,xe){return pe=="string"?$e:pe=="word"&&Ce.allowUnquoted?(We="string",ct):(We="error",ct(pe,Le,xe))}function $e(pe,Le,xe){return pe=="string"?$e:ct(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;fe=null;var xe=Le.tokenize(pe,Le);return(xe||fe)&&xe!="comment"&&(We=null,Le.state=Le.state(fe||xe,pe,Le),We&&(xe=We=="error"?xe+" error":We)),xe},indent:function(pe,Le,xe){var de=pe.context;if(pe.tokenize.isInAttribute)return pe.tagStart==pe.indented?pe.stringStartCol+1:pe.indented+Ee;if(de&&de.noIndent)return y.Pass;if(pe.tokenize!=dt&&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 Ct=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(Ct&&Ct[1])for(;de;)if(de.tagName==Ct[2]){de=de.prev;break}else if(Ce.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(Ct)for(;de;){var Ye=Ce.contextGrabbers[de.tagName];if(Ye&&Ye.hasOwnProperty(Ct[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.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=ct)},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(ce,_e){Rn.exports=_e(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof E.g!="undefined"?E.g:this,function(ce){"use strict";ce=ce||{};var _e=ce.Base64,Se="2.6.4",Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ce=function(xe){for(var de={},Ct=0,Ye=xe.length;Ct<Ye;Ct++)de[xe.charAt(Ct)]=Ct;return de}(Ee),ke=String.fromCharCode,De=function(xe){if(xe.length<2){var de=xe.charCodeAt(0);return de<128?xe:de<2048?ke(192|de>>>6)+ke(128|de&63):ke(224|de>>>12&15)+ke(128|de>>>6&63)+ke(128|de&63)}else{var de=65536+(xe.charCodeAt(0)-55296)*1024+(xe.charCodeAt(1)-56320);return ke(240|de>>>18&7)+ke(128|de>>>12&63)+ke(128|de>>>6&63)+ke(128|de&63)}},fe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,We=function(xe){return xe.replace(fe,De)},Te=function(xe){var de=[0,2,1][xe.length%3],Ct=xe.charCodeAt(0)<<16|(xe.length>1?xe.charCodeAt(1):0)<<8|(xe.length>2?xe.charCodeAt(2):0),Ye=[Ee.charAt(Ct>>>18),Ee.charAt(Ct>>>12&63),de>=2?"=":Ee.charAt(Ct>>>6&63),de>=1?"=":Ee.charAt(Ct&63)];return Ye.join("")},dt=ce.btoa&&typeof ce.btoa=="function"?function(xe){return ce.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 dt(We(String(xe)))},Ne=function(xe){return xe.replace(/[+\/]/g,function(de){return de=="+"?"-":"_"}).replace(/=/g,"")},we=function(xe,de){return de?Ne(Ge(xe)):Ge(xe)},Pe=function(xe){return we(xe,!0)},Fe;ce.Uint8Array&&(Fe=function(xe,de){for(var Ct="",Ye=0,je=xe.length;Ye<je;Ye+=3){var it=xe[Ye],Ie=xe[Ye+1],ye=xe[Ye+2],vt=it<<16|Ie<<8|ye;Ct+=Ee.charAt(vt>>>18)+Ee.charAt(vt>>>12&63)+(typeof Ie!="undefined"?Ee.charAt(vt>>>6&63):"=")+(typeof ye!="undefined"?Ee.charAt(vt&63):"=")}return de?Ne(Ct):Ct});var et=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,St=function(xe){switch(xe.length){case 4:var de=(7&xe.charCodeAt(0))<<18|(63&xe.charCodeAt(1))<<12|(63&xe.charCodeAt(2))<<6|63&xe.charCodeAt(3),Ct=de-65536;return ke((Ct>>>10)+55296)+ke((Ct&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(et,St)},Oe=function(xe){var de=xe.length,Ct=de%4,Ye=(de>0?Ce[xe.charAt(0)]<<18:0)|(de>1?Ce[xe.charAt(1)]<<12:0)|(de>2?Ce[xe.charAt(2)]<<6:0)|(de>3?Ce[xe.charAt(3)]:0),je=[ke(Ye>>>16),ke(Ye>>>8&255),ke(Ye&255)];return je.length-=[0,0,2,1][Ct],je.join("")},qe=ce.atob&&typeof ce.atob=="function"?function(xe){return ce.atob(xe)}:function(xe){return xe.replace(/\S{1,4}/g,Oe)},Je=function(xe){return qe(String(xe).replace(/[^A-Za-z0-9\+\/]/g,""))},ct=function(xe){return Ae(qe(xe))},bt=function(xe){return String(xe).replace(/[-_]/g,function(de){return de=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},st=function(xe){return ct(bt(xe))},$e;ce.Uint8Array&&($e=function(xe){return Uint8Array.from(Je(bt(xe)),function(de){return de.charCodeAt(0)})});var pe=function(){var xe=ce.Base64;return ce.Base64=_e,xe};if(ce.Base64={VERSION:Se,atob:Je,btoa:dt,fromBase64:st,toBase64:we,utob:We,encode:we,encodeURI:Pe,btou:Ae,decode:st,noConflict:pe,fromUint8Array:Fe,toUint8Array:$e},typeof Object.defineProperty=="function"){var Le=function(xe){return{value:xe,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Le(function(){return st(this)})),Object.defineProperty(String.prototype,"toBase64",Le(function(xe){return we(this,xe)})),Object.defineProperty(String.prototype,"toBase64URI",Le(function(){return we(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),Rn.exports?Rn.exports.Base64=ce.Base64:(y=[],ge=function(){return ce.Base64}.apply(qt,y),ge!==void 0&&(Rn.exports=ge)),{Base64:ce.Base64}})},2859:function(Rn,qt,E){"use strict";E.d(qt,{hP:function(){return zt}});var y=function(ue,ae){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,se){re.__proto__=se}||function(re,se){for(var he in se)Object.prototype.hasOwnProperty.call(se,he)&&(re[he]=se[he])})(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 ce(ue,ae,re,se){return new(re||(re=Promise))(function(he,ie){function me(Xe){try{It(se.next(Xe))}catch(Ke){ie(Ke)}}function He(Xe){try{It(se.throw(Xe))}catch(Ke){ie(Ke)}}function It(Xe){var Ke;Xe.done?he(Xe.value):(Ke=Xe.value,Ke instanceof re?Ke:new re(function(yt){yt(Ke)})).then(me,He)}It((se=se.apply(ue,ae||[])).next())})}function _e(ue,ae){var re,se,he,ie,me={label:0,sent:function(){if(1&he[0])throw he[1];return he[1]},trys:[],ops:[]};return ie={next:He(0),throw:He(1),return:He(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function He(It){return function(Xe){return function(Ke){if(re)throw new TypeError("Generator is already executing.");for(;me;)try{if(re=1,se&&(he=2&Ke[0]?se.return:Ke[0]?se.throw||((he=se.return)&&he.call(se),0):se.next)&&!(he=he.call(se,Ke[1])).done)return he;switch(se=0,he&&(Ke=[2&Ke[0],he.value]),Ke[0]){case 0:case 1:he=Ke;break;case 4:return me.label++,{value:Ke[1],done:!1};case 5:me.label++,se=Ke[1],Ke=[0];continue;case 7:Ke=me.ops.pop(),me.trys.pop();continue;default:if(he=me.trys,!((he=he.length>0&&he[he.length-1])||Ke[0]!==6&&Ke[0]!==2)){me=0;continue}if(Ke[0]===3&&(!he||Ke[1]>he[0]&&Ke[1]<he[3])){me.label=Ke[1];break}if(Ke[0]===6&&me.label<he[1]){me.label=he[1],he=Ke;break}if(he&&me.label<he[2]){me.label=he[2],me.ops.push(Ke);break}he[2]&&me.ops.pop(),me.trys.pop();continue}Ke=ae.call(ue,me)}catch(yt){Ke=[6,yt],se=0}finally{re=he=0}if(5&Ke[0])throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}([It,Xe])}}}function Se(){for(var ue=0,ae=0,re=arguments.length;ae<re;ae++)ue+=arguments[ae].length;var se=Array(ue),he=0;for(ae=0;ae<re;ae++)for(var ie=arguments[ae],me=0,He=ie.length;me<He;me++,he++)se[he]=ie[me];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,he=re;se<he.length;se++){var ie=he[se],me=ie[0],He=ie[1];ae.setAttribute(me,He)}},ue.createRect=function(ae,re,se){var he=document.createElementNS("http://www.w3.org/2000/svg","rect");return he.setAttribute("width",ae.toString()),he.setAttribute("height",re.toString()),se&&ue.setAttributes(he,se),he},ue.createLine=function(ae,re,se,he,ie){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",ae.toString()),me.setAttribute("y1",re.toString()),me.setAttribute("x2",se.toString()),me.setAttribute("y2",he.toString()),ie&&ue.setAttributes(me,ie),me},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 he=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return he.setAttribute("cx",(ae/2).toString()),he.setAttribute("cy",(re/2).toString()),he.setAttribute("rx",(ae/2).toString()),he.setAttribute("ry",(re/2).toString()),se&&ue.setAttributes(he,se),he},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,he,ie,me,He){var It=document.createElementNS("http://www.w3.org/2000/svg","marker");return ue.setAttributes(It,[["id",ae],["orient",re],["markerWidth",se.toString()],["markerHeight",he.toString()],["refX",ie.toString()],["refY",me.toString()]]),It.appendChild(He),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 he=this;return new Promise(function(ie){var me=se!==void 0?se:document.createElement("canvas");ae===null&&(he.markersOnly=!0,he.naturalSize=!1);var He=document.createElementNS("http://www.w3.org/2000/svg","svg");He.setAttribute("xmlns","http://www.w3.org/2000/svg"),He.setAttribute("width",re.width.baseVal.valueAsString),He.setAttribute("height",re.height.baseVal.valueAsString),He.setAttribute("viewBox","0 0 "+re.viewBox.baseVal.width.toString()+" "+re.viewBox.baseVal.height.toString()),He.innerHTML=re.innerHTML,he.naturalSize===!0?(He.width.baseVal.value=ae.naturalWidth,He.height.baseVal.value=ae.naturalHeight):he.width!==void 0&&he.height!==void 0&&(He.width.baseVal.value=he.width,He.height.baseVal.value=he.height),me.width=He.width.baseVal.value,me.height=He.height.baseVal.value;var It=He.outerHTML,Xe=me.getContext("2d");he.markersOnly!==!0&&Xe.drawImage(ae,0,0,me.width,me.height);var Ke=window.URL,yt=new Image(me.width,me.height);yt.setAttribute("crossOrigin","anonymous");var Bt=new Blob([It],{type:"image/svg+xml"}),_t=Ke.createObjectURL(Bt);yt.onload=function(){Xe.drawImage(yt,0,0),Ke.revokeObjectURL(_t);var Qe=me.toDataURL(he.imageType,he.imageQuality);ie(Qe)},yt.src=_t})},ue}(),De=function(){},fe=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},dt=function(){function ue(ae,re,se,he,ie){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ae,this.displayMode=re,this.markerItems=se,this.uiStyleSettings=he,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 me=document.createElement("div");me.className=""+re.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",ie.typeName),me.innerHTML=ie.icon,me.addEventListener("click",function(){re.markerToolbarButtonClicked(me,ie)}),re.buttons.push(me),re.markerButtons.push(me)}),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 he=document.createElement("div");he.className=this.toolbarBlockStyleClass.name,he.style.whiteSpace="nowrap",he.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(he),this.addActionButton(he,'<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(he,'<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 he=this,ie=document.createElement("div");switch(ie.className=""+this.toolbarButtonStyleClass.name,ie.innerHTML=re,ie.setAttribute("data-action",se),ie.addEventListener("click",function(){he.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,he){this.panels=[],this.panelButtons=[],this.markerjsContainer=ae,this.displayMode=re,this.uiStyleSettings=se,this.styles=he,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,he=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 me;ie.uiStyleSettings=he.uiStyleSettings;var He=document.createElement("div");He.className=he.toolboxButtonStyleClass.name+" "+((me=he.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:he.toolboxButtonStyleColorsClass.name),He.innerHTML=ie.icon,He.title=ie.title,He.addEventListener("click",function(){he.panelButtonClick(ie)}),he.panelButtons.push(He),he.buttonRow.appendChild(He)}),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 he=ae.getUi();he.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(he),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,me){var He,It;ie.className=re.toolboxButtonStyleClass.name+" "+(me===se?""+((He=re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&He!==void 0?He: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},we=function(ue){function ae(re,se,he,ie){var me=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 me.colors=[],me.addTransparent=!1,me.colorBoxes=[],me.colors=se,me.currentColor=he,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}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(he){var ie=re.getColorBox(he);se.appendChild(ie),re.colorBoxes.push(ie)}),se},ae.prototype.getColorBox=function(re){var se=this,he=this.uiStyleSettings.toolbarHeight/4,ie=this.uiStyleSettings.toolbarHeight-he,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=ie-2+"px",me.style.height=ie-2+"px",me.style.padding="1px",me.style.marginRight="2px",me.style.marginBottom="2px",me.style.borderWidth="2px",me.style.borderStyle="solid",me.style.borderRadius=(ie+2)/2+"px",me.style.borderColor=re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){se.setCurrentColor(re,me)});var He=document.createElement("div");return He.style.display="inline-block",He.style.width=ie-2+"px",He.style.height=ie-2+"px",He.style.backgroundColor=re,He.style.borderRadius=ie/2+"px",re==="transparent"&&(He.style.fill=this.uiStyleSettings.toolboxAccentColor,He.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>`),me.appendChild(He),me},ae.prototype.setCurrentColor=function(re,se){var he=this;this.currentColor=re,this.colorBoxes.forEach(function(ie){ie.style.borderColor=ie===se?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(re)},ae}(Ne),Pe=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}(),Fe=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}(),et=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,he){var ie=ue.call(this,re,se,he)||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 he=this.unrotatePoint(re);if(this.manipulationStartX=he.x,this.manipulationStartY=he.y,this.offsetX=he.x-this.left,this.offsetY=he.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 me=this.container.transform.baseVal.getItem(0);me.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(me,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,he=this.manipulationStartWidth,ie=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:se=this.manipulationStartLeft+re.x-this.manipulationStartX,he=this.manipulationStartWidth+this.manipulationStartLeft-se;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:he=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,me=this.manipulationStartHeight+this.manipulationStartTop-ie;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+re.y-this.manipulationStartY}he>=0?(this.left=se,this.width=he):(this.left=se+he,this.width=-he),me>=0?(this.top=ie,this.height=me):(this.top=ie+me,this.height=-me),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(),he=Ee.createPoint(re.x,re.y);return{x:(he=he.matrixTransform(se)).x,y:he.y}},ae.prototype.unrotatePoint=function(re){if(this.rotationAngle===0)return re;var se=this.container.getCTM();se=se.inverse();var he=Ee.createPoint(re.x,re.y);return{x:(he=he.matrixTransform(se)).x,y:he.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 Fe,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 et;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,he=se,ie=(this.width+this.CB_DISTANCE)/2-re/2,me=(this.height+this.CB_DISTANCE)/2-re/2,He=this.height+this.CB_DISTANCE-re/2,It=this.width+this.CB_DISTANCE-re/2;this.positionGrip(this.controlGrips.topLeft.visual,se,he),this.positionGrip(this.controlGrips.topCenter.visual,ie,he),this.positionGrip(this.controlGrips.topRight.visual,It,he),this.positionGrip(this.controlGrips.centerLeft.visual,se,me),this.positionGrip(this.controlGrips.centerRight.visual,It,me),this.positionGrip(this.controlGrips.bottomLeft.visual,se,He),this.positionGrip(this.controlGrips.bottomCenter.visual,ie,He),this.positionGrip(this.controlGrips.bottomRight.visual,It,He),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ie,he-3*this.CB_DISTANCE)},ae.prototype.positionGrip=function(re,se,he){var ie=re.transform.baseVal.getItem(0);ie.setTranslate(se,he),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 he=this.rotatePoint({x:this.left,y:this.top}),ie=this.unrotatePoint({x:he.x*re,y:he.y*se});this.left=ie.x,this.top=ie.y,this.width=this.width*re,this.height=this.height*se,this.adjustControlBox()},ae}(Pe),Oe=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||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),qe=function(ue){function ae(re,se,he,ie){var me=ue.call(this,re,ie||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return me.widths=[],me.widthBoxes=[],me.widths=se,me.currentWidth=he,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}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(he){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=he===re.currentWidth?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentWidth(he,ie)}),se.appendChild(ie);var me=document.createElement("div");me.innerText=he.toString(),me.style.marginRight="5px",ie.appendChild(me);var He=document.createElement("div");He.style.minHeight="20px",He.style.flexGrow="2",He.style.display="flex",He.style.alignItems="center";var It=document.createElement("hr");It.style.minWidth="20px",It.style.border="0px",It.style.borderTop=he+"px solid "+re.uiStyleSettings.toolboxColor,It.style.flexGrow="2",He.appendChild(It),ie.appendChild(He),re.widthBoxes.push(ie)}),se},ae.prototype.setCurrentWidth=function(re,se){var he=this;this.currentWidth=re,this.widthBoxes.forEach(function(ie){ie.style.borderColor=ie===se?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ae}(Ne),Je=function(ue){function ae(re,se,he,ie){var me=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 me.styles=[],me.styleBoxes=[],me.styles=se,me.currentStyle=he,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}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(he){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=he===re.currentStyle?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentStyle(he,ie)}),se.appendChild(ie);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var He=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(he!==""?'stroke-dasharray="'+he+'"':"")+` />
|
|
|
</svg>`;me.innerHTML=He,ie.appendChild(me),re.styleBoxes.push(ie)}),se},ae.prototype.setCurrentStyle=function(re,se){var he=this;this.currentStyle=re,this.styleBoxes.forEach(function(ie){ie.style.borderColor=ie===se?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ae}(Ne),ct=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||this;return ie.strokeColor=he.defaultColor,ie.strokeWidth=he.defaultStrokeWidth,ie.strokeDasharray=he.defaultStrokeDasharray,ie.strokePanel=new we("Line color",he.defaultColorSet,he.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new qe("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.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}(Oe),bt=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,he){var ie=ue.call(this,re,se,he)||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 et;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,he){var ie=re.transform.baseVal.getItem(0);ie.setTranslate(se,he),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}(Pe),$e=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||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=he.defaultColor,ie.strokeWidth=he.defaultStrokeWidth,ie.strokeDasharray=he.defaultStrokeDasharray,ie.strokePanel=new we("Line color",he.defaultColorSet,he.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new qe("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.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,he,ie){var me=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 me.fonts=[],me.fontBoxes=[],me.fonts=se,me.currentFont=he,me.setCurrentFont=me.setCurrentFont.bind(me),me}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(he){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=he===re.currentFont?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentFont(he,ie)}),se.appendChild(ie);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=he,me.style.overflow="hidden";var He=document.createElement("div");He.style.whiteSpace="nowrap",He.style.overflow="hidden",He.style.textOverflow="ellipsis",He.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(He),ie.appendChild(me),re.fontBoxes.push(ie)}),se},ae.prototype.setCurrentFont=function(re,se){var he=this;this.currentFont=re,this.fontBoxes.forEach(function(ie){ie.style.borderColor=ie===se?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ae}(Ne),Le=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||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=he.defaultColor,ie.fontFamily=he.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 we("Color",he.defaultColorSet,he.defaultColor),ie.colorPanel.onColorChanged=ie.setColor,ie.fontFamilyPanel=new pe("Font",he.defaultFontFamilies,he.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(he){he===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 he=(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(he,ie)}return se},ae.prototype.getTextPosition=function(re){var se=this.textElement.getBBox(),he=0,ie=0;return se.width>0&&se.height>0&&(he=(this.width-se.width*re)/2,ie=this.height/2-se.height*re/2),{x:he,y:ie}},ae.prototype.sizeText=function(){var re=this.textElement.getBBox(),se=this.getTextScale(),he=this.getTextPosition(se);he.y-=re.y*se,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+he.x+"px, "+he.y+"px) scale("+se+", "+se+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(he.x,he.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 he=se.clipboardData.getData("text"),ie=window.getSelection();if(!ie.rangeCount)return!1;ie.deleteFromDocument(),ie.getRangeAt(0).insertNode(document.createTextNode(he)),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}),he=this.textElement.getBBox(),ie={x:he.width*re,y:he.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,he){var ie=ue.call(this,re,se,he)||this;return ie.color="transparent",ie.lineWidth=3,ie.drawing=!1,ie.pixelRatio=1,ie.color=he.defaultColor,ie.lineWidth=he.defaultStrokeWidth,ie.pixelRatio=he.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 we("Color",he.defaultColorSet,he.defaultColor),ie.colorPanel.onColorChanged=ie.setColor,ie.lineWidthPanel=new qe("Line width",he.defaultStrokeWidths,he.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],he=se[0],ie=se[1],me=se[2],He=se[3],It=!1,Xe=0;Xe<this.canvasElement.height;Xe++)for(var Ke=0;Ke<this.canvasElement.width;Ke++)re.data[Xe*this.canvasElement.width*4+4*Ke+3]>0&&(It=!0,Xe<ie&&(ie=Xe),Ke<he&&(he=Ke),Xe>He&&(He=Xe),Ke>me&&(me=Ke));if(It){this.left=he/this.pixelRatio,this.top=ie/this.pixelRatio,this.width=(me-he)/this.pixelRatio,this.height=(He-ie)/this.pixelRatio;var yt=document.createElement("canvas");yt.width=me-he,yt.height=He-ie,yt.getContext("2d").putImageData(this.canvasContext.getImageData(he,ie,me-he,He-ie),0,0),this.drawingImgUrl=yt.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),de=function(ue){function ae(re,se,he){var ie=ue.call(this,re,he||'<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 he=function(He){var It="both";switch(He){case 0:It="both";break;case 1:It="start";break;case 2:It="end";break;case 3:It="none"}var Xe=document.createElement("div");if(Xe.style.display="flex",Xe.style.flexGrow="2",Xe.style.alignItems="center",Xe.style.justifyContent="space-between",Xe.style.padding="5px",Xe.style.borderWidth="2px",Xe.style.borderStyle="solid",Xe.style.borderColor=It===ie.currentType?ie.uiStyleSettings.toolboxAccentColor:"transparent",Xe.addEventListener("click",function(){re.setCurrentType(It,Xe)}),se.appendChild(Xe),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",Xe.appendChild(Ke)}var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.style.flexGrow="2";var Bt=document.createElement("hr");if(Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop="3px solid "+(ie.uiStyleSettings!==void 0?ie.uiStyleSettings.toolboxColor:"#eeeeee"),Bt.style.flexGrow="2",yt.appendChild(Bt),Xe.appendChild(yt),It==="both"||It==="end"){var _t=document.createElement("div");_t.style.display="flex",_t.style.alignItems="center",_t.style.minHeight="20px",_t.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>`,_t.style.marginRight="5px",Xe.appendChild(_t)}ie.typeBoxes.push(Xe)},ie=this,me=0;me<4;me++)he(me);return se},ae.prototype.setCurrentType=function(re,se){var he=this;this.currentType=re,this.typeBoxes.forEach(function(ie){ie.style.borderColor=ie===se?he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ae}(Ne),Ct=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||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 de("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 he=this.arrowBaseWidth+2*this.strokeWidth,ie=this.arrowBaseHeight+2*this.strokeWidth;return re-he/2+","+(se+ie/2)+" "+re+","+(se-ie/2)+" "+(re+he/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 he=this.arrow2.transform.baseVal.getItem(0);he.setRotate(re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(he,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,he){var ie=ue.call(this,re,se,he)||this;return ie.fillColor=he.defaultFillColor,ie.strokeWidth=0,ie.fillPanel=new we("Color",he.defaultColorSet,he.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}(Oe),je=function(ue){function ae(re,se,he,ie){var me=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 me.opacities=[],me.opacityBoxes=[],me.opacities=se,me.currentOpacity=he,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}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(he){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=he===re.currentOpacity?re.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){re.setCurrentOpacity(he,ie)}),se.appendChild(ie);var me=document.createElement("div");me.innerText=100*he+"%",ie.appendChild(me),re.opacityBoxes.push(ie)}),se},ae.prototype.setCurrentOpacity=function(re,se){var he=this;this.currentOpacity=re,this.opacityBoxes.forEach(function(ie){ie.style.borderColor=ie===se?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ae}(Ne),it=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||this;return ie.setOpacity=ie.setOpacity.bind(ie),ie.fillColor=he.defaultHighlightColor,ie.strokeWidth=0,ie.opacity=he.defaultHighlightOpacity,ie.fillPanel=new we("Color",he.defaultColorSet,ie.fillColor),ie.fillPanel.onColorChanged=ie.setFillColor,ie.opacityPanel=new je("Opacity",he.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),Ie='<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,he){var ie=ue.call(this,re,se,he)||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=he.defaultStrokeColor,ie.bgColor=he.defaultFillColor,ie.fontFamily=he.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 we("Text color",he.defaultColorSet,ie.color,Ie),ie.colorPanel.onColorChanged=ie.setColor,ie.bgColorPanel=new we("Fill color",he.defaultColorSet,ie.bgColor,ye),ie.bgColorPanel.onColorChanged=ie.setBgColor,ie.fontFamilyPanel=new pe("Font",he.defaultFontFamilies,he.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie.tipGrip=new et,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),he=this.height/5;re&&(this.tipPosition={x:se+he/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))?(he=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:0},this.tipBase2Position={x:se+he,y:0}):(this.tipBase1Position={x:0,y:se},this.tipBase2Position={x:0,y:se+he}):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))?(he=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-he,y:0},this.tipBase2Position={x:this.width-se,y:0}):(this.tipBase1Position={x:this.width,y:se},this.tipBase2Position={x:this.width,y:se+he}):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))?(he=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-se-he,y:this.height},this.tipBase2Position={x:this.width-se,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-se-he},this.tipBase2Position={x:this.width,y:this.height-se}):ie<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(he=this.width/5,se=Math.min(this.width/2,15),this.tipBase1Position={x:se,y:this.height},this.tipBase2Position={x:se+he,y:this.height}):(this.tipBase1Position={x:0,y:this.height-se},this.tipBase2Position={x:0,y:this.height-se-he})},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),Ht=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||this;return ie.fillColor="transparent",ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.opacity=1,ie.strokeColor=he.defaultColor,ie.strokeWidth=he.defaultStrokeWidth,ie.strokeDasharray=he.defaultStrokeDasharray,ie.fillColor=he.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 we("Line color",Se(he.defaultColorSet,["transparent"]),he.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.fillPanel=new we("Fill color",Se(he.defaultColorSet,["transparent"]),ie.fillColor,ye),ie.fillPanel.onColorChanged=ie.setFillColor,ie.strokeWidthPanel=new qe("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie.opacityPanel=new je("Opacity",he.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),Et=function(ue){function ae(re,se,he){return ue.call(this,re,se,he)||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 he=this.tip2.transform.baseVal.getItem(0);he.setRotate(re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(he,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),Be=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||this;return ie.strokePanel.colors=he.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}(Ht),ft=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}(),ot=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||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=he.defaultColor,ie.strokeWidth=he.defaultStrokeWidth,ie.strokeDasharray=he.defaultStrokeDasharray,ie.strokePanel=new we("Line color",he.defaultColorSet,he.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new qe("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.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),Xt=function(ue){function ae(re,se,he){var ie=ue.call(this,re,se,he)||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=he.defaultColor,ie.strokeWidth=he.defaultStrokeWidth,ie.strokeDasharray=he.defaultStrokeDasharray,ie.fillColor=he.defaultFillColor,ie.textColor=he.defaultStrokeColor,ie.fontFamily=he.defaultFontFamily,ie.fontSize=he.defaultCaptionFontSize,ie.captionText=he.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 we("Line color",Se(he.defaultColorSet,["transparent"]),ie.strokeColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.fillPanel=new we("Fill color",Se(he.defaultColorSet,["transparent"]),ie.fillColor,ye),ie.fillPanel.onColorChanged=ie.setFillColor,ie.strokeWidthPanel=new qe("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie.fontFamilyPanel=new pe("Font",he.defaultFontFamilies,he.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie.textColorPanel=new we("Text color",he.defaultColorSet,ie.textColor,Ie),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),xt=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}(),wt=function(ue){function ae(re,se,he){var ie=ue.call(this,re,!1)||this;return ie.dataUrl=se,ie.state=he,ie}return ge(ae,ue),ae}(xt),ht=function(ue){function ae(re,se,he){he===void 0&&(he=!1);var ie=ue.call(this,re,he)||this;return ie.marker=se,ie}return ge(ae,ue),ae}(xt),un=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}(),zt=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 bt,this._isOpen=!1,this.undoRedoManager=new ft,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 un,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ue.instanceCounter++,this.styles=new fe(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[ct,xe,Ct,Le,Be,Ht,it,vt,Et,Ye,$e,ot,Xt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ct,xe,Ct,Le,Ht,it,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ct,xe,Ct,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 he=re.ALL_MARKER_TYPES.find(function(ie){return ie.typeName===se});he!==void 0&&re._availableMarkerTypes.push(he)}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&&De.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=De.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(re){return re(new xt(ae))})},ue.prototype.render=function(){return ce(this,void 0,void 0,function(){var ae;return _e(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(he){var ie=new xt(re,!0);he(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(he){return he(new xt(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,he=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,he),this._isResizing=!1},ue.prototype.scaleMarkers=function(ae,re){var se,he=this;this._currentMarker&&this._currentMarker instanceof Le?this._currentMarker.scale(ae,re):(se=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ie){ie!==he._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 dt(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(he){var ie=new ht(ae,ae._currentMarker,!0);he(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(he){return he(new ht(ae,se))})}}},ue.prototype.clear=function(){var ae=this,re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var He=new ht(ae,void 0,!0);me(He),He.defaultPrevented&&(re=!0)}),!re)){this.setCurrentMarker();for(var se=function(me){var He=he.markers[me];he.setCurrentMarker(he.markers[me]),he._currentMarker.dispose(),he.markerImage.removeChild(he._currentMarker.container),he.markers.splice(he.markers.indexOf(he._currentMarker),1),he.eventListeners.markerdelete.forEach(function(It){return It(new ht(ae,He))})},he=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 he=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(re),he<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ie){return ie(new xt(ae))})}else this.undoRedoManager.replaceLastUndoStep(re),this.eventListeners.statechange.forEach(function(ie){return ie(new xt(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 xt(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 xt(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 ce(this,void 0,void 0,function(){var ae,re,se=this;return _e(this,function(he){switch(he.label){case 0:return[4,this.render()];case 1:return ae=he.sent(),re=this.getState(),this.eventListeners.render.forEach(function(ie){return ie(new wt(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 he=re._availableMarkerTypes.find(function(me){return me.typeName===se.typeName});if(he!==void 0){var ie=re.addNewMarker(he);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 xt(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(he){return he.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(he){return he(new ht(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 ht(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 ht(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 ht(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 ht(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 xt(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 xt(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),ce=E(47273),_e=0,Se=(0,ce.Z)();function Ee(){var ke;return Se?(ke=_e,_e+=1):ke="TEST_OR_SSR",ke}function Ce(ke){var De=ge.useState(),fe=(0,y.Z)(De,2),We=fe[0],Te=fe[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 jt},Wx:function(){return Nt},ZP:function(){return ur},lk:function(){return St}});var y=E(60499),ge=E(77654),ce=E(18642),_e=E(85899),Se=E(72190),Ee=E(42244),Ce=E(43749),ke=E(18929),De=E(48736),fe=E(59301),We=E(92310),Te=E.n(We),dt=E(34280),Ge=E(49658),Ne=E(8654),we=function(Ut){var pt=Ut.className,Zt=Ut.customizeIcon,at=Ut.customizeIconProps,gt=Ut.children,cn=Ut.onMouseDown,ar=Ut.onClick,mr=typeof Zt=="function"?Zt(at):Zt;return fe.createElement("span",{className:pt,onMouseDown:function(Tt){Tt.preventDefault(),cn==null||cn(Tt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ar,"aria-hidden":!0},mr!==void 0?mr:fe.createElement("span",{className:Te()(pt.split(/\s+/).map(function(At){return"".concat(At,"-icon")}))},gt))},Pe=we,Fe=function(Ut,pt,Zt,at,gt){var cn=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=fe.useMemo(function(){if((0,Ce.Z)(at)==="object")return at.clearIcon;if(gt)return gt},[at,gt]),Tt=fe.useMemo(function(){return!!(!cn&&at&&(Zt.length||ar)&&!(mr==="combobox"&&ar===""))},[at,cn,Zt.length,ar,mr]);return{allowClear:Tt,clearIcon:fe.createElement(Pe,{className:"".concat(Ut,"-clear"),onMouseDown:pt,customizeIcon:At},"\xD7")}},et=fe.createContext(null);function St(){return fe.useContext(et)}function Ae(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ut=fe.useState(!1),pt=(0,Se.Z)(Ut,2),Zt=pt[0],at=pt[1],gt=fe.useRef(null),cn=function(){window.clearTimeout(gt.current)};fe.useEffect(function(){return cn},[]);var ar=function(At,Tt){cn(),gt.current=window.setTimeout(function(){at(At),Tt&&Tt()},kt)};return[Zt,ar,cn]}function Oe(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ut=fe.useRef(null),pt=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(pt.current)}},[]);function Zt(at){(at||Ut.current===null)&&(Ut.current=at),window.clearTimeout(pt.current),pt.current=window.setTimeout(function(){Ut.current=null},kt)}return[function(){return Ut.current},Zt]}function qe(kt,Ut,pt,Zt){var at=fe.useRef(null);at.current={open:Ut,triggerOpen:pt,customizedTrigger:Zt},fe.useEffect(function(){function gt(cn){var ar;if(!((ar=at.current)!==null&&ar!==void 0&&ar.customizedTrigger)){var mr=cn.target;mr.shadowRoot&&cn.composed&&(mr=cn.composedPath()[0]||mr),at.current.open&&kt().filter(function(At){return At}).every(function(At){return!At.contains(mr)&&At!==mr})&&at.current.triggerOpen(!1)}}return window.addEventListener("mousedown",gt),function(){return window.removeEventListener("mousedown",gt)}},[])}var Je=E(10228);function ct(kt){return kt&&![Je.Z.ESC,Je.Z.SHIFT,Je.Z.BACKSPACE,Je.Z.TAB,Je.Z.WIN_KEY,Je.Z.ALT,Je.Z.META,Je.Z.WIN_KEY_RIGHT,Je.Z.CTRL,Je.Z.SEMICOLON,Je.Z.EQUALS,Je.Z.CAPS_LOCK,Je.Z.CONTEXT_MENU,Je.Z.F1,Je.Z.F2,Je.Z.F3,Je.Z.F4,Je.Z.F5,Je.Z.F6,Je.Z.F7,Je.Z.F8,Je.Z.F9,Je.Z.F10,Je.Z.F11,Je.Z.F12].includes(kt)}var bt=E(26112),st=E(83836);function $e(kt,Ut,pt){var Zt=(0,_e.Z)((0,_e.Z)({},kt),pt?Ut:{});return Object.keys(Ut).forEach(function(at){var gt=Ut[at];typeof gt=="function"&&(Zt[at]=function(){for(var cn,ar=arguments.length,mr=new Array(ar),At=0;At<ar;At++)mr[At]=arguments[At];return gt.apply(void 0,mr),(cn=kt[at])===null||cn===void 0?void 0:cn.call.apply(cn,[kt].concat(mr))})}),Zt}var pe=$e,Le=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],xe=function(Ut,pt){var Zt=Ut.prefixCls,at=Ut.id,gt=Ut.inputElement,cn=Ut.autoFocus,ar=Ut.autoComplete,mr=Ut.editable,At=Ut.activeDescendantId,Tt=Ut.value,Mt=Ut.open,Kt=Ut.attrs,On=(0,Ee.Z)(Ut,Le),Kn=gt||fe.createElement("input",null),Un=Kn,Hn=Un.ref,hr=Un.props;return(0,De.Kp)(!("maxLength"in Kn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Kn=fe.cloneElement(Kn,(0,_e.Z)((0,_e.Z)((0,_e.Z)({type:"search"},pe(On,hr,!0)),{},{id:at,ref:(0,Ne.sQ)(pt,Hn),autoComplete:ar||"off",autoFocus:cn,className:Te()("".concat(Zt,"-selection-search-input"),hr==null?void 0:hr.className),role:"combobox","aria-expanded":Mt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(at,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(at,"_list"),"aria-activedescendant":Mt?At:void 0},Kt),{},{value:mr?Tt:"",readOnly:!mr,unselectable:mr?null:"on",style:(0,_e.Z)((0,_e.Z)({},hr.style),{},{opacity:mr?null:0})})),Kn},de=fe.forwardRef(xe),Ct=de;function Ye(kt){return Array.isArray(kt)?kt:kt!==void 0?[kt]:[]}var je=typeof window!="undefined"&&window.document&&window.document.documentElement,it=je;function Ie(kt){return kt!=null}function ye(kt){return!kt&&kt!==0}function vt(kt){return["string","number"].includes((0,Ce.Z)(kt))}function Ht(kt){var Ut=void 0;return kt&&(vt(kt.title)?Ut=kt.title.toString():vt(kt.label)&&(Ut=kt.label.toString())),Ut}function Et(kt,Ut){it?fe.useLayoutEffect(kt,Ut):fe.useEffect(kt,Ut)}function Be(kt){var Ut;return(Ut=kt.key)!==null&&Ut!==void 0?Ut:kt.value}var ft=function(Ut){Ut.preventDefault(),Ut.stopPropagation()},ot=function(Ut){var pt=Ut.id,Zt=Ut.prefixCls,at=Ut.values,gt=Ut.open,cn=Ut.searchValue,ar=Ut.autoClearSearchValue,mr=Ut.inputRef,At=Ut.placeholder,Tt=Ut.disabled,Mt=Ut.mode,Kt=Ut.showSearch,On=Ut.autoFocus,Kn=Ut.autoComplete,Un=Ut.activeDescendantId,Hn=Ut.tabIndex,hr=Ut.removeIcon,Pr=Ut.maxTagCount,Tr=Ut.maxTagTextLength,Lr=Ut.maxTagPlaceholder,Cr=Lr===void 0?function(Sr){return"+ ".concat(Sr.length," ...")}:Lr,Rr=Ut.tagRender,Xr=Ut.onToggleOpen,oa=Ut.onRemove,ta=Ut.onInputChange,xa=Ut.onInputPaste,Fa=Ut.onInputKeyDown,Ur=Ut.onInputMouseDown,ya=Ut.onInputCompositionStart,Xa=Ut.onInputCompositionEnd,Ia=Ut.onInputBlur,pa=fe.useRef(null),kr=(0,fe.useState)(0),Za=(0,Se.Z)(kr,2),Sa=Za[0],la=Za[1],Kr=(0,fe.useState)(!1),Ya=(0,Se.Z)(Kr,2),Mi=Ya[0],ji=Ya[1],za="".concat(Zt,"-selection"),Di=gt||Mt==="multiple"&&ar===!1||Mt==="tags"?cn:"",mi=Mt==="tags"||Mt==="multiple"&&ar===!1||Kt&&(gt||Mi);Et(function(){la(pa.current.scrollWidth)},[Di]);var Wi=function(tr,$r,sa,Er,Dr){return fe.createElement("span",{title:Ht(tr),className:Te()("".concat(za,"-item"),(0,ce.Z)({},"".concat(za,"-item-disabled"),sa))},fe.createElement("span",{className:"".concat(za,"-item-content")},$r),Er&&fe.createElement(Pe,{className:"".concat(za,"-item-remove"),onMouseDown:ft,onClick:Dr,customizeIcon:hr},"\xD7"))},Ei=function(tr,$r,sa,Er,Dr,jr){var Qr=function($a){ft($a),Xr(!gt)};return fe.createElement("span",{onMouseDown:Qr},Rr({label:$r,value:tr,disabled:sa,closable:Er,onClose:Dr,isMaxTag:!!jr}))},ei=function(tr){var $r=tr.disabled,sa=tr.label,Er=tr.value,Dr=!Tt&&!$r,jr=sa;if(typeof Tr=="number"&&(typeof sa=="string"||typeof sa=="number")){var Qr=String(jr);Qr.length>Tr&&(jr="".concat(Qr.slice(0,Tr),"..."))}var Na=function(ea){ea&&ea.stopPropagation(),oa(tr)};return typeof Rr=="function"?Ei(Er,jr,$r,Dr,Na):Wi(tr,jr,$r,Dr,Na)},Ar=function(tr){if(!at.length)return null;var $r=typeof Cr=="function"?Cr(tr):Cr;return typeof Rr=="function"?Ei(void 0,$r,!1,!1,void 0,!0):Wi({title:$r},$r,!1)},Jn=fe.createElement("div",{className:"".concat(za,"-search"),style:{width:Sa},onFocus:function(){ji(!0)},onBlur:function(){ji(!1)}},fe.createElement(Ct,{ref:mr,open:gt,prefixCls:Zt,id:pt,inputElement:null,disabled:Tt,autoFocus:On,autoComplete:Kn,editable:mi,activeDescendantId:Un,value:Di,onKeyDown:Fa,onMouseDown:Ur,onChange:ta,onPaste:xa,onCompositionStart:ya,onCompositionEnd:Xa,onBlur:Ia,tabIndex:Hn,attrs:(0,bt.Z)(Ut,!0)}),fe.createElement("span",{ref:pa,className:"".concat(za,"-search-mirror"),"aria-hidden":!0},Di,"\xA0")),xr=fe.createElement(st.Z,{prefixCls:"".concat(za,"-overflow"),data:at,renderItem:ei,renderRest:Ar,suffix:Jn,itemKey:Be,maxCount:Pr});return fe.createElement("span",{className:"".concat(za,"-wrap")},xr,!at.length&&!Di&&fe.createElement("span",{className:"".concat(za,"-placeholder")},At))},Xt=ot,xt=function(Ut){var pt=Ut.inputElement,Zt=Ut.prefixCls,at=Ut.id,gt=Ut.inputRef,cn=Ut.disabled,ar=Ut.autoFocus,mr=Ut.autoComplete,At=Ut.activeDescendantId,Tt=Ut.mode,Mt=Ut.open,Kt=Ut.values,On=Ut.placeholder,Kn=Ut.tabIndex,Un=Ut.showSearch,Hn=Ut.searchValue,hr=Ut.activeValue,Pr=Ut.maxLength,Tr=Ut.onInputKeyDown,Lr=Ut.onInputMouseDown,Cr=Ut.onInputChange,Rr=Ut.onInputPaste,Xr=Ut.onInputCompositionStart,oa=Ut.onInputCompositionEnd,ta=Ut.onInputBlur,xa=Ut.title,Fa=fe.useState(!1),Ur=(0,Se.Z)(Fa,2),ya=Ur[0],Xa=Ur[1],Ia=Tt==="combobox",pa=Ia||Un,kr=Kt[0],Za=Hn||"";Ia&&hr&&!ya&&(Za=hr),fe.useEffect(function(){Ia&&Xa(!1)},[Ia,hr]);var Sa=Tt!=="combobox"&&!Mt&&!Un?!1:!!Za,la=xa===void 0?Ht(kr):xa,Kr=fe.useMemo(function(){return kr?null:fe.createElement("span",{className:"".concat(Zt,"-selection-placeholder"),style:Sa?{visibility:"hidden"}:void 0},On)},[kr,Sa,On,Zt]);return fe.createElement("span",{className:"".concat(Zt,"-selection-wrap")},fe.createElement("span",{className:"".concat(Zt,"-selection-search")},fe.createElement(Ct,{ref:gt,prefixCls:Zt,id:at,open:Mt,inputElement:pt,disabled:cn,autoFocus:ar,autoComplete:mr,editable:pa,activeDescendantId:At,value:Za,onKeyDown:Tr,onMouseDown:Lr,onChange:function(Mi){Xa(!0),Cr(Mi)},onPaste:Rr,onCompositionStart:Xr,onCompositionEnd:oa,onBlur:ta,tabIndex:Kn,attrs:(0,bt.Z)(Ut,!0),maxLength:Ia?Pr:void 0})),!Ia&&kr?fe.createElement("span",{className:"".concat(Zt,"-selection-item"),title:la,style:Sa?{visibility:"hidden"}:void 0},kr.label):null,Kr)},wt=xt,ht=function(Ut,pt){var Zt=(0,fe.useRef)(null),at=(0,fe.useRef)(!1),gt=Ut.prefixCls,cn=Ut.open,ar=Ut.mode,mr=Ut.showSearch,At=Ut.tokenWithEnter,Tt=Ut.disabled,Mt=Ut.prefix,Kt=Ut.autoClearSearchValue,On=Ut.onSearch,Kn=Ut.onSearchSubmit,Un=Ut.onToggleOpen,Hn=Ut.onInputKeyDown,hr=Ut.onInputBlur,Pr=Ut.domRef;fe.useImperativeHandle(pt,function(){return{focus:function(la){Zt.current.focus(la)},blur:function(){Zt.current.blur()}}});var Tr=Oe(0),Lr=(0,Se.Z)(Tr,2),Cr=Lr[0],Rr=Lr[1],Xr=function(la){var Kr=la.which,Ya=Zt.current instanceof HTMLTextAreaElement;!Ya&&cn&&(Kr===Je.Z.UP||Kr===Je.Z.DOWN)&&la.preventDefault(),Hn&&Hn(la),Kr===Je.Z.ENTER&&ar==="tags"&&!at.current&&!cn&&(Kn==null||Kn(la.target.value)),!(Ya&&!cn&&~[Je.Z.UP,Je.Z.DOWN,Je.Z.LEFT,Je.Z.RIGHT].indexOf(Kr))&&ct(Kr)&&Un(!0)},oa=function(){Rr(!0)},ta=(0,fe.useRef)(null),xa=function(la){On(la,!0,at.current)!==!1&&Un(!0)},Fa=function(){at.current=!0},Ur=function(la){at.current=!1,ar!=="combobox"&&xa(la.target.value)},ya=function(la){var Kr=la.target.value;if(At&&ta.current&&/[\r\n]/.test(ta.current)){var Ya=ta.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Kr=Kr.replace(Ya,ta.current)}ta.current=null,xa(Kr)},Xa=function(la){var Kr=la.clipboardData,Ya=Kr==null?void 0:Kr.getData("text");ta.current=Ya||""},Ia=function(la){var Kr=la.target;if(Kr!==Zt.current){var Ya=document.body.style.msTouchAction!==void 0;Ya?setTimeout(function(){Zt.current.focus()}):Zt.current.focus()}},pa=function(la){var Kr=Cr();la.target!==Zt.current&&!Kr&&!(ar==="combobox"&&Tt)&&la.preventDefault(),(ar!=="combobox"&&(!mr||!Kr)||!cn)&&(cn&&Kt!==!1&&On("",!0,!1),Un())},kr={inputRef:Zt,onInputKeyDown:Xr,onInputMouseDown:oa,onInputChange:ya,onInputPaste:Xa,onInputCompositionStart:Fa,onInputCompositionEnd:Ur,onInputBlur:hr},Za=ar==="multiple"||ar==="tags"?fe.createElement(Xt,(0,y.Z)({},Ut,kr)):fe.createElement(wt,(0,y.Z)({},Ut,kr));return fe.createElement("div",{ref:Pr,className:"".concat(gt,"-selector"),onClick:Ia,onMouseDown:pa},Mt&&fe.createElement("div",{className:"".concat(gt,"-prefix")},Mt),Za)},un=fe.forwardRef(ht),zt=un,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(Ut){var pt=Ut===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:pt,adjustY:1},htmlRegion:"scroll"}}},se=function(Ut,pt){var Zt=Ut.prefixCls,at=Ut.disabled,gt=Ut.visible,cn=Ut.children,ar=Ut.popupElement,mr=Ut.animation,At=Ut.transitionName,Tt=Ut.dropdownStyle,Mt=Ut.dropdownClassName,Kt=Ut.direction,On=Kt===void 0?"ltr":Kt,Kn=Ut.placement,Un=Ut.builtinPlacements,Hn=Ut.dropdownMatchSelectWidth,hr=Ut.dropdownRender,Pr=Ut.dropdownAlign,Tr=Ut.getPopupContainer,Lr=Ut.empty,Cr=Ut.getTriggerDOMNode,Rr=Ut.onPopupVisibleChange,Xr=Ut.onPopupMouseEnter,oa=(0,Ee.Z)(Ut,ae),ta="".concat(Zt,"-dropdown"),xa=ar;hr&&(xa=hr(ar));var Fa=fe.useMemo(function(){return Un||re(Hn)},[Un,Hn]),Ur=mr?"".concat(ta,"-").concat(mr):At,ya=typeof Hn=="number",Xa=fe.useMemo(function(){return ya?null:Hn===!1?"minWidth":"width"},[Hn,ya]),Ia=Tt;ya&&(Ia=(0,_e.Z)((0,_e.Z)({},Ia),{},{width:Hn}));var pa=fe.useRef(null);return fe.useImperativeHandle(pt,function(){return{getPopupElement:function(){var Za;return(Za=pa.current)===null||Za===void 0?void 0:Za.popupElement}}}),fe.createElement(ue.Z,(0,y.Z)({},oa,{showAction:Rr?["click"]:[],hideAction:Rr?["click"]:[],popupPlacement:Kn||(On==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fa,prefixCls:ta,popupTransitionName:Ur,popup:fe.createElement("div",{onMouseEnter:Xr},xa),ref:pa,stretch:Xa,popupAlign:Pr,popupVisible:gt,getPopupContainer:Tr,popupClassName:Te()(Mt,(0,ce.Z)({},"".concat(ta,"-empty"),Lr)),popupStyle:Ia,getTriggerDOMNode:Cr,onPopupVisibleChange:Rr}),cn)},he=fe.forwardRef(se),ie=he,me=E(48745);function He(kt,Ut){var pt=kt.key,Zt;return"value"in kt&&(Zt=kt.value),pt!=null?pt:Zt!==void 0?Zt:"rc-index-key-".concat(Ut)}function It(kt){return typeof kt!="undefined"&&!Number.isNaN(kt)}function Xe(kt,Ut){var pt=kt||{},Zt=pt.label,at=pt.value,gt=pt.options,cn=pt.groupLabel,ar=Zt||(Ut?"children":"label");return{label:ar,value:at||"value",options:gt||"options",groupLabel:cn||ar}}function Ke(kt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pt=Ut.fieldNames,Zt=Ut.childrenAsData,at=[],gt=Xe(pt,!1),cn=gt.label,ar=gt.value,mr=gt.options,At=gt.groupLabel;function Tt(Mt,Kt){Array.isArray(Mt)&&Mt.forEach(function(On){if(Kt||!(mr in On)){var Kn=On[ar];at.push({key:He(On,at.length),groupOption:Kt,data:On,label:On[cn],value:Kn})}else{var Un=On[At];Un===void 0&&Zt&&(Un=On.label),at.push({key:He(On,at.length),group:!0,data:On,label:Un}),Tt(On[mr],!0)}})}return Tt(kt,!1),at}function yt(kt){var Ut=(0,_e.Z)({},kt);return"props"in Ut||Object.defineProperty(Ut,"props",{get:function(){return(0,De.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ut}}),Ut}var Bt=function(Ut,pt,Zt){if(!pt||!pt.length)return null;var at=!1,gt=function ar(mr,At){var Tt=(0,me.Z)(At),Mt=Tt[0],Kt=Tt.slice(1);if(!Mt)return[mr];var On=mr.split(Mt);return at=at||On.length>1,On.reduce(function(Kn,Un){return[].concat((0,ge.Z)(Kn),(0,ge.Z)(ar(Un,Kt)))},[]).filter(Boolean)},cn=gt(Ut,pt);return at?typeof Zt!="undefined"?cn.slice(0,Zt):cn:null},_t=fe.createContext(null),Qe=_t;function tt(kt){var Ut=kt.visible,pt=kt.values;if(!Ut)return null;var Zt=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(pt.slice(0,Zt).map(function(at){var gt=at.label,cn=at.value;return["number","string"].includes((0,Ce.Z)(gt))?gt:cn}).join(", ")),pt.length>Zt?", ...":null)}var Vt=["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"],on=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Fn=function(Ut){return Ut==="tags"||Ut==="multiple"},gn=fe.forwardRef(function(kt,Ut){var pt,Zt=kt.id,at=kt.prefixCls,gt=kt.className,cn=kt.showSearch,ar=kt.tagRender,mr=kt.direction,At=kt.omitDomProps,Tt=kt.displayValues,Mt=kt.onDisplayValuesChange,Kt=kt.emptyOptions,On=kt.notFoundContent,Kn=On===void 0?"Not Found":On,Un=kt.onClear,Hn=kt.mode,hr=kt.disabled,Pr=kt.loading,Tr=kt.getInputElement,Lr=kt.getRawInputElement,Cr=kt.open,Rr=kt.defaultOpen,Xr=kt.onDropdownVisibleChange,oa=kt.activeValue,ta=kt.onActiveValueChange,xa=kt.activeDescendantId,Fa=kt.searchValue,Ur=kt.autoClearSearchValue,ya=kt.onSearch,Xa=kt.onSearchSplit,Ia=kt.tokenSeparators,pa=kt.allowClear,kr=kt.prefix,Za=kt.suffixIcon,Sa=kt.clearIcon,la=kt.OptionList,Kr=kt.animation,Ya=kt.transitionName,Mi=kt.dropdownStyle,ji=kt.dropdownClassName,za=kt.dropdownMatchSelectWidth,Di=kt.dropdownRender,mi=kt.dropdownAlign,Wi=kt.placement,Ei=kt.builtinPlacements,ei=kt.getPopupContainer,Ar=kt.showAction,Jn=Ar===void 0?[]:Ar,xr=kt.onFocus,Sr=kt.onBlur,tr=kt.onKeyUp,$r=kt.onKeyDown,sa=kt.onMouseDown,Er=(0,Ee.Z)(kt,Vt),Dr=Fn(Hn),jr=(cn!==void 0?cn:Dr)||Hn==="combobox",Qr=(0,_e.Z)({},Er);on.forEach(function(di){delete Qr[di]}),At==null||At.forEach(function(di){delete Qr[di]});var Na=fe.useState(!1),$a=(0,Se.Z)(Na,2),ea=$a[0],ai=$a[1];fe.useEffect(function(){ai((0,Ge.Z)())},[]);var gi=fe.useRef(null),zi=fe.useRef(null),Ui=fe.useRef(null),Ji=fe.useRef(null),Yi=fe.useRef(null),co=fe.useRef(!1),No=Ae(),$o=(0,Se.Z)(No,3),Wo=$o[0],Ba=$o[1],Ii=$o[2];fe.useImperativeHandle(Ut,function(){var di,si;return{focus:(di=Ji.current)===null||di===void 0?void 0:di.focus,blur:(si=Ji.current)===null||si===void 0?void 0:si.blur,scrollTo:function(Jt){var rn;return(rn=Yi.current)===null||rn===void 0?void 0:rn.scrollTo(Jt)},nativeElement:gi.current||zi.current}});var ri=fe.useMemo(function(){var di;if(Hn!=="combobox")return Fa;var si=(di=Tt[0])===null||di===void 0?void 0:di.value;return typeof si=="string"||typeof si=="number"?String(si):""},[Fa,Hn,Tt]),So=Hn==="combobox"&&typeof Tr=="function"&&Tr()||null,ci=typeof Lr=="function"&&Lr(),il=(0,Ne.x1)(zi,ci==null||(pt=ci.props)===null||pt===void 0?void 0:pt.ref),$l=fe.useState(!1),Ol=(0,Se.Z)($l,2),Vo=Ol[0],Yo=Ol[1];(0,dt.Z)(function(){Yo(!0)},[]);var no=(0,ke.Z)(!1,{defaultValue:Rr,value:Cr}),Nl=(0,Se.Z)(no,2),Ul=Nl[0],_l=Nl[1],Io=Vo?Ul:!1,es=!Kn&&Kt;(hr||es&&Io&&Hn==="combobox")&&(Io=!1);var as=es?!1:Io,Ni=fe.useCallback(function(di){var si=di!==void 0?di:!Io;hr||(_l(si),Io!==si&&(Xr==null||Xr(si)))},[hr,Io,_l,Xr]),Qi=fe.useMemo(function(){return(Ia||[]).some(function(di){return[`
|
|
|
`,`\r
|
|
|
`].includes(di)})},[Ia]),Pi=fe.useContext(Qe)||{},pi=Pi.maxCount,Hi=Pi.rawValues,uo=function(si,Dt,Jt){if(!(Dr&&It(pi)&&(Hi==null?void 0:Hi.size)>=pi)){var rn=!0,Nn=si;ta==null||ta(null);var Va=Bt(si,Ia,It(pi)?pi-Hi.size:void 0),zr=Jt?null:Va;return Hn!=="combobox"&&zr&&(Nn="",Xa==null||Xa(zr),Ni(!1),rn=!1),ya&&ri!==Nn&&ya(Nn,{source:Dt?"typing":"effect"}),rn}},Il=function(si){!si||!si.trim()||ya(si,{source:"submit"})};fe.useEffect(function(){!Io&&!Dr&&Hn!=="combobox"&&uo("",!1,!1)},[Io]),fe.useEffect(function(){Ul&&hr&&_l(!1),hr&&!co.current&&Ba(!1)},[hr]);var oo=Oe(),Qo=(0,Se.Z)(oo,2),Jo=Qo[0],hn=Qo[1],vn=fe.useRef(!1),Tn=function(si){var Dt=Jo(),Jt=si.key,rn=Jt==="Enter";if(rn&&(Hn!=="combobox"&&si.preventDefault(),Io||Ni(!0)),hn(!!ri),Jt==="Backspace"&&!Dt&&Dr&&!ri&&Tt.length){for(var Nn=(0,ge.Z)(Tt),Va=null,zr=Nn.length-1;zr>=0;zr-=1){var qn=Nn[zr];if(!qn.disabled){Nn.splice(zr,1),Va=qn;break}}Va&&Mt(Nn,{type:"remove",values:[Va]})}for(var pr=arguments.length,Fr=new Array(pr>1?pr-1:0),aa=1;aa<pr;aa++)Fr[aa-1]=arguments[aa];if(Io&&(!rn||!vn.current)){var Wr;rn&&(vn.current=!0),(Wr=Yi.current)===null||Wr===void 0||Wr.onKeyDown.apply(Wr,[si].concat(Fr))}$r==null||$r.apply(void 0,[si].concat(Fr))},wr=function(si){for(var Dt=arguments.length,Jt=new Array(Dt>1?Dt-1:0),rn=1;rn<Dt;rn++)Jt[rn-1]=arguments[rn];if(Io){var Nn;(Nn=Yi.current)===null||Nn===void 0||Nn.onKeyUp.apply(Nn,[si].concat(Jt))}si.key==="Enter"&&(vn.current=!1),tr==null||tr.apply(void 0,[si].concat(Jt))},Or=function(si){var Dt=Tt.filter(function(Jt){return Jt!==si});Mt(Dt,{type:"remove",values:[si]})},rr=function(){vn.current=!1},ir=fe.useRef(!1),kn=function(){Ba(!0),hr||(xr&&!ir.current&&xr.apply(void 0,arguments),Jn.includes("focus")&&Ni(!0)),ir.current=!0},er=function(){co.current=!0,Ba(!1,function(){ir.current=!1,co.current=!1,Ni(!1)}),!hr&&(ri&&(Hn==="tags"?ya(ri,{source:"submit"}):Hn==="multiple"&&ya("",{source:"blur"})),Sr&&Sr.apply(void 0,arguments))},gr=[];fe.useEffect(function(){return function(){gr.forEach(function(di){return clearTimeout(di)}),gr.splice(0,gr.length)}},[]);var na=function(si){var Dt,Jt=si.target,rn=(Dt=Ui.current)===null||Dt===void 0?void 0:Dt.getPopupElement();if(rn&&rn.contains(Jt)){var Nn=setTimeout(function(){var pr=gr.indexOf(Nn);if(pr!==-1&&gr.splice(pr,1),Ii(),!ea&&!rn.contains(document.activeElement)){var Fr;(Fr=Ji.current)===null||Fr===void 0||Fr.focus()}});gr.push(Nn)}for(var Va=arguments.length,zr=new Array(Va>1?Va-1:0),qn=1;qn<Va;qn++)zr[qn-1]=arguments[qn];sa==null||sa.apply(void 0,[si].concat(zr))},Ci=fe.useState({}),ki=(0,Se.Z)(Ci,2),fo=ki[1];function ro(){fo({})}var Ha;ci&&(Ha=function(si){Ni(si)}),qe(function(){var di;return[gi.current,(di=Ui.current)===null||di===void 0?void 0:di.getPopupElement()]},as,Ni,!!ci);var ma=fe.useMemo(function(){return(0,_e.Z)((0,_e.Z)({},kt),{},{notFoundContent:Kn,open:Io,triggerOpen:as,id:Zt,showSearch:jr,multiple:Dr,toggleOpen:Ni})},[kt,Kn,as,Io,Zt,jr,Dr,Ni]),Hr=!!Za||Pr,_i;Hr&&(_i=fe.createElement(Pe,{className:Te()("".concat(at,"-arrow"),(0,ce.Z)({},"".concat(at,"-arrow-loading"),Pr)),customizeIcon:Za,customizeIconProps:{loading:Pr,searchValue:ri,open:Io,focused:Wo,showSearch:jr}}));var Li=function(){var si;Un==null||Un(),(si=Ji.current)===null||si===void 0||si.focus(),Mt([],{type:"clear",values:Tt}),uo("",!1,!1)},vo=Fe(at,Li,Tt,pa,Sa,hr,ri,Hn),_o=vo.allowClear,Ai=vo.clearIcon,go=fe.createElement(la,{ref:Yi}),xi=Te()(at,gt,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(at,"-focused"),Wo),"".concat(at,"-multiple"),Dr),"".concat(at,"-single"),!Dr),"".concat(at,"-allow-clear"),pa),"".concat(at,"-show-arrow"),Hr),"".concat(at,"-disabled"),hr),"".concat(at,"-loading"),Pr),"".concat(at,"-open"),Io),"".concat(at,"-customize-input"),So),"".concat(at,"-show-search"),jr)),ga=fe.createElement(ie,{ref:Ui,disabled:hr,prefixCls:at,visible:as,popupElement:go,animation:Kr,transitionName:Ya,dropdownStyle:Mi,dropdownClassName:ji,direction:mr,dropdownMatchSelectWidth:za,dropdownRender:Di,dropdownAlign:mi,placement:Wi,builtinPlacements:Ei,getPopupContainer:ei,empty:Kt,getTriggerDOMNode:function(si){return zi.current||si},onPopupVisibleChange:Ha,onPopupMouseEnter:ro},ci?fe.cloneElement(ci,{ref:il}):fe.createElement(zt,(0,y.Z)({},kt,{domRef:zi,prefixCls:at,inputElement:So,ref:Ji,id:Zt,prefix:kr,showSearch:jr,autoClearSearchValue:Ur,mode:Hn,activeDescendantId:xa,tagRender:ar,values:Tt,open:Io,onToggleOpen:Ni,activeValue:oa,searchValue:ri,onSearch:uo,onSearchSubmit:Il,onRemove:Or,tokenWithEnter:Qi,onInputBlur:rr}))),hi;return ci?hi=ga:hi=fe.createElement("div",(0,y.Z)({className:xi},Qr,{ref:gi,onMouseDown:na,onKeyDown:Tn,onKeyUp:wr,onFocus:kn,onBlur:er}),fe.createElement(tt,{visible:Wo&&!Io,values:Tt}),ga,_i,_o&&Ai),fe.createElement(et.Provider,{value:ma},hi)}),Lt=gn,Qt=function(){return null};Qt.isSelectOptGroup=!0;var jt=Qt,rt=function(){return null};rt.isSelectOption=!0;var Nt=rt,fn=E(80547),yn=E(2738),lt=E(48911);function Rt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var en=["disabled","title","children","style","className"];function Pt(kt){return typeof kt=="string"||typeof kt=="number"}var Yt=function(Ut,pt){var Zt=St(),at=Zt.prefixCls,gt=Zt.id,cn=Zt.open,ar=Zt.multiple,mr=Zt.mode,At=Zt.searchValue,Tt=Zt.toggleOpen,Mt=Zt.notFoundContent,Kt=Zt.onPopupScroll,On=fe.useContext(Qe),Kn=On.maxCount,Un=On.flattenOptions,Hn=On.onActiveValue,hr=On.defaultActiveFirstOption,Pr=On.onSelect,Tr=On.menuItemSelectedIcon,Lr=On.rawValues,Cr=On.fieldNames,Rr=On.virtual,Xr=On.direction,oa=On.listHeight,ta=On.listItemHeight,xa=On.optionRender,Fa="".concat(at,"-item"),Ur=(0,fn.Z)(function(){return Un},[cn,Un],function(Ar,Jn){return Jn[0]&&Ar[1]!==Jn[1]}),ya=fe.useRef(null),Xa=fe.useMemo(function(){return ar&&It(Kn)&&(Lr==null?void 0:Lr.size)>=Kn},[ar,Kn,Lr==null?void 0:Lr.size]),Ia=function(Jn){Jn.preventDefault()},pa=function(Jn){var xr;(xr=ya.current)===null||xr===void 0||xr.scrollTo(typeof Jn=="number"?{index:Jn}:Jn)},kr=fe.useCallback(function(Ar){return mr==="combobox"?!1:Lr.has(Ar)},[mr,(0,ge.Z)(Lr).toString(),Lr.size]),Za=function(Jn){for(var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Sr=Ur.length,tr=0;tr<Sr;tr+=1){var $r=(Jn+tr*xr+Sr)%Sr,sa=Ur[$r]||{},Er=sa.group,Dr=sa.data;if(!Er&&!(Dr!=null&&Dr.disabled)&&(kr(Dr.value)||!Xa))return $r}return-1},Sa=fe.useState(function(){return Za(0)}),la=(0,Se.Z)(Sa,2),Kr=la[0],Ya=la[1],Mi=function(Jn){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ya(Jn);var Sr={source:xr?"keyboard":"mouse"},tr=Ur[Jn];if(!tr){Hn(null,-1,Sr);return}Hn(tr.value,Jn,Sr)};(0,fe.useEffect)(function(){Mi(hr!==!1?Za(0):-1)},[Ur.length,At]);var ji=fe.useCallback(function(Ar){return mr==="combobox"?String(Ar).toLowerCase()===At.toLowerCase():Lr.has(Ar)},[mr,At,(0,ge.Z)(Lr).toString(),Lr.size]);(0,fe.useEffect)(function(){var Ar=setTimeout(function(){if(!ar&&cn&&Lr.size===1){var xr=Array.from(Lr)[0],Sr=Ur.findIndex(function(tr){var $r=tr.data;return At?String($r.value).startsWith(At):$r.value===xr});Sr!==-1&&(Mi(Sr),pa(Sr))}});if(cn){var Jn;(Jn=ya.current)===null||Jn===void 0||Jn.scrollTo(void 0)}return function(){return clearTimeout(Ar)}},[cn,At]);var za=function(Jn){Jn!==void 0&&Pr(Jn,{selected:!Lr.has(Jn)}),ar||Tt(!1)};if(fe.useImperativeHandle(pt,function(){return{onKeyDown:function(Jn){var xr=Jn.which,Sr=Jn.ctrlKey;switch(xr){case Je.Z.N:case Je.Z.P:case Je.Z.UP:case Je.Z.DOWN:{var tr=0;if(xr===Je.Z.UP?tr=-1:xr===Je.Z.DOWN?tr=1:Rt()&&Sr&&(xr===Je.Z.N?tr=1:xr===Je.Z.P&&(tr=-1)),tr!==0){var $r=Za(Kr+tr,tr);pa($r),Mi($r,!0)}break}case Je.Z.TAB:case Je.Z.ENTER:{var sa,Er=Ur[Kr];Er&&!(Er!=null&&(sa=Er.data)!==null&&sa!==void 0&&sa.disabled)&&!Xa?za(Er.value):za(void 0),cn&&Jn.preventDefault();break}case Je.Z.ESC:Tt(!1),cn&&Jn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Jn){pa(Jn)}}}),Ur.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(gt,"_list"),className:"".concat(Fa,"-empty"),onMouseDown:Ia},Mt);var Di=Object.keys(Cr).map(function(Ar){return Cr[Ar]}),mi=function(Jn){return Jn.label};function Wi(Ar,Jn){var xr=Ar.group;return{role:xr?"presentation":"option",id:"".concat(gt,"_list_").concat(Jn)}}var Ei=function(Jn){var xr=Ur[Jn];if(!xr)return null;var Sr=xr.data||{},tr=Sr.value,$r=xr.group,sa=(0,bt.Z)(Sr,!0),Er=mi(xr);return xr?fe.createElement("div",(0,y.Z)({"aria-label":typeof Er=="string"&&!$r?Er:null},sa,{key:Jn},Wi(xr,Jn),{"aria-selected":ji(tr)}),tr):null},ei={role:"listbox",id:"".concat(gt,"_list")};return fe.createElement(fe.Fragment,null,Rr&&fe.createElement("div",(0,y.Z)({},ei,{style:{height:0,width:0,overflow:"hidden"}}),Ei(Kr-1),Ei(Kr),Ei(Kr+1)),fe.createElement(lt.Z,{itemKey:"key",ref:ya,data:Ur,height:oa,itemHeight:ta,fullHeight:!1,onMouseDown:Ia,onScroll:Kt,virtual:Rr,direction:Xr,innerProps:Rr?null:ei},function(Ar,Jn){var xr=Ar.group,Sr=Ar.groupOption,tr=Ar.data,$r=Ar.label,sa=Ar.value,Er=tr.key;if(xr){var Dr,jr=(Dr=tr.title)!==null&&Dr!==void 0?Dr:Pt($r)?$r.toString():void 0;return fe.createElement("div",{className:Te()(Fa,"".concat(Fa,"-group"),tr.className),title:jr},$r!==void 0?$r:Er)}var Qr=tr.disabled,Na=tr.title,$a=tr.children,ea=tr.style,ai=tr.className,gi=(0,Ee.Z)(tr,en),zi=(0,yn.Z)(gi,Di),Ui=kr(sa),Ji=Qr||!Ui&&Xa,Yi="".concat(Fa,"-option"),co=Te()(Fa,Yi,ai,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Yi,"-grouped"),Sr),"".concat(Yi,"-active"),Kr===Jn&&!Ji),"".concat(Yi,"-disabled"),Ji),"".concat(Yi,"-selected"),Ui)),No=mi(Ar),$o=!Tr||typeof Tr=="function"||Ui,Wo=typeof No=="number"?No:No||sa,Ba=Pt(Wo)?Wo.toString():void 0;return Na!==void 0&&(Ba=Na),fe.createElement("div",(0,y.Z)({},(0,bt.Z)(zi),Rr?{}:Wi(Ar,Jn),{"aria-selected":ji(sa),className:co,title:Ba,onMouseMove:function(){Kr===Jn||Ji||Mi(Jn)},onClick:function(){Ji||za(sa)},style:ea}),fe.createElement("div",{className:"".concat(Yi,"-content")},typeof xa=="function"?xa(Ar,{index:Jn}):Wo),fe.isValidElement(Tr)||Ui,$o&&fe.createElement(Pe,{className:"".concat(Fa,"-option-state"),customizeIcon:Tr,customizeIconProps:{value:sa,disabled:Ji,isSelected:Ui}},Ui?"\u2713":null))}))},Gt=fe.forwardRef(Yt),Sn=Gt,jn=function(kt,Ut){var pt=fe.useRef({values:new Map,options:new Map}),Zt=fe.useMemo(function(){var gt=pt.current,cn=gt.values,ar=gt.options,mr=kt.map(function(Mt){if(Mt.label===void 0){var Kt;return(0,_e.Z)((0,_e.Z)({},Mt),{},{label:(Kt=cn.get(Mt.value))===null||Kt===void 0?void 0:Kt.label})}return Mt}),At=new Map,Tt=new Map;return mr.forEach(function(Mt){At.set(Mt.value,Mt),Tt.set(Mt.value,Ut.get(Mt.value)||ar.get(Mt.value))}),pt.current.values=At,pt.current.options=Tt,mr},[kt,Ut]),at=fe.useCallback(function(gt){return Ut.get(gt)||pt.current.options.get(gt)},[Ut]);return[Zt,at]};function Dn(kt,Ut){return Ye(kt).join("").toUpperCase().includes(Ut)}var Zn=function(kt,Ut,pt,Zt,at){return fe.useMemo(function(){if(!pt||Zt===!1)return kt;var gt=Ut.options,cn=Ut.label,ar=Ut.value,mr=[],At=typeof Zt=="function",Tt=pt.toUpperCase(),Mt=At?Zt:function(On,Kn){return at?Dn(Kn[at],Tt):Kn[gt]?Dn(Kn[cn!=="children"?cn:"label"],Tt):Dn(Kn[ar],Tt)},Kt=At?function(On){return yt(On)}:function(On){return On};return kt.forEach(function(On){if(On[gt]){var Kn=Mt(pt,Kt(On));if(Kn)mr.push(On);else{var Un=On[gt].filter(function(Hn){return Mt(pt,Kt(Hn))});Un.length&&mr.push((0,_e.Z)((0,_e.Z)({},On),{},(0,ce.Z)({},gt,Un)))}return}Mt(pt,Kt(On))&&mr.push(On)}),mr},[kt,Zt,at,pt,Ut])},Ot=E(6551),Wt=E(11592),ln=["children","value"],bn=["children"];function tn(kt){var Ut=kt,pt=Ut.key,Zt=Ut.props,at=Zt.children,gt=Zt.value,cn=(0,Ee.Z)(Zt,ln);return(0,_e.Z)({key:pt,value:gt!==void 0?gt:pt,children:at},cn)}function wn(kt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Wt.Z)(kt).map(function(pt,Zt){if(!fe.isValidElement(pt)||!pt.type)return null;var at=pt,gt=at.type.isSelectOptGroup,cn=at.key,ar=at.props,mr=ar.children,At=(0,Ee.Z)(ar,bn);return Ut||!gt?tn(pt):(0,_e.Z)((0,_e.Z)({key:"__RC_SELECT_GRP__".concat(cn===null?Zt:cn,"__"),label:cn},At),{},{options:wn(mr)})}).filter(function(pt){return pt})}var Cn=function(Ut,pt,Zt,at,gt){return fe.useMemo(function(){var cn=Ut,ar=!Ut;ar&&(cn=wn(pt));var mr=new Map,At=new Map,Tt=function(On,Kn,Un){Un&&typeof Un=="string"&&On.set(Kn[Un],Kn)},Mt=function Kt(On){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Un=0;Un<On.length;Un+=1){var Hn=On[Un];!Hn[Zt.options]||Kn?(mr.set(Hn[Zt.value],Hn),Tt(At,Hn,Zt.label),Tt(At,Hn,at),Tt(At,Hn,gt)):Kt(Hn[Zt.options],!0)}};return Mt(cn),{options:cn,valueOptions:mr,labelOptions:At}},[Ut,pt,Zt,at,gt])},Pn=Cn;function vr(kt){var Ut=fe.useRef();Ut.current=kt;var pt=fe.useCallback(function(){return Ut.current.apply(Ut,arguments)},[]);return pt}function Qn(kt){var Ut=kt.mode,pt=kt.options,Zt=kt.children,at=kt.backfill,gt=kt.allowClear,cn=kt.placeholder,ar=kt.getInputElement,mr=kt.showSearch,At=kt.onSearch,Tt=kt.defaultOpen,Mt=kt.autoFocus,Kt=kt.labelInValue,On=kt.value,Kn=kt.inputValue,Un=kt.optionLabelProp,Hn=isMultiple(Ut),hr=mr!==void 0?mr:Hn||Ut==="combobox",Pr=pt||convertChildrenToData(Zt);if(warning(Ut!=="tags"||Pr.every(function(Rr){return!Rr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ut==="tags"||Ut==="combobox"){var Tr=Pr.some(function(Rr){return Rr.options?Rr.options.some(function(Xr){return typeof("value"in Xr?Xr.value:Xr.key)=="number"}):typeof("value"in Rr?Rr.value:Rr.key)=="number"});warning(!Tr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ut!=="combobox"||!Un,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ut==="combobox"||!at,"`backfill` only works with `combobox` mode."),warning(Ut==="combobox"||!ar,"`getInputElement` only work with `combobox` mode."),noteOnce(Ut!=="combobox"||!ar||!gt||!cn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),At&&!hr&&Ut!=="combobox"&&Ut!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Tt||Mt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),On!=null){var Lr=toArray(On);warning(!Kt||Lr.every(function(Rr){return _typeof(Rr)==="object"&&("key"in Rr||"value"in Rr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Hn||Array.isArray(On),"`value` should be array when `mode` is `multiple` or `tags`")}if(Zt){var Cr=null;toNodeArray(Zt).some(function(Rr){if(!React.isValidElement(Rr)||!Rr.type)return!1;var Xr=Rr,oa=Xr.type;if(oa.isSelectOption)return!1;if(oa.isSelectOptGroup){var ta=toNodeArray(Rr.props.children).every(function(xa){return!React.isValidElement(xa)||!Rr.type||xa.type.isSelectOption?!0:(Cr=xa.type,!1)});return!ta}return Cr=oa,!0}),Cr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Cr.displayName||Cr.name||Cr,"`.")),warning(Kn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function dr(kt,Ut){if(kt){var pt=function Zt(at){for(var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn=0;cn<at.length;cn++){var ar=at[cn];if(ar[Ut==null?void 0:Ut.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!gt&&Array.isArray(ar[Ut==null?void 0:Ut.options])&&Zt(ar[Ut==null?void 0:Ut.options],!0))break}};pt(kt)}}var br=null,yr=["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"],Vr=["inputValue"];function Zr(kt){return!kt||(0,Ce.Z)(kt)!=="object"}var An=fe.forwardRef(function(kt,Ut){var pt=kt.id,Zt=kt.mode,at=kt.prefixCls,gt=at===void 0?"rc-select":at,cn=kt.backfill,ar=kt.fieldNames,mr=kt.inputValue,At=kt.searchValue,Tt=kt.onSearch,Mt=kt.autoClearSearchValue,Kt=Mt===void 0?!0:Mt,On=kt.onSelect,Kn=kt.onDeselect,Un=kt.dropdownMatchSelectWidth,Hn=Un===void 0?!0:Un,hr=kt.filterOption,Pr=kt.filterSort,Tr=kt.optionFilterProp,Lr=kt.optionLabelProp,Cr=kt.options,Rr=kt.optionRender,Xr=kt.children,oa=kt.defaultActiveFirstOption,ta=kt.menuItemSelectedIcon,xa=kt.virtual,Fa=kt.direction,Ur=kt.listHeight,ya=Ur===void 0?200:Ur,Xa=kt.listItemHeight,Ia=Xa===void 0?20:Xa,pa=kt.labelRender,kr=kt.value,Za=kt.defaultValue,Sa=kt.labelInValue,la=kt.onChange,Kr=kt.maxCount,Ya=(0,Ee.Z)(kt,yr),Mi=(0,Ot.ZP)(pt),ji=Fn(Zt),za=!!(!Cr&&Xr),Di=fe.useMemo(function(){return hr===void 0&&Zt==="combobox"?!1:hr},[hr,Zt]),mi=fe.useMemo(function(){return Xe(ar,za)},[JSON.stringify(ar),za]),Wi=(0,ke.Z)("",{value:At!==void 0?At:mr,postState:function(Qi){return Qi||""}}),Ei=(0,Se.Z)(Wi,2),ei=Ei[0],Ar=Ei[1],Jn=Pn(Cr,Xr,mi,Tr,Lr),xr=Jn.valueOptions,Sr=Jn.labelOptions,tr=Jn.options,$r=fe.useCallback(function(Ni){var Qi=Ye(Ni);return Qi.map(function(Pi){var pi,Hi,uo,Il,oo;if(Zr(Pi))pi=Pi;else{var Qo;uo=Pi.key,Hi=Pi.label,pi=(Qo=Pi.value)!==null&&Qo!==void 0?Qo:uo}var Jo=xr.get(pi);if(Jo){var hn;if(Hi===void 0&&(Hi=Jo==null?void 0:Jo[Lr||mi.label]),uo===void 0&&(uo=(hn=Jo==null?void 0:Jo.key)!==null&&hn!==void 0?hn:pi),Il=Jo==null?void 0:Jo.disabled,oo=Jo==null?void 0:Jo.title,0)var vn}return{label:Hi,value:pi,key:uo,disabled:Il,title:oo}})},[mi,Lr,xr]),sa=(0,ke.Z)(Za,{value:kr}),Er=(0,Se.Z)(sa,2),Dr=Er[0],jr=Er[1],Qr=fe.useMemo(function(){var Ni,Qi=ji&&Dr===null?[]:Dr,Pi=$r(Qi);return Zt==="combobox"&&ye((Ni=Pi[0])===null||Ni===void 0?void 0:Ni.value)?[]:Pi},[Dr,$r,Zt,ji]),Na=jn(Qr,xr),$a=(0,Se.Z)(Na,2),ea=$a[0],ai=$a[1],gi=fe.useMemo(function(){if(!Zt&&ea.length===1){var Ni=ea[0];if(Ni.value===null&&(Ni.label===null||Ni.label===void 0))return[]}return ea.map(function(Qi){var Pi;return(0,_e.Z)((0,_e.Z)({},Qi),{},{label:(Pi=typeof pa=="function"?pa(Qi):Qi.label)!==null&&Pi!==void 0?Pi:Qi.value})})},[Zt,ea,pa]),zi=fe.useMemo(function(){return new Set(ea.map(function(Ni){return Ni.value}))},[ea]);fe.useEffect(function(){if(Zt==="combobox"){var Ni,Qi=(Ni=ea[0])===null||Ni===void 0?void 0:Ni.value;Ar(Ie(Qi)?String(Qi):"")}},[ea]);var Ui=vr(function(Ni,Qi){var Pi=Qi!=null?Qi:Ni;return(0,ce.Z)((0,ce.Z)({},mi.value,Ni),mi.label,Pi)}),Ji=fe.useMemo(function(){if(Zt!=="tags")return tr;var Ni=(0,ge.Z)(tr),Qi=function(pi){return xr.has(pi)};return(0,ge.Z)(ea).sort(function(Pi,pi){return Pi.value<pi.value?-1:1}).forEach(function(Pi){var pi=Pi.value;Qi(pi)||Ni.push(Ui(pi,Pi.label))}),Ni},[Ui,tr,xr,ea,Zt]),Yi=Zn(Ji,mi,ei,Di,Tr),co=fe.useMemo(function(){return Zt!=="tags"||!ei||Yi.some(function(Ni){return Ni[Tr||"value"]===ei})||Yi.some(function(Ni){return Ni[mi.value]===ei})?Yi:[Ui(ei)].concat((0,ge.Z)(Yi))},[Ui,Tr,Zt,Yi,ei,mi]),No=function Ni(Qi){var Pi=(0,ge.Z)(Qi).sort(function(pi,Hi){return Pr(pi,Hi,{searchValue:ei})});return Pi.map(function(pi){return Array.isArray(pi.options)?(0,_e.Z)((0,_e.Z)({},pi),{},{options:pi.options.length>0?Ni(pi.options):pi.options}):pi})},$o=fe.useMemo(function(){return Pr?No(co):co},[co,Pr,ei]),Wo=fe.useMemo(function(){return Ke($o,{fieldNames:mi,childrenAsData:za})},[$o,mi,za]),Ba=function(Qi){var Pi=$r(Qi);if(jr(Pi),la&&(Pi.length!==ea.length||Pi.some(function(uo,Il){var oo;return((oo=ea[Il])===null||oo===void 0?void 0:oo.value)!==(uo==null?void 0:uo.value)}))){var pi=Sa?Pi:Pi.map(function(uo){return uo.value}),Hi=Pi.map(function(uo){return yt(ai(uo.value))});la(ji?pi:pi[0],ji?Hi:Hi[0])}},Ii=fe.useState(null),ri=(0,Se.Z)(Ii,2),So=ri[0],ci=ri[1],il=fe.useState(0),$l=(0,Se.Z)(il,2),Ol=$l[0],Vo=$l[1],Yo=oa!==void 0?oa:Zt!=="combobox",no=fe.useCallback(function(Ni,Qi){var Pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pi=Pi.source,Hi=pi===void 0?"keyboard":pi;Vo(Qi),cn&&Zt==="combobox"&&Ni!==null&&Hi==="keyboard"&&ci(String(Ni))},[cn,Zt]),Nl=function(Qi,Pi,pi){var Hi=function(){var Or,rr=ai(Qi);return[Sa?{label:rr==null?void 0:rr[mi.label],value:Qi,key:(Or=rr==null?void 0:rr.key)!==null&&Or!==void 0?Or:Qi}:Qi,yt(rr)]};if(Pi&&On){var uo=Hi(),Il=(0,Se.Z)(uo,2),oo=Il[0],Qo=Il[1];On(oo,Qo)}else if(!Pi&&Kn&&pi!=="clear"){var Jo=Hi(),hn=(0,Se.Z)(Jo,2),vn=hn[0],Tn=hn[1];Kn(vn,Tn)}},Ul=vr(function(Ni,Qi){var Pi,pi=ji?Qi.selected:!0;pi?Pi=ji?[].concat((0,ge.Z)(ea),[Ni]):[Ni]:Pi=ea.filter(function(Hi){return Hi.value!==Ni}),Ba(Pi),Nl(Ni,pi),Zt==="combobox"?ci(""):(!Fn||Kt)&&(Ar(""),ci(""))}),_l=function(Qi,Pi){Ba(Qi);var pi=Pi.type,Hi=Pi.values;(pi==="remove"||pi==="clear")&&Hi.forEach(function(uo){Nl(uo.value,!1,pi)})},Io=function(Qi,Pi){if(Ar(Qi),ci(null),Pi.source==="submit"){var pi=(Qi||"").trim();if(pi){var Hi=Array.from(new Set([].concat((0,ge.Z)(zi),[pi])));Ba(Hi),Nl(pi,!0),Ar("")}return}Pi.source!=="blur"&&(Zt==="combobox"&&Ba(Qi),Tt==null||Tt(Qi))},es=function(Qi){var Pi=Qi;Zt!=="tags"&&(Pi=Qi.map(function(Hi){var uo=Sr.get(Hi);return uo==null?void 0:uo.value}).filter(function(Hi){return Hi!==void 0}));var pi=Array.from(new Set([].concat((0,ge.Z)(zi),(0,ge.Z)(Pi))));Ba(pi),pi.forEach(function(Hi){Nl(Hi,!0)})},as=fe.useMemo(function(){var Ni=xa!==!1&&Hn!==!1;return(0,_e.Z)((0,_e.Z)({},Jn),{},{flattenOptions:Wo,onActiveValue:no,defaultActiveFirstOption:Yo,onSelect:Ul,menuItemSelectedIcon:ta,rawValues:zi,fieldNames:mi,virtual:Ni,direction:Fa,listHeight:ya,listItemHeight:Ia,childrenAsData:za,maxCount:Kr,optionRender:Rr})},[Kr,Jn,Wo,no,Yo,Ul,ta,zi,mi,xa,Hn,Fa,ya,Ia,za,Rr]);return fe.createElement(Qe.Provider,{value:as},fe.createElement(Lt,(0,y.Z)({},Ya,{id:Mi,prefixCls:gt,ref:Ut,omitDomProps:Vr,mode:Zt,displayValues:gi,onDisplayValuesChange:_l,direction:Fa,searchValue:ei,onSearch:Io,autoClearSearchValue:Kt,onSearchSplit:es,dropdownMatchSelectWidth:Hn,OptionList:Sn,emptyOptions:!Wo.length,activeValue:So,activeDescendantId:"".concat(Mi,"_list_").concat(Ol)})))}),$n=An;$n.Option=Nt,$n.OptGroup=jt;var fr=$n,ur=fr},22711:function(Rn,qt,E){"use strict";E.r(qt),E.d(qt,{ResizableTextArea:function(){return pe},default:function(){return Ct}});var y=E(60499),ge=E(18642),ce=E(85899),_e=E(77654),Se=E(72190),Ee=E(42244),Ce=E(92310),ke=E.n(Ce),De=E(36901),fe=E(66003),We=E(30292),Te=E(18929),dt=E(59301),Ge=E(43749),Ne=E(29301),we=E(34280),Pe=E(16089),Fe=`
|
|
|
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;
|
|
|
`,et=["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 Oe(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 Ie=window.getComputedStyle(Ye),ye=Ie.getPropertyValue("box-sizing")||Ie.getPropertyValue("-moz-box-sizing")||Ie.getPropertyValue("-webkit-box-sizing"),vt=parseFloat(Ie.getPropertyValue("padding-bottom"))+parseFloat(Ie.getPropertyValue("padding-top")),Ht=parseFloat(Ie.getPropertyValue("border-bottom-width"))+parseFloat(Ie.getPropertyValue("border-top-width")),Et=et.map(function(ft){return"".concat(ft,":").concat(Ie.getPropertyValue(ft))}).join(";"),Be={sizingStyle:Et,paddingSize:vt,borderSize:Ht,boxSizing:ye};return je&&it&&(St[it]=Be),Be}function qe(Ye){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ie=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=Oe(Ye,je),vt=ye.paddingSize,Ht=ye.borderSize,Et=ye.boxSizing,Be=ye.sizingStyle;Ae.setAttribute("style","".concat(Be,";").concat(Fe)),Ae.value=Ye.value||Ye.placeholder||"";var ft=void 0,ot=void 0,Xt,xt=Ae.scrollHeight;if(Et==="border-box"?xt+=Ht:Et==="content-box"&&(xt-=vt),it!==null||Ie!==null){Ae.value=" ";var wt=Ae.scrollHeight-vt;it!==null&&(ft=wt*it,Et==="border-box"&&(ft=ft+vt+Ht),xt=Math.max(ft,xt)),Ie!==null&&(ot=wt*Ie,Et==="border-box"&&(ot=ot+vt+Ht),Xt=xt>ot?"":"hidden",xt=Math.min(ot,xt))}var ht={height:xt,overflowY:Xt,resize:"none"};return ft&&(ht.minHeight=ft),ot&&(ht.maxHeight=ot),ht}var Je=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ct=0,bt=1,st=2,$e=dt.forwardRef(function(Ye,je){var it=Ye,Ie=it.prefixCls,ye=it.defaultValue,vt=it.value,Ht=it.autoSize,Et=it.onResize,Be=it.className,ft=it.style,ot=it.disabled,Xt=it.onChange,xt=it.onInternalAutoSize,wt=(0,Ee.Z)(it,Je),ht=(0,Te.Z)(ye,{value:vt,postState:function(Nt){return Nt!=null?Nt:""}}),un=(0,Se.Z)(ht,2),zt=un[0],ue=un[1],ae=function(Nt){ue(Nt.target.value),Xt==null||Xt(Nt)},re=dt.useRef();dt.useImperativeHandle(je,function(){return{textArea:re.current}});var se=dt.useMemo(function(){return Ht&&(0,Ge.Z)(Ht)==="object"?[Ht.minRows,Ht.maxRows]:[]},[Ht]),he=(0,Se.Z)(se,2),ie=he[0],me=he[1],He=!!Ht,It=function(){try{if(document.activeElement===re.current){var Nt=re.current,fn=Nt.selectionStart,yn=Nt.selectionEnd,lt=Nt.scrollTop;re.current.setSelectionRange(fn,yn),re.current.scrollTop=lt}}catch(Rt){}},Xe=dt.useState(st),Ke=(0,Se.Z)(Xe,2),yt=Ke[0],Bt=Ke[1],_t=dt.useState(),Qe=(0,Se.Z)(_t,2),tt=Qe[0],Vt=Qe[1],on=function(){Bt(ct)};(0,we.Z)(function(){He&&on()},[vt,ie,me,He]),(0,we.Z)(function(){if(yt===ct)Bt(bt);else if(yt===bt){var rt=qe(re.current,!1,ie,me);Bt(st),Vt(rt)}else It()},[yt]);var Fn=dt.useRef(),gn=function(){Pe.Z.cancel(Fn.current)},Lt=function(Nt){yt===st&&(Et==null||Et(Nt),Ht&&(gn(),Fn.current=(0,Pe.Z)(function(){on()})))};dt.useEffect(function(){return gn},[]);var Qt=He?tt:null,jt=(0,ce.Z)((0,ce.Z)({},ft),Qt);return(yt===ct||yt===bt)&&(jt.overflowY="hidden",jt.overflowX="hidden"),dt.createElement(Ne.Z,{onResize:Lt,disabled:!(Ht||Et)},dt.createElement("textarea",(0,y.Z)({},wt,{ref:re,style:jt,className:ke()(Ie,Be,(0,ge.Z)({},"".concat(Ie,"-disabled"),ot)),disabled:ot,value:zt,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=dt.forwardRef(function(Ye,je){var it,Ie=Ye.defaultValue,ye=Ye.value,vt=Ye.onFocus,Ht=Ye.onBlur,Et=Ye.onChange,Be=Ye.allowClear,ft=Ye.maxLength,ot=Ye.onCompositionStart,Xt=Ye.onCompositionEnd,xt=Ye.suffix,wt=Ye.prefixCls,ht=wt===void 0?"rc-textarea":wt,un=Ye.showCount,zt=Ye.count,ue=Ye.className,ae=Ye.style,re=Ye.disabled,se=Ye.hidden,he=Ye.classNames,ie=Ye.styles,me=Ye.onResize,He=Ye.onClear,It=Ye.onPressEnter,Xe=Ye.readOnly,Ke=Ye.autoSize,yt=Ye.onKeyDown,Bt=(0,Ee.Z)(Ye,Le),_t=(0,Te.Z)(Ie,{value:ye,defaultValue:Ie}),Qe=(0,Se.Z)(_t,2),tt=Qe[0],Vt=Qe[1],on=tt==null?"":String(tt),Fn=dt.useState(!1),gn=(0,Se.Z)(Fn,2),Lt=gn[0],Qt=gn[1],jt=dt.useRef(!1),rt=dt.useState(null),Nt=(0,Se.Z)(rt,2),fn=Nt[0],yn=Nt[1],lt=(0,dt.useRef)(null),Rt=(0,dt.useRef)(null),en=function(){var $n;return($n=Rt.current)===null||$n===void 0?void 0:$n.textArea},Pt=function(){en().focus()};(0,dt.useImperativeHandle)(je,function(){var An;return{resizableTextArea:Rt.current,focus:Pt,blur:function(){en().blur()},nativeElement:((An=lt.current)===null||An===void 0?void 0:An.nativeElement)||en()}}),(0,dt.useEffect)(function(){Qt(function(An){return!re&&An})},[re]);var Yt=dt.useState(null),Gt=(0,Se.Z)(Yt,2),Sn=Gt[0],jn=Gt[1];dt.useEffect(function(){if(Sn){var An;(An=en()).setSelectionRange.apply(An,(0,_e.Z)(Sn))}},[Sn]);var Dn=(0,fe.Z)(zt,un),Zn=(it=Dn.max)!==null&&it!==void 0?it:ft,Ot=Number(Zn)>0,Wt=Dn.strategy(on),ln=!!Zn&&Wt>Zn,bn=function($n,fr){var ur=fr;!jt.current&&Dn.exceedFormatter&&Dn.max&&Dn.strategy(fr)>Dn.max&&(ur=Dn.exceedFormatter(fr,{max:Dn.max}),fr!==ur&&jn([en().selectionStart||0,en().selectionEnd||0])),Vt(ur),(0,We.rJ)($n.currentTarget,$n,Et,ur)},tn=function($n){jt.current=!0,ot==null||ot($n)},wn=function($n){jt.current=!1,bn($n,$n.currentTarget.value),Xt==null||Xt($n)},Cn=function($n){bn($n,$n.target.value)},Pn=function($n){$n.key==="Enter"&&It&&It($n),yt==null||yt($n)},vr=function($n){Qt(!0),vt==null||vt($n)},Qn=function($n){Qt(!1),Ht==null||Ht($n)},dr=function($n){Vt(""),Pt(),(0,We.rJ)(en(),$n,Et)},br=xt,yr;Dn.show&&(Dn.showFormatter?yr=Dn.showFormatter({value:on,count:Wt,maxLength:Zn}):yr="".concat(Wt).concat(Ot?" / ".concat(Zn):""),br=dt.createElement(dt.Fragment,null,br,dt.createElement("span",{className:ke()("".concat(ht,"-data-count"),he==null?void 0:he.count),style:ie==null?void 0:ie.count},yr)));var Vr=function($n){var fr;me==null||me($n),(fr=en())!==null&&fr!==void 0&&fr.style.height&&yn(!0)},Zr=!Ke&&!un&&!Be;return dt.createElement(De.BaseInput,{ref:lt,value:on,allowClear:Be,handleReset:dr,suffix:br,prefixCls:ht,classNames:(0,ce.Z)((0,ce.Z)({},he),{},{affixWrapper:ke()(he==null?void 0:he.affixWrapper,(0,ge.Z)((0,ge.Z)({},"".concat(ht,"-show-count"),un),"".concat(ht,"-textarea-allow-clear"),Be))}),disabled:re,focused:Lt,className:ke()(ue,ln&&"".concat(ht,"-out-of-range")),style:(0,ce.Z)((0,ce.Z)({},ae),fn&&!Zr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof yr=="string"?yr:void 0}},hidden:se,readOnly:Xe,onClear:He},dt.createElement(pe,(0,y.Z)({},Bt,{autoSize:Ke,maxLength:ft,onKeyDown:Pn,onChange:Cn,onFocus:vr,onBlur:Qn,onCompositionStart:tn,onCompositionEnd:wn,className:ke()(he==null?void 0:he.textarea),style:(0,ce.Z)((0,ce.Z)({},ie==null?void 0:ie.textarea),{},{resize:ae==null?void 0:ae.resize}),disabled:re,prefixCls:ht,onResize:Vr,ref:Rt,readOnly:Xe})))}),de=xe,Ct=de},639:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return St}});var y=E(60499),ge=E(18642),ce=E(85899),_e=E(72190),Se=E(42244),Ee=E(59301),Ce=E(92310),ke=E.n(Ce),De=E(26112),fe=E(30699),We=function(Oe){for(var qe=Oe.prefixCls,Je=Oe.level,ct=Oe.isStart,bt=Oe.isEnd,st="".concat(qe,"-indent-unit"),$e=[],pe=0;pe<Je;pe+=1)$e.push(Ee.createElement("span",{key:pe,className:ke()(st,(0,ge.Z)((0,ge.Z)({},"".concat(st,"-start"),ct[pe]),"".concat(st,"-end"),bt[pe]))}));return Ee.createElement("span",{"aria-hidden":"true",className:"".concat(qe,"-indent")},$e)},Te=Ee.memo(We),dt=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"],we="open",Pe="close",Fe="---",et=function(Oe){var qe,Je,ct,bt=Oe.eventKey,st=Oe.className,$e=Oe.style,pe=Oe.dragOver,Le=Oe.dragOverGapTop,xe=Oe.dragOverGapBottom,de=Oe.isLeaf,Ct=Oe.isStart,Ye=Oe.isEnd,je=Oe.expanded,it=Oe.selected,Ie=Oe.checked,ye=Oe.halfChecked,vt=Oe.loading,Ht=Oe.domRef,Et=Oe.active,Be=Oe.data,ft=Oe.onMouseMove,ot=Oe.selectable,Xt=(0,Se.Z)(Oe,Ne),xt=Ee.useContext(fe.k),wt=Ee.useContext(fe.y),ht=Ee.useRef(null),un=Ee.useState(!1),zt=(0,_e.Z)(un,2),ue=zt[0],ae=zt[1],re=!!(xt.disabled||Oe.disabled||(qe=wt.nodeDisabled)!==null&&qe!==void 0&&qe.call(wt,Be)),se=Ee.useMemo(function(){return!xt.checkable||Oe.checkable===!1?!1:xt.checkable},[xt.checkable,Oe.checkable]),he=function(Wt){re||xt.onNodeSelect(Wt,(0,Ge.F)(Oe))},ie=function(Wt){re||!se||Oe.disableCheckbox||xt.onNodeCheck(Wt,(0,Ge.F)(Oe),!Ie)},me=Ee.useMemo(function(){return typeof ot=="boolean"?ot:xt.selectable},[ot,xt.selectable]),He=function(Wt){xt.onNodeClick(Wt,(0,Ge.F)(Oe)),me?he(Wt):ie(Wt)},It=function(Wt){xt.onNodeDoubleClick(Wt,(0,Ge.F)(Oe))},Xe=function(Wt){xt.onNodeMouseEnter(Wt,(0,Ge.F)(Oe))},Ke=function(Wt){xt.onNodeMouseLeave(Wt,(0,Ge.F)(Oe))},yt=function(Wt){xt.onNodeContextMenu(Wt,(0,Ge.F)(Oe))},Bt=Ee.useMemo(function(){return!!(xt.draggable&&(!xt.draggable.nodeDraggable||xt.draggable.nodeDraggable(Be)))},[xt.draggable,Be]),_t=function(Wt){Wt.stopPropagation(),ae(!0),xt.onNodeDragStart(Wt,Oe);try{Wt.dataTransfer.setData("text/plain","")}catch(ln){}},Qe=function(Wt){Wt.preventDefault(),Wt.stopPropagation(),xt.onNodeDragEnter(Wt,Oe)},tt=function(Wt){Wt.preventDefault(),Wt.stopPropagation(),xt.onNodeDragOver(Wt,Oe)},Vt=function(Wt){Wt.stopPropagation(),xt.onNodeDragLeave(Wt,Oe)},on=function(Wt){Wt.stopPropagation(),ae(!1),xt.onNodeDragEnd(Wt,Oe)},Fn=function(Wt){Wt.preventDefault(),Wt.stopPropagation(),ae(!1),xt.onNodeDrop(Wt,Oe)},gn=function(Wt){vt||xt.onNodeExpand(Wt,(0,Ge.F)(Oe))},Lt=Ee.useMemo(function(){var Ot=(0,dt.Z)(xt.keyEntities,bt)||{},Wt=Ot.children;return!!(Wt||[]).length},[xt.keyEntities,bt]),Qt=Ee.useMemo(function(){return de===!1?!1:de||!xt.loadData&&!Lt||xt.loadData&&Oe.loaded&&!Lt},[de,xt.loadData,Lt,Oe.loaded]);Ee.useEffect(function(){vt||typeof xt.loadData=="function"&&je&&!Qt&&!Oe.loaded&&xt.onNodeLoad((0,Ge.F)(Oe))},[vt,xt.loadData,xt.onNodeLoad,je,Qt,Oe]);var jt=Ee.useMemo(function(){var Ot;return(Ot=xt.draggable)!==null&&Ot!==void 0&&Ot.icon?Ee.createElement("span",{className:"".concat(xt.prefixCls,"-draggable-icon")},xt.draggable.icon):null},[xt.draggable]),rt=function(Wt){var ln=Oe.switcherIcon||xt.switcherIcon;return typeof ln=="function"?ln((0,ce.Z)((0,ce.Z)({},Oe),{},{isLeaf:Wt})):ln},Nt=function(){if(Qt){var Wt=rt(!0);return Wt!==!1?Ee.createElement("span",{className:ke()("".concat(xt.prefixCls,"-switcher"),"".concat(xt.prefixCls,"-switcher-noop"))},Wt):null}var ln=rt(!1);return ln!==!1?Ee.createElement("span",{onClick:gn,className:ke()("".concat(xt.prefixCls,"-switcher"),"".concat(xt.prefixCls,"-switcher_").concat(je?we:Pe))},ln):null},fn=Ee.useMemo(function(){if(!se)return null;var Ot=typeof se!="boolean"?se:null;return Ee.createElement("span",{className:ke()("".concat(xt.prefixCls,"-checkbox"),(0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(xt.prefixCls,"-checkbox-checked"),Ie),"".concat(xt.prefixCls,"-checkbox-indeterminate"),!Ie&&ye),"".concat(xt.prefixCls,"-checkbox-disabled"),re||Oe.disableCheckbox)),onClick:ie,role:"checkbox","aria-checked":ye?"mixed":Ie,"aria-disabled":re||Oe.disableCheckbox,"aria-label":"Select ".concat(typeof Oe.title=="string"?Oe.title:"tree node")},Ot)},[se,Ie,ye,re,Oe.disableCheckbox,Oe.title]),yn=Ee.useMemo(function(){return Qt?null:je?we:Pe},[Qt,je]),lt=Ee.useMemo(function(){return Ee.createElement("span",{className:ke()("".concat(xt.prefixCls,"-iconEle"),"".concat(xt.prefixCls,"-icon__").concat(yn||"docu"),(0,ge.Z)({},"".concat(xt.prefixCls,"-icon_loading"),vt))})},[xt.prefixCls,yn,vt]),Rt=Ee.useMemo(function(){var Ot=!!xt.draggable,Wt=!Oe.disabled&&Ot&&xt.dragOverNodeKey===bt;return Wt?xt.dropIndicatorRender({dropPosition:xt.dropPosition,dropLevelOffset:xt.dropLevelOffset,indent:xt.indent,prefixCls:xt.prefixCls,direction:xt.direction}):null},[xt.dropPosition,xt.dropLevelOffset,xt.indent,xt.prefixCls,xt.direction,xt.draggable,xt.dragOverNodeKey,xt.dropIndicatorRender]),en=Ee.useMemo(function(){var Ot=Oe.title,Wt=Ot===void 0?Fe:Ot,ln="".concat(xt.prefixCls,"-node-content-wrapper"),bn;if(xt.showIcon){var tn=Oe.icon||xt.icon;bn=tn?Ee.createElement("span",{className:ke()("".concat(xt.prefixCls,"-iconEle"),"".concat(xt.prefixCls,"-icon__customize"))},typeof tn=="function"?tn(Oe):tn):lt}else xt.loadData&&vt&&(bn=lt);var wn;return typeof Wt=="function"?wn=Wt(Be):xt.titleRender?wn=xt.titleRender(Be):wn=Wt,Ee.createElement("span",{ref:ht,title:typeof Wt=="string"?Wt:"",className:ke()(ln,"".concat(ln,"-").concat(yn||"normal"),(0,ge.Z)({},"".concat(xt.prefixCls,"-node-selected"),!re&&(it||ue))),onMouseEnter:Xe,onMouseLeave:Ke,onContextMenu:yt,onClick:He,onDoubleClick:It},bn,Ee.createElement("span",{className:"".concat(xt.prefixCls,"-title")},wn),Rt)},[xt.prefixCls,xt.showIcon,Oe,xt.icon,lt,xt.titleRender,Be,yn,Xe,Ke,yt,He,It]),Pt=(0,De.Z)(Xt,{aria:!0,data:!0}),Yt=(0,dt.Z)(xt.keyEntities,bt)||{},Gt=Yt.level,Sn=Ye[Ye.length-1],jn=!re&&Bt,Dn=xt.draggingNodeKey===bt,Zn=ot!==void 0?{"aria-selected":!!ot}:void 0;return Ee.createElement("div",(0,y.Z)({ref:Ht,role:"treeitem","aria-expanded":de?void 0:je,className:ke()(st,"".concat(xt.prefixCls,"-treenode"),(ct={},(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)(ct,"".concat(xt.prefixCls,"-treenode-disabled"),re),"".concat(xt.prefixCls,"-treenode-switcher-").concat(je?"open":"close"),!de),"".concat(xt.prefixCls,"-treenode-checkbox-checked"),Ie),"".concat(xt.prefixCls,"-treenode-checkbox-indeterminate"),ye),"".concat(xt.prefixCls,"-treenode-selected"),it),"".concat(xt.prefixCls,"-treenode-loading"),vt),"".concat(xt.prefixCls,"-treenode-active"),Et),"".concat(xt.prefixCls,"-treenode-leaf-last"),Sn),"".concat(xt.prefixCls,"-treenode-draggable"),Bt),"dragging",Dn),(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)(ct,"drop-target",xt.dropTargetKey===bt),"drop-container",xt.dropContainerKey===bt),"drag-over",!re&&pe),"drag-over-gap-top",!re&&Le),"drag-over-gap-bottom",!re&&xe),"filter-node",(Je=xt.filterTreeNode)===null||Je===void 0?void 0:Je.call(xt,(0,Ge.F)(Oe))),"".concat(xt.prefixCls,"-treenode-leaf"),Qt))),style:$e,draggable:jn,onDragStart:jn?_t:void 0,onDragEnter:Bt?Qe:void 0,onDragOver:Bt?tt:void 0,onDragLeave:Bt?Vt:void 0,onDrop:Bt?Fn:void 0,onDragEnd:Bt?on:void 0,onMouseMove:ft},Zn,Pt),Ee.createElement(Te,{prefixCls:xt.prefixCls,level:Gt,isStart:Ct,isEnd:Ye}),jt,Nt(),fn,en)};et.isTreeNode=1;var St=et},30699:function(Rn,qt,E){"use strict";E.d(qt,{k:function(){return ge},y:function(){return ce}});var y=E(59301),ge=y.createContext(null),ce=y.createContext({})},87632:function(Rn,qt,E){"use strict";E.d(qt,{OF:function(){return bt.Z},y6:function(){return Pe.y},ZP:function(){return re}});var y=E(60499),ge=E(43749),ce=E(85899),_e=E(77654),Se=E(38705),Ee=E(17212),Ce=E(15793),ke=E(39153),De=E(55401),fe=E(18642),We=E(92310),Te=E.n(We),dt=E(10228),Ge=E(26112),Ne=E(48736),we=E(59301),Pe=E(30699),Fe=function(he){var ie=he.dropPosition,me=he.dropLevelOffset,He=he.indent,It={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ie){case-1:It.top=0,It.left=-me*He;break;case 1:It.bottom=0,It.left=-me*He;break;case 0:It.bottom=0,It.left=He;break}return we.createElement("div",{style:It})},et=Fe;function St(se){if(se==null)throw new TypeError("Cannot destructure "+se)}var Ae=E(72190),Oe=E(42244),qe=E(34280),Je=E(48911),ct=E(77900),bt=E(639);function st(se,he){var ie=we.useState(!1),me=(0,Ae.Z)(ie,2),He=me[0],It=me[1];(0,qe.Z)(function(){if(He)return se(),function(){he()}},[He]),(0,qe.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=we.forwardRef(function(se,he){var ie=se.className,me=se.style,He=se.motion,It=se.motionNodes,Xe=se.motionType,Ke=se.onMotionStart,yt=se.onMotionEnd,Bt=se.active,_t=se.treeNodeRequiredProps,Qe=(0,Oe.Z)(se,Le),tt=we.useState(!0),Vt=(0,Ae.Z)(tt,2),on=Vt[0],Fn=Vt[1],gn=we.useContext(Pe.k),Lt=gn.prefixCls,Qt=It&&Xe!=="hide";(0,qe.Z)(function(){It&&Qt!==on&&Fn(Qt)},[It]);var jt=function(){It&&Ke()},rt=we.useRef(!1),Nt=function(){It&&!rt.current&&(rt.current=!0,yt())};$e(jt,Nt);var fn=function(lt){Qt===lt&&Nt()};return It?we.createElement(ct.default,(0,y.Z)({ref:he,visible:on},He,{motionAppear:Xe==="show",onVisibleChanged:fn}),function(yn,lt){var Rt=yn.className,en=yn.style;return we.createElement("div",{ref:lt,className:Te()("".concat(Lt,"-treenode-motion"),Rt),style:en},It.map(function(Pt){var Yt=Object.assign({},(St(Pt.data),Pt.data)),Gt=Pt.title,Sn=Pt.key,jn=Pt.isStart,Dn=Pt.isEnd;delete Yt.children;var Zn=(0,pe.H8)(Sn,_t);return we.createElement(bt.Z,(0,y.Z)({},Yt,Zn,{title:Gt,active:Bt,data:Pt.data,key:Sn,isStart:jn,isEnd:Dn}))}))}):we.createElement(bt.Z,(0,y.Z)({domRef:he,className:ie,style:me},Qe,{active:Bt}))}),de=xe;function Ct(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=se.length,me=he.length;if(Math.abs(ie-me)!==1)return{add:!1,key:null};function He(It,Xe){var Ke=new Map;It.forEach(function(Bt){Ke.set(Bt,!0)});var yt=Xe.filter(function(Bt){return!Ke.has(Bt)});return yt.length===1?yt[0]:null}return ie<me?{add:!0,key:He(se,he)}:{add:!1,key:He(he,se)}}function Ye(se,he,ie){var me=se.findIndex(function(Ke){return Ke.key===ie}),He=se[me+1],It=he.findIndex(function(Ke){return Ke.key===ie});if(He){var Xe=he.findIndex(function(Ke){return Ke.key===He.key});return he.slice(It+1,Xe)}return he.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},Ie=function(){},ye="RC_TREE_MOTION_".concat(Math.random()),vt={key:ye},Ht={key:ye,level:0,index:0,pos:"0",node:vt,nodes:[vt]},Et={parent:null,children:[],pos:Ht.pos,data:vt,title:null,key:ye,isStart:[],isEnd:[]};function Be(se,he,ie,me){return he===!1||!ie?se:se.slice(0,Math.ceil(ie/me)+1)}function ft(se){var he=se.key,ie=se.pos;return(0,pe.km)(he,ie)}function ot(se){for(var he=String(se.data.key),ie=se;ie.parent;)ie=ie.parent,he="".concat(ie.data.key," > ").concat(he);return he}var Xt=we.forwardRef(function(se,he){var ie=se.prefixCls,me=se.data,He=se.selectable,It=se.checkable,Xe=se.expandedKeys,Ke=se.selectedKeys,yt=se.checkedKeys,Bt=se.loadedKeys,_t=se.loadingKeys,Qe=se.halfCheckedKeys,tt=se.keyEntities,Vt=se.disabled,on=se.dragging,Fn=se.dragOverNodeKey,gn=se.dropPosition,Lt=se.motion,Qt=se.height,jt=se.itemHeight,rt=se.virtual,Nt=se.scrollWidth,fn=se.focusable,yn=se.activeItem,lt=se.focused,Rt=se.tabIndex,en=se.onKeyDown,Pt=se.onFocus,Yt=se.onBlur,Gt=se.onActiveChange,Sn=se.onListChangeStart,jn=se.onListChangeEnd,Dn=(0,Oe.Z)(se,je),Zn=we.useRef(null),Ot=we.useRef(null);we.useImperativeHandle(he,function(){return{scrollTo:function(ar){Zn.current.scrollTo(ar)},getIndentWidth:function(){return Ot.current.offsetWidth}}});var Wt=we.useState(Xe),ln=(0,Ae.Z)(Wt,2),bn=ln[0],tn=ln[1],wn=we.useState(me),Cn=(0,Ae.Z)(wn,2),Pn=Cn[0],vr=Cn[1],Qn=we.useState(me),dr=(0,Ae.Z)(Qn,2),br=dr[0],yr=dr[1],Vr=we.useState([]),Zr=(0,Ae.Z)(Vr,2),An=Zr[0],$n=Zr[1],fr=we.useState(null),ur=(0,Ae.Z)(fr,2),kt=ur[0],Ut=ur[1],pt=we.useRef(me);pt.current=me;function Zt(){var cn=pt.current;vr(cn),yr(cn),$n([]),Ut(null),jn()}(0,qe.Z)(function(){tn(Xe);var cn=Ct(bn,Xe);if(cn.key!==null)if(cn.add){var ar=Pn.findIndex(function(On){var Kn=On.key;return Kn===cn.key}),mr=Be(Ye(Pn,me,cn.key),rt,Qt,jt),At=Pn.slice();At.splice(ar+1,0,Et),yr(At),$n(mr),Ut("show")}else{var Tt=me.findIndex(function(On){var Kn=On.key;return Kn===cn.key}),Mt=Be(Ye(me,Pn,cn.key),rt,Qt,jt),Kt=me.slice();Kt.splice(Tt+1,0,Et),yr(Kt),$n(Mt),Ut("hide")}else Pn!==me&&(vr(me),yr(me))},[Xe,me]),we.useEffect(function(){on||Zt()},[on]);var at=Lt?br:me,gt={expandedKeys:Xe,selectedKeys:Ke,loadedKeys:Bt,loadingKeys:_t,checkedKeys:yt,halfCheckedKeys:Qe,dragOverNodeKey:Fn,dropPosition:gn,keyEntities:tt};return we.createElement(we.Fragment,null,lt&&yn&&we.createElement("span",{style:it,"aria-live":"assertive"},ot(yn)),we.createElement("div",null,we.createElement("input",{style:it,disabled:fn===!1||Vt,tabIndex:fn!==!1?Rt:null,onKeyDown:en,onFocus:Pt,onBlur:Yt,value:"",onChange:Ie,"aria-label":"for screen reader"})),we.createElement("div",{className:"".concat(ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},we.createElement("div",{className:"".concat(ie,"-indent")},we.createElement("div",{ref:Ot,className:"".concat(ie,"-indent-unit")}))),we.createElement(Je.Z,(0,y.Z)({},Dn,{data:at,itemKey:ft,height:Qt,fullHeight:!1,virtual:rt,itemHeight:jt,scrollWidth:Nt,prefixCls:"".concat(ie,"-list"),ref:Zn,role:"tree",onVisibleChange:function(ar){ar.every(function(mr){return ft(mr)!==ye})&&Zt()}}),function(cn){var ar=cn.pos,mr=Object.assign({},(St(cn.data),cn.data)),At=cn.title,Tt=cn.key,Mt=cn.isStart,Kt=cn.isEnd,On=(0,pe.km)(Tt,ar);delete mr.key,delete mr.children;var Kn=(0,pe.H8)(On,gt);return we.createElement(de,(0,y.Z)({},mr,Kn,{title:At,active:!!yn&&Tt===yn.key,pos:ar,data:cn.data,isStart:Mt,isEnd:Kt,motion:Lt,motionNodes:Tt===ye?An:null,motionType:kt,onMotionStart:Sn,onMotionEnd:Zt,treeNodeRequiredProps:gt,onMouseMove:function(){Gt(null)}}))}))}),xt=Xt,wt=E(82661),ht=E(34643),un=E(65065),zt=10,ue=function(se){(0,ke.Z)(ie,se);var he=(0,De.Z)(ie);function ie(){var me;(0,Se.Z)(this,ie);for(var He=arguments.length,It=new Array(He),Xe=0;Xe<He;Xe++)It[Xe]=arguments[Xe];return me=he.call.apply(he,[this].concat(It)),(0,fe.Z)((0,Ce.Z)(me),"destroyed",!1),(0,fe.Z)((0,Ce.Z)(me),"delayedDragEnterLogic",void 0),(0,fe.Z)((0,Ce.Z)(me),"loadingRetryTimes",{}),(0,fe.Z)((0,Ce.Z)(me),"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,fe.Z)((0,Ce.Z)(me),"dragStartMousePosition",null),(0,fe.Z)((0,Ce.Z)(me),"dragNodeProps",null),(0,fe.Z)((0,Ce.Z)(me),"currentMouseOverDroppableNodeKey",null),(0,fe.Z)((0,Ce.Z)(me),"listRef",we.createRef()),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragStart",function(Ke,yt){var Bt=me.state,_t=Bt.expandedKeys,Qe=Bt.keyEntities,tt=me.props.onDragStart,Vt=yt.eventKey;me.dragNodeProps=yt,me.dragStartMousePosition={x:Ke.clientX,y:Ke.clientY};var on=(0,wt._5)(_t,Vt);me.setState({draggingNodeKey:Vt,dragChildrenKeys:(0,wt.wA)(Vt,Qe),indent:me.listRef.current.getIndentWidth()}),me.setExpandedKeys(on),window.addEventListener("dragend",me.onWindowDragEnd),tt==null||tt({event:Ke,node:(0,pe.F)(yt)})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragEnter",function(Ke,yt){var Bt=me.state,_t=Bt.expandedKeys,Qe=Bt.keyEntities,tt=Bt.dragChildrenKeys,Vt=Bt.flattenNodes,on=Bt.indent,Fn=me.props,gn=Fn.onDragEnter,Lt=Fn.onExpand,Qt=Fn.allowDrop,jt=Fn.direction,rt=yt.pos,Nt=yt.eventKey;if(me.currentMouseOverDroppableNodeKey!==Nt&&(me.currentMouseOverDroppableNodeKey=Nt),!me.dragNodeProps){me.resetDragState();return}var fn=(0,wt.OM)(Ke,me.dragNodeProps,yt,on,me.dragStartMousePosition,Qt,Vt,Qe,_t,jt),yn=fn.dropPosition,lt=fn.dropLevelOffset,Rt=fn.dropTargetKey,en=fn.dropContainerKey,Pt=fn.dropTargetPos,Yt=fn.dropAllowed,Gt=fn.dragOverNodeKey;if(tt.includes(Rt)||!Yt){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(Sn){clearTimeout(me.delayedDragEnterLogic[Sn])}),me.dragNodeProps.eventKey!==yt.eventKey&&(Ke.persist(),me.delayedDragEnterLogic[rt]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var Sn=(0,_e.Z)(_t),jn=(0,un.Z)(Qe,yt.eventKey);jn&&(jn.children||[]).length&&(Sn=(0,wt.L0)(_t,yt.eventKey)),me.props.hasOwnProperty("expandedKeys")||me.setExpandedKeys(Sn),Lt==null||Lt(Sn,{node:(0,pe.F)(yt),expanded:!0,nativeEvent:Ke.nativeEvent})}},800)),me.dragNodeProps.eventKey===Rt&<===0){me.resetDragState();return}me.setState({dragOverNodeKey:Gt,dropPosition:yn,dropLevelOffset:lt,dropTargetKey:Rt,dropContainerKey:en,dropTargetPos:Pt,dropAllowed:Yt}),gn==null||gn({event:Ke,node:(0,pe.F)(yt),expandedKeys:_t})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragOver",function(Ke,yt){var Bt=me.state,_t=Bt.dragChildrenKeys,Qe=Bt.flattenNodes,tt=Bt.keyEntities,Vt=Bt.expandedKeys,on=Bt.indent,Fn=me.props,gn=Fn.onDragOver,Lt=Fn.allowDrop,Qt=Fn.direction;if(me.dragNodeProps){var jt=(0,wt.OM)(Ke,me.dragNodeProps,yt,on,me.dragStartMousePosition,Lt,Qe,tt,Vt,Qt),rt=jt.dropPosition,Nt=jt.dropLevelOffset,fn=jt.dropTargetKey,yn=jt.dropContainerKey,lt=jt.dropTargetPos,Rt=jt.dropAllowed,en=jt.dragOverNodeKey;_t.includes(fn)||!Rt||(me.dragNodeProps.eventKey===fn&&Nt===0?me.state.dropPosition===null&&me.state.dropLevelOffset===null&&me.state.dropTargetKey===null&&me.state.dropContainerKey===null&&me.state.dropTargetPos===null&&me.state.dropAllowed===!1&&me.state.dragOverNodeKey===null||me.resetDragState():rt===me.state.dropPosition&&Nt===me.state.dropLevelOffset&&fn===me.state.dropTargetKey&&yn===me.state.dropContainerKey&<===me.state.dropTargetPos&&Rt===me.state.dropAllowed&&en===me.state.dragOverNodeKey||me.setState({dropPosition:rt,dropLevelOffset:Nt,dropTargetKey:fn,dropContainerKey:yn,dropTargetPos:lt,dropAllowed:Rt,dragOverNodeKey:en}),gn==null||gn({event:Ke,node:(0,pe.F)(yt)}))}}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragLeave",function(Ke,yt){me.currentMouseOverDroppableNodeKey===yt.eventKey&&!Ke.currentTarget.contains(Ke.relatedTarget)&&(me.resetDragState(),me.currentMouseOverDroppableNodeKey=null);var Bt=me.props.onDragLeave;Bt==null||Bt({event:Ke,node:(0,pe.F)(yt)})}),(0,fe.Z)((0,Ce.Z)(me),"onWindowDragEnd",function(Ke){me.onNodeDragEnd(Ke,null,!0),window.removeEventListener("dragend",me.onWindowDragEnd)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragEnd",function(Ke,yt){var Bt=me.props.onDragEnd;me.setState({dragOverNodeKey:null}),me.cleanDragState(),Bt==null||Bt({event:Ke,node:(0,pe.F)(yt)}),me.dragNodeProps=null,window.removeEventListener("dragend",me.onWindowDragEnd)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDrop",function(Ke,yt){var Bt,_t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qe=me.state,tt=Qe.dragChildrenKeys,Vt=Qe.dropPosition,on=Qe.dropTargetKey,Fn=Qe.dropTargetPos,gn=Qe.dropAllowed;if(gn){var Lt=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),on!==null){var Qt=(0,ce.Z)((0,ce.Z)({},(0,pe.H8)(on,me.getTreeNodeRequiredProps())),{},{active:((Bt=me.getActiveItem())===null||Bt===void 0?void 0:Bt.key)===on,data:(0,un.Z)(me.state.keyEntities,on).node}),jt=tt.includes(on);(0,Ne.ZP)(!jt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var rt=(0,wt.yx)(Fn),Nt={event:Ke,node:(0,pe.F)(Qt),dragNode:me.dragNodeProps?(0,pe.F)(me.dragNodeProps):null,dragNodesKeys:[me.dragNodeProps.eventKey].concat(tt),dropToGap:Vt!==0,dropPosition:Vt+Number(rt[rt.length-1])};_t||Lt==null||Lt(Nt),me.dragNodeProps=null}}}),(0,fe.Z)((0,Ce.Z)(me),"cleanDragState",function(){var Ke=me.state.draggingNodeKey;Ke!==null&&me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),me.dragStartMousePosition=null,me.currentMouseOverDroppableNodeKey=null}),(0,fe.Z)((0,Ce.Z)(me),"triggerExpandActionExpand",function(Ke,yt){var Bt=me.state,_t=Bt.expandedKeys,Qe=Bt.flattenNodes,tt=yt.expanded,Vt=yt.key,on=yt.isLeaf;if(!(on||Ke.shiftKey||Ke.metaKey||Ke.ctrlKey)){var Fn=Qe.filter(function(Lt){return Lt.key===Vt})[0],gn=(0,pe.F)((0,ce.Z)((0,ce.Z)({},(0,pe.H8)(Vt,me.getTreeNodeRequiredProps())),{},{data:Fn.data}));me.setExpandedKeys(tt?(0,wt._5)(_t,Vt):(0,wt.L0)(_t,Vt)),me.onNodeExpand(Ke,gn)}}),(0,fe.Z)((0,Ce.Z)(me),"onNodeClick",function(Ke,yt){var Bt=me.props,_t=Bt.onClick,Qe=Bt.expandAction;Qe==="click"&&me.triggerExpandActionExpand(Ke,yt),_t==null||_t(Ke,yt)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDoubleClick",function(Ke,yt){var Bt=me.props,_t=Bt.onDoubleClick,Qe=Bt.expandAction;Qe==="doubleClick"&&me.triggerExpandActionExpand(Ke,yt),_t==null||_t(Ke,yt)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeSelect",function(Ke,yt){var Bt=me.state.selectedKeys,_t=me.state,Qe=_t.keyEntities,tt=_t.fieldNames,Vt=me.props,on=Vt.onSelect,Fn=Vt.multiple,gn=yt.selected,Lt=yt[tt.key],Qt=!gn;Qt?Fn?Bt=(0,wt.L0)(Bt,Lt):Bt=[Lt]:Bt=(0,wt._5)(Bt,Lt);var jt=Bt.map(function(rt){var Nt=(0,un.Z)(Qe,rt);return Nt?Nt.node:null}).filter(Boolean);me.setUncontrolledState({selectedKeys:Bt}),on==null||on(Bt,{event:"select",selected:Qt,node:yt,selectedNodes:jt,nativeEvent:Ke.nativeEvent})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeCheck",function(Ke,yt,Bt){var _t=me.state,Qe=_t.keyEntities,tt=_t.checkedKeys,Vt=_t.halfCheckedKeys,on=me.props,Fn=on.checkStrictly,gn=on.onCheck,Lt=yt.key,Qt,jt={event:"check",node:yt,checked:Bt,nativeEvent:Ke.nativeEvent};if(Fn){var rt=Bt?(0,wt.L0)(tt,Lt):(0,wt._5)(tt,Lt),Nt=(0,wt._5)(Vt,Lt);Qt={checked:rt,halfChecked:Nt},jt.checkedNodes=rt.map(function(Pt){return(0,un.Z)(Qe,Pt)}).filter(Boolean).map(function(Pt){return Pt.node}),me.setUncontrolledState({checkedKeys:rt})}else{var fn=(0,ht.S)([].concat((0,_e.Z)(tt),[Lt]),!0,Qe),yn=fn.checkedKeys,lt=fn.halfCheckedKeys;if(!Bt){var Rt=new Set(yn);Rt.delete(Lt);var en=(0,ht.S)(Array.from(Rt),{checked:!1,halfCheckedKeys:lt},Qe);yn=en.checkedKeys,lt=en.halfCheckedKeys}Qt=yn,jt.checkedNodes=[],jt.checkedNodesPositions=[],jt.halfCheckedKeys=lt,yn.forEach(function(Pt){var Yt=(0,un.Z)(Qe,Pt);if(Yt){var Gt=Yt.node,Sn=Yt.pos;jt.checkedNodes.push(Gt),jt.checkedNodesPositions.push({node:Gt,pos:Sn})}}),me.setUncontrolledState({checkedKeys:yn},!1,{halfCheckedKeys:lt})}gn==null||gn(Qt,jt)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeLoad",function(Ke){var yt,Bt=Ke.key,_t=me.state.keyEntities,Qe=(0,un.Z)(_t,Bt);if(!(Qe!=null&&(yt=Qe.children)!==null&&yt!==void 0&&yt.length)){var tt=new Promise(function(Vt,on){me.setState(function(Fn){var gn=Fn.loadedKeys,Lt=gn===void 0?[]:gn,Qt=Fn.loadingKeys,jt=Qt===void 0?[]:Qt,rt=me.props,Nt=rt.loadData,fn=rt.onLoad;if(!Nt||Lt.includes(Bt)||jt.includes(Bt))return null;var yn=Nt(Ke);return yn.then(function(){var lt=me.state.loadedKeys,Rt=(0,wt.L0)(lt,Bt);fn==null||fn(Rt,{event:"load",node:Ke}),me.setUncontrolledState({loadedKeys:Rt}),me.setState(function(en){return{loadingKeys:(0,wt._5)(en.loadingKeys,Bt)}}),Vt()}).catch(function(lt){if(me.setState(function(en){return{loadingKeys:(0,wt._5)(en.loadingKeys,Bt)}}),me.loadingRetryTimes[Bt]=(me.loadingRetryTimes[Bt]||0)+1,me.loadingRetryTimes[Bt]>=zt){var Rt=me.state.loadedKeys;(0,Ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),me.setUncontrolledState({loadedKeys:(0,wt.L0)(Rt,Bt)}),Vt()}on(lt)}),{loadingKeys:(0,wt.L0)(jt,Bt)}})});return tt.catch(function(){}),tt}}),(0,fe.Z)((0,Ce.Z)(me),"onNodeMouseEnter",function(Ke,yt){var Bt=me.props.onMouseEnter;Bt==null||Bt({event:Ke,node:yt})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeMouseLeave",function(Ke,yt){var Bt=me.props.onMouseLeave;Bt==null||Bt({event:Ke,node:yt})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeContextMenu",function(Ke,yt){var Bt=me.props.onRightClick;Bt&&(Ke.preventDefault(),Bt({event:Ke,node:yt}))}),(0,fe.Z)((0,Ce.Z)(me),"onFocus",function(){var Ke=me.props.onFocus;me.setState({focused:!0});for(var yt=arguments.length,Bt=new Array(yt),_t=0;_t<yt;_t++)Bt[_t]=arguments[_t];Ke==null||Ke.apply(void 0,Bt)}),(0,fe.Z)((0,Ce.Z)(me),"onBlur",function(){var Ke=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null);for(var yt=arguments.length,Bt=new Array(yt),_t=0;_t<yt;_t++)Bt[_t]=arguments[_t];Ke==null||Ke.apply(void 0,Bt)}),(0,fe.Z)((0,Ce.Z)(me),"getTreeNodeRequiredProps",function(){var Ke=me.state,yt=Ke.expandedKeys,Bt=Ke.selectedKeys,_t=Ke.loadedKeys,Qe=Ke.loadingKeys,tt=Ke.checkedKeys,Vt=Ke.halfCheckedKeys,on=Ke.dragOverNodeKey,Fn=Ke.dropPosition,gn=Ke.keyEntities;return{expandedKeys:yt||[],selectedKeys:Bt||[],loadedKeys:_t||[],loadingKeys:Qe||[],checkedKeys:tt||[],halfCheckedKeys:Vt||[],dragOverNodeKey:on,dropPosition:Fn,keyEntities:gn}}),(0,fe.Z)((0,Ce.Z)(me),"setExpandedKeys",function(Ke){var yt=me.state,Bt=yt.treeData,_t=yt.fieldNames,Qe=(0,pe.oH)(Bt,Ke,_t);me.setUncontrolledState({expandedKeys:Ke,flattenNodes:Qe},!0)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeExpand",function(Ke,yt){var Bt=me.state.expandedKeys,_t=me.state,Qe=_t.listChanging,tt=_t.fieldNames,Vt=me.props,on=Vt.onExpand,Fn=Vt.loadData,gn=yt.expanded,Lt=yt[tt.key];if(!Qe){var Qt=Bt.includes(Lt),jt=!gn;if((0,Ne.ZP)(gn&&Qt||!gn&&!Qt,"Expand state not sync with index check"),Bt=jt?(0,wt.L0)(Bt,Lt):(0,wt._5)(Bt,Lt),me.setExpandedKeys(Bt),on==null||on(Bt,{node:yt,expanded:jt,nativeEvent:Ke.nativeEvent}),jt&&Fn){var rt=me.onNodeLoad(yt);rt&&rt.then(function(){var Nt=(0,pe.oH)(me.state.treeData,Bt,tt);me.setUncontrolledState({flattenNodes:Nt})}).catch(function(){var Nt=me.state.expandedKeys,fn=(0,wt._5)(Nt,Lt);me.setExpandedKeys(fn)})}}}),(0,fe.Z)((0,Ce.Z)(me),"onListChangeStart",function(){me.setUncontrolledState({listChanging:!0})}),(0,fe.Z)((0,Ce.Z)(me),"onListChangeEnd",function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})}),(0,fe.Z)((0,Ce.Z)(me),"onActiveChange",function(Ke){var yt=me.state.activeKey,Bt=me.props,_t=Bt.onActiveChange,Qe=Bt.itemScrollOffset,tt=Qe===void 0?0:Qe;yt!==Ke&&(me.setState({activeKey:Ke}),Ke!==null&&me.scrollTo({key:Ke,offset:tt}),_t==null||_t(Ke))}),(0,fe.Z)((0,Ce.Z)(me),"getActiveItem",function(){var Ke=me.state,yt=Ke.activeKey,Bt=Ke.flattenNodes;return yt===null?null:Bt.find(function(_t){var Qe=_t.key;return Qe===yt})||null}),(0,fe.Z)((0,Ce.Z)(me),"offsetActiveKey",function(Ke){var yt=me.state,Bt=yt.flattenNodes,_t=yt.activeKey,Qe=Bt.findIndex(function(on){var Fn=on.key;return Fn===_t});Qe===-1&&Ke<0&&(Qe=Bt.length),Qe=(Qe+Ke+Bt.length)%Bt.length;var tt=Bt[Qe];if(tt){var Vt=tt.key;me.onActiveChange(Vt)}else me.onActiveChange(null)}),(0,fe.Z)((0,Ce.Z)(me),"onKeyDown",function(Ke){var yt=me.state,Bt=yt.activeKey,_t=yt.expandedKeys,Qe=yt.checkedKeys,tt=yt.fieldNames,Vt=me.props,on=Vt.onKeyDown,Fn=Vt.checkable,gn=Vt.selectable;switch(Ke.which){case dt.Z.UP:{me.offsetActiveKey(-1),Ke.preventDefault();break}case dt.Z.DOWN:{me.offsetActiveKey(1),Ke.preventDefault();break}}var Lt=me.getActiveItem();if(Lt&&Lt.data){var Qt=me.getTreeNodeRequiredProps(),jt=Lt.data.isLeaf===!1||!!(Lt.data[tt.children]||[]).length,rt=(0,pe.F)((0,ce.Z)((0,ce.Z)({},(0,pe.H8)(Bt,Qt)),{},{data:Lt.data,active:!0}));switch(Ke.which){case dt.Z.LEFT:{jt&&_t.includes(Bt)?me.onNodeExpand({},rt):Lt.parent&&me.onActiveChange(Lt.parent.key),Ke.preventDefault();break}case dt.Z.RIGHT:{jt&&!_t.includes(Bt)?me.onNodeExpand({},rt):Lt.children&&Lt.children.length&&me.onActiveChange(Lt.children[0].key),Ke.preventDefault();break}case dt.Z.ENTER:case dt.Z.SPACE:{Fn&&!rt.disabled&&rt.checkable!==!1&&!rt.disableCheckbox?me.onNodeCheck({},rt,!Qe.includes(Bt)):!Fn&&gn&&!rt.disabled&&rt.selectable!==!1&&me.onNodeSelect({},rt);break}}}on==null||on(Ke)}),(0,fe.Z)((0,Ce.Z)(me),"setUncontrolledState",function(Ke){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!me.destroyed){var _t=!1,Qe=!0,tt={};Object.keys(Ke).forEach(function(Vt){if(me.props.hasOwnProperty(Vt)){Qe=!1;return}_t=!0,tt[Vt]=Ke[Vt]}),_t&&(!yt||Qe)&&me.setState((0,ce.Z)((0,ce.Z)({},tt),Bt))}}),(0,fe.Z)((0,Ce.Z)(me),"scrollTo",function(Ke){me.listRef.current.scrollTo(Ke)}),me}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 He=this.props,It=He.activeKey,Xe=He.itemScrollOffset,Ke=Xe===void 0?0:Xe;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 He=this.state,It=He.focused,Xe=He.flattenNodes,Ke=He.keyEntities,yt=He.draggingNodeKey,Bt=He.activeKey,_t=He.dropLevelOffset,Qe=He.dropContainerKey,tt=He.dropTargetKey,Vt=He.dropPosition,on=He.dragOverNodeKey,Fn=He.indent,gn=this.props,Lt=gn.prefixCls,Qt=gn.className,jt=gn.style,rt=gn.showLine,Nt=gn.focusable,fn=gn.tabIndex,yn=fn===void 0?0:fn,lt=gn.selectable,Rt=gn.showIcon,en=gn.icon,Pt=gn.switcherIcon,Yt=gn.draggable,Gt=gn.checkable,Sn=gn.checkStrictly,jn=gn.disabled,Dn=gn.motion,Zn=gn.loadData,Ot=gn.filterTreeNode,Wt=gn.height,ln=gn.itemHeight,bn=gn.scrollWidth,tn=gn.virtual,wn=gn.titleRender,Cn=gn.dropIndicatorRender,Pn=gn.onContextMenu,vr=gn.onScroll,Qn=gn.direction,dr=gn.rootClassName,br=gn.rootStyle,yr=(0,Ge.Z)(this.props,{aria:!0,data:!0}),Vr;Yt&&((0,ge.Z)(Yt)==="object"?Vr=Yt:typeof Yt=="function"?Vr={nodeDraggable:Yt}:Vr={});var Zr={prefixCls:Lt,selectable:lt,showIcon:Rt,icon:en,switcherIcon:Pt,draggable:Vr,draggingNodeKey:yt,checkable:Gt,checkStrictly:Sn,disabled:jn,keyEntities:Ke,dropLevelOffset:_t,dropContainerKey:Qe,dropTargetKey:tt,dropPosition:Vt,dragOverNodeKey:on,indent:Fn,direction:Qn,dropIndicatorRender:Cn,loadData:Zn,filterTreeNode:Ot,titleRender:wn,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 we.createElement(Pe.k.Provider,{value:Zr},we.createElement("div",{className:Te()(Lt,Qt,dr,(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Lt,"-show-line"),rt),"".concat(Lt,"-focused"),It),"".concat(Lt,"-active-focused"),Bt!==null)),style:br},we.createElement(xt,(0,y.Z)({ref:this.listRef,prefixCls:Lt,style:jt,data:Xe,disabled:jn,selectable:lt,checkable:!!Gt,motion:Dn,dragging:yt!==null,height:Wt,itemHeight:ln,virtual:tn,focusable:Nt,focused:It,tabIndex:yn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Pn,onScroll:vr,scrollWidth:bn},this.getTreeNodeRequiredProps(),yr))))}}],[{key:"getDerivedStateFromProps",value:function(He,It){var Xe=It.prevProps,Ke={prevProps:He};function yt(yn){return!Xe&&He.hasOwnProperty(yn)||Xe&&Xe[yn]!==He[yn]}var Bt,_t=It.fieldNames;if(yt("fieldNames")&&(_t=(0,pe.w$)(He.fieldNames),Ke.fieldNames=_t),yt("treeData")?Bt=He.treeData:yt("children")&&((0,Ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Bt=(0,pe.zn)(He.children)),Bt){Ke.treeData=Bt;var Qe=(0,pe.I8)(Bt,{fieldNames:_t});Ke.keyEntities=(0,ce.Z)((0,fe.Z)({},ye,Ht),Qe.keyEntities)}var tt=Ke.keyEntities||It.keyEntities;if(yt("expandedKeys")||Xe&&yt("autoExpandParent"))Ke.expandedKeys=He.autoExpandParent||!Xe&&He.defaultExpandParent?(0,wt.r7)(He.expandedKeys,tt):He.expandedKeys;else if(!Xe&&He.defaultExpandAll){var Vt=(0,ce.Z)({},tt);delete Vt[ye];var on=[];Object.keys(Vt).forEach(function(yn){var lt=Vt[yn];lt.children&<.children.length&&on.push(lt.key)}),Ke.expandedKeys=on}else!Xe&&He.defaultExpandedKeys&&(Ke.expandedKeys=He.autoExpandParent||He.defaultExpandParent?(0,wt.r7)(He.defaultExpandedKeys,tt):He.defaultExpandedKeys);if(Ke.expandedKeys||delete Ke.expandedKeys,Bt||Ke.expandedKeys){var Fn=(0,pe.oH)(Bt||It.treeData,Ke.expandedKeys||It.expandedKeys,_t);Ke.flattenNodes=Fn}if(He.selectable&&(yt("selectedKeys")?Ke.selectedKeys=(0,wt.BT)(He.selectedKeys,He):!Xe&&He.defaultSelectedKeys&&(Ke.selectedKeys=(0,wt.BT)(He.defaultSelectedKeys,He))),He.checkable){var gn;if(yt("checkedKeys")?gn=(0,wt.E6)(He.checkedKeys)||{}:!Xe&&He.defaultCheckedKeys?gn=(0,wt.E6)(He.defaultCheckedKeys)||{}:Bt&&(gn=(0,wt.E6)(He.checkedKeys)||{checkedKeys:It.checkedKeys,halfCheckedKeys:It.halfCheckedKeys}),gn){var Lt=gn,Qt=Lt.checkedKeys,jt=Qt===void 0?[]:Qt,rt=Lt.halfCheckedKeys,Nt=rt===void 0?[]:rt;if(!He.checkStrictly){var fn=(0,ht.S)(jt,!0,tt);jt=fn.checkedKeys,Nt=fn.halfCheckedKeys}Ke.checkedKeys=jt,Ke.halfCheckedKeys=Nt}}return yt("loadedKeys")&&(Ke.loadedKeys=He.loadedKeys),Ke}}]),ie}(we.Component);(0,fe.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:et,allowDrop:function(){return!0},expandAction:!1}),(0,fe.Z)(ue,"TreeNode",bt.Z);var ae=ue,re=ae},82661:function(Rn,qt,E){"use strict";E.d(qt,{BT:function(){return we},E6:function(){return et},L0:function(){return fe},OM:function(){return Ne},_5:function(){return De},r7:function(){return St},wA:function(){return Te},yx:function(){return We}});var y=E(77654),ge=E(43749),ce=E(48736),_e=E(59301),Se=E(639),Ee=E(65065),Ce=E(34061),ke=null;function De(Ae,Oe){if(!Ae)return[];var qe=Ae.slice(),Je=qe.indexOf(Oe);return Je>=0&&qe.splice(Je,1),qe}function fe(Ae,Oe){var qe=(Ae||[]).slice();return qe.indexOf(Oe)===-1&&qe.push(Oe),qe}function We(Ae){return Ae.split("-")}function Te(Ae,Oe){var qe=[],Je=(0,Ee.Z)(Oe,Ae);function ct(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];bt.forEach(function(st){var $e=st.key,pe=st.children;qe.push($e),ct(pe)})}return ct(Je.children),qe}function dt(Ae){if(Ae.parent){var Oe=We(Ae.pos);return Number(Oe[Oe.length-1])===Ae.parent.children.length-1}return!1}function Ge(Ae){var Oe=We(Ae.pos);return Number(Oe[Oe.length-1])===0}function Ne(Ae,Oe,qe,Je,ct,bt,st,$e,pe,Le){var xe,de=Ae.clientX,Ct=Ae.clientY,Ye=Ae.target.getBoundingClientRect(),je=Ye.top,it=Ye.height,Ie=(Le==="rtl"?-1:1)*(((ct==null?void 0:ct.x)||0)-de),ye=(Ie-12)/Je,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}),Ht=(0,Ee.Z)($e,qe.eventKey);if(Ct<je+it/2){var Et=st.findIndex(function(re){return re.key===Ht.key}),Be=Et<=0?0:Et-1,ft=st[Be].key;Ht=(0,Ee.Z)($e,ft)}var ot=Ht.key,Xt=Ht,xt=Ht.key,wt=0,ht=0;if(!vt.includes(ot))for(var un=0;un<ye&&dt(Ht);un+=1)Ht=Ht.parent,ht+=1;var zt=Oe.data,ue=Ht.node,ae=!0;return Ge(Ht)&&Ht.level===0&&Ct<je+it/2&&bt({dragNode:zt,dropNode:ue,dropPosition:-1})&&Ht.key===qe.eventKey?wt=-1:(Xt.children||[]).length&&vt.includes(xt)?bt({dragNode:zt,dropNode:ue,dropPosition:0})?wt=0:ae=!1:ht===0?ye>-1.5?bt({dragNode:zt,dropNode:ue,dropPosition:1})?wt=1:ae=!1:bt({dragNode:zt,dropNode:ue,dropPosition:0})?wt=0:bt({dragNode:zt,dropNode:ue,dropPosition:1})?wt=1:ae=!1:bt({dragNode:zt,dropNode:ue,dropPosition:1})?wt=1:ae=!1,{dropPosition:wt,dropLevelOffset:ht,dropTargetKey:Ht.key,dropTargetPos:Ht.pos,dragOverNodeKey:xt,dropContainerKey:wt===0?null:((xe=Ht.parent)===null||xe===void 0?void 0:xe.key)||null,dropAllowed:ae}}function we(Ae,Oe){if(Ae){var qe=Oe.multiple;return qe?Ae.slice():Ae.length?[Ae[0]]:Ae}}var Pe=function(Oe){return Oe};function Fe(Ae,Oe){if(!Ae)return[];var qe=Oe||{},Je=qe.processProps,ct=Je===void 0?Pe:Je,bt=Array.isArray(Ae)?Ae:[Ae];return bt.map(function(st){var $e=st.children,pe=_objectWithoutProperties(st,ke),Le=Fe($e,Oe);return React.createElement(TreeNode,_extends({key:pe.key},ct(pe)),Le)})}function et(Ae){if(!Ae)return null;var Oe;if(Array.isArray(Ae))Oe={checkedKeys:Ae,halfCheckedKeys:void 0};else if((0,ge.Z)(Ae)==="object")Oe={checkedKeys:Ae.checked||void 0,halfCheckedKeys:Ae.halfChecked||void 0};else return(0,ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Oe}function St(Ae,Oe){var qe=new Set;function Je(ct){if(!qe.has(ct)){var bt=(0,Ee.Z)(Oe,ct);if(bt){qe.add(ct);var st=bt.parent,$e=bt.node;$e.disabled||st&&Je(st.key)}}}return(Ae||[]).forEach(function(ct){Je(ct)}),(0,y.Z)(qe)}},34643:function(Rn,qt,E){"use strict";E.d(qt,{S:function(){return Ce}});var y=E(48736),ge=E(65065);function ce(ke,De){var fe=new Set;return ke.forEach(function(We){De.has(We)||fe.add(We)}),fe}function _e(ke){var De=ke||{},fe=De.disabled,We=De.disableCheckbox,Te=De.checkable;return!!(fe||We)||Te===!1}function Se(ke,De,fe,We){for(var Te=new Set(ke),dt=new Set,Ge=0;Ge<=fe;Ge+=1){var Ne=De.get(Ge)||new Set;Ne.forEach(function(et){var St=et.key,Ae=et.node,Oe=et.children,qe=Oe===void 0?[]:Oe;Te.has(St)&&!We(Ae)&&qe.filter(function(Je){return!We(Je.node)}).forEach(function(Je){Te.add(Je.key)})})}for(var we=new Set,Pe=fe;Pe>=0;Pe-=1){var Fe=De.get(Pe)||new Set;Fe.forEach(function(et){var St=et.parent,Ae=et.node;if(!(We(Ae)||!et.parent||we.has(et.parent.key))){if(We(et.parent.node)){we.add(St.key);return}var Oe=!0,qe=!1;(St.children||[]).filter(function(Je){return!We(Je.node)}).forEach(function(Je){var ct=Je.key,bt=Te.has(ct);Oe&&!bt&&(Oe=!1),!qe&&(bt||dt.has(ct))&&(qe=!0)}),Oe&&Te.add(St.key),qe&&dt.add(St.key),we.add(St.key)}})}return{checkedKeys:Array.from(Te),halfCheckedKeys:Array.from(ce(dt,Te))}}function Ee(ke,De,fe,We,Te){for(var dt=new Set(ke),Ge=new Set(De),Ne=0;Ne<=We;Ne+=1){var we=fe.get(Ne)||new Set;we.forEach(function(St){var Ae=St.key,Oe=St.node,qe=St.children,Je=qe===void 0?[]:qe;!dt.has(Ae)&&!Ge.has(Ae)&&!Te(Oe)&&Je.filter(function(ct){return!Te(ct.node)}).forEach(function(ct){dt.delete(ct.key)})})}Ge=new Set;for(var Pe=new Set,Fe=We;Fe>=0;Fe-=1){var et=fe.get(Fe)||new Set;et.forEach(function(St){var Ae=St.parent,Oe=St.node;if(!(Te(Oe)||!St.parent||Pe.has(St.parent.key))){if(Te(St.parent.node)){Pe.add(Ae.key);return}var qe=!0,Je=!1;(Ae.children||[]).filter(function(ct){return!Te(ct.node)}).forEach(function(ct){var bt=ct.key,st=dt.has(bt);qe&&!st&&(qe=!1),!Je&&(st||Ge.has(bt))&&(Je=!0)}),qe||dt.delete(Ae.key),Je&&Ge.add(Ae.key),Pe.add(Ae.key)}})}return{checkedKeys:Array.from(dt),halfCheckedKeys:Array.from(ce(Ge,dt))}}function Ce(ke,De,fe,We){var Te=[],dt;We?dt=We:dt=_e;var Ge=new Set(ke.filter(function(Fe){var et=!!(0,ge.Z)(fe,Fe);return et||Te.push(Fe),et})),Ne=new Map,we=0;Object.keys(fe).forEach(function(Fe){var et=fe[Fe],St=et.level,Ae=Ne.get(St);Ae||(Ae=new Set,Ne.set(St,Ae)),Ae.add(et),we=Math.max(we,St)}),(0,y.ZP)(!Te.length,"Tree missing follow keys: ".concat(Te.slice(0,100).map(function(Fe){return"'".concat(Fe,"'")}).join(", ")));var Pe;return De===!0?Pe=Se(Ge,Ne,we,dt):Pe=Ee(Ge,De.halfCheckedKeys,Ne,we,dt),Pe}},65065:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return y}});function y(ge,ce){return ge[ce]}},34061:function(Rn,qt,E){"use strict";E.d(qt,{F:function(){return St},H8:function(){return et},I8:function(){return Fe},km:function(){return Te},oH:function(){return we},w$:function(){return dt},zn:function(){return Ne}});var y=E(43749),ge=E(77654),ce=E(85899),_e=E(42244),Se=E(11592),Ee=E(2738),Ce=E(48736),ke=E(65065),De=["children"];function fe(Ae,Oe){return"".concat(Ae,"-").concat(Oe)}function We(Ae){return Ae&&Ae.type&&Ae.type.isTreeNode}function Te(Ae,Oe){return Ae!=null?Ae:Oe}function dt(Ae){var Oe=Ae||{},qe=Oe.title,Je=Oe._title,ct=Oe.key,bt=Oe.children,st=qe||"title";return{title:st,_title:Je||[st],key:ct||"key",children:bt||"children"}}function Ge(Ae,Oe){var qe=new Map;function Je(ct){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ct||[]).forEach(function(st){var $e=st[Oe.key],pe=st[Oe.children];warning($e!=null,"Tree node must have a certain key: [".concat(bt).concat($e,"]"));var Le=String($e);warning(!qe.has(Le)||$e===null||$e===void 0,"Same 'key' exist in the Tree: ".concat(Le)),qe.set(Le,!0),Je(pe,"".concat(bt).concat(Le," > "))})}Je(Ae)}function Ne(Ae){function Oe(qe){var Je=(0,Se.Z)(qe);return Je.map(function(ct){if(!We(ct))return(0,Ce.ZP)(!ct,"Tree/TreeNode can only accept TreeNode as children."),null;var bt=ct.key,st=ct.props,$e=st.children,pe=(0,_e.Z)(st,De),Le=(0,ce.Z)({key:bt},pe),xe=Oe($e);return xe.length&&(Le.children=xe),Le}).filter(function(ct){return ct})}return Oe(Ae)}function we(Ae,Oe,qe){var Je=dt(qe),ct=Je._title,bt=Je.key,st=Je.children,$e=new Set(Oe===!0?[]:Oe),pe=[];function Le(xe){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return xe.map(function(Ct,Ye){for(var je=fe(de?de.pos:"0",Ye),it=Te(Ct[bt],je),Ie,ye=0;ye<ct.length;ye+=1){var vt=ct[ye];if(Ct[vt]!==void 0){Ie=Ct[vt];break}}var Ht=Object.assign((0,Ee.Z)(Ct,[].concat((0,ge.Z)(ct),[bt,st])),{title:Ie,key:it,parent:de,pos:je,children:null,data:Ct,isStart:[].concat((0,ge.Z)(de?de.isStart:[]),[Ye===0]),isEnd:[].concat((0,ge.Z)(de?de.isEnd:[]),[Ye===xe.length-1])});return pe.push(Ht),Oe===!0||$e.has(it)?Ht.children=Le(Ct[st]||[],Ht):Ht.children=[],Ht})}return Le(Ae),pe}function Pe(Ae,Oe,qe){var Je={};(0,y.Z)(qe)==="object"?Je=qe:Je={externalGetKey:qe},Je=Je||{};var ct=Je,bt=ct.childrenPropName,st=ct.externalGetKey,$e=ct.fieldNames,pe=dt($e),Le=pe.key,xe=pe.children,de=bt||xe,Ct;st?typeof st=="string"?Ct=function(it){return it[st]}:typeof st=="function"&&(Ct=function(it){return st(it)}):Ct=function(it,Ie){return Te(it[Le],Ie)};function Ye(je,it,Ie,ye){var vt=je?je[de]:Ae,Ht=je?fe(Ie.pos,it):"0",Et=je?[].concat((0,ge.Z)(ye),[je]):[];if(je){var Be=Ct(je,Ht),ft={node:je,index:it,pos:Ht,key:Be,parentPos:Ie.node?Ie.pos:null,level:Ie.level+1,nodes:Et};Oe(ft)}vt&&vt.forEach(function(ot,Xt){Ye(ot,Xt,{node:je,pos:Ht,level:Ie?Ie.level+1:-1},Et)})}Ye(null)}function Fe(Ae){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=Oe.initWrapper,Je=Oe.processEntity,ct=Oe.onProcessFinished,bt=Oe.externalGetKey,st=Oe.childrenPropName,$e=Oe.fieldNames,pe=arguments.length>2?arguments[2]:void 0,Le=bt||pe,xe={},de={},Ct={posEntities:xe,keyEntities:de};return qe&&(Ct=qe(Ct)||Ct),Pe(Ae,function(Ye){var je=Ye.node,it=Ye.index,Ie=Ye.pos,ye=Ye.key,vt=Ye.parentPos,Ht=Ye.level,Et=Ye.nodes,Be={node:je,nodes:Et,index:it,key:ye,pos:Ie,level:Ht},ft=Te(ye,Ie);xe[Ie]=Be,de[ft]=Be,Be.parent=xe[vt],Be.parent&&(Be.parent.children=Be.parent.children||[],Be.parent.children.push(Be)),Je&&Je(Be,Ct)},{externalGetKey:Le,childrenPropName:st,fieldNames:$e}),ct&&ct(Ct),Ct}function et(Ae,Oe){var qe=Oe.expandedKeys,Je=Oe.selectedKeys,ct=Oe.loadedKeys,bt=Oe.loadingKeys,st=Oe.checkedKeys,$e=Oe.halfCheckedKeys,pe=Oe.dragOverNodeKey,Le=Oe.dropPosition,xe=Oe.keyEntities,de=(0,ke.Z)(xe,Ae),Ct={eventKey:Ae,expanded:qe.indexOf(Ae)!==-1,selected:Je.indexOf(Ae)!==-1,loaded:ct.indexOf(Ae)!==-1,loading:bt.indexOf(Ae)!==-1,checked:st.indexOf(Ae)!==-1,halfChecked:$e.indexOf(Ae)!==-1,pos:String(de?de.pos:""),dragOver:pe===Ae&&Le===0,dragOverGapTop:pe===Ae&&Le===-1,dragOverGapBottom:pe===Ae&&Le===1};return Ct}function St(Ae){var Oe=Ae.data,qe=Ae.expanded,Je=Ae.selected,ct=Ae.checked,bt=Ae.loaded,st=Ae.loading,$e=Ae.halfChecked,pe=Ae.dragOver,Le=Ae.dragOverGapTop,xe=Ae.dragOverGapBottom,de=Ae.pos,Ct=Ae.active,Ye=Ae.eventKey,je=(0,ce.Z)((0,ce.Z)({},Oe),{},{expanded:qe,selected:Je,checked:ct,loaded:bt,loading:st,halfChecked:$e,dragOver:pe,dragOverGapTop:Le,dragOverGapBottom:xe,pos:de,active:Ct,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(ce,_e,Se,Ee){var Ce=y.unstable_batchedUpdates?function(De){y.unstable_batchedUpdates(Se,De)}:Se;return ce!=null&&ce.addEventListener&&ce.addEventListener(_e,Ce,Ee),{remove:function(){ce!=null&&ce.removeEventListener&&ce.removeEventListener(_e,Ce,Ee)}}}},24514:function(Rn,qt,E){"use strict";E.d(qt,{G:function(){return _e}});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(De){return De in ke.style})}return!1},ce=function(Ee,Ce){if(!ge(Ee))return!1;var ke=document.createElement("div"),De=ke.style[Ee];return ke.style[Ee]=Ce,ke.style[Ee]!==De};function _e(Se,Ee){return!Array.isArray(Se)&&Ee!==void 0?ce(Se,Ee):ge(Se)}},48911:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return zt}});var y=E(60499),ge=E(43749),ce=E(85899),_e=E(18642),Se=E(72190),Ee=E(42244),Ce=E(92310),ke=E.n(Ce),De=E(29301),fe=E(70425),We=E(34280),Te=E(59301),dt=E(4676),Ge=Te.forwardRef(function(ue,ae){var re=ue.height,se=ue.offsetY,he=ue.offsetX,ie=ue.children,me=ue.prefixCls,He=ue.onInnerResize,It=ue.innerProps,Xe=ue.rtl,Ke=ue.extra,yt={},Bt={display:"flex",flexDirection:"column"};return se!==void 0&&(yt={height:re,position:"relative",overflow:"hidden"},Bt=(0,ce.Z)((0,ce.Z)({},Bt),{},(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({transform:"translateY(".concat(se,"px)")},Xe?"marginRight":"marginLeft",-he),"position","absolute"),"left",0),"right",0),"top",0))),Te.createElement("div",{style:yt},Te.createElement(De.Z,{onResize:function(Qe){var tt=Qe.offsetHeight;tt&&He&&He()}},Te.createElement("div",(0,y.Z)({style:Bt,className:ke()((0,_e.Z)({},"".concat(me,"-holder-inner"),me)),ref:ae},It),ie,Ke)))});Ge.displayName="Filler";var Ne=Ge;function we(ue){var ae=ue.children,re=ue.setRef,se=Te.useCallback(function(he){re(he)},[]);return Te.cloneElement(ae,{ref:se})}function Pe(ue,ae,re,se,he,ie,me,He){var It=He.getKey;return ue.slice(ae,re+1).map(function(Xe,Ke){var yt=ae+Ke,Bt=me(Xe,yt,{style:{width:se},offsetX:he}),_t=It(Xe);return Te.createElement(we,{key:_t,setRef:function(tt){return ie(Xe,tt)}},Bt)})}function Fe(ue,ae,re,se){var he=re-ue,ie=ae-re,me=Math.min(he,ie)*2;if(se<=me){var He=Math.floor(se/2);return se%2?re+He+1:re-He}return he>ie?re-(se-ie):re+(se-he)}function et(ue,ae,re){var se=ue.length,he=ae.length,ie,me;if(se===0&&he===0)return null;se<he?(ie=ue,me=ae):(ie=ae,me=ue);var He={__EMPTY_ITEM__:!0};function It(Qe){return Qe!==void 0?re(Qe):He}for(var Xe=null,Ke=Math.abs(se-he)!==1,yt=0;yt<me.length;yt+=1){var Bt=It(ie[yt]),_t=It(me[yt]);if(Bt!==_t){Xe=yt,Ke=Ke||Bt!==It(me[yt+1]);break}}return Xe===null?null:{index:Xe,multiple:Ke}}function St(ue,ae,re){var se=Te.useState(ue),he=(0,Se.Z)(se,2),ie=he[0],me=he[1],He=Te.useState(null),It=(0,Se.Z)(He,2),Xe=It[0],Ke=It[1];return Te.useEffect(function(){var yt=et(ie||[],ue||[],ae);(yt==null?void 0:yt.index)!==void 0&&(re==null||re(yt.index),Ke(ue[yt.index])),me(ue)},[ue]),[Xe]}var Ae=E(16089),Oe=(typeof navigator=="undefined"?"undefined":(0,ge.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),qe=Oe,Je=function(ue,ae,re,se){var he=(0,Te.useRef)(!1),ie=(0,Te.useRef)(null);function me(){clearTimeout(ie.current),he.current=!0,ie.current=setTimeout(function(){he.current=!1},50)}var He=(0,Te.useRef)({top:ue,bottom:ae,left:re,right:se});return He.current.top=ue,He.current.bottom=ae,He.current.left=re,He.current.right=se,function(It,Xe){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,yt=It?Xe<0&&He.current.left||Xe>0&&He.current.right:Xe<0&&He.current.top||Xe>0&&He.current.bottom;return Ke&&yt?(clearTimeout(ie.current),he.current=!1):(!yt||he.current)&&me(),!he.current&&yt}};function ct(ue,ae,re,se,he,ie,me){var He=(0,Te.useRef)(0),It=(0,Te.useRef)(null),Xe=(0,Te.useRef)(null),Ke=(0,Te.useRef)(!1),yt=Je(ae,re,se,he);function Bt(Fn,gn){if(Ae.Z.cancel(It.current),!yt(!1,gn)){var Lt=Fn;if(!Lt._virtualHandled)Lt._virtualHandled=!0;else return;He.current+=gn,Xe.current=gn,qe||Lt.preventDefault(),It.current=(0,Ae.Z)(function(){var Qt=Ke.current?10:1;me(He.current*Qt,!1),He.current=0})}}function _t(Fn,gn){me(gn,!0),qe||Fn.preventDefault()}var Qe=(0,Te.useRef)(null),tt=(0,Te.useRef)(null);function Vt(Fn){if(ue){Ae.Z.cancel(tt.current),tt.current=(0,Ae.Z)(function(){Qe.current=null},2);var gn=Fn.deltaX,Lt=Fn.deltaY,Qt=Fn.shiftKey,jt=gn,rt=Lt;(Qe.current==="sx"||!Qe.current&&Qt&&Lt&&!gn)&&(jt=Lt,rt=0,Qe.current="sx");var Nt=Math.abs(jt),fn=Math.abs(rt);Qe.current===null&&(Qe.current=ie&&Nt>fn?"x":"y"),Qe.current==="y"?Bt(Fn,rt):_t(Fn,jt)}}function on(Fn){ue&&(Ke.current=Fn.detail===Xe.current)}return[Vt,on]}function bt(ue,ae,re,se){var he=Te.useMemo(function(){return[new Map,[]]},[ue,re.id,se]),ie=(0,Se.Z)(he,2),me=ie[0],He=ie[1],It=function(Ke){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,Bt=me.get(Ke),_t=me.get(yt);if(Bt===void 0||_t===void 0)for(var Qe=ue.length,tt=He.length;tt<Qe;tt+=1){var Vt,on=ue[tt],Fn=ae(on);me.set(Fn,tt);var gn=(Vt=re.get(Fn))!==null&&Vt!==void 0?Vt:se;if(He[tt]=(He[tt-1]||0)+gn,Fn===Ke&&(Bt=tt),Fn===yt&&(_t=tt),Bt!==void 0&&_t!==void 0)break}return{top:He[Bt-1]||0,bottom:He[_t]}};return It}var st=E(38705),$e=E(17212),pe=function(){function ue(){(0,st.Z)(this,ue),(0,_e.Z)(this,"maps",void 0),(0,_e.Z)(this,"id",0),(0,_e.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 de(ue,ae,re){var se=Te.useState(0),he=(0,Se.Z)(se,2),ie=he[0],me=he[1],He=(0,Te.useRef)(new Map),It=(0,Te.useRef)(new Le),Xe=(0,Te.useRef)(0);function Ke(){Xe.current+=1}function yt(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ke();var Qe=function(){var on=!1;He.current.forEach(function(Fn,gn){if(Fn&&Fn.offsetParent){var Lt=Fn.offsetHeight,Qt=getComputedStyle(Fn),jt=Qt.marginTop,rt=Qt.marginBottom,Nt=xe(jt),fn=xe(rt),yn=Lt+Nt+fn;It.current.get(gn)!==yn&&(It.current.set(gn,yn),on=!0)}}),on&&me(function(Fn){return Fn+1})};if(_t)Qe();else{Xe.current+=1;var tt=Xe.current;Promise.resolve().then(function(){tt===Xe.current&&Qe()})}}function Bt(_t,Qe){var tt=ue(_t),Vt=He.current.get(tt);Qe?(He.current.set(tt,Qe),yt()):He.current.delete(tt),!Vt!=!Qe&&(Qe?ae==null||ae(_t):re==null||re(_t))}return(0,Te.useEffect)(function(){return Ke},[]),[Bt,yt,It.current,ie]}var Ct=14/15;function Ye(ue,ae,re){var se=(0,Te.useRef)(!1),he=(0,Te.useRef)(0),ie=(0,Te.useRef)(0),me=(0,Te.useRef)(null),He=(0,Te.useRef)(null),It,Xe=function(_t){if(se.current){var Qe=Math.ceil(_t.touches[0].pageX),tt=Math.ceil(_t.touches[0].pageY),Vt=he.current-Qe,on=ie.current-tt,Fn=Math.abs(Vt)>Math.abs(on);Fn?he.current=Qe:ie.current=tt;var gn=re(Fn,Fn?Vt:on,!1,_t);gn&&_t.preventDefault(),clearInterval(He.current),gn&&(He.current=setInterval(function(){Fn?Vt*=Ct:on*=Ct;var Lt=Math.floor(Fn?Vt:on);(!re(Fn,Lt,!0)||Math.abs(Lt)<=.1)&&clearInterval(He.current)},16))}},Ke=function(){se.current=!1,It()},yt=function(_t){It(),_t.touches.length===1&&!se.current&&(se.current=!0,he.current=Math.ceil(_t.touches[0].pageX),ie.current=Math.ceil(_t.touches[0].pageY),me.current=_t.target,me.current.addEventListener("touchmove",Xe,{passive:!1}),me.current.addEventListener("touchend",Ke,{passive:!0}))};It=function(){me.current&&(me.current.removeEventListener("touchmove",Xe),me.current.removeEventListener("touchend",Ke))},(0,We.Z)(function(){return ue&&ae.current.addEventListener("touchstart",yt,{passive:!0}),function(){var Bt;(Bt=ae.current)===null||Bt===void 0||Bt.removeEventListener("touchstart",yt),It(),clearInterval(He.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 Ie(ue,ae,re){Te.useEffect(function(){var se=ae.current;if(ue&&se){var he=!1,ie,me,He=function(){Ae.Z.cancel(ie)},It=function Bt(){He(),ie=(0,Ae.Z)(function(){re(me),Bt()})},Xe=function(){he=!1,He()},Ke=function(_t){if(!(_t.target.draggable||_t.button!==0)){var Qe=_t;Qe._virtualHandled||(Qe._virtualHandled=!0,he=!0)}},yt=function(_t){if(he){var Qe=it(_t,!1),tt=se.getBoundingClientRect(),Vt=tt.top,on=tt.bottom;if(Qe<=Vt){var Fn=Vt-Qe;me=-je(Fn),It()}else if(Qe>=on){var gn=Qe-on;me=je(gn),It()}else He()}};return se.addEventListener("mousedown",Ke),se.ownerDocument.addEventListener("mouseup",Xe),se.ownerDocument.addEventListener("mousemove",yt),se.ownerDocument.addEventListener("dragend",Xe),function(){se.removeEventListener("mousedown",Ke),se.ownerDocument.removeEventListener("mouseup",Xe),se.ownerDocument.removeEventListener("mousemove",yt),se.ownerDocument.removeEventListener("dragend",Xe),He()}}},[ue])}var ye=10;function vt(ue,ae,re,se,he,ie,me,He){var It=Te.useRef(),Xe=Te.useState(null),Ke=(0,Se.Z)(Xe,2),yt=Ke[0],Bt=Ke[1];return(0,We.Z)(function(){if(yt&&yt.times<ye){if(!ue.current){Bt(function(Dn){return(0,ce.Z)({},Dn)});return}ie();var _t=yt.targetAlign,Qe=yt.originAlign,tt=yt.index,Vt=yt.offset,on=ue.current.clientHeight,Fn=!1,gn=_t,Lt=null;if(on){for(var Qt=_t||Qe,jt=0,rt=0,Nt=0,fn=Math.min(ae.length-1,tt),yn=0;yn<=fn;yn+=1){var lt=he(ae[yn]);rt=jt;var Rt=re.get(lt);Nt=rt+(Rt===void 0?se:Rt),jt=Nt}for(var en=Qt==="top"?Vt:on-Vt,Pt=fn;Pt>=0;Pt-=1){var Yt=he(ae[Pt]),Gt=re.get(Yt);if(Gt===void 0){Fn=!0;break}if(en-=Gt,en<=0)break}switch(Qt){case"top":Lt=rt-Vt;break;case"bottom":Lt=Nt-on+Vt;break;default:{var Sn=ue.current.scrollTop,jn=Sn+on;rt<Sn?gn="top":Nt>jn&&(gn="bottom")}}Lt!==null&&me(Lt),Lt!==yt.lastTop&&(Fn=!0)}Fn&&Bt((0,ce.Z)((0,ce.Z)({},yt),{},{times:yt.times+1,targetAlign:gn,lastTop:Lt}))}},[yt,ue.current]),function(_t){if(_t==null){He();return}if(Ae.Z.cancel(It.current),typeof _t=="number")me(_t);else if(_t&&(0,ge.Z)(_t)==="object"){var Qe,tt=_t.align;"index"in _t?Qe=_t.index:Qe=ae.findIndex(function(Fn){return he(Fn)===_t.key});var Vt=_t.offset,on=Vt===void 0?0:Vt;Bt({times:0,index:Qe,offset:on,originAlign:tt})}}}var Ht=Te.forwardRef(function(ue,ae){var re=ue.prefixCls,se=ue.rtl,he=ue.scrollOffset,ie=ue.scrollRange,me=ue.onStartMove,He=ue.onStopMove,It=ue.onScroll,Xe=ue.horizontal,Ke=ue.spinSize,yt=ue.containerSize,Bt=ue.style,_t=ue.thumbStyle,Qe=ue.showScrollBar,tt=Te.useState(!1),Vt=(0,Se.Z)(tt,2),on=Vt[0],Fn=Vt[1],gn=Te.useState(null),Lt=(0,Se.Z)(gn,2),Qt=Lt[0],jt=Lt[1],rt=Te.useState(null),Nt=(0,Se.Z)(rt,2),fn=Nt[0],yn=Nt[1],lt=!se,Rt=Te.useRef(),en=Te.useRef(),Pt=Te.useState(Qe),Yt=(0,Se.Z)(Pt,2),Gt=Yt[0],Sn=Yt[1],jn=Te.useRef(),Dn=function(){Qe===!0||Qe===!1||(clearTimeout(jn.current),Sn(!0),jn.current=setTimeout(function(){Sn(!1)},3e3))},Zn=ie-yt||0,Ot=yt-Ke||0,Wt=Te.useMemo(function(){if(he===0||Zn===0)return 0;var dr=he/Zn;return dr*Ot},[he,Zn,Ot]),ln=function(br){br.stopPropagation(),br.preventDefault()},bn=Te.useRef({top:Wt,dragging:on,pageY:Qt,startTop:fn});bn.current={top:Wt,dragging:on,pageY:Qt,startTop:fn};var tn=function(br){Fn(!0),jt(it(br,Xe)),yn(bn.current.top),me(),br.stopPropagation(),br.preventDefault()};Te.useEffect(function(){var dr=function(Zr){Zr.preventDefault()},br=Rt.current,yr=en.current;return br.addEventListener("touchstart",dr,{passive:!1}),yr.addEventListener("touchstart",tn,{passive:!1}),function(){br.removeEventListener("touchstart",dr),yr.removeEventListener("touchstart",tn)}},[]);var wn=Te.useRef();wn.current=Zn;var Cn=Te.useRef();Cn.current=Ot,Te.useEffect(function(){if(on){var dr,br=function(Zr){var An=bn.current,$n=An.dragging,fr=An.pageY,ur=An.startTop;Ae.Z.cancel(dr);var kt=Rt.current.getBoundingClientRect(),Ut=yt/(Xe?kt.width:kt.height);if($n){var pt=(it(Zr,Xe)-fr)*Ut,Zt=ur;!lt&&Xe?Zt-=pt:Zt+=pt;var at=wn.current,gt=Cn.current,cn=gt?Zt/gt:0,ar=Math.ceil(cn*at);ar=Math.max(ar,0),ar=Math.min(ar,at),dr=(0,Ae.Z)(function(){It(ar,Xe)})}},yr=function(){Fn(!1),He()};return window.addEventListener("mousemove",br,{passive:!0}),window.addEventListener("touchmove",br,{passive:!0}),window.addEventListener("mouseup",yr,{passive:!0}),window.addEventListener("touchend",yr,{passive:!0}),function(){window.removeEventListener("mousemove",br),window.removeEventListener("touchmove",br),window.removeEventListener("mouseup",yr),window.removeEventListener("touchend",yr),Ae.Z.cancel(dr)}}},[on]),Te.useEffect(function(){return Dn(),function(){clearTimeout(jn.current)}},[he]),Te.useImperativeHandle(ae,function(){return{delayHidden:Dn}});var Pn="".concat(re,"-scrollbar"),vr={position:"absolute",visibility:Gt?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 Xe?(Object.assign(vr,{height:8,left:0,right:0,bottom:0}),Object.assign(Qn,(0,_e.Z)({height:"100%",width:Ke},lt?"left":"right",Wt))):(Object.assign(vr,(0,_e.Z)({width:8,top:0,bottom:0},lt?"right":"left",0)),Object.assign(Qn,{width:"100%",height:Ke,top:Wt})),Te.createElement("div",{ref:Rt,className:ke()(Pn,(0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(Pn,"-horizontal"),Xe),"".concat(Pn,"-vertical"),!Xe),"".concat(Pn,"-visible"),Gt)),style:(0,ce.Z)((0,ce.Z)({},vr),Bt),onMouseDown:ln,onMouseMove:Dn},Te.createElement("div",{ref:en,className:ke()("".concat(Pn,"-thumb"),(0,_e.Z)({},"".concat(Pn,"-thumb-moving"),on)),style:(0,ce.Z)((0,ce.Z)({},Qn),_t),onMouseDown:tn}))}),Et=Ht,Be=20;function ft(){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,Be),Math.floor(re)}var ot=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Xt=[],xt={overflowY:"auto",overflowAnchor:"none"};function wt(ue,ae){var re=ue.prefixCls,se=re===void 0?"rc-virtual-list":re,he=ue.className,ie=ue.height,me=ue.itemHeight,He=ue.fullHeight,It=He===void 0?!0:He,Xe=ue.style,Ke=ue.data,yt=ue.children,Bt=ue.itemKey,_t=ue.virtual,Qe=ue.direction,tt=ue.scrollWidth,Vt=ue.component,on=Vt===void 0?"div":Vt,Fn=ue.onScroll,gn=ue.onVirtualScroll,Lt=ue.onVisibleChange,Qt=ue.innerProps,jt=ue.extraRender,rt=ue.styles,Nt=ue.showScrollBar,fn=Nt===void 0?"optional":Nt,yn=(0,Ee.Z)(ue,ot),lt=Te.useCallback(function(Jn){return typeof Bt=="function"?Bt(Jn):Jn==null?void 0:Jn[Bt]},[Bt]),Rt=de(lt,null,null),en=(0,Se.Z)(Rt,4),Pt=en[0],Yt=en[1],Gt=en[2],Sn=en[3],jn=!!(_t!==!1&&ie&&me),Dn=Te.useMemo(function(){return Object.values(Gt.maps).reduce(function(Jn,xr){return Jn+xr},0)},[Gt.id,Gt.maps]),Zn=jn&&Ke&&(Math.max(me*Ke.length,Dn)>ie||!!tt),Ot=Qe==="rtl",Wt=ke()(se,(0,_e.Z)({},"".concat(se,"-rtl"),Ot),he),ln=Ke||Xt,bn=(0,Te.useRef)(),tn=(0,Te.useRef)(),wn=(0,Te.useRef)(),Cn=(0,Te.useState)(0),Pn=(0,Se.Z)(Cn,2),vr=Pn[0],Qn=Pn[1],dr=(0,Te.useState)(0),br=(0,Se.Z)(dr,2),yr=br[0],Vr=br[1],Zr=(0,Te.useState)(!1),An=(0,Se.Z)(Zr,2),$n=An[0],fr=An[1],ur=function(){fr(!0)},kt=function(){fr(!1)},Ut={getKey:lt};function pt(Jn){Qn(function(xr){var Sr;typeof Jn=="function"?Sr=Jn(xr):Sr=Jn;var tr=oa(Sr);return bn.current.scrollTop=tr,tr})}var Zt=(0,Te.useRef)({start:0,end:ln.length}),at=(0,Te.useRef)(),gt=St(ln,lt),cn=(0,Se.Z)(gt,1),ar=cn[0];at.current=ar;var mr=Te.useMemo(function(){if(!jn)return{scrollHeight:void 0,start:0,end:ln.length-1,offset:void 0};if(!Zn){var Jn;return{scrollHeight:((Jn=tn.current)===null||Jn===void 0?void 0:Jn.offsetHeight)||0,start:0,end:ln.length-1,offset:void 0}}for(var xr=0,Sr,tr,$r,sa=ln.length,Er=0;Er<sa;Er+=1){var Dr=ln[Er],jr=lt(Dr),Qr=Gt.get(jr),Na=xr+(Qr===void 0?me:Qr);Na>=vr&&Sr===void 0&&(Sr=Er,tr=xr),Na>vr+ie&&$r===void 0&&($r=Er),xr=Na}return Sr===void 0&&(Sr=0,tr=0,$r=Math.ceil(ie/me)),$r===void 0&&($r=ln.length-1),$r=Math.min($r+1,ln.length-1),{scrollHeight:xr,start:Sr,end:$r,offset:tr}},[Zn,jn,vr,ln,Sn,ie]),At=mr.scrollHeight,Tt=mr.start,Mt=mr.end,Kt=mr.offset;Zt.current.start=Tt,Zt.current.end=Mt,Te.useLayoutEffect(function(){var Jn=Gt.getRecord();if(Jn.size===1){var xr=Array.from(Jn.keys())[0],Sr=Jn.get(xr),tr=ln[Tt];if(tr&&Sr===void 0){var $r=lt(tr);if($r===xr){var sa=Gt.get(xr),Er=sa-me;pt(function(Dr){return Dr+Er})}}}Gt.resetRecord()},[At]);var On=Te.useState({width:0,height:ie}),Kn=(0,Se.Z)(On,2),Un=Kn[0],Hn=Kn[1],hr=function(xr){Hn({width:xr.offsetWidth,height:xr.offsetHeight})},Pr=(0,Te.useRef)(),Tr=(0,Te.useRef)(),Lr=Te.useMemo(function(){return ft(Un.width,tt)},[Un.width,tt]),Cr=Te.useMemo(function(){return ft(Un.height,At)},[Un.height,At]),Rr=At-ie,Xr=(0,Te.useRef)(Rr);Xr.current=Rr;function oa(Jn){var xr=Jn;return Number.isNaN(Xr.current)||(xr=Math.min(xr,Xr.current)),xr=Math.max(xr,0),xr}var ta=vr<=0,xa=vr>=Rr,Fa=yr<=0,Ur=yr>=tt,ya=Je(ta,xa,Fa,Ur),Xa=function(){return{x:Ot?-yr:yr,y:vr}},Ia=(0,Te.useRef)(Xa()),pa=(0,fe.zX)(function(Jn){if(gn){var xr=(0,ce.Z)((0,ce.Z)({},Xa()),Jn);(Ia.current.x!==xr.x||Ia.current.y!==xr.y)&&(gn(xr),Ia.current=xr)}});function kr(Jn,xr){var Sr=Jn;xr?((0,dt.flushSync)(function(){Vr(Sr)}),pa()):pt(Sr)}function Za(Jn){var xr=Jn.currentTarget.scrollTop;xr!==vr&&pt(xr),Fn==null||Fn(Jn),pa()}var Sa=function(xr){var Sr=xr,tr=tt?tt-Un.width:0;return Sr=Math.max(Sr,0),Sr=Math.min(Sr,tr),Sr},la=(0,fe.zX)(function(Jn,xr){xr?((0,dt.flushSync)(function(){Vr(function(Sr){var tr=Sr+(Ot?-Jn:Jn);return Sa(tr)})}),pa()):pt(function(Sr){var tr=Sr+Jn;return tr})}),Kr=ct(jn,ta,xa,Fa,Ur,!!tt,la),Ya=(0,Se.Z)(Kr,2),Mi=Ya[0],ji=Ya[1];Ye(jn,bn,function(Jn,xr,Sr,tr){var $r=tr;return ya(Jn,xr,Sr)?!1:!$r||!$r._virtualHandled?($r&&($r._virtualHandled=!0),Mi({preventDefault:function(){},deltaX:Jn?xr:0,deltaY:Jn?0:xr}),!0):!1}),Ie(Zn,bn,function(Jn){pt(function(xr){return xr+Jn})}),(0,We.Z)(function(){function Jn(Sr){var tr=ta&&Sr.detail<0,$r=xa&&Sr.detail>0;jn&&!tr&&!$r&&Sr.preventDefault()}var xr=bn.current;return xr.addEventListener("wheel",Mi,{passive:!1}),xr.addEventListener("DOMMouseScroll",ji,{passive:!0}),xr.addEventListener("MozMousePixelScroll",Jn,{passive:!1}),function(){xr.removeEventListener("wheel",Mi),xr.removeEventListener("DOMMouseScroll",ji),xr.removeEventListener("MozMousePixelScroll",Jn)}},[jn,ta,xa]),(0,We.Z)(function(){if(tt){var Jn=Sa(yr);Vr(Jn),pa({x:Jn})}},[Un.width,tt]);var za=function(){var xr,Sr;(xr=Pr.current)===null||xr===void 0||xr.delayHidden(),(Sr=Tr.current)===null||Sr===void 0||Sr.delayHidden()},Di=vt(bn,ln,Gt,me,lt,function(){return Yt(!0)},pt,za);Te.useImperativeHandle(ae,function(){return{nativeElement:wn.current,getScrollInfo:Xa,scrollTo:function(xr){function Sr(tr){return tr&&(0,ge.Z)(tr)==="object"&&("left"in tr||"top"in tr)}Sr(xr)?(xr.left!==void 0&&Vr(Sa(xr.left)),Di(xr.top)):Di(xr)}}}),(0,We.Z)(function(){if(Lt){var Jn=ln.slice(Tt,Mt+1);Lt(Jn,ln)}},[Tt,Mt,ln]);var mi=bt(ln,lt,Gt,me),Wi=jt==null?void 0:jt({start:Tt,end:Mt,virtual:Zn,offsetX:yr,offsetY:Kt,rtl:Ot,getSize:mi}),Ei=Pe(ln,Tt,Mt,tt,yr,Pt,yt,Ut),ei=null;ie&&(ei=(0,ce.Z)((0,_e.Z)({},It?"height":"maxHeight",ie),xt),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:wn,style:(0,ce.Z)((0,ce.Z)({},Xe),{},{position:"relative"}),className:Wt},Ar,yn),Te.createElement(De.Z,{onResize:hr},Te.createElement(on,{className:"".concat(se,"-holder"),style:ei,ref:bn,onScroll:Za,onMouseEnter:za},Te.createElement(Ne,{prefixCls:se,height:At,offsetX:yr,offsetY:Kt,scrollWidth:tt,onInnerResize:Yt,ref:tn,innerProps:Qt,rtl:Ot,extra:Wi},Ei))),Zn&&At>ie&&Te.createElement(Et,{ref:Pr,prefixCls:se,scrollOffset:vr,scrollRange:At,rtl:Ot,onScroll:kr,onStartMove:ur,onStopMove:kt,spinSize:Cr,containerSize:Un.height,style:rt==null?void 0:rt.verticalScrollBar,thumbStyle:rt==null?void 0:rt.verticalScrollBarThumb,showScrollBar:fn}),Zn&&tt>Un.width&&Te.createElement(Et,{ref:Tr,prefixCls:se,scrollOffset:yr,scrollRange:tt,rtl:Ot,onScroll:kr,onStartMove:ur,onStopMove:kt,spinSize:Lr,containerSize:Un.width,horizontal:!0,style:rt==null?void 0:rt.horizontalScrollBar,thumbStyle:rt==null?void 0:rt.horizontalScrollBarThumb,showScrollBar:fn}))}var ht=Te.forwardRef(wt);ht.displayName="List";var un=ht,zt=un},22061:function(Rn,qt,E){"use strict";E.d(qt,{Z5:function(){return Au},_l:function(){return ms},bK:function(){return rs}});var y=E(59301),ge=E(84255),ce=E(60499),_e=E(59781),Se=y.createContext(null),Ee=null;function Ce(te){te()}var ke=Ce,De=function(ne){return ke=ne},fe=function(){return ke};function We(){var te=fe(),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=[],Ve=ne;Ve;)ze.push(Ve),Ve=Ve.next;return ze},subscribe:function(ze){var Ve=!0,nt=oe={callback:ze,next:null,prev:oe};return nt.prev?nt.prev.next=nt:ne=nt,function(){!Ve||ne===null||(Ve=!1,nt.next?nt.next.prev=nt.prev:oe=nt.prev,nt.prev?nt.prev.next=nt.next:ne=nt.next)}}}}var Te={notify:function(){},get:function(){return[]}};function dt(te,ne){var oe,ve=Te;function ze(sn){return nn(),ve.subscribe(sn)}function Ve(){ve.notify()}function nt(){En.onStateChange&&En.onStateChange()}function mt(){return!!oe}function nn(){oe||(oe=ne?ne.addNestedSub(nt):te.subscribe(nt),ve=We())}function Bn(){oe&&(oe(),oe=void 0,ve.clear(),ve=Te)}var En={addNestedSub:ze,notifyNestedSubs:Ve,handleChangeWrapper:nt,isSubscribed:mt,trySubscribe:nn,tryUnsubscribe:Bn,getListeners:function(){return ve}};return En}var Ge=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect;function Ne(te){var ne=te.store,oe=te.context,ve=te.children,ze=(0,y.useMemo)(function(){var mt=dt(ne);return{store:ne,subscription:mt}},[ne]),Ve=(0,y.useMemo)(function(){return ne.getState()},[ne]);Ge(function(){var mt=ze.subscription;return mt.onStateChange=mt.notifyNestedSubs,mt.trySubscribe(),Ve!==ne.getState()&&mt.notifyNestedSubs(),function(){mt.tryUnsubscribe(),mt.onStateChange=null}},[ze,Ve]);var nt=oe||Se;return y.createElement(nt.Provider,{value:ze},ve)}var we=Ne,Pe=E(69010),Fe=E(94266),et=E.n(Fe),St=E(53410),Ae=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Oe=["reactReduxForwardedRef"],qe=[],Je=[null,null],ct=function(ne){try{return JSON.stringify(ne)}catch(oe){return String(ne)}};function bt(te,ne){var oe=te[1];return[ne.payload,oe+1]}function st(te,ne,oe){Ge(function(){return te.apply(void 0,ne)},oe)}function $e(te,ne,oe,ve,ze,Ve,nt){te.current=ve,ne.current=ze,oe.current=!1,Ve.current&&(Ve.current=null,nt())}function pe(te,ne,oe,ve,ze,Ve,nt,mt,nn,Bn){if(te){var En=!1,sn=null,mn=function(){if(!En){var va=ne.getState(),Oa,ka;try{Oa=ve(va,ze.current)}catch(oi){ka=oi,sn=oi}ka||(sn=null),Oa===Ve.current?nt.current||nn():(Ve.current=Oa,mt.current=Oa,nt.current=!0,Bn({type:"STORE_UPDATED",payload:{error:ka}}))}};oe.onStateChange=mn,oe.trySubscribe(),mn();var _n=function(){if(En=!0,oe.tryUnsubscribe(),oe.onStateChange=null,sn)throw sn};return _n}}var Le=function(){return[null,0]};function xe(te,ne){ne===void 0&&(ne={});var oe=ne,ve=oe.getDisplayName,ze=ve===void 0?function(ho){return"ConnectAdvanced("+ho+")"}:ve,Ve=oe.methodName,nt=Ve===void 0?"connectAdvanced":Ve,mt=oe.renderCountProp,nn=mt===void 0?void 0:mt,Bn=oe.shouldHandleStateChanges,En=Bn===void 0?!0:Bn,sn=oe.storeKey,mn=sn===void 0?"store":sn,_n=oe.withRef,sr=_n===void 0?!1:_n,va=oe.forwardRef,Oa=va===void 0?!1:va,ka=oe.context,oi=ka===void 0?Se:ka,Fi=(0,Pe.Z)(oe,Ae);if(0)var Ti;var xo=oi;return function(Zo){var Hl=Zo.displayName||Zo.name||"Component",Ho=ze(Hl),Vl=(0,ce.Z)({},Fi,{getDisplayName:ze,methodName:nt,renderCountProp:nn,shouldHandleStateChanges:En,storeKey:mn,displayName:Ho,wrappedComponentName:Hl,WrappedComponent:Zo}),us=Fi.pure;function hs(vs){return te(vs.dispatch,Vl)}var lu=us?y.useMemo:function(vs){return vs()};function qs(vs){var Mu=(0,y.useMemo)(function(){var yc=vs.reactReduxForwardedRef,zc=(0,Pe.Z)(vs,Oe);return[vs.context,yc,zc]},[vs]),uu=Mu[0],vc=Mu[1],Ju=Mu[2],Ru=(0,y.useMemo)(function(){return uu&&uu.Consumer&&(0,St.isContextConsumer)(y.createElement(uu.Consumer,null))?uu:xo},[uu,xo]),cu=(0,y.useContext)(Ru),qu=!!vs.store&&!!vs.store.getState&&!!vs.store.dispatch,Ic=!!cu&&!!cu.store,du=qu?vs.store:cu.store,gc=(0,y.useMemo)(function(){return hs(du)},[du]),Pc=(0,y.useMemo)(function(){if(!En)return Je;var yc=dt(du,qu?null:cu.subscription),zc=yc.notifyNestedSubs.bind(yc);return[yc,zc]},[du,qu,cu]),lc=Pc[0],Ac=Pc[1],Oc=(0,y.useMemo)(function(){return qu?cu:(0,ce.Z)({},cu,{subscription:lc})},[qu,cu,lc]),Hc=(0,y.useReducer)(bt,qe,Le),Uc=Hc[0],Nc=Uc[0],Xc=Hc[1];if(Nc&&Nc.error)throw Nc.error;var Vc=(0,y.useRef)(),$c=(0,y.useRef)(Ju),_c=(0,y.useRef)(),Kc=(0,y.useRef)(!1),jc=lu(function(){return _c.current&&Ju===$c.current?_c.current:gc(du.getState(),Ju)},[du,Nc,Ju]);st($e,[$c,Vc,Kc,Ju,jc,_c,Ac]),st(pe,[En,du,lc,gc,$c,Vc,Kc,_c,Ac,Xc],[du,lc,gc]);var Wc=(0,y.useMemo)(function(){return y.createElement(Zo,(0,ce.Z)({},jc,{ref:vc}))},[vc,Zo,jc]),Yc=(0,y.useMemo)(function(){return En?y.createElement(Ru.Provider,{value:Oc},Wc):Wc},[Ru,Wc,Oc]);return Yc}var Zs=us?y.memo(qs):qs;if(Zs.WrappedComponent=Zo,Zs.displayName=qs.displayName=Ho,Oa){var su=y.forwardRef(function(Mu,uu){return y.createElement(Zs,(0,ce.Z)({},Mu,{reactReduxForwardedRef:uu}))});return su.displayName=Ho,su.WrappedComponent=Zo,et()(su,Zo)}return et()(Zs,Zo)}}function de(te,ne){return te===ne?te!==0||ne!==0||1/te===1/ne:te!==te&&ne!==ne}function Ct(te,ne){if(de(te,ne))return!0;if(typeof te!="object"||te===null||typeof ne!="object"||ne===null)return!1;var oe=Object.keys(te),ve=Object.keys(ne);if(oe.length!==ve.length)return!1;for(var ze=0;ze<oe.length;ze++)if(!Object.prototype.hasOwnProperty.call(ne,oe[ze])||!de(te[oe[ze]],ne[oe[ze]]))return!1;return!0}function Ye(te,ne){var oe={},ve=function(nt){var mt=te[nt];typeof mt=="function"&&(oe[nt]=function(){return ne(mt.apply(void 0,arguments))})};for(var ze in te)ve(ze);return oe}function je(te){return function(oe,ve){var ze=te(oe,ve);function Ve(){return ze}return Ve.dependsOnOwnProps=!1,Ve}}function it(te){return te.dependsOnOwnProps!==null&&te.dependsOnOwnProps!==void 0?!!te.dependsOnOwnProps:te.length!==1}function Ie(te,ne){return function(ve,ze){var Ve=ze.displayName,nt=function(nn,Bn){return nt.dependsOnOwnProps?nt.mapToProps(nn,Bn):nt.mapToProps(nn)};return nt.dependsOnOwnProps=!0,nt.mapToProps=function(nn,Bn){nt.mapToProps=te,nt.dependsOnOwnProps=it(te);var En=nt(nn,Bn);return typeof En=="function"&&(nt.mapToProps=En,nt.dependsOnOwnProps=it(En),En=nt(nn,Bn)),En},nt}}function ye(te){return typeof te=="function"?Ie(te,"mapDispatchToProps"):void 0}function vt(te){return te?void 0:je(function(ne){return{dispatch:ne}})}function Ht(te){return te&&typeof te=="object"?je(function(ne){return Ye(te,ne)}):void 0}var Et=[ye,vt,Ht];function Be(te){return typeof te=="function"?Ie(te,"mapStateToProps"):void 0}function ft(te){return te?void 0:je(function(){return{}})}var ot=[Be,ft];function Xt(te,ne,oe){return(0,ce.Z)({},oe,te,ne)}function xt(te){return function(oe,ve){var ze=ve.displayName,Ve=ve.pure,nt=ve.areMergedPropsEqual,mt=!1,nn;return function(En,sn,mn){var _n=te(En,sn,mn);return mt?(!Ve||!nt(_n,nn))&&(nn=_n):(mt=!0,nn=_n),nn}}}function wt(te){return typeof te=="function"?xt(te):void 0}function ht(te){return te?void 0:function(){return Xt}}var un=[wt,ht],zt=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ue(te,ne,oe,ve){return function(Ve,nt){return oe(te(Ve,nt),ne(ve,nt),nt)}}function ae(te,ne,oe,ve,ze){var Ve=ze.areStatesEqual,nt=ze.areOwnPropsEqual,mt=ze.areStatePropsEqual,nn=!1,Bn,En,sn,mn,_n;function sr(Fi,Ti){return Bn=Fi,En=Ti,sn=te(Bn,En),mn=ne(ve,En),_n=oe(sn,mn,En),nn=!0,_n}function va(){return sn=te(Bn,En),ne.dependsOnOwnProps&&(mn=ne(ve,En)),_n=oe(sn,mn,En),_n}function Oa(){return te.dependsOnOwnProps&&(sn=te(Bn,En)),ne.dependsOnOwnProps&&(mn=ne(ve,En)),_n=oe(sn,mn,En),_n}function ka(){var Fi=te(Bn,En),Ti=!mt(Fi,sn);return sn=Fi,Ti&&(_n=oe(sn,mn,En)),_n}function oi(Fi,Ti){var xo=!nt(Ti,En),ho=!Ve(Fi,Bn,Ti,En);return Bn=Fi,En=Ti,xo&&ho?va():xo?Oa():ho?ka():_n}return function(Ti,xo){return nn?oi(Ti,xo):sr(Ti,xo)}}function re(te,ne){var oe=ne.initMapStateToProps,ve=ne.initMapDispatchToProps,ze=ne.initMergeProps,Ve=(0,Pe.Z)(ne,zt),nt=oe(te,Ve),mt=ve(te,Ve),nn=ze(te,Ve),Bn=Ve.pure?ae:ue;return Bn(nt,mt,nn,te,Ve)}var se=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function he(te,ne,oe){for(var ve=ne.length-1;ve>=0;ve--){var ze=ne[ve](te);if(ze)return ze}return function(Ve,nt){throw new Error("Invalid value of type "+typeof te+" for "+oe+" argument when connecting component "+nt.wrappedComponentName+".")}}function ie(te,ne){return te===ne}function me(te){var ne=te===void 0?{}:te,oe=ne.connectHOC,ve=oe===void 0?xe:oe,ze=ne.mapStateToPropsFactories,Ve=ze===void 0?ot:ze,nt=ne.mapDispatchToPropsFactories,mt=nt===void 0?Et:nt,nn=ne.mergePropsFactories,Bn=nn===void 0?un:nn,En=ne.selectorFactory,sn=En===void 0?re:En;return function(_n,sr,va,Oa){Oa===void 0&&(Oa={});var ka=Oa,oi=ka.pure,Fi=oi===void 0?!0:oi,Ti=ka.areStatesEqual,xo=Ti===void 0?ie:Ti,ho=ka.areOwnPropsEqual,Zo=ho===void 0?Ct:ho,Hl=ka.areStatePropsEqual,Ho=Hl===void 0?Ct:Hl,Vl=ka.areMergedPropsEqual,us=Vl===void 0?Ct:Vl,hs=(0,Pe.Z)(ka,se),lu=he(_n,Ve,"mapStateToProps"),qs=he(sr,mt,"mapDispatchToProps"),Zs=he(va,Bn,"mergeProps");return ve(sn,(0,ce.Z)({methodName:"connect",getDisplayName:function(vs){return"Connect("+vs+")"},shouldHandleStateChanges:!!_n,initMapStateToProps:lu,initMapDispatchToProps:qs,initMergeProps:Zs,pure:Fi,areStatesEqual:xo,areOwnPropsEqual:Zo,areStatePropsEqual:Ho,areMergedPropsEqual:us},hs))}}var He=me();function It(){var te=useContext(ReactReduxContext);return te}function Xe(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(){var ve=ne(),ze=ve.store;return ze}}var Ke=null;function yt(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultStore:createStoreHook(te);return function(){var ve=ne();return ve.dispatch}}var Bt=null,_t=function(ne,oe){return ne===oe};function Qe(te,ne,oe,ve){var ze=useReducer(function(sr){return sr+1},0),Ve=ze[1],nt=useMemo(function(){return createSubscription(oe,ve)},[oe,ve]),mt=useRef(),nn=useRef(),Bn=useRef(),En=useRef(),sn=oe.getState(),mn;try{if(te!==nn.current||sn!==Bn.current||mt.current){var _n=te(sn);En.current===void 0||!ne(_n,En.current)?mn=_n:mn=En.current}else mn=En.current}catch(sr){throw mt.current&&(sr.message+=`
|
|
|
The error may be correlated with this previous error:
|
|
|
`+mt.current.stack+`
|
|
|
|
|
|
`),sr}return useIsomorphicLayoutEffect(function(){nn.current=te,Bn.current=sn,En.current=mn,mt.current=void 0}),useIsomorphicLayoutEffect(function(){function sr(){try{var va=oe.getState();if(va===Bn.current)return;var Oa=nn.current(va);if(ne(Oa,En.current))return;En.current=Oa,Bn.current=va}catch(ka){mt.current=ka}Ve()}return nt.onStateChange=sr,nt.trySubscribe(),sr(),function(){return nt.tryUnsubscribe()}},[oe,nt]),mn}function tt(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(ve,ze){ze===void 0&&(ze=_t);var Ve=ne(),nt=Ve.store,mt=Ve.subscription,nn=Qe(ve,ze,nt,mt);return useDebugValue(nn),nn}}var Vt=null,on=E(4676);De(on.unstable_batchedUpdates);function Fn(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 gn(te,ne){var oe=(0,y.useState)(function(){return{inputs:ne,result:te()}})[0],ve=(0,y.useRef)(!0),ze=(0,y.useRef)(oe),Ve=ve.current||!!(ne&&ze.current.inputs&&Fn(ne,ze.current.inputs)),nt=Ve?ze.current:{inputs:ne,result:te()};return(0,y.useEffect)(function(){ve.current=!1,ze.current=nt},[nt]),nt.result}function Lt(te,ne){return gn(function(){return te},ne)}var Qt=gn,jt=Lt,rt=!0,Nt="Invariant failed";function fn(te,ne){if(!te){if(rt)throw new Error(Nt);var oe=typeof ne=="function"?ne():ne,ve=oe?"".concat(Nt,": ").concat(oe):Nt;throw new Error(ve)}}var yn=function(ne){var oe=ne.top,ve=ne.right,ze=ne.bottom,Ve=ne.left,nt=ve-Ve,mt=ze-oe,nn={top:oe,right:ve,bottom:ze,left:Ve,width:nt,height:mt,x:Ve,y:oe,center:{x:(ve+Ve)/2,y:(ze+oe)/2}};return nn},lt=function(ne,oe){return{top:ne.top-oe.top,left:ne.left-oe.left,bottom:ne.bottom+oe.bottom,right:ne.right+oe.right}},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.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},Pt={top:0,right:0,bottom:0,left:0},Yt=function(ne){var oe=ne.borderBox,ve=ne.margin,ze=ve===void 0?Pt:ve,Ve=ne.border,nt=Ve===void 0?Pt:Ve,mt=ne.padding,nn=mt===void 0?Pt:mt,Bn=yn(lt(oe,ze)),En=yn(Rt(oe,nt)),sn=yn(Rt(En,nn));return{marginBox:Bn,borderBox:yn(oe),paddingBox:En,contentBox:sn,margin:ze,border:nt,padding:nn}},Gt=function(ne){var oe=ne.slice(0,-2),ve=ne.slice(-2);if(ve!=="px")return 0;var ze=Number(oe);return isNaN(ze)&&fn(!1),ze},Sn=function(){return{x:window.pageXOffset,y:window.pageYOffset}},jn=function(ne,oe){var ve=ne.borderBox,ze=ne.border,Ve=ne.margin,nt=ne.padding,mt=en(ve,oe);return Yt({borderBox:mt,border:ze,margin:Ve,padding:nt})},Dn=function(ne,oe){return oe===void 0&&(oe=Sn()),jn(ne,oe)},Zn=function(ne,oe){var ve={top:Gt(oe.marginTop),right:Gt(oe.marginRight),bottom:Gt(oe.marginBottom),left:Gt(oe.marginLeft)},ze={top:Gt(oe.paddingTop),right:Gt(oe.paddingRight),bottom:Gt(oe.paddingBottom),left:Gt(oe.paddingLeft)},Ve={top:Gt(oe.borderTopWidth),right:Gt(oe.borderRightWidth),bottom:Gt(oe.borderBottomWidth),left:Gt(oe.borderLeftWidth)};return Yt({borderBox:ne,margin:ve,padding:ze,border:Ve})},Ot=function(ne){var oe=ne.getBoundingClientRect(),ve=window.getComputedStyle(ne);return Zn(oe,ve)},Wt=Number.isNaN||function(ne){return typeof ne=="number"&&ne!==ne};function ln(te,ne){return!!(te===ne||Wt(te)&&Wt(ne))}function bn(te,ne){if(te.length!==ne.length)return!1;for(var oe=0;oe<te.length;oe++)if(!ln(te[oe],ne[oe]))return!1;return!0}function tn(te,ne){ne===void 0&&(ne=bn);var oe,ve=[],ze,Ve=!1;function nt(){for(var mt=[],nn=0;nn<arguments.length;nn++)mt[nn]=arguments[nn];return Ve&&oe===this&&ne(mt,ve)||(ze=te.apply(this,mt),Ve=!0,oe=this,ve=mt),ze}return nt}var wn=tn,Cn=function(ne){var oe=[],ve=null,ze=function(){for(var nt=arguments.length,mt=new Array(nt),nn=0;nn<nt;nn++)mt[nn]=arguments[nn];oe=mt,!ve&&(ve=requestAnimationFrame(function(){ve=null,ne.apply(void 0,oe)}))};return ze.cancel=function(){ve&&(cancelAnimationFrame(ve),ve=null)},ze},Pn=Cn,vr=!0,Qn=/[ \t]{2,}/g,dr=/^[ \t]*/gm,br=function(ne){return ne.replace(Qn," ").replace(dr,"").trim()},yr=function(ne){return br(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+br(ne)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},Vr=function(ne){return[yr(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Zr="__react-beautiful-dnd-disable-dev-warnings";function An(te,ne){var oe;vr||typeof window!="undefined"&&window[Zr]||(oe=console)[te].apply(oe,Vr(ne))}var $n=An.bind(null,"warn"),fr=An.bind(null,"error");function ur(){}function kt(te,ne){return(0,ce.Z)({},te,{},ne)}function Ut(te,ne,oe){var ve=ne.map(function(ze){var Ve=kt(oe,ze.options);return te.addEventListener(ze.eventName,ze.fn,Ve),function(){te.removeEventListener(ze.eventName,ze.fn,Ve)}});return function(){ve.forEach(function(Ve){Ve()})}}var pt=!0,Zt="Invariant failed";function at(te){this.message=te}at.prototype.toString=function(){return this.message};function gt(te,ne){if(!te)throw pt?new at(Zt):new at(Zt+": "+(ne||""))}var cn=function(te){(0,ge.Z)(ne,te);function ne(){for(var ve,ze=arguments.length,Ve=new Array(ze),nt=0;nt<ze;nt++)Ve[nt]=arguments[nt];return ve=te.call.apply(te,[this].concat(Ve))||this,ve.callbacks=null,ve.unbind=ur,ve.onWindowError=function(mt){var nn=ve.getCallbacks();nn.isDragging()&&nn.tryAbort();var Bn=mt.error;Bn instanceof at&&mt.preventDefault()},ve.getCallbacks=function(){if(!ve.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ve.callbacks},ve.setCallbacks=function(mt){ve.callbacks=mt},ve}var oe=ne.prototype;return oe.componentDidMount=function(){this.unbind=Ut(window,[{eventName:"error",fn:this.onWindowError}])},oe.componentWillUnmount=function(){this.unbind()},oe.componentDidCatch=function(ze){if(ze instanceof at){this.setState({});return}throw ze},oe.render=function(){return this.props.children(this.setCallbacks)},ne}(y.Component),ar=`
|
|
|
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
|
|
|
`,mr=function(ne){return ne+1},At=function(ne){return`
|
|
|
You have lifted an item in position `+mr(ne.source.index)+`
|
|
|
`},Tt=function(ne,oe){var ve=ne.droppableId===oe.droppableId,ze=mr(ne.index),Ve=mr(oe.index);return ve?`
|
|
|
You have moved the item from position `+ze+`
|
|
|
to position `+Ve+`
|
|
|
`:`
|
|
|
You have moved the item from position `+ze+`
|
|
|
in list `+ne.droppableId+`
|
|
|
to list `+oe.droppableId+`
|
|
|
in position `+Ve+`
|
|
|
`},Mt=function(ne,oe,ve){var ze=oe.droppableId===ve.droppableId;return ze?`
|
|
|
The item `+ne+`
|
|
|
has been combined with `+ve.draggableId:`
|
|
|
The item `+ne+`
|
|
|
in list `+oe.droppableId+`
|
|
|
has been combined with `+ve.draggableId+`
|
|
|
in list `+ve.droppableId+`
|
|
|
`},Kt=function(ne){var oe=ne.destination;if(oe)return Tt(ne.source,oe);var ve=ne.combine;return ve?Mt(ne.draggableId,ne.source,ve):"You are over an area that cannot be dropped on"},On=function(ne){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+mr(ne.index)+`
|
|
|
`},Kn=function(ne){if(ne.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+On(ne.source)+`
|
|
|
`;var oe=ne.destination,ve=ne.combine;return oe?`
|
|
|
You have dropped the item.
|
|
|
`+Tt(ne.source,oe)+`
|
|
|
`:ve?`
|
|
|
You have dropped the item.
|
|
|
`+Mt(ne.draggableId,ne.source,ve)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+On(ne.source)+`
|
|
|
`},Un={dragHandleUsageInstructions:ar,onDragStart:At,onDragUpdate:Kt,onDragEnd:Kn},Hn={x:0,y:0},hr=function(ne,oe){return{x:ne.x+oe.x,y:ne.y+oe.y}},Pr=function(ne,oe){return{x:ne.x-oe.x,y:ne.y-oe.y}},Tr=function(ne,oe){return ne.x===oe.x&&ne.y===oe.y},Lr=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},Cr=function(ne,oe,ve){var ze;return ve===void 0&&(ve=0),ze={},ze[ne]=oe,ze[ne==="x"?"y":"x"]=ve,ze},Rr=function(ne,oe){return Math.sqrt(Math.pow(oe.x-ne.x,2)+Math.pow(oe.y-ne.y,2))},Xr=function(ne,oe){return Math.min.apply(Math,oe.map(function(ve){return Rr(ne,ve)}))},oa=function(ne){return function(oe){return{x:ne(oe.x),y:ne(oe.y)}}},ta=function(te,ne){var oe=yn({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},xa=function(ne,oe){return{top:ne.top+oe.y,left:ne.left+oe.x,bottom:ne.bottom+oe.y,right:ne.right+oe.x}},Fa=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}]},Ur={top:0,right:0,bottom:0,left:0},ya=function(ne,oe){return oe?xa(ne,oe.scroll.diff.displacement):ne},Xa=function(ne,oe,ve){if(ve&&ve.increasedBy){var ze;return(0,ce.Z)({},ne,(ze={},ze[oe.end]=ne[oe.end]+ve.increasedBy[oe.line],ze))}return ne},Ia=function(ne,oe){return oe&&oe.shouldClipSubject?ta(oe.pageMarginBox,ne):yn(ne)},pa=function(te){var ne=te.page,oe=te.withPlaceholder,ve=te.axis,ze=te.frame,Ve=ya(ne.marginBox,ze),nt=Xa(Ve,ve,oe),mt=Ia(nt,ze);return{page:ne,withPlaceholder:oe,active:mt}},kr=function(te,ne){te.frame||gt(!1);var oe=te.frame,ve=Pr(ne,oe.scroll.initial),ze=Lr(ve),Ve=(0,ce.Z)({},oe,{scroll:{initial:oe.scroll.initial,current:ne,diff:{value:ve,displacement:ze},max:oe.scroll.max}}),nt=pa({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:Ve}),mt=(0,ce.Z)({},te,{frame:Ve,subject:nt});return mt};function Za(te){return Number.isInteger?Number.isInteger(te):typeof te=="number"&&isFinite(te)&&Math.floor(te)===te}function Sa(te){return Object.values?Object.values(te):Object.keys(te).map(function(ne){return te[ne]})}function la(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 Kr(te,ne){if(te.find)return te.find(ne);var oe=la(te,ne);if(oe!==-1)return te[oe]}function Ya(te){return Array.prototype.slice.call(te)}var Mi=wn(function(te){return te.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),ji=wn(function(te){return te.reduce(function(ne,oe){return ne[oe.descriptor.id]=oe,ne},{})}),za=wn(function(te){return Sa(te)}),Di=wn(function(te){return Sa(te)}),mi=wn(function(te,ne){var oe=Di(ne).filter(function(ve){return te===ve.descriptor.droppableId}).sort(function(ve,ze){return ve.descriptor.index-ze.descriptor.index});return oe});function Wi(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 ei=wn(function(te,ne){return ne.filter(function(oe){return oe.descriptor.id!==te.descriptor.id})}),Ar=function(te){var ne=te.isMovingForward,oe=te.draggable,ve=te.destination,ze=te.insideDestination,Ve=te.previousImpact;if(!ve.isCombineEnabled)return null;var nt=Wi(Ve);if(!nt)return null;function mt(va){var Oa={type:"COMBINE",combine:{draggableId:va,droppableId:ve.descriptor.id}};return(0,ce.Z)({},Ve,{at:Oa})}var nn=Ve.displaced.all,Bn=nn.length?nn[0]:null;if(ne)return Bn?mt(Bn):null;var En=ei(oe,ze);if(!Bn){if(!En.length)return null;var sn=En[En.length-1];return mt(sn.descriptor.id)}var mn=la(En,function(va){return va.descriptor.id===Bn});mn===-1&>(!1);var _n=mn-1;if(_n<0)return null;var sr=En[_n];return mt(sr.descriptor.id)},Jn=function(te,ne){return te.descriptor.droppableId===ne.descriptor.id},xr={point:Hn,value:0},Sr={invisible:{},visible:{},all:[]},tr={displaced:Sr,displacedBy:xr,at:null},$r=function(te,ne){return function(oe){return te<=oe&&oe<=ne}},sa=function(te){var ne=$r(te.top,te.bottom),oe=$r(te.left,te.right);return function(ve){var ze=ne(ve.top)&&ne(ve.bottom)&&oe(ve.left)&&oe(ve.right);if(ze)return!0;var Ve=ne(ve.top)||ne(ve.bottom),nt=oe(ve.left)||oe(ve.right),mt=Ve&&nt;if(mt)return!0;var nn=ve.top<te.top&&ve.bottom>te.bottom,Bn=ve.left<te.left&&ve.right>te.right,En=nn&&Bn;if(En)return!0;var sn=nn&&nt||Bn&&Ve;return sn}},Er=function(te){var ne=$r(te.top,te.bottom),oe=$r(te.left,te.right);return function(ve){var ze=ne(ve.top)&&ne(ve.bottom)&&oe(ve.left)&&oe(ve.right);return ze}},Dr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},jr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Qr=function(te){return function(ne){var oe=$r(ne.top,ne.bottom),ve=$r(ne.left,ne.right);return function(ze){return te===Dr?oe(ze.top)&&oe(ze.bottom):ve(ze.left)&&ve(ze.right)}}},Na=function(ne,oe){var ve=oe.frame?oe.frame.scroll.diff.displacement:Hn;return xa(ne,ve)},$a=function(ne,oe,ve){return oe.subject.active?ve(oe.subject.active)(ne):!1},ea=function(ne,oe,ve){return ve(oe)(ne)},ai=function(ne){var oe=ne.target,ve=ne.destination,ze=ne.viewport,Ve=ne.withDroppableDisplacement,nt=ne.isVisibleThroughFrameFn,mt=Ve?Na(oe,ve):oe;return $a(mt,ve,nt)&&ea(mt,ze,nt)},gi=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:sa}))},zi=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:Er}))},Ui=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:Qr(ne.destination.axis)}))},Ji=function(ne,oe,ve){if(typeof ve=="boolean")return ve;if(!oe)return!0;var ze=oe.invisible,Ve=oe.visible;if(ze[ne])return!1;var nt=Ve[ne];return nt?nt.shouldAnimate:!0};function Yi(te,ne){var oe=te.page.marginBox,ve={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return yn(lt(oe,ve))}function co(te){var ne=te.afterDragging,oe=te.destination,ve=te.displacedBy,ze=te.viewport,Ve=te.forceShouldAnimate,nt=te.last;return ne.reduce(function(nn,Bn){var En=Yi(Bn,ve),sn=Bn.descriptor.id;nn.all.push(sn);var mn=gi({target:En,destination:oe,viewport:ze,withDroppableDisplacement:!0});if(!mn)return nn.invisible[Bn.descriptor.id]=!0,nn;var _n=Ji(sn,nt,Ve),sr={draggableId:sn,shouldAnimate:_n};return nn.visible[sn]=sr,nn},{all:[],visible:{},invisible:{}})}function No(te,ne){if(!te.length)return 0;var oe=te[te.length-1].descriptor.index;return ne.inHomeList?oe:oe+1}function $o(te){var ne=te.insideDestination,oe=te.inHomeList,ve=te.displacedBy,ze=te.destination,Ve=No(ne,{inHomeList:oe});return{displaced:Sr,displacedBy:ve,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:Ve}}}}function Wo(te){var ne=te.draggable,oe=te.insideDestination,ve=te.destination,ze=te.viewport,Ve=te.displacedBy,nt=te.last,mt=te.index,nn=te.forceShouldAnimate,Bn=Jn(ne,ve);if(mt==null)return $o({insideDestination:oe,inHomeList:Bn,displacedBy:Ve,destination:ve});var En=Kr(oe,function(va){return va.descriptor.index===mt});if(!En)return $o({insideDestination:oe,inHomeList:Bn,displacedBy:Ve,destination:ve});var sn=ei(ne,oe),mn=oe.indexOf(En),_n=sn.slice(mn),sr=co({afterDragging:_n,destination:ve,displacedBy:Ve,last:nt,viewport:ze.frame,forceShouldAnimate:nn});return{displaced:sr,displacedBy:Ve,at:{type:"REORDER",destination:{droppableId:ve.descriptor.id,index:mt}}}}function Ba(te,ne){return!!ne.effected[te]}var Ii=function(te){var ne=te.isMovingForward,oe=te.destination,ve=te.draggables,ze=te.combine,Ve=te.afterCritical;if(!oe.isCombineEnabled)return null;var nt=ze.draggableId,mt=ve[nt],nn=mt.descriptor.index,Bn=Ba(nt,Ve);return Bn?ne?nn:nn-1:ne?nn+1:nn},ri=function(te){var ne=te.isMovingForward,oe=te.isInHomeList,ve=te.insideDestination,ze=te.location;if(!ve.length)return null;var Ve=ze.index,nt=ne?Ve+1:Ve-1,mt=ve[0].descriptor.index,nn=ve[ve.length-1].descriptor.index,Bn=oe?nn:nn+1;return nt<mt||nt>Bn?null:nt},So=function(te){var ne=te.isMovingForward,oe=te.isInHomeList,ve=te.draggable,ze=te.draggables,Ve=te.destination,nt=te.insideDestination,mt=te.previousImpact,nn=te.viewport,Bn=te.afterCritical,En=mt.at;if(En||gt(!1),En.type==="REORDER"){var sn=ri({isMovingForward:ne,isInHomeList:oe,location:En.destination,insideDestination:nt});return sn==null?null:Wo({draggable:ve,insideDestination:nt,destination:Ve,viewport:nn,last:mt.displaced,displacedBy:mt.displacedBy,index:sn})}var mn=Ii({isMovingForward:ne,destination:Ve,displaced:mt.displaced,draggables:ze,combine:En.combine,afterCritical:Bn});return mn==null?null:Wo({draggable:ve,insideDestination:nt,destination:Ve,viewport:nn,last:mt.displaced,displacedBy:mt.displacedBy,index:mn})},ci=function(te){var ne=te.displaced,oe=te.afterCritical,ve=te.combineWith,ze=te.displacedBy,Ve=!!(ne.visible[ve]||ne.invisible[ve]);return Ba(ve,oe)?Ve?Hn:Lr(ze.point):Ve?ze.point:Hn},il=function(te){var ne=te.afterCritical,oe=te.impact,ve=te.draggables,ze=Ei(oe);ze||gt(!1);var Ve=ze.draggableId,nt=ve[Ve].page.borderBox.center,mt=ci({displaced:oe.displaced,afterCritical:ne,combineWith:Ve,displacedBy:oe.displacedBy});return hr(nt,mt)},$l=function(ne,oe){return oe.margin[ne.start]+oe.borderBox[ne.size]/2},Ol=function(ne,oe){return oe.margin[ne.end]+oe.borderBox[ne.size]/2},Vo=function(ne,oe,ve){return oe[ne.crossAxisStart]+ve.margin[ne.crossAxisStart]+ve.borderBox[ne.crossAxisSize]/2},Yo=function(ne){var oe=ne.axis,ve=ne.moveRelativeTo,ze=ne.isMoving;return Cr(oe.line,ve.marginBox[oe.end]+$l(oe,ze),Vo(oe,ve.marginBox,ze))},no=function(ne){var oe=ne.axis,ve=ne.moveRelativeTo,ze=ne.isMoving;return Cr(oe.line,ve.marginBox[oe.start]-Ol(oe,ze),Vo(oe,ve.marginBox,ze))},Nl=function(ne){var oe=ne.axis,ve=ne.moveInto,ze=ne.isMoving;return Cr(oe.line,ve.contentBox[oe.start]+$l(oe,ze),Vo(oe,ve.contentBox,ze))},Ul=function(te){var ne=te.impact,oe=te.draggable,ve=te.draggables,ze=te.droppable,Ve=te.afterCritical,nt=mi(ze.descriptor.id,ve),mt=oe.page,nn=ze.axis;if(!nt.length)return Nl({axis:nn,moveInto:ze.page,isMoving:mt});var Bn=ne.displaced,En=ne.displacedBy,sn=Bn.all[0];if(sn){var mn=ve[sn];if(Ba(sn,Ve))return no({axis:nn,moveRelativeTo:mn.page,isMoving:mt});var _n=jn(mn.page,En.point);return no({axis:nn,moveRelativeTo:_n,isMoving:mt})}var sr=nt[nt.length-1];if(sr.descriptor.id===oe.descriptor.id)return mt.borderBox.center;if(Ba(sr.descriptor.id,Ve)){var va=jn(sr.page,Lr(Ve.displacedBy.point));return Yo({axis:nn,moveRelativeTo:va,isMoving:mt})}return Yo({axis:nn,moveRelativeTo:sr.page,isMoving:mt})},_l=function(te,ne){var oe=te.frame;return oe?hr(ne,oe.scroll.diff.displacement):ne},Io=function(ne){var oe=ne.impact,ve=ne.draggable,ze=ne.droppable,Ve=ne.draggables,nt=ne.afterCritical,mt=ve.page.borderBox.center,nn=oe.at;return!ze||!nn?mt:nn.type==="REORDER"?Ul({impact:oe,draggable:ve,draggables:Ve,droppable:ze,afterCritical:nt}):il({impact:oe,draggables:Ve,afterCritical:nt})},es=function(te){var ne=Io(te),oe=te.droppable,ve=oe?_l(oe,ne):ne;return ve},as=function(te,ne){var oe=Pr(ne,te.scroll.initial),ve=Lr(oe),ze=yn({top:ne.y,bottom:ne.y+te.frame.height,left:ne.x,right:ne.x+te.frame.width}),Ve={frame:ze,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:ne,diff:{value:oe,displacement:ve}}};return Ve};function Ni(te,ne){return te.map(function(oe){return ne[oe]})}function Qi(te,ne){for(var oe=0;oe<ne.length;oe++){var ve=ne[oe].visible[te];if(ve)return ve}return null}var Pi=function(te){var ne=te.impact,oe=te.viewport,ve=te.destination,ze=te.draggables,Ve=te.maxScrollChange,nt=as(oe,hr(oe.scroll.current,Ve)),mt=ve.frame?kr(ve,hr(ve.frame.scroll.current,Ve)):ve,nn=ne.displaced,Bn=co({afterDragging:Ni(nn.all,ze),destination:ve,displacedBy:ne.displacedBy,viewport:nt.frame,last:nn,forceShouldAnimate:!1}),En=co({afterDragging:Ni(nn.all,ze),destination:mt,displacedBy:ne.displacedBy,viewport:oe.frame,last:nn,forceShouldAnimate:!1}),sn={},mn={},_n=[nn,Bn,En];nn.all.forEach(function(va){var Oa=Qi(va,_n);if(Oa){mn[va]=Oa;return}sn[va]=!0});var sr=(0,ce.Z)({},ne,{displaced:{all:nn.all,invisible:sn,visible:mn}});return sr},pi=function(te,ne){return hr(te.scroll.diff.displacement,ne)},Hi=function(te){var ne=te.pageBorderBoxCenter,oe=te.draggable,ve=te.viewport,ze=pi(ve,ne),Ve=Pr(ze,oe.page.borderBox.center);return hr(oe.client.borderBox.center,Ve)},uo=function(te){var ne=te.draggable,oe=te.destination,ve=te.newPageBorderBoxCenter,ze=te.viewport,Ve=te.withDroppableDisplacement,nt=te.onlyOnMainAxis,mt=nt===void 0?!1:nt,nn=Pr(ve,ne.page.borderBox.center),Bn=xa(ne.page.borderBox,nn),En={target:Bn,destination:oe,withDroppableDisplacement:Ve,viewport:ze};return mt?Ui(En):zi(En)},Il=function(te){var ne=te.isMovingForward,oe=te.draggable,ve=te.destination,ze=te.draggables,Ve=te.previousImpact,nt=te.viewport,mt=te.previousPageBorderBoxCenter,nn=te.previousClientSelection,Bn=te.afterCritical;if(!ve.isEnabled)return null;var En=mi(ve.descriptor.id,ze),sn=Jn(oe,ve),mn=Ar({isMovingForward:ne,draggable:oe,destination:ve,insideDestination:En,previousImpact:Ve})||So({isMovingForward:ne,isInHomeList:sn,draggable:oe,draggables:ze,destination:ve,insideDestination:En,previousImpact:Ve,viewport:nt,afterCritical:Bn});if(!mn)return null;var _n=es({impact:mn,draggable:oe,droppable:ve,draggables:ze,afterCritical:Bn}),sr=uo({draggable:oe,destination:ve,newPageBorderBoxCenter:_n,viewport:nt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(sr){var va=Hi({pageBorderBoxCenter:_n,draggable:oe,viewport:nt});return{clientSelection:va,impact:mn,scrollJumpRequest:null}}var Oa=Pr(_n,mt),ka=Pi({impact:mn,viewport:nt,destination:ve,draggables:ze,maxScrollChange:Oa});return{clientSelection:nn,impact:ka,scrollJumpRequest:Oa}},oo=function(ne){var oe=ne.subject.active;return oe||gt(!1),oe},Qo=function(te){var ne=te.isMovingForward,oe=te.pageBorderBoxCenter,ve=te.source,ze=te.droppables,Ve=te.viewport,nt=ve.subject.active;if(!nt)return null;var mt=ve.axis,nn=$r(nt[mt.start],nt[mt.end]),Bn=za(ze).filter(function(sn){return sn!==ve}).filter(function(sn){return sn.isEnabled}).filter(function(sn){return!!sn.subject.active}).filter(function(sn){return sa(Ve.frame)(oo(sn))}).filter(function(sn){var mn=oo(sn);return ne?nt[mt.crossAxisEnd]<mn[mt.crossAxisEnd]:mn[mt.crossAxisStart]<nt[mt.crossAxisStart]}).filter(function(sn){var mn=oo(sn),_n=$r(mn[mt.start],mn[mt.end]);return nn(mn[mt.start])||nn(mn[mt.end])||_n(nt[mt.start])||_n(nt[mt.end])}).sort(function(sn,mn){var _n=oo(sn)[mt.crossAxisStart],sr=oo(mn)[mt.crossAxisStart];return ne?_n-sr:sr-_n}).filter(function(sn,mn,_n){return oo(sn)[mt.crossAxisStart]===oo(_n[0])[mt.crossAxisStart]});if(!Bn.length)return null;if(Bn.length===1)return Bn[0];var En=Bn.filter(function(sn){var mn=$r(oo(sn)[mt.start],oo(sn)[mt.end]);return mn(oe[mt.line])});return En.length===1?En[0]:En.length>1?En.sort(function(sn,mn){return oo(sn)[mt.start]-oo(mn)[mt.start]})[0]:Bn.sort(function(sn,mn){var _n=Xr(oe,Fa(oo(sn))),sr=Xr(oe,Fa(oo(mn)));return _n!==sr?_n-sr:oo(sn)[mt.start]-oo(mn)[mt.start]})[0]},Jo=function(ne,oe){var ve=ne.page.borderBox.center;return Ba(ne.descriptor.id,oe)?Pr(ve,oe.displacedBy.point):ve},hn=function(ne,oe){var ve=ne.page.borderBox;return Ba(ne.descriptor.id,oe)?xa(ve,Lr(oe.displacedBy.point)):ve},vn=function(te){var ne=te.pageBorderBoxCenter,oe=te.viewport,ve=te.destination,ze=te.insideDestination,Ve=te.afterCritical,nt=ze.filter(function(mt){return zi({target:hn(mt,Ve),destination:ve,viewport:oe.frame,withDroppableDisplacement:!0})}).sort(function(mt,nn){var Bn=Rr(ne,_l(ve,Jo(mt,Ve))),En=Rr(ne,_l(ve,Jo(nn,Ve)));return Bn<En?-1:En<Bn?1:mt.descriptor.index-nn.descriptor.index});return nt[0]||null},Tn=wn(function(ne,oe){var ve=oe[ne.line];return{value:ve,point:Cr(ne.line,ve)}}),wr=function(ne,oe,ve){var ze=ne.axis;if(ne.descriptor.mode==="virtual")return Cr(ze.line,oe[ze.line]);var Ve=ne.subject.page.contentBox[ze.size],nt=mi(ne.descriptor.id,ve),mt=nt.reduce(function(En,sn){return En+sn.client.marginBox[ze.size]},0),nn=mt+oe[ze.line],Bn=nn-Ve;return Bn<=0?null:Cr(ze.line,Bn)},Or=function(ne,oe){return(0,ce.Z)({},ne,{scroll:(0,ce.Z)({},ne.scroll,{max:oe})})},rr=function(ne,oe,ve){var ze=ne.frame;Jn(oe,ne)&>(!1),ne.subject.withPlaceholder&>(!1);var Ve=Tn(ne.axis,oe.displaceBy).point,nt=wr(ne,Ve,ve),mt={placeholderSize:Ve,increasedBy:nt,oldFrameMaxScroll:ne.frame?ne.frame.scroll.max:null};if(!ze){var nn=pa({page:ne.subject.page,withPlaceholder:mt,axis:ne.axis,frame:ne.frame});return(0,ce.Z)({},ne,{subject:nn})}var Bn=nt?hr(ze.scroll.max,nt):ze.scroll.max,En=Or(ze,Bn),sn=pa({page:ne.subject.page,withPlaceholder:mt,axis:ne.axis,frame:En});return(0,ce.Z)({},ne,{subject:sn,frame:En})},ir=function(ne){var oe=ne.subject.withPlaceholder;oe||gt(!1);var ve=ne.frame;if(!ve){var ze=pa({page:ne.subject.page,axis:ne.axis,frame:null,withPlaceholder:null});return(0,ce.Z)({},ne,{subject:ze})}var Ve=oe.oldFrameMaxScroll;Ve||gt(!1);var nt=Or(ve,Ve),mt=pa({page:ne.subject.page,axis:ne.axis,frame:nt,withPlaceholder:null});return(0,ce.Z)({},ne,{subject:mt,frame:nt})},kn=function(te){var ne=te.previousPageBorderBoxCenter,oe=te.moveRelativeTo,ve=te.insideDestination,ze=te.draggable,Ve=te.draggables,nt=te.destination,mt=te.viewport,nn=te.afterCritical;if(!oe){if(ve.length)return null;var Bn={displaced:Sr,displacedBy:xr,at:{type:"REORDER",destination:{droppableId:nt.descriptor.id,index:0}}},En=es({impact:Bn,draggable:ze,droppable:nt,draggables:Ve,afterCritical:nn}),sn=Jn(ze,nt)?nt:rr(nt,ze,Ve),mn=uo({draggable:ze,destination:sn,newPageBorderBoxCenter:En,viewport:mt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return mn?Bn:null}var _n=ne[nt.axis.line]<=oe.page.borderBox.center[nt.axis.line],sr=function(){var Oa=oe.descriptor.index;return oe.descriptor.id===ze.descriptor.id||_n?Oa:Oa+1}(),va=Tn(nt.axis,ze.displaceBy);return Wo({draggable:ze,insideDestination:ve,destination:nt,viewport:mt,displacedBy:va,last:Sr,index:sr})},er=function(te){var ne=te.isMovingForward,oe=te.previousPageBorderBoxCenter,ve=te.draggable,ze=te.isOver,Ve=te.draggables,nt=te.droppables,mt=te.viewport,nn=te.afterCritical,Bn=Qo({isMovingForward:ne,pageBorderBoxCenter:oe,source:ze,droppables:nt,viewport:mt});if(!Bn)return null;var En=mi(Bn.descriptor.id,Ve),sn=vn({pageBorderBoxCenter:oe,viewport:mt,destination:Bn,insideDestination:En,afterCritical:nn}),mn=kn({previousPageBorderBoxCenter:oe,destination:Bn,draggable:ve,draggables:Ve,moveRelativeTo:sn,insideDestination:En,viewport:mt,afterCritical:nn});if(!mn)return null;var _n=es({impact:mn,draggable:ve,droppable:Bn,draggables:Ve,afterCritical:nn}),sr=Hi({pageBorderBoxCenter:_n,draggable:ve,viewport:mt});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},na=function(ne,oe){var ve=gr(ne);return ve?oe[ve]:null},Ci=function(te){var ne=te.state,oe=te.type,ve=na(ne.impact,ne.dimensions.droppables),ze=!!ve,Ve=ne.dimensions.droppables[ne.critical.droppable.id],nt=ve||Ve,mt=nt.axis.direction,nn=mt==="vertical"&&(oe==="MOVE_UP"||oe==="MOVE_DOWN")||mt==="horizontal"&&(oe==="MOVE_LEFT"||oe==="MOVE_RIGHT");if(nn&&!ze)return null;var Bn=oe==="MOVE_DOWN"||oe==="MOVE_RIGHT",En=ne.dimensions.draggables[ne.critical.draggable.id],sn=ne.current.page.borderBoxCenter,mn=ne.dimensions,_n=mn.draggables,sr=mn.droppables;return nn?Il({isMovingForward:Bn,previousPageBorderBoxCenter:sn,draggable:En,destination:nt,draggables:_n,viewport:ne.viewport,previousClientSelection:ne.current.client.selection,previousImpact:ne.impact,afterCritical:ne.afterCritical}):er({isMovingForward:Bn,previousPageBorderBoxCenter:sn,draggable:En,isOver:nt,draggables:_n,droppables:sr,viewport:ne.viewport,afterCritical:ne.afterCritical})};function ki(te){return te.phase==="DRAGGING"||te.phase==="COLLECTING"}function fo(te){var ne=$r(te.top,te.bottom),oe=$r(te.left,te.right);return function(ze){return ne(ze.y)&&oe(ze.x)}}function ro(te,ne){return te.left<ne.right&&te.right>ne.left&&te.top<ne.bottom&&te.bottom>ne.top}function Ha(te){var ne=te.pageBorderBox,oe=te.draggable,ve=te.candidates,ze=oe.page.borderBox.center,Ve=ve.map(function(nt){var mt=nt.axis,nn=Cr(nt.axis.line,ne.center[mt.line],nt.page.borderBox.center[mt.crossAxisLine]);return{id:nt.descriptor.id,distance:Rr(ze,nn)}}).sort(function(nt,mt){return mt.distance-nt.distance});return Ve[0]?Ve[0].id:null}function ma(te){var ne=te.pageBorderBox,oe=te.draggable,ve=te.droppables,ze=za(ve).filter(function(Ve){if(!Ve.isEnabled)return!1;var nt=Ve.subject.active;if(!nt||!ro(ne,nt))return!1;if(fo(nt)(ne.center))return!0;var mt=Ve.axis,nn=nt.center[mt.crossAxisLine],Bn=ne[mt.crossAxisStart],En=ne[mt.crossAxisEnd],sn=$r(nt[mt.crossAxisStart],nt[mt.crossAxisEnd]),mn=sn(Bn),_n=sn(En);return!mn&&!_n?!0:mn?Bn<nn:En>nn});return ze.length?ze.length===1?ze[0].descriptor.id:Ha({pageBorderBox:ne,draggable:oe,candidates:ze}):null}var Hr=function(ne,oe){return yn(xa(ne,oe))},_i=function(te,ne){var oe=te.frame;return oe?Hr(ne,oe.scroll.diff.value):ne};function Li(te){var ne=te.displaced,oe=te.id;return!!(ne.visible[oe]||ne.invisible[oe])}function vo(te){var ne=te.draggable,oe=te.closest,ve=te.inHomeList;return oe?ve&&oe.descriptor.index>ne.descriptor.index?oe.descriptor.index-1:oe.descriptor.index:null}var _o=function(te){var ne=te.pageBorderBoxWithDroppableScroll,oe=te.draggable,ve=te.destination,ze=te.insideDestination,Ve=te.last,nt=te.viewport,mt=te.afterCritical,nn=ve.axis,Bn=Tn(ve.axis,oe.displaceBy),En=Bn.value,sn=ne[nn.start],mn=ne[nn.end],_n=ei(oe,ze),sr=Kr(_n,function(Oa){var ka=Oa.descriptor.id,oi=Oa.page.borderBox.center[nn.line],Fi=Ba(ka,mt),Ti=Li({displaced:Ve,id:ka});return Fi?Ti?mn<=oi:sn<oi-En:Ti?mn<=oi+En:sn<oi}),va=vo({draggable:oe,closest:sr,inHomeList:Jn(oe,ve)});return Wo({draggable:oe,insideDestination:ze,destination:ve,viewport:nt,last:Ve,displacedBy:Bn,index:va})},Ai=4,go=function(te){var ne=te.draggable,oe=te.pageBorderBoxWithDroppableScroll,ve=te.previousImpact,ze=te.destination,Ve=te.insideDestination,nt=te.afterCritical;if(!ze.isCombineEnabled)return null;var mt=ze.axis,nn=Tn(ze.axis,ne.displaceBy),Bn=nn.value,En=oe[mt.start],sn=oe[mt.end],mn=ei(ne,Ve),_n=Kr(mn,function(va){var Oa=va.descriptor.id,ka=va.page.borderBox,oi=ka[mt.size],Fi=oi/Ai,Ti=Ba(Oa,nt),xo=Li({displaced:ve.displaced,id:Oa});return Ti?xo?sn>ka[mt.start]+Fi&&sn<ka[mt.end]-Fi:En>ka[mt.start]-Bn+Fi&&En<ka[mt.end]-Bn-Fi:xo?sn>ka[mt.start]+Bn+Fi&&sn<ka[mt.end]+Bn-Fi:En>ka[mt.start]+Fi&&En<ka[mt.end]-Fi});if(!_n)return null;var sr={displacedBy:nn,displaced:ve.displaced,at:{type:"COMBINE",combine:{draggableId:_n.descriptor.id,droppableId:ze.descriptor.id}}};return sr},xi=function(te){var ne=te.pageOffset,oe=te.draggable,ve=te.draggables,ze=te.droppables,Ve=te.previousImpact,nt=te.viewport,mt=te.afterCritical,nn=Hr(oe.page.borderBox,ne),Bn=ma({pageBorderBox:nn,draggable:oe,droppables:ze});if(!Bn)return tr;var En=ze[Bn],sn=mi(En.descriptor.id,ve),mn=_i(En,nn);return go({pageBorderBoxWithDroppableScroll:mn,draggable:oe,previousImpact:Ve,destination:En,insideDestination:sn,afterCritical:mt})||_o({pageBorderBoxWithDroppableScroll:mn,draggable:oe,destination:En,insideDestination:sn,last:Ve.displaced,viewport:nt,afterCritical:mt})},ga=function(te,ne){var oe;return(0,ce.Z)({},te,(oe={},oe[ne.descriptor.id]=ne,oe))},hi=function(ne){var oe=ne.previousImpact,ve=ne.impact,ze=ne.droppables,Ve=gr(oe),nt=gr(ve);if(!Ve||Ve===nt)return ze;var mt=ze[Ve];if(!mt.subject.withPlaceholder)return ze;var nn=ir(mt);return ga(ze,nn)},di=function(te){var ne=te.draggable,oe=te.draggables,ve=te.droppables,ze=te.previousImpact,Ve=te.impact,nt=hi({previousImpact:ze,impact:Ve,droppables:ve}),mt=gr(Ve);if(!mt)return nt;var nn=ve[mt];if(Jn(ne,nn)||nn.subject.withPlaceholder)return nt;var Bn=rr(nn,ne,oe);return ga(nt,Bn)},si=function(te){var ne=te.state,oe=te.clientSelection,ve=te.dimensions,ze=te.viewport,Ve=te.impact,nt=te.scrollJumpRequest,mt=ze||ne.viewport,nn=ve||ne.dimensions,Bn=oe||ne.current.client.selection,En=Pr(Bn,ne.initial.client.selection),sn={offset:En,selection:Bn,borderBoxCenter:hr(ne.initial.client.borderBoxCenter,En)},mn={selection:hr(sn.selection,mt.scroll.current),borderBoxCenter:hr(sn.borderBoxCenter,mt.scroll.current),offset:hr(sn.offset,mt.scroll.diff.value)},_n={client:sn,page:mn};if(ne.phase==="COLLECTING")return(0,ce.Z)({phase:"COLLECTING"},ne,{dimensions:nn,viewport:mt,current:_n});var sr=nn.draggables[ne.critical.draggable.id],va=Ve||xi({pageOffset:mn.offset,draggable:sr,draggables:nn.draggables,droppables:nn.droppables,previousImpact:ne.impact,viewport:mt,afterCritical:ne.afterCritical}),Oa=di({draggable:sr,impact:va,previousImpact:ne.impact,draggables:nn.draggables,droppables:nn.droppables}),ka=(0,ce.Z)({},ne,{current:_n,dimensions:{draggables:nn.draggables,droppables:Oa},impact:va,viewport:mt,scrollJumpRequest:nt||null,forceShouldAnimate:nt?!1:null});return ka};function Dt(te,ne){return te.map(function(oe){return ne[oe]})}var Jt=function(te){var ne=te.impact,oe=te.viewport,ve=te.draggables,ze=te.destination,Ve=te.forceShouldAnimate,nt=ne.displaced,mt=Dt(nt.all,ve),nn=co({afterDragging:mt,destination:ze,displacedBy:ne.displacedBy,viewport:oe.frame,forceShouldAnimate:Ve,last:nt});return(0,ce.Z)({},ne,{displaced:nn})},rn=function(te){var ne=te.impact,oe=te.draggable,ve=te.droppable,ze=te.draggables,Ve=te.viewport,nt=te.afterCritical,mt=es({impact:ne,draggable:oe,draggables:ze,droppable:ve,afterCritical:nt});return Hi({pageBorderBoxCenter:mt,draggable:oe,viewport:Ve})},Nn=function(te){var ne=te.state,oe=te.dimensions,ve=te.viewport;ne.movementMode!=="SNAP"&>(!1);var ze=ne.impact,Ve=ve||ne.viewport,nt=oe||ne.dimensions,mt=nt.draggables,nn=nt.droppables,Bn=mt[ne.critical.draggable.id],En=gr(ze);En||gt(!1);var sn=nn[En],mn=Jt({impact:ze,viewport:Ve,destination:sn,draggables:mt}),_n=rn({impact:mn,draggable:Bn,droppable:sn,draggables:mt,viewport:Ve,afterCritical:ne.afterCritical});return si({impact:mn,clientSelection:_n,state:ne,dimensions:nt,viewport:Ve})},Va=function(te){return{index:te.index,droppableId:te.droppableId}},zr=function(te){var ne=te.draggable,oe=te.home,ve=te.draggables,ze=te.viewport,Ve=Tn(oe.axis,ne.displaceBy),nt=mi(oe.descriptor.id,ve),mt=nt.indexOf(ne);mt===-1&>(!1);var nn=nt.slice(mt+1),Bn=nn.reduce(function(_n,sr){return _n[sr.descriptor.id]=!0,_n},{}),En={inVirtualList:oe.descriptor.mode==="virtual",displacedBy:Ve,effected:Bn},sn=co({afterDragging:nn,destination:oe,displacedBy:Ve,last:null,viewport:ze.frame,forceShouldAnimate:!1}),mn={displaced:sn,displacedBy:Ve,at:{type:"REORDER",destination:Va(ne.descriptor)}};return{impact:mn,afterCritical:En}},qn=function(te,ne){return{draggables:te.draggables,droppables:ga(te.droppables,ne)}},pr=function(ne){},Fr=function(ne){},aa=function(te){var ne=te.draggable,oe=te.offset,ve=te.initialWindowScroll,ze=jn(ne.client,oe),Ve=Dn(ze,ve),nt=(0,ce.Z)({},ne,{placeholder:(0,ce.Z)({},ne.placeholder,{client:ze}),client:ze,page:Ve});return nt},Wr=function(te){var ne=te.frame;return ne||gt(!1),ne},or=function(te){var ne=te.additions,oe=te.updatedDroppables,ve=te.viewport,ze=ve.scroll.diff.value;return ne.map(function(Ve){var nt=Ve.descriptor.droppableId,mt=oe[nt],nn=Wr(mt),Bn=nn.scroll.diff.value,En=hr(ze,Bn),sn=aa({draggable:Ve,offset:En,initialWindowScroll:ve.scroll.initial});return sn})},ha=function(te){var ne=te.state,oe=te.published;pr();var ve=oe.modified.map(function(Fi){var Ti=ne.dimensions.droppables[Fi.droppableId],xo=kr(Ti,Fi.scroll);return xo}),ze=(0,ce.Z)({},ne.dimensions.droppables,{},Mi(ve)),Ve=ji(or({additions:oe.additions,updatedDroppables:ze,viewport:ne.viewport})),nt=(0,ce.Z)({},ne.dimensions.draggables,{},Ve);oe.removals.forEach(function(Fi){delete nt[Fi]});var mt={droppables:ze,draggables:nt},nn=gr(ne.impact),Bn=nn?mt.droppables[nn]:null,En=mt.draggables[ne.critical.draggable.id],sn=mt.droppables[ne.critical.droppable.id],mn=zr({draggable:En,home:sn,draggables:nt,viewport:ne.viewport}),_n=mn.impact,sr=mn.afterCritical,va=Bn&&Bn.isCombineEnabled?ne.impact:_n,Oa=xi({pageOffset:ne.current.page.offset,draggable:mt.draggables[ne.critical.draggable.id],draggables:mt.draggables,droppables:mt.droppables,previousImpact:va,viewport:ne.viewport,afterCritical:sr});Fr();var ka=(0,ce.Z)({phase:"DRAGGING"},ne,{phase:"DRAGGING",impact:Oa,onLiftImpact:_n,dimensions:mt,afterCritical:sr,forceShouldAnimate:!1});if(ne.phase==="COLLECTING")return ka;var oi=(0,ce.Z)({phase:"DROP_PENDING"},ka,{phase:"DROP_PENDING",reason:ne.reason,isWaiting:!1});return oi},fa=function(ne){return ne.movementMode==="SNAP"},Nr=function(ne,oe,ve){var ze=qn(ne.dimensions,oe);return!fa(ne)||ve?si({state:ne,dimensions:ze}):Nn({state:ne,dimensions:ze})};function Da(te){return te.isDragging&&te.movementMode==="SNAP"?(0,ce.Z)({phase:"DRAGGING"},te,{scrollJumpRequest:null}):te}var ja={phase:"IDLE",completed:null,shouldFlush:!1},ua=function(te,ne){if(te===void 0&&(te=ja),ne.type==="FLUSH")return(0,ce.Z)({},ja,{shouldFlush:!0});if(ne.type==="INITIAL_PUBLISH"){te.phase!=="IDLE"&>(!1);var oe=ne.payload,ve=oe.critical,ze=oe.clientSelection,Ve=oe.viewport,nt=oe.dimensions,mt=oe.movementMode,nn=nt.draggables[ve.draggable.id],Bn=nt.droppables[ve.droppable.id],En={selection:ze,borderBoxCenter:nn.client.borderBox.center,offset:Hn},sn={client:En,page:{selection:hr(En.selection,Ve.scroll.initial),borderBoxCenter:hr(En.selection,Ve.scroll.initial),offset:hr(En.selection,Ve.scroll.diff.value)}},mn=za(nt.droppables).every(function(Oc){return!Oc.isFixedOnPage}),_n=zr({draggable:nn,home:Bn,draggables:nt.draggables,viewport:Ve}),sr=_n.impact,va=_n.afterCritical,Oa={phase:"DRAGGING",isDragging:!0,critical:ve,movementMode:mt,dimensions:nt,initial:sn,current:sn,isWindowScrollAllowed:mn,impact:sr,afterCritical:va,onLiftImpact:sr,viewport:Ve,scrollJumpRequest:null,forceShouldAnimate:null};return Oa}if(ne.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&>(!1);var ka=(0,ce.Z)({phase:"COLLECTING"},te,{phase:"COLLECTING"});return ka}if(ne.type==="PUBLISH_WHILE_DRAGGING")return te.phase==="COLLECTING"||te.phase==="DROP_PENDING"||gt(!1),ha({state:te,published:ne.payload});if(ne.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;ki(te)||gt(!1);var oi=ne.payload.client;return Tr(oi,te.current.client.selection)?te:si({state:te,clientSelection:oi,impact:fa(te)?te.impact:null})}if(ne.type==="UPDATE_DROPPABLE_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="COLLECTING")return Da(te);ki(te)||gt(!1);var Fi=ne.payload,Ti=Fi.id,xo=Fi.newScroll,ho=te.dimensions.droppables[Ti];if(!ho)return te;var Zo=kr(ho,xo);return Nr(te,Zo,!1)}if(ne.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(te.phase==="DROP_PENDING")return te;ki(te)||gt(!1);var Hl=ne.payload,Ho=Hl.id,Vl=Hl.isEnabled,us=te.dimensions.droppables[Ho];us||gt(!1),us.isEnabled===Vl&>(!1);var hs=(0,ce.Z)({},us,{isEnabled:Vl});return Nr(te,hs,!0)}if(ne.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(te.phase==="DROP_PENDING")return te;ki(te)||gt(!1);var lu=ne.payload,qs=lu.id,Zs=lu.isCombineEnabled,su=te.dimensions.droppables[qs];su||gt(!1),su.isCombineEnabled===Zs&>(!1);var vs=(0,ce.Z)({},su,{isCombineEnabled:Zs});return Nr(te,vs,!0)}if(ne.type==="MOVE_BY_WINDOW_SCROLL"){if(te.phase==="DROP_PENDING"||te.phase==="DROP_ANIMATING")return te;ki(te)||gt(!1),te.isWindowScrollAllowed||gt(!1);var Mu=ne.payload.newScroll;if(Tr(te.viewport.scroll.current,Mu))return Da(te);var uu=as(te.viewport,Mu);return fa(te)?Nn({state:te,viewport:uu}):si({state:te,viewport:uu})}if(ne.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ki(te))return te;var vc=ne.payload.maxScroll;if(Tr(vc,te.viewport.scroll.max))return te;var Ju=(0,ce.Z)({},te.viewport,{scroll:(0,ce.Z)({},te.viewport.scroll,{max:vc})});return(0,ce.Z)({phase:"DRAGGING"},te,{viewport:Ju})}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"&>(!1);var Ru=Ci({state:te,type:ne.type});return Ru?si({state:te,impact:Ru.impact,clientSelection:Ru.clientSelection,scrollJumpRequest:Ru.scrollJumpRequest}):te}if(ne.type==="DROP_PENDING"){var cu=ne.payload.reason;te.phase!=="COLLECTING"&>(!1);var qu=(0,ce.Z)({phase:"DROP_PENDING"},te,{phase:"DROP_PENDING",isWaiting:!0,reason:cu});return qu}if(ne.type==="DROP_ANIMATE"){var Ic=ne.payload,du=Ic.completed,gc=Ic.dropDuration,Pc=Ic.newHomeClientOffset;te.phase==="DRAGGING"||te.phase==="DROP_PENDING"||gt(!1);var lc={phase:"DROP_ANIMATING",completed:du,dropDuration:gc,newHomeClientOffset:Pc,dimensions:te.dimensions};return lc}if(ne.type==="DROP_COMPLETE"){var Ac=ne.payload.completed;return{phase:"IDLE",completed:Ac,shouldFlush:!1}}return te},cr=function(ne){return{type:"BEFORE_INITIAL_CAPTURE",payload:ne}},Yr=function(ne){return{type:"LIFT",payload:ne}},ui=function(ne){return{type:"INITIAL_PUBLISH",payload:ne}},ba=function(ne){return{type:"PUBLISH_WHILE_DRAGGING",payload:ne}},ca=function(){return{type:"COLLECTION_STARTING",payload:null}},ra=function(ne){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ne}},Pa=function(ne){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ne}},ao=function(ne){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ne}},qo=function(ne){return{type:"MOVE",payload:ne}},Ko=function(ne){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ne}},Xl=function(ne){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ne}},Oi=function(){return{type:"MOVE_UP",payload:null}},Tl=function(){return{type:"MOVE_DOWN",payload:null}},Pl=function(){return{type:"MOVE_RIGHT",payload:null}},Gr=function(){return{type:"MOVE_LEFT",payload:null}},bo=function(){return{type:"FLUSH",payload:null}},Po=function(ne){return{type:"DROP_ANIMATE",payload:ne}},Eo=function(ne){return{type:"DROP_COMPLETE",payload:ne}},yl=function(ne){return{type:"DROP",payload:ne}},$s=function(ne){return{type:"DROP_PENDING",payload:ne}},Ms=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function eu(te){if(!(te.length<=1)){for(var ne=te.map(function(mt){return mt.descriptor.index}),oe={},ve=1;ve<ne.length;ve++){var ze=ne[ve],Ve=ne[ve-1];ze!==Ve+1&&(oe[ze]=!0)}if(Object.keys(oe).length)var nt=ne.map(function(mt){var nn=!!oe[mt];return nn?"[\u{1F525}"+mt+"]":""+mt}).join(", ")}}function xs(te,ne){if(0)var oe}var Fs=function(te){return function(ne){var oe=ne.getState,ve=ne.dispatch;return function(ze){return function(Ve){if(Ve.type!=="LIFT"){ze(Ve);return}var nt=Ve.payload,mt=nt.id,nn=nt.clientSelection,Bn=nt.movementMode,En=oe();En.phase==="DROP_ANIMATING"&&ve(Eo({completed:En.completed})),oe().phase!=="IDLE"&>(!1),ve(bo()),ve(cr({draggableId:mt,movementMode:Bn}));var sn={shouldPublishImmediately:Bn==="SNAP"},mn={draggableId:mt,scrollOptions:sn},_n=te.startPublishing(mn),sr=_n.critical,va=_n.dimensions,Oa=_n.viewport;xs(sr,va),ve(ui({critical:sr,dimensions:va,clientSelection:nn,movementMode:Bn,viewport:Oa}))}}}},tu=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)}}}},cs={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ss={opacity:{drop:0,combining:.7},scale:{drop:.75}},js={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Is=js.outOfTheWay+"s "+cs.outOfTheWay,gs={fluid:"opacity "+Is,snap:"transform "+Is+", opacity "+Is,drop:function(ne){var oe=ne+"s "+cs.drop;return"transform "+oe+", opacity "+oe},outOfTheWay:"transform "+Is,placeholder:"height "+Is+", width "+Is+", margin "+Is},Ws=function(ne){return Tr(ne,Hn)?null:"translate("+ne.x+"px, "+ne.y+"px)"},Ps={moveTo:Ws,drop:function(ne,oe){var ve=Ws(ne);return ve?oe?ve+" scale("+Ss.scale.drop+")":ve:null}},Rs=js.minDropTime,zs=js.maxDropTime,Us=zs-Rs,Eu=1500,Cu=.6,ec=function(te){var ne=te.current,oe=te.destination,ve=te.reason,ze=Rr(ne,oe);if(ze<=0)return Rs;if(ze>=Eu)return zs;var Ve=ze/Eu,nt=Rs+Us*Ve,mt=ve==="CANCEL"?nt*Cu:nt;return Number(mt.toFixed(2))},As=function(te){var ne=te.impact,oe=te.draggable,ve=te.dimensions,ze=te.viewport,Ve=te.afterCritical,nt=ve.draggables,mt=ve.droppables,nn=gr(ne),Bn=nn?mt[nn]:null,En=mt[oe.descriptor.droppableId],sn=rn({impact:ne,draggable:oe,draggables:nt,afterCritical:Ve,droppable:Bn||En,viewport:ze}),mn=Pr(sn,oe.client.borderBox.center);return mn},ws=function(te){var ne=te.draggables,oe=te.reason,ve=te.lastImpact,ze=te.home,Ve=te.viewport,nt=te.onLiftImpact;if(!ve.at||oe!=="DROP"){var mt=Jt({draggables:ne,impact:nt,destination:ze,viewport:Ve,forceShouldAnimate:!0});return{impact:mt,didDropInsideDroppable:!1}}if(ve.at.type==="REORDER")return{impact:ve,didDropInsideDroppable:!0};var nn=(0,ce.Z)({},ve,{displaced:Sr});return{impact:nn,didDropInsideDroppable:!0}},xu=function(te){var ne=te.getState,oe=te.dispatch;return function(ve){return function(ze){if(ze.type!=="DROP"){ve(ze);return}var Ve=ne(),nt=ze.payload.reason;if(Ve.phase==="COLLECTING"){oe($s({reason:nt}));return}if(Ve.phase!=="IDLE"){var mt=Ve.phase==="DROP_PENDING"&&Ve.isWaiting;mt&>(!1),Ve.phase==="DRAGGING"||Ve.phase==="DROP_PENDING"||gt(!1);var nn=Ve.critical,Bn=Ve.dimensions,En=Bn.draggables[Ve.critical.draggable.id],sn=ws({reason:nt,lastImpact:Ve.impact,afterCritical:Ve.afterCritical,onLiftImpact:Ve.onLiftImpact,home:Ve.dimensions.droppables[Ve.critical.droppable.id],viewport:Ve.viewport,draggables:Ve.dimensions.draggables}),mn=sn.impact,_n=sn.didDropInsideDroppable,sr=_n?Wi(mn):null,va=_n?Ei(mn):null,Oa={index:nn.draggable.index,droppableId:nn.droppable.id},ka={draggableId:En.descriptor.id,type:En.descriptor.type,source:Oa,reason:nt,mode:Ve.movementMode,destination:sr,combine:va},oi=As({impact:mn,draggable:En,dimensions:Bn,viewport:Ve.viewport,afterCritical:Ve.afterCritical}),Fi={critical:Ve.critical,afterCritical:Ve.afterCritical,result:ka,impact:mn},Ti=!Tr(Ve.current.client.offset,oi)||!!ka.combine;if(!Ti){oe(Eo({completed:Fi}));return}var xo=ec({current:Ve.current.client.offset,destination:oi,reason:nt}),ho={newHomeClientOffset:oi,dropDuration:xo,completed:Fi};oe(Po(ho))}}}},ku=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Lu(te){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(oe){oe.target!==window&&oe.target!==window.document||te()}}}function Wn(te){var ne=te.onWindowScroll;function oe(){ne(ku())}var ve=Pn(oe),ze=Lu(ve),Ve=ur;function nt(){return Ve!==ur}function mt(){nt()&>(!1),Ve=Ut(window,[ze])}function nn(){nt()||gt(!1),ve.cancel(),Ve(),Ve=ur}return{start:mt,stop:nn,isActive:nt}}var _a=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Vi=function(te){var ne=Wn({onWindowScroll:function(ve){te.dispatch(Ko({newScroll:ve}))}});return function(oe){return function(ve){!ne.isActive()&&ve.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&_a(ve)&&ne.stop(),oe(ve)}}},Ta=function(te){var ne=!1,oe=!1,ve=setTimeout(function(){oe=!0}),ze=function(nt){ne||oe||(ne=!0,te(nt),clearTimeout(ve))};return ze.wasCalled=function(){return ne},ze},Ir=function(){var te=[],ne=function(Ve){var nt=la(te,function(Bn){return Bn.timerId===Ve});nt===-1&>(!1);var mt=te.splice(nt,1),nn=mt[0];nn.callback()},oe=function(Ve){var nt=setTimeout(function(){return ne(nt)}),mt={timerId:nt,callback:Ve};te.push(mt)},ve=function(){if(te.length){var Ve=[].concat(te);te.length=0,Ve.forEach(function(nt){clearTimeout(nt.timerId),nt.callback()})}};return{add:oe,flush:ve}},Zi=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.droppableId===oe.droppableId&&ne.index===oe.index},Ki=function(ne,oe){return ne==null&&oe==null?!0:ne==null||oe==null?!1:ne.draggableId===oe.draggableId&&ne.droppableId===oe.droppableId},ko=function(ne,oe){if(ne===oe)return!0;var ve=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 ve&&ze},Xi=function(ne,oe){pr(),oe(),Fr()},dl=function(ne,oe){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:oe}},Ro=function(ne,oe,ve,ze){if(!ne){ve(ze(oe));return}var Ve=Ta(ve),nt={announce:Ve};ne(oe,nt),Ve.wasCalled()||ve(ze(oe))},ys=function(te,ne){var oe=Ir(),ve=null,ze=function(mn,_n){ve&>(!1),Xi("onBeforeCapture",function(){var sr=te().onBeforeCapture;if(sr){var va={draggableId:mn,mode:_n};sr(va)}})},Ve=function(mn,_n){ve&>(!1),Xi("onBeforeDragStart",function(){var sr=te().onBeforeDragStart;sr&&sr(dl(mn,_n))})},nt=function(mn,_n){ve&>(!1);var sr=dl(mn,_n);ve={mode:_n,lastCritical:mn,lastLocation:sr.source,lastCombine:null},oe.add(function(){Xi("onDragStart",function(){return Ro(te().onDragStart,sr,ne,Un.onDragStart)})})},mt=function(mn,_n){var sr=Wi(_n),va=Ei(_n);ve||gt(!1);var Oa=!ko(mn,ve.lastCritical);Oa&&(ve.lastCritical=mn);var ka=!Zi(ve.lastLocation,sr);ka&&(ve.lastLocation=sr);var oi=!Ki(ve.lastCombine,va);if(oi&&(ve.lastCombine=va),!(!Oa&&!ka&&!oi)){var Fi=(0,ce.Z)({},dl(mn,ve.mode),{combine:va,destination:sr});oe.add(function(){Xi("onDragUpdate",function(){return Ro(te().onDragUpdate,Fi,ne,Un.onDragUpdate)})})}},nn=function(){ve||gt(!1),oe.flush()},Bn=function(mn){ve||gt(!1),ve=null,Xi("onDragEnd",function(){return Ro(te().onDragEnd,mn,ne,Un.onDragEnd)})},En=function(){if(ve){var mn=(0,ce.Z)({},dl(ve.lastCritical,ve.mode),{combine:null,destination:null,reason:"CANCEL"});Bn(mn)}};return{beforeCapture:ze,beforeStart:Ve,start:nt,update:mt,flush:nn,drop:Bn,abort:En}},Xs=function(te,ne){var oe=ys(te,ne);return function(ve){return function(ze){return function(Ve){if(Ve.type==="BEFORE_INITIAL_CAPTURE"){oe.beforeCapture(Ve.payload.draggableId,Ve.payload.movementMode);return}if(Ve.type==="INITIAL_PUBLISH"){var nt=Ve.payload.critical;oe.beforeStart(nt,Ve.payload.movementMode),ze(Ve),oe.start(nt,Ve.payload.movementMode);return}if(Ve.type==="DROP_COMPLETE"){var mt=Ve.payload.completed.result;oe.flush(),ze(Ve),oe.drop(mt);return}if(ze(Ve),Ve.type==="FLUSH"){oe.abort();return}var nn=ve.getState();nn.phase==="DRAGGING"&&oe.update(nn.critical,nn.impact)}}}},yi=function(te){return function(ne){return function(oe){if(oe.type!=="DROP_ANIMATION_FINISHED"){ne(oe);return}var ve=te.getState();ve.phase!=="DROP_ANIMATING"&>(!1),te.dispatch(Eo({completed:ve.completed}))}}},bl=function(te){var ne=null,oe=null;function ve(){oe&&(cancelAnimationFrame(oe),oe=null),ne&&(ne(),ne=null)}return function(ze){return function(Ve){if((Ve.type==="FLUSH"||Ve.type==="DROP_COMPLETE"||Ve.type==="DROP_ANIMATION_FINISHED")&&ve(),ze(Ve),Ve.type==="DROP_ANIMATE"){var nt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var nn=te.getState();nn.phase==="DROP_ANIMATING"&&te.dispatch(Ms())}};oe=requestAnimationFrame(function(){oe=null,ne=Ut(window,[nt])})}}}},is=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)}}}},jl=function(te){var ne=!1;return function(){return function(oe){return function(ve){if(ve.type==="INITIAL_PUBLISH"){ne=!0,te.tryRecordFocus(ve.payload.critical.draggable.id),oe(ve),te.tryRestoreFocusRecorded();return}if(oe(ve),!!ne){if(ve.type==="FLUSH"){ne=!1,te.tryRestoreFocusRecorded();return}if(ve.type==="DROP_COMPLETE"){ne=!1;var ze=ve.payload.completed.result;ze.combine&&te.tryShiftRecord(ze.draggableId,ze.combine.draggableId),te.tryRestoreFocusRecorded()}}}}}},Ze=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Re=function(te){return function(ne){return function(oe){return function(ve){if(Ze(ve)){te.stop(),oe(ve);return}if(ve.type==="INITIAL_PUBLISH"){oe(ve);var ze=ne.getState();ze.phase!=="DRAGGING"&>(!1),te.start(ze);return}oe(ve),te.scroll(ne.getState())}}}},Ft=function(te){return function(ne){return function(oe){if(ne(oe),oe.type==="PUBLISH_WHILE_DRAGGING"){var ve=te.getState();ve.phase==="DROP_PENDING"&&(ve.isWaiting||te.dispatch(yl({reason:ve.reason})))}}}},$t=_e.qC,an=function(te){var ne=te.dimensionMarshal,oe=te.focusMarshal,ve=te.styleMarshal,ze=te.getResponders,Ve=te.announce,nt=te.autoScroller;return(0,_e.MT)(ua,$t((0,_e.md)(tu(ve),is(ne),Fs(ne),xu,yi,bl,Ft,Re(nt),Vi,jl(oe),Xs(ze,Ve))))},pn=function(){return{additions:{},removals:{},modified:{}}};function Mn(te){var ne=te.registry,oe=te.callbacks,ve=pn(),ze=null,Ve=function(){ze||(oe.collectionStarting(),ze=requestAnimationFrame(function(){ze=null,pr();var En=ve,sn=En.additions,mn=En.removals,_n=En.modified,sr=Object.keys(sn).map(function(ka){return ne.draggable.getById(ka).getDimension(Hn)}).sort(function(ka,oi){return ka.descriptor.index-oi.descriptor.index}),va=Object.keys(_n).map(function(ka){var oi=ne.droppable.getById(ka),Fi=oi.callbacks.getScrollWhileDragging();return{droppableId:ka,scroll:Fi}}),Oa={additions:sr,removals:Object.keys(mn),modified:va};ve=pn(),Fr(),oe.publish(Oa)}))},nt=function(En){var sn=En.descriptor.id;ve.additions[sn]=En,ve.modified[En.descriptor.droppableId]=!0,ve.removals[sn]&&delete ve.removals[sn],Ve()},mt=function(En){var sn=En.descriptor;ve.removals[sn.id]=!0,ve.modified[sn.droppableId]=!0,ve.additions[sn.id]&&delete ve.additions[sn.id],Ve()},nn=function(){ze&&(cancelAnimationFrame(ze),ze=null,ve=pn())};return{add:nt,remove:mt,stop:nn}}var In=function(te){var ne=te.scrollHeight,oe=te.scrollWidth,ve=te.height,ze=te.width,Ve=Pr({x:oe,y:ne},{x:ze,y:ve}),nt={x:Math.max(0,Ve.x),y:Math.max(0,Ve.y)};return nt},zn=function(){var te=document.documentElement;return te||gt(!1),te},Ln=function(){var te=zn(),ne=In({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return ne},Br=function(){var te=ku(),ne=Ln(),oe=te.y,ve=te.x,ze=zn(),Ve=ze.clientWidth,nt=ze.clientHeight,mt=ve+Ve,nn=oe+nt,Bn=yn({top:oe,left:ve,right:mt,bottom:nn}),En={frame:Bn,scroll:{initial:te,current:te,max:ne,diff:{value:Hn,displacement:Hn}}};return En},lr=function(te){var ne=te.critical,oe=te.scrollOptions,ve=te.registry;pr();var ze=Br(),Ve=ze.scroll.current,nt=ne.droppable,mt=ve.droppable.getAllByType(nt.type).map(function(sn){return sn.callbacks.getDimensionAndWatchScroll(Ve,oe)}),nn=ve.draggable.getAllByType(ne.draggable.type).map(function(sn){return sn.getDimension(Ve)}),Bn={draggables:ji(nn),droppables:Mi(mt)};Fr();var En={dimensions:Bn,critical:ne,viewport:ze};return En};function nr(te,ne,oe){if(oe.descriptor.id===ne.id||oe.descriptor.type!==ne.type)return!1;var ve=te.droppable.getById(oe.descriptor.droppableId);return ve.descriptor.mode==="virtual"}var Xn=function(te,ne){var oe=null,ve=Mn({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:te}),ze=function(_n,sr){te.droppable.exists(_n)||gt(!1),oe&&ne.updateDroppableIsEnabled({id:_n,isEnabled:sr})},Ve=function(_n,sr){oe&&(te.droppable.exists(_n)||gt(!1),ne.updateDroppableIsCombineEnabled({id:_n,isCombineEnabled:sr}))},nt=function(_n,sr){oe&&(te.droppable.exists(_n)||gt(!1),ne.updateDroppableScroll({id:_n,newScroll:sr}))},mt=function(_n,sr){oe&&te.droppable.getById(_n).callbacks.scroll(sr)},nn=function(){if(oe){ve.stop();var _n=oe.critical.droppable;te.droppable.getAllByType(_n.type).forEach(function(sr){return sr.callbacks.dragStopped()}),oe.unsubscribe(),oe=null}},Bn=function(_n){oe||gt(!1);var sr=oe.critical.draggable;_n.type==="ADDITION"&&nr(te,sr,_n.value)&&ve.add(_n.value),_n.type==="REMOVAL"&&nr(te,sr,_n.value)&&ve.remove(_n.value)},En=function(_n){oe&>(!1);var sr=te.draggable.getById(_n.draggableId),va=te.droppable.getById(sr.descriptor.droppableId),Oa={draggable:sr.descriptor,droppable:va.descriptor},ka=te.subscribe(Bn);return oe={critical:Oa,unsubscribe:ka},lr({critical:Oa,registry:te,scrollOptions:_n.scrollOptions})},sn={updateDroppableIsEnabled:ze,updateDroppableIsCombineEnabled:Ve,scrollDroppable:mt,updateDroppableScroll:nt,startPublishing:En,stopPublishing:nn};return sn},Gn=function(te,ne){return te.phase==="IDLE"?!0:te.phase!=="DROP_ANIMATING"||te.completed.result.draggableId===ne?!1:te.completed.result.reason==="DROP"},ia=function(te){window.scrollBy(te.x,te.y)},_r=wn(function(te){return za(te).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),da=function(ne,oe){var ve=Kr(_r(oe),function(ze){return ze.frame||gt(!1),fo(ze.frame.pageMarginBox)(ne)});return ve},Ea=function(te){var ne=te.center,oe=te.destination,ve=te.droppables;if(oe){var ze=ve[oe];return ze.frame?ze:null}var Ve=da(ne,ve);return Ve},Jr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Aa=function(te,ne){var oe=te[ne.size]*Jr.startFromPercentage,ve=te[ne.size]*Jr.maxScrollAtPercentage,ze={startScrollingFrom:oe,maxScrollValueAt:ve};return ze},La=function(te){var ne=te.startOfRange,oe=te.endOfRange,ve=te.current,ze=oe-ne;if(ze===0)return 0;var Ve=ve-ne,nt=Ve/ze;return nt},Qa=1,Ga=function(te,ne){if(te>ne.startScrollingFrom)return 0;if(te<=ne.maxScrollValueAt)return Jr.maxPixelScroll;if(te===ne.startScrollingFrom)return Qa;var oe=La({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:te}),ve=1-oe,ze=Jr.maxPixelScroll*Jr.ease(ve);return Math.ceil(ze)},eo=Jr.durationDampening.accelerateAt,Si=Jr.durationDampening.stopDampeningAt,vi=function(te,ne){var oe=ne,ve=Si,ze=Date.now(),Ve=ze-oe;if(Ve>=Si)return te;if(Ve<eo)return Qa;var nt=La({startOfRange:eo,endOfRange:ve,current:Ve}),mt=te*Jr.ease(nt);return Math.ceil(mt)},$i=function(te){var ne=te.distanceToEdge,oe=te.thresholds,ve=te.dragStartTime,ze=te.shouldUseTimeDampening,Ve=Ga(ne,oe);return Ve===0?0:ze?Math.max(vi(Ve,ve),Qa):Ve},qa=function(te){var ne=te.container,oe=te.distanceToEdges,ve=te.dragStartTime,ze=te.axis,Ve=te.shouldUseTimeDampening,nt=Aa(ne,ze),mt=oe[ze.end]<oe[ze.start];return mt?$i({distanceToEdge:oe[ze.end],thresholds:nt,dragStartTime:ve,shouldUseTimeDampening:Ve}):-1*$i({distanceToEdge:oe[ze.start],thresholds:nt,dragStartTime:ve,shouldUseTimeDampening:Ve})},ti=function(te){var ne=te.container,oe=te.subject,ve=te.proposedScroll,ze=oe.height>ne.height,Ve=oe.width>ne.width;return!Ve&&!ze?ve:Ve&&ze?null:{x:Ve?0:ve.x,y:ze?0:ve.y}},Ra=oa(function(te){return te===0?0:te}),Ca=function(te){var ne=te.dragStartTime,oe=te.container,ve=te.subject,ze=te.center,Ve=te.shouldUseTimeDampening,nt={top:ze.y-oe.top,right:oe.right-ze.x,bottom:oe.bottom-ze.y,left:ze.x-oe.left},mt=qa({container:oe,distanceToEdges:nt,dragStartTime:ne,axis:Dr,shouldUseTimeDampening:Ve}),nn=qa({container:oe,distanceToEdges:nt,dragStartTime:ne,axis:jr,shouldUseTimeDampening:Ve}),Bn=Ra({x:nn,y:mt});if(Tr(Bn,Hn))return null;var En=ti({container:oe,subject:ve,proposedScroll:Bn});return En?Tr(En,Hn)?null:En:null},Ja=oa(function(te){return te===0?0:te>0?1:-1}),ni=function(){var te=function(oe,ve){return oe<0?oe:oe>ve?oe-ve:0};return function(ne){var oe=ne.current,ve=ne.max,ze=ne.change,Ve=hr(oe,ze),nt={x:te(Ve.x,ve.x),y:te(Ve.y,ve.y)};return Tr(nt,Hn)?null:nt}}(),wi=function(ne){var oe=ne.max,ve=ne.current,ze=ne.change,Ve={x:Math.max(ve.x,oe.x),y:Math.max(ve.y,oe.y)},nt=Ja(ze),mt=ni({max:Ve,current:ve,change:nt});return!mt||nt.x!==0&&mt.x===0||nt.y!==0&&mt.y===0},Ma=function(ne,oe){return wi({current:ne.scroll.current,max:ne.scroll.max,change:oe})},lo=function(ne,oe){if(!Ma(ne,oe))return null;var ve=ne.scroll.max,ze=ne.scroll.current;return ni({current:ze,max:ve,change:oe})},so=function(ne,oe){var ve=ne.frame;return ve?wi({current:ve.scroll.current,max:ve.scroll.max,change:oe}):!1},pl=function(ne,oe){var ve=ne.frame;return!ve||!so(ne,oe)?null:ni({current:ve.scroll.current,max:ve.scroll.max,change:oe})},ul=function(te){var ne=te.viewport,oe=te.subject,ve=te.center,ze=te.dragStartTime,Ve=te.shouldUseTimeDampening,nt=Ca({dragStartTime:ze,container:ne.frame,subject:oe,center:ve,shouldUseTimeDampening:Ve});return nt&&Ma(ne,nt)?nt:null},el=function(te){var ne=te.droppable,oe=te.subject,ve=te.center,ze=te.dragStartTime,Ve=te.shouldUseTimeDampening,nt=ne.frame;if(!nt)return null;var mt=Ca({dragStartTime:ze,container:nt.pageMarginBox,subject:oe,center:ve,shouldUseTimeDampening:Ve});return mt&&so(ne,mt)?mt:null},ol=function(te){var ne=te.state,oe=te.dragStartTime,ve=te.shouldUseTimeDampening,ze=te.scrollWindow,Ve=te.scrollDroppable,nt=ne.current.page.borderBoxCenter,mt=ne.dimensions.draggables[ne.critical.draggable.id],nn=mt.page.marginBox;if(ne.isWindowScrollAllowed){var Bn=ne.viewport,En=ul({dragStartTime:oe,viewport:Bn,subject:nn,center:nt,shouldUseTimeDampening:ve});if(En){ze(En);return}}var sn=Ea({center:nt,destination:gr(ne.impact),droppables:ne.dimensions.droppables});if(sn){var mn=el({dragStartTime:oe,droppable:sn,subject:nn,center:nt,shouldUseTimeDampening:ve});mn&&Ve(sn.descriptor.id,mn)}},El=function(te){var ne=te.scrollWindow,oe=te.scrollDroppable,ve=Pn(ne),ze=Pn(oe),Ve=null,nt=function(En){Ve||gt(!1);var sn=Ve,mn=sn.shouldUseTimeDampening,_n=sn.dragStartTime;ol({state:En,scrollWindow:ve,scrollDroppable:ze,dragStartTime:_n,shouldUseTimeDampening:mn})},mt=function(En){pr(),Ve&>(!1);var sn=Date.now(),mn=!1,_n=function(){mn=!0};ol({state:En,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:_n,scrollDroppable:_n}),Ve={dragStartTime:sn,shouldUseTimeDampening:mn},Fr(),mn&&nt(En)},nn=function(){Ve&&(ve.cancel(),ze.cancel(),Ve=null)};return{start:mt,stop:nn,scroll:nt}},mo=function(te){var ne=te.move,oe=te.scrollDroppable,ve=te.scrollWindow,ze=function(Bn,En){var sn=hr(Bn.current.client.selection,En);ne({client:sn})},Ve=function(Bn,En){if(!so(Bn,En))return En;var sn=pl(Bn,En);if(!sn)return oe(Bn.descriptor.id,En),null;var mn=Pr(En,sn);oe(Bn.descriptor.id,mn);var _n=Pr(En,mn);return _n},nt=function(Bn,En,sn){if(!Bn||!Ma(En,sn))return sn;var mn=lo(En,sn);if(!mn)return ve(sn),null;var _n=Pr(sn,mn);ve(_n);var sr=Pr(sn,_n);return sr},mt=function(Bn){var En=Bn.scrollJumpRequest;if(En){var sn=gr(Bn.impact);sn||gt(!1);var mn=Ve(Bn.dimensions.droppables[sn],En);if(mn){var _n=Bn.viewport,sr=nt(Bn.isWindowScrollAllowed,_n,mn);sr&&ze(Bn,sr)}}};return mt},yo=function(te){var ne=te.scrollDroppable,oe=te.scrollWindow,ve=te.move,ze=El({scrollWindow:oe,scrollDroppable:ne}),Ve=mo({move:ve,scrollWindow:oe,scrollDroppable:ne}),nt=function(Bn){if(Bn.phase==="DRAGGING"){if(Bn.movementMode==="FLUID"){ze.scroll(Bn);return}Bn.scrollJumpRequest&&Ve(Bn)}},mt={scroll:nt,start:ze.start,stop:ze.stop};return mt},ll="data-rbd",cl=function(){var te=ll+"-drag-handle";return{base:te,draggableId:te+"-draggable-id",contextId:te+"-context-id"}}(),fi=function(){var te=ll+"-draggable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),qi=function(){var te=ll+"-droppable";return{base:te,contextId:te+"-context-id",id:te+"-id"}}(),li={contextId:ll+"-scroll-container-context-id"},Ua=function(ne){return function(oe){return"["+oe+'="'+ne+'"]'}},po=function(ne,oe){return ne.map(function(ve){var ze=ve.styles[oe];return ze?ve.selector+" { "+ze+" }":""}).join(" ")},To="pointer-events: none;",sl=function(te){var ne=Ua(te),oe=function(){var mt=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ne(cl.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:mt,dragging:To,dropAnimating:mt}}}(),ve=function(){var mt=`
|
|
|
transition: `+gs.outOfTheWay+`;
|
|
|
`;return{selector:ne(fi.contextId),styles:{dragging:mt,dropAnimating:mt,userCancel:mt}}}(),ze={selector:ne(qi.contextId),styles:{always:"overflow-anchor: none;"}},Ve={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;
|
|
|
`}},nt=[ve,oe,ze,Ve];return{always:po(nt,"always"),resting:po(nt,"resting"),dragging:po(nt,"dragging"),dropAnimating:po(nt,"dropAnimating"),userCancel:po(nt,"userCancel")}},Co=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,hl=function(){var ne=document.querySelector("head");return ne||gt(!1),ne},Bl=function(ne){var oe=document.createElement("style");return ne&&oe.setAttribute("nonce",ne),oe.type="text/css",oe};function Bi(te,ne){var oe=Qt(function(){return sl(te)},[te]),ve=(0,y.useRef)(null),ze=(0,y.useRef)(null),Ve=jt(wn(function(sn){var mn=ze.current;mn||gt(!1),mn.textContent=sn}),[]),nt=jt(function(sn){var mn=ve.current;mn||gt(!1),mn.textContent=sn},[]);Co(function(){!ve.current&&!ze.current||gt(!1);var sn=Bl(ne),mn=Bl(ne);return ve.current=sn,ze.current=mn,sn.setAttribute(ll+"-always",te),mn.setAttribute(ll+"-dynamic",te),hl().appendChild(sn),hl().appendChild(mn),nt(oe.always),Ve(oe.resting),function(){var _n=function(va){var Oa=va.current;Oa||gt(!1),hl().removeChild(Oa),va.current=null};_n(ve),_n(ze)}},[ne,nt,Ve,oe.always,oe.resting,te]);var mt=jt(function(){return Ve(oe.dragging)},[Ve,oe.dragging]),nn=jt(function(sn){if(sn==="DROP"){Ve(oe.dropAnimating);return}Ve(oe.userCancel)},[Ve,oe.dropAnimating,oe.userCancel]),Bn=jt(function(){ze.current&&Ve(oe.resting)},[Ve,oe.resting]),En=Qt(function(){return{dragging:mt,dropping:nn,resting:Bn}},[mt,nn,Bn]);return En}var Ri=function(te){return te&&te.ownerDocument?te.ownerDocument.defaultView:window};function Do(te){return te instanceof Ri(te).HTMLElement}function zo(te,ne){var oe="["+cl.contextId+'="'+te+'"]',ve=Ya(document.querySelectorAll(oe));if(!ve.length)return null;var ze=Kr(ve,function(Ve){return Ve.getAttribute(cl.draggableId)===ne});return!ze||!Do(ze)?null:ze}function jo(te){var ne=(0,y.useRef)({}),oe=(0,y.useRef)(null),ve=(0,y.useRef)(null),ze=(0,y.useRef)(!1),Ve=jt(function(mn,_n){var sr={id:mn,focus:_n};return ne.current[mn]=sr,function(){var Oa=ne.current,ka=Oa[mn];ka!==sr&&delete Oa[mn]}},[]),nt=jt(function(mn){var _n=zo(te,mn);_n&&_n!==document.activeElement&&_n.focus()},[te]),mt=jt(function(mn,_n){oe.current===mn&&(oe.current=_n)},[]),nn=jt(function(){ve.current||ze.current&&(ve.current=requestAnimationFrame(function(){ve.current=null;var mn=oe.current;mn&&nt(mn)}))},[nt]),Bn=jt(function(mn){oe.current=null;var _n=document.activeElement;_n&&_n.getAttribute(cl.draggableId)===mn&&(oe.current=mn)},[]);Co(function(){return ze.current=!0,function(){ze.current=!1;var mn=ve.current;mn&&cancelAnimationFrame(mn)}},[]);var En=Qt(function(){return{register:Ve,tryRecordFocus:Bn,tryRestoreFocusRecorded:nn,tryShiftRecord:mt}},[Ve,Bn,nn,mt]);return En}function Ml(){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 ve(sn){ne.length&&ne.forEach(function(mn){return mn(sn)})}function ze(sn){return te.draggables[sn]||null}function Ve(sn){var mn=ze(sn);return mn||gt(!1),mn}var nt={register:function(mn){te.draggables[mn.descriptor.id]=mn,ve({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],ve({type:"REMOVAL",value:mn}))},getById:Ve,findById:ze,exists:function(mn){return!!ze(mn)},getAllByType:function(mn){return Sa(te.draggables).filter(function(_n){return _n.descriptor.type===mn})}};function mt(sn){return te.droppables[sn]||null}function nn(sn){var mn=mt(sn);return mn||gt(!1),mn}var Bn={register:function(mn){te.droppables[mn.descriptor.id]=mn},unregister:function(mn){var _n=mt(mn.descriptor.id);_n&&mn.uniqueId===_n.uniqueId&&delete te.droppables[mn.descriptor.id]},getById:nn,findById:mt,exists:function(mn){return!!mt(mn)},getAllByType:function(mn){return Sa(te.droppables).filter(function(_n){return _n.descriptor.type===mn})}};function En(){te.draggables={},te.droppables={},ne.length=0}return{draggable:nt,droppable:Bn,subscribe:oe,clean:En}}function Cl(){var te=Qt(Ml,[]);return(0,y.useEffect)(function(){return function(){requestAnimationFrame(te.clean)}},[te]),te}var Yl=y.createContext(null),Go=function(){var te=document.body;return te||gt(!1),te},Ao={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Xo=function(ne){return"rbd-announcement-"+ne};function tl(te){var ne=Qt(function(){return Xo(te)},[te]),oe=(0,y.useRef)(null);(0,y.useEffect)(function(){var Ve=document.createElement("div");return oe.current=Ve,Ve.id=ne,Ve.setAttribute("aria-live","assertive"),Ve.setAttribute("aria-atomic","true"),(0,ce.Z)(Ve.style,Ao),Go().appendChild(Ve),function(){setTimeout(function(){var nn=Go();nn.contains(Ve)&&nn.removeChild(Ve),Ve===oe.current&&(oe.current=null)})}},[ne]);var ve=jt(function(ze){var Ve=oe.current;if(Ve){Ve.textContent=ze;return}},[]);return ve}var Dl=0,vl={separator:"::"};function Oo(){Dl=0}function nl(te,ne){return ne===void 0&&(ne=vl),Qt(function(){return""+te+ne.separator+Dl++},[ne.separator,te])}function Lo(te){var ne=te.contextId,oe=te.uniqueId;return"rbd-hidden-text-"+ne+"-"+oe}function Kl(te){var ne=te.contextId,oe=te.text,ve=nl("hidden-text",{separator:"-"}),ze=Qt(function(){return Lo({contextId:ne,uniqueId:ve})},[ve,ne]);return(0,y.useEffect)(function(){var nt=document.createElement("div");return nt.id=ze,nt.textContent=oe,nt.style.display="none",Go().appendChild(nt),function(){var nn=Go();nn.contains(nt)&&nn.removeChild(nt)}},[ze,oe]),ze}var gl=y.createContext(null),ts={react:"^16.8.5","react-dom":"^16.8.5"},os=/(\d+)\.(\d+)\.(\d+)/,Bs=function(ne){var oe=os.exec(ne);oe==null&>(!1);var ve=Number(oe[1]),ze=Number(oe[2]),Ve=Number(oe[3]);return{major:ve,minor:ze,patch:Ve,raw:ne}},rl=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},fu=function(te,ne){var oe=Bs(te),ve=Bs(ne);rl(oe,ve)},ls=`
|
|
|
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
|
|
|
`,bs=function(te){var ne=te.doctype;ne&&(ne.name.toLowerCase(),ne.publicId)};function Es(te){}function Wl(te,ne){}function al(){Wl(function(){fu(ts.react,y.version),bs(document)},[])}function ss(te){var ne=(0,y.useRef)(te);return(0,y.useEffect)(function(){ne.current=te}),ne}function Hs(){var te=null;function ne(){return!!te}function oe(nt){return nt===te}function ve(nt){te&>(!1);var mt={abandon:nt};return te=mt,mt}function ze(){te||gt(!1),te=null}function Ve(){te&&(te.abandon(),ze())}return{isClaimed:ne,isActive:oe,claim:ve,release:ze,tryAbandon:Ve}}var Os=9,Ns=13,nu=27,mu=32,Su=33,wu=34,Zu=35,io=36,wo=37,fl=38,xl=39,zl=40,Sl,Ds=(Sl={},Sl[Ns]=!0,Sl[Os]=!0,Sl),Gl=function(te){Ds[te.keyCode]&&te.preventDefault()},ks=function(){var te="visibilitychange";if(typeof document=="undefined")return te;var ne=[te,"ms"+te,"webkit"+te,"moz"+te,"o"+te],oe=Kr(ne,function(ve){return"on"+ve in document});return oe||te}(),Bu=0,ru=5;function Ys(te,ne){return Math.abs(ne.x-te.x)>=ru||Math.abs(ne.y-te.y)>=ru}var pu={type:"IDLE"};function Qs(te){var ne=te.cancel,oe=te.completed,ve=te.getPhase,ze=te.setPhase;return[{eventName:"mousemove",fn:function(nt){var mt=nt.button,nn=nt.clientX,Bn=nt.clientY;if(mt===Bu){var En={x:nn,y:Bn},sn=ve();if(sn.type==="DRAGGING"){nt.preventDefault(),sn.actions.move(En);return}sn.type!=="PENDING"&>(!1);var mn=sn.point;if(Ys(mn,En)){nt.preventDefault();var _n=sn.actions.fluidLift(En);ze({type:"DRAGGING",actions:_n})}}}},{eventName:"mouseup",fn:function(nt){var mt=ve();if(mt.type!=="DRAGGING"){ne();return}nt.preventDefault(),mt.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"mousedown",fn:function(nt){ve().type==="DRAGGING"&&nt.preventDefault(),ne()}},{eventName:"keydown",fn:function(nt){var mt=ve();if(mt.type==="PENDING"){ne();return}if(nt.keyCode===nu){nt.preventDefault(),ne();return}Gl(nt)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ve().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(nt){var mt=ve();if(mt.type==="IDLE"&>(!1),mt.actions.shouldRespectForcePress()){ne();return}nt.preventDefault()}},{eventName:ks,fn:ne}]}function $u(te){var ne=(0,y.useRef)(pu),oe=(0,y.useRef)(ur),ve=Qt(function(){return{eventName:"mousedown",fn:function(sn){if(!sn.defaultPrevented&&sn.button===Bu&&!(sn.ctrlKey||sn.metaKey||sn.shiftKey||sn.altKey)){var mn=te.findClosestDraggableId(sn);if(mn){var _n=te.tryGetLock(mn,nt,{sourceEvent:sn});if(_n){sn.preventDefault();var sr={x:sn.clientX,y:sn.clientY};oe.current(),Bn(_n,sr)}}}}}},[te]),ze=Qt(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]),Ve=jt(function(){var sn={passive:!1,capture:!0};oe.current=Ut(window,[ze,ve],sn)},[ze,ve]),nt=jt(function(){var En=ne.current;En.type!=="IDLE"&&(ne.current=pu,oe.current(),Ve())},[Ve]),mt=jt(function(){var En=ne.current;nt(),En.type==="DRAGGING"&&En.actions.cancel({shouldBlockNextClick:!0}),En.type==="PENDING"&&En.actions.abort()},[nt]),nn=jt(function(){var sn={capture:!0,passive:!1},mn=Qs({cancel:mt,completed:nt,getPhase:function(){return ne.current},setPhase:function(sr){ne.current=sr}});oe.current=Ut(window,mn,sn)},[mt,nt]),Bn=jt(function(sn,mn){ne.current.type!=="IDLE"&>(!1),ne.current={type:"PENDING",point:mn,actions:sn},nn()},[nn]);Co(function(){return Ve(),function(){oe.current()}},[Ve])}var Ls;function ju(){}var tc=(Ls={},Ls[wu]=!0,Ls[Su]=!0,Ls[io]=!0,Ls[Zu]=!0,Ls);function Vs(te,ne){function oe(){ne(),te.cancel()}function ve(){ne(),te.drop()}return[{eventName:"keydown",fn:function(Ve){if(Ve.keyCode===nu){Ve.preventDefault(),oe();return}if(Ve.keyCode===mu){Ve.preventDefault(),ve();return}if(Ve.keyCode===zl){Ve.preventDefault(),te.moveDown();return}if(Ve.keyCode===fl){Ve.preventDefault(),te.moveUp();return}if(Ve.keyCode===xl){Ve.preventDefault(),te.moveRight();return}if(Ve.keyCode===wo){Ve.preventDefault(),te.moveLeft();return}if(tc[Ve.keyCode]){Ve.preventDefault();return}Gl(Ve)}},{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:ks,fn:oe}]}function Wu(te){var ne=(0,y.useRef)(ju),oe=Qt(function(){return{eventName:"keydown",fn:function(Ve){if(Ve.defaultPrevented||Ve.keyCode!==mu)return;var nt=te.findClosestDraggableId(Ve);if(!nt)return;var mt=te.tryGetLock(nt,En,{sourceEvent:Ve});if(!mt)return;Ve.preventDefault();var nn=!0,Bn=mt.snapLift();ne.current();function En(){nn||gt(!1),nn=!1,ne.current(),ve()}ne.current=Ut(window,Vs(Bn,En),{capture:!0,passive:!1})}}},[te]),ve=jt(function(){var Ve={passive:!1,capture:!0};ne.current=Ut(window,[oe],Ve)},[oe]);Co(function(){return ve(),function(){ne.current()}},[ve])}var zu={type:"IDLE"},Hu=120,hu=.15;function sc(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===nu&&ze.preventDefault(),ne()}},{eventName:ks,fn:ne}]}function uc(te){var ne=te.cancel,oe=te.completed,ve=te.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Ve){var nt=ve();if(nt.type!=="DRAGGING"){ne();return}nt.hasMoved=!0;var mt=Ve.touches[0],nn=mt.clientX,Bn=mt.clientY,En={x:nn,y:Bn};Ve.preventDefault(),nt.actions.move(En)}},{eventName:"touchend",fn:function(Ve){var nt=ve();if(nt.type!=="DRAGGING"){ne();return}Ve.preventDefault(),nt.actions.drop({shouldBlockNextClick:!0}),oe()}},{eventName:"touchcancel",fn:function(Ve){if(ve().type!=="DRAGGING"){ne();return}Ve.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(Ve){var nt=ve();nt.type==="IDLE"&>(!1);var mt=Ve.touches[0];if(mt){var nn=mt.force>=hu;if(nn){var Bn=nt.actions.shouldRespectForcePress();if(nt.type==="PENDING"){Bn&&ne();return}if(Bn){if(nt.hasMoved){Ve.preventDefault();return}ne();return}Ve.preventDefault()}}}},{eventName:ks,fn:ne}]}function vu(te){var ne=(0,y.useRef)(zu),oe=(0,y.useRef)(ur),ve=jt(function(){return ne.current},[]),ze=jt(function(_n){ne.current=_n},[]),Ve=Qt(function(){return{eventName:"touchstart",fn:function(_n){if(!_n.defaultPrevented){var sr=te.findClosestDraggableId(_n);if(sr){var va=te.tryGetLock(sr,mt,{sourceEvent:_n});if(va){var Oa=_n.touches[0],ka=Oa.clientX,oi=Oa.clientY,Fi={x:ka,y:oi};oe.current(),sn(va,Fi)}}}}}},[te]),nt=jt(function(){var _n={capture:!0,passive:!1};oe.current=Ut(window,[Ve],_n)},[Ve]),mt=jt(function(){var mn=ne.current;mn.type!=="IDLE"&&(mn.type==="PENDING"&&clearTimeout(mn.longPressTimerId),ze(zu),oe.current(),nt())},[nt,ze]),nn=jt(function(){var mn=ne.current;mt(),mn.type==="DRAGGING"&&mn.actions.cancel({shouldBlockNextClick:!0}),mn.type==="PENDING"&&mn.actions.abort()},[mt]),Bn=jt(function(){var _n={capture:!0,passive:!1},sr={cancel:nn,completed:mt,getPhase:ve},va=Ut(window,uc(sr),_n),Oa=Ut(window,sc(sr),_n);oe.current=function(){va(),Oa()}},[nn,ve,mt]),En=jt(function(){var _n=ve();_n.type!=="PENDING"&>(!1);var sr=_n.actions.fluidLift(_n.point);ze({type:"DRAGGING",actions:sr,hasMoved:!1})},[ve,ze]),sn=jt(function(_n,sr){ve().type!=="IDLE"&>(!1);var va=setTimeout(En,Hu);ze({type:"PENDING",point:sr,actions:_n,longPressTimerId:va}),Bn()},[Bn,ve,ze,En]);Co(function(){return nt(),function(){oe.current();var sr=ve();sr.type==="PENDING"&&(clearTimeout(sr.longPressTimerId),ze(zu))}},[ve,nt,ze]),Co(function(){var _n=Ut(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return _n},[])}function Vu(te){}var gu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Du(te,ne){if(ne==null)return!1;var oe=!!gu[ne.tagName.toLowerCase()];if(oe)return!0;var ve=ne.getAttribute("contenteditable");return ve==="true"||ve===""?!0:ne===te?!1:Du(te,ne.parentElement)}function yu(te,ne){var oe=ne.target;return Do(oe)?Du(te,oe):!1}var Ku=function(te){return yn(te.getBoundingClientRect()).center};function nc(te){return te instanceof Ri(te).Element}var Gu=function(){var te="matches";if(typeof document=="undefined")return te;var ne=[te,"msMatchesSelector","webkitMatchesSelector"],oe=Kr(ne,function(ve){return ve in Element.prototype});return oe||te}();function Fu(te,ne){return te==null?null:te[Gu](ne)?te:Fu(te.parentElement,ne)}function cc(te,ne){return te.closest?te.closest(ne):Fu(te,ne)}function Iu(te){return"["+cl.contextId+'="'+te+'"]'}function Js(te,ne){var oe=ne.target;if(!nc(oe))return null;var ve=Iu(te),ze=cc(oe,ve);return!ze||!Do(ze)?null:ze}function au(te,ne){var oe=Js(te,ne);return oe?oe.getAttribute(cl.draggableId):null}function Uu(te,ne){var oe="["+fi.contextId+'="'+te+'"]',ve=Ya(document.querySelectorAll(oe)),ze=Kr(ve,function(Ve){return Ve.getAttribute(fi.id)===ne});return!ze||!Do(ze)?null:ze}function Xu(te){te.preventDefault()}function Pu(te){var ne=te.expected,oe=te.phase,ve=te.isLockActive,ze=te.shouldWarn;return!(!ve()||ne!==oe)}function Fo(te){var ne=te.lockAPI,oe=te.store,ve=te.registry,ze=te.draggableId;if(ne.isClaimed())return!1;var Ve=ve.draggable.findById(ze);return!(!Ve||!Ve.options.isEnabled||!Gn(oe.getState(),ze))}function Mo(te){var ne=te.lockAPI,oe=te.contextId,ve=te.store,ze=te.registry,Ve=te.draggableId,nt=te.forceSensorStop,mt=te.sourceEvent,nn=Fo({lockAPI:ne,store:ve,registry:ze,draggableId:Ve});if(!nn)return null;var Bn=ze.draggable.getById(Ve),En=Uu(oe,Bn.descriptor.id);if(!En||mt&&!Bn.options.canDragInteractiveElements&&yu(En,mt))return null;var sn=ne.claim(nt||ur),mn="PRE_DRAG";function _n(){return Bn.options.shouldRespectForcePress}function sr(){return ne.isActive(sn)}function va(ho,Zo){Pu({expected:ho,phase:mn,isLockActive:sr,shouldWarn:!0})&&ve.dispatch(Zo())}var Oa=va.bind(null,"DRAGGING");function ka(ho){function Zo(){ne.release(),mn="COMPLETED"}mn!=="PRE_DRAG"&&(Zo(),mn!=="PRE_DRAG"&>(!1)),ve.dispatch(Yr(ho.liftActionArgs)),mn="DRAGGING";function Hl(Ho,Vl){if(Vl===void 0&&(Vl={shouldBlockNextClick:!1}),ho.cleanup(),Vl.shouldBlockNextClick){var us=Ut(window,[{eventName:"click",fn:Xu,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(us)}Zo(),ve.dispatch(yl({reason:Ho}))}return(0,ce.Z)({isActive:function(){return Pu({expected:"DRAGGING",phase:mn,isLockActive:sr,shouldWarn:!1})},shouldRespectForcePress:_n,drop:function(Vl){return Hl("DROP",Vl)},cancel:function(Vl){return Hl("CANCEL",Vl)}},ho.actions)}function oi(ho){var Zo=Pn(function(Ho){Oa(function(){return qo({client:Ho})})}),Hl=ka({liftActionArgs:{id:Ve,clientSelection:ho,movementMode:"FLUID"},cleanup:function(){return Zo.cancel()},actions:{move:Zo}});return(0,ce.Z)({},Hl,{move:Zo})}function Fi(){var ho={moveUp:function(){return Oa(Oi)},moveRight:function(){return Oa(Pl)},moveDown:function(){return Oa(Tl)},moveLeft:function(){return Oa(Gr)}};return ka({liftActionArgs:{id:Ve,clientSelection:Ku(En),movementMode:"SNAP"},cleanup:ur,actions:ho})}function Ti(){var ho=Pu({expected:"PRE_DRAG",phase:mn,isLockActive:sr,shouldWarn:!0});ho&&ne.release()}var xo={isActive:function(){return Pu({expected:"PRE_DRAG",phase:mn,isLockActive:sr,shouldWarn:!1})},shouldRespectForcePress:_n,fluidLift:oi,snapLift:Fi,abort:Ti};return xo}var Ql=[$u,Wu,vu];function ds(te){var ne=te.contextId,oe=te.store,ve=te.registry,ze=te.customSensors,Ve=te.enableDefaultSensors,nt=[].concat(Ve?Ql:[],ze||[]),mt=(0,y.useState)(function(){return Hs()})[0],nn=jt(function(oi,Fi){oi.isDragging&&!Fi.isDragging&&mt.tryAbandon()},[mt]);Co(function(){var oi=oe.getState(),Fi=oe.subscribe(function(){var Ti=oe.getState();nn(oi,Ti),oi=Ti});return Fi},[mt,oe,nn]),Co(function(){return mt.tryAbandon},[mt.tryAbandon]);var Bn=jt(function(ka){return Fo({lockAPI:mt,registry:ve,store:oe,draggableId:ka})},[mt,ve,oe]),En=jt(function(ka,oi,Fi){return Mo({lockAPI:mt,registry:ve,contextId:ne,store:oe,draggableId:ka,forceSensorStop:oi,sourceEvent:Fi&&Fi.sourceEvent?Fi.sourceEvent:null})},[ne,mt,ve,oe]),sn=jt(function(ka){return au(ne,ka)},[ne]),mn=jt(function(ka){var oi=ve.draggable.findById(ka);return oi?oi.options:null},[ve.draggable]),_n=jt(function(){mt.isClaimed()&&(mt.tryAbandon(),oe.getState().phase!=="IDLE"&&oe.dispatch(bo()))},[mt,oe]),sr=jt(mt.isClaimed,[mt]),va=Qt(function(){return{canGetLock:Bn,tryGetLock:En,findClosestDraggableId:sn,findOptionsForDraggable:mn,tryReleaseLock:_n,isLockClaimed:sr}},[Bn,En,sn,mn,_n,sr]);Vu(nt);for(var Oa=0;Oa<nt.length;Oa++)nt[Oa](va)}var Jl=function(ne){return{onBeforeCapture:ne.onBeforeCapture,onBeforeDragStart:ne.onBeforeDragStart,onDragStart:ne.onDragStart,onDragEnd:ne.onDragEnd,onDragUpdate:ne.onDragUpdate}};function _s(te){return te.current||gt(!1),te.current}function Ks(te){var ne=te.contextId,oe=te.setCallbacks,ve=te.sensors,ze=te.nonce,Ve=te.dragHandleUsageInstructions,nt=(0,y.useRef)(null);al();var mt=ss(te),nn=jt(function(){return Jl(mt.current)},[mt]),Bn=tl(ne),En=Kl({contextId:ne,text:Ve}),sn=Bi(ne,ze),mn=jt(function(Ho){_s(nt).dispatch(Ho)},[]),_n=Qt(function(){return(0,_e.DE)({publishWhileDragging:ba,updateDroppableScroll:ra,updateDroppableIsEnabled:Pa,updateDroppableIsCombineEnabled:ao,collectionStarting:ca},mn)},[mn]),sr=Cl(),va=Qt(function(){return Xn(sr,_n)},[sr,_n]),Oa=Qt(function(){return yo((0,ce.Z)({scrollWindow:ia,scrollDroppable:va.scrollDroppable},(0,_e.DE)({move:qo},mn)))},[va.scrollDroppable,mn]),ka=jo(ne),oi=Qt(function(){return an({announce:Bn,autoScroller:Oa,dimensionMarshal:va,focusMarshal:ka,getResponders:nn,styleMarshal:sn})},[Bn,Oa,va,ka,nn,sn]);nt.current=oi;var Fi=jt(function(){var Ho=_s(nt),Vl=Ho.getState();Vl.phase!=="IDLE"&&Ho.dispatch(bo())},[]),Ti=jt(function(){var Ho=_s(nt).getState();return Ho.isDragging||Ho.phase==="DROP_ANIMATING"},[]),xo=Qt(function(){return{isDragging:Ti,tryAbort:Fi}},[Ti,Fi]);oe(xo);var ho=jt(function(Ho){return Gn(_s(nt).getState(),Ho)},[]),Zo=jt(function(){return ki(_s(nt).getState())},[]),Hl=Qt(function(){return{marshal:va,focus:ka,contextId:ne,canLift:ho,isMovementAllowed:Zo,dragHandleUsageInstructionsId:En,registry:sr}},[ne,va,En,ka,ho,Zo,sr]);return ds({contextId:ne,store:oi,registry:sr,customSensors:ve,enableDefaultSensors:te.enableDefaultSensors!==!1}),(0,y.useEffect)(function(){return Fi},[Fi]),y.createElement(gl.Provider,{value:Hl},y.createElement(we,{context:Yl,store:oi},te.children))}var Ts=0;function iu(){Ts=0}function Yu(){return Qt(function(){return""+Ts++},[])}function Tc(){iu(),Oo()}function Au(te){var ne=Yu(),oe=te.dragHandleUsageInstructions||Un.dragHandleUsageInstructions;return y.createElement(cn,null,function(ve){return y.createElement(Ks,{nonce:te.nonce,contextId:ne,setCallbacks:ve,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 rc=function(ne){return function(oe){return ne===oe}},ac=rc("scroll"),Mc=rc("auto"),Rc=rc("visible"),bc=function(ne,oe){return oe(ne.overflowX)||oe(ne.overflowY)},wl=function(ne,oe){return oe(ne.overflowX)&&oe(ne.overflowY)},Ec=function(ne){var oe=window.getComputedStyle(ne),ve={overflowX:oe.overflowX,overflowY:oe.overflowY};return bc(ve,ac)||bc(ve,Mc)},dc=function(){return!1;var ne,oe,ve,ze},Ou=function te(ne){return ne==null?null:ne===document.body?dc()?ne:null:ne===document.documentElement?null:Ec(ne)?ne:te(ne.parentElement)},Gs=function(te){if(te)var ne=Ou(te.parentElement)},Nu=function(te){return{x:te.scrollLeft,y:te.scrollTop}},fc=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=Ou(te),oe=fc(te);return{closestScrollable:ne,isFixedOnPage:oe}},xc=function(te){var ne=te.descriptor,oe=te.isEnabled,ve=te.isCombineEnabled,ze=te.isFixedOnPage,Ve=te.direction,nt=te.client,mt=te.page,nn=te.closest,Bn=function(){if(!nn)return null;var _n=nn.scrollSize,sr=nn.client,va=In({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:Hn,displacement:Hn}}}}(),En=Ve==="vertical"?Dr:jr,sn=pa({page:mt,withPlaceholder:null,axis:En,frame:Bn}),mn={descriptor:ne,isCombineEnabled:ve,isFixedOnPage:ze,axis:En,isEnabled:oe,client:nt,page:mt,frame:Bn,subject:sn};return mn},Sc=function(ne,oe){var ve=Ot(ne);if(!oe||ne!==oe)return ve;var ze=ve.paddingBox.top-oe.scrollTop,Ve=ve.paddingBox.left-oe.scrollLeft,nt=ze+oe.scrollHeight,mt=Ve+oe.scrollWidth,nn={top:ze,right:mt,bottom:nt,left:Ve},Bn=lt(nn,ve.border),En=Yt({borderBox:Bn,margin:ve.margin,border:ve.border,padding:ve.padding});return En},wc=function(te){var ne=te.ref,oe=te.descriptor,ve=te.env,ze=te.windowScroll,Ve=te.direction,nt=te.isDropDisabled,mt=te.isCombineEnabled,nn=te.shouldClipSubject,Bn=ve.closestScrollable,En=Sc(ne,Bn),sn=Dn(En,ze),mn=function(){if(!Bn)return null;var sr=Ot(Bn),va={scrollHeight:Bn.scrollHeight,scrollWidth:Bn.scrollWidth};return{client:sr,page:Dn(sr,ze),scroll:Nu(Bn),scrollSize:va,shouldClipSubject:nn}}(),_n=xc({descriptor:oe,isEnabled:!nt,isCombineEnabled:mt,isFixedOnPage:ve.isFixedOnPage,direction:Ve,client:En,page:sn,closest:mn});return _n},Bc={passive:!1},kc={passive:!0},ic=function(te){return te.shouldPublishImmediately?Bc:kc};function Qu(te){var ne=(0,y.useContext)(te);return ne||gt(!1),ne}var Uo=function(ne){return ne&&ne.env.closestScrollable||null};function Dc(te){var ne=(0,y.useRef)(null),oe=Qu(gl),ve=nl("droppable"),ze=oe.registry,Ve=oe.marshal,nt=ss(te),mt=Qt(function(){return{id:te.droppableId,type:te.type,mode:te.mode}},[te.droppableId,te.mode,te.type]),nn=(0,y.useRef)(mt),Bn=Qt(function(){return wn(function(Ti,xo){ne.current||gt(!1);var ho={x:Ti,y:xo};Ve.updateDroppableScroll(mt.id,ho)})},[mt.id,Ve]),En=jt(function(){var Ti=ne.current;return!Ti||!Ti.env.closestScrollable?Hn:Nu(Ti.env.closestScrollable)},[]),sn=jt(function(){var Ti=En();Bn(Ti.x,Ti.y)},[En,Bn]),mn=Qt(function(){return Pn(sn)},[sn]),_n=jt(function(){var Ti=ne.current,xo=Uo(Ti);Ti&&xo||gt(!1);var ho=Ti.scrollOptions;if(ho.shouldPublishImmediately){sn();return}mn()},[mn,sn]),sr=jt(function(Ti,xo){ne.current&>(!1);var ho=nt.current,Zo=ho.getDroppableRef();Zo||gt(!1);var Hl=Cc(Zo),Ho={ref:Zo,descriptor:mt,env:Hl,scrollOptions:xo};ne.current=Ho;var Vl=wc({ref:Zo,descriptor:mt,env:Hl,windowScroll:Ti,direction:ho.direction,isDropDisabled:ho.isDropDisabled,isCombineEnabled:ho.isCombineEnabled,shouldClipSubject:!ho.ignoreContainerClipping}),us=Hl.closestScrollable;return us&&(us.setAttribute(li.contextId,oe.contextId),us.addEventListener("scroll",_n,ic(Ho.scrollOptions))),Vl},[oe.contextId,mt,_n,nt]),va=jt(function(){var Ti=ne.current,xo=Uo(Ti);return Ti&&xo||gt(!1),Nu(xo)},[]),Oa=jt(function(){var Ti=ne.current;Ti||gt(!1);var xo=Uo(Ti);ne.current=null,xo&&(mn.cancel(),xo.removeAttribute(li.contextId),xo.removeEventListener("scroll",_n,ic(Ti.scrollOptions)))},[_n,mn]),ka=jt(function(Ti){var xo=ne.current;xo||gt(!1);var ho=Uo(xo);ho||gt(!1),ho.scrollTop+=Ti.y,ho.scrollLeft+=Ti.x},[]),oi=Qt(function(){return{getDimensionAndWatchScroll:sr,getScrollWhileDragging:va,dragStopped:Oa,scroll:ka}},[Oa,sr,va,ka]),Fi=Qt(function(){return{uniqueId:ve,descriptor:mt,callbacks:oi}},[oi,mt,ve]);Co(function(){return nn.current=Fi.descriptor,ze.droppable.register(Fi),function(){ne.current&&Oa(),ze.droppable.unregister(Fi)}},[oi,mt,Oa,Fi,Ve,ze.droppable]),Co(function(){ne.current&&Ve.updateDroppableIsEnabled(nn.current.id,!te.isDropDisabled)},[te.isDropDisabled,Ve]),Co(function(){ne.current&&Ve.updateDroppableIsCombineEnabled(nn.current.id,te.isCombineEnabled)},[te.isCombineEnabled,Ve])}function mc(){}var bu={width:0,height:0,margin:Ur},Lc=function(ne){var oe=ne.isAnimatingOpenOnMount,ve=ne.placeholder,ze=ne.animate;return oe||ze==="close"?bu:{height:ve.client.borderBox.height,width:ve.client.borderBox.width,margin:ve.client.margin}},oc=function(ne){var oe=ne.isAnimatingOpenOnMount,ve=ne.placeholder,ze=ne.animate,Ve=Lc({isAnimatingOpenOnMount:oe,placeholder:ve,animate:ze});return{display:ve.display,boxSizing:"border-box",width:Ve.width,height:Ve.height,marginTop:Ve.margin.top,marginRight:Ve.margin.right,marginBottom:Ve.margin.bottom,marginLeft:Ve.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:ze!=="none"?gs.placeholder:null}};function Zc(te){var ne=(0,y.useRef)(null),oe=jt(function(){ne.current&&(clearTimeout(ne.current),ne.current=null)},[]),ve=te.animate,ze=te.onTransitionEnd,Ve=te.onClose,nt=te.contextId,mt=(0,y.useState)(te.animate==="open"),nn=mt[0],Bn=mt[1];(0,y.useEffect)(function(){return nn?ve!=="open"?(oe(),Bn(!1),mc):ne.current?mc:(ne.current=setTimeout(function(){ne.current=null,Bn(!1)}),oe):mc},[ve,nn,oe]);var En=jt(function(mn){mn.propertyName==="height"&&(ze(),ve==="close"&&Ve())},[ve,Ve,ze]),sn=oc({isAnimatingOpenOnMount:nn,animate:te.animate,placeholder:te.placeholder});return y.createElement(te.placeholder.tagName,{style:sn,"data-rbd-placeholder-context-id":nt,onTransitionEnd:En,ref:te.innerRef})}var Rl=y.memo(Zc),pc=y.createContext(null);function Fc(te){te&&Do(te)||gt(!1)}function hc(te){return typeof te=="boolean"}function _u(te,ne){ne.forEach(function(oe){return oe(te)})}var a=[function(ne){var oe=ne.props;oe.droppableId||gt(!1),typeof oe.droppableId!="string"&>(!1)},function(ne){var oe=ne.props;hc(oe.isDropDisabled)||gt(!1),hc(oe.isCombineEnabled)||gt(!1),hc(oe.ignoreContainerClipping)||gt(!1)},function(ne){var oe=ne.getDroppableRef;Fc(oe())}],b=[function(ne){var oe=ne.props,ve=ne.getPlaceholderRef;if(oe.placeholder)var ze=ve()}],z=[function(ne){var oe=ne.props;oe.renderClone||gt(!1)},function(ne){var oe=ne.getPlaceholderRef;oe()&>(!1)}];function x(te){Wl(function(){_u(te,a),te.props.mode==="standard"&&_u(te,b),te.props.mode==="virtual"&&_u(te,z)})}var ee=function(te){(0,ge.Z)(ne,te);function ne(){for(var ve,ze=arguments.length,Ve=new Array(ze),nt=0;nt<ze;nt++)Ve[nt]=arguments[nt];return ve=te.call.apply(te,[this].concat(Ve))||this,ve.state={isVisible:!!ve.props.on,data:ve.props.on,animate:ve.props.shouldAnimate&&ve.props.on?"open":"none"},ve.onClose=function(){ve.state.animate==="close"&&ve.setState({isVisible:!1})},ve}ne.getDerivedStateFromProps=function(ze,Ve){return ze.shouldAnimate?ze.on?{isVisible:!0,data:ze.on,animate:"open"}:Ve.isVisible?{isVisible:!0,data:Ve.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),le={dragging:5e3,dropAnimating:4500},be=function(ne,oe){return oe?gs.drop(oe.duration):ne?gs.snap:gs.fluid},Me=function(ne,oe){return ne?oe?Ss.opacity.drop:Ss.opacity.combining:null},Ue=function(ne){return ne.forceShouldAnimate!=null?ne.forceShouldAnimate:ne.mode==="SNAP"};function ut(te){var ne=te.dimension,oe=ne.client,ve=te.offset,ze=te.combineWith,Ve=te.dropping,nt=!!ze,mt=Ue(te),nn=!!Ve,Bn=nn?Ps.drop(ve,nt):Ps.moveTo(ve),En={position:"fixed",top:oe.marginBox.top,left:oe.marginBox.left,boxSizing:"border-box",width:oe.borderBox.width,height:oe.borderBox.height,transition:be(mt,Ve),transform:Bn,opacity:Me(nt,nn),zIndex:nn?le.dropAnimating:le.dragging,pointerEvents:"none"};return En}function dn(te){return{transform:Ps.moveTo(te.offset),transition:te.shouldAnimateDisplacement?null:"none"}}function xn(te){return te.type==="DRAGGING"?ut(te):dn(te)}function Yn(te,ne,oe){oe===void 0&&(oe=Hn);var ve=window.getComputedStyle(ne),ze=ne.getBoundingClientRect(),Ve=Zn(ze,ve),nt=Dn(Ve,oe),mt={client:Ve,tagName:ne.tagName.toLowerCase(),display:ve.display},nn={x:Ve.marginBox.width,y:Ve.marginBox.height},Bn={descriptor:te,placeholder:mt,displaceBy:nn,client:Ve,page:nt};return Bn}function Vn(te){var ne=nl("draggable"),oe=te.descriptor,ve=te.registry,ze=te.getDraggableRef,Ve=te.canDragInteractiveElements,nt=te.shouldRespectForcePress,mt=te.isEnabled,nn=Qt(function(){return{canDragInteractiveElements:Ve,shouldRespectForcePress:nt,isEnabled:mt}},[Ve,mt,nt]),Bn=jt(function(_n){var sr=ze();return sr||gt(!1),Yn(oe,sr,_n)},[oe,ze]),En=Qt(function(){return{uniqueId:ne,descriptor:oe,options:nn,getDimension:Bn}},[oe,Bn,nn,ne]),sn=(0,y.useRef)(En),mn=(0,y.useRef)(!0);Co(function(){return ve.draggable.register(sn.current),function(){return ve.draggable.unregister(sn.current)}},[ve.draggable]),Co(function(){if(mn.current){mn.current=!1;return}var _n=sn.current;sn.current=En,ve.draggable.update(En,_n)},[En,ve.draggable])}function Mr(te,ne,oe){Wl(function(){function ve(Ve){return"Draggable[id: "+Ve+"]: "}var ze=te.draggableId;ze||gt(!1),typeof ze!="string"&>(!1),Za(te.index)||gt(!1),te.mapped.type!=="DRAGGING"&&(Fc(oe()),te.isEnabled&&(zo(ne,ze)||gt(!1)))})}function qr(te){}function wa(te){te.preventDefault()}function Ka(te){var ne=(0,y.useRef)(null),oe=jt(function(Ho){ne.current=Ho},[]),ve=jt(function(){return ne.current},[]),ze=Qu(gl),Ve=ze.contextId,nt=ze.dragHandleUsageInstructionsId,mt=ze.registry,nn=Qu(pc),Bn=nn.type,En=nn.droppableId,sn=Qt(function(){return{id:te.draggableId,index:te.index,type:Bn,droppableId:En}},[te.draggableId,te.index,Bn,En]),mn=te.children,_n=te.draggableId,sr=te.isEnabled,va=te.shouldRespectForcePress,Oa=te.canDragInteractiveElements,ka=te.isClone,oi=te.mapped,Fi=te.dropAnimationFinished;if(Mr(te,Ve,ve),qr(ka),!ka){var Ti=Qt(function(){return{descriptor:sn,registry:mt,getDraggableRef:ve,canDragInteractiveElements:Oa,shouldRespectForcePress:va,isEnabled:sr}},[sn,mt,ve,Oa,va,sr]);Vn(Ti)}var xo=Qt(function(){return sr?{tabIndex:0,role:"button","aria-describedby":nt,"data-rbd-drag-handle-draggable-id":_n,"data-rbd-drag-handle-context-id":Ve,draggable:!1,onDragStart:wa}:null},[Ve,nt,_n,sr]),ho=jt(function(Ho){oi.type==="DRAGGING"&&oi.dropping&&Ho.propertyName==="transform"&&Fi()},[Fi,oi]),Zo=Qt(function(){var Ho=xn(oi),Vl=oi.type==="DRAGGING"&&oi.dropping?ho:null,us={innerRef:oe,draggableProps:{"data-rbd-draggable-context-id":Ve,"data-rbd-draggable-id":_n,style:Ho,onTransitionEnd:Vl},dragHandleProps:xo};return us},[Ve,xo,_n,oi,ho,oe]),Hl=Qt(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(Zo,oi.snapshot,Hl)}var ii=function(te,ne){return te===ne},Wa=function(te){var ne=te.combine,oe=te.destination;return oe?oe.droppableId:ne?ne.droppableId:null},bi=function(ne){return ne.combine?ne.combine.draggableId:null},to=function(ne){return ne.at&&ne.at.type==="COMBINE"?ne.at.combine.draggableId:null};function Gi(){var te=wn(function(ze,Ve){return{x:ze,y:Ve}}),ne=wn(function(ze,Ve,nt,mt,nn){return{isDragging:!0,isClone:Ve,isDropAnimating:!!nn,dropAnimation:nn,mode:ze,draggingOver:nt,combineWith:mt,combineTargetFor:null}}),oe=wn(function(ze,Ve,nt,mt,nn,Bn,En){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:nn,combineWith:Bn,mode:Ve,offset:ze,dimension:nt,forceShouldAnimate:En,snapshot:ne(Ve,mt,nn,Bn,null)}}}),ve=function(Ve,nt){if(Ve.isDragging){if(Ve.critical.draggable.id!==nt.draggableId)return null;var mt=Ve.current.client.offset,nn=Ve.dimensions.draggables[nt.draggableId],Bn=gr(Ve.impact),En=to(Ve.impact),sn=Ve.forceShouldAnimate;return oe(te(mt.x,mt.y),Ve.movementMode,nn,nt.isClone,Bn,En,sn)}if(Ve.phase==="DROP_ANIMATING"){var mn=Ve.completed;if(mn.result.draggableId!==nt.draggableId)return null;var _n=nt.isClone,sr=Ve.dimensions.draggables[nt.draggableId],va=mn.result,Oa=va.mode,ka=Wa(va),oi=bi(va),Fi=Ve.dropDuration,Ti={duration:Fi,curve:cs.drop,moveTo:Ve.newHomeClientOffset,opacity:oi?Ss.opacity.drop:null,scale:oi?Ss.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Ve.newHomeClientOffset,dimension:sr,dropping:Ti,draggingOver:ka,combineWith:oi,mode:Oa,forceShouldAnimate:null,snapshot:ne(Oa,_n,ka,oi,Ti)}}}return null};return ve}function Bo(te){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:te,combineWith:null}}var ml={mapped:{type:"SECONDARY",offset:Hn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bo(null)}};function ql(){var te=wn(function(nt,mt){return{x:nt,y:mt}}),ne=wn(Bo),oe=wn(function(nt,mt,nn){return mt===void 0&&(mt=null),{mapped:{type:"SECONDARY",offset:nt,combineTargetFor:mt,shouldAnimateDisplacement:nn,snapshot:ne(mt)}}}),ve=function(mt){return mt?oe(Hn,mt,!0):null},ze=function(mt,nn,Bn,En){var sn=Bn.displaced.visible[mt],mn=!!(En.inVirtualList&&En.effected[mt]),_n=Ei(Bn),sr=_n&&_n.draggableId===mt?nn:null;if(!sn){if(!mn)return ve(sr);if(Bn.displaced.invisible[mt])return null;var va=Lr(En.displacedBy.point),Oa=te(va.x,va.y);return oe(Oa,sr,!0)}if(mn)return ve(sr);var ka=Bn.displacedBy.point,oi=te(ka.x,ka.y);return oe(oi,sr,sn.shouldAnimate)},Ve=function(mt,nn){if(mt.isDragging)return mt.critical.draggable.id===nn.draggableId?null:ze(nn.draggableId,mt.critical.draggable.id,mt.impact,mt.afterCritical);if(mt.phase==="DROP_ANIMATING"){var Bn=mt.completed;return Bn.result.draggableId===nn.draggableId?null:ze(nn.draggableId,Bn.result.draggableId,Bn.impact,Bn.afterCritical)}return null};return Ve}var Fl=function(){var ne=Gi(),oe=ql(),ve=function(Ve,nt){return ne(Ve,nt)||oe(Ve,nt)||ml};return ve},Cs={dropAnimationFinished:Ms},fs=He(Fl,Cs,null,{context:Yl,pure:!0,areStatePropsEqual:ii})(Ka);function kl(te){var ne=Qu(pc),oe=ne.isUsingCloneFor;return oe===te.draggableId&&!te.isClone?null:y.createElement(fs,te)}function ms(te){var ne=typeof te.isDragDisabled=="boolean"?!te.isDragDisabled:!0,oe=!!te.disableInteractiveElementBlocking,ve=!!te.shouldRespectForcePress;return y.createElement(kl,(0,ce.Z)({},te,{isClone:!1,isEnabled:ne,canDragInteractiveElements:oe,shouldRespectForcePress:ve}))}function ns(te){var ne=(0,y.useContext)(gl);ne||gt(!1);var oe=ne.contextId,ve=ne.isMovementAllowed,ze=(0,y.useRef)(null),Ve=(0,y.useRef)(null),nt=te.children,mt=te.droppableId,nn=te.type,Bn=te.mode,En=te.direction,sn=te.ignoreContainerClipping,mn=te.isDropDisabled,_n=te.isCombineEnabled,sr=te.snapshot,va=te.useClone,Oa=te.updateViewportMaxScroll,ka=te.getContainerForClone,oi=jt(function(){return ze.current},[]),Fi=jt(function(hs){ze.current=hs},[]),Ti=jt(function(){return Ve.current},[]),xo=jt(function(hs){Ve.current=hs},[]);x({props:te,getDroppableRef:oi,getPlaceholderRef:Ti});var ho=jt(function(){ve()&&Oa({maxScroll:Ln()})},[ve,Oa]);Dc({droppableId:mt,type:nn,mode:Bn,direction:En,isDropDisabled:mn,isCombineEnabled:_n,ignoreContainerClipping:sn,getDroppableRef:oi});var Zo=y.createElement(ee,{on:te.placeholder,shouldAnimate:te.shouldAnimatePlaceholder},function(hs){var lu=hs.onClose,qs=hs.data,Zs=hs.animate;return y.createElement(Rl,{placeholder:qs,onClose:lu,innerRef:xo,animate:Zs,contextId:oe,onTransitionEnd:ho})}),Hl=Qt(function(){return{innerRef:Fi,placeholder:Zo,droppableProps:{"data-rbd-droppable-id":mt,"data-rbd-droppable-context-id":oe}}},[oe,mt,Zo,Fi]),Ho=va?va.dragging.draggableId:null,Vl=Qt(function(){return{droppableId:mt,type:nn,isUsingCloneFor:Ho}},[mt,Ho,nn]);function us(){if(!va)return null;var hs=va.dragging,lu=va.render,qs=y.createElement(kl,{draggableId:hs.draggableId,index:hs.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Zs,su){return lu(Zs,su,hs)});return on.createPortal(qs,ka())}return y.createElement(pc.Provider,{value:Vl},nt(Hl,sr),us())}var Ll=function(ne,oe){return ne===oe.droppable.type},Zl=function(ne,oe){return oe.draggables[ne.draggable.id]},Al=function(){var ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},oe=(0,ce.Z)({},ne,{shouldAnimatePlaceholder:!1}),ve=wn(function(nt){return{draggableId:nt.id,type:nt.type,source:{index:nt.index,droppableId:nt.droppableId}}}),ze=wn(function(nt,mt,nn,Bn,En,sn){var mn=En.descriptor.id,_n=En.descriptor.droppableId===nt;if(_n){var sr=sn?{render:sn,dragging:ve(En.descriptor)}:null,va={isDraggingOver:nn,draggingOverWith:nn?mn:null,draggingFromThisWith:mn,isUsingPlaceholder:!0};return{placeholder:En.placeholder,shouldAnimatePlaceholder:!1,snapshot:va,useClone:sr}}if(!mt)return oe;if(!Bn)return ne;var Oa={isDraggingOver:nn,draggingOverWith:mn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:En.placeholder,shouldAnimatePlaceholder:!0,snapshot:Oa,useClone:null}}),Ve=function(mt,nn){var Bn=nn.droppableId,En=nn.type,sn=!nn.isDropDisabled,mn=nn.renderClone;if(mt.isDragging){var _n=mt.critical;if(!Ll(En,_n))return oe;var sr=Zl(_n,mt.dimensions),va=gr(mt.impact)===Bn;return ze(Bn,sn,va,va,sr,mn)}if(mt.phase==="DROP_ANIMATING"){var Oa=mt.completed;if(!Ll(En,Oa.critical))return oe;var ka=Zl(Oa.critical,mt.dimensions);return ze(Bn,sn,Wa(Oa.result)===Bn,gr(Oa.impact)===Bn,ka,mn)}if(mt.phase==="IDLE"&&mt.completed&&!mt.shouldFlush){var oi=mt.completed;if(!Ll(En,oi.critical))return oe;var Fi=gr(oi.impact)===Bn,Ti=!!(oi.impact.at&&oi.impact.at.type==="COMBINE"),xo=oi.critical.droppable.id===Bn;return Fi?Ti?ne:oe:xo?ne:oe}return oe};return Ve},ps={updateViewportMaxScroll:Xl};function Tu(){return document.body||gt(!1),document.body}var ou={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Tu},rs=He(Al,ps,null,{context:Yl,pure:!0,areStatePropsEqual:ii})(ns);rs.defaultProps=ou},38486:function(Rn,qt){"use strict";var E;var y=60103,ge=60106,ce=60107,_e=60108,Se=60114,Ee=60109,Ce=60110,ke=60112,De=60113,fe=60120,We=60115,Te=60116,dt=60121,Ge=60122,Ne=60117,we=60129,Pe=60131;if(typeof Symbol=="function"&&Symbol.for){var Fe=Symbol.for;y=Fe("react.element"),ge=Fe("react.portal"),ce=Fe("react.fragment"),_e=Fe("react.strict_mode"),Se=Fe("react.profiler"),Ee=Fe("react.provider"),Ce=Fe("react.context"),ke=Fe("react.forward_ref"),De=Fe("react.suspense"),fe=Fe("react.suspense_list"),We=Fe("react.memo"),Te=Fe("react.lazy"),dt=Fe("react.block"),Ge=Fe("react.server.block"),Ne=Fe("react.fundamental"),we=Fe("react.debug_trace_mode"),Pe=Fe("react.legacy_hidden")}function et(Le){if(typeof Le=="object"&&Le!==null){var xe=Le.$$typeof;switch(xe){case y:switch(Le=Le.type,Le){case ce:case Se:case _e:case De:case fe: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,Oe=ke,qe=ce,Je=Te,ct=We,bt=ge,st=Se,$e=_e,pe=De;E=Ce,E=St,E=Ae,E=Oe,E=qe,E=Je,E=ct,E=bt,E=st,E=$e,E=pe,E=function(){return!1},E=function(){return!1},qt.isContextConsumer=function(Le){return et(Le)===Ce},E=function(Le){return et(Le)===Ee},E=function(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===y},E=function(Le){return et(Le)===ke},E=function(Le){return et(Le)===ce},E=function(Le){return et(Le)===Te},E=function(Le){return et(Le)===We},E=function(Le){return et(Le)===ge},E=function(Le){return et(Le)===Se},E=function(Le){return et(Le)===_e},E=function(Le){return et(Le)===De},E=function(Le){return typeof Le=="string"||typeof Le=="function"||Le===ce||Le===Se||Le===we||Le===_e||Le===De||Le===fe||Le===Pe||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===dt||Le[0]===Ge)},E=et},53410:function(Rn,qt,E){"use strict";Rn.exports=E(38486)},93314: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"},84255:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ge}});var y=E(29658);function ge(ce,_e){ce.prototype=Object.create(_e.prototype),ce.prototype.constructor=ce,(0,y.Z)(ce,_e)}},16722:function(Rn,qt,E){"use strict";E.d(qt,{Z:function(){return ke}});const y=De=>typeof De=="object"&&De!=null&&De.nodeType===1,ge=(De,fe)=>(!fe||De!=="hidden")&&De!=="visible"&&De!=="clip",ce=(De,fe)=>{if(De.clientHeight<De.scrollHeight||De.clientWidth<De.scrollWidth){const We=getComputedStyle(De,null);return ge(We.overflowY,fe)||ge(We.overflowX,fe)||(Te=>{const dt=(Ge=>{if(!Ge.ownerDocument||!Ge.ownerDocument.defaultView)return null;try{return Ge.ownerDocument.defaultView.frameElement}catch(Ne){return null}})(Te);return!!dt&&(dt.clientHeight<Te.scrollHeight||dt.clientWidth<Te.scrollWidth)})(De)}return!1},_e=(De,fe,We,Te,dt,Ge,Ne,we)=>Ge<De&&Ne>fe||Ge>De&&Ne<fe?0:Ge<=De&&we<=We||Ne>=fe&&we>=We?Ge-De-Te:Ne>fe&&we<We||Ge<De&&we>We?Ne-fe+dt:0,Se=De=>{const fe=De.parentElement;return fe==null?De.getRootNode().host||null:fe},Ee=(De,fe)=>{var We,Te,dt,Ge;if(typeof document=="undefined")return[];const{scrollMode:Ne,block:we,inline:Pe,boundary:Fe,skipOverflowHiddenElements:et}=fe,St=typeof Fe=="function"?Fe:Et=>Et!==Fe;if(!y(De))throw new TypeError("Invalid target");const Ae=document.scrollingElement||document.documentElement,Oe=[];let qe=De;for(;y(qe)&&St(qe);){if(qe=Se(qe),qe===Ae){Oe.push(qe);break}qe!=null&&qe===document.body&&ce(qe)&&!ce(document.documentElement)||qe!=null&&ce(qe,et)&&Oe.push(qe)}const Je=(Te=(We=window.visualViewport)==null?void 0:We.width)!=null?Te:innerWidth,ct=(Ge=(dt=window.visualViewport)==null?void 0:dt.height)!=null?Ge:innerHeight,{scrollX:bt,scrollY:st}=window,{height:$e,width:pe,top:Le,right:xe,bottom:de,left:Ct}=De.getBoundingClientRect(),{top:Ye,right:je,bottom:it,left:Ie}=(Et=>{const Be=window.getComputedStyle(Et);return{top:parseFloat(Be.scrollMarginTop)||0,right:parseFloat(Be.scrollMarginRight)||0,bottom:parseFloat(Be.scrollMarginBottom)||0,left:parseFloat(Be.scrollMarginLeft)||0}})(De);let ye=we==="start"||we==="nearest"?Le-Ye:we==="end"?de+it:Le+$e/2-Ye+it,vt=Pe==="center"?Ct+pe/2-Ie+je:Pe==="end"?xe+je:Ct-Ie;const Ht=[];for(let Et=0;Et<Oe.length;Et++){const Be=Oe[Et],{height:ft,width:ot,top:Xt,right:xt,bottom:wt,left:ht}=Be.getBoundingClientRect();if(Ne==="if-needed"&&Le>=0&&Ct>=0&&de<=ct&&xe<=Je&&(Be===Ae&&!ce(Be)||Le>=Xt&&de<=wt&&Ct>=ht&&xe<=xt))return Ht;const un=getComputedStyle(Be),zt=parseInt(un.borderLeftWidth,10),ue=parseInt(un.borderTopWidth,10),ae=parseInt(un.borderRightWidth,10),re=parseInt(un.borderBottomWidth,10);let se=0,he=0;const ie="offsetWidth"in Be?Be.offsetWidth-Be.clientWidth-zt-ae:0,me="offsetHeight"in Be?Be.offsetHeight-Be.clientHeight-ue-re:0,He="offsetWidth"in Be?Be.offsetWidth===0?0:ot/Be.offsetWidth:0,It="offsetHeight"in Be?Be.offsetHeight===0?0:ft/Be.offsetHeight:0;if(Ae===Be)se=we==="start"?ye:we==="end"?ye-ct:we==="nearest"?_e(st,st+ct,ct,ue,re,st+ye,st+ye+$e,$e):ye-ct/2,he=Pe==="start"?vt:Pe==="center"?vt-Je/2:Pe==="end"?vt-Je:_e(bt,bt+Je,Je,zt,ae,bt+vt,bt+vt+pe,pe),se=Math.max(0,se+st),he=Math.max(0,he+bt);else{se=we==="start"?ye-Xt-ue:we==="end"?ye-wt+re+me:we==="nearest"?_e(Xt,wt,ft,ue,re+me,ye,ye+$e,$e):ye-(Xt+ft/2)+me/2,he=Pe==="start"?vt-ht-zt:Pe==="center"?vt-(ht+ot/2)+ie/2:Pe==="end"?vt-xt+ae+ie:_e(ht,xt,ot,zt,ae+ie,vt,vt+pe,pe);const{scrollLeft:Xe,scrollTop:Ke}=Be;se=It===0?0:Math.max(0,Math.min(Ke+se/It,Be.scrollHeight-ft/It+me)),he=He===0?0:Math.max(0,Math.min(Xe+he/He,Be.scrollWidth-ot/He+ie)),ye+=Ke-se,vt+=Xe-he}Ht.push({el:Be,top:se,left:he})}return Ht},Ce=De=>De===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(De)?De:{block:"start",inline:"nearest"};function ke(De,fe){if(!De.isConnected||!(dt=>{let Ge=dt;for(;Ge&&Ge.parentNode;){if(Ge.parentNode===document)return!0;Ge=Ge.parentNode instanceof ShadowRoot?Ge.parentNode.host:Ge.parentNode}return!1})(De))return;const We=(dt=>{const Ge=window.getComputedStyle(dt);return{top:parseFloat(Ge.scrollMarginTop)||0,right:parseFloat(Ge.scrollMarginRight)||0,bottom:parseFloat(Ge.scrollMarginBottom)||0,left:parseFloat(Ge.scrollMarginLeft)||0}})(De);if((dt=>typeof dt=="object"&&typeof dt.behavior=="function")(fe))return fe.behavior(Ee(De,fe));const Te=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:dt,top:Ge,left:Ne}of Ee(De,Ce(fe))){const we=Ge-We.top+We.bottom,Pe=Ne-We.left+We.right;dt.scroll({top:we,left:Pe,behavior:Te})}}}}]);
|