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

1346 lines
1.5 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[5816],{89489:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},59477:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},40001:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},49198:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},87169:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},73331:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},15277:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},52671:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},8657:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},56082:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},33853:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},12893:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},15075:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},32134:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},43531:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},61485:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},47472:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},87395:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(54476),ve=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"},Le=ce,xe=E(7657),Ee=function(fe,je){return ve.createElement(xe.Z,(0,y.Z)({},fe,{ref:je,icon:Le}))},Ce=ve.forwardRef(Ee),ke=Ce},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(Mn,Jt){"use strict";Jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},78681:function(Mn,Jt){"use strict";Jt.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"}},11961:function(Mn,Jt,E){"use strict";var y=E(59301),ve=Object.defineProperty,ce=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ee=(De,fe,je)=>fe in De?ve(De,fe,{enumerable:!0,configurable:!0,writable:!0,value:je}):De[fe]=je,Ce=(De,fe)=>{for(var je in fe||(fe={}))Le.call(fe,je)&&Ee(De,je,fe[je]);if(ce)for(var je of ce(fe))xe.call(fe,je)&&Ee(De,je,fe[je]);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"})));Jt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},45936: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 Mn={},Jt="5.0",E={},y=null,ve=!1,ce=!1,Le=null,xe=!1,Ee=null,Ce=null,ke=0;ke<arguments.length;ke++){var De=arguments[ke];if(De!==null)switch(typeof De){case"number":Jt=De.toFixed(1);break;case"string":De.match(new RegExp("^[0-9]\\.[0-9]+$"))?Jt=De:Le=De;break;case"object":typeof De.is3D!="undefined"?y=De:E=De;break;case"boolean":ve=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&&(ve=!0)),Le!==null&&E.id===void 0&&(E.id=Le);var fe="",je="",Ne=!1,ct=null,Ke=null,Te=null,we=!1,Ie=null,Pe=null,rt=null,Et=null,Oe=null;E.height!==void 0&&(E.height=Math.round(E.height)),E.width!==void 0&&(E.width=Math.round(E.width));var Ae=function(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};Mn.setHTML5Codebase=function(Fe,pt){Ce=Fe,vt(Fe,pt)},Mn.setJavaCodebase=Mn.setJavaCodebaseVersion=Mn.isCompiledInstalled=Mn.setPreCompiledScriptPath=Mn.setPreCompiledResourcePath=function(){},Mn.setHTML5CodebaseVersion=function(Fe,pt){var ut=parseFloat(Fe);if(ut!==NaN&&ut<5){console.log("The GeoGebra HTML5 codebase version "+ut+" is deprecated. Using version latest instead.");return}Ee=Fe,ye(Fe,pt)},Mn.getHTML5CodebaseVersion=function(){return Ke},Mn.getParameters=function(){return E},Mn.setFontsCSSURL=function(Fe){Et=Fe},Mn.setGiacJSURL=function(Fe){},Mn.setJNLPFile=function(Fe){fe=Fe},Mn.setJNLPBaseDir=function(Fe){},Mn.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var pt="auto",ut=E.id,Yt,bt=!1,Ct=0;Ct<arguments.length;Ct++){var mt=arguments[Ct];typeof mt=="string"?(mt=mt.toLowerCase(),mt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?pt=mt:ut=arguments[Ct]):typeof mt=="boolean"?bt=mt:mt instanceof HTMLElement&&(Yt=mt)}mn();function mn(){if(!xe){setTimeout(mn,200);return}pt=st(pt);var zt=Yt||document.getElementById(ut);if(!zt){console.log("possibly bug on ajax loading? ");return}if(Mn.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)&&pt==="html5"&&(delete E.width,delete E.height),ct=pt,pt==="screenshot")Be(zt,E);else{var ue=!1;E.hasOwnProperty("playButton")&&E.playButton||E.hasOwnProperty("clickToLoad")&&E.clickToLoad?ue=!0:E.hasOwnProperty("playButtonAutoDecide")&&E.playButtonAutoDecide&&(ue=(!Ve()||Fe())&&Ye()),ue?(ct="screenshot",St(zt,E,bt,pt)):We(zt,E,bt)}}};function Ve(){try{return window.self!==window.top}catch(Fe){return!0}}function Ye(){return E.hasOwnProperty("screenshotGenerator")&&E.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Mn.getViews=function(){return y},Mn.isJavaInstalled=function(){return!1};var xt=function(Fe){var pt=function(Ct){var mt=JSON.parse(Ct),mn=function(ie){return ie.type=="G"||ie.type=="E"},zt=mt.elements?mt.elements.filter(mn)[0]:mt;if(!zt||!zt.url){ut();return}E.fileName=zt.url,gt(zt.settings||{}),y.is3D=!0;var ue="https://www.geogebra.org/images/";Mn.setPreviewImage(Ie||zt.previewUrl,ue+"GeoGebra_loading.png",ue+"applet_play.png"),Fe()},ut=function(){E.onError&&E.onError(),Ht("Error: Fetching material (id "+E.material_id+") failed.",E)},Yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",bt="/materials/"+E.material_id+"?scope=basic";lt("https://"+Yt+"/api/proxy.php?path="+encodeURIComponent(bt),pt,ut)};function gt(Fe){var pt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ut){Fe[ut]=!!Fe[ut]}),pt.forEach(function(ut){E[ut]===void 0&&Fe[ut]!==void 0&&(E[ut]=Fe[ut])}),E.showToolBarHelp===void 0&&(E.showToolBarHelp=E.showToolBar)}function lt(Fe,pt,ut){var Yt=new XMLHttpRequest;Yt.open("GET",Fe),Yt.onload=function(){pt(Yt.responseText)},Yt.onerror=ut,Yt.send()}Mn.isHTML5Installed=function(){return!0},Mn.getLoadedAppletType=function(){return ct},Mn.setPreviewImage=function(Fe,pt,ut){Ie=Fe,Pe=pt,rt=ut},Mn.removeExistingApplet=function(Fe,pt){var ut;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),ct=null;var Yt=null;for(ut=0;ut<Fe.childNodes.length;ut++){var bt=Fe.childNodes[ut],Ct=bt.className;Ct==="applet_screenshot"?pt?(bt.style.display="block",ct="screenshot"):bt.style.display="none":Ct!=="applet_scaler prerender"&&(Fe.removeChild(bt),Yt=Ct&&Ct.indexOf("appletParameters")!=-1?bt.id:null,ut--)}var mt=E.id!==void 0?E.id:Yt,mn=window[mt];mn&&typeof mn.getBase64=="function"&&(mn.remove(),window[mt]=null)},Mn.refreshHitPoints=function(){if(Ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=Mn.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},Mn.startAnimation=function(){var Fe=Mn.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},Mn.stopAnimation=function(){var Fe=Mn.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},Mn.getAppletObject=function(){var Fe=E.id!==void 0?E.id:"ggbApplet";return window[Fe]},Mn.resize=function(){};var Ue=function(Fe,pt,ut){var Yt=document.createElement("param");Yt.setAttribute("name",pt),Yt.setAttribute("value",ut),Fe.appendChild(Yt)},be=function(Fe){return Fe&&Fe!=="false"},We=function(Fe,pt,ut){Ae(Ke)<=4.2&&(ut=!0);var Yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ke||ggbHTML5LoadedCodebaseIsWebSimple&&!we)&&(Yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bt=document.createElement("div");bt.classList.add("appletParameters","notranslate");var Ct=pt.width,mt=pt.height;if(pt.disableAutoScale=pt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():pt.disableAutoScale,pt.width!==void 0)if(Ae(Ke)<=4.4)be(pt.showToolBar)&&(pt.height-=7),be(pt.showAlgebraInput)&&(pt.height-=37),pt.width<605&&be(pt.showToolBar)&&(pt.width=605,Ct=605);else{var mn=100;(be(pt.showToolBar)||be(pt.showMenuBar))&&(pt.hasOwnProperty("customToolBar")&&(pt.customToolbar=pt.customToolBar),mn=be(pt.showMenuBar)?245:155),Ct<mn&&(pt.width=mn,Ct=mn)}bt.style.border="none",bt.style.display="inline-block";for(var zt in pt)pt.hasOwnProperty(zt)&&zt!=="appletOnLoad"&&bt.setAttribute("data-param-"+zt,pt[zt]);Et&&bt.setAttribute("data-param-fontscssurl",Et),Mn.resize=function(){GGBAppletUtils.responsiveResize(Fe,pt)},window.addEventListener("resize",function(Ft){Mn.resize()});var ue=typeof pt.appletOnLoad=="function"?pt.appletOnLoad:function(){};if(!ut&&pt.width!==void 0){pt.hasOwnProperty("showSplash")||bt.setAttribute("data-param-showSplash","false");var ie=Fe.querySelector(".applet_scaler.prerender"),re=ie!==null;if(re)var oe=ie.querySelector(".ggb_preview");else{var oe=ze(Ct,mt,pt.borderColor,!1);ie=document.createElement("div"),ie.className="applet_scaler",ie.style.position="relative",ie.style.display="block",ie.style.width=Ct+"px",ie.style.height=mt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ie,"66%"),Ae(Ke)>=5?(pt.appletOnLoad=function(Ft){var jt=Fe.querySelector(".ggb_preview");jt&&jt.parentNode.removeChild(jt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ie),window.GGBT_wsf_view&&$(window).trigger("resize"),ue(Ft)},re||ie.appendChild(oe)):bt.appendChild(oe),ie.appendChild(bt),re||Fe.appendChild(ie),setTimeout(function(){Mn.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(bt),Fe.appendChild(pe),pt.appletOnLoad=function(Ft){Mn.resize(),ue(Ft)}}function ae(Ft,jt){jt&&typeof jt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ft,jt.appletOnLoad):renderGGBElement(Ft),Ht("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",jt)}function me(Ft,jt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ft,params:jt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Xe){ae(Xe.article,Xe.params)}),html5AppletsToProcess=null)},Ae(Ke)<5&&(Ft.className+=" geogebraweb")):ae(Ft,jt)}if(Yt){scriptLoadStarted=!0;for(var Ze=0;Ze<bt.childNodes.length;Ze++){var Ot=bt.childNodes[Ze].tagName;Ot==="TABLE"&&(bt.removeChild(bt.childNodes[Ze]),Ze--)}if(ggbHTML5LoadedScript!==null){var at=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');at!=null&&at.parentNode.removeChild(at)}var qe=document.createElement("script"),yt=function(){me(bt,pt)};qe.src=je+Te,ggbHTML5LoadedCodebaseIsWebSimple=we,ggbHTML5LoadedCodebaseVersion=Ke,ggbHTML5LoadedScript=qe.src,Ht("GeoGebra HTML5 codebase loaded: '"+je+"'.",pt),!Ce&&(!Ee||Ee=="5.0")?(we?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),yt()):je.requirejs?__webpack_require__.e(2667).then(function(){var Ft=[__webpack_require__(72667)];yt.apply(null,Ft)}.bind(this)).catch(__webpack_require__.oe):(qe.onload=yt,Fe.appendChild(qe))}else me(bt,pt);pt.height=mt,pt.width=Ct},Be=function(Fe,pt,ut){var Yt=ze(pt.width,pt.height,pt.borderColor,ut),bt=document.createElement("div");bt.style.position="relative",bt.style.display="block",bt.style.width=pt.width+"px",bt.style.height=pt.height+"px",bt.className="applet_screenshot applet_scaler"+(ut?" applet_screenshot_play":""),bt.appendChild(Yt);var Ct=GGBAppletUtils.getScale(pt,Fe,ut);ut?(Fe.appendChild(Qe()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),Fe.appendChild(bt),Ct!==1&&!isNaN(Ct)&&(GGBAppletUtils.scaleElement(bt,Ct),bt.style.width=pt.width+"px",bt.style.height=pt.height+"px",bt.parentNode.style.width=pt.width*Ct+"px",bt.parentNode.style.height=pt.height*Ct+"px"),Mn.resize=function(){de(Fe,Yt,bt,ut)},window.addEventListener("resize",function(mt){Mn.resize()}),Mn.resize()};function de(Fe,pt,ut,Yt){if(Fe.contains(pt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var bt=GGBAppletUtils.getScale(E,Fe,Yt);ut.parentNode!==null&&(!isNaN(bt)&&bt!==1?(GGBAppletUtils.scaleElement(ut,bt),ut.parentNode.style.width=E.width*bt+"px",ut.parentNode.style.height=E.height*bt+"px"):(GGBAppletUtils.scaleElement(ut,1),ut.parentNode.style.width=E.width+"px",ut.parentNode.style.height=E.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Mn.onExitFullscreen=function(Fe,pt){pt.appendChild(Fe)};var St=function(Fe,pt,ut,Yt){Be(Fe,pt,!0);for(var bt=function(){var mn=[];for(mt=0;mt<Fe.childNodes.length;mt++)mn.push(Fe.childNodes[mt]);if(window.GGBT_wsf_view){var zt=window.GGBT_wsf_view.renderFullScreen(Fe,pt.id),ue=document.getElementById("fullscreencontainer"),ie=jQuery(Fe).find(".fullscreencontent");ie.length>0?(zt.remove(),ie.attr("id","fullscreencontent").show(),jQuery(ue).append(ie),window.dispatchEvent(new Event("resize"))):We(zt,pt,!1),window.GGBT_wsf_view.launchFullScreen(ue)}else ct=Yt,We(Fe,pt,!1);if(!window.GGBT_wsf_view)for(mt=0;mt<mn.length;mt++)Fe.removeChild(mn[mt])},Ct=Fe.getElementsByClassName("ggb_preview_play"),mt=0;mt<Ct.length;mt++)Ct[mt].addEventListener("click",bt,!1),Ct[mt].addEventListener("ontouchstart",bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),Ye()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qe=function(){var Fe=document.createElement("div");if(Fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var pt='.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");}',ut=document.createElement("style");ut.styleSheet?ut.styleSheet.cssText=pt:ut.appendChild(document.createTextNode(pt)),document.getElementsByTagName("head")[0].appendChild(ut)}return Fe},ze=function(Fe,pt,ut,Yt){var bt=document.createElement("div");bt.className="ggb_preview",bt.style.position="absolute",bt.style.zIndex="90",bt.style.width=Fe-2+"px",bt.style.height=pt-2+"px",bt.style.top="0px",bt.style.left="0px",bt.style.overflow="hidden",bt.style.backgroundColor="white";var Ct="lightgrey";ut!==void 0&&(ut==="none"?Ct="transparent":Ct=ut),bt.style.border="1px solid "+Ct;var mt=document.createElement("img");if(mt.style.position="relative",mt.style.zIndex="1000",mt.style.top="-1px",mt.style.left="-1px",Ie!==null&&mt.setAttribute("src",Ie),mt.style.opacity=.7,Pe!==null){var mn,zt,ue;if(!Yt){mn=document.createElement("img"),mn.style.position="absolute",mn.style.zIndex="1001",mn.style.opacity=1,mt.style.opacity=.3,zt=360,zt>Fe/4*3&&(zt=Fe/4*3),ue=zt/5.8,mn.setAttribute("src",Pe),mn.setAttribute("width",zt),mn.setAttribute("height",ue);var ie=(Fe-zt)/2,re=(pt-ue)/2;mn.style.left=ie+"px",mn.style.top=re+"px",bt.appendChild(mn)}}return bt.appendChild(mt),bt},st=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},Se=["web","webSimple","web3d","tablet","tablet3d","phone"],ye=function(Fe,pt){if(Ke=Fe,pt){vt(Ke,!0);return}var ut=!ve;if(ut){var Yt=Ae(Ke);!isNaN(Yt)&&Yt<4.4&&(ut=!1)}var bt,Ct;window.location.protocol.substr(0,4)==="http"?bt=window.location.protocol:bt="http:";var mt=Ke.indexOf("//");mt>0?Ct=Ke:mt===0?Ct=bt+Ke:Ct="https://www.geogebra.org/apps/5.2.814.0/";for(var mn in Se)if(Ke.slice(Se[mn].length*-1)===Se[mn]||Ke.slice((Se[mn].length+1)*-1)===Se[mn]+"/"){vt(Ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ut&&!y.is3D&&!y.AV&&!y.SV&&!y.CV&&!y.EV2&&!y.CP&&!y.PC&&!y.DA&&!y.FI&&!y.PV&&!be(E.showToolBar)&&!be(E.showMenuBar)&&!be(E.showAlgebraInput)&&!be(E.enableRightClick)&&(!E.appName||E.appName=="classic")?Ct+="webSimple/":Ct+="web3d/",vt(Ct,!1)},vt=function(Fe,pt){if(Fe.requirejs){je=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),je=Fe,pt===null&&(pt=Fe.indexOf("http")===-1),Ne=pt,Te="web.nocache.js",we=!1;var ut=je.split("/");ut.length>1&&(!pt&&ut[ut.length-2]==="webSimple"?(Te="webSimple.nocache.js",we=!0):Se.indexOf(ut[ut.length-2])>=0&&(Te=ut[ut.length-2]+".nocache.js")),ut=Fe.split("/"),Ke=ut[ut.length-3],Ke.substr(0,4)==="test"?Ke=Ke.substr(4,1)+"."+Ke.substr(5,1):(Ke.substr(0,3)==="war"||Ke.substr(0,4)==="beta")&&(Ke="5.0");var Yt=parseFloat(Ke);Yt!==NaN&&Yt<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Yt+" is deprecated. Using version latest instead."),ye("5.0",pt))},Ht=function(Fe,pt){window.console&&window.console.log&&(!pt||typeof pt.showLogging=="undefined"||pt.showLogging&&pt.showLogging!=="false")&&console.log(Fe)};E.material_id!==void 0?xt($t):$t();function $t(){var Fe=Jt;Ee!==null?Fe=Ee:parseFloat(Fe)<5&&(Fe="5.0"),ye(Fe,!1),Ce!==null&&vt(Ce,Ne),xe=!0}return Mn},GGBAppletUtils=function(){"use strict";function Mn(){return window.GGBT_wsf_edit!==void 0}function Jt(xe,Ee){Ee!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Ee+","+Ee+")",xe.style.webkitTransform="scale("+Ee+","+Ee+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function E(xe,Ee,Ce,ke,De,fe){var je=null;if(fe!=null&&fe!="")for(var Ne=xe.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+fe+" ")>-1){je=Ne;break}else Ne=Ne.parentNode;var ct=0,Ke=0,Te=0,we=0,Ie=0,Pe=0,rt=0;if(je)ct=je.offsetWidth,Ke=Math.max(ke?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ct=Math.min(window.innerWidth,document.documentElement.clientWidth),Ke=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=ct):(ct=window.innerWidth,Ke=window.innerHeight,Te=window.innerWidth),xe){var Et=xe.getBoundingClientRect();Et.left>0&&Et.left<=ct&&(De===void 0||!De)&&(document.dir==="rtl"?(Ie=ct-Et.width-Et.left,Pe=Te<=480?10:30):(Pe=Et.left,Ie=Te<=480?10:30),we=Pe+Ie)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Oe=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we=40,rt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(we=0,rt=40)}}return xe&&((Ce===void 0||!Ce)&&Ee>0&&Ee+we<ct?ct=Ee:ct-=we,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ce===void 0||!Ce)&&(Ke-=rt)),{width:ct,height:Ke}}function y(xe,Ee,Ce,ke,De){if(xe.isScreenshoGenerator)return 1;var fe=ke!==void 0&&ke,je=xe.noScaleMargin!=null&&xe.noScaleMargin,Ne=function(Oe){return Oe&&Oe!=="false"},ct=Ne(xe.autoHeight),Ke=E(Ee,xe.width,Ce,ct,fe&&window.GGBT_wsf_view||je,De),Te=parseInt(Ke.width),we=xe.width,Ie=xe.height;if(we===void 0){var Pe=Ee.querySelector(".appletParameters");Pe&&(we=Pe.offsetWidth,Ie=Pe.offsetHeight)}var rt=Te/we,Et=fe?1:Ke.height/Ie;return Ce!==void 0&&!Ce&&(rt=Math.min(1,rt),Et=Math.min(1,Et)),Math.min(rt,Et)}function ve(xe,Ee,Ce){var ke=1,De,fe=!1;if(xe.hasOwnProperty("allowUpscale")&&(fe=xe.allowUpscale),xe.hasOwnProperty("scale")&&(ke=parseFloat(xe.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),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))De=y(xe,Ee,fe,Ce,xe.scaleContainerClass);else return ke;return fe&&(!xe.hasOwnProperty("scale")||ke===1)?De:Math.min(ke,De)}function ce(xe){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),Ce=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=xe.getBoundingClientRect(),De=(Ee-ke.width)/2,fe=(Ce-ke.height)/2;fe<0&&(fe=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(De<40?xe.style.left="40px":xe.style.left=De+"px",xe.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?xe.style.top="40px":xe.style.top=fe+"px",xe.style.left=De+"px")}function Le(xe,Ee){var Ce=xe.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(xe)}if(Ce.parentElement&&/fullscreen/.test(Ce.parentElement.className))return;var ke=ve(Ee,xe);Mn()&&Ce.setAttribute("data-param-scale",ke);for(var De=null,fe=0;fe<xe.childNodes.length;fe++)if(xe.childNodes[fe].className!==void 0&&xe.childNodes[fe].className.match(/^applet_scaler/)){De=xe.childNodes[fe];break}if(De!==null&&De.querySelector(".noscale")!==null)return;var je=Ee.id!==void 0?Ee.id:"ggbApplet",Ne=window[je];(Ne==null||!Ne.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",Jt(De,ke)):(Jt(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(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ce).parents(".content-added-content"))}}return{responsiveResize:Le,isFlexibleWorksheetEditor:Mn,positionCenter:ce,getScale:ve,scaleElement:Jt}}();__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 Mn=n.location.search;return Mn.indexOf(J)!=-1||Mn.indexOf(K)!=-1}function q(Mn,Jt){}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(Mn){var Jt=s[L].bindings;s[L].bindings=function(){for(var E=Jt?Jt():{},y=Mn[webModule.__softPermutationId],ve=O;ve<y.length;ve++){var ce=y[ve];E[ce[O]]=ce[P]}return E}};var t;function u(){return v(),t}function v(){if(!t){var Mn=o.createElement(Q);if(Mn.id=L,Mn.style.cssText=R+S,Mn.tabIndex=-1,o.body.appendChild(Mn),t=Mn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Jt=document.compatMode==U?V:W;t.write(Jt+X),t.close()}}}function w(Mn){function Jt(y){function ve(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ce=ve();if(ce){y();return}function Le(){if(!ce){if(!ve())return;ce=!0,y(),o.removeEventListener&&o.removeEventListener(Z,Le,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,Le,!1);var xe=setInterval(function(){Le()},$)}function E(y){var ve=u(),ce=ve.body,Le=ve.createElement(_);Le.language=ab,Le.crossOrigin=W,Le.src=y,webModule.__errFn&&(Le.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),ce.appendChild(Le)}Jt(function(){E(Mn)})}webModule.__startLoadingFragment=function(Mn){return C(Mn)},webModule.__installRunAsyncCode=function(Mn){var Jt=u(),E=Jt.body,y=Jt.createElement(_);y.language=ab,y.text=Mn,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(Mn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Mn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Mn){var Jt=c[Mn];return Jt==null?null:Jt},r=d,webModule.__errFn=e}function B(){function Mn(xe){var Ee=xe.lastIndexOf(rb);Ee==-1&&(Ee=xe.length);var Ce=xe.indexOf(sb);Ce==-1&&(Ce=xe.length);var ke=xe.lastIndexOf(tb,Math.min(Ce,Ee));return ke>=O?xe.substring(O,ke+P):W}function Jt(xe){if(!xe.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=xe+vb,xe=Mn(Ee.src)}return xe}function E(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function y(){for(var xe=o.getElementsByTagName(_),Ee=O;Ee<xe.length;++Ee)if(xe[Ee].src.indexOf(xb)!=-1)return Mn(xe[Ee].src);return W}function ve(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function ce(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Le=E();return Le==W&&(Le=y()),Le==W&&(Le=ve()),Le==W&&ce()&&(Le=Mn(o.location.href)),Le=Jt(Le),Le}function C(Mn){return Mn.match(/^\//)||Mn.match(/^[a-zA-Z]+:\/\//)?Mn:webModule.__moduleBase+Mn}function D(){var Mn=[],Jt=O,E=[],y=[];function ve(xe){var Ee=y[xe](),Ce=E[xe];if(Ee in Ce)return Ee;var ke=[];for(var De in Ce)ke[Ce[De]]=De;throw r&&r(xe,ke,Ee),null}if(__gwt_isKnownPropertyValue=function(xe,Ee){return Ee in E[xe]},webModule.__getPropMap=function(){var xe={};for(var Ee in E)E.hasOwnProperty(Ee)&&(xe[Ee]=ve(Ee));return xe},webModule.__computePropValue=ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ce;try{ce=Cb;var Le=ce.indexOf(Db);Le!=-1&&(Jt=parseInt(ce.substring(Le+P),$),ce=ce.substring(O,Le))}catch(xe){}return webModule.__softPermutationId=Jt,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})()},8240:function(Mn,Jt,E){"use strict";E.d(Jt,{Ax:function(){return Le},Ds:function(){return xe},KI:function(){return Ce},SI:function(){return ce},f1:function(){return ve}});var y=E(35783);function ve(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 je=0;je<ke.length;je++){let Ne=ke[je],ct=De?`${De}/${Ne.name}`:`${Ne.name}`;fe.push({title:Ne.name,type:Ne.type,isLeaf:Ne.type!=="tree",key:ct})}return fe}function Le(ke,De,fe){for(let je=0;je<ke.length;je++){let Ne=ke[je];if(Ne.key===De){Ne.children=fe;break}Ne.children&&Le(Ne.children,De,fe)}return ke}function xe(ke,De,fe){let je;return function(){let Ne=this,ct=arguments,Ke=function(){je=null,fe||ke.apply(Ne,ct)},Te=fe&&!je;clearTimeout(je),je=setTimeout(Ke,De),Te&&ke.apply(Ne,ct)}}const Ee=!0,Ce=y.Z.API_SERVER},99050:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ke}});var y=E(7939),ve=E(59301),ce=Object.defineProperty,Le=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,De=(Te,we,Ie)=>we in Te?ce(Te,we,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Te[we]=Ie,fe=(Te,we)=>{for(var Ie in we||(we={}))Ce.call(we,Ie)&&De(Te,Ie,we[Ie]);if(Ee)for(var Ie of Ee(we))ke.call(we,Ie)&&De(Te,Ie,we[Ie]);return Te},je=(Te,we)=>Le(Te,xe(we)),Ne=(Te,we)=>{var Ie={};for(var Pe in Te)Ce.call(Te,Pe)&&we.indexOf(Pe)<0&&(Ie[Pe]=Te[Pe]);if(Te!=null&&Ee)for(var Pe of Ee(Te))we.indexOf(Pe)<0&&ke.call(Te,Pe)&&(Ie[Pe]=Te[Pe]);return Ie},ct=(Te,we,Ie)=>new Promise((Pe,rt)=>{var Et=Ve=>{try{Ae(Ie.next(Ve))}catch(Ye){rt(Ye)}},Oe=Ve=>{try{Ae(Ie.throw(Ve))}catch(Ye){rt(Ye)}},Ae=Ve=>Ve.done?Pe(Ve.value):Promise.resolve(Ve.value).then(Et,Oe);Ae((Ie=Ie.apply(Te,we)).next())});const Ke=Te=>{var we=Te,{children:Ie}=we,Pe=Ne(we,["children"]);const[rt,Et]=(0,ve.useState)(!1);return ve.createElement(y.ZP,je(fe({},Pe),{loading:rt,onClick:Oe=>ct(void 0,null,function*(){try{Et(!0),yield Pe.onClick(Oe),Et(!1)}catch(Ae){console.error(Ae),Et(!1)}})}),Ie)}},39794:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ct}});var y=E(59301),ve=E(6767),ce=E(37568),Le={codeBox:"codeBox___WpkVl"},xe=E(92310),Ee=E.n(xe),Ce=Object.defineProperty,ke=(Ke,Te,we)=>Te in Ke?Ce(Ke,Te,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ke[Te]=we,De=(Ke,Te,we)=>ke(Ke,typeof Te!="symbol"?Te+"":Te,we),fe=(Ke,Te,we)=>new Promise((Ie,Pe)=>{var rt=Ae=>{try{Oe(we.next(Ae))}catch(Ve){Pe(Ve)}},Et=Ae=>{try{Oe(we.throw(Ae))}catch(Ve){Pe(Ve)}},Oe=Ae=>Ae.done?Ie(Ae.value):Promise.resolve(Ae.value).then(rt,Et);Oe((we=we.apply(Ke,Te)).next())});class je extends y.Component{constructor(Te){super(Te),De(this,"canvas"),De(this,"randomNum",(we,Ie)=>Math.floor(Math.random()*(Ie-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,ve.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(we=!0,ve.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(Te,we){const Ie=this.randomNum(Te,we),Pe=this.randomNum(Te,we),rt=this.randomNum(Te,we);return`rgb(${Ie}, ${Pe}, ${rt})`}drawText(Te,we,Ie){Te.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Pe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Te.font=Pe+"px SimHei";const rt=10,Et=(this.state.contentWidth-40)/(this.state.code.length-1);let Oe=rt;Ie>0&&(Oe=rt+Ie*Et);let Ae=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Pe>40&&(Ae=40);const Ve=this.randomNum(-10,10);Te.translate(Oe,Ae),Te.rotate(Ve*Math.PI/180),Te.fillText(we,0,0),Te.rotate(-Ve*Math.PI/180),Te.translate(-Oe,-Ae)}drawLine(Te){for(let we=0;we<1;we++)Te.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Te.beginPath(),Te.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Te.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Te.stroke()}drawDot(Te){for(let we=0;we<100;we++)Te.fillStyle=this.randomColor(0,255),Te.beginPath(),Te.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Te.fill()}randomCode(){let Te="";const we="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Ie=0;Ie<this.state.codeLength;Ie++){const Pe=Math.floor(Math.random()*57);Te+=we[Pe]}this.setState({code:Te},()=>{const Pe=this.canvas.current.getContext("2d");Pe.textBaseline="bottom",Pe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Pe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let rt=0;rt<this.state.code.length;rt++)this.drawText(Pe,this.state.code[rt],rt);this.drawLine(Pe),this.drawDot(Pe)})}render(){const{className:Te,width:we=300}=this.props;return y.createElement("div",{className:Ee()(Le.codeBox,Te),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 Ne=(Ke,Te)=>{let we;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Te),React.createElement(je,{ref:Ie=>we=Ie})),onOk:()=>fe(void 0,null,function*(){if(we.onVerify())return Promise.reject();Ke()})})};var ct=je},86793:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return De}});var y=E(59301),ve=E(37568),ce=E(96599),Le=E(6767),xe={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},Ee=E(62772);const{TextArea:Ce}=ve.default;class ke extends y.Component{constructor(je){super(je),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:je,onAnswerChange:Ne,addChildAnswer:ct,exerciseIsPublish:Ke,answers:Te,activeOptionErrorIndex:we,flex:Ie="0 0 1000px"}=this.props;console.log("----",Te);let{inputVisible:Pe,EditInputIndex:rt}=this.state;return y.createElement("div",{className:xe.flex},y.createElement("div",{className:`${xe.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",je+1,"):"),y.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Te==null?void 0:Te.map((Et,Oe)=>y.createElement(y.Fragment,null,rt!==Oe?(Et==null?void 0:Et.length)>0?y.createElement(ce.default,{className:"edit-tag",key:Et,closable:!(je===0&&Oe===0),onClose:Ae=>{Ae.preventDefault(),(Te==null?void 0:Te.length)===1&&Oe===0?this.props.deleteChildAnswermain(je,Oe):this.props.deleteChildAnswer(je,Oe)}},y.createElement("span",{onDoubleClick:Ae=>{this.setState({EditInputIndex:Oe}),Ae.preventDefault()}},Et)):y.createElement(ve.default,{defaultValue:Et,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ae=>{if(Ae.target.value.replaceAll(" ","").length<=0){Le.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ne(je,Oe,Ae.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):y.createElement(ve.default,{defaultValue:Et,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Ae=>{if(Ae.target.value.replaceAll(" ","").length<=0){Le.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ne(je,Oe,Ae.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Pe&&y.createElement(ce.default,{className:"site-tag-plus",onClick:()=>{ct(je),this.setState({inputVisible:!0})}},y.createElement(Ee.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var De=ke},67306:function(Mn,Jt,E){"use strict";E.d(Jt,{d4:function(){return ct},VP:function(){return De}});var y=E(59301),ve={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:Ke,active:Te,className:we})=>y.createElement("div",{className:`${ve.digitalLabel} ${Te?ve.active:""} ${we}`},Ke);var Le=E(25399),xe=E(37568),Ee=E(6767),Ce=E(59301),ke=(Ke,Te,we)=>new Promise((Ie,Pe)=>{var rt=Ae=>{try{Oe(we.next(Ae))}catch(Ve){Pe(Ve)}},Et=Ae=>{try{Oe(we.throw(Ae))}catch(Ve){Pe(Ve)}},Oe=Ae=>Ae.done?Ie(Ae.value):Promise.resolve(Ae.value).then(rt,Et);Oe((we=we.apply(Ke,Te)).next())});const De=({defaultValue:Ke,onFinish:Te})=>{const[we,Ie]=(0,y.useState)(!1),[Pe,rt]=(0,y.useState)(Ke);return(0,y.useEffect)(()=>{rt(Ke)},[Ke]),Ce.createElement("div",{className:ve.titleEditor},we?Ce.createElement(xe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Pe,onChange:Et=>{rt(Et.target.value)},onBlur:()=>ke(void 0,null,function*(){var Et;if(((Et=Pe==null?void 0:Pe.replaceAll(" ",""))==null?void 0:Et.length)<=0){Ee.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Te(Pe))&&Ie(!1)}),onPressEnter:()=>ke(void 0,null,function*(){var Et;if(((Et=Pe==null?void 0:Pe.replaceAll(" ",""))==null?void 0:Et.length)<=0){Ee.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield Te(Pe))&&Ie(!1)})}):Ce.createElement("div",{className:ve.title,onDoubleClick:()=>Ie(!0)},Pe,Ce.createElement(Le.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ce.createElement("i",{className:`${ve.editIcon} iconfont icon-bianji_Hover`,onClick:()=>Ie(!0)}))))};var fe=E(77019),je=E(5269),Ne=(Ke,Te,we)=>new Promise((Ie,Pe)=>{var rt=Ae=>{try{Oe(we.next(Ae))}catch(Ve){Pe(Ve)}},Et=Ae=>{try{Oe(we.throw(Ae))}catch(Ve){Pe(Ve)}},Oe=Ae=>Ae.done?Ie(Ae.value):Promise.resolve(Ae.value).then(rt,Et);Oe((we=we.apply(Ke,Te)).next())});const ct=({onChange:Ke=()=>Ne(void 0,null,function*(){}),tabs:Te,activeKey:we,defaultActiveKey:Ie,className:Pe=""})=>{var rt,Et,Oe,Ae,Ve,Ye,xt;const[gt,lt]=(0,y.useState)(Ie===void 0?(rt=Te[0])==null?void 0:rt.key:Ie);return(0,y.useEffect)(()=>{we!==void 0&&lt(we)},[we]),y.createElement(fe.Z,{justify:"center",align:"middle",className:`${ve.paperTab} ${Pe}`},y.createElement(je.Z,{className:`${ve.tabItem} ${gt===((Et=Te[0])==null?void 0:Et.key)?ve.active:""}`,onClick:()=>Ne(void 0,null,function*(){var Ue;yield Ke(Te[0].key),lt((Ue=Te[0])==null?void 0:Ue.key)})},y.createElement(ce,{number:1,active:gt===((Oe=Te[0])==null?void 0:Oe.key),className:"mr10"}),y.createElement("span",null,(Ae=Te[0])==null?void 0:Ae.label)),y.createElement(je.Z,{flex:"188px",className:`${ve.dottedLine} ml30 mr30`}),y.createElement(je.Z,{className:`${ve.tabItem} ${gt===((Ve=Te[1])==null?void 0:Ve.key)?ve.active:""}`,onClick:()=>Ne(void 0,null,function*(){var Ue,be;yield Ke((Ue=Te[1])==null?void 0:Ue.key),lt((be=Te[1])==null?void 0:be.key)})},y.createElement(ce,{number:2,active:gt===((Ye=Te[1])==null?void 0:Ye.key),className:"mr10"}),y.createElement("span",null,(xt=Te[1])==null?void 0:xt.label)))}},96609:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ee}});var y=E(37639),ve={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ce=E(32637),Le=E(59301),Ee=({type:Ce,style:ke})=>{const De=Le.createElement("div",{className:ve.wrap,onClick:fe=>{fe.preventDefault(),fe.stopPropagation()}},Le.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",Le.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"),Le.createElement("div",{className:ve.contact},Le.createElement("div",{className:ve.img},Le.createElement("img",{src:ce,width:"124px",height:"124px"})),Le.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Le.createElement(y.Z,{content:De},Le.createElement("span",{className:ve.text,style:ke},"\u9AD8\u6D88\u8017"))}},78265:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return je}});var y=E(59301),ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ce=E(92310),Le=E.n(ce),xe=E(29787),Ee=E(2859),Ce=E(22972),ke=E(68911),De=(Ne,ct,Ke)=>new Promise((Te,we)=>{var Ie=Et=>{try{rt(Ke.next(Et))}catch(Oe){we(Oe)}},Pe=Et=>{try{rt(Ke.throw(Et))}catch(Oe){we(Oe)}},rt=Et=>Et.done?Te(Et.value):Promise.resolve(Et.value).then(Ie,Pe);rt((Ke=Ke.apply(Ne,ct)).next())}),je=({data:Ne,className:ct,fullWidth:Ke,style:Te={},onClose:we,onOk:Ie,showFullTools:Pe,noAssociationId:rt})=>{const Et=(0,y.useRef)(null),Oe=(0,y.useRef)(null),Ae=(0,y.useRef)(null),Ve=(0,y.useRef)(null),[Ye,xt]=(0,y.useState)(!1),[gt,lt]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(Ae.current||(Ae.current=document.createElement("style"),document.head.appendChild(Ae.current)),Ne!=null&&Ne.visible?(document.body.setAttribute("data-custom","y-hidden"),Ae.current.innerHTML=" html { overflow-y: hidden; }",Ne!=null&&Ne.src&&Ue()):(document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)),()=>{document.body.removeAttribute("data-custom"),Ae.current&&(document.head.removeChild(Ae.current),Ae.current=null)}),[Ne==null?void 0:Ne.visible]);const Ue=()=>De(void 0,null,function*(){xt(!0),lt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,ke.ZJ)(Ne==null?void 0:Ne.src);Et.current.src="",Et.current.src=de,Et.current.onload=function(){Be()},xt(!1),lt("")}),be=de=>De(void 0,null,function*(){xt(!0),lt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const St=yield(0,Ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ne.title,file:de.dataUrl}});St!=null&&St.id&&!rt?(yield(0,Ce.ZP)(`/api/attachments/${Ne.id}/add_subitem.json`,{method:"post",body:{subitem_id:St==null?void 0:St.id,settings:JSON.stringify(de.state)}})).status===0&&Ie():St!=null&&St.id&&Ie(St),xt(!1),lt("")}),We=()=>{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(Qe=>{const ze=document.querySelector(Qe.name);ze&&ze.setAttribute("title",Qe.title)})},Be=()=>{Oe.current=new Ee.hP(Et.current),Oe.current.targetRoot=Ve.current,Oe.current.addEventListener("render",be),Oe.current.addEventListener("beforeclose",we),Pe&&(Oe.current.availableMarkerTypes=Oe.current.ALL_MARKER_TYPES,Oe.current.uiStyleSettings.redoButtonVisible=!0,Oe.current.uiStyleSettings.notesButtonVisible=!0,Oe.current.uiStyleSettings.zoomButtonVisible=!0,Oe.current.uiStyleSettings.zoomOutButtonVisible=!0,Oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Oe.current.uiStyleSettings,Oe.current.show(),Ne!=null&&Ne.snapshotData&&Oe.current.restoreState(Ne.snapshotData),setTimeout(()=>{window.scrollTo(0,0),We()},300)};return y.createElement(y.Fragment,null,(Ne==null?void 0:Ne.visible)&&y.createElement(xe.Z,{spinning:Ye,tip:gt,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:Ve,className:Le()(ve.imageDimensions,ct,Ke?ve.fullWidth:""),style:Te},y.createElement("img",{className:ve.img,ref:Et}))))}},59641:function(Mn,Jt,E){"use strict";var y=E(59301),ve=E(50718),ce=E(48136),Le=E(9043),xe=E(62957),Ee=E(59301);const Ce=(0,y.forwardRef)(({callback:ke,width:De,onChange:fe,disabled:je,readOnly:Ne,type:ct="",value:Ke="",style:Te={}},we)=>{const Ie=(0,y.useRef)(),Pe=(0,y.useRef)(),[rt,Et]=(0,y.useState)(0),[Oe,Ae]=(0,y.useState)(0),[Ve,Ye]=(0,y.useState)(!1),xt=()=>{var be=document.createElement("div");be.innerHTML=Ie.current.getValue();var We=be.innerText;return ke&&ke(We),We};(0,y.useImperativeHandle)(we,()=>({getData:xt}));const gt=be=>{be.preventDefault();const We=be.clientX-rt,Be=be.clientY-Oe;document.body.onmousemove=de=>{let St=de.clientX-We,Qe=de.clientY-Be;const ze=document.getElementsByClassName("markdown-popup-form")[0],st=window.innerWidth-ze.offsetWidth,Se=window.innerHeight-ze.offsetHeight;St=Math.max(0,Math.min(St,st)),Qe=Math.max(0,Math.min(Qe,Se)),lt(de.clientX,de.clientY,We,Be)&&(Et(St),Ae(Qe))},document.body.onmouseup=function(){document.body.onmousemove=null}},lt=(be,We,Be,de)=>{const St=document.body.clientHeight,Qe=document.body.clientWidth;return be<20&&Be>be||be>Qe-20&&Be<be||We<20&&de>We||We>St-20&&de<We?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,y.useEffect)(()=>{Ve&&setTimeout(()=>{const be=document.getElementsByClassName("markdown-popup-form")[0],We=window.innerWidth/2-be.offsetWidth/2,Be=window.innerHeight/2-be.offsetHeight/2;Et(We),Ae(Be)},0)},[Ve]);const Ue=()=>{je||Ne||Ye(!0)};return Ee.createElement("div",{style:Te},Ee.createElement("div",{style:{width:De||"100%",position:"relative"},className:`${ve.Z.mathFillWrap} ${je||Ne?"cursorDefault":""}`,onClick:()=>Ue()},Ee.createElement("math-field",{disabled:je,locale:"zh_cn",class:`${ve.Z.mathField} ${ct}`,readOnly:Ne,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Ie,style:{width:"100%",fontSize:Ke?18:14},value:Ke||""})),Ee.createElement(xe.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:rt,top:Oe},title:Ee.createElement("div",{style:{cursor:"move"},onMouseDown:gt},"\u8F93\u5165\u516C\u5F0F"),open:Ve,onOk:()=>{const be=Pe.current.getData();Ie.current.setValue(be),fe(be),Ye(!1)},onCancel:()=>{Ye(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ee.createElement(Le.Z,{value:Ke,ref:Pe,onChange:fe,showSaveButton:!1})))});Jt.Z=Ce},9043:function(Mn,Jt,E){"use strict";var y=E(59301),ve=E(77019),ce=E(5269),Le=E(31691),xe=E(7939),Ee=E(56375),Ce=E(50718),ke=E(48136),De=E(59301);const fe=(0,y.forwardRef)(({callback:je,showSaveButton:Ne,value:ct=""},Ke)=>{const Te=(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 "}]}]}],Ie=[{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}`}]}]}],Pe=Oe=>{Te.current.setValue(Te.current.getValue()+" "+Oe.value+" ")},rt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:De.createElement(ve.Z,{className:Ce.Z.lists,gutter:[10,10]},we.map((Oe,Ae)=>De.createElement(ce.Z,{flex:"110px",className:Ce.Z.item},De.createElement("div",null,De.createElement(Ee.Z,{value:`$$${Oe.value}$$`}),Oe.name),De.createElement("div",{className:Ce.Z.children},Oe.children.map((Ve,Ye)=>De.createElement("div",{key:Ye},De.createElement("h1",null,Ve.name),De.createElement(ve.Z,{gutter:[10,10]},Ve.data.map((xt,gt)=>De.createElement(ce.Z,{key:gt,onClick:()=>Pe(xt),className:Ce.Z.diamond},De.createElement(Ee.Z,{value:"`$$"+xt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:De.createElement(ve.Z,{className:Ce.Z.lists,gutter:[10,10]},Ie.map((Oe,Ae)=>De.createElement(ce.Z,{flex:"110px",className:Ce.Z.item},De.createElement("div",null,De.createElement(Ee.Z,{value:"`$$"+Oe.value+"$$`"}),Oe.name),De.createElement("div",{className:Ce.Z.children},Oe.children.map((Ve,Ye)=>De.createElement("div",{key:Ye},Ve.name&&De.createElement("h1",null,Ve.name),De.createElement(ve.Z,{gutter:[10,10]},Ve.data.map((xt,gt)=>De.createElement(ce.Z,{key:gt,onClick:()=>Pe(xt),className:Ce.Z.diamond},De.createElement(Ee.Z,{value:"`$$"+xt.value+"$$`"}))))))))))}],Et=()=>{var Oe=document.createElement("div");Oe.innerHTML=Te.current.getValue();var Ae=Oe.innerText;return je&&je(Ae),Ae};return(0,y.useImperativeHandle)(Ke,()=>({getData:Et})),De.createElement("div",{className:Ce.Z.mathWrap},De.createElement(Le.default,{defaultActiveKey:"1",items:rt}),De.createElement("math-field",{locale:"zh_cn",className:Ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},ct||""),Ne&&De.createElement("div",{className:Ce.Z.button},De.createElement(xe.ZP,{size:"large",onClick:Et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Jt.Z=fe},71347:function(Mn,Jt,E){"use strict";var y=E(59301),ve=E(93314),ce=E(7939),Le=Object.defineProperty,xe=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,fe=(Ke,Te,we)=>Te in Ke?Le(Ke,Te,{enumerable:!0,configurable:!0,writable:!0,value:we}):Ke[Te]=we,je=(Ke,Te)=>{for(var we in Te||(Te={}))ke.call(Te,we)&&fe(Ke,we,Te[we]);if(Ce)for(var we of Ce(Te))De.call(Te,we)&&fe(Ke,we,Te[we]);return Ke},Ne=(Ke,Te)=>xe(Ke,Ee(Te));const ct=({img:Ke,buttonProps:Te={},styles:we={},customText:Ie,ButtonText:Pe,ButtonClick:rt,Buttonclass:Et,ButtonTwo:Oe,imgStyles:Ae,loading:Ve=!1,className:Ye=""})=>y.createElement("section",{className:`tc animated fadeIn ${Ye}`,style:je({color:"#999",margin:"100px auto",visibility:Ve?"hidden":"visible"},we)},y.createElement("img",{src:Ke||ve,style:Ne(je({},Ae),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},Ie||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Pe&&y.createElement(ce.ZP,je({className:Et,onClick:rt},Te),Pe),Oe&&Oe);Jt.Z=ct},98893:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Et}});var y=E(59301),ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ce=E(7939),Le=E(70557),xe=E(94871),Ee=E(25399),Ce=E(68911),ke=E(58870),De=E(71347),fe=E(35783),je=E(25341),Ne=E(59301),ct=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ie=(Oe,Ae,Ve)=>Ae in Oe?ct(Oe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Oe[Ae]=Ve,Pe=(Oe,Ae)=>{for(var Ve in Ae||(Ae={}))Te.call(Ae,Ve)&&Ie(Oe,Ve,Ae[Ve]);if(Ke)for(var Ve of Ke(Ae))we.call(Ae,Ve)&&Ie(Oe,Ve,Ae[Ve]);return Oe},rt=(Oe,Ae,Ve)=>new Promise((Ye,xt)=>{var gt=be=>{try{Ue(Ve.next(be))}catch(We){xt(We)}},lt=be=>{try{Ue(Ve.throw(be))}catch(We){xt(We)}},Ue=be=>be.done?Ye(be.value):Promise.resolve(be.value).then(gt,lt);Ue((Ve=Ve.apply(Oe,Ae)).next())}),Et=({editOffice:Oe="view",data:Ae,issaver:Ve,onSaver:Ye,theme:xt,type:gt,filename:lt,monacoEditor:Ue,className:be,style:We,close:Be,onClose:de,hasMask:St,disabledDownload:Qe,onImgDimensions:ze,showNodata:st,recordInfo:Se})=>{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,$t]=(0,y.useState)(""),[Fe,pt]=(0,y.useState)(),ut=window.ENV==="build"?"/react/build":"",Yt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,Ct=10*(1024*1024),mt=(0,y.useRef)();Ae!=null&&Ae.startsWith("/api")&&gt!=="txt"&&(Ae=fe.Z.API_SERVER+Ae);const mn=pe=>pe.substring(pe.lastIndexOf("/")+1).split(".").pop();lt&&Ue&&(Ue.filename=lt),(0,y.useEffect)(()=>{var pe,ae;const me=(ae=(pe=document.cookie)==null?void 0:pe.replace(/\s/g,""))==null?void 0:ae.split(";");me==null||me.map(Ze=>{let Ot=Ze.split("=");Ot[0]==="_educoder_session"&&$t(Ot[1])})},[]),(0,y.useEffect)(()=>{gt==="office"&&(Ae.indexOf("bigfilescdn.")>-1||Ae.indexOf("bigfiles1")>-1?pt({url:Ae,fileType:mn(Ae),model:Ae.indexOf("model=edit")?"edit":"view"}):Ae.indexOf("coze")>-1?pt({url:Ae,fileType:"doc",model:"view"}):ue())},[gt,Ae]);function zt(pe){return rt(this,null,function*(){pe.data.type==="pdfdata"&&(Ye(pe.data.data),window.removeEventListener("message",zt,!1)),console.log("mess---:",pe.data)})}const ue=()=>rt(void 0,null,function*(){console.log("data:",Ae);let pe=Ae;Ae.startsWith("http")||(pe=location.origin+pe);let ae=new URL(pe).pathname.split("/").pop();const me=yield(0,ke.gJ)({attachment_id:ae});me.url=Yt+me.url,pt(me)}),ie=()=>{if(Ae.startsWith("http")||Ae.startsWith("blob:")){re();return}(0,Ce.Sv)(lt||"educoder",Ae,lt)},re=()=>{Se&&(0,je.fc)({id:Se==null?void 0:Se.id,watch_type:1,course_id:Se==null?void 0:Se.course_id}),(0,Ce.Nd)(lt||"educoder",decodeURIComponent(Ae))};(0,y.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=pe=>{var ae;((ae=pe==null?void 0:pe.data)==null?void 0:ae.type)==="closePop"&&de()};return Ne.createElement("div",{style:Pe({},We||{}),className:`${St&&ve.bgBlack} ${gt?ve.wrp:"hide"}`},!!gt&&Be&&Ne.createElement("div",{id:"closePop",className:ve.close,ref:mt},!!ze&&Ne.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>mt.current},Ne.createElement("span",{onClick:()=>{de(),ze()}},Ne.createElement("i",{className:"icon-yulanpizhu"}))),!Qe&&window.parent===window&&Ne.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>mt.current},Ne.createElement("span",{onClick:re},Ne.createElement("i",{className:"icon-quxiaozhiding"}))),Ve&&Ne.createElement(Ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>mt.current},Ne.createElement("span",{className:"",onClick:()=>{const pe=document.getElementById("pdfiframe");window.addEventListener("message",zt,!1),setTimeout(()=>{pe.contentWindow.postMessage("getData","*")},300)}},Ne.createElement("i",{className:"icon-baocun"}))),Ne.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>mt.current},Ne.createElement("span",{className:"",onClick:()=>{de()}},Ne.createElement("i",{className:"icon-guanbi1"})))),Ne.createElement("div",{className:`${ve[be]} ${be} ${ve.monaco} ${gt==="txt"?"show":"hide"}`},gt==="txt"&&Ne.createElement(Ne.Fragment,null,Ne.createElement(xe.ZP,Pe({},Ue)))),gt==="audio"&&Ne.createElement("audio",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ae}`,autoPlay:!0}),gt==="video"&&Ne.createElement(Ne.Fragment,null,(Ae==null?void 0:Ae.indexOf("http"))>-1?Ne.createElement("video",{controls:!0,src:`${Ae}`,autoPlay:!0}):Ne.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ae}`,autoPlay:!0})),gt==="office"&&Fe&&Ne.createElement("iframe",{src:`${ut}/office.html?key=${Fe.key}&url=${btoa(Fe.url)}&callbackUrl=${Yt+(Fe.callbackUrl||"")}&fileType=${Fe.fileType}&title=${Fe.title||""}&model=${Oe}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Qe}`}),gt==="html"&&Ne.createElement("iframe",{src:Ae+"&disposition=inline"}),gt==="pdf"&&Ne.createElement("iframe",{id:"pdfiframe",src:`${ut}/js/pdf/index.html?filename=${lt||"educoder.pdf"}&url=${encodeURIComponent(Ae)}&disabledDownload=${!!Qe}&model=${Oe}`}),gt==="image"&&Ne.createElement("img",{src:`${(Ae==null?void 0:Ae.indexOf("http://"))>-1||(Ae==null?void 0:Ae.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ae}`}),(gt==="other"||gt==="download")&&Ne.createElement(Ne.Fragment,null,st?Ne.createElement(De.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ne.createElement(ce.ZP,{icon:Ne.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ie,disabled:Qe},"\u4E0B\u8F7D")}):Ne.createElement(ce.ZP,{type:"primary",size:"middle",onClick:ie,disabled:Qe},Ne.createElement(Le.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),gt==="flowChart"&&Ne.createElement("div",{className:"embed"},Ne.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ae||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},63269:function(Mn,Jt,E){"use strict";E.d(Jt,{t:function(){return re}});var y=E(59301),ve=E(37568),ce=E(28284),Le=E(62957),xe=E(77019),Ee=E(5269),Ce=E(4875),ke=E(82326),De=E(47889),fe=E(8831),je=E(63823),Ne=E(78681),ct=E(6767),Ke=E(7939),Te=E(29787),we=E(24334),Ie={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"},Pe=E(22972),rt=E(10084),Et=E(32862),Oe=E(56102),Ae=E(21667),Ve=E(59301),Ye=Object.defineProperty,xt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,We=(oe,pe,ae)=>pe in oe?Ye(oe,pe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):oe[pe]=ae,Be=(oe,pe)=>{for(var ae in pe||(pe={}))Ue.call(pe,ae)&&We(oe,ae,pe[ae]);if(lt)for(var ae of lt(pe))be.call(pe,ae)&&We(oe,ae,pe[ae]);return oe},de=(oe,pe)=>xt(oe,gt(pe)),St=(oe,pe,ae)=>new Promise((me,Ze)=>{var Ot=yt=>{try{qe(ae.next(yt))}catch(Ft){Ze(Ft)}},at=yt=>{try{qe(ae.throw(yt))}catch(Ft){Ze(Ft)}},qe=yt=>yt.done?me(yt.value):Promise.resolve(yt.value).then(Ot,at);qe((ae=ae.apply(oe,pe)).next())}),ze=({buttonProps:oe,buttonText:pe,form:ae,hackIdentifier:me="",answerKey:Ze,data:Ot})=>{const[at,qe]=(0,y.useState)(!1),[yt,Ft]=(0,y.useState)(!1),[jt,Xe]=(0,y.useState)(!1),[tt,Gt]=(0,y.useState)({}),[un,wn]=(0,y.useState)(""),[gn,Rt]=(0,y.useState)(""),Ut=(0,y.useRef)(me),At=(0,y.useRef)(""),Je=(0,y.useRef)(!1);(0,y.useEffect)(()=>{jt&&nt()},[jt]),(0,y.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Pt=()=>new Date().getTime(),nn=Ot==null?void 0:Ot.code,pn=()=>{var wt,Wt;let en=nn?Ot==null?void 0:Ot.code:(wt=ae.getFieldValue("hack_codes"))==null?void 0:wt.code,_n=nn?Ot==null?void 0:Ot.answer_content:ae.getFieldValue(Ze),Un=nn?Ot==null?void 0:Ot.input:(Wt=ae.getFieldValue("hack_sets"))==null?void 0:Wt.input;_n==null||_n.forEach(On=>{const Vn=On.value||On.answer_text||"";en=en.replace(/(@▁@|@▁▁@)/,Vn)}),Rt(Un),wn(en),Gt({}),Xe(!0)},nt=()=>St(void 0,null,function*(){var wt,Wt,en,_n;const Un=Pt(),On=nn?Ot==null?void 0:Ot.time_limit:(wt=ae.getFieldsValue())==null?void 0:wt.hack.time_limit,Vn=nn?(Wt=Ot==null?void 0:Ot.answer_content)==null?void 0:Wt.length:(_n=(en=ae.getFieldsValue())==null?void 0:en.standard_answers)==null?void 0:_n.length;qe(!0),yield(0,rt.bM)(At.current,{test_hack_code:un,test_input:gn});function Zt(){return St(this,null,function*(){const{status:Xt,data:an}=yield(0,rt.rX)(At.current,"submit"),ln=Pt()-Un>(On+3)*1e3*Vn;if(Je.current){if(ln){ct.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),qe(!1);return}if(Xt===0){qe(!1),Gt(de(Be({},an),{showText:!0}));return}setTimeout(Zt,1e3)}})}Zt()}),Nt=()=>St(void 0,null,function*(){var wt,Wt,en,_n,Un,On,Vn;if(!Ot){try{yield ae.validateFields()}catch(xn){(en=(Wt=(wt=xn==null?void 0:xn.errorFields)==null?void 0:wt[0])==null?void 0:Wt.name)!=null&&en.includes("standard_answers")?ct.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):ct.ZP.error(xn.errorFields[0].errors[0]),ae.scrollToField(xn.errorFields[0].name,{behavior:"smooth",block:"center"});return}Ft(!0);let Xt="";const an=ae.getFieldsValue();Ut.current?Xt=yield(0,Pe.ZP)(`/api/problems/${Ut.current}.json`,{method:"put",body:de(Be({},an),{hack:de(Be({},an==null?void 0:an.hack),{sub_discipline_id:(Vn=(On=an==null?void 0:an.hack)==null?void 0:On.sub_discipline_id)==null?void 0:Vn[1],difficult:an.difficulty,item_banks_group_id:an.item_banks_group_id}),hack_codes:de(Be({},an.hack_codes),{code:we.Base64.encode(an.hack_codes.code)}),update_hack_sets:[Be({},an.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(Xt=yield(0,Pe.ZP)("/api/problems.json",{method:"post",body:de(Be({},an),{hack:de(Be({},an==null?void 0:an.hack),{sub_discipline_id:(Un=(_n=an==null?void 0:an.hack)==null?void 0:_n.sub_discipline_id)==null?void 0:Un[1],difficult:an.difficulty,item_banks_group_id:an.item_banks_group_id}),hack_codes:de(Be({},an.hack_codes),{code:we.Base64.encode(an.hack_codes.code)}),hack_sets:[Be({},an.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),Ut.current=Xt==null?void 0:Xt.identifier,sessionStorage.projectFill=Xt==null?void 0:Xt.identifier)}const Zt=yield(0,Pe.ZP)(`/api/problems/${Ut.current}/start.json`,{method:"get"});if((Zt==null?void 0:Zt.status)===0){At.current=Zt==null?void 0:Zt.identifier,Je.current=!0,Ft(!1),pn();return}Ft(!1)}),qt=wt=>{const{status:Wt,error_msg:en,execute_time:_n,output:Un,input:On,expected_output:Vn}=wt;let Zt=null;switch(Wt){case Ae.h.OK:Zt=Ve.createElement(Ve.Fragment,null,Ve.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",_n/1e3,"\u79D2"),Ve.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Ae.h.NOMATCH:Zt=Ve.createElement(Ve.Fragment,null,Ve.createElement("div",null,"\u8F93\u5165\uFF1A"),Ve.createElement("pre",{style:{fontFamily:"initial"}},On),Ve.createElement("div",null,"\u8F93\u51FA\uFF1A"),Ve.createElement("pre",{style:{fontFamily:"initial"}},Un&&we.Base64.decode(Un)),Ve.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Ve.createElement("pre",{style:{fontFamily:"initial"}},Vn&&we.Base64.decode(Vn)));break;case Ae.h.EXECUTEFAILURE:Zt=Ve.createElement(Ve.Fragment,null,Ve.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ve.createElement("pre",null,On)),Ve.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ve.createElement("pre",{className:"error"},we.Base64.decode(en)));break;case Ae.h.COMPILEFAILURE:Zt=Ve.createElement(Ve.Fragment,null,Ve.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ve.createElement("pre",null,On)),Ve.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ve.createElement("pre",{className:"error"},we.Base64.decode(en)));break;case Ae.h.PODFAILURE:Zt=Ve.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Ae.h.TIMEOUT:Zt=Ve.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Ve.createElement(Ve.Fragment,null," ",Zt," ")};return Ve.createElement("div",null,Ve.createElement(Ke.ZP,de(Be({loading:yt},oe),{onClick:Nt}),pe),Ve.createElement(Le.default,{open:jt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:at,cancelButtonProps:{style:{display:"none"}},onOk:()=>nt(),onCancel:()=>{Je.current=!1,Xe(!1)}},Ve.createElement("div",{className:Ie.result},Ve.createElement("div",{className:Ie.left},Ve.createElement("div",{className:"mb20"},Ve.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Ot&&Ve.createElement(Oe.CopyToClipboard,{text:un,onCopy:()=>ct.ZP.success("\u590D\u5236\u6210\u529F")},Ve.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Ve.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Ve.createElement(Et.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:un,onChange:wt=>wn(wt)})),Ve.createElement("div",{className:Ie.right},Ve.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Ve.createElement("div",{className:Ie.box},Ve.createElement("div",{className:Ie.li},Ve.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:gn,onChange:wt=>Rt(wt.target.value),bordered:!1,style:{height:180}}))),Ve.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Ve.createElement("div",{className:Ie.box},Ve.createElement(Te.Z,{spinning:at,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Ve.createElement("div",{className:Ie.li,style:{height:196,overflow:"auto",padding:10}},qt(tt))))))))},st=E(87169),Se=E(59301),ye=Object.defineProperty,vt=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ut=(oe,pe,ae)=>pe in oe?ye(oe,pe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):oe[pe]=ae,Yt=(oe,pe)=>{for(var ae in pe||(pe={}))Fe.call(pe,ae)&&ut(oe,ae,pe[ae]);if($t)for(var ae of $t(pe))pt.call(pe,ae)&&ut(oe,ae,pe[ae]);return oe},bt=(oe,pe)=>vt(oe,Ht(pe)),Ct=(oe,pe)=>{var ae={};for(var me in oe)Fe.call(oe,me)&&pe.indexOf(me)<0&&(ae[me]=oe[me]);if(oe!=null&&$t)for(var me of $t(oe))pe.indexOf(me)<0&&pt.call(oe,me)&&(ae[me]=oe[me]);return ae};const{TextArea:mt}=ve.default,mn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],zt=({value:oe,onChange:pe})=>Se.createElement(Switch,{checked:oe,onChange:ae=>{pe(ae)}}),ue="@\u2581@",ie="@\u2581\u2581@",re=({questionTitlePlaceholder:oe,form:pe,scoreByBlank:ae=!1,hackidentifier:me,answerKey:Ze})=>{const[Ot,at]=(0,y.useState)(!1),[qe,yt]=(0,y.useState)(!1),jt=(0,je.useParams)().type==="edit",Xe=(At,Je)=>{const Pt=Je.line;let nn=0;for(let nt=0;nt<Pt;nt++)nn+=At.getLine(nt).split(ue).length-1;for(let nt=0;nt<Pt;nt++)nn+=At.getLine(nt).split(ie).length-1;const pn=At.getLine(Pt).substring(0,Je.ch);return nn+=pn.split(ue).length-1,nn+=pn.split(ie).length-1,nn},tt=(At,Je,Pt,nn)=>{const pn=At.getRange(Je.from,Je.to);let nt=0;if(Je.text.forEach(Nt=>{nt+=Nt.split(ue).length-1}),Je.text.forEach(Nt=>{nt+=Nt.split(ie).length-1}),Je.origin!=="setValue"){if(pn&&(pn.indexOf(ue)!==-1||pn.indexOf(ie)!==-1)){const Nt=pn.split(ue).length-1+pn.split(ie).length-1,qt=Xe(At,Je.from);if(console.log(`\u5220\u9664${Nt}\u4E2A\uFF0C \u524D\u9762\u6709${qt}\u4E2A\uFF0C\u65B0\u589E${nt}\u4E2A`),Nt>1){const wt=Array.from({length:Nt},(Wt,en)=>qt+en);nn(wt)}else nn(qt)}else if(nt>0){const Nt=Xe(At,Je.from);console.log(`\u65B0\u589E${nt}\u4E2A\uFF0C\u4E4B\u524D\u6709${Nt}\u4E2A`),Pt(nt,Nt)}}},Gt=()=>{const At=pe.getFieldValue(Ze);pe.setFieldsValue({[Ze]:At==null?void 0:At.map((Je,Pt)=>bt(Yt({},Je),{position:Pt+1}))})},un=(0,y.useRef)(),wn=(At,Je)=>{for(let Pt=0;Pt<At;Pt++)un.current({position:null,answer_text:""},Je+Pt);Gt()},gn=(0,y.useRef)(),Rt=At=>{gn.current(At),Gt()},Ut=ce.default.useWatch(Ze,pe);return Se.createElement("div",{className:Ne.Z.wrap},Se.createElement(ce.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Se.createElement(fe.h,{scrollId:"name",watch:!0,height:140})),Se.createElement("div",{className:Ne.Z.questionTitleEditorWrap},Se.createElement(ce.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Se.createElement(fe.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(At,Je)=>{const Pt=pe.getFieldValue(Ze);console.log("--preAnswerData",Pt,Je),pe.setFieldsValue({[Ze]:Pt==null?void 0:Pt.map((nn,pn)=>{var nt;return bt(Yt({},nn),{position:pn+1,multi_line:(nt=Je==null?void 0:Je[pn])==null?void 0:nt.multiLine})})})},placeholder:oe,onCMBeforeChange:(At,Je)=>{tt(At,Je,wn,Rt)}}))),Se.createElement(ce.default.List,{name:Ze,rules:[{validator(At,Je){if(!(Je!=null&&Je.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Pt of Je){const{answer_text:nn}=Pt||{};if((nn==null?void 0:nn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(At,{add:Je,remove:Pt},{errors:nn})=>(un.current=Je,gn.current=Pt,Se.createElement(Se.Fragment,null,Se.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Se.createElement(ce.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Se.createElement("div",{onClick:()=>{Le.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Se.createElement("div",null,Se.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Se.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Se.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"}},Se.createElement(st.Z,{style:{marginRight:3,color:"#3061D0"}}),Se.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),At.map((pn,nt)=>{var Nt=pn,{key:qt,name:wt}=Nt,Wt=Ct(Nt,["key","name"]),en,_n;return Se.createElement(xe.Z,{className:"mb20",key:qt,align:"middle",wrap:!1},Se.createElement(Ee.Z,{flex:"0 0 auto",className:`${Ne.Z.blankIndex}`},"\u586B\u7A7A\u9879",nt+1),Se.createElement(Ee.Z,{flex:1},Se.createElement(xe.Z,{align:"top",justify:"space-between",wrap:!1},Se.createElement(Ee.Z,null,Se.createElement(ce.default.Item,bt(Yt({},Wt),{name:[wt,"answer_text"],noStyle:!0}),(en=Ut==null?void 0:Ut[wt])!=null&&en.multi_line||(_n=Ut==null?void 0:Ut[wt])!=null&&_n.multiLine?Se.createElement(mt,{spellCheck:!1,style:{marginLeft:10,width:550}}):Se.createElement(ve.default,{style:{marginLeft:10,width:550},className:Ne.Z.blankInput,size:"large",maxLength:1e3,onBlur:Un=>{}}))),ae&&Se.createElement(Ee.Z,{flex:"224px"},Se.createElement(ce.default.Item,bt(Yt({},Wt),{name:[wt,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Se.createElement(Ce.Z,{size:"large",className:Ne.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Se.createElement("div",{onClick:()=>at(!0)},Se.createElement(ce.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Se.createElement(fe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ot}))),Se.createElement(ce.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"}]},Se.createElement(ke.default,{size:"large"},mn.map(At=>Se.createElement(ke.default.Option,{key:At.title,value:At.key}," ",At.title)))),Se.createElement(ce.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Se.createElement(ce.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},Se.createElement(Ce.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Se.createElement("span",{className:"ml10 font14"},"\u79D2")),Se.createElement(ce.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"}]},Se.createElement(De.ZP.Group,{style:{marginTop:-10}},Se.createElement(De.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Se.createElement(De.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Se.createElement(De.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Se.createElement(ce.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Se.createElement("div",{style:{background:"#F6F7F9",padding:15}},Se.createElement(ce.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Se.createElement(mt,{rows:4})),Se.createElement(ce.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Se.createElement(mt,{rows:4}))),Se.createElement(ze,{form:pe,answerKey:Ze,hackIdentifier:me,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Se.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"}}}))}},5772:function(Mn,Jt,E){"use strict";E.d(Jt,{u:function(){return Ve}});var y=E(59301),ve=E(77019),ce=E(5269),Le=E(25399),xe=E(28284),Ee=E(78681),Ce=E(32134),ke=E(12893),De=E(8831),fe=E(59301),je=Object.defineProperty,Ne=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ie=(Ye,xt,gt)=>xt in Ye?je(Ye,xt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Ye[xt]=gt,Pe=(Ye,xt)=>{for(var gt in xt||(xt={}))Te.call(xt,gt)&&Ie(Ye,gt,xt[gt]);if(Ke)for(var gt of Ke(xt))we.call(xt,gt)&&Ie(Ye,gt,xt[gt]);return Ye},rt=(Ye,xt)=>Ne(Ye,ct(xt)),Et=(Ye,xt)=>{var gt={};for(var lt in Ye)Te.call(Ye,lt)&&xt.indexOf(lt)<0&&(gt[lt]=Ye[lt]);if(Ye!=null&&Ke)for(var lt of Ke(Ye))xt.indexOf(lt)<0&&we.call(Ye,lt)&&(gt[lt]=Ye[lt]);return gt};const Oe=["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"],Ae=({value:Ye,onChange:xt,choiceTextKey:gt,answerKey:lt,index:Ue,isEdit:be,setInputActive:We,form:Be,choiceOptionsPath:de,allowChangeMode:St,showAddIcon:Qe,addItem:ze,deleteItem:st})=>{console.log(Ye,"value");const Se=(Ye==null?void 0:Ye[lt])===1,ye=()=>{const Ht=Be.getFieldValue(de);Be.setFieldValue(de,Ht.map($t=>rt(Pe({},$t),{[lt]:0})))},vt=()=>{Se?xt(rt(Pe({},Ye),{[lt]:0})):(St||ye(),xt(rt(Pe({},Ye),{[lt]:1})))};return fe.createElement(ve.Z,{className:Ee.Z.choiceWrap,align:"middle",wrap:!1},fe.createElement(ce.Z,{onClick:vt,className:`${Ee.Z.choiceIndex} ${Se?Ee.Z.activeAnswer:""}`},Oe[Ue]),fe.createElement(ce.Z,{flex:1,className:`${Ee.Z.editorWrap} ml15`,onClick:We},fe.createElement(De.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:be,value:Ye==null?void 0:Ye[gt],onChange:Ht=>{xt(rt(Pe({},Ye),{[gt]:Ht}))}})),fe.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},fe.createElement("div",{onClick:vt,className:`${Ee.Z.setAnswerBtn} ${Se?Ee.Z.activeAnswer:""}`},Se?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),fe.createElement(ce.Z,{className:Ee.Z.actionWrapper},fe.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},fe.createElement(Ce.Z,{className:Ee.Z.addIcon,onClick:ze,style:{visibility:Qe?"visible":"hidden"}})),fe.createElement(Le.Z,{title:"\u5220\u9664"},fe.createElement(ke.Z,{className:Ee.Z.deleteIcon,onClick:st,style:{visibility:Ue>1?"visible":"hidden"}}))))},Ve=({questionTitlePlaceholder:Ye,titleKey:xt,choiceKey:gt,analysisKey:lt,choiceTextKey:Ue,answerKey:be,choiceOptionsPath:We,allowChangeMode:Be=!0,form:de,showAnalysis:St=!0})=>{const[Qe,ze]=(0,y.useState)(),[st,Se]=(0,y.useState)(!1);return fe.createElement("div",{className:Ee.Z.wrap},fe.createElement("div",{className:Ee.Z.questionTitleEditorWrap},fe.createElement(xe.default.Item,{label:"\u9898\u5E72",name:xt,labelCol:{span:24},rules:[{required:!0}]},fe.createElement(De.h,{scrollId:Array.isArray(xt)?xt.join("_"):`${xt}`,watch:!0,height:140,placeholder:Ye}))),fe.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),fe.createElement(xe.default.List,{name:gt,rules:[{validator(ye,vt){const Ht=vt.some(Fe=>Fe[be]===1),$t=vt.findIndex(Fe=>{var pt;return((pt=Fe[Ue])==null?void 0:pt.length)<=0});return $t!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Oe[$t]}\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(We)?We.join("_"):`${We}`},ye.map(($t,Fe)=>{var pt=$t,{key:ut,name:Yt}=pt,bt=Et(pt,["key","name"]);const Ct=Qe===ut,mt=()=>{ze(ut)},mn=Fe<14&&Fe===ye.length-1,zt=()=>vt({[Ue]:"",[be]:0}),ue=()=>Ht(Yt);return fe.createElement(xe.default.Item,rt(Pe({},bt),{key:ut,name:Yt,className:Ee.Z.choiceListWrap,rules:[{validator(ie,re){return re!=null&&re.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Oe[Fe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),fe.createElement(Ae,{choiceTextKey:Ue,answerKey:be,index:Fe,isEdit:Ct,setInputActive:mt,form:de,choiceOptionsPath:We,allowChangeMode:Be,showAddIcon:mn,addItem:zt,deleteItem:ue}))}),ye.length<15&&fe.createElement("div",{className:`${Ee.Z.addBtn} mb30`,onClick:()=>vt({[Ue]:"",[be]:0})},"\u6DFB\u52A0\u9009\u9879"))),St&&fe.createElement("div",{onClick:()=>Se(!0)},fe.createElement(xe.default.Item,{name:lt,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:st}))))}},25747:function(Mn,Jt,E){"use strict";E.d(Jt,{u:function(){return de}});var y=E(59301),ve=E(62957),ce=E(77019),Le=E(5269),xe=E(37568),Ee=E(25399),Ce=E(58755),ke=E(28284),De=E(47889),fe=E(4875),je=E(7939),Ne=E(8831),ct=E(12893),Ke=E(32134),Te=E(61485),we=E(78681),Ie=E(59641),Pe=E(59301),rt=Object.defineProperty,Et=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,xt=(St,Qe,ze)=>Qe in St?rt(St,Qe,{enumerable:!0,configurable:!0,writable:!0,value:ze}):St[Qe]=ze,gt=(St,Qe)=>{for(var ze in Qe||(Qe={}))Ve.call(Qe,ze)&&xt(St,ze,Qe[ze]);if(Ae)for(var ze of Ae(Qe))Ye.call(Qe,ze)&&xt(St,ze,Qe[ze]);return St},lt=(St,Qe)=>Et(St,Oe(Qe)),Ue=(St,Qe)=>{var ze={};for(var st in St)Ve.call(St,st)&&Qe.indexOf(st)<0&&(ze[st]=St[st]);if(St!=null&&Ae)for(var st of Ae(St))Qe.indexOf(st)<0&&Ye.call(St,st)&&(ze[st]=St[st]);return ze};const be=({value:St,onChange:Qe,position:ze,removeBlank:st})=>{const Se=vt=>{ve.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=[...St];Ht.splice(vt,1),Ht.length===0?st(ze-1):Qe(Ht)}})},ye=()=>{const vt=[...St];vt.push(""),Qe(vt)};return Pe.createElement(ce.Z,{className:"ml20"},Pe.createElement(Le.Z,{flex:1},St==null?void 0:St.map((vt,Ht)=>Pe.createElement(ce.Z,{key:`${vt}_${Ht}`,className:"mb20"},Pe.createElement(xe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:vt,autoSize:{maxRows:3},maxLength:1e3,onBlur:$t=>{const Fe=[...St],pt=$t.target.value.trim();Fe[Ht]=pt,Qe(Fe)}}),Pe.createElement(Ee.Z,{title:"\u5220\u9664"},Pe.createElement(ct.Z,{className:we.Z.deleteIcon,style:{marginLeft:15,visibility:ze===1&&Ht===0?"hidden":"visible"},onClick:()=>Se(Ht)})),Pe.createElement(Ee.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(Ke.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ht===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},We=({value:St,onChange:Qe,position:ze,removeBlank:st})=>{const Se=vt=>{ve.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=[...St];Ht.splice(vt,1),Ht.length===0?st(ze-1):Qe(Ht)}})},ye=()=>{const vt=[...St];vt.push(""),Qe(vt)};return Pe.createElement(ce.Z,{className:"ml20"},Pe.createElement(Le.Z,{flex:1},St==null?void 0:St.map((vt,Ht)=>Pe.createElement(ce.Z,{key:`${vt}_${Ht}`,align:"middle",className:"mb20"},Pe.createElement(Ie.Z,{value:vt,style:{flex:1},onChange:$t=>{const Fe=[...St];Fe[Ht]=$t,Qe(Fe)}}),Pe.createElement(Ee.Z,{title:"\u5220\u9664"},Pe.createElement(ct.Z,{className:we.Z.deleteIcon,style:{marginLeft:15,visibility:ze===1&&Ht===0?"hidden":"visible"},onClick:()=>Se(Ht)})),Pe.createElement(Ee.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(Ke.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ht===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},Be=({value:St=!0,onChange:Qe})=>Pe.createElement(Ce.Z,{checked:!St,onChange:ze=>{Qe(!ze)}}),de=({questionTitlePlaceholder:St,form:Qe,scoreByBlank:ze=!1,answerKey:st})=>{const[Se,ye]=(0,y.useState)(!1),vt=()=>{const Yt=Qe.getFieldValue(st);Qe.setFieldsValue({[st]:Yt.map((bt,Ct)=>lt(gt({},bt),{position:Ct+1}))})},Ht=(0,y.useRef)(),$t=(Yt,bt)=>{for(let Ct=0;Ct<Yt;Ct++)Ht.current({position:null,answer_text:[""],model:1},bt+Ct);vt()},Fe=(0,y.useRef)(),pt=Yt=>{Fe.current(Yt),vt()},ut=ke.default.useWatch(st,Qe);return Pe.createElement("div",{className:we.Z.wrap},Pe.createElement("div",{className:we.Z.questionTitleEditorWrap},Pe.createElement(ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Pe.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:St,showNullButton:!0,onAddBlank:()=>{const Yt=Qe.getFieldValue(st);$t(1,Yt==null?void 0:Yt.length)}}))),Pe.createElement(ke.default.List,{name:st,rules:[{validator(Yt,bt){if(!(bt!=null&&bt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ct of bt){const{answer_text:mt}=Ct||{};if(mt!=null&&mt.some(mn=>(mn==null?void 0:mn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Yt,{add:bt,remove:Ct},{errors:mt})=>(Ht.current=bt,Fe.current=Ct,Pe.createElement(Pe.Fragment,null,Pe.createElement(ke.default.Item,{label:Pe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Yt.map((mn,zt)=>{var ue=mn,{key:ie,name:re}=ue,oe=Ue(ue,["key","name"]),pe,ae;return Pe.createElement("div",{style:{marginBottom:10},key:ie},Pe.createElement(ce.Z,{className:"mb20",align:"middle",wrap:!1},Pe.createElement(Le.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${we.Z.blankIndex}`},"\u586B\u7A7A\u9879",zt+1),Pe.createElement(ke.default.Item,lt(gt({},oe),{name:[re,"model"],noStyle:!0}),Pe.createElement(De.ZP.Group,{onChange:()=>{const me=Qe.getFieldValue(st);Qe.setFieldsValue({[st]:me.map((Ze,Ot)=>lt(gt({},Ze),{answer_text:re===Ot?[""]:Ze.answer_text}))})}},Pe.createElement(De.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Pe.createElement(Ee.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Pe.createElement(Te.Z,null))),Pe.createElement(De.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Pe.createElement(Ee.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Pe.createElement(Te.Z,null)))))),Pe.createElement(ce.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Pe.createElement(Le.Z,{flex:1},Pe.createElement(ce.Z,{align:"top",justify:"space-between",wrap:!1},Pe.createElement(Le.Z,{flex:1},Pe.createElement(ke.default.Item,lt(gt({},oe),{name:[re,"answer_text"],noStyle:!0}),((ae=(pe=Qe.getFieldValue(st))==null?void 0:pe[re])==null?void 0:ae.model)===1?Pe.createElement(be,{removeBlank:pt,position:zt+1}):Pe.createElement(We,{removeBlank:pt,position:zt+1}))),ze&&Pe.createElement(Le.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Pe.createElement(ke.default.Item,lt(gt({},oe),{name:[re,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:we.Z.blankInputNumberWrapper}),Pe.createElement(fe.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Pe.createElement(ke.default.Item,lt(gt({},oe),{name:[re,"position"],noStyle:!0}),Pe.createElement(xe.default,{type:"hidden"})))))})))),Pe.createElement(je.ZP,{className:"mb20",onClick:()=>$t(1,ut==null?void 0:ut.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Pe.createElement(ce.Z,{align:"middle"},Pe.createElement(ke.default.Item,{name:"downcase",valuePropName:"checked"},Pe.createElement(Ce.Z,null)),Pe.createElement(Le.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Pe.createElement(ce.Z,{align:"middle"},Pe.createElement(ke.default.Item,{name:"no_space",valuePropName:"checked"},Pe.createElement(Ce.Z,null)),Pe.createElement(Le.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ut==null?void 0:ut.length)>1&&Pe.createElement(ce.Z,{align:"middle",className:(ut==null?void 0:ut.length)>1?"mb30":`${we.Z.hide}`},Pe.createElement(ke.default.Item,{name:"is_ordered"},Pe.createElement(Be,null)),Pe.createElement(Le.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")),Pe.createElement("div",{onClick:()=>ye(!0)},Pe.createElement(ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pe.createElement(Ne.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Se}))))}},2375:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Et}});var y=E(59301),ve=E(77019),ce=E(5269),Le=E(28284),xe=E(78681),Ee=E(8831),Ce=E(59301),ke=Object.defineProperty,De=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Ke=(Oe,Ae,Ve)=>Ae in Oe?ke(Oe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Oe[Ae]=Ve,Te=(Oe,Ae)=>{for(var Ve in Ae||(Ae={}))Ne.call(Ae,Ve)&&Ke(Oe,Ve,Ae[Ve]);if(je)for(var Ve of je(Ae))ct.call(Ae,Ve)&&Ke(Oe,Ve,Ae[Ve]);return Oe},we=(Oe,Ae)=>De(Oe,fe(Ae)),Ie=(Oe,Ae)=>{var Ve={};for(var Ye in Oe)Ne.call(Oe,Ye)&&Ae.indexOf(Ye)<0&&(Ve[Ye]=Oe[Ye]);if(Oe!=null&&je)for(var Ye of je(Oe))Ae.indexOf(Ye)<0&&ct.call(Oe,Ye)&&(Ve[Ye]=Oe[Ye]);return Ve};const Pe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},rt=({value:Oe,onChange:Ae,form:Ve})=>{const Ye=(Oe==null?void 0:Oe.is_answer)===1,xt=Oe==null?void 0:Oe.choice_text,gt=()=>{const lt=Ve.getFieldsValue().choices.map(Ue=>({choice_text:Ue.choice_text,is_answer:0}));Ve.setFieldsValue({choices:lt}),Ae(we(Te({},Oe),{is_answer:1}))};return Ce.createElement(ve.Z,{className:xe.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Ce.createElement(ce.Z,{onClick:gt,className:`${xe.Z.choiceIndex} ${xe.Z.judgementIndex} ${Ye?xe.Z.activeAnswer:""}`},Pe[xt]),Ce.createElement(ce.Z,{flex:1,className:`${xe.Z.editorWrap} ml15`},Ce.createElement("div",{className:`${xe.Z.inputBorder} ${xe.Z.placeholder} ${Ye?xe.Z.activeJudgementAnswer:""}`},xt)),Ce.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},Ce.createElement("div",{onClick:gt,className:`${xe.Z.setAnswerBtn} ${Ye?xe.Z.activeAnswer:""}`},Ye?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Et=({questionTitlePlaceholder:Oe,choiceKey:Ae,form:Ve})=>{const[Ye,xt]=(0,y.useState)(!1);return Ce.createElement("div",{className:xe.Z.wrap},Ce.createElement("div",{className:xe.Z.questionTitleEditorWrap},Ce.createElement(Le.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ce.createElement(Ee.h,{scrollId:"name",watch:!0,height:140,placeholder:Oe}))),Ce.createElement(Le.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Ce.createElement(Le.default.List,{name:"choices",rules:[{validator(gt,lt){return lt.some(be=>(be==null?void 0:be.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},gt=>Ce.createElement("div",{id:"choices"},gt.map(lt=>{var Ue=lt,{key:be,name:We}=Ue,Be=Ie(Ue,["key","name"]);return Ce.createElement(Le.default.Item,we(Te({},Be),{key:be,name:We,noStyle:!0}),Ce.createElement(rt,{form:Ve}))})))),Ce.createElement("div",{onClick:()=>xt(!0)},Ce.createElement(Le.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:Ye}))))}},8831:function(Mn,Jt,E){"use strict";E.d(Jt,{h:function(){return Te},x:function(){return we}});var y=E(32862),ve=E(78681),ce=E(56375),Le=E(59301),xe=Object.defineProperty,Ee=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,je=(Ie,Pe,rt)=>Pe in Ie?xe(Ie,Pe,{enumerable:!0,configurable:!0,writable:!0,value:rt}):Ie[Pe]=rt,Ne=(Ie,Pe)=>{for(var rt in Pe||(Pe={}))De.call(Pe,rt)&&je(Ie,rt,Pe[rt]);if(ke)for(var rt of ke(Pe))fe.call(Pe,rt)&&je(Ie,rt,Pe[rt]);return Ie},ct=(Ie,Pe)=>Ee(Ie,Ce(Pe)),Ke=(Ie,Pe)=>{var rt={};for(var Et in Ie)De.call(Ie,Et)&&Pe.indexOf(Et)<0&&(rt[Et]=Ie[Et]);if(Ie!=null&&ke)for(var Et of ke(Ie))Pe.indexOf(Et)<0&&fe.call(Ie,Et)&&(rt[Et]=Ie[Et]);return rt};const Te=Ie=>{var Pe=Ie,{value:rt,onChange:Et,scrollId:Oe}=Pe,Ae=Ke(Pe,["value","onChange","scrollId"]);return Le.createElement("div",{id:Oe||""},Le.createElement(y.Z,ct(Ne({},Ae),{defaultValue:rt,onChange:(Ve,Ye)=>{Ye!=null&&Ye.length?Et(Ve,Ye):Et(Ve)}})))},we=({value:Ie,onChange:Pe,placeholder:rt,height:Et=140,isEdit:Oe,miniToolbar:Ae,watch:Ve=!0})=>Oe?Le.createElement(y.Z,{watch:Ve,isFocus:!0,height:Et||void 0,placeholder:rt,defaultValue:Ie,onChange:Pe,miniToolbar:Ae}):Le.createElement("div",{style:{cursor:"pointer"}},Ie?Le.createElement(ce.Z,{className:ve.Z.inputBorder,value:Ie}):Le.createElement("div",{className:`${ve.Z.inputBorder} ${ve.Z.placeholder} inputBorderError`},rt))},10485:function(Mn,Jt,E){"use strict";E.d(Jt,{W:function(){return Ue}});var y=E(59301),ve=E(6767),ce=E(96599),Le=E(28284),xe=E(58755),Ee=E(77019),Ce=E(5269),ke=E(25399),De=E(37568),fe=E(4875),je=E(78681),Ne=E(8831),ct=E(32862),Ke=E(61485),Te=Object.defineProperty,we=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Oe=(be,We,Be)=>We in be?Te(be,We,{enumerable:!0,configurable:!0,writable:!0,value:Be}):be[We]=Be,Ae=(be,We)=>{for(var Be in We||(We={}))rt.call(We,Be)&&Oe(be,Be,We[Be]);if(Pe)for(var Be of Pe(We))Et.call(We,Be)&&Oe(be,Be,We[Be]);return be},Ve=(be,We)=>we(be,Ie(We)),Ye=(be,We)=>{var Be={};for(var de in be)rt.call(be,de)&&We.indexOf(de)<0&&(Be[de]=be[de]);if(be!=null&&Pe)for(var de of Pe(be))We.indexOf(de)<0&&Et.call(be,de)&&(Be[de]=be[de]);return Be};const xt=be=>{var We=be,{value:Be,onChange:de}=We,St=Ye(We,["value","onChange"]);const Qe=ze=>{de([ze])};return y.createElement(ct.Z,Ve(Ae({},St),{defaultValue:Be==null?void 0:Be[0],onChange:Qe}))},gt=be=>{if(!be)return!1;if(/^s*$/.test(be)||be.trim()===""){ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let We=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 be==="|"?(ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},lt=({value:be=[],onClose:We})=>y.createElement(ce.default,{closable:!0,onClose:We,className:je.Z.keywordTag},y.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},be.join(" \u6216 "))),Ue=({questionTitlePlaceholder:be,form:We,showKeywords:Be,isMustKeyWords:de=Be})=>{const[St,Qe]=(0,y.useState)(!1),[ze,st]=(0,y.useState)(""),Se=Le.default.useWatch("use_keywords",We),ye=Le.default.useWatch("question_score",We);return y.createElement("div",{className:je.Z.wrap},y.createElement("div",{className:je.Z.questionTitleEditorWrap},y.createElement(Le.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},y.createElement(Ne.h,{scrollId:"name",watch:!0,height:140,placeholder:be}))),y.createElement(Le.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},y.createElement(xt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Be&&!de&&y.createElement(Le.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},y.createElement(xe.Z,{defaultChecked:!0})),Be&&de&&y.createElement(Ee.Z,{align:"middle",className:"mb30"},y.createElement(Le.default.Item,{name:"use_keywords",valuePropName:"checked"},y.createElement(xe.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(Ke.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Se||!de)&&y.createElement(Le.default.List,{name:"keywords",rules:[{validator(vt,Ht){return de?Ht!=null&&Ht.length?(Ht==null?void 0:Ht.reduce((Fe,pt)=>Fe+pt.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:$t})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${je.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:ze,onChange:Fe=>{st(Fe.target.value)},maxLength:500,allowClear:!0,onPressEnter:Fe=>{var pt,ut,Yt,bt;const Ct=`${(pt=Fe.target)==null?void 0:pt.value}`,mt=(Yt=(ut=Ct==null?void 0:Ct.split("|"))==null?void 0:ut.filter(ue=>!!ue))==null?void 0:Yt.map(ue=>ue==null?void 0:ue.trim()),mn=We.getFieldValue("keywords"),zt=((bt=mn==null?void 0:mn.map(ue=>ue==null?void 0:ue.keyword))==null?void 0:bt.flat())||[];for(const ue of mt)if(zt.includes(ue)){ve.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}gt(Ct)&&(Ht({keyword:mt,score:1}),st(""))},className:je.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(Fe=>{var pt=Fe,{key:ut,name:Yt}=pt,bt=Ye(pt,["key","name"]);return y.createElement(Ee.Z,{key:ut,className:"mb20",style:{marginRight:148}},y.createElement(Ce.Z,{flex:1},y.createElement(Ee.Z,{align:"middle",justify:"space-between"},y.createElement(Le.default.Item,Ve(Ae({},bt),{name:[Yt,"keyword"]}),y.createElement(lt,{onClose:()=>$t(Yt)})),de&&y.createElement(Le.default.Item,Ve(Ae({},bt),{name:[Yt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:je.Z.blankInputNumberWrapper}),y.createElement(fe.Z,{className:je.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>Qe(!0)},y.createElement(Le.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Ne.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:St}))))}},98203:function(Mn,Jt,E){"use strict";E.d(Jt,{tc:function(){return qt.t},uh:function(){return y.u},rL:function(){return Nt},u8:function(){return ce.u},ZZ:function(){return ve.Z},Wk:function(){return Le.W}});var y=E(5772),ve=E(2375),ce=E(25747),Le=E(10485),xe=E(59301),Ee=E(8848),Ce=E(28284),ke=E(77019),De=E(5269),fe=E(4875),je=E(25399),Ne=E(75727),ct=E(78681),Ke=E(12893),Te=E(8831),we=E(62957),Ie=E(37568),Pe=E(58755),rt=E(7939),Et=E(32134),Oe=E(59301),Ae=Object.defineProperty,Ve=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Ue=(wt,Wt,en)=>Wt in wt?Ae(wt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:en}):wt[Wt]=en,be=(wt,Wt)=>{for(var en in Wt||(Wt={}))gt.call(Wt,en)&&Ue(wt,en,Wt[en]);if(xt)for(var en of xt(Wt))lt.call(Wt,en)&&Ue(wt,en,Wt[en]);return wt},We=(wt,Wt)=>Ve(wt,Ye(Wt)),Be=(wt,Wt)=>{var en={};for(var _n in wt)gt.call(wt,_n)&&Wt.indexOf(_n)<0&&(en[_n]=wt[_n]);if(wt!=null&&xt)for(var _n of xt(wt))Wt.indexOf(_n)<0&&lt.call(wt,_n)&&(en[_n]=wt[_n]);return en};const de=({value:wt,onChange:Wt,position:en,removeBlank:_n})=>{const Un=Vn=>{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:ct.Z.modal,onOk:()=>{const Zt=[...wt];Zt.splice(Vn,1),Zt.length===0?_n(en-1):Wt(Zt)}})},On=()=>{const Vn=[...wt];Vn.push(""),Wt(Vn)};return Oe.createElement(ke.Z,{className:"ml20"},Oe.createElement(De.Z,{flex:1},wt==null?void 0:wt.map((Vn,Zt)=>Oe.createElement(ke.Z,{key:`${Vn}_${Zt}`,className:"mb20"},Oe.createElement(Ie.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Vn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Xt=>{const an=[...wt],xn=Xt.target.value.trim();an[Zt]=xn,Wt(an)}}),Oe.createElement(je.Z,{title:"\u5220\u9664"},Oe.createElement(Ke.Z,{className:ct.Z.deleteIcon,style:{marginLeft:15,visibility:en===1&&Zt===0?"hidden":"visible"},onClick:()=>Un(Zt)})),Oe.createElement(je.Z,{title:"\u65B0\u589E\u7B54\u6848"},Oe.createElement(Et.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Zt===0?"visible":"hidden"},onClick:()=>{On()}}))))))},St=({value:wt=!0,onChange:Wt})=>Oe.createElement(Pe.Z,{checked:!wt,onChange:en=>{Wt(!en)}}),Qe=({questionTitlePlaceholder:wt,form:Wt,name:en,scoreByBlank:_n=!1,answerKey:Un,titleKey:On="name",analysisKey:Vn="analysis",isOrdered:Zt="is_ordered"})=>{var Xt,an;const[xn,ln]=(0,xe.useState)(!1),Pn=()=>{const yr=Wt.getFieldValue(["sub_item_banks",...Un]);Wt.setFieldValue(["sub_item_banks",...Un],yr==null?void 0:yr.map((gr,Vr)=>We(be({},gr),{position:Vr+1})))},Sn=(0,xe.useRef)(),Rn=(yr,gr)=>{for(let Vr=0;Vr<yr;Vr++)Sn.current({position:null,answer_text:[""]},gr+Vr);Pn()},Er=(0,xe.useRef)(),Jn=yr=>{Er.current(yr),Pn()},dr=(an=(Xt=Wt.getFieldValue("sub_item_banks"))==null?void 0:Xt[Un==null?void 0:Un[0]])==null?void 0:an[Un==null?void 0:Un[1]];return Oe.createElement("div",{className:ct.Z.wrap},Oe.createElement("div",{className:ct.Z.questionTitleEditorWrap},Oe.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:On,labelCol:{span:24},rules:[{required:!0}]},Oe.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:wt,showNullButton:!0,onAddBlank:()=>{const yr=Wt.getFieldValue(["sub_item_banks",...Un]);Rn(1,yr==null?void 0:yr.length)}}))),Oe.createElement(Ce.default.List,{name:Un,rules:[{validator(yr,gr){if((gr==null?void 0:gr.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Vr of gr){const{answer_text:Zr}=Vr||{};if(Zr!=null&&Zr.some(Dn=>(Dn==null?void 0:Dn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(yr,{add:gr,remove:Vr},{errors:Zr})=>(Sn.current=gr,Er.current=Vr,Oe.createElement(Oe.Fragment,null,Oe.createElement(Ce.default.Item,{label:Oe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),yr.map((Dn,Zn)=>{var fr=Dn,{key:ur,name:Mt}=fr,Vt=Be(fr,["key","name"]);return Oe.createElement(ke.Z,{align:"top",key:ur},Oe.createElement(De.Z,{className:`${ct.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Zn+1),Oe.createElement(De.Z,{flex:1},Oe.createElement(ke.Z,{align:"top",justify:"space-between"},Oe.createElement(De.Z,{flex:1},Oe.createElement(Ce.default.Item,We(be({},Vt),{name:[Mt,"answer_text"],noStyle:!0}),Oe.createElement(de,{removeBlank:Jn,position:Zn+1}))),_n&&Oe.createElement(De.Z,{flex:"224px"},Oe.createElement(Ce.default.Item,We(be({},Vt),{name:[Mt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ct.Z.blankInputNumberWrapper}),Oe.createElement(fe.Z,{className:ct.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Oe.createElement(Ce.default.Item,We(be({},Vt),{name:[Mt,"position"],noStyle:!0}),Oe.createElement(Ie.default,{type:"hidden"}))))})))),Oe.createElement(rt.ZP,{className:"mb20",onClick:()=>Rn(1,dr==null?void 0:dr.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Oe.createElement(ke.Z,{align:"middle"},Oe.createElement(Ce.default.Item,{name:[en,"downcase"],valuePropName:"checked"},Oe.createElement(Pe.Z,null)),Oe.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Oe.createElement(ke.Z,{align:"middle"},Oe.createElement(Ce.default.Item,{name:[en,"no_space"],valuePropName:"checked"},Oe.createElement(Pe.Z,null)),Oe.createElement(De.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(dr==null?void 0:dr.length)>1&&Oe.createElement(ke.Z,{align:"middle",className:(dr==null?void 0:dr.length)>1?"mb30":`${ct.Z.hide}`},Oe.createElement(Ce.default.Item,{name:Zt},Oe.createElement(St,null)),Oe.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")),Oe.createElement("div",{className:"mt30",onClick:()=>ln(!0)},Oe.createElement(Ce.default.Item,{name:Vn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Oe.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xn}))))};var ze=E(59301),st=Object.defineProperty,Se=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,Fe=(wt,Wt,en)=>Wt in wt?st(wt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:en}):wt[Wt]=en,pt=(wt,Wt)=>{for(var en in Wt||(Wt={}))Ht.call(Wt,en)&&Fe(wt,en,Wt[en]);if(vt)for(var en of vt(Wt))$t.call(Wt,en)&&Fe(wt,en,Wt[en]);return wt},ut=(wt,Wt)=>Se(wt,ye(Wt)),Yt=(wt,Wt)=>{var en={};for(var _n in wt)Ht.call(wt,_n)&&Wt.indexOf(_n)<0&&(en[_n]=wt[_n]);if(wt!=null&&vt)for(var _n of vt(wt))Wt.indexOf(_n)<0&&$t.call(wt,_n)&&(en[_n]=wt[_n]);return en};const bt={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ct=({value:wt,onChange:Wt,form:en,choiceKey:_n})=>{const Un=(wt==null?void 0:wt.is_answer)===1,On=wt==null?void 0:wt.choice_text,Vn=()=>{var Zt;const Xt=(Zt=en==null?void 0:en.getFieldValue(["sub_item_banks",..._n]))==null?void 0:Zt.map(an=>({choice_text:an.choice_text,is_answer:0}));en==null||en.setFieldValue(["sub_item_banks",..._n],Xt),Wt(ut(pt({},wt),{is_answer:1}))};return ze.createElement(ke.Z,{className:ct.Z.choiceWrap,align:"middle",wrap:!1},ze.createElement(De.Z,{onClick:Vn,className:`${ct.Z.choiceIndex} ${ct.Z.judgementIndex} ${Un?ct.Z.activeAnswer:""}`},bt[On]),ze.createElement(De.Z,{flex:1,className:`${ct.Z.editorWrap} ml15`},ze.createElement("div",{className:`${ct.Z.inputBorder} ${ct.Z.placeholder} ${Un?ct.Z.activeJudgementAnswer:""}`},On)),ze.createElement(De.Z,{flex:"0 0 auto",className:"ml15"},ze.createElement("div",{onClick:Vn,className:`${ct.Z.setAnswerBtn} ${Un?ct.Z.activeAnswer:""}`},Un?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},mt=({questionTitlePlaceholder:wt,choiceKey:Wt="choices",form:en,titleKey:_n="name",analysisKey:Un="analysis"})=>{const[On,Vn]=(0,xe.useState)(!1);return ze.createElement("div",{className:ct.Z.wrap},ze.createElement("div",{className:ct.Z.questionTitleEditorWrap},ze.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:_n,labelCol:{span:24},rules:[{required:!0}]},ze.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:wt}))),ze.createElement(Ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ze.createElement(Ce.default.List,{name:Wt,rules:[{validator(Zt,Xt){return Xt.some(xn=>(xn==null?void 0:xn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Zt=>ze.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Zt.map(Xt=>{var an=Xt,{key:xn,name:ln}=an,Pn=Yt(an,["key","name"]);return ze.createElement(Ce.default.Item,ut(pt({},Pn),{key:xn,name:ln,noStyle:!0}),ze.createElement(Ct,{form:en,choiceKey:Wt}))})))),ze.createElement("div",{className:"mt30",onClick:()=>Vn(!0)},ze.createElement(Ce.default.Item,{name:Un,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ze.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:On}))))};var mn=E(6767),zt=E(96599),ue=E(32862),ie=E(61485),re=Object.defineProperty,oe=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ot=(wt,Wt,en)=>Wt in wt?re(wt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:en}):wt[Wt]=en,at=(wt,Wt)=>{for(var en in Wt||(Wt={}))me.call(Wt,en)&&Ot(wt,en,Wt[en]);if(ae)for(var en of ae(Wt))Ze.call(Wt,en)&&Ot(wt,en,Wt[en]);return wt},qe=(wt,Wt)=>oe(wt,pe(Wt)),yt=(wt,Wt)=>{var en={};for(var _n in wt)me.call(wt,_n)&&Wt.indexOf(_n)<0&&(en[_n]=wt[_n]);if(wt!=null&&ae)for(var _n of ae(wt))Wt.indexOf(_n)<0&&Ze.call(wt,_n)&&(en[_n]=wt[_n]);return en};const Ft=wt=>{var Wt=wt,{value:en,onChange:_n}=Wt,Un=yt(Wt,["value","onChange"]);const On=Vn=>{_n([Vn])};return xe.createElement(ue.Z,qe(at({},Un),{defaultValue:en==null?void 0:en[0],onChange:On}))},jt=wt=>{if(!wt)return!1;let Wt=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 wt==="|"?(mn.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Xe=({value:wt=[],onClose:Wt})=>xe.createElement(zt.default,{closable:!0,onClose:Wt,className:ct.Z.keywordTag},xe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},wt.join(" \u6216 "))),tt=({questionTitlePlaceholder:wt,form:Wt,showKeywords:en,isMustKeyWords:_n=en,titleKey:Un="name",analysisKey:On="analysis",answerTexts:Vn="answer_texts",keywords:Zt="keywords",useKeywords:Xt="use_keywords",indexs:an})=>{const[xn,ln]=(0,xe.useState)(!1),[Pn,Sn]=(0,xe.useState)(""),[Rn,Er]=(0,xe.useState)(!1),Jn=Ce.default.useWatch("question_score",Wt);return xe.createElement("div",{className:ct.Z.wrap},xe.createElement("div",{className:ct.Z.questionTitleEditorWrap},xe.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Un,labelCol:{span:24},rules:[{required:!0}]},xe.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:wt}))),xe.createElement(Ce.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Vn,labelCol:{span:24}},xe.createElement(Ft,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),en&&!_n&&xe.createElement(Ce.default.Item,{hidden:!0,name:Xt,valuePropName:"checked"},xe.createElement(Pe.Z,{defaultChecked:!0})),en&&_n&&xe.createElement(ke.Z,{align:"middle",className:"mb30"},xe.createElement(Ce.default.Item,{name:Xt,valuePropName:"checked"},xe.createElement(Pe.Z,{onChange:()=>{var dr,yr,gr,Vr,Zr,Dn;console.log(Wt.getFieldsValue()),Er((gr=(yr=(dr=Wt.getFieldsValue())==null?void 0:dr.sub_item_banks)==null?void 0:yr[an])==null?void 0:gr.use_keywords),console.log((Dn=(Zr=(Vr=Wt.getFieldsValue())==null?void 0:Vr.sub_item_banks)==null?void 0:Zr[an])==null?void 0:Dn.use_keywords),console.log(Rn)}})),xe.createElement(De.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),xe.createElement(De.Z,null,xe.createElement(je.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"},xe.createElement(ie.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Rn||!_n)&&xe.createElement(Ce.default.List,{name:Zt,rules:[{validator(dr,yr){return _n?yr!=null&&yr.length?(yr==null?void 0:yr.reduce((Vr,Zr)=>Vr+Zr.score,0))>parseFloat(Jn)?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:yr,remove:gr})=>xe.createElement(xe.Fragment,null,xe.createElement("div",{className:`${ct.Z.title} mb10`},_n?"\u5173\u952E\u8BCD":xe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),xe.createElement(ke.Z,{align:"middle",className:"font14 mb30"},xe.createElement(De.Z,{flex:1},xe.createElement(Ie.default,{value:Pn,onChange:Vr=>{Sn(Vr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Vr=>{var Zr,Dn,Zn,fr;const ur=`${(Zr=Vr.target)==null?void 0:Zr.value}`,Mt=(Zn=(Dn=ur==null?void 0:ur.split("|"))==null?void 0:Dn.filter(kt=>!!kt))==null?void 0:Zn.map(kt=>kt==null?void 0:kt.trim()),Vt=Wt.getFieldValue(["sub_item_banks",...Zt]),ft=((fr=Vt==null?void 0:Vt.map(kt=>kt==null?void 0:kt.keyword))==null?void 0:fr.flat())||[];for(const kt of Mt)if(ft.includes(kt)){mn.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}jt(ur)&&(yr({keyword:Mt,score:1}),Sn(""))},className:ct.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"})),xe.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:Dn,name:Zn}=Zr,fr=yt(Zr,["key","name"]);return xe.createElement(ke.Z,{key:Dn,className:"mb20",style:{marginRight:148}},xe.createElement(De.Z,{flex:1},xe.createElement(ke.Z,{align:"middle",justify:"space-between"},xe.createElement(Ce.default.Item,qe(at({},fr),{name:[Zn,"keyword"]}),xe.createElement(Xe,{onClose:()=>gr(Zn)})),_n&&xe.createElement(Ce.default.Item,qe(at({},fr),{name:[Zn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ct.Z.blankInputNumberWrapper}),xe.createElement(fe.Z,{className:ct.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),xe.createElement("div",{onClick:()=>ln(!0)},xe.createElement(Ce.default.Item,{name:On,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},xe.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xn}))))};var Gt=E(59301),un=Object.defineProperty,wn=Object.defineProperties,gn=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Je=(wt,Wt,en)=>Wt in wt?un(wt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:en}):wt[Wt]=en,Pt=(wt,Wt)=>{for(var en in Wt||(Wt={}))Ut.call(Wt,en)&&Je(wt,en,Wt[en]);if(Rt)for(var en of Rt(Wt))At.call(Wt,en)&&Je(wt,en,Wt[en]);return wt},nn=(wt,Wt)=>wn(wt,gn(Wt)),pn=(wt,Wt)=>{var en={};for(var _n in wt)Ut.call(wt,_n)&&Wt.indexOf(_n)<0&&(en[_n]=wt[_n]);if(wt!=null&&Rt)for(var _n of Rt(wt))Wt.indexOf(_n)<0&&At.call(wt,_n)&&(en[_n]=wt[_n]);return en};const{Panel:nt}=Ee.default,Nt=({questionTitlePlaceholder:wt,choiceKey:Wt,form:en,withScore:_n})=>{const[Un,On]=(0,xe.useState)([]),Vn=Zt=>{On(Zt)};return Gt.createElement("div",{className:ct.Z.wrap},Gt.createElement("div",{className:ct.Z.questionTitleEditorWrap},Gt.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Gt.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:wt}))),Gt.createElement(Ce.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Gt.createElement(Ce.default.List,{name:"sub_item_banks",rules:[{validator(Zt,Xt){return Xt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Zt,{add:Xt,remove:an,move:xn})=>{const ln=en.getFieldValue("sub_item_banks");return Gt.createElement(Gt.Fragment,null,Gt.createElement(Ee.default,{className:Zt.length>0?ct.Z.collapseWrapper:"",bordered:!1,activeKey:Un,onChange:Vn,expandIcon:({isActive:Pn})=>Gt.createElement("i",{className:`iconfont icon-weizhankai ${Pn?ct.Z.open:ct.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Zt.map((Pn,Sn)=>{var Rn=Pn,{key:Er,name:Jn}=Rn,dr=pn(Rn,["key","name"]),yr,gr,Vr,Zr,Dn,Zn,fr,ur,Mt,Vt;return Gt.createElement(nt,{className:ct.Z.panel,forceRender:!0,header:Gt.createElement("div",{className:ct.Z.panelHeader},"\u7B2C",Sn+1,"\u5C0F\u9898",Gt.createElement("span",null,"\uFF08",((yr=ln==null?void 0:ln[Jn])==null?void 0:yr.item_type)=="SINGLE"?"\u5355\u9009\u9898":((gr=ln==null?void 0:ln[Jn])==null?void 0:gr.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((Vr=ln==null?void 0:ln[Jn])==null?void 0:Vr.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((Zr=ln==null?void 0:ln[Jn])==null?void 0:Zr.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Jn,extra:Gt.createElement(ke.Z,{align:"middle",onClick:ft=>ft.stopPropagation()},_n&&Gt.createElement(De.Z,null,Gt.createElement(Ce.default.Item,nn(Pt({},dr),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Jn,"question_score"],className:ct.Z.blankInputNumberWrapper}),Gt.createElement(fe.Z,{className:ct.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Gt.createElement(De.Z,null,Gt.createElement(ke.Z,{align:"middle",className:"pl40",justify:"end"},Sn!==0&&Gt.createElement("div",{onClick:()=>{var ft;xn(Sn,Sn-1);const kt=(ft=en.getFieldValue("sub_item_banks"))==null?void 0:ft.map((it,ht)=>(Zt.map((cn,ar)=>{ht===ar&&(it.q_position=Number(cn.name)+1)}),it));en.setFieldValue("sub_item_banks",kt)}},Gt.createElement(je.Z,{title:"\u4E0A\u79FB"},Gt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Sn<Zt.length-1&&Gt.createElement("div",{onClick:()=>{var ft;xn(Sn,Sn+1);const kt=(ft=en.getFieldValue("sub_item_banks"))==null?void 0:ft.map((it,ht)=>(Zt.map((cn,ar)=>{ht===ar&&(it.q_position=Number(cn.name)+1)}),it));en.setFieldValue("sub_item_banks",kt)},className:Sn===0?"":"ml15"},Gt.createElement(je.Z,{title:"\u4E0B\u79FB"},Gt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Gt.createElement(De.Z,null,Gt.createElement(je.Z,{title:"\u5220\u9664"},Gt.createElement(Ke.Z,{className:`${ct.Z.deleteIcon} ml15`,onClick:()=>an(Jn)}))))},Gt.createElement(Ce.default.Item,nn(Pt({},dr),{name:Jn}),(((Dn=ln==null?void 0:ln[Jn])==null?void 0:Dn.item_type)=="SINGLE"||((Zn=ln==null?void 0:ln[Jn])==null?void 0:Zn.item_type)=="MULTIPLE")&&Gt.createElement(y.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((fr=ln==null?void 0:ln[Jn])==null?void 0:fr.item_type)=="MULTIPLE",form:en,choiceKey:[Jn,"choices"],titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],choiceOptionsPath:["sub_item_banks",Jn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((ur=ln==null?void 0:ln[Jn])==null?void 0:ur.item_type)=="COMPLETION"&&Gt.createElement(Qe,{form:en,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:Jn,titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],isOrdered:[Jn,"is_ordered"],answerKey:[Jn,"standard_answers"]}),((Mt=ln==null?void 0:ln[Jn])==null?void 0:Mt.item_type)=="JUDGMENT"&&Gt.createElement(mt,{form:en,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],choiceKey:[Jn,"choices"]}),((Vt=ln==null?void 0:ln[Jn])==null?void 0:Vt.item_type)=="SUBJECTIVE"&&Gt.createElement(tt,{showKeywords:!0,isMustKeyWords:!1,form:en,titleKey:[Jn,"name"],analysisKey:[Jn,"analysis"],answerTexts:[Jn,"answer_texts"],useKeywords:[Jn,"use_keywords"],keywords:[Jn,"keywords"],indexs:Jn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Zt.length<20&&Gt.createElement(Ne.Z,{menu:{items:[{label:Gt.createElement("div",{onClick:()=>{Xt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),On([Zt==null?void 0:Zt.length,...Un])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Gt.createElement("div",{onClick:()=>{Xt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),On([Zt==null?void 0:Zt.length,...Un])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Gt.createElement("div",{onClick:()=>{Xt({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),On([Zt==null?void 0:Zt.length,...Un])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Gt.createElement("div",{onClick:()=>{Xt({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),On([Zt==null?void 0:Zt.length,...Un])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Gt.createElement("div",{onClick:()=>{Xt({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),On([Zt==null?void 0:Zt.length,...Un])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Pn=>Pn.show).map(Pn=>({label:Pn.label,key:Pn.key}))}},Gt.createElement("div",{className:`${ct.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var qt=E(63269)},56375:function(Mn,Jt,E){"use strict";E.d(Jt,{z:function(){return Ue},Z:function(){return be}});var y=E(59301),ve=E(64310),ce=E(74410),Le=E(64018),xe=E(16471),Ee=E(35783),Ce=E(68911),ke=E(15342),De=E(44104),fe=E(7939),je=E(1012),Ne=E(98893),ct=E(59301),Te=({html:We})=>{const Be=(0,y.useRef)(null),de=(0,y.useRef)(null),St=`.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 Qe=Be.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=We,Qe.appendChild(de.current);const ze=document.createElement("style");return ze.textContent=St,Qe.appendChild(ze),()=>{Qe.innerHTML=""}},[]),(0,y.useEffect)(()=>{de.current&&(de.current.innerHTML=We)},[We]),ct.createElement("div",{ref:Be})};function we(We){const Be=["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(${Be.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),St=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return We.replace(de,"").replace(St,"").trim()}var Ie={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Pe=Object.defineProperty,rt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Ae=(We,Be,de)=>Be in We?Pe(We,Be,{enumerable:!0,configurable:!0,writable:!0,value:de}):We[Be]=de,Ve=(We,Be)=>{for(var de in Be||(Be={}))Et.call(Be,de)&&Ae(We,de,Be[de]);if(rt)for(var de of rt(Be))Oe.call(Be,de)&&Ae(We,de,Be[de]);return We};const Ye="@\u2581\u2581@",xt="@\u2581@",gt=/<pre[^>]*>/g;function lt(We){let Be=document.createElement("div");return Be.innerHTML=We,Be.childNodes.length===0?"":Be.childNodes[0].nodeValue}const Ue=(We,Be)=>{We=We||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,St=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Be?We.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(st,Se,ye,vt,Ht,$t,Fe)=>{const pt=Se||vt||$t,ut=ye||Ht||Fe||"?";return Ee.Z.API_SERVER+"/api/attachments/"+pt+ut+"&t="+(0,Ce.Jn)(pt,Date.now())+(st.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(We=We.replace(ze,(st,Se,ye,vt,Ht,$t,Fe)=>{const pt=Se||vt||$t,ut=ye||Ht||Fe||"?";return Ee.Z.API_SERVER+"/attachments/download/"+pt+ut+"&t="+(0,Ce.Jn)(pt,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(de,(st,Se,ye,vt,Ht,$t,Fe)=>{const pt=Se||vt||$t,ut=ye||Ht||Fe||"?";return Ee.Z.API_SERVER+"/api/attachments/"+pt+ut+"&t="+(0,Ce.Jn)(pt,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(St,(st,Se,ye,vt,Ht)=>{const $t=Se||vt,Fe=ye||Ht||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+$t+Fe+$t+Fe+"&t="+(0,Ce.Jn)($t,Date.now())}).replace(Qe,(st,Se,ye,vt,Ht)=>{const $t=Se||vt,Fe=ye||Ht||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+$t+Fe+$t+Fe+"&t="+(0,Ce.Jn)($t,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,`
`),We)};var be=({value:We="",edit:Be=!1,className:de,showTextOnly:St,showLines:Qe,style:ze={},stylesPrev:st={},highlightKeywords:Se,showProgramFill:ye,isProgramFill:vt,disabledFill:Ht=!1,programFillValue:$t,openEditor:Fe=()=>{},onFillChange:pt=bt=>{},onFillBlur:ut=()=>{},onFillFocus:Yt=()=>{}})=>{let bt=we(String(We||""));const Ct=(0,y.useRef)(),mt=(0,y.useRef)(),[mn,zt]=(0,y.useState)(""),[ue,ie]=(0,y.useState)("office"),[re,oe]=(0,y.useState)([]),pe=(0,y.useRef)("a"+(0,je.Z)()),ae={},me=Rt=>/<style[\s\S]*?>/i.test(Rt||""),Ze=(Rt,Ut,At)=>{const Je=document.createElement(Rt===xt?"input":"textarea");Je.style.width="100%",Je.style.height=Rt===xt?"40px":"151px",Je.rows=5,Je.spellcheck=!1,Je.name="edu-program-fill",Je.placeholder="\u8BF7\u8F93\u5165",Je.dataset.id=Ut;const Pt=Object.keys(ae).length;return ae[Pt]=Je,`<span class="edu-program-fill-wrap ${Rt===xt?"":"show"}" style="width:${Rt===xt?"600px":"100%"}" title=${At||""}><span>${Je.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ot(Rt){return Rt=Rt.replace(/!\[.*?\]\(.*?\)/g,""),Rt=Rt.replace(/\[.*?\]\(.*?\)/g,""),Rt=Rt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Rt=Rt.replace(/<embed.*?>/g,""),Rt=Rt.replace(/<img.*?>/g,""),Rt=Rt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Rt=Rt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Rt=Rt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Rt=Rt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Rt}const at=Rt=>!St&&me(bt)?Rt:Rt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Ut,At){let Je=At.replace(/(\n|\r)/g,"").split("}"),Pt=[];return Je.map(nn=>{nn!=""&&Pt.push(`.${pe.current} ${nn}`)}),`<style>${Pt.join("}")}</style>`}),qe=(0,y.useMemo)(()=>{(0,ce.Iy)();try{const Je=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,nn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,pn=/\(\/attachments\/download\//g;bt=bt.replace(pn,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(Je,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(Pt,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(nn,'"'+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,`
`),Ct.current.style.display="none"}catch(Je){}if(ye){let Je=-1;return bt=bt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Pt,nn,pn){var nt;return++Je,Ze(Pt,Je,(nt=$t==null?void 0:$t[Je])==null?void 0:nt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${at(bt||"")}</pre>`}let Rt=at(bt);Rt=(0,ce.ZP)(Rt);const Ut=(0,ce.ez)();bt.match(/\[TOC\]/)&&(Rt=Rt.replace("<p>[TOC]</p>",(0,ce.Qv)()),(0,ce.Iy)()),Rt=Rt.replace(/(__special_katext_id_\d+__)/g,(Je,Pt)=>{const{type:nn,expression:pn}=Ut[Pt];return(0,ke.renderToString)(lt(pn)||"",{displayMode:nn==="block",throwOnError:!1,output:"html"})}),Rt=Rt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ce.AL)();const At=document.createElement("div");if(At.innerHTML=Rt,St)return At.innerText;if(Se){const Je=Se.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Xe(At,Je),At.innerHTML}return setTimeout(()=>un(),500),At.innerHTML},[bt,Se]);(0,y.useEffect)(()=>{tt.current&&tt.current.querySelectorAll(["input","textarea"]).forEach(Ut=>{Ut.oninput=yt,Ut.onblur=Ft,Ut.onfocus=jt})},[re]),(0,y.useEffect)(()=>{var Rt,Ut,At,Je,Pt;if($t!=null&&$t.length)try{const nn=tt.current.querySelectorAll(".edu-program-fill-score"),pn=tt.current.querySelectorAll('[name="edu-program-fill"]');for(const[nt,Nt]of pn.entries())Nt.value=((Rt=$t==null?void 0:$t[nt])==null?void 0:Rt.value)||"",((Ut=$t==null?void 0:$t[nt])==null?void 0:Ut.type)==="warning"?Nt.className="program-fill-warning":((At=$t==null?void 0:$t[nt])==null?void 0:At.type)==="success"?Nt.className="program-fill-success":Nt.className="";for(const[nt,Nt]of nn.entries())Nt.innerHTML=(Je=$t==null?void 0:$t[nt])!=null&&Je.score?`${(Pt=$t==null?void 0:$t[nt])==null?void 0:Pt.score}\u5206`:"";oe($t)}catch(nn){console.log(nn,"error")}},[$t]);const yt=Rt=>{re[Rt.target.dataset.id]=re[Rt.target.dataset.id]||{},re[Rt.target.dataset.id].value=Rt.target.value,oe([...re]),pt(re,Rt.target.dataset.id)},Ft=Rt=>{re[Rt.target.dataset.id]=re[Rt.target.dataset.id]||{},re[Rt.target.dataset.id].value=Rt.target.value,oe([...re]),ut(re,Rt.target.dataset.id)},jt=Rt=>{re[Rt.target.dataset.id]=re[Rt.target.dataset.id]||{},re[Rt.target.dataset.id].value=Rt.target.value,oe([...re]),Yt(re,Rt.target.dataset.id)};function Xe(Rt,Ut){return Rt.childNodes.forEach(At=>{var Je;if(At.childNodes.length>0)Xe(At,Ut);else if(At.nodeName!=="IMG")if(At.innerHTML)At.innerHTML=(Je=At.innerHTML)==null?void 0:Je.replace(new RegExp(Ut,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Pt=document.createElement("span");Pt.innerHTML=At.textContent.replace(new RegExp(Ut,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),At.replaceWith(Pt)}})}const tt=(0,y.useRef)();ce.jb.WebkitLineClamp=Qe,Qe&&(ze=Ve(Ve({},ze),ce.jb));function Gt(Rt){let Ut=Rt.target;if(Ut.tagName.toUpperCase()==="A"){let At=Ut.getAttribute("href");if(At.indexOf("office")>-1)Rt.preventDefault(),zt(At),ie("office");else if(At.indexOf("application/pdf")>-1)Rt.preventDefault(),zt(At),ie("pdf");else if(At.indexOf("text/html")>-1)Rt.preventDefault(),zt(At),ie("html");else if(At.startsWith("#")){Rt.preventDefault();let Je=document.getElementById(At.replace("#",""));Je&&Je.scrollIntoView(!0)}}}const un=()=>{var Rt;const Ut=(Rt=tt.current)==null?void 0:Rt.querySelectorAll("video");Ut==null||Ut.forEach(At=>{if(At.oncontextmenu=()=>!1,At.src.indexOf(".m3u8")>-1&&!At.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Je=new xe.ZP;Je.loadSource(At.src),Je.attachMedia(At)}}})};(0,y.useEffect)(()=>{if(tt.current&&qe&&qe.match(gt)&&window.PR.prettyPrint(),tt.current)return tt.current.addEventListener("click",Gt),()=>{var Rt;(Rt=tt.current)==null||Rt.removeEventListener("click",Gt),(0,ce.AL)(),(0,ce.Iy)()}},[qe,tt.current,Gt]);const wn=Rt=>{Rt.target.nodeName==="IMG"&&Rt.target.className.indexOf("draw-flowchart")>-1?(Ct.current.style.zIndex=1,Ct.current.style.display="flex",Ct.current.style.width=Rt.target.clientWidth+"px",Ct.current.style.height=Rt.target.clientHeight+"px",Ct.current.style.top=Rt.target.offsetTop+"px",Ct.current.style.left=Rt.target.offsetLeft+"px",Rt.target.id&&(mt.current=Rt.target.id)):Ct.current.style.display="none"},gn=()=>{Ct.current.style.display="none"};return(0,y.useEffect)(()=>{var Rt;const Ut=At=>{At.preventDefault(),At.clipboardData.setData("text",window.getSelection().toString())};return(Rt=tt.current)==null||Rt.addEventListener("copy",Ut),()=>{var At;(At=tt.current)==null||At.removeEventListener("copy",Ut)}},[tt.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:gn},St&&y.createElement("div",{ref:tt,className:`${Ie.mdBody} `},qe),!St&&!me(qe)&&y.createElement("div",{ref:tt,style:Ve({},ze),onMouseOver:wn,className:`${de||""} ${Ht?"disabled-fill":""} markdown-body ${Ie.mdBody} ${pe.current}`,dangerouslySetInnerHTML:{__html:qe}}),!St&&me(qe)&&y.createElement(Te,{html:qe}),y.createElement("div",{ref:Ct,className:`${Ie.button} ${Be?"":Ie.previewFlowChart}`},y.createElement(De.Z,null,y.createElement(fe.ZP,{onClick:()=>{Be?Fe(mt.current):(zt(mt.current),ie("flowChart"))}},Be?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(Ne.Z,{close:!0,data:mn,type:mn!=null&&mn.length?ue:"",style:Ve({},st),onClose:()=>zt("")}))}},93493:function(Mn,Jt,E){"use strict";E.d(Jt,{C:function(){return St}});var y=E(59301),ve={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},ce=E(92310),Le=E.n(ce),xe=E(62673),Ee=E(77019),Ce=E(6767),ke=E(25399),De=E(7939),fe=E(62957),je=E(70858),Ne=E(4875),ct=E(28284),Ke=E(29787),Te=E(68911),we=E(22972),Ie=E(10102),Pe=E(39794),rt=E(29596),Et=Object.defineProperty,Oe=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,gt=(Qe,ze,st)=>ze in Qe?Et(Qe,ze,{enumerable:!0,configurable:!0,writable:!0,value:st}):Qe[ze]=st,lt=(Qe,ze)=>{for(var st in ze||(ze={}))Ye.call(ze,st)&&gt(Qe,st,ze[st]);if(Ve)for(var st of Ve(ze))xt.call(ze,st)&&gt(Qe,st,ze[st]);return Qe},Ue=(Qe,ze)=>Oe(Qe,Ae(ze)),be=(Qe,ze,st)=>new Promise((Se,ye)=>{var vt=Fe=>{try{$t(st.next(Fe))}catch(pt){ye(pt)}},Ht=Fe=>{try{$t(st.throw(Fe))}catch(pt){ye(pt)}},$t=Fe=>Fe.done?Se(Fe.value):Promise.resolve(Fe.value).then(vt,Ht);$t((st=st.apply(Qe,ze)).next())});const We=xe.default.Group,Be=({className:Qe,title:ze,items:st=[],value:Se,onChange:ye})=>{const vt=(st==null?void 0:st.length)===(Se==null?void 0:Se.length),Ht=(Se==null?void 0:Se.length)>0&&(Se==null?void 0:Se.length)<(st==null?void 0:st.length),$t=Fe=>{const pt=st.map(ut=>ut.id);ye(Fe.target.checked?pt:[])};return y.createElement(Ee.Z,{align:"middle",className:Qe},!!ze&&y.createElement("div",{className:"mr20",style:{color:"#5F6368"}},ze),y.createElement(xe.default,{indeterminate:Ht,onChange:$t,checked:vt},"\u5168\u90E8"),y.createElement(We,{value:Se,onChange:ye},st.map(Fe=>y.createElement(xe.default,{className:"ml30 c-black",key:Fe.id,value:Fe.id},Fe.name,y.createElement("span",null,`(${Fe.count})`)))))};var St=({className:Qe,style:ze,dataSource:st})=>{var Se,ye,vt,Ht,$t,Fe,pt;const[ut,Yt]=(0,y.useState)({}),[bt,Ct]=(0,y.useState)(!0),[mt,mn]=(0,y.useState)(!1),[zt,ue]=(0,y.useState)(!1),[ie,re]=(0,y.useState)(null),[oe,pe]=(0,y.useState)(0),[ae,me]=(0,y.useState)({}),[Ze,Ot]=(0,y.useState)(!0),[at,qe]=(0,y.useState)(0),[yt,Ft]=(0,y.useState)(0),[jt,Xe]=(0,y.useState)(!1),tt=(0,y.useRef)(null),[Gt,un]=(0,y.useState)(!1),[wn,gn]=(0,y.useState)(!0),[Rt,Ut]=(0,y.useState)([]),At={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[Je,Pt]=(0,y.useState)(lt({},At));(0,y.useEffect)(()=>{st!=null&&st.question_id&&Yt(st)},[st==null?void 0:st.question_id]),(0,y.useEffect)(()=>{var Zt;if(((Zt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Zt.status)==="running"){const Xt=setInterval(()=>{nt()},3e3);return()=>clearInterval(Xt)}},[(Se=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Se.status]),(0,y.useEffect)(()=>{var Zt;zt&&(zt===1&&(Je.question_status=Nt.map(Xt=>Xt.value),Je.review=qt.map(Xt=>Xt.value)),zt===2&&(Je.exercise_question_resubmit_id=(Zt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Zt.id,ie===1&&(Je.success_status=[1]),ie===2&&(Je.success_status=[0])),Pt(lt({},Je)),nn(Je),Ft(ut!=null&&ut.is_mirror?3:10),qe(ut!=null&&ut.is_mirror?1:5))},[zt]),(0,y.useEffect)(()=>{Gt&&pn()},[Gt]);const nn=Zt=>be(void 0,null,function*(){Ct(!0);const Xt=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit_student_list.json`,{method:"get",params:Zt});(Xt==null?void 0:Xt.status)==0&&(me(Xt||[]),pe(Xt==null?void 0:Xt.count)),Ct(!1)}),pn=()=>be(void 0,null,function*(){gn(!0);const Zt=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit_history.json`,{method:"get"});(Zt==null?void 0:Zt.status)==0&&Ut((Zt==null?void 0:Zt.data)||[]),gn(!1)}),nt=()=>be(void 0,null,function*(){const Zt=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit_status.json`,{method:"get"});(Zt==null?void 0:Zt.status)==0&&Yt(Ue(lt({},ut),{show_resubmit_history:!0,exercise_question_resubmit:(Zt==null?void 0:Zt.data)||{}}))}),Nt=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],qt=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],wt=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],Wt=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Zt,Xt,an)=>y.createElement("span",{className:"c-black"},an+1+(Je.page-1)*Je.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Zt=>y.createElement("span",{className:"c-grey-666"},Zt||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Zt=>{const{label:Xt,color:an}=Nt.find(xn=>xn.value===Zt)||{};return y.createElement("span",{style:{color:an}},Xt)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Zt=>y.createElement("span",{className:"c-black"},Zt)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Zt=>{const{label:Xt,color:an}=qt.find(xn=>xn.value===Zt)||{};return y.createElement("span",{style:{color:an}},Xt)}},zt===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Zt=>{const{label:Xt,color:an}=wt.find(xn=>xn.value===Zt)||{};return y.createElement("span",{style:{color:an}},Xt)}}].filter(Boolean),en=(Zt,Xt,an)=>{Je.page=Zt==null?void 0:Zt.current,Je.per_page=Zt==null?void 0:Zt.pageSize,an!=null&&an.order?(Je.sort_by=an==null?void 0:an.field,Je.direction=(an==null?void 0:an.order)==="ascend"?"asc":"desc"):(Je.sort_by=null,Je.direction=null),Pt(lt({},Je)),nn(Je)},_n=()=>{if(!at){Ce.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Xe(!0)},Un=()=>be(void 0,null,function*(){var Zt,Xt;if((Zt=tt.current)!=null&&Zt.onVerify())return;mn(!0);const an=yield(0,we.ZP)(`/api/exercise_questions/${ut==null?void 0:ut.question_id}/resubmit.json`,{method:"post",body:{keyword:Je.keyword,question_status:Je.question_status,review:Je.review_status,success_status:Je.success_status,use_max_score:Ze,permits:at,exercise_question_resubmit_id:zt===1?null:(Xt=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Xt.id}});(an==null?void 0:an.status)==0&&(yield nt(),Ce.ZP.success("\u64CD\u4F5C\u6210\u529F"),Xe(!1),ue(!1)),mn(!1)}),On=(Zt,Xt)=>{Je.page=1,Je[Xt]=Zt,Pt(lt({},Je)),nn(Je)},Vn=["","\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:Le()(ve.recalculation,Qe),style:ze},y.createElement(ke.Z,{title:Vn[(ut==null?void 0:ut.disable_resubmit_reason)||0]},y.createElement(De.ZP,{disabled:(ut==null?void 0:ut.disable_resubmit)||((ye=ut==null?void 0:ut.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")),(ut==null?void 0:ut.show_resubmit_history)&&y.createElement(y.Fragment,null,((vt=ut==null?void 0:ut.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=ut==null?void 0:ut.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"}},($t=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:$t.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"}},(Fe=ut==null?void 0:ut.exercise_question_resubmit)==null?void 0:Fe.fail_count),"\u4EBA"),y.createElement(ke.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},y.createElement("i",{onClick:()=>un(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),y.createElement(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:_n,afterClose:()=>{Ot(!0),re(null),Pt(lt({},At))}},y.createElement("div",{className:ve.filter},zt===1&&y.createElement(y.Fragment,null,y.createElement("div",{className:ve.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(Be,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(ae==null?void 0:ae.question_status)||[],value:Je.question_status,onChange:Zt=>On(Zt,"question_status")}),y.createElement(Be,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(ae==null?void 0:ae.review_status)||[],value:Je.review,onChange:Zt=>On(Zt,"review")})),zt===2&&y.createElement(y.Fragment,null,y.createElement(Be,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(ae==null?void 0:ae.success_status)||[],value:Je.success_status,onChange:Zt=>On(Zt,"success_status")})),y.createElement(rt.t7,{className:ve.input,style:{bottom:zt===1?10:-5},value:Je.keyword,onChange:Zt=>On(Zt,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),y.createElement(je.default,{className:"mt20",columns:Wt,scroll:((pt=ae==null?void 0:ae.data)==null?void 0:pt.length)>7?{y:300}:{},dataSource:(ae==null?void 0:ae.data)||[],loading:bt,onChange:en,pagination:{total:oe,pageSize:Je.per_page,current:Je.page,hideOnSinglePage:!oe,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Te.rU}}),y.createElement(Ee.Z,{justify:"space-between",align:"middle",className:"mt10"},y.createElement(xe.default,{className:"c-black",checked:Ze,onChange:Zt=>Ot(Zt.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,Ie.Ny)()&&y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",y.createElement(Ne.Z,{className:"ml10 mr10",value:at,max:yt,min:1,precision:0,onChange:Zt=>qe(Zt)}),"\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:jt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:mt,destroyOnClose:!0,onOk:Un,onCancel:()=>Xe(!1)},y.createElement(ct.default.Item,{className:"mb0",colon:!1,label:"\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}]},y.createElement(Pe.Z,{ref:Zt=>tt.current=Zt}))),y.createElement(fe.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Gt,width:710,onCancel:()=>un(!1),footer:null},y.createElement(Ke.Z,{spinning:wn},y.createElement("div",{className:ve.operating},Rt.map((Zt,Xt)=>y.createElement("div",{key:Xt,className:ve.operatingItem},y.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Zt==null?void 0:Zt.created_at),y.createElement("div",{className:"c-black"},Zt==null?void 0:Zt.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Zt==null?void 0:Zt.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"},Zt==null?void 0:Zt.rate)):y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Zt==null?void 0:Zt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Zt==null?void 0:Zt.fail_count),"\u4EBA")))),y.createElement("div",{style:{height:20}}))))}},15567:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(59301),ve={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),Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",xe="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,je)=>new Promise((Ne,ct)=>{var Ke=Ie=>{try{we(je.next(Ie))}catch(Pe){ct(Pe)}},Te=Ie=>{try{we(je.throw(Ie))}catch(Pe){ct(Pe)}},we=Ie=>Ie.done?Ne(Ie.value):Promise.resolve(Ie.value).then(Ke,Te);we((je=je.apply(De,fe)).next())}),ke=({type:De,resdata:fe,onok:je,oktext:Ne,okloading:ct})=>{const[Ke,Te]=(0,y.useState)(!1),{can_copy_list:we,can_copy_num:Ie,challenge_type:Pe,course_data_list:rt,no_copy_list:Et,no_copy_num:Oe,no_use_list:Ae,no_use_num:Ve,repeat_shixun_num:Ye,student_count:xt,total_num:gt,use_num:lt}=fe;let Ue=Ie>0||De==="exercise";(0,y.useEffect)(()=>{(fe==null?void 0:fe.student_count)>0&&Te(!0)},[fe]),console.log("---11",ct),(0,y.useEffect)(()=>{ct||Te(!1)},[ct]);const be=()=>{if(De==="exercise"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},xt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},lt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.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"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},xt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},lt),"\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:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="shixun"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},xt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="shixun"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},xt),"\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:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="subject"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},xt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},lt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="subject"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",y.createElement("span",{className:ve.orangeColor},xt)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",y.createElement("span",{className:ve.orangeColor},lt)," \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:ve.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:ve.orangeColor},xt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},lt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",y.createElement("span",{className:ve.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"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},xt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:ve.orangeColor},lt),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(De==="shixunpush"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:ve.orangeColor},xt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",y.createElement("span",{className:ve.orangeColor},lt),"\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:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},We=()=>{if(De==="exercise"||De==="subject"||De==="exercisepush"||De==="shixunpush")return y.createElement("div",{style:{marginTop:20}},Oe>0&&y.createElement("div",null,y.createElement("span",{className:ve.flex},y.createElement("img",{src:xe,style:{width:14}}),y.createElement("span",{className:ve.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:ve.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:ve.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",Ue&&y.createElement("span",{className:ve.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",Ue&&y.createElement("span",{className:ve.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,Et==null?void 0:Et.map((Be,de)=>y.createElement("a",{href:`/shixuns/${Be.identifier}/challenges`,target:"_blank"},"\u300A",Be==null?void 0:Be.name,"\u300B",de+1!==Oe&&"\u3001"))))),Ie>0&&y.createElement("div",{style:{marginTop:20}},y.createElement("span",{className:ve.flex},y.createElement("img",{src:Le,style:{width:14}}),y.createElement("span",{className:ve.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:ve.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((Be,de)=>y.createElement("a",{href:`/shixuns/${Be.identifier}/challenges`,target:"_blank"},"\u300A",Be==null?void 0:Be.name,"\u300B",de+1!==Ie&&"\u3001"))))));if(De==="shixun")return y.createElement("div",{style:{marginTop:20}},Ie>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:Ke,onCancel:()=>{Te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ue&&"none"}},zIndex:1003,confirmLoading:ct,okText:Ue?Ne:"\u6211\u77E5\u9053\u4E86",onOk:()=>Ee(void 0,null,function*(){Ue?yield je([...we,...Ae]):Te(!1)})},y.createElement("div",{style:{maxHeight:600,overflow:"auto"}},be(),We()))}},20150:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ee}});var y=E(59301),ve={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},ce=E(92310),Le=E.n(ce),Ee=({className:Ce,style:ke,state:De,onClick:fe})=>{var je,Ne;return y.createElement("div",{onClick:fe,className:Le()(De?(je=ve)==null?void 0:je.redBtn:(Ne=ve)==null?void 0:Ne.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")))}},56383:function(Mn,Jt,E){"use strict";E.d(Jt,{h:function(){return Oe}});var y=E(59301),ve=E(82326),ce=E(28284),Le=E(7939),xe=E(89780),Ee=E.n(xe),Ce=E(3706),ke=E(96772),De=Object.defineProperty,fe=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Te=(Ae,Ve,Ye)=>Ve in Ae?De(Ae,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ae[Ve]=Ye,we=(Ae,Ve)=>{for(var Ye in Ve||(Ve={}))ct.call(Ve,Ye)&&Te(Ae,Ye,Ve[Ye]);if(Ne)for(var Ye of Ne(Ve))Ke.call(Ve,Ye)&&Te(Ae,Ye,Ve[Ye]);return Ae},Ie=(Ae,Ve)=>fe(Ae,je(Ve));const Pe=ve.default.Option,rt={labelCol:{span:4},wrapperCol:{span:20}},Et={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"]};Jt.Z=({callback:Ae,onCancel:Ve})=>{const[Ye,xt]=(0,y.useState)("python");function gt(Ue){xt(Et[Ue][1])}function lt(Ue){Ae(Ue)}return y.createElement(ce.default,Ie(we({},rt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:lt,style:{width:500}}),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(ve.default,{getPopupContainer:Ue=>Ue.parentNode,onChange:gt},Object.keys(Et).map(Ue=>y.createElement(Pe,{key:Ue,value:Ue},Et[Ue][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(Oe,{mode:Ye})),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Le.ZP,{type:"ghost",onClick:Ve},"\u53D6\u6D88")))};function Oe({value:Ae,onChange:Ve,mode:Ye,options:xt={}}){const gt=(0,y.useRef)(),[lt,Ue]=(0,y.useState)();return(0,y.useEffect)(()=>{if(lt){let be=function(We){const Be=We.getValue();Ve&&Ve(Be)};return lt.on("change",be),()=>{lt.off("change",be)}}},[lt,Ve]),(0,y.useEffect)(()=>{lt&&lt.setOption("mode",Ye)},[lt,Ye]),(0,y.useEffect)(()=>{lt&&(Ae!==lt.getValue()||Ae==="")&&setTimeout(()=>{lt.setValue(Ae||"")},300)},[lt,Ae]),(0,y.useEffect)(()=>{if(gt.current&&!lt){const be=Ee().fromTextArea(gt.current,we({mode:Ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},xt));Ue(be)}},[gt.current,lt]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:gt}))}},32862:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return xn}});var y=E(59301),ve=E(63823),ce=E(89780),Le=E.n(ce),xe=E(76374),Ee=E(3706),Ce=E(6313),ke=E(25717),De=E(99498),fe=E(25419),je=E(67549),Ne=E(56375),ct=({value:ln="",className:Pn,showTextOnly:Sn,showLines:Rn,style:Er={}})=>{const Jn=(0,y.useMemo)(()=>"",[ln]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:Jn}}))},Ke=Object.defineProperty,Te=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Et=(ln,Pn,Sn)=>Pn in ln?Ke(ln,Pn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):ln[Pn]=Sn,Oe=(ln,Pn)=>{for(var Sn in Pn||(Pn={}))Pe.call(Pn,Sn)&&Et(ln,Sn,Pn[Sn]);if(Ie)for(var Sn of Ie(Pn))rt.call(Pn,Sn)&&Et(ln,Sn,Pn[Sn]);return ln},Ae=(ln,Pn)=>Te(ln,we(Pn));let Ve=[{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 Ye({onActionCallback:ln,title:Pn,icon:Sn,actionName:Rn,className:Er="",children:Jn}){function dr(){ln(Rn)}return y.createElement("a",{title:Pn,className:Er,onClick:dr},y.createElement("i",{className:`${Sn}`}),Jn)}var xt=({watch:ln,showNullButton:Pn,showNullProgramButton:Sn,onActionCallback:Rn,fullScreen:Er,insertTemp:Jn,hidetoolBar:dr,extraUse:yr})=>{const gr=[...Ve,{title:`${ln?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ln?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return y.createElement("ul",{className:"markdown-toolbar-container"},!dr&&gr.map((Vr,Zr)=>y.createElement("li",{key:Zr},Vr.actionName?y.createElement(Ye,Ae(Oe({},Vr),{onActionCallback:Rn})):y.createElement("span",{className:"v-line"}))),Pn?y.createElement("li",null,y.createElement(Ye,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Rn},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Sn?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement(Ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Rn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement(Ye,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Rn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Jn&&y.createElement("li",null,y.createElement(Ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Jn}`,onActionCallback:Rn},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yr&&y.createElement("li",null,yr),y.createElement("li",{className:"btn-full-screen"},y.createElement(Ye,{icon:`${Er?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Er?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Rn})))},gt=E(88969),lt=E(28284),Ue=E(37568),be=E(7939),We=Object.defineProperty,Be=Object.defineProperties,de=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,st=(ln,Pn,Sn)=>Pn in ln?We(ln,Pn,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):ln[Pn]=Sn,Se=(ln,Pn)=>{for(var Sn in Pn||(Pn={}))Qe.call(Pn,Sn)&&st(ln,Sn,Pn[Sn]);if(St)for(var Sn of St(Pn))ze.call(Pn,Sn)&&st(ln,Sn,Pn[Sn]);return ln},ye=(ln,Pn)=>Be(ln,de(Pn));const vt={labelCol:{span:4},wrapperCol:{span:20}};var Ht=({callback:ln,onCancel:Pn})=>{function Sn(Rn){ln(Rn)}return y.createElement(lt.default,ye(Se({},vt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Sn,style:{width:500}}),y.createElement(lt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},y.createElement(Ue.default,null)),y.createElement(lt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},y.createElement(Ue.default,null)),y.createElement("div",{className:"flex-container flex-end"},y.createElement(be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(be.ZP,{type:"ghost",onClick:Pn},"\u53D6\u6D88")))},$t=E(56383),Fe=E(79203),pt=E(62957),ut=E(77019),Yt=E(78265),bt=E(59301),Ct=({callback:ln,onCancel:Pn})=>{const Sn=document.createElement("canvas"),Rn=Sn.getContext("2d");Sn.width=1e3,Sn.height=800,Rn.fillStyle="#ffffff",Rn.fillRect(0,0,Sn.width,Sn.height);const Er=Sn.toDataURL("image/png");return bt.createElement(pt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bt.createElement(ut.Z,{style:{height:"100vh"}},bt.createElement(Yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Er,visible:!0,title:String(Date.now())},onOk:Jn=>{ln({src:Jn.url})},onClose:Pn})))},mt=E(36207),mn=E(5269),zt=E(6767),ue={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ie=E(59301),oe=(0,y.forwardRef)(({onCancel:ln,editImgId:Pn,callback:Sn},Rn)=>{let Er=(0,y.useRef)(),Jn=(0,y.useRef)(),dr=(0,y.useRef)(),yr=(0,y.useRef)(!1);const gr=(0,y.useRef)(!1);console.log("ref:",Rn);const[Vr,Zr]=(0,y.useState)(0),[Dn,Zn]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{Zr(1)},[]),(0,y.useImperativeHandle)(Rn,()=>({setHeight:Zn})),ie.createElement("div",{ref:gr,className:"body-overflow-initial"},ie.createElement(mt.Z,{width:"100vw",height:Dn,footer:null,closable:!0,placement:"bottom",open:!!Vr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ue.drawerWrap}`,onClose:()=>{window.saveDrawData(fr=>{Sn({src:`/api/attachments/${fr}`,id:fr})})},title:ie.createElement(ut.Z,{align:"middle"},ie.createElement(mn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ie.createElement(mn.Z,{onClick:()=>{Zn(Dn==="60px"?"100vh":"60px")}},ie.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ie.createElement(mn.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}}),Sn({src:`/api/attachments/${fr}`,id:fr,disabledClose:!0})})}},ie.createElement(be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ie.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Pn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Jn})))}),pe=E(35783),ae=E(47889),me=E(4875);const Ze=ae.ZP.Group,Ot={margin:"0 8px"};var at=({callback:ln,onCancel:Pn})=>{function Sn(Rn){ln(Rn)}return y.createElement(lt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Sn},y.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},y.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),y.createElement("span",{style:Ot},"\u884C\u6570"),y.createElement(lt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},y.createElement(me.Z,null)),y.createElement("span",{style:Ot},"\u5217\u6570"),y.createElement(lt.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:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),y.createElement(lt.default.Item,{name:"align"},y.createElement(Ze,null,y.createElement(ae.ZP,{value:"default"},y.createElement("i",{className:"fa fa-align-justify"})),y.createElement(ae.ZP,{value:"left"},y.createElement("i",{className:"fa fa-align-left"})),y.createElement(ae.ZP,{value:"center"},y.createElement("i",{className:"fa fa-align-center"})),y.createElement(ae.ZP,{value:"right"},y.createElement("i",{className:"fa fa-align-right"}))))),y.createElement("div",{className:"flex-container flex-end"},y.createElement(be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(be.ZP,{type:"ghost",onClick:Pn},"\u53D6\u6D88")))},qe=E(58755),yt=E(45936),Ft=E.n(yt),Xe=(0,y.forwardRef)(({use3d:ln,width:Pn,height:Sn,callback:Rn,showSaveButton:Er},Jn)=>{const dr=(0,y.useRef)(),yr=(0,y.useRef)(),[gr,Vr]=(0,y.useState)(!1),Zr=(0,y.useRef)({id:dr,appName:"graphing",width:Pn||1e3,height:Sn||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)(()=>{yr.current=new(Ft())(Zr.current,!0),window.onload=function(){yr.current.inject("applet_container")}},[]);const Dn=()=>{var Zn=window.ggbApplet.getPNGBase64(1,!0,72);return Rn&&Rn(Zn),Zn};return(0,y.useEffect)(()=>{Zr.current.appName=gr?"3D":"graphing",yr.current.inject("applet_container")},[gr]),(0,y.useEffect)(()=>{Vr(ln)},[ln]),(0,y.useImperativeHandle)(Jn,()=>({getImgData:Dn})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dr}),y.createElement(ut.Z,{align:"middle"},y.createElement(mn.Z,{flex:1},y.createElement(qe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gr,onChange:Zn=>Vr(Zn)})),y.createElement(mn.Z,null,y.createElement(be.ZP,{size:"large",onClick:Dn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tt=E(9043);const Gt="link",un="upload-image",wn="add-flowchart",gn="draw-image",Rt="add-flowchart",Ut="code-block",At="add-table",Je="------------",Pt={default:Je,left:`:${Je}`,center:`:${Je}:`,right:`${Je}:`};var nn=E(2408),pn=E(68911);function nt(){}let Nt=0;const qt=1e4,wt="\u2581",Wt="@\u2581\u2581@",en="@\u2581@",_n=`
**\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`,Un=["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 On(ln){return/^\d+$/.test(ln)?`${ln}px`:ln}const Zt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xt={[Zt+"-B"]:"bold",[Zt+"-I"]:"italic"},an={[Gt]:"\u6DFB\u52A0\u94FE\u63A5",[Ut]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[un]:"\u6DFB\u52A0\u56FE\u7247",[gn]:"\u6DFB\u52A0\u753B\u56FE",[wn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[At]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var xn=({defaultValue:ln="",onChange:Pn,width:Sn="100%",height:Rn=400,miniToolbar:Er=!1,isFocus:Jn=!1,watch:dr,insertTemp:yr,mode:gr="markdown",id:Vr="markdown-editor-id",showResizeBar:Zr=!1,noStorage:Dn=!1,showNullButton:Zn=!1,showNullProgramButton:fr=!1,hidetoolBar:ur=!1,fullScreen:Mt=!1,onBlur:Vt,onCMBeforeChange:ft,onFullScreen:kt,className:it="",disablePaste:ht=!1,disabled:cn=!1,disabledFill:ar=!1,placeholder:mr="",values:It="",extraUse:_t,onAddBlank:Tt})=>{const[Kt,Fn]=(0,y.useState)(null),[Hn,Gn]=(0,y.useState)(ln),[jn,hr]=(0,y.useState)(dr),[Pr,Tr]=(0,y.useState)(Mt),[Lr,Cr]=(0,y.useState)(""),[Rr,Xr]=(0,y.useState)(0),[oa,ta]=(0,y.useState)(Rn),[xa,Ia]=(0,y.useState)(!1),[Ur,ya]=(0,y.useState)(0),[Xa,Pa]=(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,ve.useDispatch)();(0,y.useEffect)(()=>{const br=window.scrollY||window.pageYOffset;Gn(It),Kt==null||Kt.setValue(It),window.scrollTo(0,br)},[It]),(0,y.useEffect)(()=>{kt==null||kt(Pr)},[Pr]),(0,y.useEffect)(()=>{if(pa.current){let br=function(jr,Qr){var _a;if(ht){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(),gr=="stex")return;try{let yi=ai[1];((_a=ai[0])==null?void 0:_a.kind)==="file"&&(yi=ai[0]);const zi=yi.getAsFile(),Ui=zi.name.split(".").pop();(0,Fe.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>`):Un.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(yi){zt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dr=Le().fromTextArea(pa.current,{mode:gr,lineNumbers:!Er,lineWrapping:!0,value:ln,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 _a=ji(jr);_a&&Qr.preventDefault()}}),Jn&&Dr.focus(),Dr.on("paste",br),cn&&Dr.on("beforeChange",function(jr,Qr){(Qr.origin==="paste"||Qr.origin==="+input")&&Qr.cancel()}),Fn(Dr),()=>{Dr.off("paste",br)}}},[]);const Mi=(0,y.useCallback)(()=>{if(kr.current)try{}catch(br){console.log(br,"---- to set md editor body height")}},[oa,kr,Pr]);(0,y.useEffect)(()=>{function br(){let Dr=new xe.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=br();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 br=[];for(const[Dr,jr]of Object.entries(Xt)){let Qr={[Dr]:()=>{za(jr)}};br.push(Qr),Kt.addKeyMap(Qr)}return()=>{for(let Dr of br)Kt.removeKeyMap(Dr)}}},[Kt]),(0,y.useEffect)(()=>{Mt!==Pr&&Tr(Mt)},[Mt]),(0,nn.Z)(()=>{if(!Dn&&Rr>0){let br=new Date().getTime(),Dr=window.sessionStorage.getItem(Vr);br>=Rr+qt&&(!Dr||Dr!==Hn)&&(window.sessionStorage.setItem(Vr,Hn),Ia(!0))}},qt),(0,y.useEffect)(()=>{hr(dr)},[Kt,dr]),(0,y.useEffect)(()=>{Kt&&Jn&&Kt.focus()},[Kt,Jn]),(0,y.useEffect)(()=>{if(jn&&Kt){let br=function(jr){let Qr=jr.target;if(Sa.current){let _a=Qr.scrollTop/Qr.scrollHeight;Sa.current.scrollTop=Sa.current.scrollHeight*_a}};const Dr=Kt.getScrollerElement();return Dr.addEventListener("scroll",br),()=>{Dr.removeEventListener("scroll",br)}}},[Kt,jn]),(0,y.useEffect)(()=>{if(Kt&&ft){let br=function(Dr,jr){ft(Dr,jr)};return Kt.on("beforeChange",br),()=>{Kt.off("beforeChange",br)}}},[Kt,ft]),(0,y.useEffect)(()=>{if(Kt&&Vt){let br=function(){Vt(Kt.getValue())};return Kt.on("blur",br),()=>{Kt.off("blur",br)}}},[Kt,Vt]);function ji(br,Dr){var jr=br.getDoc(),Qr=jr.getCursor(),_a=jr.getLine(Qr.line),$a=_a.charAt(Qr.ch-1),ea=_a.lastIndexOf("@\u2581@",Qr.ch),ai=_a.lastIndexOf("@\u2581\u2581@",Qr.ch),yi=ea>ai?ea:ai,zi=ea>ai?3:4;if(Wt.indexOf($a)===-1)return null;if(console.log("change1:",Dr,br,_a,Qr,yi,ea,ai,$a),yi>=0&&Qr.ch-yi<5){var Ui=yi+zi;return jr.replaceRange("",{line:Qr.line,ch:yi},{line:Qr.line,ch:Ui}),{line:Qr.line,ch:Ui}}return null}(0,y.useEffect)(()=>{if(Kt){let br=function(Dr,jr){const Qr=Dr.getValue();Gn(Qr),Xr(new Date().getTime()),Dr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pn&&(fr?Pn(Qr,xr(Qr)):Pn(Qr))};return Kt.on("change",br),()=>{Kt.off("change",br)}}},[Kt,Pn]),(0,y.useEffect)(()=>{if(Kt)if(ln==null)Kt.setValue(""),Gn("");else{const br=window.scrollY||window.pageYOffset;ln!==Kt.getValue()&&(Kt.setValue(ln),Gn(ln),Kt.setCursor(cn?1:Kt.lineCount(),0),window.scrollTo(0,br))}},[Kt,ln]);const za=(0,y.useCallback)(br=>{const Dr=Kt.getCursor(),jr=Kt.getSelection();let Qr=jr.split(`
`);switch(br){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,pn.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(_a=>_a===""?"":`- ${_a}`).join(`
`)),Kt.focus();case"list-ol":return jr===""?Kt.replaceSelection("1. "+jr):Kt.replaceSelection(Qr.map((_a,$a)=>_a===""?"":`${$a+1}. ${_a}`).join(`
`)),Kt.focus();case"add-null-ch":Tt==null||Tt();return;case"add-signal":return jr===""&&Kt.setCursor(Dr.line,Dr.ch),Kt.replaceSelection(en),Kt.focus();case"add-multiple":return jr===""&&Kt.setCursor(Dr.line,Dr.ch),Kt.replaceSelection(Wt),Kt.focus();case"inster-template-1":return jr===""&&Kt.setCursor(Dr.line,Dr.ch),Kt.replaceSelection(_n),Kt.focus();case"eraser":return Kt.setValue(""),Kt.focus();case"trigger-watch":return hr(!jn),Kt.focus();case"trigger-full-screen":return Tr(!Pr),Kt.focus();case Gt:Cr(Gt);return;case Ut:Cr(Ut);return;case un:Cr(un);return;case gn:Cr(gn);return;case"maths-latex":if((0,pn.Ye)(Ya))return;Cr("maths-latex");return;case wn:la.current="",sessionStorage.removeItem("file_id"),Cr(wn);return;case At:Cr(At);return;default:throw new Error}},[Kt,jn,Pr]),Di=(0,y.useCallback)((br,Dr)=>{var jr,Qr,_a,$a,ea,ai;br!=null&&br.disabledClose||Cr("");const{src:yi,alt:zi,id:Ui}=br||{};switch(Lr){case Gt:const{title:$o,link:Wo}=br;return Kt.replaceSelection(`[${$o}](${Wo})`),Kt.focus();case Ut:const{language:Da,content:Ii}=br;return Kt.replaceSelection(["```"+Da,Ii,"```"].join(`
`)),Kt.focus();case"maths-latex":for(var Ji=atob(br),Yi=new Uint8Array(Ji.length),co=0;co<Ji.length;co++)Yi[co]=Ji.charCodeAt(co);var No=new Blob([Yi],{type:"image/png"});(0,Fe.I)(No,Vo=>{Vo.id?Kt.replaceSelection(`![,](/api/attachments/${Vo.id}?type=${Vo.content_type})`):(Vo==null?void 0:Vo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,pn.Ye)(Ya))return;Kt.replaceSelection("`$$"+br+"$$`");break;case Rt:if(!Ui)return;Kt.getValue().indexOf(yi)===-1?Kt.replaceSelection(`<center><img id="${Ui}" width="80%" src="${yi}" class="draw-flowchart" alt="${zi||""}" /></center>`):document.getElementById(Ui).src=pe.Z.API_SERVER+yi+"?t="+Date.now();break;case un:case gn:const ri=Dr,So=(_a=(Qr=(jr=ri==null?void 0:ri.name)==null?void 0:jr.split("."))==null?void 0:Qr.pop)==null?void 0:_a.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="${yi}" alt="${zi||""}" /></p>`):Kt.replaceSelection(`<img width="100%" src="${yi}" alt="${zi||""}" />`):((ea=ri==null?void 0:ri.type)==null?void 0:ea.indexOf("video"))>-1?Kt.replaceSelection(`<video width="100%" controls src="${yi}"></video>`):((ai=ri==null?void 0:ri.type)==null?void 0:ai.indexOf("pdf"))>-1?Kt.replaceSelection(`<a href="${yi}?type=${ri.type}&disposition=inline" target="_blank">${ri.name}</a>`):Un.includes(So)?Kt.replaceSelection(`<a href="${yi}?type=office&disposition=inline" target="_blank">${ri.name}</a>`):Kt.replaceSelection(`[${ri.name}](${yi})`),Kt.focus();case At:const{row:di,col:il,align:$l}=br;let Al=`
`;for(let Vo=0;Vo<di;Vo++){let Yo=[],no=[];for(let Ol=0;Ol<il;Ol++)Vo===1&&no.push(Pt[$l]),Yo.push(" ");Vo===1&&(Al+=`| ${no.join(" | ")} |
`),Al+=`| ${Yo.join(il===1?"":" | ")} |
`}return Kt.replaceSelection(Al+`
`),Kt.focus();default:throw new Error}},[Kt,Lr]),pi=(0,y.useMemo)(()=>{switch(Lr){case Gt:return y.createElement(Ht,{callback:Di,onCancel:Wi});case Ut:return y.createElement($t.Z,{callback:Di,onCancel:Wi});case un:return y.createElement(Fe.Z,{callback:Di,onCancel:Wi});case wn:return y.createElement(oe,{editImgId:la.current,callback:Di,onCancel:Wi});case At:return y.createElement(at,{callback:Di,onCancel:Wi});case"maths-latex":return y.createElement(Xe,{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 br=function(ea){_a=!0,$a=ea.pageY},Dr=function(){_a=!1},jr=function(ea){if(_a){let ai=ea.pageY-$a;ai<0&&(ai=0),ai>300&&(ai=300);let yi=Rn+ai+"px";ta(yi)}},Qr=Za.current,_a=!1,$a=0;return Qr.addEventListener("mousedown",br),document.addEventListener("mousemove",jr),document.addEventListener("mouseup",Dr),()=>{Qr.removeEventListener("mousedown",br),document.removeEventListener("mousemove",jr),document.removeEventListener("mouseup",Dr)}}},[Kt,Za]),(0,y.useEffect)(()=>{ta(Rn)},[Rn]);const Ci=On(Sn),ei=On(oa),Ar={width:Ci,height:ei},Qn=(0,y.useMemo)(()=>{if(Rr){let br=new Date(Rr),Dr=br.getHours(),jr=br.getMinutes(),Qr=br.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=br=>{const Dr=[];if(fr){let jr=-1;br=br.replace(/(@▁▁@|@▁@)/g,function(Qr,_a,$a){Dr.push({multiLine:Qr!==en})})}return Dr};function Sr(){window.sessionStorage.removeItem(Vr),Ia(!1),Xr(0)}function tr(){Ia(!1),Xr(0),Kt.setValue(window.sessionStorage.getItem(Vr))}(0,y.useEffect)(()=>{an[Lr]&&Lr!==gn&&Lr!==wn&&setTimeout(()=>{const br=document.getElementsByClassName("markdown-popup-form")[0],Dr=window.innerWidth/2-br.offsetWidth/2,jr=window.innerHeight/2-br.offsetHeight/2;ya(Dr),Pa(jr)},0)},[Lr]);const $r=br=>{br.preventDefault();const Dr=br.clientX-Ur,jr=br.clientY-Xa;document.body.onmousemove=Qr=>{let _a=Qr.clientX-Dr,$a=Qr.clientY-jr;const ea=document.getElementsByClassName("markdown-popup-form")[0],ai=window.innerWidth-ea.offsetWidth,yi=window.innerHeight-ea.offsetHeight;_a=Math.max(0,Math.min(_a,ai)),$a=Math.max(0,Math.min($a,yi)),sa(Qr.clientX,Qr.clientY,Dr,jr)&&(ya(_a),Pa($a))},document.body.onmouseup=function(){document.body.onmousemove=null}},sa=(br,Dr,jr,Qr)=>{const _a=document.body.clientHeight,$a=document.body.clientWidth;return br<20&&jr>br||br>$a-20&&jr<br||Dr<20&&Qr>Dr||Dr>_a-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 ${it} ${jn?"on-preview":""} ${Er?"mini":""} ${Pr?"full-screen":""}`,style:Ar},y.createElement(xt,{insertTemp:yr,watch:jn,fullScreen:Pr,showNullButton:Zn,showNullProgramButton:fr,onActionCallback:za,hidetoolBar:ur,extraUse:_t}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:pa,placeholder:mr})),jn?y.createElement("div",{ref:Sa,className:"preview-container"},gr==="stex"&&y.createElement(ct,{value:Hn}),gr!=="stex"&&y.createElement(Ne.Z,{edit:!0,disabledFill:ar,showProgramFill:fr,value:Hn,openEditor:br=>{var Dr;la.current=br,(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(Ct,{callback:Di,onCancel:Wi}),Lr===wn&&y.createElement(oe,{ref:Kr,editImgId:la.current,callback:Di,onCancel:Wi}),y.createElement(gt.Z,null,an[Lr]&&Lr!==gn&&Lr!==wn?y.createElement(pt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ur,top:Xa},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:$r},an[Lr]),open:!0,onCancel:Wi,footer:null,destroyOnClose:!0,width:Lr===wn?"1200px":null,height:Lr===wn?"80vh":null,className:"markdown-popup-form"},pi):null))}},79203:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ve},I:function(){return xt}});var y=E(28284),ve=E(6767),ce=E(37568),Le=E(44104),xe=E(4875),Ee=E(47889),Ce=E(7939),ke=E(8240),De=E(59301),fe=E(59301),je=Object.defineProperty,Ne=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Ie=(gt,lt,Ue)=>lt in gt?je(gt,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):gt[lt]=Ue,Pe=(gt,lt)=>{for(var Ue in lt||(lt={}))Te.call(lt,Ue)&&Ie(gt,Ue,lt[Ue]);if(Ke)for(var Ue of Ke(lt))we.call(lt,Ue)&&Ie(gt,Ue,lt[Ue]);return gt},rt=(gt,lt)=>Ne(gt,ct(lt));const{useForm:Et}=y.default,Oe={width:280,marginRight:10},Ae={labelCol:{span:5},wrapperCol:{span:19}};var Ve=({callback:gt,onCancel:lt})=>{const[Ue]=Et();let be=(0,De.useRef)();function We(St){be.current.width=Ue.getFieldValue("width"),be.current.align=Ue.getFieldValue("align"),gt(St,be.current)}function Be(St,Qe){if(St.status===-1){ve.ZP.error(St.message);return}Ue.setFieldsValue({src:`/api/attachments/${St.id}`,type:Qe.type})}function de(St){let Qe=St.target.files[0];be.current=Qe,xt(Qe,Be)}return fe.createElement(y.default,rt(Pe({form:Ue},Ae),{className:"upload-image-panel",onFinish:We,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:Oe})),fe.createElement(Ye,{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(Le.Z,null,fe.createElement(y.default.Item,{name:"width",style:{margin:0}},fe.createElement(xe.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:lt},"\u53D6\u6D88"))))};function Ye({onFileChange:gt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:gt}))}function xt(gt,lt){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ue=new FormData;Ue.append("editormd-image-file",gt),Ue.append("file_param_name","editormd-image-file"),Ue.append("byxhr","true");var be=new window.XMLHttpRequest;be.withCredentials=!0,be.addEventListener("load",function(We){lt(JSON.parse(We.target.responseText),gt)},!1),be.addEventListener("error",function(We){console.error(We)},!1),be.open("POST",`${ke.KI}/api/attachments.json`),be.send(Ue)}},88969:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ce}});var y=E(59301),ve=E(4676);class ce extends y.Component{constructor(xe){super(xe);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,ve.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(Mn,Jt,E){"use strict";E.d(Jt,{SV:function(){return Ct},ZP:function(){return bt}});var y=E(59301),ve=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"]},Le={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"]},xe={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=(mt,mn,zt)=>new Promise((ue,ie)=>{var re=ae=>{try{pe(zt.next(ae))}catch(me){ie(me)}},oe=ae=>{try{pe(zt.throw(ae))}catch(me){ie(me)}},pe=ae=>ae.done?ue(ae.value):Promise.resolve(ae.value).then(re,oe);pe((zt=zt.apply(mt,mn)).next())});const je={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"]}},Ne=(mt,mn,zt,ue)=>{const ie=mn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:zt.lineNumber,endColumn:zt.column});return Array.from(new Set(ie.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:mt.languages.CompletionItemKind.Text,insertText:oe,range:ue}))},ct=(mt,mn,zt,ue)=>{mt.languages.registerCompletionItemProvider(mn,{provideCompletionItems(ie,re){const oe=ie.getWordUntilPosition(re),pe={startLineNumber:re.lineNumber,endLineNumber:re.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ae=ie.getLineContent(re.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Ne(mt,ie,re,pe),...zt.map(Ze=>({label:Ze,kind:mt.languages.CompletionItemKind.Keyword,documentation:Ze,insertText:Ze,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pe})),...ue.map(Ze=>({label:Ze.label,kind:mt.languages.CompletionItemKind.Snippet,documentation:Ze.content,insertText:ae.startsWith("#")?Ze.content.replace(/#/,""):Ze.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pe}))]}}})};var Ke=mt=>{je.languages.forEach(mn=>{mt.languages.registerDocumentFormattingEditProvider(mn,{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}]})}})}),ct(mt,"java",Le.keywords,Le.quickKey),ct(mt,"cpp",xe.keywords,xe.quickKey),ct(mt,"c",ce.keywords,[]),ct(mt,"python",Ee.keywords,Ee.quickKey),ct(mt,"scala",Ce.keywords,Ce.quickKey)};const Te="\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,Ie=(mt,mn,zt)=>mn in mt?we(mt,mn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):mt[mn]=zt,Pe=(mt,mn,zt)=>Ie(mt,typeof mn!="symbol"?mn+"":mn,zt);const rt=class Gc{constructor(mn,zt,ue){this.placeholder=mn,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)}};Pe(rt,"ID","editor.widget.placeholderHint");var Oe=rt,Ae=E(96236),Ve=E(6767),Ye=E(25399),xt=E(89392),gt=E(99936),lt=E(56102),Ue=Object.defineProperty,be=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Qe=(mt,mn,zt)=>mn in mt?Ue(mt,mn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):mt[mn]=zt,ze=(mt,mn)=>{for(var zt in mn||(mn={}))de.call(mn,zt)&&Qe(mt,zt,mn[zt]);if(Be)for(var zt of Be(mn))St.call(mn,zt)&&Qe(mt,zt,mn[zt]);return mt},st=(mt,mn)=>be(mt,We(mn)),Se=(mt,mn)=>{var zt={};for(var ue in mt)de.call(mt,ue)&&mn.indexOf(ue)<0&&(zt[ue]=mt[ue]);if(mt!=null&&Be)for(var ue of Be(mt))mn.indexOf(ue)<0&&St.call(mt,ue)&&(zt[ue]=mt[ue]);return zt},ye=(mt,mn,zt)=>new Promise((ue,ie)=>{var re=ae=>{try{pe(zt.next(ae))}catch(me){ie(me)}},oe=ae=>{try{pe(zt.throw(ae))}catch(me){ie(me)}},pe=ae=>ae.done?ue(ae.value):Promise.resolve(ae.value).then(re,oe);pe((zt=zt.apply(mt,mn)).next())});function vt(mt){return/^\d+$/.test(mt)?`${mt}px`:mt}function Ht(){}let $t=!1;const Fe={"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 pt(mt=[]){let mn=mt;if(Array.isArray(mt)){for(let zt=0;zt<mt.length;zt++){let ue=Fe[mt[zt]];if(ue)return ue}return mn[0]}return Fe[mn]||mn}let ut=null;const Yt=()=>ye(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(mt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",mt)}});var bt=mt=>{var mn=mt,{width:zt="100%",height:ue="100%",value:ie,language:re="javascript",style:oe={},options:pe={},overrideServices:ae={},theme:me="vs-dark",onEditBlur:Ze,isCopy:Ot=!1,onSave:at,autoHeight:qe=!1,forbidCopy:yt=!1,forbidCopyTips:Ft,onChange:jt=Ht,editorDidMount:Xe=Ht,onFocus:tt=Ht,onBreakPoint:Gt=Ht,breakPointValue:un=[],filename:wn="educoder.txt",errorLine:gn,errorContent:Rt="",highlightLine:Ut,openBreakPoint:At=!1,placeholder:Je="",showMiniMap:Pt=!0}=mn,nn=Se(mn,["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 pn=(0,y.useRef)(),nt=(0,y.useRef)({}),Nt=(0,y.useRef)(),qt=(0,y.useRef)(),wt=(0,y.useRef)([]),Wt=(0,y.useRef)(!1),en=(0,y.useRef)(),_n=(0,y.useRef)(),Un=(0,y.useRef)(!1),[On,Vn]=(0,y.useState)(!1);function Zt(){let Dn;return pn.current&&(Dn=new ve.Z(Zn=>{for(let fr of Zn)(fr.target.offsetHeight>0||fr.target.offsetWidth>0)&&nt.current.instance.layout()}),Dn.observe(pn.current)),Dn}function Xt(){Ve.ZP.warning({content:decodeURIComponent(Ft||Te),key:"monaco-editor-tip"})}const an=()=>{let Dn=nt.current.instance;if(ie!=null&&Dn&&On){const Zn=Dn.getModel();Zn&&ie!==Zn.getValue()&&($t=!0,Zn.setValue(ie),Dn.layout(),$t=!1)}};(0,y.useEffect)(()=>{const Dn=gt.Z.subscribe("formatDocument",Zn=>{var fr;let ur=nt.current.instance;(fr=ur==null?void 0:ur.getAction)==null||fr.call(ur,"editor.action.formatDocument").run()});return window.updateMonacoValue=Zn=>{jt(Zn)},Dn},[]),(0,y.useEffect)(()=>{var Dn;let Zn=nt.current.instance;qt.current&&clearTimeout(qt.current),qt.current=setTimeout(()=>{an()},500),ie&&(ie!=null&&ie.length)&&((Dn=Zn==null?void 0:Zn.updateOptions)==null||Dn.call(Zn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[ie,On,nt.current]),(0,y.useEffect)(()=>{if(gn&&nt.current&&nt.current.instance){let Zn=nt.current.instance;Zn.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=Rt,fr.addZone({afterLineNumber:gn||11,heightInLines:3,domNode:ur})});var Dn={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}};Zn.addOverlayWidget(Dn),Zn.revealPositionInCenter({lineNumber:20,column:1})}},[gn,nt.current,On]);const xn=(Dn="",Zn)=>{if(!Dn||Dn.trim()==="")return!0;const ur=nt.current.instance.getModel().getLineTokens(Zn);let Mt=!1;for(let Vt=0;Vt<2;Vt++)ur.getStandardTokenType(Vt)===1&&(Mt=!0);return Mt};(0,y.useEffect)(()=>{var Dn;const Zn=(Dn=nt.current)==null?void 0:Dn.instance;if(Zn&&On&&yt){const fr=Zn.onDidBlurEditorWidget(()=>{Un.current=!1}),ur=Zn.onDidFocusEditorText(()=>{Un.current=!0});return()=>{fr.dispose(),ur.dispose()}}},[nt.current,On,yt]),(0,y.useEffect)(()=>{var Dn;if((Dn=nt.current)!=null&&Dn.instance&&On&&At){let Zn=nt.current.instance,fr=Zn.getModel();if(!fr)return;(()=>{var _t;let Tt=[],Kt=[];const Fn=fr.getAllDecorations();for(let Gn of Fn)Gn.options.className==="highlighted-line"&&(Tt.push((_t=Gn==null?void 0:Gn.range)==null?void 0:_t.startLineNumber),Kt.push(Gn==null?void 0:Gn.id));if(Ut===Tt[0])return;fr.deltaDecorations(Kt,[]);const Hn=fr.getLineCount();Ut&&Ut<=Hn&&(Zn.deltaDecorations([],[{range:new ut.Range(Ut,1,Ut,fr.getLineMaxColumn(Ut)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Zn.revealLineInCenter(Ut))})();const Mt=(_t=!1)=>{var Tt;let Kt=[],Fn=[];const Hn=fr.getAllDecorations();for(let Gn of Hn)Gn.options.linesDecorationsClassName==="breakpoints-select"&&(Kt.push((Tt=Gn==null?void 0:Gn.range)==null?void 0:Tt.startLineNumber),Fn.push(Gn==null?void 0:Gn.id));if(_t)return{lines:Kt,ids:Fn};Gt(Kt)},Vt=_t=>ye(void 0,null,function*(){let Tt={range:new ut.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield fr.deltaDecorations([],[Tt]),Mt()}),ft=_t=>ye(void 0,null,function*(){let Tt=[];const Kt=Zn.getLineDecorations(_t);for(let Fn of Kt)Fn.options.linesDecorationsClassName==="breakpoints-select"&&Tt.push(Fn.id);yield fr.deltaDecorations(Tt,[]),Mt()}),kt=_t=>{let Tt=Zn.getLineDecorations(_t);for(let Kt of Tt)if(Kt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,xt.isEqual)(un,Mt(!0).lines)){fr.deltaDecorations(Mt(!0).ids,[]);const _t=un.map(Tt=>({range:new ut.Range(Tt,1,Tt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));fr.deltaDecorations([],_t)}const it=Zn.onDidChangeModelContent(_t=>{let Tt=Zn.getPosition();if(Tt){let Kt=Tt.lineNumber;clearTimeout(_n.current),_n.current=setTimeout(()=>{xn(fr.getLineContent(Kt),Kt)?ft(Kt):kt(Kt)?(ft(Kt),Vt(Kt)):Mt()},100)}}),ht=Zn.onMouseDown(_t=>{var Tt,Kt,Fn;if(_t.target.detail&&((Fn=(Kt=(Tt=_t.target)==null?void 0:Tt.element)==null?void 0:Kt.className)!=null&&Fn.includes("line-numbers"))){let Hn=_t.target.position.lineNumber;if(xn(fr.getLineContent(Hn),Hn))return;kt(Hn)?ft(Hn):Vt(Hn)}}),cn=_t=>{let Tt={range:new ut.Range(_t,1,_t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};wt.current=Zn.deltaDecorations(wt.current,[Tt])},ar=()=>{wt.current=Zn.deltaDecorations(wt.current,[])},mr=Zn.onMouseMove(_t=>{var Tt,Kt,Fn;if(ar(),_t.target.detail&&((Fn=(Kt=(Tt=_t.target)==null?void 0:Tt.element)==null?void 0:Kt.className)!=null&&Fn.includes("line-numbers"))){let Hn=_t.target.position.lineNumber;if(xn(fr.getLineContent(Hn),Hn))return;cn(Hn)}}),It=Zn.onMouseLeave(()=>{ar()});return()=>{it.dispose(),ht.dispose(),mr.dispose(),It.dispose()}}},[nt.current,On,un,Ut,At,re]),(0,y.useEffect)(()=>{var Dn;(Dn=nt.current)!=null&&Dn.instance&&At&&nt.current.instance.setPosition({lineNumber:0,column:0})},[Ut]);function ln(){let Dn=nt.current.instance;if(Dn){const Zn=Dn.getSelection(),fr=nt.current.pastePos||{},ur=new ut.Range(fr.startLineNumber||Zn.endLineNumber,fr.startColumn||Zn.endColumn,fr.endLineNumber||Zn.endLineNumber,fr.endColumn||Zn.endColumn);setTimeout(()=>{Dn.executeEdits("",[{range:ur,text:""}])},300)}}function Pn(Dn){(window.navigator.platform.match("Mac")?Dn.metaKey:Dn.ctrlKey)&&Dn.keyCode==83&&(Dn.preventDefault(),at())}const Sn=()=>{if(qe&&nt.current.instance){const Dn=nt.current.instance.getContentHeight();Vr(Dn<ue?ue:Dn)}else Vr(ue)};function Rn(Dn){var Zn=document.createEvent("MouseEvents");Zn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Dn.dispatchEvent(Zn)}const Er=Dn=>{if(!Un.current)return;const{keyCode:Zn,ctrlKey:fr,metaKey:ur,target:Mt,type:Vt}=Dn;return(Vt==="paste"||(Zn===67||Zn===86)&&(ur||fr))&&Mt.nodeName==="TEXTAREA"&&(Xt(),Dn.preventDefault()),!1};function Jn(Dn,Zn){var fr=window.URL||window.webkitURL||window,ur=new Blob([Zn]),Mt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mt.href=fr.createObjectURL(ur),Mt.download=Dn,Rn(Mt)}(0,y.useEffect)(()=>{Sn()},[Sn]),(0,y.useEffect)(()=>{pn.current&&!On&&Promise.all([E.e(8909),E.e(1859)]).then(E.bind(E,71448)).then(Dn=>{try{ut=Dn,nt.current.instance=ut.editor.create(pn.current,{value:ie,language:pt(re),theme:me,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Pt||!1}},ae);const Zn=nt.current.instance;let Mt=[...Ae.BH._menuItems].find(it=>it[0]._debugName=="EditorContext")[1],Vt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ft=(it,ht)=>{var cn,ar;let mr=it._first;do ht.includes((ar=(cn=mr.element)==null?void 0:cn.command)==null?void 0:ar.id)&&it._remove(mr);while(mr=mr.next)};if(Xe(Zn,ut),setTimeout(()=>{Sn(),nt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Jn(wn||"educoder.txt",Zn.getValue())}})},500),nt.current.subscription=Zn.onDidChangeModelContent(it=>{Wt.current?clearTimeout(en.current):(Sn(),jt(Zn.getValue(),it)),en.current=setTimeout(()=>{Wt.current=!1},500)}),window.Monaco||Ke(ut,pt(re)),yt&&(ft(Mt,Vt),pn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Er),window.removeEventListener("paste",Er),window.addEventListener("keydown",Er),window.addEventListener("paste",Er)),window.Monaco=ut,Ze&&Zn.onDidBlurEditorWidget(()=>{Ze(Zn.getValue())}),tt&&Zn.onDidFocusEditorText(()=>{yt&&Yt(),tt(Zn.getValue())}),yt){Yt();try{Zn.onDidPaste(it=>{const ht=Zn.getSelection(),cn=nt.current.pastePos||{},ar=new ut.Range(cn.startLineNumber||ht.endLineNumber,cn.startColumn||ht.endColumn,cn.endLineNumber||ht.endLineNumber,cn.endColumn||ht.endColumn);Zn.executeEdits("",[{range:it.range,text:""}])})}catch(it){}}let kt=Zt();return Je&&typeof Je=="string"&&new Oe(Je,Zn,ut),Vn(!0),()=>{const it=nt.current.instance;it.dispose();const ht=it.getModel();ht&&ht.dispose(),nt.current.subscription&&nt.current.subscription.dispose(),kt.unobserve(pn.current)}}catch(Zn){}})},[]),(0,y.useEffect)(()=>{if(nt.current.instance&&On)return document.addEventListener("keydown",Pn,!1),()=>{document.removeEventListener("keydown",Pn)}},[at,On]),(0,y.useEffect)(()=>{let Dn=nt.current.instance;if(Dn&&On){let Zn=pt(re);ut.editor.setModelLanguage(Dn.getModel(),Zn)}},[re,On]),(0,y.useEffect)(()=>{nt.current.instance&&On&&ut.editor.setTheme(me)},[me,On]),(0,y.useEffect)(()=>{let Dn=nt.current.instance;Nt.current=pe,Dn&&On&&(Dn.updateOptions(ze({},pe)),setTimeout(()=>{Dn.getModel().updateOptions(ze({},pe))},200))},[JSON.stringify(pe),On]),(0,y.useEffect)(()=>{let Dn=nt.current.instance;Dn&&On&&Dn.layout()},[zt,ue,On]);const[dr,yr]=(0,y.useState)(vt(zt)),[gr,Vr]=(0,y.useState)(vt(ue)),Zr=st(ze({},oe),{width:dr,height:gr,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:pn,style:Zr,onFocus:()=>{yt&&Yt()}},Ot&&y.createElement(lt.CopyToClipboard,{text:ie,onCopy:()=>Ve.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement(Ye.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 Ct({width:mt="100%",height:mn="100%",original:zt,modified:ue,language:ie,options:re={}}){const oe=(0,y.useRef)(),[pe,ae]=(0,y.useState)(null);function me(qe){let yt;return oe.current&&(yt=new ve.Z(Ft=>{for(let jt of Ft)(jt.target.offsetHeight>0||jt.target.offsetWidth>0)&&qe.layout()}),yt.observe(oe.current)),yt}(0,y.useEffect)(()=>(oe.current&&Promise.all([E.e(8909),E.e(9404)]).then(E.bind(E,2550)).then(qe=>{ut=qe;const yt=ut.editor.createDiffEditor(oe.current,st(ze({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}));ae(yt);let Ft=me(yt);return()=>{yt.dispose();const jt=yt.getModel();jt&&jt.dispose(),Ft.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{pe&&pe.setModel({original:ut.editor.createModel(zt,ie),modified:ut.editor.createModel(ue,ie)})},[zt,ue,ie,pe]);const Ze=vt(mt),Ot=vt(mn),at={width:Ze,height:Ot};return y.createElement("div",{className:"my-diff-editor",ref:oe,style:at})}},64194:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return je}});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"},ve=E(29787),ce=E(25399),Le=E(89787),xe=E(92310),Ee=E.n(xe),Ce=E(68911),ke=E(71347),De=E(59301),je=({className:Ne,dataSource:ct=[],col:Ke=4,right:Te,bottom:we=23,precision:Ie=0,wrapWidth:Pe=1200,trackEventItems:rt,loading:Et,onRemove:Oe=()=>{},isCurrent:Ae=!0,showProgress:Ve=!1,showAlias:Ye=!1,category:xt,hiddenClick:gt})=>{const lt=Math.floor((Pe-(Ke-1)*Te)/Ke),Ue=[{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(ve.Z,{spinning:Et},De.createElement("div",{className:Ee()(y.list,Ne)},!!(ct!=null&&ct.length)&&(ct==null?void 0:ct.map((be,We)=>{var Be,de,St,Qe,ze,st,Se,ye,vt,Ht,$t,Fe,pt;const{name:ut,id:Yt,identifier:bt,featured:Ct,school_name:mt,image_url:mn,excellent:zt,is_plan:ue}=be;return De.createElement("div",{key:Yt,className:Ae&&Ve?y.wrapisCurrent:y.wrap,style:{width:lt,marginRight:(1+We)%Ke===0?0:Te+Ie,marginBottom:we}},De.createElement("a",{className:y.li,onClick:ie=>{ie.preventDefault(),ie.stopPropagation(),rt&&(0,Ce.L9)([rt]),(0,Ce.xg)(`/paths/${bt}`)}},De.createElement("div",{className:y.img},De.createElement("img",{className:y.cover,src:`${mn}`}),(Be=be==null?void 0:be.subject_tags)==null?void 0:Be.map((ie,re)=>{var oe,pe;if(re===0){const me=(oe=Ue.find(Ze=>Ze.name==ie))==null?void 0:oe.swclass;return De.createElement("span",{className:`sprite ${me} ${y.sign}`,style:{left:"-4px"}})}const ae=(pe=Ue.find(me=>me.name==ie))==null?void 0:pe.ptclass;return De.createElement("span",{className:`sprite ${ae} ${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"},(be==null?void 0:be.excellent)&&De.createElement("div",{className:y.bq},"\u5F00\u653E\u8BFE\u7A0B"),((de=be==null?void 0:be.custom_tags)==null?void 0:de.length)>0&&De.createElement(ce.Z,{title:(ze=(Qe=be==null?void 0:be.custom_tags)==null?void 0:Qe[((St=be==null?void 0:be.custom_tags)==null?void 0:St.length)-1])==null?void 0:ze.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=(Se=be==null?void 0:be.custom_tags)==null?void 0:Se[((st=be==null?void 0:be.custom_tags)==null?void 0:st.length)-1])==null?void 0:ye.tag_name))))),xt=="hide"&&(be==null?void 0:be.studying)&&Ae&&De.createElement("div",{className:`${y.movebq} user-path-items`,onClick:ie=>{ie.stopPropagation(),Oe(be)}},De.createElement("i",{className:"iconfont icon-yichu1 font12"}),De.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(xt)&&Ae&&De.createElement("div",{className:`${y.hiddenbq} user-path-items`,onClick:ie=>{ie.stopPropagation(),gt(be)}},De.createElement("i",{className:`iconfont ${xt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),De.createElement("span",null,xt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),De.createElement("div",{className:y.name},De.createElement(ce.Z,{title:Ye&&(be!=null&&be.excellent_alias_name)?De.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ut}`,De.createElement("br",null),De.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${be==null?void 0:be.excellent_alias_name}`)):ut},De.createElement("span",{className:y.e},Ye&&(be==null?void 0:be.excellent_alias_name)||ut))),Ae&&Ve&&((vt=be==null?void 0:be.progress)==null?void 0:vt.all_score)!=0&&De.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},De.createElement(Le.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ht=be==null?void 0:be.progress)==null?void 0:Ht.my_score)/(($t=be==null?void 0:be.progress)==null?void 0:$t.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Fe=be==null?void 0:be.progress)==null?void 0:Fe.my_score,"/",(pt=be==null?void 0:be.progress)==null?void 0:pt.all_score),(!Ae||!Ve)&&De.createElement(ce.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${mt}`},De.createElement("div",{className:y.unit},De.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),mt)),(!Ae||!Ve)&&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,be.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,be.members_count)))))))})),!ct.length&&De.createElement(ke.Z,null)))}},29596:function(Mn,Jt,E){"use strict";E.d(Jt,{jL:function(){return Le},w9:function(){return ye},QD:function(){return un},cQ:function(){return We.Z},op:function(){return yt},O5:function(){return Zt},_b:function(){return Je},t7:function(){return Ie},Gi:function(){return ut},YG:function(){return Fe},qp:function(){return fe},vr:function(){return Rt},qE:function(){return Xe},Je:function(){return Et},wb:function(){return be},cq:function(){return zt},tp:function(){return ct}});var y=E(59301),ve={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"},Le=({dataSource:Xt=[],img:an,imgWidth:xn=346,title:ln,sunTitle:Pn,bannerExtraContent:Sn})=>y.createElement("div",{className:ve.banner},y.createElement("div",{className:ve.content},y.createElement("aside",null,y.createElement("p",null,y.createElement("b",null,ln),y.createElement("span",null,Pn)),Xt.length>0&&y.createElement("div",{className:ve.btns},Xt.map((Rn,Er)=>y.createElement("div",{key:Er,onClick:Rn.click},Rn.name,Rn.sign?y.createElement("span",{className:"sprite sprite-33"}):null))),Sn),an&&y.createElement("img",{style:{marginTop:33,marginRight:38},src:an,width:xn}))),xe={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:Xt=[],value:an,onChange:xn,onTitleChange:ln,className:Pn,title:Sn,titleWidth:Rn=41,style:Er={},fontColor:Jn="#6A7283",showCount:dr})=>{const[yr,gr]=(0,y.useState)(1),[Vr,Zr]=(0,y.useState)(!1),Dn=(0,y.useRef)(null),Zn=(0,y.useRef)(null);return(0,y.useEffect)(()=>{var fr;Xt.length!==0&&(((fr=Dn==null?void 0:Dn.current)==null?void 0:fr.clientHeight)>97?gr(1):gr(0)),Xt.length===0&&gr(0),Zr(!1)},[Xt]),y.createElement("div",{className:Ce()(xe.row,Pn,"fadeIn","animated"),style:Er},y.createElement("div",{onClick:(0,ke.throttle)(()=>ln==null?void 0:ln(),2e3),style:{width:Rn,marginTop:Vr?12:4},className:`${xe.title} ${ln?"current":""}`},Sn),y.createElement("div",{className:Vr?`${xe.tagsWrap} ${xe.tagsBorderWrap}`:xe.tagsWrap},y.createElement("div",{className:xe.bar,ref:Zn,style:yr>0?{height:yr===1?97:"auto",overflow:yr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},y.createElement("div",{className:xe.tag,ref:Dn},Xt==null?void 0:Xt.map(fr=>y.createElement("span",{onClick:()=>xn(fr.id),key:fr.id,style:{color:Jn},className:an===fr.id?xe.active:""},y.createElement("span",{title:fr.name,className:xe.name},fr.name),!!dr&&y.createElement("span",{className:xe.num},fr.count))))),!!yr&&y.createElement(y.Fragment,null,yr===1?y.createElement("div",{onClick:()=>{var fr;gr(2),((fr=Dn==null?void 0:Dn.current)==null?void 0:fr.clientHeight)>245?Zr(!0):Zr(!1)},className:xe.action},"\u5C55\u5F00",y.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):y.createElement("div",{onClick:()=>{Zn.current.scrollTop=0,gr(1),Zr(!1)},className:xe.action},"\u6536\u8D77",y.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ct=({dataSource:Xt=[],value:an,onChange:xn,className:ln,style:Pn={}})=>y.createElement("div",{style:Pn,className:Ce()(je.tabs,ln)},Xt.map(Sn=>y.createElement("span",{onClick:()=>xn(Sn.id),className:an===Sn.id?je.active:"",key:Sn.id},Sn.name))),Ke={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"},Te=E(37568),Ie=({dataSource:Xt=[],value:an="",onChange:xn,onInputChange:ln=()=>{},className:Pn,style:Sn={},placeholder:Rn,allowClear:Er=!1})=>{var Jn;const[dr,yr]=(0,y.useState)(""),[gr,Vr]=(0,y.useState)("");(0,y.useEffect)(()=>{var Zn;let fr=an;(Zn=JSON.stringify(an))!=null&&Zn.includes("{")&&(yr(an.id),fr=an.value||"");try{Vr(decodeURIComponent(fr||""))}catch(ur){Vr(decodeURIComponent(fr||""))}},[an]);const Zr=()=>{xn(encodeURIComponent(gr),dr||null)},Dn=Zn=>{Zn!==dr&&(yr(Zn),xn(encodeURIComponent(gr),Zn))};return y.createElement("div",{className:Ce()(Ke.input,Pn),style:Sn},!!Xt.length&&y.createElement("div",{className:Ke.dropdown},y.createElement("div",{className:Ke.text},(Jn=Xt.find(Zn=>Zn.id===dr))==null?void 0:Jn.name,y.createElement("i",{className:"iconfont icon-zhankai4"}),y.createElement("b",{className:Ke.b1}),y.createElement("b",{className:Ke.b2})),y.createElement("div",{className:Ke.menu},Xt.map((Zn,fr)=>y.createElement("div",{key:fr,onClick:()=>Dn(Zn.id)},Zn.name)))),y.createElement(Te.default,{onPressEnter:Zr,value:gr,onChange:Zn=>{Vr(Zn.target.value),ln(encodeURIComponent(Zn.target.value),dr||null)},placeholder:Rn,variant:"borderless",allowClear:Er,onClear:()=>xn("",dr||null)}),y.createElement("i",{onClick:Zr,className:"iconfont icon-sousuo9 font14 current"}))},Pe={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"},Et=({value:Xt,onChange:an,className:xn,total:ln,pageSize:Pn,style:Sn={}})=>{const Rn=Xt<2,Er=Xt>=Math.ceil(ln/Pn);return ln<=Pn?y.createElement(y.Fragment,null):y.createElement("div",{className:Ce()(Pe.quickPager,xn),style:Sn},y.createElement("div",{onClick:()=>{Rn||an(Xt-1,"prev")},className:Rn?Pe.disabled:""},"\u4E0A\u4E00\u9875"),y.createElement("div",{onClick:()=>{Er||an(Xt+1,"next")},className:Er?Pe.disabled:""},"\u4E0B\u4E00\u9875"))},Oe={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"},Ae=E(29787),Ve=E(25399),Ye=E(63139),xt=E(35783),gt=E(68911),lt=E(71347),be=({className:Xt,dataSource:an=[],col:xn=4,right:ln,bottom:Pn=23,precision:Sn=0,wrapWidth:Rn=1200,trackEventItems:Er,loading:Jn})=>{const dr=Math.floor((Rn-(xn-1)*ln)/xn);return y.createElement(Ae.Z,{spinning:Jn},y.createElement("div",{className:Ce()(Oe.list,Xt)},!!an.length&&an.map((yr,gr)=>{const{name:Vr,id:Zr,identifier:Dn,power:Zn,cover_image_id:fr,pic:ur}=yr;return y.createElement("div",{className:Oe.wrap,key:Zr,style:{width:dr,marginRight:(1+gr)%xn===0?0:ln+Sn,marginBottom:Pn}},y.createElement("a",{target:"_blank",href:`/shixuns/${Dn}/challenges`,className:Oe.li,onClick:Mt=>{Mt.preventDefault(),Er&&(0,gt.L9)([Er]),Zn&&(0,gt.xg)(`/shixuns/${Dn}/challenges`)}},y.createElement("div",{className:Oe.img},y.createElement("img",{className:Oe.cover,src:`${ur}`}),yr.is_jupyter&&y.createElement("span",{className:`sprite sprite-43 ${Oe.sign}`}),yr.is_jupyter_lab&&y.createElement("span",{className:`sprite sprite-42 ${Oe.sign}`}),yr.is_unity_3d&&y.createElement("span",{className:`sprite sprite-44 ${Oe.sign}`})),y.createElement("div",{className:Oe.name},y.createElement(Ve.Z,{title:Vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},y.createElement("span",{className:Oe.e},Vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),y.createElement("div",{className:Oe.tags},y.createElement(Ve.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),y.createElement("span",null,yr.challenges_count))),!!yr.myshixuns_count&&y.createElement(Ve.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,yr.myshixuns_count))),y.createElement(Ve.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},y.createElement("span",null,y.createElement("span",null,yr.level))),y.createElement("div",{className:Oe.rate},y.createElement(Ye.Z,{allowHalf:!0,disabled:!0,defaultValue:yr.score_info}),y.createElement("span",null,"\xA0",yr.score_info?`${yr.score_info}\u5206`:"5\u5206")))),!Zn&&y.createElement("div",{className:Oe.lockWrap},y.createElement("img",{src:`${xt.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")))}),!an.length&&y.createElement(lt.Z,null)))},We=E(64194),Be={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),St=E(96599),Qe="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",ze=E(59301),st=(Xt,an,xn)=>new Promise((ln,Pn)=>{var Sn=Jn=>{try{Er(xn.next(Jn))}catch(dr){Pn(dr)}},Rn=Jn=>{try{Er(xn.throw(Jn))}catch(dr){Pn(dr)}},Er=Jn=>Jn.done?ln(Jn.value):Promise.resolve(Jn.value).then(Sn,Rn);Er((xn=xn.apply(Xt,an)).next())}),ye=({className:Xt,dataSource:an=[],col:xn=4,right:ln,bottom:Pn=23,precision:Sn=0,wrapWidth:Rn=1200,trackEventItems:Er,loading:Jn,category:dr,hiddenClick:yr,handleVery:gr=()=>!0,isCurrent:Vr})=>{const[Zr,Dn]=de.default.useModal(),Zn=Math.floor((Rn-(xn-1)*ln)/xn),fr=ur=>st(void 0,null,function*(){Zr.confirm({title:"\u7F6E\u9876",width:500,content:ze.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",ze.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 ze.createElement(Ae.Z,{spinning:Jn},Dn,ze.createElement("div",{className:Ce()(Be.list,Xt)},!!an.length&&an.map((ur,Mt)=>{const{subject_identifier:Vt,id:ft,identifier:kt,power:it}=ur,ht=ur.is_public!=0&&ur.is_public;return ze.createElement("div",{className:Be.wrap,key:ft,style:{width:Zn,marginRight:(1+Mt)%xn===0?0:ln+Sn,marginBottom:Pn}},ur.homepage_show&&ze.createElement("div",{className:Be.btnsTop},ze.createElement(St.default,{color:"red"},"\u7F6E\u9876")),ze.createElement("a",{className:Be.li,onClick:cn=>{cn.preventDefault(),gr(ur==null?void 0:ur.first_category_url)&&(Er&&(0,gt.L9)([Er]),(0,gt.xg)(ur.first_category_url))}},ze.createElement("div",{className:Be.top},ze.createElement(Ve.Z,{title:ur.name},ze.createElement("div",{className:Be.name},ur.name)),ze.createElement("img",{className:Be.img,src:xt.Z.IMG_SERVER+"/images/"+ur.avatar_url}),ze.createElement("div",{className:Be.text,title:ur.creator},ur.creator),Vt&&ze.createElement("div",{className:Be.btns},ze.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ze.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),ht&&ze.createElement("div",{className:Be.sign},"\u516C\u5F00"),Vr&&ze.createElement("div",{className:Be.hidden,onClick:cn=>{cn.stopPropagation(),yr(ur)}},ze.createElement("i",{className:`iconfont ${dr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),dr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),ze.createElement("div",{className:Be.bottom},ur.visits>0&&ze.createElement(Ve.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-liulanyan"}),ze.createElement("span",null,ur.visits))),ur.course_members_count>0&&ze.createElement(Ve.Z,{title:"\u6210\u5458",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-chengyuan"}),ur.course_members_count)),ur.tasks_count>0&&ze.createElement(Ve.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-zuoye"}),ur.tasks_count)),ur.is_end?ze.createElement("div",{style:{color:"#6B758B"}}):ze.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ur.is_accessible&&ze.createElement("div",{className:Be.lockWrap},ze.createElement("img",{src:`${xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ze.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!an.length&&ze.createElement(lt.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(63823),Fe=({dataSource:Xt=[],value:an,onChange:xn,className:ln,style:Pn={},tabBarExtraContent:Sn})=>y.createElement("div",{className:Ce()(vt.tabs,ln),style:Pn},y.createElement("div",{className:vt.tabsWrap},Xt.map((Rn,Er)=>!(Rn!=null&&Rn.hide)&&y.createElement("aside",{className:vt.tab,onClick:()=>{xn(Rn.id),Rn.link&&Ht.history.push(Rn.link)},key:Er},y.createElement("div",{className:an===Rn.id?vt.active:""},Rn.name),(Rn==null?void 0:Rn.resetCount)==null&&(Rn==null?void 0:Rn.total)!==void 0&&y.createElement("span",null,"\uFF08",Rn==null?void 0:Rn.total,"\uFF09"),(Rn==null?void 0:Rn.resetCount)!==void 0&&(Rn==null?void 0:Rn.total)!==void 0&&y.createElement(Ve.Z,{title:(Rn==null?void 0:Rn.tip)!=null?Rn==null?void 0:Rn.tip:""},y.createElement("span",{style:{color:"#9096A3"}},"\uFF08",y.createElement("span",{style:{color:"#000"}},Rn==null?void 0:Rn.resetCount),"/",y.createElement("span",null,Rn==null?void 0:Rn.total),"\uFF09"))))),y.createElement("div",{className:vt.tabBar},Sn)),ut=({className:Xt,style:an={},children:xn})=>y.createElement("div",{className:Ce()(Xt),style:an},xn),Yt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},bt=E(75727),Ct=E(93041);const mt=[{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:Xt,dropValue:an,className:xn,onSort:ln,onDrop:Pn,dataSource:Sn=mt})=>{var Rn;return y.createElement("div",{className:Ce()(Yt.orderWrap,xn)},y.createElement(bt.Z,{dropdownRender:()=>y.createElement(Ct.default,null,Sn.map((Er,Jn)=>y.createElement(Ct.default.Item,{key:Jn,onClick:()=>Pn(Er.id)},Er.name)))},y.createElement("span",{className:Yt.orderTextWrap},(Rn=Sn.find(Er=>an===Er.id))==null?void 0:Rn.name)),y.createElement("span",{className:Yt.orderIconWrap},y.createElement("span",{className:Yt.orderAsc},y.createElement("i",{className:Xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Yt.cursorPointer} ${Yt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Yt.cursorPointer}`,onClick:()=>ln(Xt==="asc"?"desc":"asc")})),y.createElement("span",{className:Yt.orderDesc},y.createElement("i",{className:Xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Yt.cursorPointer} ${Yt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Yt.cursorPointer}`,onClick:()=>ln(Xt==="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"},ie=E(7939),re=Object.defineProperty,oe=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,me=(Xt,an,xn)=>an in Xt?re(Xt,an,{enumerable:!0,configurable:!0,writable:!0,value:xn}):Xt[an]=xn,Ze=(Xt,an)=>{for(var xn in an||(an={}))pe.call(an,xn)&&me(Xt,xn,an[xn]);if(oe)for(var xn of oe(an))ae.call(an,xn)&&me(Xt,xn,an[xn]);return Xt},Ot=(Xt,an)=>{var xn={};for(var ln in Xt)pe.call(Xt,ln)&&an.indexOf(ln)<0&&(xn[ln]=Xt[ln]);if(Xt!=null&&oe)for(var ln of oe(Xt))an.indexOf(ln)<0&&ae.call(Xt,ln)&&(xn[ln]=Xt[ln]);return xn},at=(Xt,an,xn)=>new Promise((ln,Pn)=>{var Sn=Jn=>{try{Er(xn.next(Jn))}catch(dr){Pn(dr)}},Rn=Jn=>{try{Er(xn.throw(Jn))}catch(dr){Pn(dr)}},Er=Jn=>Jn.done?ln(Jn.value):Promise.resolve(Jn.value).then(Sn,Rn);Er((xn=xn.apply(Xt,an)).next())}),yt=Xt=>{var an=Xt,{className:xn,style:ln,children:Pn,loading:Sn=!1,openLoading:Rn,onClick:Er=()=>{},size:Jn="middle",shape:dr="round"}=an,yr=Ot(an,["className","style","children","loading","openLoading","onClick","size","shape"]);const[gr,Vr]=(0,y.useState)(!1);return y.createElement(ie.ZP,Ze({onClick:(0,ke.throttle)(Zr=>at(void 0,null,function*(){Rn&&Vr(!0);try{yield Er(Zr)}catch(Dn){console.log("error",Dn)}Rn&&Vr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ce()(ue.btn,ue[`${Jn}-${dr}`],xn),style:ln,size:Jn,shape:dr,loading:gr||Sn},yr),Pn)},Ft={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"},Xe=({className:Xt,style:an,children:xn=null,onClick:ln,title:Pn})=>y.createElement("div",{className:Ce()(Ft.head,Xt),style:an},y.createElement("span",{className:"primary-hover",onClick:ln},y.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),y.createElement("b",{title:Pn},Pn),y.createElement("div",{className:Ft.node},xn)),tt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},un=({confirmShow:Xt=!0,confirmTitle:an,confirmClick:xn,cancelShow:ln=!0,cancelTitle:Pn,cancelClick:Sn,className:Rn,style:Er,confirmLoading:Jn=!1})=>y.createElement("div",{className:Ce()(tt.btns,Rn),style:Er},Xt&&y.createElement(ie.ZP,{loading:Jn,onClick:xn,type:"primary",className:tt.confirm},an),ln&&y.createElement(ie.ZP,{onClick:Sn,className:tt.cancel},Pn)),wn={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"},Rt=({className:Xt,style:an={},LeftContent:xn,children:ln,RightContent:Pn})=>y.createElement("div",{className:Ce()(wn.fixedBottom,Xt),style:an},y.createElement("div",{className:wn.wrap},y.createElement("div",{className:wn.left},xn),y.createElement("div",{className:wn.center},ln),y.createElement("div",{className:wn.right},Pn))),Ut={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"},Je=({className:Xt,style:an={},dataSource:xn=[]})=>y.createElement("div",{className:Ce()(Ut.crumbs,Xt),style:an},xn.map((ln,Pn)=>Pn<xn.length-1?y.createElement(y.Fragment,{key:Pn},ln.path||ln.onClick?y.createElement("span",{className:Ut.hover,onClick:ln!=null&&ln.onClick?ln.onClick:()=>Ht.history.push(ln.path)},ln.name):y.createElement("span",null,ln.name),y.createElement("span",null,"\xA0",">","\xA0")):y.createElement("span",{key:Pn,style:{color:"#5F6368"}},ln.name))),Pt=E(11938),nn=Object.defineProperty,pn=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Wt=(Xt,an,xn)=>an in Xt?nn(Xt,an,{enumerable:!0,configurable:!0,writable:!0,value:xn}):Xt[an]=xn,en=(Xt,an)=>{for(var xn in an||(an={}))qt.call(an,xn)&&Wt(Xt,xn,an[xn]);if(Nt)for(var xn of Nt(an))wt.call(an,xn)&&Wt(Xt,xn,an[xn]);return Xt},_n=(Xt,an)=>pn(Xt,nt(an)),Un=(Xt,an)=>{var xn={};for(var ln in Xt)qt.call(Xt,ln)&&an.indexOf(ln)<0&&(xn[ln]=Xt[ln]);if(Xt!=null&&Nt)for(var ln of Nt(Xt))an.indexOf(ln)<0&&wt.call(Xt,ln)&&(xn[ln]=Xt[ln]);return xn};const{Countdown:On}=Pt.default;var Zt=Xt=>{var an=Xt,{onChange:xn}=an,ln=Un(an,["onChange"]);const[Pn,Sn]=(0,y.useState)(null);(0,y.useEffect)(()=>{typeof Pn=="number"&&Pn>=0&&xn(Pn)},[Pn]);const Rn=Er=>{const Jn=Math.floor(Er/1e3);Sn(Jn)};return y.createElement(On,_n(en({},ln),{onChange:Rn}))}},2408:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ve}});var y=E(59301);function ve(ce,Le){const xe=(0,y.useRef)();(0,y.useEffect)(()=>{xe.current=ce}),(0,y.useEffect)(()=>{function Ee(){xe.current()}if(Le!==null){let Ce=setInterval(Ee,Le);return()=>clearInterval(Ce)}},[Le])}},28002:function(Mn,Jt,E){"use strict";E.d(Jt,{i:function(){return Oe},q:function(){return Et}});var y=E(59301),ve={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),Le=E.n(ce),xe=E(25399),Ee=E(82326),Ce=E(7939),ke=E(22972),De=Object.defineProperty,fe=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Te=(Ae,Ve,Ye)=>Ve in Ae?De(Ae,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Ae[Ve]=Ye,we=(Ae,Ve)=>{for(var Ye in Ve||(Ve={}))ct.call(Ve,Ye)&&Te(Ae,Ye,Ve[Ye]);if(Ne)for(var Ye of Ne(Ve))Ke.call(Ve,Ye)&&Te(Ae,Ye,Ve[Ye]);return Ae},Ie=(Ae,Ve)=>fe(Ae,je(Ve)),Pe=(Ae,Ve)=>{var Ye={};for(var xt in Ae)ct.call(Ae,xt)&&Ve.indexOf(xt)<0&&(Ye[xt]=Ae[xt]);if(Ae!=null&&Ne)for(var xt of Ne(Ae))Ve.indexOf(xt)<0&&Ke.call(Ae,xt)&&(Ye[xt]=Ae[xt]);return Ye},rt=(Ae,Ve,Ye)=>new Promise((xt,gt)=>{var lt=We=>{try{be(Ye.next(We))}catch(Be){gt(Be)}},Ue=We=>{try{be(Ye.throw(We))}catch(Be){gt(Be)}},be=We=>We.done?xt(We.value):Promise.resolve(We.value).then(lt,Ue);be((Ye=Ye.apply(Ae,Ve)).next())});const Et=Ae=>{var Ve=Ae,{wrapClassName:Ye,wrapStyle:xt={},showLinkButton:gt=!0,tooltipTitle:lt="",loadGeneral:Ue=!1,data:be={}}=Ve,We=Pe(Ve,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const Be="course_disciplines_list",[de,St]=(0,y.useState)(()=>{const vt=sessionStorage.getItem(Be);return vt?JSON.parse(vt):[]}),[Qe,ze]=(0,y.useState)(!1),[st,Se]=(0,y.useState)(!0);(0,y.useEffect)(()=>{ye()},[]);const ye=()=>rt(void 0,null,function*(){var vt,Ht,$t,Fe;ze(!0);const pt=yield(0,ke.U2)("v2/course_disciplines.json",be);if(pt.status===0){const ut=((Ht=(vt=pt==null?void 0:pt.data)==null?void 0:vt.list)==null?void 0:Ht.map(Yt=>({value:Yt.id,label:Yt.name})))||[];if(St(ut),Se(!1),sessionStorage.setItem(Be,JSON.stringify(ut)),st){const Yt=(Fe=($t=pt==null?void 0:pt.data)==null?void 0:$t.list)==null?void 0:Fe.find(bt=>bt.is_default);Ue&&Yt&&We.onChange(Yt==null?void 0:Yt.id)}}ze(!1)});return y.createElement("div",{className:Le()(ve.singleSelect,Ye),style:xt},y.createElement(xe.Z,{title:lt},y.createElement(Ee.default,we({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:Qe,options:de,onDropdownVisibleChange:vt=>{vt&&ye()}},We))),gt&&y.createElement(Ce.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},Oe=Ae=>{var Ve=Ae,{wrapClassName:Ye,wrapStyle:xt={},showLinkButton:gt=!0,courseDisciplineId:lt="",isPlusHeight:Ue=!1,tooltipTitle:be,allowAcceptEmpty:We=!1,data:Be={}}=Ve,de=Pe(Ve,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[St,Qe]=(0,y.useState)([]),[ze,st]=(0,y.useState)(!1);(0,y.useEffect)(()=>{Se()},[lt]);const Se=()=>rt(void 0,null,function*(){var ye,vt;if(!We&&!lt){Qe([]);return}st(!0);const Ht=yield(0,ke.U2)(`v2/course_disciplines/${lt||"all"}.json`,Be);if(Ht.status===0){const $t=((vt=(ye=Ht==null?void 0:Ht.data)==null?void 0:ye.tag_disciplines)==null?void 0:vt.map(Fe=>({value:Fe.id,label:Fe.name})))||[];$t.length&&Qe($t)}st(!1)});return y.createElement("div",{className:Le()(ve.multipleSelect,Ye),style:xt},y.createElement(xe.Z,{title:be},y.createElement(Ee.default,Ie(we({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:ze,options:St,maxTagCount:"responsive",onDropdownVisibleChange:ye=>{ye&&Se()}},de),{className:Le()(de.className,Ue&&ve.plus)}))),gt&&y.createElement(Ce.ZP,{className:ve.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},21667:function(Mn,Jt,E){"use strict";E.d(Jt,{h:function(){return y}});var y=(ve=>(ve[ve.NOMATCH=-1]="NOMATCH",ve[ve.OK=0]="OK",ve[ve.TIMEOUT=2]="TIMEOUT",ve[ve.PODFAILURE=3]="PODFAILURE",ve[ve.COMPILEFAILURE=4]="COMPILEFAILURE",ve[ve.EXECUTEFAILURE=5]="EXECUTEFAILURE",ve[ve.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ve))(y||{})},10084:function(Mn,Jt,E){"use strict";E.d(Jt,{H7:function(){return Te},MK:function(){return Ke},MU:function(){return fe},X6:function(){return Ne},bM:function(){return De},fi:function(){return we},fu:function(){return ke},n4:function(){return Ie},rX:function(){return ct},vl:function(){return Pe},zO:function(){return je}});var y=E(22972),ve=Object.defineProperty,ce=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ee=(rt,Et,Oe)=>Et in rt?ve(rt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):rt[Et]=Oe,Ce=(rt,Et)=>{for(var Oe in Et||(Et={}))Le.call(Et,Oe)&&Ee(rt,Oe,Et[Oe]);if(ce)for(var Oe of ce(Et))xe.call(Et,Oe)&&Ee(rt,Oe,Et[Oe]);return rt};function ke(rt,Et){return(0,y.U2)(`myproblems/${rt}.json`,Ce({hidePopLogin:!0},Et||{}))}function De(rt,Et){return(0,y.v_)(`myproblems/${rt}/code_submit.json`,Et)}function fe(rt,Et){return(0,y.v_)(`myproblems/${rt}/code_debug.json`,Et)}function je(rt,Et){return Et.language&&(Et.language=encodeURIComponent(Et.language)),(0,y.U2)(`myproblems/${rt}/submit_records.json`,Et)}function Ne(rt){return(0,y.U2)("myproblems/record_detail.json",{id:rt})}function ct(rt,Et){return(0,y.U2)(`myproblems/${rt}/result.json`,{mode:Et})}function Ke(rt,Et){return(0,y.v_)(`myproblems/${rt}/add_notes.json`,Et)}function Te(rt,Et){return(0,y.v_)(`myproblems/${rt}/restore_initial_code.json`,Et)}function we(rt){return(0,y.v_)(`myproblems/${rt}/sync_code.json`)}function Ie(rt,Et){return(0,y.v_)(`myproblems/${rt}/update_code.json`,Et)}function Pe(rt,Et){return(0,y.v_)(`discusses/${rt}/plus.json`,Et)}},26931:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return si}});var y=E(59301),ve={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),Le=E(25399),xe=E(7939),Ee=E(62957),Ce=E(4875),ke=E(6767),De=E(37568),fe=E(37285),je=E(62673),Ne=E(37639),ct=E(77019),Ke=E(5269),Te=E(31709),we=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,Et=(Bt,Qt,rn)=>Qt in Bt?we(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,Oe=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))Pe.call(Qt,rn)&&Et(Bt,rn,Qt[rn]);if(Ie)for(var rn of Ie(Qt))rt.call(Qt,rn)&&Et(Bt,rn,Qt[rn]);return Bt};const Ae=Bt=>React.createElement("svg",Oe({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),React.createElement("title",null,"\u7F16\u7EC4 6"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E4E6FD",width:34,height:34,rx:10}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M13.808 11.448a.558.558 0 0 1 0 .788l-1.564 1.565a.558.558 0 1 1-.789-.79l1.564-1.563a.558.558 0 0 1 .79 0Zm9.882 2.462a.558.558 0 0 1-.789 0l-1.564-1.563a.558.558 0 1 1 .789-.789l1.564 1.564a.556.556 0 0 1 0 .788Z",fill:"#6678EB"}),React.createElement("path",{d:"M21.753 21.707a5.937 5.937 0 1 0-8.58.015l-.937.936a.558.558 0 1 0 .789.788l.995-.994a5.91 5.91 0 0 0 3.436 1.095c1.287 0 2.48-.41 3.452-1.106l.992.992a.558.558 0 1 0 .789-.789l-.936-.937Z",fill:"#6678EB"}),React.createElement("path",{d:"m20.858 18.95-3.024-1.745v-2.054a.558.558 0 1 0-1.117 0v2.351c0 .064.011.126.031.184a.551.551 0 0 0 .258.33l3.293 1.9a.557.557 0 0 0 .559-.966Z",fill:"#FFF"}))));var Ve="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",Ye=E(56375),xt=E(63823),gt=E(68911),lt=E(22972),Ue=Object.defineProperty,be=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,de=(Bt,Qt,rn)=>Qt in Bt?Ue(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,St=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))We.call(Qt,rn)&&de(Bt,rn,Qt[rn]);if(be)for(var rn of be(Qt))Be.call(Qt,rn)&&de(Bt,rn,Qt[rn]);return Bt};const Qe=Bt=>React.createElement("svg",St({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),React.createElement("title",null,"\u7F16\u7EC4 12"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{width:34,height:34,rx:10,fill:"#EAF3F4"}),React.createElement("path",{d:"M25.905 15.37a.775.775 0 0 0-.626-.529l-4.814-.7-2.152-4.362a.776.776 0 0 0-1.392 0l-2.153 4.363-4.814.699a.775.775 0 0 0-.43 1.323l3.484 3.396-.823 4.794a.777.777 0 0 0 1.126.818l4.306-2.264 4.305 2.264a.778.778 0 0 0 .817-.059.777.777 0 0 0 .31-.759l-.823-4.794 3.483-3.396a.777.777 0 0 0 .196-.795Z",fill:"#21C0A6",fillRule:"nonzero"})));var ze="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",st=Object.defineProperty,Se=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ht=(Bt,Qt,rn)=>Qt in Bt?st(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,$t=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))ye.call(Qt,rn)&&Ht(Bt,rn,Qt[rn]);if(Se)for(var rn of Se(Qt))vt.call(Qt,rn)&&Ht(Bt,rn,Qt[rn]);return Bt};const Fe=Bt=>React.createElement("svg",$t({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},Bt),React.createElement("title",null,"\u9898\u76EE"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"#E7F3FF",width:34,height:34,rx:10}),React.createElement("g",{fill:"#4C6FFF",fillRule:"nonzero"},React.createElement("path",{d:"m23.719 13.325-4.098-3.94c-.097-.13-.225-.162-.355-.162-.129 0-.258.064-.387.161l-7.55 7.753c-.065.065-.098.162-.13.227l-1.032 5.427c-.033.194.032.323.16.484.13.13.227.162.389.162h.096l4.776-1.099c.097-.032.194-.064.258-.161l7.841-8.108c.194-.162.194-.517.033-.744h-.001Zm-8.1 8.044a.534.534 0 0 1-.386.162.56.56 0 0 1-.388-.162l-3-2.81c-.226-.194-.226-.517-.033-.743.194-.227.517-.227.743-.033l3 2.811c.259.226.291.55.065.776ZM17 22.92h6.844v1.055H17z"}))));var pt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",ut=E(11961),Yt=E(32862),bt=E(86793),Ct={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"},mt=E(59301),mn=Object.defineProperty,zt=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,pe=(Bt,Qt,rn)=>Qt in Bt?mn(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,ae=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))re.call(Qt,rn)&&pe(Bt,rn,Qt[rn]);if(ie)for(var rn of ie(Qt))oe.call(Qt,rn)&&pe(Bt,rn,Qt[rn]);return Bt},me=(Bt,Qt)=>zt(Bt,ue(Qt)),Ze=(Bt,Qt)=>{var rn={};for(var In in Bt)re.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&ie)for(var In of ie(Bt))Qt.indexOf(In)<0&&oe.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const Ot=null,at=(Bt,Qt)=>{var rn=Bt,{globalSetting:In,loading:Va,dispatch:zr,isEdit:qn,editData:pr}=rn,Fr=Ze(rn,["globalSetting","loading","dispatch","isEdit","editData"]);const[aa,Wr]=(0,y.useState)(""),[or,ha]=(0,y.useState)(""),[fa,Nr]=(0,y.useState)([]),[Fa,ja]=(0,y.useState)(""),[ua,cr]=(0,y.useState)(),[Yr,ui]=(0,y.useState)(!1),[ba,ca]=(0,y.useState)({}),[ra,Aa]=(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);Aa(bo),ui(!1)},[Yr]),(0,y.useImperativeHandle)(Qt,()=>({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,gt.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)},_l=(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:Ct.modal,onOk:()=>{Po[Gr]=Po[Gr].filter((Eo,yl)=>yl!==bo),Nr(Po)}})},Tl=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:Ct.modal,onOk:()=>{let bo=fa.slice();bo=fa.filter((Po,Eo)=>Gr!==Eo),Nr(bo)}})};return mt.createElement("section",{className:Ct.wrap},mt.createElement("p",{className:Ct.titleWrap},mt.createElement("span",{className:Ct.required},"*"),mt.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),mt.createElement("div",null,mt.createElement(Yt.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,[""]])})),mt.createElement("div",{className:"mt20 flex flex-col gap-10px"},fa.map((Gr,bo)=>mt.createElement("div",{style:{display:"flex"}},mt.createElement("div",{style:{flex:1}},mt.createElement(bt.Z,{key:bo,answers:Gr,index:bo,flex:1,is_md:!0,activeOptionErrorIndex:Fa,onAnswerChange:Xl,addChildAnswer:Oi,deleteChildAnswer:_l,deleteChildAnswermain:Tl})),ba.use_blank_score&&mt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},mt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",mt.createElement(Ce.Z,{style:{width:"100px"},size:"large",defaultValue:ra[bo],onBlur:Po=>{ra[bo]=Po.target.value,Aa([...ra])}}))))),mt.createElement(xe.ZP,{className:"mt20",onClick:()=>Nr(Gr=>[...Gr,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),mt.createElement("div",null,mt.createElement(je.default,{className:`${Ct.color333} font14 mt20`,checked:ba.use_blank_score,onChange:Gr=>ca(me(ae({},ba),{use_blank_score:Gr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),mt.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")),mt.createElement("div",null,mt.createElement(je.default,{className:`${Ct.color333} font14 mt20`,checked:ba.downcase,onChange:Gr=>ca(me(ae({},ba),{downcase:Gr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),mt.createElement("div",null,mt.createElement(je.default,{className:`${Ct.color333} font14 mt20`,checked:ba.no_space,onChange:Gr=>ca(me(ae({},ba),{no_space:Gr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),mt.createElement("div",{className:"mt20"},(fa==null?void 0:fa.length)>1&&mt.createElement("span",null,mt.createElement(je.default,{checked:ua,onChange:Gr=>cr(Gr.target.checked),className:`${Ct.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),mt.createElement("span",{className:`${Ct.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"))),mt.createElement("p",{className:Ct.titleWrap},mt.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),mt.createElement(Yt.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 qe=(0,xt.connect)(({loading:Bt,globalSetting:Qt})=>({globalSetting:Qt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(at)),yt=E(47889),Ft=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,tt=(Bt,Qt)=>{var rn={};for(var In in Bt)jt.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&Ft)for(var In of Ft(Bt))Qt.indexOf(In)<0&&Xe.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const Gt=null,un=(Bt,Qt)=>{var rn=Bt,{globalSetting:In,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,Fa]=(0,y.useState)("");(0,y.useEffect)(()=>{if(!zr||!Fr)return;fa(zr==null?void 0:zr.name),Fa(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)(Qt,()=>({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(""),Fa(""),or("")};return y.createElement("section",{className:Ct.wrap},y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),y.createElement(Yt.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:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:Ct.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:`${Ct.radio} mr40`},"\u6B63\u786E"),y.createElement(yt.ZP.Button,{value:"1",className:Ct.radio},"\u9519\u8BEF")),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Yt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:Nr,onChange:cr=>Fa(cr)}))};var wn=(0,xt.connect)(({loading:Bt,globalSetting:Qt})=>({globalSetting:Qt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(un)),gn=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,At=(Bt,Qt)=>{var rn={};for(var In in Bt)Rt.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&gn)for(var In of gn(Bt))Qt.indexOf(In)<0&&Ut.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const Je=null,Pt=(Bt,Qt)=>{var rn=Bt,{globalSetting:In,loading:Va,editData:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=At(rn,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]);(0,y.useEffect)(()=>{var Fa;if(!zr||!Fr)return;const ja=(Fa=zr==null?void 0:zr.shixun)==null?void 0:Fa.challenges.map(ua=>({id:ua==null?void 0:ua.id,score:ua.score}));or(ja)},[zr]),(0,y.useImperativeHandle)(Qt,()=>({onSave:ha,Clear:fa}));const ha=()=>({challenges:[...Wr]}),fa=()=>{or([])};console.log("editData--",zr);const Nr=Fa=>{var ja,ua;return y.createElement("div",null,(ua=(ja=Fa==null?void 0:Fa.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(Le.Z,{key:Yr,title:cr==null?void 0:cr.challenge_name},y.createElement("span",null,(0,gt.Pq)(cr==null?void 0:cr.challenge_name,44)))),y.createElement("p",{style:{marginBottom:0}},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u5206\u503C\uFF1A"),y.createElement(Ce.Z,{precision:1,min:1,max:100,className:Ct.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:Ct.wrap},y.createElement(Ye.Z,{style:{paddingRight:10},className:Ct.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:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u5173\u5361")),Nr(zr))};var nn=(0,xt.connect)(({loading:Bt,globalSetting:Qt})=>({globalSetting:Qt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Pt)),pn=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,qt=(Bt,Qt)=>{var rn={};for(var In in Bt)nt.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&pn)for(var In of pn(Bt))Qt.indexOf(In)<0&&Nt.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const wt=["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=(Bt,Qt)=>{var rn=Bt,{editData:In,globalSetting:Va,loading:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=qt(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)(),[Nr,Fa]=(0,y.useState)([]),[ja,ua]=(0,y.useState)(""),[cr,Yr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!In||!Fr)return;ua(In==null?void 0:In.name),Yr(In==null?void 0:In.analysis),or(In==null?void 0:In.choices.map(ra=>ra.choice_text));const ca=[];In==null||In.choices.map((ra,Aa)=>{ra.is_answer&&ca.push(Aa)}),Fa(ca)},[In]),(0,y.useImperativeHandle)(Qt,()=>({onSave:ui,Clear:ba}));const ui=()=>{if(!ja)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ca=Wr.findIndex(Aa=>!Aa);if(ca>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${wt[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((Aa,ao)=>({choice_text:Aa,is_answer:Nr.includes(ao)?1:0}));return{name:ja,choices:ra,analysis:cr}},ba=()=>{or(["","","",""]),ua(""),Yr(""),Fa("")};return y.createElement("section",{className:Ct.wrap},y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),y.createElement(Yt.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:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:Ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Wr.map((ca,ra)=>y.createElement("div",{className:Ct.choiceWrap,key:ra},y.createElement(Le.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${Ct.answer} ${Nr.includes(ra)?Ct.activeAnswer:""}`,onClick:()=>{Nr.includes(ra)?Fa(Nr.filter(Aa=>Aa!==ra)):Fa([...Nr,ra])}},wt[ra])),y.createElement("div",{className:Ct.editorWrap},ha===ra?y.createElement(Yt.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ca,onChange:Aa=>{Wr[ra]=Aa,or(Wr)}}):y.createElement("div",{className:Ct.htmlWrap,onClick:()=>fa(ra)},y.createElement(Ye.Z,{value:ca}))),ra>1&&y.createElement(Le.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${Ct.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(Wr.filter((Aa,ao)=>ao!==ra)),Nr.includes(ra)?Fa(Nr.filter(Aa=>Aa!==ra)):Fa([...Nr,ra])}})),ra<14&&ra===Wr.length-1&&y.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${Ct.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...Wr,""])})))),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Yt.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 en=(0,xt.connect)(({loading:Bt,globalSetting:Qt})=>({globalSetting:Qt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Wt)),_n=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Vn=(Bt,Qt)=>{var rn={};for(var In in Bt)Un.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&_n)for(var In of _n(Bt))Qt.indexOf(In)<0&&On.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const Zt=["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"],Xt=(Bt,Qt)=>{var rn=Bt,{editData:In,globalSetting:Va,loading:zr,dispatch:qn,onRef:pr=()=>{},isEdit:Fr}=rn,aa=Vn(rn,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)(),[Nr,Fa]=(0,y.useState)(),[ja,ua]=(0,y.useState)(""),[cr,Yr]=(0,y.useState)("");(0,y.useEffect)(()=>{or(["","","",""])},[]),(0,y.useEffect)(()=>{if(!In||!Fr)return;const ca=[],ra=[];In==null||In.choices.forEach((Aa,ao)=>{ca.push(Aa.choice_text),Aa.is_answer&&ra.push(ao)}),ua(In==null?void 0:In.name),Yr(In==null?void 0:In.analysis),or(ca),Fa(ra)},[In]),(0,y.useImperativeHandle)(Qt,()=>({onSave:ui,Clear:ba}));const ui=()=>{if(!ja)return ke.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const ca=Wr.findIndex(Aa=>!Aa);if(ca>-1)return ke.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Zt[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((Aa,ao)=>({choice_text:Aa,is_answer:Nr.includes(ao)?1:0}));return{name:ja,choices:ra,analysis:cr}},ba=()=>{or(["","","",""]),ua(""),Yr(""),Fa("")};return y.createElement("section",{className:Ct.wrap},y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),y.createElement(Yt.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:Ct.titleWrap},y.createElement("span",{className:Ct.required},"*"),y.createElement("span",{className:Ct.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:Ct.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),Wr.map((ca,ra)=>y.createElement("div",{className:Ct.choiceWrap,key:ra},y.createElement(Le.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${Ct.answer} ${Nr!=null&&Nr.includes(ra)?Ct.activeAnswer:""}`,onClick:()=>Fa([ra])},Zt[ra])),y.createElement("div",{className:Ct.editorWrap},ha===ra?y.createElement(Yt.Z,{id:`single-question-option-${ra}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ca,onChange:Aa=>{Wr[ra]=Aa,or(Wr)}}):y.createElement("div",{className:Ct.htmlWrap,onClick:()=>fa(ra)},y.createElement(Ye.Z,{value:ca}))),ra>1&&y.createElement(Le.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${Ct.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{or(Wr.filter((Aa,ao)=>ao!==ra)),ra===Nr&&Fa(null)}})),ra<14&&ra===Wr.length-1&&y.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${Ct.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>or([...Wr,""])})))),y.createElement("p",{className:Ct.titleWrap},y.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Yt.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 an=(0,xt.connect)(({loading:Bt,globalSetting:Qt})=>({globalSetting:Qt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Xt)),xn=E(96599),ln=E(58755),Pn=E(61485),Sn=E(59301),Rn=Object.defineProperty,Er=Object.defineProperties,Jn=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,Vr=(Bt,Qt,rn)=>Qt in Bt?Rn(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,Zr=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))yr.call(Qt,rn)&&Vr(Bt,rn,Qt[rn]);if(dr)for(var rn of dr(Qt))gr.call(Qt,rn)&&Vr(Bt,rn,Qt[rn]);return Bt},Dn=(Bt,Qt)=>Er(Bt,Jn(Qt)),Zn=(Bt,Qt)=>{var rn={};for(var In in Bt)yr.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&dr)for(var In of dr(Bt))Qt.indexOf(In)<0&&gr.call(Bt,In)&&(rn[In]=Bt[In]);return rn},fr=(Bt,Qt,rn)=>new Promise((In,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?In(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Bt,Qt)).next())});const ur=Bt=>{if(!Bt)return!1;if(/^s*$/.test(Bt)||Bt.trim()===""){ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Qt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Bt==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Mt=({value:Bt=[],onClose:Qt})=>Sn.createElement(xn.default,{closable:!0,onClose:Qt,className:Ct.keywordTag},Sn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Bt.join(" \u6216 "))),Vt=(Bt,Qt)=>{var rn=Bt,{editData:In,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,Fa]=(0,y.useState)(""),[ja,ua]=(0,y.useState)(""),[cr]=ce.default.useForm(),Yr=ce.default.useWatch("use_keywords",cr);(0,y.useEffect)(()=>{var ra;!In||!Fr||(or(In==null?void 0:In.name),fa(In==null?void 0:In.analysis),Fa((ra=In==null?void 0:In.answer_texts)==null?void 0:ra[0]),cr.setFieldsValue(Zr({},In)))},[In]),(0,y.useImperativeHandle)(Qt,()=>({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(Aa){ke.ZP.error(Aa.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(""),Fa(""),cr.resetFields()},ca=In==null?void 0:In.score;return Sn.createElement("section",{className:Ct.wrap},Sn.createElement("p",{className:Ct.titleWrap},Sn.createElement("span",{className:Ct.required},"*"),Sn.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),Sn.createElement(Yt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Wr,onChange:ra=>or(ra)}),Sn.createElement("p",{className:Ct.titleWrap},Sn.createElement("span",{className:Ct.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),Sn.createElement(Yt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:Nr,onChange:ra=>Fa(ra)}),Sn.createElement("p",{className:Ct.titleWrap},Sn.createElement("span",{className:Ct.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),Sn.createElement(Yt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:ha,onChange:ra=>fa(ra)}),Sn.createElement(ce.default,{form:cr,size:"large",onFinishFailed:ra=>fr(void 0,null,function*(){var Aa,ao;ke.ZP.error(ra.errorFields[0].errors[0]),cr.scrollToField((ao=(Aa=ra==null?void 0:ra.errorFields)==null?void 0:Aa[0])==null?void 0:ao.name,{behavior:"smooth",block:"center"})})},Sn.createElement(ct.Z,{align:"middle",className:"mb30 mt20"},Sn.createElement(ce.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},Sn.createElement(ln.Z,null)),Sn.createElement(Ke.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),Sn.createElement(Ke.Z,null,Sn.createElement(Le.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"},Sn.createElement(Pn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Yr&&Sn.createElement(ce.default.List,{name:"keywords",rules:[{validator(ra,Aa){return Aa!=null&&Aa.length?(Aa==null?void 0:Aa.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:Aa,remove:ao})=>Sn.createElement(Sn.Fragment,null,Sn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),Sn.createElement(ct.Z,{align:"middle",className:"font14 mb30"},Sn.createElement(Ke.Z,{flex:1},Sn.createElement(De.default,{value:ja,onChange:qo=>{ua(qo.target.value)},maxLength:50,allowClear:!0,onPressEnter:qo=>{var Ko,Xl,Oi,_l;const Tl=`${(Ko=qo.target)==null?void 0:Ko.value}`,Gr=(Oi=(Xl=Tl==null?void 0:Tl.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=((_l=bo==null?void 0:bo.map(Eo=>Eo==null?void 0:Eo.keyword))==null?void 0:_l.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(Tl)&&(Aa({keyword:Gr,score:1}),ua(""))},className:Ct.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"})),Sn.createElement(Ke.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,_l=Zn(Ko,["key","name"]);return Sn.createElement(ct.Z,{key:Xl,style:{marginRight:148}},Sn.createElement(Ke.Z,{flex:1},Sn.createElement(ct.Z,{align:"middle",justify:"space-between"},Sn.createElement(ce.default.Item,Dn(Zr({},_l),{name:[Oi,"keyword"]}),Sn.createElement(Mt,{onClose:()=>ao(Oi)})),Sn.createElement(ce.default.Item,Dn(Zr({},_l),{name:[Oi,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Sn.createElement(Ce.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var ft=(0,xt.connect)(({loading:Bt,globalSetting:Qt})=>({globalSetting:Qt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Vt)),kt=E(8848),it={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"},ht=E(32134),cn=E(12893),ar=Object.defineProperty,mr=Object.defineProperties,It=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,Fn=(Bt,Qt,rn)=>Qt in Bt?ar(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,Hn=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))Tt.call(Qt,rn)&&Fn(Bt,rn,Qt[rn]);if(_t)for(var rn of _t(Qt))Kt.call(Qt,rn)&&Fn(Bt,rn,Qt[rn]);return Bt},Gn=(Bt,Qt)=>mr(Bt,It(Qt)),jn=(Bt,Qt)=>{var rn={};for(var In in Bt)Tt.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&_t)for(var In of _t(Bt))Qt.indexOf(In)<0&&Kt.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const hr=Bt=>{var Qt=Bt,{value:rn,onChange:In,scrollId:Va}=Qt,zr=jn(Qt,["value","onChange","scrollId"]);return y.createElement("div",{id:Va||""},y.createElement(Yt.Z,Gn(Hn({},zr),{defaultValue:rn,onChange:(qn,pr)=>{pr!=null&&pr.length?In(qn,pr):In(qn)}})))},Pr=({value:Bt,onChange:Qt,placeholder:rn,height:In=140,isEdit:Va})=>Va?y.createElement(Yt.Z,{watch:!0,isFocus:!0,height:In,placeholder:rn,defaultValue:Bt,onChange:Qt}):y.createElement("div",{style:{cursor:"pointer"}},Bt?y.createElement(Ye.Z,{className:it.inputBorder,value:Bt}):y.createElement("div",{className:`${it.inputBorder} ${it.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=(Bt,Qt,rn)=>Qt in Bt?Lr(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,Ia=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))oa.call(Qt,rn)&&xa(Bt,rn,Qt[rn]);if(Xr)for(var rn of Xr(Qt))ta.call(Qt,rn)&&xa(Bt,rn,Qt[rn]);return Bt},Ur=(Bt,Qt)=>Cr(Bt,Rr(Qt)),ya=(Bt,Qt)=>{var rn={};for(var In in Bt)oa.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&Xr)for(var In of Xr(Bt))Qt.indexOf(In)<0&&ta.call(Bt,In)&&(rn[In]=Bt[In]);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"],Pa=({value:Bt,onChange:Qt,choiceTextKey:rn,answerKey:In,index:Va,isEdit:zr,setInputActive:qn,form:pr,choiceOptionsPath:Fr,allowChangeMode:aa,showAddIcon:Wr,addItem:or,deleteItem:ha})=>{const fa=(Bt==null?void 0:Bt[In])===!0,Nr=()=>{const ja=pr.getFieldValue(Fr);pr.setFieldValue(Fr,ja.map(ua=>Ur(Ia({},ua),{[In]:!1})))},Fa=()=>{fa?Qt(Ur(Ia({},Bt),{[In]:!1})):(aa||Nr(),Qt(Ur(Ia({},Bt),{[In]:!0})))};return Tr.createElement(ct.Z,{className:it.choiceWrap,align:"middle",wrap:!1},Tr.createElement(Ke.Z,{onClick:Fa,className:`${it.choiceIndex} ${fa?it.activeAnswer:""}`},Xa[Va]),Tr.createElement(Ke.Z,{flex:1,className:`${it.editorWrap} ml15`,onClick:qn},Tr.createElement(Pr,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:zr,value:Bt==null?void 0:Bt[rn],onChange:ja=>{Qt(Ur(Ia({},Bt),{[rn]:ja}))}})),Tr.createElement(Ke.Z,{flex:"0 0 auto",className:"ml15"},Tr.createElement("div",{onClick:Fa,className:`${it.setAnswerBtn} ${fa?it.activeAnswer:""}`},fa?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),Tr.createElement(Ke.Z,{className:it.actionWrapper},Tr.createElement(Le.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},Tr.createElement(ht.Z,{className:it.addIcon,onClick:or,style:{visibility:Wr?"visible":"hidden"}})),Tr.createElement(Le.Z,{title:"\u5220\u9664"},Tr.createElement(cn.Z,{className:it.deleteIcon,onClick:ha,style:{visibility:Va>1?"visible":"hidden"}}))))},pa=({questionTitlePlaceholder:Bt,titleKey:Qt,choiceKey:rn,analysisKey:In,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:it.wrap},Tr.createElement("div",{className:it.questionTitleEditorWrap},Tr.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Qt,labelCol:{span:24},rules:[{required:!0}]},Tr.createElement(hr,{scrollId:Array.isArray(Qt)?Qt.join("_"):`${Qt}`,watch:!0,height:140,placeholder:Bt}))),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,Fa){const ja=Fa.some(cr=>cr[zr]),ua=Fa.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:Fa,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,Aa=()=>{or(ui)},ao=cr<7&&cr===Nr.length-1,qo=()=>Fa({[Va]:"",[zr]:0}),Ko=()=>ja(ba);return Tr.createElement(ce.default.Item,Ur(Ia({},ca),{key:ui,name:ba,noStyle:!0}),Tr.createElement(Pa,{choiceTextKey:Va,answerKey:zr,index:cr,isEdit:ra,setInputActive:Aa,form:Fr,choiceOptionsPath:qn,allowChangeMode:pr,showAddIcon:ao,addItem:qo,deleteItem:Ko}))}),Nr.length<15&&Tr.createElement("div",{className:`${it.addBtn} mb30`,onClick:()=>Fa({[Va]:"",[zr]:0})},"\u6DFB\u52A0\u9009\u9879"))),aa&&Tr.createElement("div",{onClick:()=>fa(!0)},Tr.createElement(ce.default.Item,{name:In,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=(Bt,Qt,rn)=>Qt in Bt?Za(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,za=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))Ya.call(Qt,rn)&&ji(Bt,rn,Qt[rn]);if(Kr)for(var rn of Kr(Qt))Mi.call(Qt,rn)&&ji(Bt,rn,Qt[rn]);return Bt},Di=(Bt,Qt)=>Sa(Bt,la(Qt)),pi=(Bt,Qt)=>{var rn={};for(var In in Bt)Ya.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&Kr)for(var In of Kr(Bt))Qt.indexOf(In)<0&&Mi.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const Wi=({value:Bt,onChange:Qt,position:rn,removeBlank:In})=>{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:it.modal,onOk:()=>{const pr=[...Bt];pr.splice(qn,1),pr.length===0?In(rn-1):Qt(pr)}})},zr=()=>{const qn=[...Bt];qn.push(""),Qt(qn)};return kr.createElement(ct.Z,{className:"ml20"},kr.createElement(Ke.Z,{flex:1},Bt==null?void 0:Bt.map((qn,pr)=>kr.createElement(ct.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=[...Bt],Wr=Fr.target.value.trim();aa[pr]=Wr,Qt(aa)}}),kr.createElement(Le.Z,{title:"\u5220\u9664"},kr.createElement(cn.Z,{className:it.deleteIcon,style:{marginLeft:15,visibility:rn===1&&pr===0?"hidden":"visible"},onClick:()=>Va(pr)})),kr.createElement(Le.Z,{title:"\u65B0\u589E\u7B54\u6848"},kr.createElement(ht.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:pr===0?"visible":"hidden"},onClick:()=>{zr()}}))))))},Ci=({value:Bt=!0,onChange:Qt})=>kr.createElement(ln.Z,{checked:!Bt,onChange:rn=>{Qt(!rn)}}),ei="\u2581",Ar=({questionTitlePlaceholder:Bt,form:Qt,name:rn,scoreByBlank:In="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=Qt.getFieldValue(["sub_item_banks",...Va]);Qt.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()},Fa=(0,y.useRef)(),ja=cr=>{Fa.current(cr),ha()},ua=(aa=(Fr=Qt.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:it.wrap},kr.createElement("div",{className:it.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:Bt,showNullButton:!0,onAddBlank:()=>{const cr=Qt.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,Fa.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 Aa=ca,{key:ao,name:qo}=Aa,Ko=pi(Aa,["key","name"]);return kr.createElement(ct.Z,{key:ao,align:"top",wrap:!1},kr.createElement(Ke.Z,{flex:"0 0 auto",className:`${it.blankIndex} pt5`},"\u586B\u7A7A\u9879",ra+1),kr.createElement(Ke.Z,{flex:1},kr.createElement(ct.Z,{align:"top",justify:"space-between",wrap:!1},kr.createElement(Ke.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}))),(Qt==null?void 0:Qt.getFieldValue(["sub_item_banks",...In]))&&kr.createElement(Ke.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:it.blankInputNumberWrapper}),kr.createElement(Ce.Z,{className:it.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(xe.ZP,{className:"mb20",onClick:()=>Nr(1,ua==null?void 0:ua.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),kr.createElement(ct.Z,{align:"middle"},kr.createElement(ce.default.Item,{name:[rn,"downcase"],valuePropName:"checked"},kr.createElement(ln.Z,null)),kr.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),kr.createElement(ct.Z,{align:"middle"},kr.createElement(ce.default.Item,{name:[rn,"no_space"],valuePropName:"checked"},kr.createElement(ln.Z,null)),kr.createElement(Ke.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ua==null?void 0:ua.length)>1&&kr.createElement(ct.Z,{align:"middle",className:(ua==null?void 0:ua.length)>1?"mb30":`${it.hide}`},kr.createElement(ce.default.Item,{name:pr},kr.createElement(Ci,null)),kr.createElement(Ke.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 Qn=Object.defineProperty,xr=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,br=(Bt,Qt,rn)=>Qt in Bt?Qn(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,Dr=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))$r.call(Qt,rn)&&br(Bt,rn,Qt[rn]);if(tr)for(var rn of tr(Qt))sa.call(Qt,rn)&&br(Bt,rn,Qt[rn]);return Bt},jr=(Bt,Qt)=>xr(Bt,Sr(Qt)),Qr=(Bt,Qt)=>{var rn={};for(var In in Bt)$r.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&tr)for(var In of tr(Bt))Qt.indexOf(In)<0&&sa.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const _a={\u6B63\u786E:"T",\u9519\u8BEF:"F"},$a=({value:Bt,onChange:Qt,form:rn,choiceKey:In})=>{const Va=(Bt==null?void 0:Bt.is_answer)===!0,zr=Bt==null?void 0:Bt.choice_text,qn=()=>{var pr;const Fr=(pr=rn==null?void 0:rn.getFieldValue(["sub_item_banks",...In]))==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",...In],Fr),Qt(jr(Dr({},Bt),{is_answer:!0}))};return y.createElement(ct.Z,{className:it.choiceWrap,align:"middle",wrap:!1},y.createElement(Ke.Z,{onClick:qn,className:`${it.choiceIndex} ${it.judgementIndex} ${Va?it.activeAnswer:""}`},_a[zr]),y.createElement(Ke.Z,{flex:1,className:`${it.editorWrap} ml15`},y.createElement("div",{className:`${it.inputBorder} ${it.placeholder} ${Va?it.activeJudgementAnswer:""}`},zr)),y.createElement(Ke.Z,{flex:"0 0 auto",className:"ml15"},y.createElement("div",{onClick:qn,className:`${it.setAnswerBtn} ${Va?it.activeAnswer:""}`},Va?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ea=({questionTitlePlaceholder:Bt,choiceKey:Qt="choices",form:rn,titleKey:In="name",analysisKey:Va="analysis"})=>{const[zr,qn]=(0,y.useState)(!1);return y.createElement("div",{className:it.wrap},y.createElement("div",{className:it.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:In,labelCol:{span:24},rules:[{required:!0}]},y.createElement(hr,{scrollId:"name",watch:!0,height:140,placeholder:Bt}))),y.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},y.createElement(ce.default.List,{name:Qt,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:Qt}))})))),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,yi=Object.defineProperties,zi=Object.getOwnPropertyDescriptors,Ui=Object.getOwnPropertySymbols,Ji=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,co=(Bt,Qt,rn)=>Qt in Bt?ai(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,No=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))Ji.call(Qt,rn)&&co(Bt,rn,Qt[rn]);if(Ui)for(var rn of Ui(Qt))Yi.call(Qt,rn)&&co(Bt,rn,Qt[rn]);return Bt},$o=(Bt,Qt)=>yi(Bt,zi(Qt)),Wo=(Bt,Qt)=>{var rn={};for(var In in Bt)Ji.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&Ui)for(var In of Ui(Bt))Qt.indexOf(In)<0&&Yi.call(Bt,In)&&(rn[In]=Bt[In]);return rn};const Da=Bt=>{var Qt=Bt,{value:rn,onChange:In}=Qt,Va=Wo(Qt,["value","onChange"]);const zr=qn=>{In([qn])};return y.createElement(Yt.Z,$o(No({},Va),{defaultValue:rn==null?void 0:rn[0],onChange:zr}))},Ii=Bt=>{if(!Bt)return!1;let Qt=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Bt==="|"?(ke.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},ri=({value:Bt=[],onClose:Qt})=>y.createElement(xn.default,{closable:!0,onClose:Qt,className:it.keywordTag},Bt==null?void 0:Bt.join(" \u6216 ")),So=({questionTitlePlaceholder:Bt,form:Qt,showKeywords:rn,isMustKeyWords:In=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",Qt),{use_keywords:Fa,score:ja}=(Nr==null?void 0:Nr[aa])||{};return console.log(Fa,ja,"itemValues"),y.createElement("div",{className:it.wrap},y.createElement("div",{className:it.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:Bt}))),y.createElement(ce.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:qn,labelCol:{span:24}},y.createElement(Da,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),rn&&!In&&y.createElement(ce.default.Item,{hidden:!0,name:Fr,valuePropName:"checked"},y.createElement(ln.Z,{defaultChecked:!0})),rn&&In&&y.createElement(ct.Z,{align:"middle",className:"mb30"},y.createElement(ce.default.Item,{name:Fr,valuePropName:"checked"},y.createElement(ln.Z,null)),y.createElement(Ke.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(Ke.Z,null,y.createElement(Le.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(Pn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Fa||!In)&&y.createElement(ce.default.List,{name:pr,rules:[{validator(ua,cr){return In?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:`${it.title} mb10`},In?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(ct.Z,{align:"middle",className:"font14 mb30"},y.createElement(Ke.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,Aa;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=Qt.getFieldValue(["sub_item_banks",...pr]),Xl=((Aa=Ko==null?void 0:Ko.map(Oi=>Oi==null?void 0:Oi.keyword))==null?void 0:Aa.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:it.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(Ke.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,Aa=Wo(ba,["key","name"]);return y.createElement(ct.Z,{key:ca,className:"mb20",style:{marginRight:148}},y.createElement(Ke.Z,{flex:1},y.createElement(ct.Z,{align:"middle",justify:"space-between"},y.createElement(ce.default.Item,$o(No({},Aa),{name:[ra,"keyword"]}),y.createElement(ri,{onClose:()=>Yr(ra)})),In&&y.createElement(ce.default.Item,$o(No({},Aa),{name:[ra,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:it.blankInputNumberWrapper}),y.createElement(Ce.Z,{className:it.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 di=E(59301),il=Object.defineProperty,$l=Object.defineProperties,Al=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,no=Object.prototype.propertyIsEnumerable,Ol=(Bt,Qt,rn)=>Qt in Bt?il(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,Ul=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))Yo.call(Qt,rn)&&Ol(Bt,rn,Qt[rn]);if(Vo)for(var rn of Vo(Qt))no.call(Qt,rn)&&Ol(Bt,rn,Qt[rn]);return Bt},Nl=(Bt,Qt)=>$l(Bt,Al(Qt)),Io=(Bt,Qt)=>{var rn={};for(var In in Bt)Yo.call(Bt,In)&&Qt.indexOf(In)<0&&(rn[In]=Bt[In]);if(Bt!=null&&Vo)for(var In of Vo(Bt))Qt.indexOf(In)<0&&no.call(Bt,In)&&(rn[In]=Bt[In]);return rn},es=(Bt,Qt,rn)=>new Promise((In,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?In(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Bt,Qt)).next())});const{Panel:as}=kt.default,Ni=null,Qi=(Bt,Qt)=>{var rn=Bt,{globalSetting:In,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)(Qt,()=>({onSave:Fa,Clear:ja}));const Fa=()=>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})=>di.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},ba),[Yr,ui]=(0,y.useState)();return di.createElement("section",{className:Ct.wrap},di.createElement("p",{className:Ct.titleWrap},di.createElement("span",{className:Ct.required},"*"),di.createElement("span",{className:Ct.title},"\u9898\u5E72\uFF1A")),di.createElement(Yt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Wr,onChange:ba=>or(ba)}),di.createElement(ce.default,{form:Nr,autoComplete:"off"},di.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 Aa=Nr.getFieldValue("sub_item_banks");return di.createElement(di.Fragment,null,di.createElement(kt.default,{className:ba.length>0?Ct.collapseWrapper:"",bordered:!1,expandIcon:({isActive:ao})=>di.createElement("i",{className:`iconfont icon-weizhankai ${ao?Ct.open:Ct.close}`,style:{fontSize:14,transition:"all .2s"}})},ba.map((ao,qo)=>{var Ko=ao,{key:Xl,name:Oi}=Ko,_l=Io(Ko,["key","name"]),Tl,Gr,bo,Po,Eo,yl,$s,Ms,eu,xs,Fs,tu;return di.createElement(as,{className:Ct.panel,forceRender:!0,header:di.createElement("div",{className:Ct.panelHeader},"\u7B2C",qo+1,"\u5C0F\u9898",di.createElement("span",null,"\uFF08",ua[(Tl=Aa==null?void 0:Aa[Oi])==null?void 0:Tl.item_type],"\uFF09")),extra:di.createElement(ct.Z,{align:"middle",onClick:cs=>cs.stopPropagation(),style:{display:"flex",alignItems:"center"}},((Gr=Aa==null?void 0:Aa[Oi])==null?void 0:Gr.item_type)=="completion"&&di.createElement(ce.default.Item,Nl(Ul({},_l),{name:[Oi,"score"],className:Ct.blankInputNumberWrapper,style:{marginBottom:0}}),((bo=Aa==null?void 0:Aa[Oi])==null?void 0:bo.item_type)=="completion"&&di.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",di.createElement(cr,{value:(Po=Aa==null?void 0:Aa[Oi])==null?void 0:Po.score}),"\u5206")),((Eo=Aa==null?void 0:Aa[Oi])==null?void 0:Eo.item_type)=="completion"&&di.createElement(di.Fragment,null,di.createElement(yt.ZP.Group,{defaultValue:(yl=Aa==null?void 0:Aa[Oi])==null?void 0:yl.use_blank_score,className:Ct.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)}}),di.createElement(Le.Z,{overlayInnerStyle:{width:460},title:di.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",di.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")},di.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:Xl},di.createElement(ce.default.Item,Nl(Ul({},_l),{name:Oi}),((($s=Aa==null?void 0:Aa[Oi])==null?void 0:$s.item_type)=="single"||((Ms=Aa==null?void 0:Aa[Oi])==null?void 0:Ms.item_type)=="multiple")&&di.createElement(pa,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((eu=Aa==null?void 0:Aa[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=Aa==null?void 0:Aa[Oi])==null?void 0:xs.item_type)=="completion"&&di.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=Aa==null?void 0:Aa[Oi])==null?void 0:Fs.item_type)=="judgement"&&di.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=Aa==null?void 0:Aa[Oi])==null?void 0:tu.item_type)=="subjective"&&di.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,xt.connect)(({loading:Bt,globalSetting:Qt})=>({globalSetting:Qt,loading:Bt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Qi)),hi=E(99050),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(29596),Jo=E(21546),vn=E(89923),yn=E(63596),Nn=E(71347),wr=E(96609),rr=({open:Bt,onCancel:Qt,onOk:rn})=>{const In=(0,Jo.g)(),[Va,zr,qn,pr]=(0,yn.U)(vn.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)(()=>{Bt&&qn({page:1,limit:10,type:0},!0).then(Nr=>{(Nr==null?void 0:Nr.shixuns_count)===0&&aa(!0)})},[Bt]);const[Wr,or]=(0,y.useState)([]),[ha,fa]=(0,y.useState)([]);return y.createElement(Ee.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:Bt,width:948,centered:!0,closable:!0,onCancel:Qt,onOk:()=>rn(ha),destroyOnClose:!0},y.createElement(ct.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(Ke.Z,null,y.createElement(Hi.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:In,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(Nn.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,gt.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,Fa)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:Fa!=null&&Fa.high_resources_consume?oo.title:"",title:Nr||"--"},y.createElement(Ye.Z,{key:1,showLines:1,showTextOnly:!0,value:Nr||"--"})),(Fa==null?void 0:Fa.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,Fa,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(Le.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(Pn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(Nr,Fa,ja)=>y.createElement("span",null,Nr||"- -")},{title:"\u64CD\u4F5C",render(Nr,Fa){const{title:ja,challenge_names:ua,author_name:cr,identifier:Yr,author_school_name:ui,study_count:ba}=Fa||{};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(Ye.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,gt.EM)(ra+1),"\u9898\xA0",ca))),y.createElement(ct.Z,{className:oo.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Ke.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(xe.ZP,{type:"primary",className:oo.btnToDetail,onClick:()=>(0,gt.xg)(`/shixuns/${Yr}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(Fa==null?void 0:Fa.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${Fa==null?void 0:Fa.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:pr==null?void 0:pr.items,rowSelection:{type:"radio",selectedRowKeys:Wr,preserveSelectedRowKeys:!0,getCheckboxProps:Nr=>({disabled:Nr.shixun_tag_num===1}),onChange(Nr,Fa){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 Fa)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,Fa){qn({page:Nr,limit:Fa})},size:"default"},scroll:{y:400}}))},ir=E(15567),kn=E(52123),er=(Bt,Qt,rn)=>new Promise((In,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?In(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Bt,Qt)).next())}),na=({visible:Bt,getdata:Qt,onCancel:rn,onRandomExchange:In,selectFromProblemSet:Va,questionParams:zr})=>{const[qn,pr]=(0,y.useState)(!1),[Fr,aa]=(0,y.useState)(!1),[Wr,or]=(0,y.useState)({}),ha=(0,xt.useParams)(),[fa,Nr]=(0,y.useState)(),Fa=(ja,ua)=>er(void 0,null,function*(){aa(!0);const cr=yield(0,lt.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(),Qt())});return y.createElement(Ee.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:Bt,onCancel:rn,centered:!0,maskClosable:!0,footer:null},y.createElement(ct.Z,{justify:"center",className:"pb20"},y.createElement(hi.Z,{onClick:In},"\u968F\u673A\u66F4\u6362"),(zr==null?void 0:zr.type)!=="PRACTICAL"&&y.createElement(xe.ZP,{style:{marginLeft:24},onClick:Va},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(zr==null?void 0:zr.type)==="PRACTICAL"&&y.createElement(xe.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?Fa(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*(){Fa(fa==null?void 0:fa[0],2)})}))},xi=E(98203),ki=E(24334),fo=E(20150),ro=E(93493),Ha=E(68798),ma=E(10102),Hr=Object.defineProperty,_i=Object.defineProperties,Li=Object.getOwnPropertyDescriptors,vo=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,go=(Bt,Qt,rn)=>Qt in Bt?Hr(Bt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:rn}):Bt[Qt]=rn,bi=(Bt,Qt)=>{for(var rn in Qt||(Qt={}))_o.call(Qt,rn)&&go(Bt,rn,Qt[rn]);if(vo)for(var rn of vo(Qt))Ai.call(Qt,rn)&&go(Bt,rn,Qt[rn]);return Bt},ga=(Bt,Qt)=>_i(Bt,Li(Qt)),vi=(Bt,Qt,rn)=>new Promise((In,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?In(Fr.value):Promise.resolve(Fr.value).then(zr,qn);pr((rn=rn.apply(Bt,Qt)).next())});const fi=({data:Bt,submit:Qt,goBack:rn,loading:In,onTypeScore:Va,editPreview:zr=!1,onSkipExamination:qn,selectValue:pr,onExchange:Fr,getdata:aa,handleMarkWrongQuestion:Wr,dispatch:or})=>{var ha,fa,Nr,Fa,ja,ua,cr,Yr,ui,ba,ca;const ra=(0,y.useRef)(),[Aa,ao]=(0,y.useState)(null),[qo,Ko]=(0,y.useState)(!1),[Xl,Oi]=(0,y.useState)(!1),_l=(0,y.useRef)(),[Tl]=ce.default.useForm(),Gr=(0,xt.useParams)(),[bo,Po]=(0,y.useState)(!1),[Eo,yl]=(0,y.useState)([]);(0,y.useEffect)(()=>{Ko(!0)},[]),(0,y.useEffect)(()=>{zr||(0,gt.Dk)("\u8BD5\u5377\u9884\u89C8")},[zr]),(0,y.useEffect)(()=>{var Wn;((Wn=Bt==null?void 0:Bt.questionList)==null?void 0:Wn.length)>0&&(Bt==null||Bt.questionList.forEach(wa=>{var Vi;wa.type==="PRACTICAL"&&((Vi=wa==null?void 0:wa.questions)==null||Vi.forEach((Ta,Ir)=>{var Zi;Eo[Ir]=!((Zi=Ta==null?void 0:Ta.shixun)!=null&&Zi.ignore_prompt),yl([...Eo])}))}))},[Bt]);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 wa;const Vi=[];return y.createElement(y.Fragment,null,y.createElement("aside",{className:ve.single},(wa=Wn==null?void 0:Wn.choices)==null?void 0:wa.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(Ye.Z,{value:Ta.choice_text})))))),y.createElement("div",{className:ve.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:ve.text},"\u89E3\u6790:"),y.createElement(Ye.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(Le.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,wa)=>{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:ve.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:ve.text},"\u89E3\u6790:"),y.createElement(Ye.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:"),`${(wa==null?void 0:wa.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:wa?wa==null?void 0:wa.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:"),wa?wa==null?void 0:wa.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name)))))},tu=Wn=>{var wa;const Vi=(wa=Wn==null?void 0:Wn.standard_answer)==null?void 0:wa.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:ve.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:ve.text},"\u89E3\u6790:"),y.createElement(Ye.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(Le.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,wa)=>{var Vi;return y.createElement("div",{className:ve.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:ve.text},"\u89E3\u6790:"),y.createElement(Ye.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:"),`${(wa==null?void 0:wa.course_discipline_name)||"--"}`),y.createElement(Le.Z,{title:wa?wa==null?void 0:wa.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:"),wa?wa==null?void 0:wa.tag_discipline_name:Wn==null?void 0:Wn.tag_discipline_name))))},Ss=Wn=>{var wa,Vi;return y.createElement("div",{className:ve.analysis},y.createElement("aside",null,y.createElement("span",{className:ve.text},"\u9884\u671F\u8F93\u51FA:"),y.createElement(Ye.Z,{value:(wa=Wn==null?void 0:Wn.program_attr)==null?void 0:wa.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:ve.text},"\u89E3\u6790:"),y.createElement(Ye.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(Le.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,wa)=>{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"}},wa+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:ve.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(Ye.Z,{value:Xi.choice_text})))))),y.createElement("div",{className:ve.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:ve.text},"\u89E3\u6790:"),y.createElement(Ye.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(Le.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=Bt==null?void 0:Bt.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(bi({},Ta),{question_id:Ta==null?void 0:Ta.id,question_score:Ta==null?void 0:Ta.score})})}}),Ta.item_type=="single"&&y.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{As({value:Ta})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Is=Wn=>{var wa,Vi,Ta;return y.createElement("div",{style:{marginTop:"12px"}},(Vi=(wa=Wn==null?void 0:Wn.shixun)==null?void 0:wa.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(Le.Z,{key:Zi,title:Ir==null?void 0:Ir.challenge_name},y.createElement("span",null,(0,gt.Pq)(Ir==null?void 0:Ir.challenge_name,44)))),zr&&y.createElement("div",null,"\u5206\u503C\uFF1A",Ir.score,"\u5206"))),y.createElement(xt.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 wa=Wn.questions_score/Wn.questions_count;Ee.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:y.createElement("div",{className:ve.modalColumn},y.createElement("div",{className:ve.modalRow,style:{justifyContent:"flex-start"}},y.createElement("sup",{className:ve.sup},"*"),y.createElement("span",null,Wn==null?void 0:Wn.name,"\uFF1A"),y.createElement(Ce.Z,{min:0,precision:1,defaultValue:wa,onChange:Vi=>{wa=Vi}}),y.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>vi(void 0,null,function*(){var Vi;if(!wa)return ke.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Ta={type:Wn==null?void 0:Wn.type,score:wa,scoreTotal:Number((Vi=wa*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:ve.modalColumn},y.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},y.createElement("img",{style:{marginRight:5},src:ut.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:ve.modalRow,style:{marginTop:20}},y.createElement("sup",{className:ve.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:wa=>{Wn=wa.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>vi(void 0,null,function*(){var wa;if(!Wn)return ke.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Vi=[],Ta=[],Ir=[],Zi=[];(wa=Bt==null?void 0:Bt.questionList)==null||wa.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 Qt({item_bank_ids:Vi,item_bank_scores:Ta,name:Wn,combination_item_banks:Ir,shixun_ids:Zi})})})},Ps=(Wn,wa,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"))_l.current={id:Wn,ids:Ki,type:wa,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:()=>vi(void 0,null,function*(){ko.update({cancelButtonProps:{disabled:!0}}),yield Fr({single_question_id:Wn,seleted_item_bank_ids:Ki},{type:wa,index:Vi}),ko.update({cancelButtonProps:{disabled:!1}}),ke.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},Rs=Wn=>{var wa;const Vi=(wa=Wn.questions)==null?void 0:wa.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:()=>vi(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:()=>vi(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,wa)=>{var Vi,Ta;if(wa==="SINGLE")return y.createElement(y.Fragment,null,y.createElement(an,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="MULTIPLE")return y.createElement(y.Fragment,null,y.createElement(en,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="JUDGMENT")return y.createElement(y.Fragment,null,y.createElement(wn,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="COMPLETION")return y.createElement(y.Fragment,null,y.createElement(qe,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="SUBJECTIVE")return y.createElement(y.Fragment,null,y.createElement(ft,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="COMBINATION")return y.createElement(y.Fragment,null,y.createElement(Pi,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null));if(wa==="BPROGRAM")return y.createElement(y.Fragment,null,y.createElement(ce.default,{form:Tl,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]),Tl.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=>vi(void 0,null,function*(){var Zi;let Ki=ga(bi({question_score:Wn.score},Ir),{question_type:8,hack:ga(bi({},Ir.hack),{difficult:Wn.program_attr.difficult}),hack_codes:ga(bi({},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,lt.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(xi.tc,{form:Tl,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(wa==="PROGRAM"&&xt.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`),wa==="PRACTICAL")return y.createElement(y.Fragment,null,y.createElement(nn,{ref:ra,editData:Wn,isEdit:!0}),y.createElement(fe.Z,null))},Cu=(Wn,wa)=>vi(void 0,null,function*(){var Vi,Ta,Ir,Zi,Ki,ko;const Xi=yield(Vi=ra.current)==null?void 0:Vi.onSave();if(!Xi)return;const dl=ci=>{const bl=ci.map(jl=>jl.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(bl).size!==bl.length},Ro={question_score:wa.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 ci=[],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)=>{ci.push(is.choice_text),is!=null&&is.is_answer&&bl.push(jl+1)}),Ro.question_choices=ci,Ro.standard_answers=bl}if(Wn==="COMPLETION"){let ci=(Ir=Xi==null?void 0:Xi.standard_answers)==null?void 0:Ir.map((jl,Re)=>Number(jl==null?void 0:jl.score)?null:Re+1).filter(jl=>jl!==null);if((ci==null?void 0:ci.length)>0)return ke.ZP.warning(`\u7B2C${ci.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,Re)=>jl+(Number(Re==null?void 0:Re.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,Re)=>{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((ci,bl)=>{var is,jl,Re;if((ci==null?void 0:ci.item_type)=="single"||(ci==null?void 0:ci.item_type)=="multiple"){if(dl(ci==null?void 0:ci.choices))throw new Error(`\u7B2C${bl+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const Me=[],Dt=[];return(is=ci==null?void 0:ci.choices)==null||is.forEach((Lt,on)=>{Me.push(Lt.choice_text),Lt!=null&&Lt.is_answer&&Dt.push(on+1)}),{id:ci.id,question_id:ci.id,question_title:ci.name,difficulty:ci.difficulty,question_type:(ci==null?void 0:ci.item_type)=="single"?0:(ci==null?void 0:ci.item_type)=="multiple"?1:2,question_choices:Me,standard_answers:Dt,analysis:ci.analysis,question_score:ci==null?void 0:ci.score}}else if((ci==null?void 0:ci.item_type)=="completion"){let Me=(jl=ci==null?void 0:ci.standard_answer)==null?void 0:jl.reduce((Lt,on)=>Lt+(Number(on==null?void 0:on.score)||0),0);if(parseFloat(Me.toFixed(2))!=(ci==null?void 0:ci.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const Dt=[];return(Re=ci==null?void 0:ci.standard_answer)==null||Re.forEach((Lt,on)=>{Dt.push({choice_id:Lt.position,answer_text:Lt.answer_text,score:Lt.score})}),{id:ci.id,question_id:ci.id,is_ordered:ci.is_ordered,question_title:ci.name,difficulty:ci.difficulty,question_type:3,standard_answers:Dt,use_blank_score:ci.use_blank_score,analysis:ci.analysis,downcase:ci==null?void 0:ci.downcase,no_space:ci==null?void 0:ci.no_space,question_score:ci==null?void 0:ci.score}}else if((ci==null?void 0:ci.item_type)=="subjective")return{id:ci.id,question_id:ci.id,question_title:ci.name,question_type:4,difficulty:ci.difficulty,answer_texts:ci==null?void 0:ci.answer_texts,analysis:ci.analysis,question_score:ci==null?void 0:ci.score,use_keywords:ci.use_keywords,keywords:ci==null?void 0:ci.keywords}})}catch(ci){ke.ZP.warning(ci.message);return}delete Ro.analysis}let ys=!1;(wa==null?void 0:wa.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,lt.ZP)(`/api/exercise_questions/${wa.id}.json`,{method:"put",body:Ro}):yield(0,lt.ZP)(`/api/exercise_questions/${wa.id}/update_shixun_score.json`,{method:"post",body:bi({},Xi)});(Xs==null?void 0:Xs.status)===0&&(ke.ZP.success("\u7F16\u8F91\u6210\u529F"),Us(pr+1),ao(null))}),ec=()=>vi(void 0,null,function*(){(0,xt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,lt.ZP)(`/api/exercises/${Gr.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield qn(pr),ke.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,xt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),As=({value:Wn}={})=>{var wa;const Vi=[];let Ta=[];const Ir=(wa=Wn==null?void 0:Wn.choices)==null?void 0:wa.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(Ye.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(je.default.Group,{className:"flex-col mt20",options:Ir,defaultValue:Ta,onChange:Ki=>{Ta=Ki}})),onOk:()=>vi(void 0,null,function*(){const Ki=yield(0,lt.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=Bt==null?void 0:Bt.questionList)==null?void 0:ha.reduce((Wn,wa)=>Wn+Number(wa.questions_score),0),xu=zr&&((fa=Bt==null?void 0:Bt.exam)==null?void 0:fa.exercise_status)!==1,ku=Wn=>vi(void 0,null,function*(){const wa=yield(0,lt.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}});(wa==null?void 0:wa.status)===0&&(or({type:"classroomList/setActionTabs",payload:{}}),ke.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Lu=(Wn,wa)=>vi(void 0,null,function*(){let Vi=yield(0,lt.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[wa]=!1,yl([...Eo]))});return y.createElement("section",{className:ve.wrap},y.createElement("div",{id:"id_left_preview",className:ve.left,onMouseEnter:Wn=>{const wa=document.getElementById("id_left_preview");wa.style.overflowY="auto"},onMouseLeave:Wn=>{const wa=document.getElementById("id_left_preview");wa.style.overflowY="hidden"}},y.createElement("div",{className:ve.title},y.createElement("div",{className:"body-overflow-initial"},y.createElement("b",null),y.createElement("span",null,"\u7B54\u9898\u5361"))),y.createElement("div",{className:ve.total},y.createElement("div",null,y.createElement("img",{src:ze}),y.createElement("span",null,"\u9898\u6570(\u9053)"),y.createElement("aside",null,Bt==null?void 0:Bt.all_questions_count)),y.createElement("div",{className:"mr30 ml30"},y.createElement("img",{src:pt}),y.createElement("span",null,"\u603B\u5206(\u5206)"),y.createElement("aside",null,ws&&ws.toFixed(1))),y.createElement("div",null,y.createElement("img",{src:Ve}),y.createElement("span",null,"\u65F6\u957F(\u5206)"),y.createElement("aside",null,((Nr=Bt==null?void 0:Bt.exam)==null?void 0:Nr.time)===-1||((Fa=Bt==null?void 0:Bt.exam)==null?void 0:Fa.time)===null?"\u4E0D\u9650":(ja=Bt==null?void 0:Bt.exam)==null?void 0:ja.time))),(ua=Bt==null?void 0:Bt.questionList)==null?void 0:ua.map((Wn,wa)=>{var Vi;return y.createElement("div",{className:ve.list,key:wa},y.createElement("div",{className:ve.name},y.createElement("b",null),y.createElement("span",null,Wn.name)),y.createElement("aside",null,y.createElement("div",null,"\u5171",y.createElement("span",{className:ve.b},Wn.questions_count),"\u9898 ",y.createElement("span",{className:ve.l},"|"),"\u5171",y.createElement("span",{className:ve.r},Wn.questions_score),"\u5206"),y.createElement("div",{className:ve.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:ve.tag},Ir+1)))))})),y.createElement("div",{className:ve.right},y.createElement("div",{className:ve.examName,id:"examName"},y.createElement("div",{className:ve.name},y.createElement(Le.Z,{title:(cr=Bt==null?void 0:Bt.exam)==null?void 0:cr.name,getPopupContainer:Wn=>Wn.parentNode},y.createElement("span",{className:ve.t},(Yr=Bt==null?void 0:Bt.exam)==null?void 0:Yr.name))),zr&&((ui=Bt==null?void 0:Bt.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(xe.ZP,{onClick:zs,type:"primary"},"\u968F\u673A\u66F4\u6362")),y.createElement("div",{className:ve.topWarp},(ba=Bt==null?void 0:Bt.questionList)==null?void 0:ba.map((Wn,wa)=>{var Vi,Ta;return y.createElement(y.Fragment,{key:wa},y.createElement("div",{className:ve.head,style:wa===0?{border:0,marginTop:-16}:{}},y.createElement("div",{className:ve.name},y.createElement("b",null),y.createElement("span",null,Wn.name)),y.createElement("div",{className:ve.so},"\u5171",y.createElement("span",{className:ve.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:ve.l},"|"),"\u5171",y.createElement("span",{className:ve.r},Wn.questions_score),"\u5206"),!zr&&y.createElement("div",{className:ve.btn},y.createElement(xe.ZP,{onClick:()=>{gs(Wn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),y.createElement(xe.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 Aa===(Ir==null?void 0:Ir.id)?y.createElement("div",{id:`Anchor_${Ir==null?void 0:Ir.id}`,className:ve.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(xe.ZP,{onClick:()=>ao(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),y.createElement(xe.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:ve.content,key:Ir==null?void 0:Ir.id},y.createElement("div",{className:ve.titleWrap},(Ir==null?void 0:Ir.item_type)==="bprogram"?y.createElement(Ye.Z,{style:{paddingRight:10},value:Zi+1+"\u3001"+((Ki=Ir==null?void 0:Ir.program_attr)==null?void 0:Ki.description)}):y.createElement(Ye.Z,{style:{paddingRight:10},className:ve.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(Ne.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:ve.btn_warp},y.createElement(xe.ZP,{size:"small",onClick:()=>Lu(Ir,Zi)},"\u5FFD\u7565"),y.createElement(xe.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(xe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,gt.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(xe.ZP,{onClick:()=>{var ys,Xs,ci;if(Aa){ke.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Tl.setFieldsValue({standard_answers:Ir==null?void 0:Ir.standard_answer,hack:bi(bi({},Ir),Ir==null?void 0:Ir.program_attr),hack_codes:ga(bi({},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:bi({},(Xs=Ir==null?void 0:Ir.hack_sets)==null?void 0:Xs[0])}),(Ir==null?void 0:Ir.item_type)=="program"?xt.history.push(`/problems/newedit/${(ci=Ir==null?void 0:Ir.program_attr)==null?void 0:ci.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(xe.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(Ye.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:ve.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(ct.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((dl=Bt==null?void 0:Bt.exam)==null?void 0:dl.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(Wn.type)&&y.createElement(Ke.Z,null,y.createElement(fo.Z,{state:Ir==null?void 0:Ir.is_wrong,onClick:()=>{Wr==null||Wr({value:ga(bi({},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(Ke.Z,null,y.createElement(ro.C,{dataSource:ga(bi({},Ir),{question_id:Ir==null?void 0:Ir.id})})),((Ro=Bt==null?void 0:Bt.exam)==null?void 0:Ro.exercise_status)===3&&["SINGLE"].includes(Wn.type)&&y.createElement(Ke.Z,null,y.createElement(xe.ZP,{style:{color:"#3061D0"},onClick:()=>{As({value:Ir})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),zr?y.createElement(Qo.vr,null,y.createElement(Te.Z,{showTotal:gt.rU,total:(ca=Bt==null?void 0:Bt.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(ct.Z,{align:"middle"},y.createElement(Ne.Z,{color:"#55575D",overlayClassName:ve.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:()=>vi(void 0,null,function*(){const Wn=Number(ws);[100,120,150].includes(Wn)||(yield new Promise((wa,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:()=>vi(void 0,null,function*(){wa("")}),onCancel:()=>{Vi()}})})),Ws()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),y.createElement(Qo.op,{shape:"default",type:"primary",onClick:()=>vi(void 0,null,function*(){const Wn=Number(ws);[100,120,150].includes(Wn)||(yield new Promise((wa,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:()=>vi(void 0,null,function*(){wa("")}),onCancel:()=>{Vi()}})})),Qt()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),y.createElement(na,{visible:Xl,questionParams:_l.current,getdata:aa,onRandomExchange:()=>vi(void 0,null,function*(){const Wn=_l.current;yield Fr({single_question_id:Wn.id,seleted_item_bank_ids:Wn.ids},{type:Wn.type,index:Wn.index}),Oi(!1)}),selectFromProblemSet:()=>{const Wn=_l.current,wa=`${location.pathname}${location.search}`;wa.includes("exercise")&&xt.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${Wn.id}&qtype=${Wn.type}&exerciseid=${Gr.categoryId}&from=${wa}`)},onCancel:()=>{Oi(!1)}}))};var si=(0,xt.connect)(({classroomList:Bt})=>({classroomList:Bt}))(fi)},83601:function(Mn,Jt,E){"use strict";E.r(Jt),E.d(Jt,{default:function(){return Jo}});var y=E(59301),ve={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),Le=E(28284),xe=E(91882),Ee=E(63823),Ce=E(67306),ke=E(29787),De=E(37568),fe=E(47889),je=E(77019),Ne=E(4875),ct=E(7939),Ke=E(22972),Te=Object.defineProperty,we=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,rt=(vn,yn,Nn)=>yn in vn?Te(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Et=(vn,yn)=>{for(var Nn in yn||(yn={}))Ie.call(yn,Nn)&&rt(vn,Nn,yn[Nn]);if(we)for(var Nn of we(yn))Pe.call(yn,Nn)&&rt(vn,Nn,yn[Nn]);return vn},Oe=(vn,yn,Nn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Nn.next(er))}catch(vr){Or(vr)}},ir=er=>{try{kn(Nn.throw(er))}catch(vr){Or(vr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Nn=Nn.apply(vn,yn)).next())});function Ae(vn){return Oe(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/edit_random_exam_new.json`,{method:"get"})})}function Ve(vn,yn){return Oe(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/update_random_exam.json`,{method:"post",body:yn})})}function Ye(vn){return Oe(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/create_random_exam.json",{method:"post",body:vn})})}function xt(vn){return Oe(this,null,function*(){return Fetch("/api/disciplines.json",{method:"get",params:vn})})}function gt(vn){return Oe(this,null,function*(){return(0,Ke.ZP)("/api/v2/course_disciplines/tag_disciplines_by_random.json",{method:"get",params:vn})})}function lt(vn){return Oe(this,null,function*(){return(0,Ke.ZP)("/api/item_banks/item_difficulty_count.json",{method:"get",params:vn})})}function Ue(vn,yn){return Oe(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/set_item_type_score.json`,{method:"post",body:yn})})}function be(vn,yn){return Oe(this,null,function*(){return(0,Ke.ZP)(`/api/exercises/${vn}/set_item_type_score.json`,{method:"post",body:yn})})}function We(vn,yn){return Oe(this,null,function*(){return(0,Ke.ZP)(`/api/examination_banks/${vn}/delete_item_type.json`,{method:"post",body:yn})})}function Be(vn,yn){return Oe(this,null,function*(){return(0,Ke.ZP)(`/api/exercises/${vn}/delete_item_type.json`,{method:"post",body:yn})})}function de(vn){return Oe(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/preview_random_questions.json",{method:"post",body:vn})})}function St(vn){return Oe(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/toggle_random_questions.json",{method:"post",body:vn})})}function Qe(vn){return Oe(this,null,function*(){return(0,Ke.ZP)("/api/examination_banks/save_question_list.json",{method:"post",body:vn})})}function ze(vn){return Oe(this,null,function*(){return(0,Ke.ZP)(`/api/exercises/${vn.categoryId}/edit.json`,{method:"get",params:Et({},vn)})})}var st=(vn=>(vn.OnlyFileFolder="1",vn.OnlyKnowledge="2",vn.OnlyDifficulty="3",vn.FileFolderAndDiff="4",vn.FileFolderAndKnowledge="5",vn.KnowledgeAndDiff="6",vn.All="7",vn.Shixun="8",vn))(st||{}),Se=E(89392),ye=Object.defineProperty,vt=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ut=(vn,yn,Nn)=>yn in vn?ye(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Yt=(vn,yn)=>{for(var Nn in yn||(yn={}))Fe.call(yn,Nn)&&ut(vn,Nn,yn[Nn]);if($t)for(var Nn of $t(yn))pt.call(yn,Nn)&&ut(vn,Nn,yn[Nn]);return vn},bt=(vn,yn)=>vt(vn,Ht(yn)),Ct=(vn=>(vn[vn.FileFolder=1]="FileFolder",vn[vn.Difficulty=2]="Difficulty",vn[vn.Knowledge=3]="Knowledge",vn))(Ct||{});const mt=(0,y.createContext)(null),mn={[st.OnlyFileFolder]:[1],[st.OnlyKnowledge]:[3],[st.OnlyDifficulty]:[2],[st.FileFolderAndDiff]:[1,2],[st.FileFolderAndKnowledge]:[1,3],[st.KnowledgeAndDiff]:[3,2],[st.All]:[3,2,1]},zt=(vn,yn)=>{if(vn.length!==yn.length)return!1;for(const Nn of yn)if(!vn.includes(Nn))return!1;return!0},ue=vn=>{for(const[yn,Nn]of Object.entries(mn))if(zt(vn,Nn))return yn},ie={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"}},oe=vn=>vn&&parseFloat(vn.toFixed(1)),pe=(vn,yn)=>{var Nn,wr,Or;switch(yn.type){case"init":return yn.payload;case"updateBaseInfo":return bt(Yt({},vn),{examination_bank:yn.payload});case"deleteQuestionType":{const{item_types:rr}=vn,ir=rr.filter(kn=>kn.item_type!==yn.payload);return vn.examination_bank.question_count=oe(ir.reduce((kn,er)=>kn+er.item_bank_count,0)),vn.examination_bank.total_score=oe(ir.reduce((kn,er)=>kn+er.total_score,0)),bt(Yt({},vn),{item_types:ir})}case"setQuestionType":{const{item_types:rr=[]}=vn,ir=rr.map(er=>er.item_type),kn=rr.filter(er=>yn.payload.includes(er.item_type));for(const er of yn.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:ie[er],random_rule_type:st.Shixun,score:0,total_score:0}):kn.push({item_type:er,contents:[],item_bank_count:0,item_type_text:ie[er],score:0,total_score:0}));return bt(Yt({},vn),{item_types:kn})}case"updateItemTypes":return bt(Yt({},vn),{item_types:yn.payload});case"deleteRule":{const rr=(0,Se.cloneDeep)(vn),ir=rr.item_types.find(er=>er.item_type===yn.payload.itemType),kn=ir.contents.find(er=>er.id===yn.payload.id&&er.is_share==yn.payload.is_share);return ir.contents=ir.contents.filter(er=>er!==kn),((Nn=ir.contents)==null?void 0:Nn.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=oe(ir.total_score),rr.examination_bank.total_score=oe(rr.examination_bank.total_score),rr.contents=ir.contents,rr}case"changeQuestionNum":{const rr=(0,Se.cloneDeep)(vn),ir=rr.item_types.find(xi=>xi.item_type===yn.payload.itemType),kn=(wr=ir==null?void 0:ir.contents)==null?void 0:wr.find(xi=>xi.id===yn.payload.id);if(yn.payload.itemType==="PRACTICAL")return yn.payload.num&&(rr.examination_bank.question_count=rr.examination_bank.question_count-ir.item_bank_count+yn.payload.num,rr.examination_bank.total_score=oe(rr.examination_bank.total_score-ir.total_score+yn.payload.num*ir.score)),yn.payload.score&&(rr.examination_bank.total_score=oe(rr.examination_bank.total_score-ir.total_score+yn.payload.num*ir.score)),ir.item_bank_count=yn.payload.num,ir.total_score=oe(ir.item_bank_count*ir.score),rr;rr.examination_bank.question_count=rr.examination_bank.question_count-(kn==null?void 0:kn.quanlity)+yn.payload.num;const er=ir.contents.find(xi=>xi.id===yn.payload.id&&xi.teacher_group_id===yn.payload.teacher_group_id);er.quanlity=yn.payload.num;let vr=0,na=0;for(const xi of ir.contents)vr+=xi==null?void 0:xi.quanlity,na+=(xi==null?void 0:xi.quanlity)*ir.score;return rr.examination_bank.total_score=oe(rr.examination_bank.total_score-ir.total_score+na),ir.item_bank_count=vr,ir.total_score=oe(na),rr}case"changeQuestionScore":{const rr=(0,Se.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type===yn.payload.itemType);return ir.score=yn.payload.score,ir.total_score=oe(ir.item_bank_count*ir.score),rr.examination_bank.total_score=oe(rr.item_types.reduce((kn,er)=>kn+er.total_score,0)),rr}case"editRule":{const rr=(0,Se.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type===yn.payload.itemType);return ir.contents=yn.payload.tableData.map(kn=>bt(Yt({},kn),{item_type:yn.payload.itemType,random_rule_type:yn.payload.randomRuleType})),ir.random_rule_type=yn.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=oe(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=oe(rr.item_types.reduce((kn,er)=>kn+er.total_score,0)),rr}case"addShixun":{const rr=(0,Se.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type==="PRACTICAL");return ir.item_banks=yn.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,Se.cloneDeep)(vn),ir=rr.item_types.find(kn=>kn.item_type==="PRACTICAL");return ir.item_banks=ir.item_banks.filter(kn=>kn.id!==yn.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=oe(ir.total_score)),rr}}};var ae=E(37829),me=E(28002),Ze=Object.defineProperty,Ot=Object.defineProperties,at=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,jt=(vn,yn,Nn)=>yn in vn?Ze(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Xe=(vn,yn)=>{for(var Nn in yn||(yn={}))yt.call(yn,Nn)&&jt(vn,Nn,yn[Nn]);if(qe)for(var Nn of qe(yn))Ft.call(yn,Nn)&&jt(vn,Nn,yn[Nn]);return vn},tt=(vn,yn)=>Ot(vn,at(yn)),Gt=(vn,yn,Nn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Nn.next(er))}catch(vr){Or(vr)}},ir=er=>{try{kn(Nn.throw(er))}catch(vr){Or(vr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Nn=Nn.apply(vn,yn)).next())}),wn=({courseOptions:vn,setCurrentKey:yn,loading:Nn,form:wr})=>{var Or;const{data:rr,disabled:ir,dispatch:kn}=(0,y.useContext)(mt),er=(0,Ee.useParams)(),vr=(0,y.useRef)(!0),[na,xi]=(0,y.useState)(!1),ki=(0,y.useMemo)(()=>{var fo,ro,Ha,ma,Hr;if(!vn.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:vr.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 vr.current=!1,tt(Xe({},rr.examination_bank),{time:Li,course_discipline_id:_i})},[rr,vn]);return(0,y.useEffect)(()=>{wr.setFieldsValue(Xe({},ki))},[ki]),y.createElement(ke.Z,{spinning:Nn,size:"large",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},y.createElement("div",{className:ve.formWrap},y.createElement(Le.default,{form:wr,autoComplete:"off",colon:!1,labelCol:{span:4},wrapperCol:{span:20},initialValues:ki||{difficulty:2,time:60},onValuesChange:(fo,ro)=>{const Ha=Xe({},ro);kn({type:"updateBaseInfo",payload:Ha})}},y.createElement(Le.default.Item,{name:"name",label:"\u8BD5\u5377\u540D\u79F0",className:ve.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:ve.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),y.createElement(Le.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:ve.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:ve.concat},"\u6CA1\u6709\u5408\u9002\u7684\u8BFE\u7A0B\uFF1F",y.createElement("a",{target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B")),y.createElement(Le.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ve.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},y.createElement(fe.ZP.Group,{disabled:ir,className:ve.radiogroup},y.createElement(fe.ZP.Button,{className:ve.easy,value:1},"\u7B80\u5355"),y.createElement(fe.ZP.Button,{className:ve.medium,value:2},"\u9002\u4E2D"),y.createElement(fe.ZP.Button,{className:ve.hard,value:3},"\u56F0\u96BE"))),y.createElement(Le.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ve.baseLineHeight},y.createElement(je.Z,{align:"middle"},y.createElement(Le.default.Item,{name:"time",noStyle:!0},y.createElement(Ne.Z,{className:ve.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(Le.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:ve.fixedBottom},y.createElement(ct.ZP,{className:`${ve.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(ct.ZP,{className:`${ve.confirmBtn} ml15`,type:"primary",size:"large",onClick:()=>Gt(void 0,null,function*(){if(yield wr.validateFields(),!er.id&&!er.coursesId){const fo=yield Ye(rr);fo.status===0&&(Ee.history.replace(`/randompaper/edit/${fo==null?void 0:fo.examination_bank_id}?type=settings`),yn("settings"))}else yn("settings")})},"\u4E0B\u4E00\u6B65")),y.createElement(ae.Z,{open:na,onCancel:()=>{xi(!1)}}))},gn=E(62957),Rt=E(5269),Ut={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"},At=E(71347),Je=E(29596),Pt=E(62673);const nn=[{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 nt=({open:vn,onCancel:yn,onOk:Nn})=>{const{data:wr,dispatch:Or}=(0,y.useContext)(mt);(0,y.useEffect)(()=>{if(vn){const{item_types:kn}=wr||{};ir(kn==null?void 0:kn.map(er=>er.item_type))}},[vn,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:vn,onCancel:yn,onOk:()=>Nn(rr)},y.createElement(Pt.default.Group,{value:rr,onChange:kn=>ir(kn)},y.createElement(je.Z,{gutter:[0,20]},nn.map(kn=>y.createElement(Rt.Z,{key:kn.value,span:6},y.createElement(Pt.default,{value:kn.value},kn.label))))))},Nt=E(70858),qt=Object.defineProperty,wt=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,_n=(vn,yn,Nn)=>yn in vn?qt(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Un=(vn,yn)=>{for(var Nn in yn||(yn={}))Wt.call(yn,Nn)&&_n(vn,Nn,yn[Nn]);if(wt)for(var Nn of wt(yn))en.call(yn,Nn)&&_n(vn,Nn,yn[Nn]);return vn},Vn=({open:vn,onCancel:yn,onOk:Nn})=>{const{data:wr}=(0,y.useContext)(mt),[Or,rr]=(0,y.useState)();console.log("--xxx-",Or),(0,y.useEffect)(()=>{vn&&rr((0,Se.cloneDeep)(wr))},[vn,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(vr=>vr.total_score).reduce((vr,na)=>parseFloat(vr)+parseFloat(na)),er==null?void 0:er.toFixed(1)},[Or]);return vn?y.createElement(gn.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:vn,width:640,centered:!0,closable:!0,onCancel:yn,onOk:()=>{Nn(Or)}},y.createElement("div",{className:"c-black mb20"},"\u603B\u5206",y.createElement("span",{className:"ml10 c-light-primary"},ir)),y.createElement(Nt.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:vr,item_type:na}=er;return y.createElement("div",{style:{color:"#9096A3"}},"\u6BCF",((er==null?void 0:er.item_type)==="PRACTICAL","\u9898"),y.createElement(Ne.Z,{precision:1,size:"large",className:"ml10 mr10",min:.1,disabled:(er==null?void 0:er.item_bank_count)===0,max:100,onChange:xi=>{const ki=Or,fo=ki.item_types.find(Ha=>Ha.item_type===na);fo.score=Number(xi);const ro=xi*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(Un({},ki))}}),"\u5206")}}],className:Ut.setScoreModalTable,dataSource:Or==null?void 0:Or.item_types,rowKey:"item_type",pagination:!1})):null},Zt=E(31691),Xt=E(82326),an=E(18287),xn="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=",ln="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==",Pn="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",Sn="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==",Rn={ruleCheckBox:"ruleCheckBox___Onj2f",folderAreaWrapper:"folderAreaWrapper___ut2mr",folderAreaHeader:"folderAreaHeader___fOIDA",folderWrapper:"folderWrapper___IpJ50",folderIcon:"folderIcon___zBoRM",shareFolderIcon:"shareFolderIcon____5s3p",treeNodeItem:"treeNodeItem___quqla",treeNodeDifficulty:"treeNodeDifficulty___en0gk"},Er=E(50778),Jn=Object.defineProperty,dr=Object.defineProperties,yr=Object.getOwnPropertyDescriptors,gr=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Dn=(vn,yn,Nn)=>yn in vn?Jn(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Zn=(vn,yn)=>{for(var Nn in yn||(yn={}))Vr.call(yn,Nn)&&Dn(vn,Nn,yn[Nn]);if(gr)for(var Nn of gr(yn))Zr.call(yn,Nn)&&Dn(vn,Nn,yn[Nn]);return vn},fr=(vn,yn)=>dr(vn,yr(yn)),ur=(vn,yn,Nn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Nn.next(er))}catch(vr){Or(vr)}},ir=er=>{try{kn(Nn.throw(er))}catch(vr){Or(vr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Nn=Nn.apply(vn,yn)).next())});const Mt=(vn,yn,Nn)=>vn.map(wr=>wr.key===yn?Zn(Zn({},wr),Nn):wr.children?fr(Zn({},wr),{children:Mt(wr.children,yn,Nn)}):wr),Vt={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3},ft=(vn,yn,Nn)=>vn.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(vr=>({label:vr==null?void 0:vr.name,value:Vt[vr.name]}));return{title:ue(yn)===st.All&&er.length>0?y.createElement(je.Z,{justify:"space-between"},y.createElement(Rt.Z,null,`${kn.name}\uFF08${kn.child_count}\uFF09`),y.createElement(Rt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"diffValue"]},y.createElement(Pt.default.Group,{style:{columnGap:12},options:er})),y.createElement(Le.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(Le.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"extra"],initialValue:fr(Zn({},wr),{type:Nn})},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(yn)===st.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=wr==null?void 0:wr.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Vt[kn.name]}));return{title:ue(yn)===st.FileFolderAndDiff&&ir.length>0?y.createElement(je.Z,{justify:"space-between"},y.createElement(Rt.Z,null,`${wr.name}\uFF08${wr.item_banks_count}\uFF09`),y.createElement(Rt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffValue"]},y.createElement(Pt.default.Group,{style:{columnGap:12},options:ir})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffNum"],initialValue:wr==null?void 0:wr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}`,"extra"],initialValue:fr(Zn({},wr),{type:Nn})},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?Nn==="0"?y.createElement("img",{src:ln,className:Rn.folderIcon}):y.createElement("img",{src:Pn,className:Rn.shareFolderIcon}):Nn==="0"?y.createElement("img",{src:xn,className:Rn.folderIcon}):y.createElement("img",{src:Sn,className:Rn.shareFolderIcon}),isLeaf:!wr.have_child&&!((Or=wr.tag_disciplines)!=null&&Or.length),checkable:ue(yn)===st.OnlyFileFolder,disableCheckbox:wr.item_banks_count===0,children:wr.children.length?ue(yn)===st.All||ue(yn)===st.FileFolderAndKnowledge?[...ft(wr.children,yn,Nn),...rr]:ft(wr.children,yn,Nn):[]}}),kt=(vn,yn,Nn)=>vn.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(vr=>({label:vr==null?void 0:vr.name,value:Vt[vr.name]}));return{title:ue(yn)===st.All&&er.length>0?y.createElement(je.Z,{justify:"space-between"},y.createElement(Rt.Z,null,`${kn.name}\uFF08${kn.child_count}\uFF09`),y.createElement(Rt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"diffValue"]},y.createElement(Pt.default.Group,{style:{columnGap:12},options:er})),y.createElement(Le.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(Le.default.Item,{noStyle:!0,name:[`${wr.id}_${kn.id}`,"extra"],initialValue:fr(Zn({},wr),{type:Nn})},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(yn)===st.FileFolderAndKnowledge,disableCheckbox:kn.child_count===0}}),ir=wr==null?void 0:wr.difficulty_count.map(kn=>({label:kn==null?void 0:kn.name,value:Vt[kn.name]}));return{title:ue(yn)===st.FileFolderAndDiff&&ir.length>0?y.createElement(je.Z,{justify:"space-between"},y.createElement(Rt.Z,null,`${wr.name}\uFF08${wr.item_banks_count}\uFF09`),y.createElement(Rt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffValue"]},y.createElement(Pt.default.Group,{style:{columnGap:12},options:ir})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}`,"diffNum"],initialValue:wr==null?void 0:wr.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.default.Item,{noStyle:!0,name:[`${wr.id}`,"extra"],initialValue:fr(Zn({},wr),{type:Nn})},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?Nn==="0"?y.createElement("img",{src:ln,className:Rn.folderIcon}):y.createElement("img",{src:Pn,className:Rn.shareFolderIcon}):Nn==="0"?y.createElement("img",{src:xn,className:Rn.folderIcon}):y.createElement("img",{src:Sn,className:Rn.shareFolderIcon}),isLeaf:!wr.have_child&&!((Or=wr.tag_disciplines)!=null&&Or.length),checkable:ue(yn)===st.OnlyFileFolder,disableCheckbox:wr.item_banks_count===0,children:[...kt(wr.children,yn,Nn),...rr]}});var ht=({ruleValue:vn,defaultData:yn,setSelectData:Nn,currentItemType:wr,selectData:Or})=>{const[rr,ir]=(0,y.useState)("1"),[kn,er]=(0,y.useState)(!0),[vr]=Le.default.useForm(),[na,xi]=(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(vn)===st.OnlyFileFolder?(Nn(Wr=>fr(Zn({},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),Nn(Wr=>fr(Zn({},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(vn)===st.OnlyFileFolder?Nn(Wr=>(console.log("pre:",Wr),fr(Zn({},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}))}))):Nn(Wr=>fr(Zn({},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,bi]=(0,y.useState)([]),[ga,vi]=(0,y.useState)([]),[fi,si]=(0,y.useState)(!1),[Bt,Qt]=(0,y.useState)(!1);function rn(){return ur(this,null,function*(){let qn=yield(0,Ke.ZP)("/api/teach_group_shares.json",{method:"get"});qn&&xi(qn==null?void 0:qn.groups)})}(0,y.useEffect)(()=>{rn()},[]);const In=qn=>ur(void 0,null,function*(){var pr,Fr,aa,Wr,or,ha,fa,Nr,Fa,ja,ua,cr;qn.type==="0"?si(!0):Qt(!0);const Yr=yield(0,Er.ex)(qn);qn.type==="0"?si(!1):Qt(!1),qn.type==="0"?bi(Yr):vi(Yr);const ui=(pr=Yr.navigation[0])==null?void 0:pr.difficulty_count.map(ca=>({label:ca==null?void 0:ca.name,value:Vt[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(Aa=>({label:Aa==null?void 0:Aa.name,value:Vt[Aa.name]}));return{title:ue(vn)===st.All&&ra.length>0?y.createElement(je.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(Rt.Z,null,`${ca.name}\uFF08${ca.child_count}\uFF09`),y.createElement(Rt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"diffValue"]},y.createElement(Pt.default.Group,{style:{columnGap:12},options:ra})),y.createElement(Le.default.Item,{noStyle:!0,name:[`0_${ca.id}`,"diffNum"],initialValue:ca==null?void 0:ca.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.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(vn)===st.FileFolderAndKnowledge,disableCheckbox:ca.child_count===0}});if(qn.type==="0"){const ca=ft(Yr.data,vn,"0"),ra=kt(Yr.data,vn,"0");console.log("normalChildren2:",ra),vo([{title:ue(vn)===st.FileFolderAndDiff?y.createElement(je.Z,{justify:"space-between",style:{color:"#232B40"}},y.createElement(Rt.Z,null,`\u6839\u76EE\u5F55\uFF08${(aa=Yr.navigation[0])==null?void 0:aa.child_count}\uFF09`),y.createElement(Rt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:["0","diffValue"],initialValue:[]},y.createElement(Pt.default.Group,{style:{columnGap:12},options:ui})),y.createElement(Le.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(Le.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(vn)===st.OnlyFileFolder,icon:Aa=>Aa.expanded?y.createElement("img",{src:ln,className:Rn.folderIcon}):y.createElement("img",{src:xn,className:Rn.folderIcon}),isLeaf:!1,children:ue(vn)===st.OnlyFileFolder||ue(vn)===st.FileFolderAndDiff?ca:[...ra,...ba]}])}else{const ca=ft(Yr.data,vn,"3"),ra=kt(Yr.data,vn,"3");Ai([{title:ue(vn)===st.FileFolderAndDiff?y.createElement(je.Z,{justify:"space-between"},y.createElement(Rt.Z,null,`\u6839\u76EE\u5F55\uFF08${(Nr=Yr.navigation[0])==null?void 0:Nr.child_count}\uFF09`),y.createElement(Rt.Z,null,y.createElement("span",{className:"mr15",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Le.default.Item,{noStyle:!0,name:["0","diffValue"]},y.createElement(Pt.default.Group,{style:{columnGap:12},options:ui})),y.createElement(Le.default.Item,{noStyle:!0,name:["0","diffNum"],initialValue:(Fa=Yr.navigation[0])==null?void 0:Fa.difficulty_count},y.createElement("input",{type:"hidden"})),y.createElement(Le.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(vn)===st.OnlyFileFolder,icon:Aa=>Aa.expanded?y.createElement("img",{src:Pn,className:Rn.shareFolderIcon}):y.createElement("img",{src:Sn,className:Rn.shareFolderIcon}),isLeaf:!1,disabled:!(((cr=Yr.navigation[0])==null?void 0:cr.child_count)>0),children:ue(vn)===st.OnlyFileFolder||ue(vn)===st.FileFolderAndDiff?ca:[...ra,...ba]}])}});(0,y.useEffect)(()=>{rr==="1"?In({type:"0",group_id:0,item_type:wr,show_children:!0}):rr==="2"&&In({type:"3",except_mine:!0,item_type:wr,show_children:!0,teach_group_id:ki==="all"?"":ki})},[vn,rr,ki]),(0,y.useEffect)(()=>{var qn,pr,Fr,aa,Wr,or,ha,fa,Nr,Fa,ja,ua;console.log("selectData-active:",Or,yn,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(vn)===st.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=vr.getFieldValue([`${cr.group_id||0}_${cr.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",Yr),Yr!=null&&Yr.includes[cr.difficulty]||vr.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),(Fa=Or==null?void 0:Or.filter(cr=>!!cr.is_share))==null||Fa.forEach(cr=>{const Yr=vr.getFieldValue([`${cr.teacher_group_id||0}_${cr.tag_discipline_id}`,"diffValue"])||[];Yr!=null&&Yr.includes[cr.difficulty]||vr.setFieldValue([`${cr.teacher_group_id||0}_${cr.tag_discipline_id}`,"diffValue"],Array.from(new Set([...Yr,cr.difficulty])))}))),ue(vn)===st.FileFolderAndDiff&&(vr.resetFields(),setTimeout(()=>{Nn(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=vr.getFieldValue([`${cr.group_id}`,"diffValue"])||[];console.log("prev:",Yr),Yr!=null&&Yr.includes[cr.difficulty]||vr.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=vr.getFieldValue([`${cr.teacher_group_id}`,"diffValue"])||[];Yr!=null&&Yr.includes[cr.difficulty]||vr.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(vn)){case st.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 st.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 st.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=vr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty,or),ha!=null&&ha.includes[or.difficulty]||vr.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=vr.getFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty,or),ha!=null&&ha.includes[or.difficulty]||vr.setFieldValue([`${or.group_id||0}_${or.tag_discipline_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))}));break}case st.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=vr.getFieldValue([`${or.group_id}`,"diffValue"])||[];console.log("prev:",ha,or.difficulty),ha!=null&&ha.includes[or.difficulty]||vr.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=vr.getFieldValue([`${or.group_id}`,"diffValue"])||[];ha!=null&&ha.includes[or.difficulty]||vr.setFieldValue([`${or.group_id}`,"diffValue"],Array.from(new Set([...ha,or.difficulty])))}));break}}},800)},[yn,vn,Li,_o]);const[Va,zr]=(0,y.useState)(0);return y.createElement(Le.default,{form:vr,onValuesChange:(qn,pr)=>ur(void 0,null,function*(){var Fr,aa,Wr,or;console.log("onValuesChange:",pr,qn);let ha=0;if(ue(vn)===st.FileFolderAndDiff){const fa=yield vr.getFieldValue(),Nr=[],Fa=[];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(Zn({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 Aa,ao,qo,Ko,Xl;const Oi={group_name:((Aa=ua.extra)==null?void 0:Aa.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(_l=>_l.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),Fa.push(Oi)})}),ha=Fa.reduce((ua,cr)=>ua+cr.item_bank_num,0),Nn([...Fa,...Or==null?void 0:Or.filter(ua=>rr==="1"?ua.is_share:!ua.is_share)])}else if(ue(vn)===st.All){const fa=[];for(const Nr of Object.keys(pr)){const{diffNum:Fa=[],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"},Aa=(ca=Fa==null?void 0:Fa.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:Aa};ha+=Aa,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),Aa>0&&fa.push(ao)})}Nn([...fa,...Or==null?void 0:Or.filter(Nr=>rr==="1"?Nr.is_share:!Nr.is_share)])}zr(ha)})},y.createElement(Zt.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(Xt.default,{onChange:qn=>{fo(qn)},value:ki,style:{width:120}},y.createElement(Xt.default.Option,{key:"all",value:"all"},"\u5168\u90E8"),na==null?void 0:na.map(qn=>y.createElement(Xt.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:fi},y.createElement(At.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:Rn.folderAreaWrapper},y.createElement(je.Z,{justify:"space-between",align:"middle",className:Rn.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:fi},y.createElement("div",{style:{minHeight:200}},Li.length>0&&y.createElement(an.default,{checkable:!0,className:Rn.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:Bt},y.createElement(At.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")})):y.createElement("div",{className:Rn.folderAreaWrapper},y.createElement(je.Z,{justify:"space-between",align:"middle",className:Rn.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:Bt},y.createElement("div",{style:{minHeight:200}},(_o==null?void 0:_o.length)>0&&y.createElement(an.default,{checkable:!0,className:Rn.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(76154),ar=E(63596),mr=Object.defineProperty,It=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,Hn=(vn,yn,Nn)=>yn in vn?mr(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Gn=(vn,yn)=>{for(var Nn in yn||(yn={}))Kt.call(yn,Nn)&&Hn(vn,Nn,yn[Nn]);if(Tt)for(var Nn of Tt(yn))Fn.call(yn,Nn)&&Hn(vn,Nn,yn[Nn]);return vn},jn=(vn,yn)=>It(vn,_t(yn)),hr=(vn,yn,Nn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Nn.next(er))}catch(vr){Or(vr)}},ir=er=>{try{kn(Nn.throw(er))}catch(vr){Or(vr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Nn=Nn.apply(vn,yn)).next())});const Pr={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var Lr=({ruleValue:vn,setSelectData:yn,currentItemType:Nn,defaultData:wr,isFirst:Or})=>{const[rr,ir]=(0,y.useState)([]),[kn,er,vr,na]=(0,ar.U)(gt,{keyword:"",course_discipline_id:null,item_type:Nn});(0,y.useEffect)(()=>{hr(void 0,null,function*(){const Hr=yield vr({},!0);ir((0,cn.L)(Hr.disciplines))})},[]),console.log(wr),(0,y.useEffect)(()=>{if(Or)switch(ue(vn)){case st.OnlyKnowledge:{Ha(wr.map(Hr=>Hr.tag_discipline_id));break}case st.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())xi.setFieldValue([_i,"diff"],Li);break}}},[wr,vn,Or]);const[xi]=Le.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:vn.includes(Ct.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(Le.default.Item,{name:[Li,"diff"],noStyle:!0},y.createElement(Pt.default.Group,{style:{columnGap:12},options:vo.map(bi=>({label:bi.name,value:Pr[bi.name]}))})),y.createElement(Le.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(je.Z,{className:"mb20",align:"middle",gutter:20},y.createElement(Rt.Z,null,y.createElement(me.q,{size:"large",style:{width:240},showLinkButton:!1,onChange:Hr=>{vr({course_discipline_id:Hr})}})),y.createElement(Rt.Z,null,y.createElement(Je.t7,{style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:kn.keyword,onChange:Hr=>vr({keyword:Hr})}))),y.createElement(Le.default,{form:xi,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:bi}=Ai.extra||{};(Li=Ai==null?void 0:Ai.diff)==null||Li.forEach(ga=>{var vi;const fi=(vi=go==null?void 0:go.find(Bt=>Bt.name===_o[ga]))==null?void 0:vi.value,si=jn(Gn({},Ai.extra),{id:`${vo}_${ga}`,difficulty:ga,item_bank_num:fi,tag_discipline_id:vo});fi>0&&ma.current.set(`${vo}_${ga}`,si)})}yn([...ma.current.values()])}},(ki==null?void 0:ki.length)===0?y.createElement(At.Z,{ButtonTwo:y.createElement("a",{target:"_blank",href:"/problemset"},"\u524D\u5F80\u9898\u5E93\uFF0C\u65B0\u589E\u66F4\u591A\u8BD5\u9898",">")}):y.createElement(Nt.default,{rowSelection:ue(vn)===st.OnlyKnowledge?{preserveSelectedRowKeys:!0,type:"checkbox",onChange(Hr,_i){console.log("table-selectedRowKeys:",Hr,_i),Ha(Hr),yn(_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,Ia=(vn,yn,Nn)=>yn in vn?Cr(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Ur=(vn,yn)=>{for(var Nn in yn||(yn={}))ta.call(yn,Nn)&&Ia(vn,Nn,yn[Nn]);if(oa)for(var Nn of oa(yn))xa.call(yn,Nn)&&Ia(vn,Nn,yn[Nn]);return vn},ya=(vn,yn)=>Rr(vn,Xr(yn)),Xa=(vn,yn,Nn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Nn.next(er))}catch(vr){Or(vr)}},ir=er=>{try{kn(Nn.throw(er))}catch(vr){Or(vr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Nn=Nn.apply(vn,yn)).next())});const Pa={\u7B80\u5355:1,\u9002\u4E2D:2,\u56F0\u96BE:3};var kr=({open:vn,onCancel:yn,setVisibleModalType:Nn,currentItemType:wr})=>{var Or;const{data:rr,dispatch:ir}=(0,y.useContext)(mt),[kn,er]=(0,y.useState)([]),[vr,na]=(0,y.useState)(),xi=(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(vn){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)!==st.Shixun){const go=mn[Ai==null?void 0:Ai.random_rule_type]||[];er(go);const bi=(_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 st.OnlyDifficulty:{Ha(bi.map(ga=>ga.difficulty));break}case st.OnlyFileFolder:{Ha({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)}),na({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)});break}case st.FileFolderAndKnowledge:{Ha({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)}),na({my:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)!=="NaN"&&!ga.teacher_group_id&&ga.teacher_group_id!==0),public:bi==null?void 0:bi.filter(ga=>parseInt(ga.teacher_group_id)>=0)});break}case st.FileFolderAndDiff:{Ha(bi),na(bi);break}case st.All:{Ha(bi),na(bi);break}default:Ha(bi)}}}},[vn]);const[ki,fo]=(0,y.useState)([]);(0,y.useEffect)(()=>{vn&&lt({item_type:wr}).then(Li=>{Li.status===0&&fo(Li.data)})},[vn]),(0,y.useEffect)(()=>{console.log("selectData",vr)},[vr]);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:vn,onCancel:yn,destroyOnClose:!0,onOk:()=>Xa(void 0,null,function*(){var Li,vo,_o,Ai,go,bi,ga;if(vr===void 0){Nn("");return}if(Object.prototype.toString.call(vr)==="[object Object]"&&!((Li=vr.my)!=null&&Li.length)&&!((vo=vr.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(vr).length&&!(vr!=null&&vr.length)){ce.ZP.warning("\u8BD5\u9898\u603B\u6570=0\uFF0C\u8BF7\u5148\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219");return}const vi=ue(kn);switch(vi){case st.OnlyFileFolder:{ir({type:"editRule",payload:{itemType:wr,tableData:[...vr.my||[],...vr.public||[]],randomRuleType:vi}});break}case st.OnlyDifficulty:{const fi=(Ai=(_o=rr==null?void 0:rr.item_types)==null?void 0:_o.find(Bt=>Bt.item_type===wr))==null?void 0:Ai.contents;let si=[{},{value:(go=ki.find(Bt=>Bt.name==="\u7B80\u5355"))==null?void 0:go.value},{value:(bi=ki.find(Bt=>Bt.name==="\u9002\u4E2D"))==null?void 0:bi.value},{value:(ga=ki.find(Bt=>Bt.name==="\u56F0\u96BE"))==null?void 0:ga.value}];ir({type:"editRule",payload:{itemType:wr,tableData:vr.map((Bt,Qt)=>{var rn,In,Va,zr;return{difficulty:Bt,id:Qt,quanlity:((In=(rn=fi==null?void 0:fi.filter(qn=>qn.id===Qt))==null?void 0:rn[0])==null?void 0:In.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[Bt])==null?void 0:zr.value}}),randomRuleType:vi}});break}case st.OnlyKnowledge:{ir({type:"editRule",payload:{itemType:wr,tableData:vr.map(fi=>ya(Ur({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}case st.KnowledgeAndDiff:{ir({type:"editRule",payload:{itemType:wr,tableData:vr.map(fi=>ya(Ur({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}case st.FileFolderAndDiff:{ir({type:"editRule",payload:{itemType:wr,tableData:vr.map(fi=>ya(Ur({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}case st.FileFolderAndKnowledge:{ir({type:"editRule",payload:{itemType:wr,tableData:[...vr.my||[],...vr.public||[]],randomRuleType:vi}});break}case st.All:{ir({type:"editRule",payload:{itemType:wr,tableData:vr.map(fi=>ya(Ur({},fi),{quanlity:fi.quanlity||1})),randomRuleType:vi}});break}}Nn("")})},y.createElement(Pt.default.Group,{className:`${Rn.ruleCheckBox}`,style:{marginBottom:8},value:kn,onChange:Li=>{var vo;kn!=null&&kn.length&&((vo=xi==null?void 0:xi.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:Ct.FileFolder},{label:"\u6307\u5B9A\u96BE\u5EA6\u62BD\u9898",value:Ct.Difficulty},{label:"\u6307\u5B9A\u77E5\u8BC6\u70B9\u62BD\u9898",value:Ct.Knowledge}]}),kn.includes(Ct.FileFolder)?y.createElement(ht,{defaultData:ro,selectData:vr,ruleValue:kn,setSelectData:na,currentItemType:wr}):kn.includes(Ct.Knowledge)?y.createElement(Lr,{defaultData:ro,isFirst:ma,ruleValue:kn,setSelectData:na,currentItemType:wr}):kn.includes(Ct.Difficulty)?y.createElement("div",{style:{marginTop:12}},y.createElement("span",{className:"mr20",style:{color:"#666"}},"\u96BE\u5EA6"),y.createElement(Pt.default.Group,{style:{columnGap:12},options:ki.map(Li=>({label:Li.name,value:Pa[Li.name]})),value:vr||ro,onChange:Li=>na(Li)})):null)},Sa=({open:vn,onCancel:yn,setVisibleModalType:Nn,currentItemType:wr})=>vn?y.createElement(kr,{open:vn,onCancel:yn,setVisibleModalType:Nn,currentItemType:wr}):null,la=E(79939),Kr=E(25399),Ya=E(21546),Mi=E(89923),ji=E(56375),za=E(68911),Di=E(61485),pi=E(96609),Ci=({open:vn,onCancel:yn,onOk:Nn})=>{const{data:wr}=(0,y.useContext)(mt),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"}),[vr,na]=(0,y.useState)(!1);(0,y.useEffect)(()=>{if(vn){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)}},[vn,wr]);const[xi,ki]=(0,y.useState)([]),[fo,ro]=(0,y.useState)([]);return y.createElement(gn.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:vn,width:948,centered:!0,closable:!0,onCancel:yn,onOk:()=>Nn(fo),destroyOnClose:!0},y.createElement(je.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(Rt.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(Xt.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(Xt.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(Je.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:Ha=>{kn({keyword:Ha,page:1})}})),vr?y.createElement("div",null,y.createElement(At.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(Nt.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?Ut.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(pi.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:Ut.challengeNameWrapper},_i.map((go,bi)=>y.createElement("div",{className:Ut.challengeName,key:bi},"\u7B2C",(0,za.EM)(bi+1),"\u9898\xA0",go))),y.createElement(je.Z,{className:Ut.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Rt.Z,{className:Ut.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:Ut.shixunInfo},Li.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:Ut.shixunInfo},_o),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:Ut.shixunInfo},Ai)),y.createElement(ct.ZP,{type:"primary",className:Ut.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:xi,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,bi)=>({subject:go,id:bi,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),Qn=Object.defineProperty,xr=Object.defineProperties,Sr=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,sa=Object.prototype.propertyIsEnumerable,br=(vn,yn,Nn)=>yn in vn?Qn(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Dr=(vn,yn)=>{for(var Nn in yn||(yn={}))$r.call(yn,Nn)&&br(vn,Nn,yn[Nn]);if(tr)for(var Nn of tr(yn))sa.call(yn,Nn)&&br(vn,Nn,yn[Nn]);return vn},jr=(vn,yn)=>xr(vn,Sr(yn)),_a=({onDelete:vn,list:yn,onSelect:Nn})=>{const[wr,Or]=(0,y.useState)(!1),{dispatch:rr,disabled:ir}=(0,y.useContext)(mt),kn=(ki,fo,ro)=>{const Ha=Array.from(ki),[ma]=Ha.splice(fo,1);return Ha.splice(ro,0,ma),Ha},[er,vr]=(0,y.useState)(null),[na,xi]=(0,y.useState)(!1);return Ar.createElement(ei.Z5,{onDragStart:()=>{xi(!0)},onDragEnd:ki=>{if(xi(!1),!ki.destination)return;const fo=kn(yn,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},yn.map((ro,Ha)=>Ar.createElement(ei._l,{key:Ha,draggableId:Ha.toString(),index:Ha,isDragDisabled:er!==ro.item_type},(ma,Hr)=>Ar.createElement(je.Z,jr(Dr(Dr({align:"middle",wrap:!1,ref:ma.innerRef},ma.draggableProps),ma.dragHandleProps),{className:`${Ut.dragItem} ${na?Ut.dragging:""}`}),Ar.createElement(Rt.Z,{className:Ut.contentArea,onClick:()=>{Nn(ro.item_type),(0,za.k3)()}},Ar.createElement("span",{className:Ut.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:Ut.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:`${Ut.iconWrapper} ${na?Ut.hidden:""}`,onMouseEnter:()=>{vr(ro.item_type)},onMouseLeave:()=>vr(null)},Ar.createElement("i",{className:`iconfont icon-tuodong1 ${Ut.dragIcon}`}))),Ar.createElement(Kr.Z,{title:"\u5220\u9664"},Ar.createElement("div",{className:`${Ut.iconWrapper} ${na?Ut.hidden:""}`,style:{cursor:"pointer"},onClick:()=>vn(ro.item_type)},Ar.createElement("i",{className:`iconfont icon-shanchu12 ${Ut.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),yi=E(31328);const zi=(vn,yn,Nn,wr)=>{const Or={[st.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)}}],[st.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}`}}],[st.OnlyFileFolder]:[{title:"\u6587\u4EF6\u5939",render(rr,ir,kn){const{group_name:er,teacher_group_name:vr}=ir,na=er||vr,xi=vr?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:xi,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")}}],[st.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)}}],[st.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,vr=kn||er,na=er?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:na,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:vr},y.createElement("span",{className:ea.titles},vr)))}},{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")}}],[st.FileFolderAndDiff]:[{title:"\u6587\u4EF6\u5939",render(rr,ir){const{group_name:kn,teacher_group_name:er}=ir,vr=kn||er,na=er?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:na,className:ea.folderIcon})," ",y.createElement(Kr.Z,{title:vr},y.createElement("span",{className:ea.titles},vr)))}},{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)}}],[st.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:vr}=ir,na=kn||er,xi=vr||vr===0?yi:ai;return y.createElement("div",{style:{display:"flex"}},y.createElement("img",{src:xi,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)}}],[st.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:vr,id:na,teacher_group_id:xi}=kn||{};return y.createElement(je.Z,{align:"middle"},y.createElement(Ne.Z,{disabled:wr,min:1,max:er,size:"large",precision:0,value:vr,onChange:ki=>{yn({type:"changeQuestionNum",payload:{itemType:Nn,id:na,num:ki,teacher_group_id:xi}})}}),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:vr}=kn;return wr?y.createElement("span",{className:"cursorNotAllowed c-grey-999"},"\u5220\u9664"):y.createElement("span",{className:ea.deleteBtn,onClick:()=>{yn({type:"deleteRule",payload:{itemType:Nn,id:er,is_share:vr}})}},"\u5220\u9664")}});return Or[vn]},Ui=({setVisibleModalType:vn})=>{var yn,Nn,wr,Or;const{data:rr,dispatch:ir,disabled:kn}=(0,y.useContext)(mt),er=(yn=rr==null?void 0:rr.item_types)==null?void 0:yn.find(vr=>vr.item_type==="PRACTICAL");return y.createElement($a.Z,{className:ea.timelineWrapper,items:[{children:y.createElement("div",{style:{transform:"translateY(-4px)"}},y.createElement(je.Z,{className:"mb20",align:"middle",justify:"space-between"},y.createElement(Rt.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(Je.op,{style:{width:102},onClick:()=>vn("selectShixun")},"\u4ECE\u9898\u5E93\u9009\u62E9")),((Nn=er==null?void 0:er.item_banks)==null?void 0:Nn.length)===0?y.createElement(At.Z,{customText:"\u6682\u65E0\u5F85\u62BD\u8BD5\u9898\uFF0C\u8BF7\u5148\u4ECE\u9898\u5E93\u8FDB\u884C\u9009\u62E9\uFF5E"}):y.createElement(Nt.default,{rowKey:"id",className:"mb10",columns:[{title:"\u5E8F\u53F7",width:60,render(vr,na,xi){return y.createElement("span",null,xi+1)}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"40%",ellipsis:{showTitle:!0},render:(vr,na)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:na!=null&&na.high_resources_consume?ea.q_title:"",title:vr||"--"},y.createElement(ji.Z,{key:1,showLines:1,showTextOnly:!0,value:vr})),(na==null?void 0:na.high_resources_consume)&&y.createElement(pi.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:(vr,na,xi)=>y.createElement("span",null,vr||"- -")},{title:"\u96BE\u5EA6",dataIndex:"difficulty"},{title:"\u64CD\u4F5C",align:"right",width:180,render(vr,na,xi){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(je.Z,{className:ea.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(Rt.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(ct.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(je.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(Rt.Z,null,y.createElement(je.Z,{align:"middle"},y.createElement("span",{className:ea.normalText},"\u62BD\u9898\u6570\u91CF"),y.createElement(Ne.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:vr=>ir({type:"changeQuestionNum",payload:{num:vr||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(Ne.Z,{disabled:kn,min:0,max:100,size:"large",precision:1,className:"ml10 mr10",value:er==null?void 0:er.score,onChange:vr=>ir({type:"changeQuestionScore",payload:{score:vr,itemType:"PRACTICAL"}})}),y.createElement("span",{className:ea.normalText},"\u5206"))))}]})};var Yi=({setVisibleModalType:vn,currentItemType:yn,onDelete:Nn})=>{var wr,Or;const rr=(0,Ee.useParams)(),{data:ir,dispatch:kn,disabled:er}=(0,y.useContext)(mt),vr=((wr=ir==null?void 0:ir.item_types)==null?void 0:wr.findIndex(xi=>xi.item_type===yn))+1,na=(Or=ir==null?void 0:ir.item_types)==null?void 0:Or.find(xi=>xi.item_type===yn);return y.createElement("div",{className:ea.questionDetailWrapper},y.createElement(je.Z,{justify:"space-between",align:"middle",className:"mb30"},y.createElement(Rt.Z,null,y.createElement("span",{className:ea.questionTitle},`${(0,za.EM)(vr)}\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:()=>Nn(yn)})),yn==="PRACTICAL"?y.createElement(Ui,{setVisibleModalType:vn}):y.createElement(y.Fragment,null,(na==null?void 0:na.contents.length)===0?y.createElement(At.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(je.Z,{justify:"center",className:"mt30"},y.createElement(Je.op,{style:{width:136,marginTop:-10},onClick:()=>vn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219"))}):y.createElement(y.Fragment,null,y.createElement(je.Z,{justify:"space-between",align:"middle",className:"mb20"},y.createElement(Rt.Z,null,y.createElement(je.Z,{align:"middle"},y.createElement("span",{className:`${ea.normalText}`},"\u6BCF\u9898\u5206\u503C"),y.createElement(Ne.Z,{disabled:er,size:"large",className:"ml10 mr10",min:.1,max:100,value:na==null?void 0:na.score,precision:1,onChange:xi=>kn({type:"changeQuestionScore",payload:{score:xi,itemType:yn}})}),y.createElement("span",{className:ea.normalText},"\u5206"))),(rr==null?void 0:rr.id)&&y.createElement(Je.op,{onClick:()=>vn("rule")},"\u8BBE\u7F6E\u62BD\u9898\u89C4\u5219")),y.createElement(Nt.default,{columns:zi(na==null?void 0:na.random_rule_type,kn,yn,er),dataSource:na==null?void 0:na.contents,pagination:!1,rowKey:"id"}))))},co=E(99050),No=E(58870),$o=E(10102),Wo=E(32637),Da=E(59301),Ii=Object.defineProperty,ri=Object.defineProperties,So=Object.getOwnPropertyDescriptors,di=Object.getOwnPropertySymbols,il=Object.prototype.hasOwnProperty,$l=Object.prototype.propertyIsEnumerable,Al=(vn,yn,Nn)=>yn in vn?Ii(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,Vo=(vn,yn)=>{for(var Nn in yn||(yn={}))il.call(yn,Nn)&&Al(vn,Nn,yn[Nn]);if(di)for(var Nn of di(yn))$l.call(yn,Nn)&&Al(vn,Nn,yn[Nn]);return vn},Yo=(vn,yn)=>ri(vn,So(yn)),no=(vn,yn,Nn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Nn.next(er))}catch(vr){Or(vr)}},ir=er=>{try{kn(Nn.throw(er))}catch(vr){Or(vr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Nn=Nn.apply(vn,yn)).next())}),Ul=({})=>{var vn,yn,Nn,wr,Or,rr,ir,kn,er,vr,na,xi,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)(mt),[go,bi]=(0,y.useState)(""),[ga,vi]=(0,y.useState)((yn=(vn=Hr==null?void 0:Hr.item_types)==null?void 0:vn[0])==null?void 0:yn.item_type),[fi,si]=(0,y.useState)(!0),[Bt,Qt]=(0,y.useState)(!1),rn=(qn,pr)=>no(void 0,null,function*(){var Fr,aa,Wr,or,ha,fa,Nr;const Fa=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=Fa,!((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:Da.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Da.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,Se.cloneDeep)(Hr),{item_types:ba}=ui||{};ui.item_types=ba.filter(ra=>ra.item_type===ga),(yield Ve(ma.id||ma.categoryId,ui)).status===0&&(vi(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:Da.createElement("div",null,Da.createElement("div",{className:Ut.tipcontent},Da.createElement("div",null,Da.createElement("div",{className:Ut.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"),Da.createElement("div",{className:Ut.tip},"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Da.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"),Da.createElement("div",{className:Ut.info},Da.createElement("i",{className:"iconfont icon-xunifangzhenti1 mr10 font26"}),Da.createElement("span",{className:"mr10",style:{color:"#6A7283"}},"\u9AD8\u6D88\u8017\u5B9E\u9A8C"),Da.createElement("span",{style:{color:"#232B40"}},`${Yr}\u4E2A`))),Da.createElement("div",null,Da.createElement("div",{className:Ut.img},Da.createElement("img",{src:Wo,width:"124px",height:"124px"})),Da.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")))),onOk:()=>{ua()}}):ua()}),In=(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 "),vi(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:Da.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 We(ma.id,{item_type:[qn]})).status!==0)return}else{const or=yield Be(ma.categoryId,{item_type:[qn]});if(vo(),or.status!==0)return}if(_i({type:"deleteQuestionType",payload:qn}),qn===ga){const or=pe(Hr,{type:"deleteQuestionType",payload:qn});vi(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 vi((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")},[(Nn=Hr==null?void 0:Hr.examination_bank)==null?void 0:Nn.name]);const zr=()=>no(void 0,null,function*(){var qn;let pr=yield In(!0,1,ga,!0);if((pr==null?void 0:pr.status)===0){const Fr=yield(0,Ke.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 Da.createElement("div",{className:Ut.questionInfo},Da.createElement("div",{className:"tc mb20"},Da.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})})),Da.createElement(je.Z,{justify:"center",className:"mb20"},Da.createElement(Rt.Z,{className:"mr30"},Da.createElement("span",{className:Ut.label},"\u7B54\u9898\u65F6\u957F"),Da.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")),Da.createElement(Rt.Z,{className:"mr30"},Da.createElement("span",{className:Ut.label},"\u96BE\u5EA6"),Da.createElement("span",null,(kn=re[`${(ir=Hr==null?void 0:Hr.examination_bank)==null?void 0:ir.difficulty}`])==null?void 0:kn.label)),Da.createElement(Rt.Z,{className:"mr30"},Da.createElement("span",{className:Ut.label},"\u8BD5\u9898\u603B\u6570"),Da.createElement("span",null,((er=Hr==null?void 0:Hr.examination_bank)==null?void 0:er.question_count)||0)),Da.createElement(Rt.Z,null,Da.createElement("span",{className:Ut.label},"\u603B\u5206"),Da.createElement("span",null,((na=(vr=Hr==null?void 0:Hr.examination_bank)==null?void 0:vr.total_score)==null?void 0:na.toFixed(1))||0))),Da.createElement("div",{className:Ut.content,style:{border:((xi=Hr==null?void 0:Hr.item_types)==null?void 0:xi.length)<=0&&"none"}},((ki=Hr==null?void 0:Hr.item_types)==null?void 0:ki.length)>0?Da.createElement(je.Z,{wrap:!1},Da.createElement(Rt.Z,{flex:"260px",className:Ut.leftPart},!Ai&&Da.createElement(je.Z,{className:"mb20"},Da.createElement(Je.op,{style:{margin:"0 15px",borderRadius:2},onClick:()=>bi("setScore")},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C"),(ma==null?void 0:ma.id)&&Da.createElement(Je.op,{shape:"default",onClick:()=>bi("questionType")},"\u6DFB\u52A0\u9898\u578B")),Da.createElement(_a,{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,Se.cloneDeep)(Hr),{item_types:aa}=Fr||{};Fr.item_types=aa.filter(Wr=>Wr.item_type===ga);try{(yield Ve(ma.id||ma.categoryId,Fr)).status===0&&vi(qn)}catch(Wr){}}else ma.categoryId?In(!0,2,qn):rn(!0,qn);si(!1)}),onDelete:Va})),Da.createElement(Rt.Z,{flex:1,className:Ut.rightPart},Da.createElement(ke.Z,{spinning:fi},Da.createElement(Yi,{setVisibleModalType:bi,currentItemType:ga,onDelete:Va})))):Da.createElement(At.Z,{customText:"\u8BF7\u5148\u8BBE\u7F6E\u8BD5\u5377\u9898\u578B",styles:{margin:"70px auto"},ButtonTwo:Da.createElement(je.Z,{justify:"center",className:"mt20"},(ma==null?void 0:ma.id)&&Da.createElement(Je.op,{style:{width:88},onClick:()=>bi("questionType")},"\u6DFB\u52A0\u9898\u578B"))})),!!(ma!=null&&ma.id)&&Da.createElement("div",{className:Ut.fixedBottom},Da.createElement(co.Z,{className:`${Ut.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"),Da.createElement(co.Z,{type:"primary",className:Ut.confirmBtn,onClick:()=>rn()},Da.createElement("i",{className:"iconfont icon-baocun1 mr5"}),"\u4FDD\u5B58\u8BD5\u5377")),!!(ma!=null&&ma.categoryId)&&Da.createElement("div",{className:Ut.fixedBottom,style:{justifyContent:((fo=Hr==null?void 0:Hr.exercise)==null?void 0:fo.exercise_status)!==1?"end":"center"}},Da.createElement(co.Z,{className:`${Ut.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&&Da.createElement(co.Z,{className:`${Ut.previewBtn} mr20`,onClick:zr},"\u6A21\u62DF\u8003\u8BD5"),(Hr==null?void 0:Hr.exercise.exercise_status)===1&&Da.createElement(co.Z,{type:"primary",className:Ut.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:Da.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Da.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()}})})),In()})},"\u63D0\u4EA4")),Da.createElement(nt,{open:go==="questionType",onCancel:()=>bi(""),onOk:qn=>no(void 0,null,function*(){var pr,Fr;const aa=[],Wr=pe(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 We(ma.id,{item_type:aa})).status!==0||(_i({type:"setQuestionType",payload:qn}),vi(ga||Wr.item_types[0].item_type),bi(""))})}),Da.createElement(Vn,{open:go==="setScore",onCancel:()=>{bi("")},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 Ue(ma.id,{score_settings:pr})).status===0&&_i({type:"init",payload:qn}):(yield be(ma.categoryId,{score_settings:pr})).status===0&&_i({type:"init",payload:qn}),bi("")})}),Da.createElement(Sa,{open:go==="rule",onCancel:()=>bi(""),currentItemType:ga,setVisibleModalType:bi}),Ha.get("type")==="settings"&&Da.createElement(Ci,{open:go==="selectShixun",onCancel:()=>bi(""),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]}}),bi("")}}))},Nl=E(26931),Io=E(59301),es=Object.defineProperty,as=Object.defineProperties,Ni=Object.getOwnPropertyDescriptors,Qi=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,Hi=(vn,yn,Nn)=>yn in vn?es(vn,yn,{enumerable:!0,configurable:!0,writable:!0,value:Nn}):vn[yn]=Nn,uo=(vn,yn)=>{for(var Nn in yn||(yn={}))Pi.call(yn,Nn)&&Hi(vn,Nn,yn[Nn]);if(Qi)for(var Nn of Qi(yn))hi.call(yn,Nn)&&Hi(vn,Nn,yn[Nn]);return vn},Il=(vn,yn)=>as(vn,Ni(yn)),oo=(vn,yn,Nn)=>new Promise((wr,Or)=>{var rr=er=>{try{kn(Nn.next(er))}catch(vr){Or(vr)}},ir=er=>{try{kn(Nn.throw(er))}catch(vr){Or(vr)}},kn=er=>er.done?wr(er.value):Promise.resolve(er.value).then(rr,ir);kn((Nn=Nn.apply(vn,yn)).next())}),Jo=()=>{var vn,yn,Nn,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),[vr]=(0,Ee.useSearchParams)();(0,y.useEffect)(()=>{vr.get("type")==="settings"&&rr("settings")},[]);const[na,xi]=(0,y.useReducer)(pe,null),[ki,fo]=(0,y.useState)(!1),ro=()=>oo(void 0,null,function*(){fo(!0);let ga;kn.categoryId?ga=yield ze(kn):ga=yield Ae(kn.id),fo(!1),ga.status===0&&xi({type:"init",payload:ga})});(0,y.useEffect)(()=>{er?ro():xi({type:"init",payload:{examination_bank:{difficulty:2}}})},[kn]);const[Ha,ma]=(0,y.useState)(""),Hr=(ga,vi)=>oo(void 0,null,function*(){var fi,si,Bt,Qt;const rn=(fi=na==null?void 0:na.item_types)==null?void 0:fi.filter(zr=>{var qn;return((qn=zr==null?void 0:zr.item_type)==null?void 0:qn.toUpperCase())===(vi==null?void 0:vi.type)}),In={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)){In.seleted_item_bank_ids=ga==null?void 0:ga.seleted_item_bank_ids,In.item_types=rn;const zr=yield St(In);if((zr==null?void 0:zr.status)===0){let qn=(0,Se.cloneDeep)(Ai.data);qn.questionList=(si=qn==null?void 0:qn.questionList)==null?void 0:si.map(pr=>{var Fr;return pr.type===vi.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)){In.seleted_item_bank_ids=ga==null?void 0:ga.seleted_item_bank_ids,In.single_question_id=ga==null?void 0:ga.single_question_id,In.item_types=rn;const zr=yield St(In);if((zr==null?void 0:zr.status)===0){let qn=(0,Se.cloneDeep)(Ai.data);qn.questionList=(Bt=qn==null?void 0:qn.questionList)==null?void 0:Bt.map(pr=>{var Fr,aa;if(pr.type===vi.type){const Wr=(0,Se.cloneDeep)(pr==null?void 0:pr.questions);return Wr.splice(vi.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,vi.index,"new_questions"),Il(uo({},pr),{questions:Wr})}return pr}),go({show:!0,data:qn})}return}const Va=yield de(In);if((Va==null?void 0:Va.status)===0){const zr=(0,za.ad)(Va);let qn=[];(Qt=na==null?void 0:na.item_types)==null||Qt.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,Se.compact)(qn),zr.questionList=qn,go({show:!0,data:zr}),ma(new Date)}}),_i=ga=>{var vi;let fi=(0,Se.cloneDeep)(Ai.data);fi.questionList=(vi=fi==null?void 0:fi.questionList)==null?void 0:vi.map(si=>si.type===ga.type?Il(uo({},si),{questions_score:ga.scoreTotal}):si),xi({type:"changeQuestionScore",payload:{score:ga.score,itemType:ga.type}}),go({show:!0,data:fi})},Li=ga=>oo(void 0,null,function*(){const vi={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,sub_discipline_id:na.examination_bank.sub_discipline_id};if(ga){(yield Qe(uo(uo({},vi),ga))).status===0&&ce.ZP.success("\u4FDD\u5B58\u6210\u529F");return}(yield Ve(kn.id,vi)).status===0&&(ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),Ee.history.push("/paperlibrary?defaultActiveKey=0"))}),vo=(0,Ya.g)(),[_o]=Le.default.useForm(),[Ai,go]=(0,y.useState)({show:!1,data:{}}),bi=!!((vn=na==null?void 0:na.exercise)!=null&&vn.exercise_status)&&((yn=na==null?void 0:na.exercise)==null?void 0:yn.exercise_status)!==1;return Io.createElement(mt.Provider,{value:{data:na,disabled:bi,dispatch:xi,setPreview:go,getData:ro,handlePreview:Hr}},Ai.show?Io.createElement(Nl.Z,{key:Ha,data:Ai.data,onExchange:Hr,onTypeScore:_i,submit:Li,goBack:()=>go({show:!1,data:{}})}):Io.createElement("div",{className:ve.wrapper},Io.createElement("div",{className:"edu-container"},Io.createElement(xe.Z,{className:ve.breadCrumbWrapper,separator:">",items:kn!=null&&kn.categoryId?[{title:Io.createElement(Ee.Link,{to:`/classrooms/${kn.coursesId}/exercise`},(wr=(Nn=(0,$o.eY)())==null?void 0:Nn.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 vi=yield Ye(na);vi.status===0&&Ee.history.replace(`/randompaper/edit/${vi==null?void 0:vi.examination_bank_id}?type=settings`)}rr(ga)})}),Or==="baseInfo"&&Io.createElement(wn,{courseOptions:vo,setCurrentKey:rr,loading:ki,form:_o}),Io.createElement("div",{style:{display:Or==="settings"?"block":"none"}},na&&Io.createElement(Ul,null)))))}},37829:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return fe}});var y=E(62957),ve={ul:"ul___TdfYY"},ce=E(32637),Le=E(59301),xe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ke=(je,Ne)=>{var ct={};for(var Ke in je)Ee.call(je,Ke)&&Ne.indexOf(Ke)<0&&(ct[Ke]=je[Ke]);if(je!=null&&xe)for(var Ke of xe(je))Ne.indexOf(Ke)<0&&Ce.call(je,Ke)&&(ct[Ke]=je[Ke]);return ct},fe=je=>{var Ne=je,{open:ct,onCancel:Ke}=Ne,Te=ke(Ne,["open","onCancel"]);return Le.createElement(y.default,{centered:!0,open:ct,title:Le.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ke,footer:null},Le.createElement("div",null,Le.createElement("div",{className:"tc"},Le.createElement("img",{className:"mt10",src:ce,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Le.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Le.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Le.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Le.createElement("ul",{className:ve.ul},Le.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"),Le.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"),Le.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")))))}},21546:function(Mn,Jt,E){"use strict";E.d(Jt,{g:function(){return xe}});var y=E(59301),ve=E(18632),ce=E(76154),Le=(Ee,Ce,ke)=>new Promise((De,fe)=>{var je=Ke=>{try{ct(ke.next(Ke))}catch(Te){fe(Te)}},Ne=Ke=>{try{ct(ke.throw(Ke))}catch(Te){fe(Te)}},ct=Ke=>Ke.done?De(Ke.value):Promise.resolve(Ke.value).then(je,Ne);ct((ke=ke.apply(Ee,Ce)).next())});const xe=()=>{const[Ee,Ce]=(0,y.useState)([]);return(0,y.useEffect)(()=>{Le(void 0,null,function*(){const De=yield(0,ve.d1)({source:"question"});De!=null&&De.disciplines&&Ce((0,ce.L)(De==null?void 0:De.disciplines))})},[]),Ee}},63596:function(Mn,Jt,E){"use strict";E.d(Jt,{U:function(){return De}});var y=E(59301),ve=Object.defineProperty,ce=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ee=(fe,je,Ne)=>je in fe?ve(fe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):fe[je]=Ne,Ce=(fe,je)=>{for(var Ne in je||(je={}))Le.call(je,Ne)&&Ee(fe,Ne,je[Ne]);if(ce)for(var Ne of ce(je))xe.call(je,Ne)&&Ee(fe,Ne,je[Ne]);return fe},ke=(fe,je,Ne)=>new Promise((ct,Ke)=>{var Te=Pe=>{try{Ie(Ne.next(Pe))}catch(rt){Ke(rt)}},we=Pe=>{try{Ie(Ne.throw(Pe))}catch(rt){Ke(rt)}},Ie=Pe=>Pe.done?ct(Pe.value):Promise.resolve(Pe.value).then(Te,we);Ie((Ne=Ne.apply(fe,je)).next())});function De(fe,je){const[Ne,ct]=(0,y.useState)(je),[Ke,Te]=(0,y.useState)(!1),[we,Ie]=(0,y.useState)();return[Ne,Ke,(rt,Et=!1)=>ke(this,null,function*(){const Oe=Et?je:Ce(Ce({},Ne),rt);Te(!0),ct(Oe);const Ae=yield fe(Oe);return Te(!1),Ie(Ae),Ae}),we,Ie]}},74410:function(Mn,Jt,E){"use strict";E.d(Jt,{AL:function(){return Oe},Iy:function(){return je},Qv:function(){return Ke},ez:function(){return Et},jb:function(){return Ne}});var y=E(32834),ve=E.n(y),ce=E(11690),Le=E.n(ce);let xe=1;function Ee(gt,lt){const Ue=gt.match(/^(\s+)(?:```)/);if(Ue===null)return lt;const be=Ue[1];return lt.split(`
`).map(We=>{const Be=We.match(/^\s+/);if(Be===null)return We;const[de]=Be;return de.length>=be.length?We.slice(be.length):We}).join(`
`)}let Ce=[],ke=["<ul>"];const De=new(ve()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function je(){Ce.length=0,ke=["<ul>"]}const Ne={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ct(gt,lt,Ue,be){if(lt>=gt.length||gt[lt].level<=Ue)return lt;var We=gt[lt];be.push("<li><a href='#"+xe+We.anchor+"'>"+We.text+"</a>"),lt++;var Be=[];return lt=ct(gt,lt,We.level,Be),Be.length>0&&(be.push("<ul>"),Be.forEach(function(de){be.push(de)}),be.push("</ul>")),be.push("</li>"),lt=ct(gt,lt,Ue,be),lt}function Ke(){return ct(Ce,0,0,ke),ke.push("</ul>"),ke.join("")}const Te={heading(gt){const lt=fe.exec(gt);if(xe+=1,lt)return{type:"heading",raw:lt[0],depth:lt[1].length,text:lt[2]}},fences(gt){const lt=this.rules.block.fences.exec(gt);if(lt){const Ue=lt[0];let be=Ee(Ue,lt[3]||"");const We=lt[2]?lt[2].trim():lt[2];if(["latex","katex","math"].indexOf(We)>=0){const Be=Pe(),de=be;be=Be,rt[Be]={type:"block",expression:de}}return{type:"code",raw:Ue,lang:We,text:be}}}},we=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ie=0;const Pe=()=>`__special_katext_id_${Ie++}__`;let rt={};function Et(){return rt}function Oe(){Ie=0,rt={}}function Ae(gt){return gt=gt.replace(we,(lt,Ue)=>{const be=Pe();return rt[be]={type:"inline",expression:Ue},be}),gt}const Ve=De.listitem;De.listitem=function(gt){return Ve(Ae(gt))};const Ye=De.paragraph;De.paragraph=function(gt){return Ye(Ae(gt))};const xt=De.tablecell;De.tablecell=function(gt,lt){return xt(Ae(gt),lt)},De.code=function(gt,lt,Ue){const be=(lt||"").match(/\S*/)[0];return be?["latex","katex","math"].indexOf(be)>=0?`<p class='editormd-tex'>${gt}</p>`:`<pre class="prettyprint linenums"><code class="language-${lt}">${Ue?gt:(0,ce.escape)(gt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ue?gt:(0,ce.escape)(gt,!0))+"</code></pre>"},De.heading=function(gt,lt,Ue){let be=this.options.headerPrefix+Ue.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ce.push({anchor:be,level:lt,text:gt}),"<h"+lt+' id="'+xe+be+'">'+gt+"</h"+lt+">"},ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),ve().use({tokenizer:Te,renderer:De}),Jt.ZP=ve()},9981:function(Mn,Jt){"use strict";const E=function(){const y=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ve=1;ve<arguments.length;ve++){const ce=ve<0||arguments.length<=ve?void 0:arguments[ve];ce&&Object.keys(ce).forEach(Le=>{const xe=ce[Le];xe!==void 0&&(y[Le]=xe)})}return y};Jt.Z=E},86013:function(Mn,Jt,E){"use strict";var y=E(59301),ve=E(19248);const ce=Le=>{let xe;return typeof Le=="object"&&(Le!=null&&Le.clearIcon)?xe=Le:Le&&(xe={clearIcon:y.createElement(ve.Z,null)}),xe};Jt.Z=ce},54500:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return y}});const y=ve=>ve?typeof ve=="function"?ve():ve:null},97224:function(Mn,Jt,E){"use strict";E.d(Jt,{F:function(){return y}});function y(ce){return ce!=null&&ce===ce.window}const ve=ce=>{var Le,xe;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=(xe=((Le=ce.ownerDocument)!==null&&Le!==void 0?Le:ce).documentElement)===null||xe===void 0?void 0:xe.scrollTop),Ee};Jt.Z=ve},83010:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Le}});var y=E(16089);function ve(xe,Ee,Ce,ke){const De=Ce-Ee;return xe/=ke/2,xe<1?De/2*xe*xe*xe+Ee:De/2*((xe-=2)*xe*xe+2)+Ee}var ce=E(97224);function Le(xe){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ce=()=>window,callback:ke,duration:De=450}=Ee,fe=Ce(),je=(0,ce.Z)(fe),Ne=Date.now(),ct=()=>{const Te=Date.now()-Ne,we=ve(Te>De?De:Te,je,xe,De);(0,ce.F)(fe)?fe.scrollTo(window.pageXOffset,we):fe instanceof Document||fe.constructor.name==="HTMLDocument"?fe.documentElement.scrollTop=we:fe.scrollTop=we,Te<De?(0,y.Z)(ct):typeof ke=="function"&&ke()};(0,y.Z)(ct)}},91882:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Qe}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(11592),xe=E(26112),Ee=E(22703),Ce=E(48755),ke=E(84105),De=E(19563);const fe=ze=>{let{children:st}=ze;const{getPrefixCls:Se}=y.useContext(Ce.E_),ye=Se("breadcrumb");return y.createElement("li",{className:`${ye}-separator`,"aria-hidden":"true"},st===""?st:st||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var je=fe,Ne=function(ze,st){var Se={};for(var ye in ze)Object.prototype.hasOwnProperty.call(ze,ye)&&st.indexOf(ye)<0&&(Se[ye]=ze[ye]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(ze);vt<ye.length;vt++)st.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(ze,ye[vt])&&(Se[ye[vt]]=ze[ye[vt]]);return Se};function ct(ze,st){if(ze.title===void 0||ze.title===null)return null;const Se=Object.keys(st).join("|");return typeof ze.title=="object"?ze.title:String(ze.title).replace(new RegExp(`:(${Se})`,"g"),(ye,vt)=>st[vt]||ye)}function Ke(ze,st,Se,ye){if(Se==null)return null;const{className:vt,onClick:Ht}=st,$t=Ne(st,["className","onClick"]),Fe=Object.assign(Object.assign({},(0,xe.Z)($t,{data:!0,aria:!0})),{onClick:Ht});return ye!==void 0?y.createElement("a",Object.assign({},Fe,{className:ce()(`${ze}-link`,vt),href:ye}),Se):y.createElement("span",Object.assign({},Fe,{className:ce()(`${ze}-link`,vt)}),Se)}function Te(ze,st){return(ye,vt,Ht,$t,Fe)=>{if(st)return st(ye,vt,Ht,$t);const pt=ct(ye,vt);return Ke(ze,ye,pt,Fe)}}var we=function(ze,st){var Se={};for(var ye in ze)Object.prototype.hasOwnProperty.call(ze,ye)&&st.indexOf(ye)<0&&(Se[ye]=ze[ye]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(ze);vt<ye.length;vt++)st.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(ze,ye[vt])&&(Se[ye[vt]]=ze[ye[vt]]);return Se};const Ie=ze=>{const{prefixCls:st,separator:Se="/",children:ye,menu:vt,overlay:Ht,dropdownProps:$t,href:Fe}=ze,ut=(Yt=>{if(vt||Ht){const bt=Object.assign({},$t);if(vt){const Ct=vt||{},{items:mt}=Ct,mn=we(Ct,["items"]);bt.menu=Object.assign(Object.assign({},mn),{items:mt==null?void 0:mt.map((zt,ue)=>{var{key:ie,title:re,label:oe,path:pe}=zt,ae=we(zt,["key","title","label","path"]);let me=oe!=null?oe:re;return pe&&(me=y.createElement("a",{href:`${Fe}${pe}`},me)),Object.assign(Object.assign({},ae),{key:ie!=null?ie:ue,label:me})})})}else Ht&&(bt.overlay=Ht);return y.createElement(De.Z,Object.assign({placement:"bottom"},bt),y.createElement("span",{className:`${st}-overlay-link`},Yt,y.createElement(ke.Z,null)))}return Yt})(ye);return ut!=null?y.createElement(y.Fragment,null,y.createElement("li",null,ut),Se&&y.createElement(je,null,Se)):null},Pe=ze=>{const{prefixCls:st,children:Se,href:ye}=ze,vt=we(ze,["prefixCls","children","href"]),{getPrefixCls:Ht}=y.useContext(Ce.E_),$t=Ht("breadcrumb",st);return y.createElement(Ie,Object.assign({},vt,{prefixCls:$t}),Ke($t,vt,Se,ye))};Pe.__ANT_BREADCRUMB_ITEM=!0;var rt=Pe,Et=E(36237),Oe=E(63356),Ae=E(16931),Ve=E(51636);const Ye=ze=>{const{componentCls:st,iconCls:Se,calc:ye}=ze;return{[st]:Object.assign(Object.assign({},(0,Oe.Wf)(ze)),{color:ze.itemColor,fontSize:ze.fontSize,[Se]:{fontSize:ze.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ze.linkColor,transition:`color ${ze.motionDurationMid}`,padding:`0 ${(0,Et.unit)(ze.paddingXXS)}`,borderRadius:ze.borderRadiusSM,height:ze.fontHeight,display:"inline-block",marginInline:ye(ze.marginXXS).mul(-1).equal(),"&:hover":{color:ze.linkHoverColor,backgroundColor:ze.colorBgTextHover}},(0,Oe.Qy)(ze)),"li:last-child":{color:ze.lastItemColor},[`${st}-separator`]:{marginInline:ze.separatorMargin,color:ze.separatorColor},[`${st}-link`]:{[`
> ${Se} + span,
> ${Se} + a
`]:{marginInlineStart:ze.marginXXS}},[`${st}-overlay-link`]:{borderRadius:ze.borderRadiusSM,height:ze.fontHeight,display:"inline-block",padding:`0 ${(0,Et.unit)(ze.paddingXXS)}`,marginInline:ye(ze.marginXXS).mul(-1).equal(),[`> ${Se}`]:{marginInlineStart:ze.marginXXS,fontSize:ze.fontSizeIcon},"&:hover":{color:ze.linkHoverColor,backgroundColor:ze.colorBgTextHover,a:{color:ze.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ze.componentCls}-rtl`]:{direction:"rtl"}})}},xt=ze=>({itemColor:ze.colorTextDescription,lastItemColor:ze.colorText,iconFontSize:ze.fontSize,linkColor:ze.colorTextDescription,linkHoverColor:ze.colorText,separatorColor:ze.colorTextDescription,separatorMargin:ze.marginXS});var gt=(0,Ae.I$)("Breadcrumb",ze=>{const st=(0,Ve.mergeToken)(ze,{});return Ye(st)},xt),lt=function(ze,st){var Se={};for(var ye in ze)Object.prototype.hasOwnProperty.call(ze,ye)&&st.indexOf(ye)<0&&(Se[ye]=ze[ye]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(ze);vt<ye.length;vt++)st.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(ze,ye[vt])&&(Se[ye[vt]]=ze[ye[vt]]);return Se};function Ue(ze){const{breadcrumbName:st,children:Se}=ze,ye=lt(ze,["breadcrumbName","children"]),vt=Object.assign({title:st},ye);return Se&&(vt.menu={items:Se.map(Ht=>{var{breadcrumbName:$t}=Ht,Fe=lt(Ht,["breadcrumbName"]);return Object.assign(Object.assign({},Fe),{title:$t})})}),vt}function be(ze,st){return(0,y.useMemo)(()=>ze||(st?st.map(Ue):null),[ze,st])}var We=function(ze,st){var Se={};for(var ye in ze)Object.prototype.hasOwnProperty.call(ze,ye)&&st.indexOf(ye)<0&&(Se[ye]=ze[ye]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ye=Object.getOwnPropertySymbols(ze);vt<ye.length;vt++)st.indexOf(ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(ze,ye[vt])&&(Se[ye[vt]]=ze[ye[vt]]);return Se};const Be=(ze,st)=>{if(st===void 0)return st;let Se=(st||"").replace(/^\//,"");return Object.keys(ze).forEach(ye=>{Se=Se.replace(`:${ye}`,ze[ye])}),Se},de=ze=>{const{prefixCls:st,separator:Se="/",style:ye,className:vt,rootClassName:Ht,routes:$t,items:Fe,children:pt,itemRender:ut,params:Yt={}}=ze,bt=We(ze,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ct,direction:mt,breadcrumb:mn}=y.useContext(Ce.E_);let zt;const ue=Ct("breadcrumb",st),[ie,re,oe]=gt(ue),pe=be(Fe,$t),ae=Te(ue,ut);if(pe&&pe.length>0){const Ot=[],at=Fe||$t;zt=pe.map((qe,yt)=>{const{path:Ft,key:jt,type:Xe,menu:tt,overlay:Gt,onClick:un,className:wn,separator:gn,dropdownProps:Rt}=qe,Ut=Be(Yt,Ft);Ut!==void 0&&Ot.push(Ut);const At=jt!=null?jt:yt;if(Xe==="separator")return y.createElement(je,{key:At},gn);const Je={},Pt=yt===pe.length-1;tt?Je.menu=tt:Gt&&(Je.overlay=Gt);let{href:nn}=qe;return Ot.length&&Ut!==void 0&&(nn=`#/${Ot.join("/")}`),y.createElement(Ie,Object.assign({key:At},Je,(0,xe.Z)(qe,{data:!0,aria:!0}),{className:wn,dropdownProps:Rt,href:nn,separator:Pt?"":Se,onClick:un,prefixCls:ue}),ae(qe,Yt,at,Ot,nn))})}else if(pt){const Ot=(0,Le.Z)(pt).length;zt=(0,Le.Z)(pt).map((at,qe)=>{if(!at)return at;const yt=qe===Ot-1;return(0,Ee.Tm)(at,{separator:yt?"":Se,key:qe})})}const me=ce()(ue,mn==null?void 0:mn.className,{[`${ue}-rtl`]:mt==="rtl"},vt,Ht,re,oe),Ze=Object.assign(Object.assign({},mn==null?void 0:mn.style),ye);return ie(y.createElement("nav",Object.assign({className:me,style:Ze},bt),y.createElement("ol",null,zt)))};de.Item=rt,de.Separator=je;var St=de,Qe=St},79939:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return mr}});var y=E(94480),ve=E(59301),ce=E(92310),Le=E.n(ce),xe=E(54476),Ee=E(33885),Ce=E(42978),ke=E(75931),De=E(37463),fe=E(6551),je=E(6089),Ne=E(18929),ct=ve.createContext({}),Ke=ct,Te=E(76190),we=E(20068),Ie="__rc_cascader_search_mark__",Pe=function(_t,Tt,Kt){var Fn=Kt.label,Hn=Fn===void 0?"":Fn;return Tt.some(function(Gn){return String(Gn[Hn]).toLowerCase().includes(_t.toLowerCase())})},rt=function(_t,Tt,Kt,Fn){return Tt.map(function(Hn){return Hn[Fn.label]}).join(" / ")},Et=function(_t,Tt,Kt,Fn,Hn,Gn){var jn=Hn.filter,hr=jn===void 0?Pe:jn,Pr=Hn.render,Tr=Pr===void 0?rt:Pr,Lr=Hn.limit,Cr=Lr===void 0?50:Lr,Rr=Hn.sort;return ve.useMemo(function(){var Xr=[];if(!_t)return[];function oa(ta,xa){var Ia=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],Pa=Ia||Ur.disabled;if((!Xa||Xa.length===0||Gn)&&hr(_t,ya,{label:Kt.label})){var pa;Xr.push((0,Ee.Z)((0,Ee.Z)({},Ur),{},(pa={disabled:Pa},(0,we.Z)(pa,Kt.label,Tr(_t,ya,Fn,Kt)),(0,we.Z)(pa,Ie,ya),(0,we.Z)(pa,Kt.children,void 0),pa)))}Xa&&oa(Ur[Kt.children],ya,Pa)}})}return oa(Tt,[]),Rr&&Xr.sort(function(ta,xa){return Rr(ta[Ie],xa[Ie],_t,Kt)}),Cr!==!1&&Cr>0?Xr.slice(0,Cr):Xr},[_t,Tt,Kt,Fn,Tr,Gn,hr,Rr,Cr])},Oe=Et,Ae="__RC_CASCADER_SPLIT__",Ve="SHOW_PARENT",Ye="SHOW_CHILD";function xt(It){return It.join(Ae)}function gt(It){return It.map(xt)}function lt(It){return It.split(Ae)}function Ue(It){var _t=It||{},Tt=_t.label,Kt=_t.value,Fn=_t.children,Hn=Kt||"value";return{label:Tt||"label",value:Hn,key:Hn,children:Fn||"children"}}function be(It,_t){var Tt,Kt;return(Tt=It.isLeaf)!==null&&Tt!==void 0?Tt:!((Kt=It[_t.children])!==null&&Kt!==void 0&&Kt.length)}function We(It){var _t=It.parentElement;if(_t){var Tt=It.offsetTop-_t.offsetTop;Tt-_t.scrollTop<0?_t.scrollTo({top:Tt}):Tt+It.offsetHeight-_t.scrollTop>_t.offsetHeight&&_t.scrollTo({top:Tt+It.offsetHeight-_t.offsetHeight})}}function Be(It,_t){return It.map(function(Tt){var Kt;return(Kt=Tt[Ie])===null||Kt===void 0?void 0:Kt.map(function(Fn){return Fn[_t.value]})})}function de(It){return Array.isArray(It)&&Array.isArray(It[0])}function St(It){return It?de(It)?It:(It.length===0?[]:[It]).map(function(_t){return Array.isArray(_t)?_t:[_t]}):[]}function Qe(It,_t,Tt){var Kt=new Set(It),Fn=_t();return It.filter(function(Hn){var Gn=Fn[Hn],jn=Gn?Gn.parent:null,hr=Gn?Gn.children:null;return Gn&&Gn.node.disabled?!0:Tt===Ye?!(hr&&hr.some(function(Pr){return Pr.key&&Kt.has(Pr.key)})):!(jn&&!jn.node.disabled&&Kt.has(jn.key))})}function ze(It,_t,Tt){for(var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Fn=_t,Hn=[],Gn=function(){var Pr,Tr,Lr,Cr=It[jn],Rr=(Pr=Fn)===null||Pr===void 0?void 0:Pr.findIndex(function(oa){var ta=oa[Tt.value];return Kt?String(ta)===String(Cr):ta===Cr}),Xr=Rr!==-1?(Tr=Fn)===null||Tr===void 0?void 0:Tr[Rr]:null;Hn.push({value:(Lr=Xr==null?void 0:Xr[Tt.value])!==null&&Lr!==void 0?Lr:Cr,index:Rr,option:Xr}),Fn=Xr==null?void 0:Xr[Tt.children]},jn=0;jn<It.length;jn+=1)Gn();return Hn}var st=function(It,_t,Tt,Kt,Fn){return ve.useMemo(function(){var Hn=Fn||function(Gn){var jn=Kt?Gn.slice(-1):Gn,hr=" / ";return jn.every(function(Pr){return["string","number"].includes((0,Te.Z)(Pr))})?jn.join(hr):jn.reduce(function(Pr,Tr,Lr){var Cr=ve.isValidElement(Tr)?ve.cloneElement(Tr,{key:Lr}):Tr;return Lr===0?[Cr]:[].concat((0,y.Z)(Pr),[hr,Cr])},[])};return It.map(function(Gn){var jn,hr=ze(Gn,_t,Tt),Pr=Hn(hr.map(function(Lr){var Cr,Rr=Lr.option,Xr=Lr.value;return(Cr=Rr==null?void 0:Rr[Tt.label])!==null&&Cr!==void 0?Cr:Xr}),hr.map(function(Lr){var Cr=Lr.option;return Cr})),Tr=xt(Gn);return{label:Pr,value:Tr,key:Tr,valueCells:Gn,disabled:(jn=hr[hr.length-1])===null||jn===void 0||(jn=jn.option)===null||jn===void 0?void 0:jn.disabled}})},[It,_t,Tt,Fn,Kt])};function Se(It,_t){return ve.useCallback(function(Tt){var Kt=[],Fn=[];return Tt.forEach(function(Hn){var Gn=ze(Hn,It,_t);Gn.every(function(jn){return jn.option})?Fn.push(Hn):Kt.push(Hn)}),[Fn,Kt]},[It,_t])}var ye=E(34061),vt=function(It,_t){var Tt=ve.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Kt=ve.useCallback(function(){return Tt.current.options!==It&&(Tt.current.options=It,Tt.current.info=(0,ye.I8)(It,{fieldNames:_t,initWrapper:function(Hn){return(0,Ee.Z)((0,Ee.Z)({},Hn),{},{pathKeyEntities:{}})},processEntity:function(Hn,Gn){var jn=Hn.nodes.map(function(hr){return hr[_t.value]}).join(Ae);Gn.pathKeyEntities[jn]=Hn,Hn.key=jn}})),Tt.current.info.pathKeyEntities},[_t,It]);return Kt};function Ht(It,_t){var Tt=ve.useMemo(function(){return _t||[]},[_t]),Kt=vt(Tt,It),Fn=ve.useCallback(function(Hn){var Gn=Kt();return Hn.map(function(jn){var hr=Gn[jn].nodes;return hr.map(function(Pr){return Pr[It.value]})})},[Kt,It]);return[Tt,Kt,Fn]}var $t=E(48736);function Fe(It){return ve.useMemo(function(){if(!It)return[!1,{}];var _t={matchInputWidth:!0,limit:50};return It&&(0,Te.Z)(It)==="object"&&(_t=(0,Ee.Z)((0,Ee.Z)({},_t),It)),_t.limit<=0&&(_t.limit=!1),[!0,_t]},[It])}var pt=E(34643);function ut(It,_t,Tt,Kt,Fn,Hn,Gn,jn){return function(hr){if(!It)_t(hr);else{var Pr=xt(hr),Tr=gt(Tt),Lr=gt(Kt),Cr=Tr.includes(Pr),Rr=Fn.some(function(Pa){return xt(Pa)===Pr}),Xr=Tt,oa=Fn;if(Rr&&!Cr)oa=Fn.filter(function(Pa){return xt(Pa)!==Pr});else{var ta=Cr?Tr.filter(function(Pa){return Pa!==Pr}):[].concat((0,y.Z)(Tr),[Pr]),xa=Hn(),Ia;if(Cr){var Ur=(0,pt.S)(ta,{checked:!1,halfCheckedKeys:Lr},xa);Ia=Ur.checkedKeys}else{var ya=(0,pt.S)(ta,!0,xa);Ia=ya.checkedKeys}var Xa=Qe(Ia,Hn,jn);Xr=Gn(Xa)}_t([].concat((0,y.Z)(oa),(0,y.Z)(Xr)))}}}function Yt(It,_t,Tt,Kt,Fn){return ve.useMemo(function(){var Hn=Fn(_t),Gn=(0,Ce.Z)(Hn,2),jn=Gn[0],hr=Gn[1];if(!It||!_t.length)return[jn,[],hr];var Pr=gt(jn),Tr=Tt(),Lr=(0,pt.S)(Pr,!0,Tr),Cr=Lr.checkedKeys,Rr=Lr.halfCheckedKeys;return[Kt(Cr),Kt(Rr),hr]},[It,_t,Tt,Kt,Fn])}var bt=ve.memo(function(It){var _t=It.children;return _t},function(It,_t){return!_t.open}),Ct=bt;function mt(It){var _t,Tt=It.prefixCls,Kt=It.checked,Fn=It.halfChecked,Hn=It.disabled,Gn=It.onClick,jn=It.disableCheckbox,hr=ve.useContext(Ke),Pr=hr.checkable,Tr=typeof Pr!="boolean"?Pr:null;return ve.createElement("span",{className:Le()("".concat(Tt),(_t={},(0,we.Z)(_t,"".concat(Tt,"-checked"),Kt),(0,we.Z)(_t,"".concat(Tt,"-indeterminate"),!Kt&&Fn),(0,we.Z)(_t,"".concat(Tt,"-disabled"),Hn||jn),_t)),onClick:Gn},Tr)}var mn="__cascader_fix_label__";function zt(It){var _t=It.prefixCls,Tt=It.multiple,Kt=It.options,Fn=It.activeValue,Hn=It.prevValuePath,Gn=It.onToggleOpen,jn=It.onSelect,hr=It.onActive,Pr=It.checkedSet,Tr=It.halfCheckedSet,Lr=It.loadingKeys,Cr=It.isSelectable,Rr=It.disabled,Xr="".concat(_t,"-menu"),oa="".concat(_t,"-menu-item"),ta=ve.useContext(Ke),xa=ta.fieldNames,Ia=ta.changeOnSelect,Ur=ta.expandTrigger,ya=ta.expandIcon,Xa=ta.loadingIcon,Pa=ta.dropdownMenuColumnStyle,pa=ta.optionRender,kr=Ur==="hover",Za=function(Kr){return Rr||Kr},Sa=ve.useMemo(function(){return Kt.map(function(la){var Kr,Ya=la.disabled,Mi=la.disableCheckbox,ji=la[Ie],za=(Kr=la[mn])!==null&&Kr!==void 0?Kr:la[xa.label],Di=la[xa.value],pi=be(la,xa),Wi=ji?ji.map(function(xr){return xr[xa.value]}):[].concat((0,y.Z)(Hn),[Di]),Ci=xt(Wi),ei=Lr.includes(Ci),Ar=Pr.has(Ci),Qn=Tr.has(Ci);return{disabled:Ya,label:za,value:Di,isLeaf:pi,isLoading:ei,checked:Ar,halfChecked:Qn,option:la,disableCheckbox:Mi,fullPath:Wi,fullPathKey:Ci}})},[Kt,Pr,xa,Tr,Lr,Hn]);return ve.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,pi=la.checked,Wi=la.halfChecked,Ci=la.option,ei=la.fullPath,Ar=la.fullPathKey,Qn=la.disableCheckbox,xr=function(){if(!Za(Ya)){var sa=(0,y.Z)(ei);kr&&za&&sa.pop(),hr(sa)}},Sr=function(){Cr(Ci)&&!Za(Ya)&&jn(ei,za)},tr;return typeof Ci.title=="string"?tr=Ci.title:typeof Mi=="string"&&(tr=Mi),ve.createElement("li",{key:Ar,className:Le()(oa,(Kr={},(0,we.Z)(Kr,"".concat(oa,"-expand"),!za),(0,we.Z)(Kr,"".concat(oa,"-active"),Fn===ji||Fn===Ar),(0,we.Z)(Kr,"".concat(oa,"-disabled"),Za(Ya)),(0,we.Z)(Kr,"".concat(oa,"-loading"),Di),Kr)),style:Pa,role:"menuitemcheckbox",title:tr,"aria-checked":pi,"data-path-key":Ar,onClick:function(){xr(),!Qn&&(!Tt||za)&&Sr()},onDoubleClick:function(){Ia&&Gn(!1)},onMouseEnter:function(){kr&&xr()},onMouseDown:function(sa){sa.preventDefault()}},Tt&&ve.createElement(mt,{prefixCls:"".concat(_t,"-checkbox"),checked:pi,halfChecked:Wi,disabled:Za(Ya)||Qn,disableCheckbox:Qn,onClick:function(sa){Qn||(sa.stopPropagation(),Sr())}}),ve.createElement("div",{className:"".concat(oa,"-content")},pa?pa(Ci):Mi),!Di&&ya&&!za&&ve.createElement("div",{className:"".concat(oa,"-expand-icon")},ya),Di&&Xa&&ve.createElement("div",{className:"".concat(oa,"-loading-icon")},Xa))}))}var ue=function(_t,Tt){var Kt=ve.useContext(Ke),Fn=Kt.values,Hn=Fn[0],Gn=ve.useState([]),jn=(0,Ce.Z)(Gn,2),hr=jn[0],Pr=jn[1];return ve.useEffect(function(){_t||Pr(Hn||[])},[Tt,Hn]),[hr,Pr]},ie=ue,re=E(10228),oe=function(It,_t,Tt,Kt,Fn,Hn,Gn){var jn=Gn.direction,hr=Gn.searchValue,Pr=Gn.toggleOpen,Tr=Gn.open,Lr=jn==="rtl",Cr=ve.useMemo(function(){for(var Pa=-1,pa=_t,kr=[],Za=[],Sa=Kt.length,la=Be(_t,Tt),Kr=function(Di){var pi=pa.findIndex(function(Wi,Ci){return(la[Ci]?xt(la[Ci]):Wi[Tt.value])===Kt[Di]});if(pi===-1)return 1;Pa=pi,kr.push(Pa),Za.push(Kt[Di]),pa=pa[Pa][Tt.children]},Ya=0;Ya<Sa&&pa&&!Kr(Ya);Ya+=1);for(var Mi=_t,ji=0;ji<kr.length-1;ji+=1)Mi=Mi[kr[ji]][Tt.children];return[Za,Pa,Mi,la]},[Kt,Tt,_t]),Rr=(0,Ce.Z)(Cr,4),Xr=Rr[0],oa=Rr[1],ta=Rr[2],xa=Rr[3],Ia=function(pa){Fn(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]?xt(xa[Za]):la[Tt.value]);Ia(Kr);return}}},ya=function(){if(Xr.length>1){var pa=Xr.slice(0,-1);Ia(pa)}else Pr(!1)},Xa=function(){var pa,kr=((pa=ta[oa])===null||pa===void 0?void 0:pa[Tt.children])||[],Za=kr.find(function(la){return!la.disabled});if(Za){var Sa=[].concat((0,y.Z)(Xr),[Za[Tt.value]]);Ia(Sa)}};ve.useImperativeHandle(It,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[Ie])||[];la.length?Hn(la.map(function(Kr){return Kr[Tt.value]}),la[la.length-1]):Hn(Xr,ta[oa])}break}case re.Z.ESC:Pr(!1),Tr&&pa.stopPropagation()}},onKeyUp:function(){}}})},pe=ve.forwardRef(function(It,_t){var Tt,Kt,Fn,Hn=It.prefixCls,Gn=It.multiple,jn=It.searchValue,hr=It.toggleOpen,Pr=It.notFoundContent,Tr=It.direction,Lr=It.open,Cr=It.disabled,Rr=ve.useRef(null),Xr=Tr==="rtl",oa=ve.useContext(Ke),ta=oa.options,xa=oa.values,Ia=oa.halfValues,Ur=oa.fieldNames,ya=oa.changeOnSelect,Xa=oa.onSelect,Pa=oa.searchOptions,pa=oa.dropdownPrefixCls,kr=oa.loadData,Za=oa.expandTrigger,Sa=pa||Hn,la=ve.useState([]),Kr=(0,Ce.Z)(la,2),Ya=Kr[0],Mi=Kr[1],ji=function($a){if(!(!kr||jn)){var ea=ze($a,ta,Ur),ai=ea.map(function(Ui){var Ji=Ui.option;return Ji}),yi=ai[ai.length-1];if(yi&&!be(yi,Ur)){var zi=xt($a);Mi(function(Ui){return[].concat((0,y.Z)(Ui),[zi])}),kr(ai)}}};ve.useEffect(function(){Ya.length&&Ya.forEach(function(_a){var $a=lt(_a),ea=ze($a,ta,Ur,!0).map(function(yi){var zi=yi.option;return zi}),ai=ea[ea.length-1];(!ai||ai[Ur.children]||be(ai,Ur))&&Mi(function(yi){return yi.filter(function(zi){return zi!==_a})})})},[ta,Ya,Ur]);var za=ve.useMemo(function(){return new Set(gt(xa))},[xa]),Di=ve.useMemo(function(){return new Set(gt(Ia))},[Ia]),pi=ie(Gn,Lr),Wi=(0,Ce.Z)(pi,2),Ci=Wi[0],ei=Wi[1],Ar=function($a){ei($a),ji($a)},Qn=function($a){if(Cr)return!1;var ea=$a.disabled,ai=be($a,Ur);return!ea&&(ai||ya||Gn)},xr=function($a,ea){var ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Xa($a),!Gn&&(ea||ya&&(Za==="hover"||ai))&&hr(!1)},Sr=ve.useMemo(function(){return jn?Pa:ta},[jn,Pa,ta]),tr=ve.useMemo(function(){for(var _a=[{options:Sr}],$a=Sr,ea=Be($a,Ur),ai=function(){var Ui=Ci[yi],Ji=$a.find(function(co,No){return(ea[No]?xt(ea[No]):co[Ur.value])===Ui}),Yi=Ji==null?void 0:Ji[Ur.children];if(!(Yi!=null&&Yi.length))return 1;$a=Yi,_a.push({options:Yi})},yi=0;yi<Ci.length&&!ai();yi+=1);return _a},[Sr,Ci,Ur]),$r=function($a,ea){Qn(ea)&&xr($a,be(ea,Ur),!0)};oe(_t,Sr,Ur,Ci,Ar,$r,{direction:Tr,searchValue:jn,toggleOpen:hr,open:Lr}),ve.useEffect(function(){if(!jn)for(var _a=0;_a<Ci.length;_a+=1){var $a,ea=Ci.slice(0,_a+1),ai=xt(ea),yi=($a=Rr.current)===null||$a===void 0?void 0:$a.querySelector('li[data-path-key="'.concat(ai.replace(/\\{0,2}"/g,'\\"'),'"]'));yi&&We(yi)}},[Ci,jn]);var sa=!((Tt=tr[0])!==null&&Tt!==void 0&&(Tt=Tt.options)!==null&&Tt!==void 0&&Tt.length),br=[(Kt={},(0,we.Z)(Kt,Ur.value,"__EMPTY__"),(0,we.Z)(Kt,mn,Pr),(0,we.Z)(Kt,"disabled",!0),Kt)],Dr=(0,Ee.Z)((0,Ee.Z)({},It),{},{multiple:!sa&&Gn,onSelect:xr,onActive:Ar,onToggleOpen:hr,checkedSet:za,halfCheckedSet:Di,loadingKeys:Ya,isSelectable:Qn}),jr=sa?[{options:br}]:tr,Qr=jr.map(function(_a,$a){var ea=Ci.slice(0,$a),ai=Ci[$a];return ve.createElement(zt,(0,xe.Z)({key:$a},Dr,{prefixCls:Sa,options:_a.options,prevValuePath:ea,activeValue:ai}))});return ve.createElement(Ct,{open:Lr},ve.createElement("div",{className:Le()("".concat(Sa,"-menus"),(Fn={},(0,we.Z)(Fn,"".concat(Sa,"-menu-empty"),sa),(0,we.Z)(Fn,"".concat(Sa,"-rtl"),Xr),Fn)),ref:Rr},Qr))}),ae=pe,me=ve.forwardRef(function(It,_t){var Tt=(0,De.lk)();return ve.createElement(ae,(0,xe.Z)({},It,Tt,{ref:_t}))}),Ze=me,Ot=E(70425);function at(){}function qe(It){var _t,Tt=It,Kt=Tt.prefixCls,Fn=Kt===void 0?"rc-cascader":Kt,Hn=Tt.style,Gn=Tt.className,jn=Tt.options,hr=Tt.checkable,Pr=Tt.defaultValue,Tr=Tt.value,Lr=Tt.fieldNames,Cr=Tt.changeOnSelect,Rr=Tt.onChange,Xr=Tt.showCheckedStrategy,oa=Tt.loadData,ta=Tt.expandTrigger,xa=Tt.expandIcon,Ia=xa===void 0?">":xa,Ur=Tt.loadingIcon,ya=Tt.direction,Xa=Tt.notFoundContent,Pa=Xa===void 0?"Not Found":Xa,pa=Tt.disabled,kr=!!hr,Za=(0,Ot.C8)(Pr,{value:Tr,postState:St}),Sa=(0,Ce.Z)(Za,2),la=Sa[0],Kr=Sa[1],Ya=ve.useMemo(function(){return Ue(Lr)},[JSON.stringify(Lr)]),Mi=Ht(Ya,jn),ji=(0,Ce.Z)(Mi,3),za=ji[0],Di=ji[1],pi=ji[2],Wi=Se(za,Ya),Ci=Yt(kr,la,Di,pi,Wi),ei=(0,Ce.Z)(Ci,3),Ar=ei[0],Qn=ei[1],xr=ei[2],Sr=(0,Ot.zX)(function(jr){if(Kr(jr),Rr){var Qr=St(jr),_a=Qr.map(function(ai){return ze(ai,za,Ya).map(function(yi){return yi.option})}),$a=kr?Qr:Qr[0],ea=kr?_a:_a[0];Rr($a,ea)}}),tr=ut(kr,Sr,Ar,Qn,xr,Di,pi,Xr),$r=(0,Ot.zX)(function(jr){tr(jr)}),sa=ve.useMemo(function(){return{options:za,fieldNames:Ya,values:Ar,halfValues:Qn,changeOnSelect:Cr,onSelect:$r,checkable:hr,searchOptions:[],dropdownPrefixCls:void 0,loadData:oa,expandTrigger:ta,expandIcon:Ia,loadingIcon:Ur,dropdownMenuColumnStyle:void 0}},[za,Ya,Ar,Qn,Cr,$r,hr,oa,ta,Ia,Ur]),br="".concat(Fn,"-panel"),Dr=!za.length;return ve.createElement(Ke.Provider,{value:sa},ve.createElement("div",{className:Le()(br,(_t={},(0,we.Z)(_t,"".concat(br,"-rtl"),ya==="rtl"),(0,we.Z)(_t,"".concat(br,"-empty"),Dr),_t),Gn),style:Hn},Dr?Pa:ve.createElement(ae,{prefixCls:Fn,searchValue:"",multiple:kr,toggleOpen:at,open:!0,direction:ya,disabled:pa})))}function yt(It){var _t=It.onPopupVisibleChange,Tt=It.popupVisible,Kt=It.popupClassName,Fn=It.popupPlacement;warning(!_t,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Tt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Kt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Fn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ft(It,_t){if(It){var Tt=function Kt(Fn){for(var Hn=0;Hn<Fn.length;Hn++){var Gn=Fn[Hn];if(Gn[_t==null?void 0:_t.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Gn[_t==null?void 0:_t.children])&&Kt(Gn[_t==null?void 0:_t.children]))return!0}};Tt(It)}}var jt=null,Xe=["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=ve.forwardRef(function(It,_t){var Tt=It.id,Kt=It.prefixCls,Fn=Kt===void 0?"rc-cascader":Kt,Hn=It.fieldNames,Gn=It.defaultValue,jn=It.value,hr=It.changeOnSelect,Pr=It.onChange,Tr=It.displayRender,Lr=It.checkable,Cr=It.autoClearSearchValue,Rr=Cr===void 0?!0:Cr,Xr=It.searchValue,oa=It.onSearch,ta=It.showSearch,xa=It.expandTrigger,Ia=It.options,Ur=It.dropdownPrefixCls,ya=It.loadData,Xa=It.popupVisible,Pa=It.open,pa=It.popupClassName,kr=It.dropdownClassName,Za=It.dropdownMenuColumnStyle,Sa=It.dropdownStyle,la=It.popupPlacement,Kr=It.placement,Ya=It.onDropdownVisibleChange,Mi=It.onPopupVisibleChange,ji=It.expandIcon,za=ji===void 0?">":ji,Di=It.loadingIcon,pi=It.children,Wi=It.dropdownMatchSelectWidth,Ci=Wi===void 0?!1:Wi,ei=It.showCheckedStrategy,Ar=ei===void 0?Ve:ei,Qn=It.optionRender,xr=(0,ke.Z)(It,Xe),Sr=(0,fe.ZP)(Tt),tr=!!Lr,$r=(0,Ne.Z)(Gn,{value:jn,postState:St}),sa=(0,Ce.Z)($r,2),br=sa[0],Dr=sa[1],jr=ve.useMemo(function(){return Ue(Hn)},[JSON.stringify(Hn)]),Qr=Ht(jr,Ia),_a=(0,Ce.Z)(Qr,3),$a=_a[0],ea=_a[1],ai=_a[2],yi=(0,Ne.Z)("",{value:Xr,postState:function(Hi){return Hi||""}}),zi=(0,Ce.Z)(yi,2),Ui=zi[0],Ji=zi[1],Yi=function(Hi,uo){Ji(Hi),uo.source!=="blur"&&oa&&oa(Hi)},co=Fe(ta),No=(0,Ce.Z)(co,2),$o=No[0],Wo=No[1],Da=Oe(Ui,$a,jr,Ur||Fn,Wo,hr||tr),Ii=Se($a,jr),ri=Yt(tr,br,ea,ai,Ii),So=(0,Ce.Z)(ri,3),di=So[0],il=So[1],$l=So[2],Al=ve.useMemo(function(){var hi=gt(di),Hi=Qe(hi,ea,Ar);return[].concat((0,y.Z)($l),(0,y.Z)(ai(Hi)))},[di,ea,ai,$l,Ar]),Vo=st(Al,$a,jr,tr,Tr),Yo=(0,je.Z)(function(hi){if(Dr(hi),Pr){var Hi=St(hi),uo=Hi.map(function(Qo){return ze(Qo,$a,jr).map(function(Jo){return Jo.option})}),Il=tr?Hi:Hi[0],oo=tr?uo:uo[0];Pr(Il,oo)}}),no=ut(tr,Yo,di,il,$l,ea,ai,Ar),Ol=(0,je.Z)(function(hi){(!tr||Rr)&&Ji(""),no(hi)}),Ul=function(Hi,uo){if(uo.type==="clear"){Yo([]);return}var Il=uo.values[0],oo=Il.valueCells;Ol(oo)},Nl=Pa!==void 0?Pa:Xa,Io=kr||pa,es=Kr||la,as=function(Hi){Ya==null||Ya(Hi),Mi==null||Mi(Hi)},Ni=ve.useMemo(function(){return{options:$a,fieldNames:jr,values:di,halfValues:il,changeOnSelect:hr,onSelect:Ol,checkable:Lr,searchOptions:Da,dropdownPrefixCls:Ur,loadData:ya,expandTrigger:xa,expandIcon:za,loadingIcon:Di,dropdownMenuColumnStyle:Za,optionRender:Qn}},[$a,jr,di,il,hr,Ol,Lr,Da,Ur,ya,xa,za,Di,Za,Qn]),Qi=!(Ui?Da:$a).length,Pi=Ui&&Wo.matchInputWidth||Qi?{}:{minWidth:"auto"};return ve.createElement(Ke.Provider,{value:Ni},ve.createElement(De.Ac,(0,xe.Z)({},xr,{ref:_t,id:Sr,prefixCls:Fn,autoClearSearchValue:Rr,dropdownMatchSelectWidth:Ci,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:Ze,emptyOptions:Qi,open:Nl,dropdownClassName:Io,placement:es,onDropdownVisibleChange:as,getRawInputElement:function(){return pi}})))});tt.SHOW_PARENT=Ve,tt.SHOW_CHILD=Ye,tt.Panel=qe;var Gt=tt,un=Gt,wn=E(2738),gn=E(75030),Rt=E(86641),Ut=E(45915),At=E(82855),Je=E(48755),Pt=E(38406),nn=E(2171),pn=E(83397),nt=E(31756),Nt=E(56553),qt=E(24971),wt=E(1722),Wt=E(90376),en=E(68525),_n=E(90005),Un=E(70045);function On(It,_t){const{getPrefixCls:Tt,direction:Kt,renderEmpty:Fn}=ve.useContext(Je.E_),Hn=_t||Kt,Gn=Tt("select",It),jn=Tt("cascader",It);return[Gn,jn,Hn,Fn]}var Vn=On;function Zt(It,_t){return ve.useMemo(()=>_t?ve.createElement("span",{className:`${It}-checkbox-inner`}):!1,[_t])}var Xt=E(33853),an=E(58617),xn=E(38819),Pn=(It,_t,Tt)=>{let Kt=Tt;Tt||(Kt=_t?ve.createElement(Xt.Z,null):ve.createElement(xn.Z,null));const Fn=ve.createElement("span",{className:`${It}-menu-item-loading-icon`},ve.createElement(an.Z,{spin:!0}));return ve.useMemo(()=>[Kt,Fn],[Kt])},Sn=E(56119),Rn=E(16931),Er=E(36237),Jn=E(36170),dr=E(63356),gr=It=>{const{prefixCls:_t,componentCls:Tt}=It,Kt=`${Tt}-menu-item`,Fn=`
&${Kt}-expand ${Kt}-expand-icon,
${Kt}-loading-icon
`;return[(0,Jn.C2)(`${_t}-checkbox`,It),{[Tt]:{"&-checkbox":{top:0,marginInlineEnd:It.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Tt}-menu-empty`]:{[`${Tt}-menu`]:{width:"100%",height:"auto",[Kt]:{color:It.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:It.controlItemWidth,height:It.dropdownHeight,margin:0,padding:It.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Er.unit)(It.lineWidth)} ${It.lineType} ${It.colorSplit}`},"&-item":Object.assign(Object.assign({},dr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:It.optionPadding,lineHeight:It.lineHeight,cursor:"pointer",transition:`all ${It.motionDurationMid}`,borderRadius:It.borderRadiusSM,"&:hover":{background:It.controlItemBgHover},"&-disabled":{color:It.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Fn]:{color:It.colorTextDisabled}},[`&-active:not(${Kt}-disabled)`]:{"&, &:hover":{color:It.optionSelectedColor,fontWeight:It.optionSelectedFontWeight,backgroundColor:It.optionSelectedBg}},"&-content":{flex:"auto"},[Fn]:{marginInlineStart:It.paddingXXS,color:It.colorTextDescription,fontSize:It.fontSizeIcon},"&-keyword":{color:It.colorHighlight}})}}}]};const Vr=It=>{const{componentCls:_t,antCls:Tt}=It;return[{[_t]:{width:It.controlWidth}},{[`${_t}-dropdown`]:[{[`&${Tt}-select-dropdown`]:{padding:0}},gr(It)]},{[`${_t}-dropdown-rtl`]:{direction:"rtl"}},(0,Sn.c)(It)]},Zr=It=>{const _t=Math.round((It.controlHeight-It.fontSize*It.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:It.controlItemBgActive,optionSelectedFontWeight:It.fontWeightStrong,optionPadding:`${_t}px ${It.paddingSM}px`,menuPadding:It.paddingXXS,optionSelectedColor:It.colorText}};var Dn=(0,Rn.I$)("Cascader",It=>[Vr(It)],Zr);const Zn=It=>{const{componentCls:_t}=It;return{[`${_t}-panel`]:[gr(It),{display:"inline-flex",border:`${(0,Er.unit)(It.lineWidth)} ${It.lineType} ${It.colorSplit}`,borderRadius:It.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${_t}-menus`]:{alignItems:"stretch"},[`${_t}-menu`]:{height:"auto"},"&-empty":{padding:It.paddingXXS}}]}};var fr=(0,Rn.A1)(["Cascader","Panel"],It=>Zn(It),Zr);function ur(It){const{prefixCls:_t,className:Tt,multiple:Kt,rootClassName:Fn,notFoundContent:Hn,direction:Gn,expandIcon:jn,disabled:hr}=It,Pr=ve.useContext(nn.Z),Tr=hr!=null?hr:Pr,[Lr,Cr,Rr,Xr]=Vn(_t,Gn),oa=(0,pn.Z)(Cr),[ta,xa,Ia]=Dn(Cr,oa);fr(Cr);const Ur=Rr==="rtl",[ya,Xa]=Pn(Lr,Ur,jn),Pa=Hn||(Xr==null?void 0:Xr("Cascader"))||ve.createElement(Pt.Z,{componentName:"Cascader"}),pa=Zt(Cr,Kt);return ta(ve.createElement(qe,Object.assign({},It,{checkable:pa,prefixCls:Cr,className:Le()(Tt,xa,Fn,Ia,oa),notFoundContent:Pa,direction:Rr,expandIcon:ya,loadingIcon:Xa,disabled:Tr})))}var Mt=ur,Vt=function(It,_t){var Tt={};for(var Kt in It)Object.prototype.hasOwnProperty.call(It,Kt)&&_t.indexOf(Kt)<0&&(Tt[Kt]=It[Kt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Kt=Object.getOwnPropertySymbols(It);Fn<Kt.length;Fn++)_t.indexOf(Kt[Fn])<0&&Object.prototype.propertyIsEnumerable.call(It,Kt[Fn])&&(Tt[Kt[Fn]]=It[Kt[Fn]]);return Tt};const{SHOW_CHILD:ft,SHOW_PARENT:kt}=un;function it(It,_t,Tt){const Kt=It.toLowerCase().split(_t).reduce((Gn,jn,hr)=>hr===0?[jn]:[].concat((0,y.Z)(Gn),[_t,jn]),[]),Fn=[];let Hn=0;return Kt.forEach((Gn,jn)=>{const hr=Hn+Gn.length;let Pr=It.slice(Hn,hr);Hn=hr,jn%2===1&&(Pr=ve.createElement("span",{className:`${Tt}-menu-item-keyword`,key:`separator-${jn}`},Pr)),Fn.push(Pr)}),Fn}const ht=(It,_t,Tt,Kt)=>{const Fn=[],Hn=It.toLowerCase();return _t.forEach((Gn,jn)=>{jn!==0&&Fn.push(" / ");let hr=Gn[Kt.label];const Pr=typeof hr;(Pr==="string"||Pr==="number")&&(hr=it(String(hr),Hn,Tt)),Fn.push(hr)}),Fn},cn=ve.forwardRef((It,_t)=>{var Tt;const{prefixCls:Kt,size:Fn,disabled:Hn,className:Gn,rootClassName:jn,multiple:hr,bordered:Pr=!0,transitionName:Tr,choiceTransitionName:Lr="",popupClassName:Cr,dropdownClassName:Rr,expandIcon:Xr,placement:oa,showSearch:ta,allowClear:xa=!0,notFoundContent:Ia,direction:Ur,getPopupContainer:ya,status:Xa,showArrow:Pa,builtinPlacements:pa,style:kr,variant:Za}=It,Sa=Vt(It,["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,wn.Z)(Sa,["suffixIcon"]),{getPrefixCls:Kr,getPopupContainer:Ya,className:Mi,style:ji}=(0,Je.dj)("cascader"),{popupOverflow:za}=ve.useContext(Je.E_),{status:Di,hasFeedback:pi,isFormItemInput:Wi,feedbackIcon:Ci}=ve.useContext(Nt.aM),ei=(0,At.F)(Di,Xa),[Ar,Qn,xr,Sr]=Vn(Kt,Ur),tr=xr==="rtl",$r=Kr(),sa=(0,pn.Z)(Ar),[br,Dr,jr]=(0,Wt.Z)(Ar,sa),Qr=(0,pn.Z)(Qn),[_a]=Dn(Qn,Qr),{compactSize:$a,compactItemClassnames:ea}=(0,Un.ri)(Ar,Ur),[ai,yi]=(0,qt.Z)("cascader",Za,Pr),zi=Ia||(Sr==null?void 0:Sr("Cascader"))||ve.createElement(Pt.Z,{componentName:"Cascader"}),Ui=Le()(Cr||Rr,`${Qn}-dropdown`,{[`${Qn}-dropdown-rtl`]:xr==="rtl"},jn,sa,Qr,Dr,jr),Ji=ve.useMemo(()=>{if(!ta)return ta;let Yo={render:ht};return typeof ta=="object"&&(Yo=Object.assign(Object.assign({},Yo),ta)),Yo},[ta]),Yi=(0,nt.Z)(Yo=>{var no;return(no=Fn!=null?Fn:$a)!==null&&no!==void 0?no:Yo}),co=ve.useContext(nn.Z),No=Hn!=null?Hn:co,[$o,Wo]=Pn(Ar,tr,Xr),Da=Zt(Qn,hr),Ii=(0,_n.Z)(It.suffixIcon,Pa),{suffixIcon:ri,removeIcon:So,clearIcon:di}=(0,en.Z)(Object.assign(Object.assign({},It),{hasFeedback:pi,feedbackIcon:Ci,showSuffixIcon:Ii,multiple:hr,prefixCls:Ar,componentName:"Cascader"})),il=ve.useMemo(()=>oa!==void 0?oa:tr?"bottomRight":"bottomLeft",[oa,tr]),$l=xa===!0?{clearIcon:di}:xa,[Al]=(0,gn.Cn)("SelectLike",(Tt=la.dropdownStyle)===null||Tt===void 0?void 0:Tt.zIndex),Vo=ve.createElement(un,Object.assign({prefixCls:Ar,className:Le()(!Kt&&Qn,{[`${Ar}-lg`]:Yi==="large",[`${Ar}-sm`]:Yi==="small",[`${Ar}-rtl`]:tr,[`${Ar}-${ai}`]:yi,[`${Ar}-in-form-item`]:Wi},(0,At.Z)(Ar,ei,pi),ea,Mi,Gn,jn,sa,Qr,Dr,jr),disabled:No,style:Object.assign(Object.assign({},ji),kr)},la,{builtinPlacements:(0,wt.Z)(pa,za),direction:xr,placement:il,notFoundContent:zi,allowClear:$l,showSearch:Ji,expandIcon:$o,suffixIcon:ri,removeIcon:So,loadingIcon:Wo,checkable:Da,dropdownClassName:Ui,dropdownPrefixCls:Kt||Qn,dropdownStyle:Object.assign(Object.assign({},la.dropdownStyle),{zIndex:Al}),choiceTransitionName:(0,Rt.m)($r,"",Lr),transitionName:(0,Rt.m)($r,"slide-up",Tr),getPopupContainer:ya||Ya,ref:_t}));return _a(br(Vo))}),ar=(0,Ut.Z)(cn,"dropdownAlign",It=>(0,wn.Z)(It,["visible"]));cn.SHOW_PARENT=kt,cn.SHOW_CHILD=ft,cn.Panel=Mt,cn._InternalPanelDoNotUseOrYouWillBeFired=ar;var mr=cn},62673:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return gt}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(16632),xe=E(8654),Ee=E(12919),Ce=E(63872),ke=E(48755),De=E(2171),fe=E(83397),je=E(56553),ct=y.createContext(null),Ke=E(36170),Te=E(74632),we=function(lt,Ue){var be={};for(var We in lt)Object.prototype.hasOwnProperty.call(lt,We)&&Ue.indexOf(We)<0&&(be[We]=lt[We]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,We=Object.getOwnPropertySymbols(lt);Be<We.length;Be++)Ue.indexOf(We[Be])<0&&Object.prototype.propertyIsEnumerable.call(lt,We[Be])&&(be[We[Be]]=lt[We[Be]]);return be};const Ie=(lt,Ue)=>{var be;const{prefixCls:We,className:Be,rootClassName:de,children:St,indeterminate:Qe=!1,style:ze,onMouseEnter:st,onMouseLeave:Se,skipGroup:ye=!1,disabled:vt}=lt,Ht=we(lt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:$t,direction:Fe,checkbox:pt}=y.useContext(ke.E_),ut=y.useContext(ct),{isFormItemInput:Yt}=y.useContext(je.aM),bt=y.useContext(De.Z),Ct=(be=(ut==null?void 0:ut.disabled)||vt)!==null&&be!==void 0?be:bt,mt=y.useRef(Ht.value),mn=y.useRef(null),zt=(0,xe.sQ)(Ue,mn);y.useEffect(()=>{ut==null||ut.registerValue(Ht.value)},[]),y.useEffect(()=>{if(!ye)return Ht.value!==mt.current&&(ut==null||ut.cancelValue(mt.current),ut==null||ut.registerValue(Ht.value),mt.current=Ht.value),()=>ut==null?void 0:ut.cancelValue(Ht.value)},[Ht.value]),y.useEffect(()=>{var qe;!((qe=mn.current)===null||qe===void 0)&&qe.input&&(mn.current.input.indeterminate=Qe)},[Qe]);const ue=$t("checkbox",We),ie=(0,fe.Z)(ue),[re,oe,pe]=(0,Ke.ZP)(ue,ie),ae=Object.assign({},Ht);ut&&!ye&&(ae.onChange=function(){Ht.onChange&&Ht.onChange.apply(Ht,arguments),ut.toggleOption&&ut.toggleOption({label:St,value:Ht.value})},ae.name=ut.name,ae.checked=ut.value.includes(Ht.value));const me=ce()(`${ue}-wrapper`,{[`${ue}-rtl`]:Fe==="rtl",[`${ue}-wrapper-checked`]:ae.checked,[`${ue}-wrapper-disabled`]:Ct,[`${ue}-wrapper-in-form-item`]:Yt},pt==null?void 0:pt.className,Be,de,pe,ie,oe),Ze=ce()({[`${ue}-indeterminate`]:Qe},Ce.A,oe),[Ot,at]=(0,Te.Z)(ae.onClick);return re(y.createElement(Ee.Z,{component:"Checkbox",disabled:Ct},y.createElement("label",{className:me,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),ze),onMouseEnter:st,onMouseLeave:Se,onClick:Ot},y.createElement(Le.Z,Object.assign({},ae,{onClick:at,prefixCls:ue,className:Ze,disabled:Ct,ref:zt})),St!==void 0&&y.createElement("span",{className:`${ue}-label`},St))))};var rt=y.forwardRef(Ie),Et=E(94480),Oe=E(2738),Ae=function(lt,Ue){var be={};for(var We in lt)Object.prototype.hasOwnProperty.call(lt,We)&&Ue.indexOf(We)<0&&(be[We]=lt[We]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,We=Object.getOwnPropertySymbols(lt);Be<We.length;Be++)Ue.indexOf(We[Be])<0&&Object.prototype.propertyIsEnumerable.call(lt,We[Be])&&(be[We[Be]]=lt[We[Be]]);return be},Ye=y.forwardRef((lt,Ue)=>{const{defaultValue:be,children:We,options:Be=[],prefixCls:de,className:St,rootClassName:Qe,style:ze,onChange:st}=lt,Se=Ae(lt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ye,direction:vt}=y.useContext(ke.E_),[Ht,$t]=y.useState(Se.value||be||[]),[Fe,pt]=y.useState([]);y.useEffect(()=>{"value"in Se&&$t(Se.value||[])},[Se.value]);const ut=y.useMemo(()=>Be.map(Ze=>typeof Ze=="string"||typeof Ze=="number"?{label:Ze,value:Ze}:Ze),[Be]),Yt=Ze=>{pt(Ot=>Ot.filter(at=>at!==Ze))},bt=Ze=>{pt(Ot=>[].concat((0,Et.Z)(Ot),[Ze]))},Ct=Ze=>{const Ot=Ht.indexOf(Ze.value),at=(0,Et.Z)(Ht);Ot===-1?at.push(Ze.value):at.splice(Ot,1),"value"in Se||$t(at),st==null||st(at.filter(qe=>Fe.includes(qe)).sort((qe,yt)=>{const Ft=ut.findIndex(Xe=>Xe.value===qe),jt=ut.findIndex(Xe=>Xe.value===yt);return Ft-jt}))},mt=ye("checkbox",de),mn=`${mt}-group`,zt=(0,fe.Z)(mt),[ue,ie,re]=(0,Ke.ZP)(mt,zt),oe=(0,Oe.Z)(Se,["value","disabled"]),pe=Be.length?ut.map(Ze=>y.createElement(rt,{prefixCls:mt,key:Ze.value.toString(),disabled:"disabled"in Ze?Ze.disabled:Se.disabled,value:Ze.value,checked:Ht.includes(Ze.value),onChange:Ze.onChange,className:`${mn}-item`,style:Ze.style,title:Ze.title,id:Ze.id,required:Ze.required},Ze.label)):We,ae={toggleOption:Ct,value:Ht,disabled:Se.disabled,name:Se.name,registerValue:bt,cancelValue:Yt},me=ce()(mn,{[`${mn}-rtl`]:vt==="rtl"},St,Qe,re,zt,ie);return ue(y.createElement("div",Object.assign({className:me,style:ze},oe,{ref:Ue}),y.createElement(ct.Provider,{value:ae},pe)))});const xt=rt;xt.Group=Ye,xt.__ANT_CHECKBOX=!0;var gt=xt},36170:function(Mn,Jt,E){"use strict";E.d(Jt,{C2:function(){return Ee}});var y=E(36237),ve=E(63356),ce=E(51636),Le=E(16931);const xe=Ce=>{const{checkboxCls:ke}=Ce,De=`${ke}-wrapper`;return[{[`${ke}-group`]:Object.assign(Object.assign({},(0,ve.Wf)(Ce)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ce.marginXS,[`> ${Ce.antCls}-row`]:{flex:1}}),[De]:Object.assign(Object.assign({},(0,ve.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,ve.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,ve.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[xe(De)]}Jt.ZP=(0,Le.I$)("Checkbox",(Ce,ke)=>{let{prefixCls:De}=ke;return[Ee(De,Ce)]})},38406:function(Mn,Jt,E){"use strict";var y=E(59301),ve=E(48755),ce=E(584);const Le=xe=>{const{componentName:Ee}=xe,{getPrefixCls:Ce}=(0,y.useContext)(ve.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)}};Jt.Z=Le},37285:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ke}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(48755),xe=E(36237),Ee=E(63356),Ce=E(16931),ke=E(51636);const De=Te=>{const{componentCls:we,sizePaddingEdgeHorizontal:Ie,colorSplit:Pe,lineWidth:rt,textPaddingInline:Et,orientationMargin:Oe,verticalMarginInline:Ae}=Te;return{[we]:Object.assign(Object.assign({},(0,Ee.Wf)(Te)),{borderBlockStart:`${(0,xe.unit)(rt)} solid ${Pe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ae,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,xe.unit)(rt)} solid ${Pe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,xe.unit)(Te.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${we}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,xe.unit)(Te.dividerHorizontalWithTextGutterMargin)} 0`,color:Te.colorTextHeading,fontWeight:500,fontSize:Te.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Pe}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,xe.unit)(rt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${we}-with-text-start`]:{"&::before":{width:`calc(${Oe} * 100%)`},"&::after":{width:`calc(100% - ${Oe} * 100%)`}},[`&-horizontal${we}-with-text-end`]:{"&::before":{width:`calc(100% - ${Oe} * 100%)`},"&::after":{width:`calc(${Oe} * 100%)`}},[`${we}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Et},"&-dashed":{background:"none",borderColor:Pe,borderStyle:"dashed",borderWidth:`${(0,xe.unit)(rt)} 0 0`},[`&-horizontal${we}-with-text${we}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${we}-dashed`]:{borderInlineStartWidth:rt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Pe,borderStyle:"dotted",borderWidth:`${(0,xe.unit)(rt)} 0 0`},[`&-horizontal${we}-with-text${we}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${we}-dotted`]:{borderInlineStartWidth:rt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${we}-with-text`]:{color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize},[`&-horizontal${we}-with-text-start${we}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${we}-inner-text`]:{paddingInlineStart:Ie}},[`&-horizontal${we}-with-text-end${we}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${we}-inner-text`]:{paddingInlineEnd:Ie}}})}},fe=Te=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Te.marginXS});var je=(0,Ce.I$)("Divider",Te=>{const we=(0,ke.mergeToken)(Te,{dividerHorizontalWithTextGutterMargin:Te.margin,dividerHorizontalGutterMargin:Te.marginLG,sizePaddingEdgeHorizontal:0});return[De(we)]},fe,{unitless:{orientationMargin:!0}}),Ne=function(Te,we){var Ie={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&we.indexOf(Pe)<0&&(Ie[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Pe=Object.getOwnPropertySymbols(Te);rt<Pe.length;rt++)we.indexOf(Pe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[rt])&&(Ie[Pe[rt]]=Te[Pe[rt]]);return Ie},Ke=Te=>{const{getPrefixCls:we,direction:Ie,className:Pe,style:rt}=(0,Le.dj)("divider"),{prefixCls:Et,type:Oe="horizontal",orientation:Ae="center",orientationMargin:Ve,className:Ye,rootClassName:xt,children:gt,dashed:lt,variant:Ue="solid",plain:be,style:We}=Te,Be=Ne(Te,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),de=we("divider",Et),[St,Qe,ze]=je(de),st=!!gt,Se=y.useMemo(()=>Ae==="left"?Ie==="rtl"?"end":"start":Ae==="right"?Ie==="rtl"?"start":"end":Ae,[Ie,Ae]),ye=Se==="start"&&Ve!=null,vt=Se==="end"&&Ve!=null,Ht=ce()(de,Pe,Qe,ze,`${de}-${Oe}`,{[`${de}-with-text`]:st,[`${de}-with-text-${Se}`]:st,[`${de}-dashed`]:!!lt,[`${de}-${Ue}`]:Ue!=="solid",[`${de}-plain`]:!!be,[`${de}-rtl`]:Ie==="rtl",[`${de}-no-default-orientation-margin-start`]:ye,[`${de}-no-default-orientation-margin-end`]:vt},Ye,xt),$t=y.useMemo(()=>typeof Ve=="number"?Ve:/^\d+$/.test(Ve)?Number(Ve):Ve,[Ve]),Fe={marginInlineStart:ye?$t:void 0,marginInlineEnd:vt?$t:void 0};return St(y.createElement("div",Object.assign({className:Ht,style:Object.assign(Object.assign({},rt),We)},Be,{role:"separator"}),gt&&Oe!=="vertical"&&y.createElement("span",{className:`${de}-inner-text`,style:Fe},gt)))}},36207:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ot}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(33885),xe=E(42978),Ee=E(43403),Ce=E(34280),ke=y.createContext(null),De=y.createContext({}),fe=ke,je=E(20068),Ne=E(54476),ct=E(77900),Ke=E(10228),Te=E(26112),we=E(75931),Ie=E(8654),Pe=["prefixCls","className","containerRef"],rt=function(qe){var yt=qe.prefixCls,Ft=qe.className,jt=qe.containerRef,Xe=(0,we.Z)(qe,Pe),tt=y.useContext(De),Gt=tt.panel,un=(0,Ie.x1)(Gt,jt);return y.createElement("div",(0,Ne.Z)({className:ce()("".concat(yt,"-content"),Ft),role:"dialog",ref:un},(0,Te.Z)(qe,{aria:!0}),{"aria-modal":"true"},Xe))},Et=rt,Oe=E(48736);function Ae(at){return typeof at=="string"&&String(Number(at))===at?((0,Oe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(at)):at}function Ve(at){warning(!("wrapperClassName"in at),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!at.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ye={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function xt(at,qe){var yt,Ft,jt,Xe=at.prefixCls,tt=at.open,Gt=at.placement,un=at.inline,wn=at.push,gn=at.forceRender,Rt=at.autoFocus,Ut=at.keyboard,At=at.classNames,Je=at.rootClassName,Pt=at.rootStyle,nn=at.zIndex,pn=at.className,nt=at.id,Nt=at.style,qt=at.motion,wt=at.width,Wt=at.height,en=at.children,_n=at.mask,Un=at.maskClosable,On=at.maskMotion,Vn=at.maskClassName,Zt=at.maskStyle,Xt=at.afterOpenChange,an=at.onClose,xn=at.onMouseEnter,ln=at.onMouseOver,Pn=at.onMouseLeave,Sn=at.onClick,Rn=at.onKeyDown,Er=at.onKeyUp,Jn=at.styles,dr=at.drawerRender,yr=y.useRef(),gr=y.useRef(),Vr=y.useRef();y.useImperativeHandle(qe,function(){return yr.current});var Zr=function(Tt){var Kt=Tt.keyCode,Fn=Tt.shiftKey;switch(Kt){case Ke.Z.TAB:{if(Kt===Ke.Z.TAB){if(!Fn&&document.activeElement===Vr.current){var Hn;(Hn=gr.current)===null||Hn===void 0||Hn.focus({preventScroll:!0})}else if(Fn&&document.activeElement===gr.current){var Gn;(Gn=Vr.current)===null||Gn===void 0||Gn.focus({preventScroll:!0})}}break}case Ke.Z.ESC:{an&&Ut&&(Tt.stopPropagation(),an(Tt));break}}};y.useEffect(function(){if(tt&&Rt){var _t;(_t=yr.current)===null||_t===void 0||_t.focus({preventScroll:!0})}},[tt]);var Dn=y.useState(!1),Zn=(0,xe.Z)(Dn,2),fr=Zn[0],ur=Zn[1],Mt=y.useContext(fe),Vt;typeof wn=="boolean"?Vt=wn?{}:{distance:0}:Vt=wn||{};var ft=(yt=(Ft=(jt=Vt)===null||jt===void 0?void 0:jt.distance)!==null&&Ft!==void 0?Ft:Mt==null?void 0:Mt.pushDistance)!==null&&yt!==void 0?yt:180,kt=y.useMemo(function(){return{pushDistance:ft,push:function(){ur(!0)},pull:function(){ur(!1)}}},[ft]);y.useEffect(function(){if(tt){var _t;Mt==null||(_t=Mt.push)===null||_t===void 0||_t.call(Mt)}else{var Tt;Mt==null||(Tt=Mt.pull)===null||Tt===void 0||Tt.call(Mt)}},[tt]),y.useEffect(function(){return function(){var _t;Mt==null||(_t=Mt.pull)===null||_t===void 0||_t.call(Mt)}},[]);var it=_n&&y.createElement(ct.default,(0,Ne.Z)({key:"mask"},On,{visible:tt}),function(_t,Tt){var Kt=_t.className,Fn=_t.style;return y.createElement("div",{className:ce()("".concat(Xe,"-mask"),Kt,At==null?void 0:At.mask,Vn),style:(0,Le.Z)((0,Le.Z)((0,Le.Z)({},Fn),Zt),Jn==null?void 0:Jn.mask),onClick:Un&&tt?an:void 0,ref:Tt})}),ht=typeof qt=="function"?qt(Gt):qt,cn={};if(fr&&ft)switch(Gt){case"top":cn.transform="translateY(".concat(ft,"px)");break;case"bottom":cn.transform="translateY(".concat(-ft,"px)");break;case"left":cn.transform="translateX(".concat(ft,"px)");break;default:cn.transform="translateX(".concat(-ft,"px)");break}Gt==="left"||Gt==="right"?cn.width=Ae(wt):cn.height=Ae(Wt);var ar={onMouseEnter:xn,onMouseOver:ln,onMouseLeave:Pn,onClick:Sn,onKeyDown:Rn,onKeyUp:Er},mr=y.createElement(ct.default,(0,Ne.Z)({key:"panel"},ht,{visible:tt,forceRender:gn,onVisibleChanged:function(Tt){Xt==null||Xt(Tt)},removeOnLeave:!1,leavedClassName:"".concat(Xe,"-content-wrapper-hidden")}),function(_t,Tt){var Kt=_t.className,Fn=_t.style,Hn=y.createElement(Et,(0,Ne.Z)({id:nt,containerRef:Tt,prefixCls:Xe,className:ce()(pn,At==null?void 0:At.content),style:(0,Le.Z)((0,Le.Z)({},Nt),Jn==null?void 0:Jn.content)},(0,Te.Z)(at,{aria:!0}),ar),en);return y.createElement("div",(0,Ne.Z)({className:ce()("".concat(Xe,"-content-wrapper"),At==null?void 0:At.wrapper,Kt),style:(0,Le.Z)((0,Le.Z)((0,Le.Z)({},cn),Fn),Jn==null?void 0:Jn.wrapper)},(0,Te.Z)(at,{data:!0})),dr?dr(Hn):Hn)}),It=(0,Le.Z)({},Pt);return nn&&(It.zIndex=nn),y.createElement(fe.Provider,{value:kt},y.createElement("div",{className:ce()(Xe,"".concat(Xe,"-").concat(Gt),Je,(0,je.Z)((0,je.Z)({},"".concat(Xe,"-open"),tt),"".concat(Xe,"-inline"),un)),style:It,tabIndex:-1,ref:yr,onKeyDown:Zr},it,y.createElement("div",{tabIndex:0,ref:gr,style:Ye,"aria-hidden":"true","data-sentinel":"start"}),mr,y.createElement("div",{tabIndex:0,ref:Vr,style:Ye,"aria-hidden":"true","data-sentinel":"end"})))}var gt=y.forwardRef(xt),lt=gt,Ue=function(qe){var yt=qe.open,Ft=yt===void 0?!1:yt,jt=qe.prefixCls,Xe=jt===void 0?"rc-drawer":jt,tt=qe.placement,Gt=tt===void 0?"right":tt,un=qe.autoFocus,wn=un===void 0?!0:un,gn=qe.keyboard,Rt=gn===void 0?!0:gn,Ut=qe.width,At=Ut===void 0?378:Ut,Je=qe.mask,Pt=Je===void 0?!0:Je,nn=qe.maskClosable,pn=nn===void 0?!0:nn,nt=qe.getContainer,Nt=qe.forceRender,qt=qe.afterOpenChange,wt=qe.destroyOnClose,Wt=qe.onMouseEnter,en=qe.onMouseOver,_n=qe.onMouseLeave,Un=qe.onClick,On=qe.onKeyDown,Vn=qe.onKeyUp,Zt=qe.panelRef,Xt=y.useState(!1),an=(0,xe.Z)(Xt,2),xn=an[0],ln=an[1],Pn=y.useState(!1),Sn=(0,xe.Z)(Pn,2),Rn=Sn[0],Er=Sn[1];(0,Ce.Z)(function(){Er(!0)},[]);var Jn=Rn?Ft:!1,dr=y.useRef(),yr=y.useRef();(0,Ce.Z)(function(){Jn&&(yr.current=document.activeElement)},[Jn]);var gr=function(fr){var ur;if(ln(fr),qt==null||qt(fr),!fr&&yr.current&&!((ur=dr.current)!==null&&ur!==void 0&&ur.contains(yr.current))){var Mt;(Mt=yr.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}},Vr=y.useMemo(function(){return{panel:Zt}},[Zt]);if(!Nt&&!xn&&!Jn&&wt)return null;var Zr={onMouseEnter:Wt,onMouseOver:en,onMouseLeave:_n,onClick:Un,onKeyDown:On,onKeyUp:Vn},Dn=(0,Le.Z)((0,Le.Z)({},qe),{},{open:Jn,prefixCls:Xe,placement:Gt,autoFocus:wn,keyboard:Rt,width:At,mask:Pt,maskClosable:pn,inline:nt===!1,afterOpenChange:gr,ref:dr},Zr);return y.createElement(De.Provider,{value:Vr},y.createElement(Ee.Z,{open:Jn||Nt||xn,autoDestroy:!1,getContainer:nt,autoLock:Pt&&(Jn||xn)},y.createElement(lt,Dn)))},be=Ue,We=be,Be=E(62487),de=E(75030),St=E(86641),Qe=E(55743),ze=E(48755),st=E(91190),Se=E(78776),ye=E(458),Ht=at=>{var qe,yt;const{prefixCls:Ft,title:jt,footer:Xe,extra:tt,loading:Gt,onClose:un,headerStyle:wn,bodyStyle:gn,footerStyle:Rt,children:Ut,classNames:At,styles:Je}=at,Pt=(0,ze.dj)("drawer"),nn=y.useCallback(wt=>y.createElement("button",{type:"button",onClick:un,"aria-label":"Close",className:`${Ft}-close`},wt),[un]),[pn,nt]=(0,Se.Z)((0,Se.w)(at),(0,Se.w)(Pt),{closable:!0,closeIconRender:nn}),Nt=y.useMemo(()=>{var wt,Wt;return!jt&&!pn?null:y.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(wt=Pt.styles)===null||wt===void 0?void 0:wt.header),wn),Je==null?void 0:Je.header),className:ce()(`${Ft}-header`,{[`${Ft}-header-close-only`]:pn&&!jt&&!tt},(Wt=Pt.classNames)===null||Wt===void 0?void 0:Wt.header,At==null?void 0:At.header)},y.createElement("div",{className:`${Ft}-header-title`},nt,jt&&y.createElement("div",{className:`${Ft}-title`},jt)),tt&&y.createElement("div",{className:`${Ft}-extra`},tt))},[pn,nt,tt,wn,Ft,jt]),qt=y.useMemo(()=>{var wt,Wt;if(!Xe)return null;const en=`${Ft}-footer`;return y.createElement("div",{className:ce()(en,(wt=Pt.classNames)===null||wt===void 0?void 0:wt.footer,At==null?void 0:At.footer),style:Object.assign(Object.assign(Object.assign({},(Wt=Pt.styles)===null||Wt===void 0?void 0:Wt.footer),Rt),Je==null?void 0:Je.footer)},Xe)},[Xe,Rt,Ft]);return y.createElement(y.Fragment,null,Nt,y.createElement("div",{className:ce()(`${Ft}-body`,At==null?void 0:At.body,(qe=Pt.classNames)===null||qe===void 0?void 0:qe.body),style:Object.assign(Object.assign(Object.assign({},(yt=Pt.styles)===null||yt===void 0?void 0:yt.body),gn),Je==null?void 0:Je.body)},Gt?y.createElement(ye.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Ft}-body-skeleton`}):Ut),qt)},$t=E(36237),Fe=E(63356),pt=E(16931),ut=E(51636);const Yt=at=>{const qe="100%";return{left:`translateX(-${qe})`,right:`translateX(${qe})`,top:`translateY(-${qe})`,bottom:`translateY(${qe})`}[at]},bt=(at,qe)=>({"&-enter, &-appear":Object.assign(Object.assign({},at),{"&-active":qe}),"&-leave":Object.assign(Object.assign({},qe),{"&-active":at})}),Ct=(at,qe)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${qe}`}}},bt({opacity:at},{opacity:1})),mt=(at,qe)=>[Ct(.7,qe),bt({transform:Yt(at)},{transform:"none"})];var zt=at=>{const{componentCls:qe,motionDurationSlow:yt}=at;return{[qe]:{[`${qe}-mask-motion`]:Ct(0,yt),[`${qe}-panel-motion`]:["left","right","top","bottom"].reduce((Ft,jt)=>Object.assign(Object.assign({},Ft),{[`&-${jt}`]:mt(jt,yt)}),{})}}};const ue=at=>{const{borderRadiusSM:qe,componentCls:yt,zIndexPopup:Ft,colorBgMask:jt,colorBgElevated:Xe,motionDurationSlow:tt,motionDurationMid:Gt,paddingXS:un,padding:wn,paddingLG:gn,fontSizeLG:Rt,lineHeightLG:Ut,lineWidth:At,lineType:Je,colorSplit:Pt,marginXS:nn,colorIcon:pn,colorIconHover:nt,colorBgTextHover:Nt,colorBgTextActive:qt,colorText:wt,fontWeightStrong:Wt,footerPaddingBlock:en,footerPaddingInline:_n,calc:Un}=at,On=`${yt}-content-wrapper`;return{[yt]:{position:"fixed",inset:0,zIndex:Ft,pointerEvents:"none",color:wt,"&-pure":{position:"relative",background:Xe,display:"flex",flexDirection:"column",[`&${yt}-left`]:{boxShadow:at.boxShadowDrawerLeft},[`&${yt}-right`]:{boxShadow:at.boxShadowDrawerRight},[`&${yt}-top`]:{boxShadow:at.boxShadowDrawerUp},[`&${yt}-bottom`]:{boxShadow:at.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${yt}-mask`]:{position:"absolute",inset:0,zIndex:Ft,background:jt,pointerEvents:"auto"},[On]:{position:"absolute",zIndex:Ft,maxWidth:"100vw",transition:`all ${tt}`,"&-hidden":{display:"none"}},[`&-left > ${On}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:at.boxShadowDrawerLeft},[`&-right > ${On}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:at.boxShadowDrawerRight},[`&-top > ${On}`]:{top:0,insetInline:0,boxShadow:at.boxShadowDrawerUp},[`&-bottom > ${On}`]:{bottom:0,insetInline:0,boxShadow:at.boxShadowDrawerDown},[`${yt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Xe,pointerEvents:"auto"},[`${yt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,$t.unit)(wn)} ${(0,$t.unit)(gn)}`,fontSize:Rt,lineHeight:Ut,borderBottom:`${(0,$t.unit)(At)} ${Je} ${Pt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${yt}-extra`]:{flex:"none"},[`${yt}-close`]:Object.assign({display:"inline-flex",width:Un(Rt).add(un).equal(),height:Un(Rt).add(un).equal(),borderRadius:qe,justifyContent:"center",alignItems:"center",marginInlineEnd:nn,color:pn,fontWeight:Wt,fontSize:Rt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Gt}`,textRendering:"auto","&:hover":{color:nt,backgroundColor:Nt,textDecoration:"none"},"&:active":{backgroundColor:qt}},(0,Fe.Qy)(at)),[`${yt}-title`]:{flex:1,margin:0,fontWeight:at.fontWeightStrong,fontSize:Rt,lineHeight:Ut},[`${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,$t.unit)(en)} ${(0,$t.unit)(_n)}`,borderTop:`${(0,$t.unit)(At)} ${Je} ${Pt}`},"&-rtl":{direction:"rtl"}}}},ie=at=>({zIndexPopup:at.zIndexPopupBase,footerPaddingBlock:at.paddingXS,footerPaddingInline:at.padding});var re=(0,pt.I$)("Drawer",at=>{const qe=(0,ut.mergeToken)(at,{});return[ue(qe),zt(qe)]},ie),oe=function(at,qe){var yt={};for(var Ft in at)Object.prototype.hasOwnProperty.call(at,Ft)&&qe.indexOf(Ft)<0&&(yt[Ft]=at[Ft]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Ft=Object.getOwnPropertySymbols(at);jt<Ft.length;jt++)qe.indexOf(Ft[jt])<0&&Object.prototype.propertyIsEnumerable.call(at,Ft[jt])&&(yt[Ft[jt]]=at[Ft[jt]]);return yt};const pe=null,ae={distance:180},me=at=>{var qe;const{rootClassName:yt,width:Ft,height:jt,size:Xe="default",mask:tt=!0,push:Gt=ae,open:un,afterOpenChange:wn,onClose:gn,prefixCls:Rt,getContainer:Ut,style:At,className:Je,visible:Pt,afterVisibleChange:nn,maskStyle:pn,drawerStyle:nt,contentWrapperStyle:Nt}=at,qt=oe(at,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:wt,getPrefixCls:Wt,direction:en,className:_n,style:Un,classNames:On,styles:Vn}=(0,ze.dj)("drawer"),Zt=Wt("drawer",Rt),[Xt,an,xn]=re(Zt),ln=Ut===void 0&&wt?()=>wt(document.body):Ut,Pn=ce()({"no-mask":!tt,[`${Zt}-rtl`]:en==="rtl"},yt,an,xn),Sn=y.useMemo(()=>Ft!=null?Ft:Xe==="large"?736:378,[Ft,Xe]),Rn=y.useMemo(()=>jt!=null?jt:Xe==="large"?736:378,[jt,Xe]),Er={motionName:(0,St.m)(Zt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Jn=Dn=>({motionName:(0,St.m)(Zt,`panel-motion-${Dn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),dr=(0,st.H)(),[yr,gr]=(0,de.Cn)("Drawer",qt.zIndex),{classNames:Vr={},styles:Zr={}}=qt;return Xt(y.createElement(Be.Z,{form:!0,space:!0},y.createElement(Qe.Z.Provider,{value:gr},y.createElement(We,Object.assign({prefixCls:Zt,onClose:gn,maskMotion:Er,motion:Jn},qt,{classNames:{mask:ce()(Vr.mask,On.mask),content:ce()(Vr.content,On.content),wrapper:ce()(Vr.wrapper,On.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Zr.mask),pn),Vn.mask),content:Object.assign(Object.assign(Object.assign({},Zr.content),nt),Vn.content),wrapper:Object.assign(Object.assign(Object.assign({},Zr.wrapper),Nt),Vn.wrapper)},open:un!=null?un:Pt,mask:tt,push:Gt,width:Sn,height:Rn,style:Object.assign(Object.assign({},Un),At),className:ce()(_n,Je),rootClassName:Pn,getContainer:ln,afterOpenChange:wn!=null?wn:nn,panelRef:dr,zIndex:yr}),y.createElement(Ht,Object.assign({prefixCls:Zt},qt,{onClose:gn}))))))},Ze=at=>{const{prefixCls:qe,style:yt,className:Ft,placement:jt="right"}=at,Xe=oe(at,["prefixCls","style","className","placement"]),{getPrefixCls:tt}=y.useContext(ze.E_),Gt=tt("drawer",qe),[un,wn,gn]=re(Gt),Rt=ce()(Gt,`${Gt}-pure`,`${Gt}-${jt}`,wn,gn,Ft);return un(y.createElement("div",{className:Rt,style:yt},y.createElement(Ht,Object.assign({prefixCls:Gt},Xe))))};me._InternalPanelDoNotUseOrYouWillBeFired=Ze;var Ot=me},19563:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return $t}});var y=E(59301),ve=E(33853),ce=E(38819),Le=E(92310),xe=E.n(Le),Ee=E(96478),Ce=E(6089),ke=E(18929),De=E(2738),fe=E(75030),Ne=Fe=>typeof Fe!="object"&&typeof Fe!="function"||Fe===null,ct=E(52838),Ke=E(45915),Te=E(22703),we=E(32383),Ie=E(55743),Pe=E(48755),rt=E(83397),Et=E(93041),Oe=E(78857),Ae=E(57700),Ve=E(36237),Ye=E(63356),xt=E(46e3),gt=E(93873),lt=E(34925),Ue=E(37645),be=E(36305),We=E(16931),Be=E(51636),St=Fe=>{const{componentCls:pt,menuCls:ut,colorError:Yt,colorTextLightSolid:bt}=Fe,Ct=`${ut}-item`;return{[`${pt}, ${pt}-menu-submenu`]:{[`${ut} ${Ct}`]:{[`&${Ct}-danger:not(${Ct}-disabled)`]:{color:Yt,"&:hover":{color:bt,backgroundColor:Yt}}}}}};const Qe=Fe=>{const{componentCls:pt,menuCls:ut,zIndexPopup:Yt,dropdownArrowDistance:bt,sizePopupArrow:Ct,antCls:mt,iconCls:mn,motionDurationMid:zt,paddingBlock:ue,fontSize:ie,dropdownEdgeChildPadding:re,colorTextDisabled:oe,fontSizeIcon:pe,controlPaddingHorizontal:ae,colorBgElevated:me}=Fe;return[{[pt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Yt,display:"block","&::before":{position:"absolute",insetBlock:Fe.calc(Ct).div(2).sub(bt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${mt}-btn`]:{[`& > ${mn}-down, & > ${mt}-btn-icon > ${mn}-down`]:{fontSize:pe}},[`${pt}-wrap`]:{position:"relative",[`${mt}-btn > ${mn}-down`]:{fontSize:pe},[`${mn}-down::before`]:{transition:`transform ${zt}`}},[`${pt}-wrap-open`]:{[`${mn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${mt}-slide-down-enter${mt}-slide-down-enter-active${pt}-placement-bottomLeft,
&${mt}-slide-down-appear${mt}-slide-down-appear-active${pt}-placement-bottomLeft,
&${mt}-slide-down-enter${mt}-slide-down-enter-active${pt}-placement-bottom,
&${mt}-slide-down-appear${mt}-slide-down-appear-active${pt}-placement-bottom,
&${mt}-slide-down-enter${mt}-slide-down-enter-active${pt}-placement-bottomRight,
&${mt}-slide-down-appear${mt}-slide-down-appear-active${pt}-placement-bottomRight`]:{animationName:xt.fJ},[`&${mt}-slide-up-enter${mt}-slide-up-enter-active${pt}-placement-topLeft,
&${mt}-slide-up-appear${mt}-slide-up-appear-active${pt}-placement-topLeft,
&${mt}-slide-up-enter${mt}-slide-up-enter-active${pt}-placement-top,
&${mt}-slide-up-appear${mt}-slide-up-appear-active${pt}-placement-top,
&${mt}-slide-up-enter${mt}-slide-up-enter-active${pt}-placement-topRight,
&${mt}-slide-up-appear${mt}-slide-up-appear-active${pt}-placement-topRight`]:{animationName:xt.Qt},[`&${mt}-slide-down-leave${mt}-slide-down-leave-active${pt}-placement-bottomLeft,
&${mt}-slide-down-leave${mt}-slide-down-leave-active${pt}-placement-bottom,
&${mt}-slide-down-leave${mt}-slide-down-leave-active${pt}-placement-bottomRight`]:{animationName:xt.Uw},[`&${mt}-slide-up-leave${mt}-slide-up-leave-active${pt}-placement-topLeft,
&${mt}-slide-up-leave${mt}-slide-up-leave-active${pt}-placement-top,
&${mt}-slide-up-leave${mt}-slide-up-leave-active${pt}-placement-topRight`]:{animationName:xt.ly}}},(0,Ue.ZP)(Fe,me,{arrowPlacement:{top:!0,bottom:!0}}),{[`${pt} ${ut}`]:{position:"relative",margin:0},[`${ut}-submenu-popup`]:{position:"absolute",zIndex:Yt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${pt}, ${pt}-menu-submenu`]:Object.assign(Object.assign({},(0,Ye.Wf)(Fe)),{[ut]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Fe.borderRadiusLG,outline:"none",boxShadow:Fe.boxShadowSecondary},(0,Ye.Qy)(Fe)),{"&:empty":{padding:0,boxShadow:"none"},[`${ut}-item-group-title`]:{padding:`${(0,Ve.unit)(ue)} ${(0,Ve.unit)(ae)}`,color:Fe.colorTextDescription,transition:`all ${zt}`},[`${ut}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ut}-item-icon`]:{minWidth:ie,marginInlineEnd:Fe.marginXS,fontSize:Fe.fontSizeSM},[`${ut}-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:'""'}},[`${ut}-item-extra`]:{paddingInlineStart:Fe.padding,marginInlineStart:"auto",fontSize:Fe.fontSizeSM,color:Fe.colorTextDescription}},[`${ut}-item, ${ut}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Ve.unit)(ue)} ${(0,Ve.unit)(ae)}`,color:Fe.colorText,fontWeight:"normal",fontSize:ie,lineHeight:Fe.lineHeight,cursor:"pointer",transition:`all ${zt}`,borderRadius:Fe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Fe.controlItemBgHover}},(0,Ye.Qy)(Fe)),{"&-selected":{color:Fe.colorPrimary,backgroundColor:Fe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Fe.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Ve.unit)(Fe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Fe.colorSplit},[`${pt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Fe.paddingXS,[`${pt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Fe.colorTextDescription,fontSize:pe,fontStyle:"normal"}}}),[`${ut}-item-group-list`]:{margin:`0 ${(0,Ve.unit)(Fe.marginXS)}`,padding:0,listStyle:"none"},[`${ut}-submenu-title`]:{paddingInlineEnd:Fe.calc(ae).add(Fe.fontSizeSM).equal()},[`${ut}-submenu-vertical`]:{position:"relative"},[`${ut}-submenu${ut}-submenu-disabled ${pt}-menu-submenu-title`]:{[`&, ${pt}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:me,cursor:"not-allowed"}},[`${ut}-submenu-selected ${pt}-menu-submenu-title`]:{color:Fe.colorPrimary}})})},[(0,xt.oN)(Fe,"slide-up"),(0,xt.oN)(Fe,"slide-down"),(0,gt.Fm)(Fe,"move-up"),(0,gt.Fm)(Fe,"move-down"),(0,lt._y)(Fe,"zoom-big")]]},ze=Fe=>Object.assign(Object.assign({zIndexPopup:Fe.zIndexPopupBase+50,paddingBlock:(Fe.controlHeight-Fe.fontSize*Fe.lineHeight)/2},(0,Ue.wZ)({contentRadius:Fe.borderRadiusLG,limitVerticalRadius:!0})),(0,be.w)(Fe));var st=(0,We.I$)("Dropdown",Fe=>{const{marginXXS:pt,sizePopupArrow:ut,paddingXXS:Yt,componentCls:bt}=Fe,Ct=(0,Be.mergeToken)(Fe,{menuCls:`${bt}-menu`,dropdownArrowDistance:Fe.calc(ut).div(2).add(pt).equal(),dropdownEdgeChildPadding:Yt});return[Qe(Ct),St(Ct)]},ze,{resetStyle:!1});const Se=null,ye=Fe=>{var pt;const{menu:ut,arrow:Yt,prefixCls:bt,children:Ct,trigger:mt,disabled:mn,dropdownRender:zt,getPopupContainer:ue,overlayClassName:ie,rootClassName:re,overlayStyle:oe,open:pe,onOpenChange:ae,visible:me,onVisibleChange:Ze,mouseEnterDelay:Ot=.15,mouseLeaveDelay:at=.1,autoAdjustOverflow:qe=!0,placement:yt="",overlay:Ft,transitionName:jt}=Fe,{getPopupContainer:Xe,getPrefixCls:tt,direction:Gt,dropdown:un}=y.useContext(Pe.E_),wn=(0,we.ln)("Dropdown"),gn=y.useMemo(()=>{const ln=tt();return jt!==void 0?jt:yt.includes("top")?`${ln}-slide-down`:`${ln}-slide-up`},[tt,yt,jt]),Rt=y.useMemo(()=>yt?yt.includes("Center")?yt.slice(0,yt.indexOf("Center")):yt:Gt==="rtl"?"bottomRight":"bottomLeft",[yt,Gt]),Ut=tt("dropdown",bt),At=(0,rt.Z)(Ut),[Je,Pt,nn]=st(Ut,At),[,pn]=(0,Ae.ZP)(),nt=y.Children.only(Ne(Ct)?y.createElement("span",null,Ct):Ct),Nt=(0,Te.Tm)(nt,{className:xe()(`${Ut}-trigger`,{[`${Ut}-rtl`]:Gt==="rtl"},nt.props.className),disabled:(pt=nt.props.disabled)!==null&&pt!==void 0?pt:mn}),qt=mn?[]:mt,wt=!!(qt!=null&&qt.includes("contextMenu")),[Wt,en]=(0,ke.Z)(!1,{value:pe!=null?pe:me}),_n=(0,Ce.Z)(ln=>{ae==null||ae(ln,{source:"trigger"}),Ze==null||Ze(ln),en(ln)}),Un=xe()(ie,re,Pt,nn,At,un==null?void 0:un.className,{[`${Ut}-rtl`]:Gt==="rtl"}),On=(0,ct.Z)({arrowPointAtCenter:typeof Yt=="object"&&Yt.pointAtCenter,autoAdjustOverflow:qe,offset:pn.marginXXS,arrowWidth:Yt?pn.sizePopupArrow:0,borderRadius:pn.borderRadius}),Vn=y.useCallback(()=>{ut!=null&&ut.selectable&&(ut!=null&&ut.multiple)||(ae==null||ae(!1,{source:"menu"}),en(!1))},[ut==null?void 0:ut.selectable,ut==null?void 0:ut.multiple]),Zt=()=>{let ln;return ut!=null&&ut.items?ln=y.createElement(Et.default,Object.assign({},ut)):typeof Ft=="function"?ln=Ft():ln=Ft,zt&&(ln=zt(ln)),ln=y.Children.only(typeof ln=="string"?y.createElement("span",null,ln):ln),y.createElement(Oe.J,{prefixCls:`${Ut}-menu`,rootClassName:xe()(nn,At),expandIcon:y.createElement("span",{className:`${Ut}-menu-submenu-arrow`},Gt==="rtl"?y.createElement(ve.Z,{className:`${Ut}-menu-submenu-arrow-icon`}):y.createElement(ce.Z,{className:`${Ut}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Vn,validator:Pn=>{let{mode:Sn}=Pn}},ln)},[Xt,an]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let xn=y.createElement(Ee.Z,Object.assign({alignPoint:wt},(0,De.Z)(Fe,["rootClassName"]),{mouseEnterDelay:Ot,mouseLeaveDelay:at,visible:Wt,builtinPlacements:On,arrow:!!Yt,overlayClassName:Un,prefixCls:Ut,getPopupContainer:ue||Xe,transitionName:gn,trigger:qt,overlay:Zt,placement:Rt,onVisibleChange:_n,overlayStyle:Object.assign(Object.assign(Object.assign({},un==null?void 0:un.style),oe),{zIndex:Xt})}),Nt);return Xt&&(xn=y.createElement(Ie.Z.Provider,{value:an},xn)),Je(xn)},vt=(0,Ke.Z)(ye,"align",void 0,"dropdown",Fe=>Fe),Ht=Fe=>y.createElement(vt,Object.assign({},Fe),y.createElement("span",null));ye._InternalPanelDoNotUseOrYouWillBeFired=Ht;var $t=ye},75727:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ke}});var y=E(19563),ve=E(59301),ce=E(18785),Le=E(92310),xe=E.n(Le),Ee=E(7939),Ce=E(48755),ke=E(44104),De=E(70045),fe=function(Te,we){var Ie={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&we.indexOf(Pe)<0&&(Ie[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Pe=Object.getOwnPropertySymbols(Te);rt<Pe.length;rt++)we.indexOf(Pe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[rt])&&(Ie[Pe[rt]]=Te[Pe[rt]]);return Ie};const je=Te=>{const{getPopupContainer:we,getPrefixCls:Ie,direction:Pe}=ve.useContext(Ce.E_),{prefixCls:rt,type:Et="default",danger:Oe,disabled:Ae,loading:Ve,onClick:Ye,htmlType:xt,children:gt,className:lt,menu:Ue,arrow:be,autoFocus:We,overlay:Be,trigger:de,align:St,open:Qe,onOpenChange:ze,placement:st,getPopupContainer:Se,href:ye,icon:vt=ve.createElement(ce.Z,null),title:Ht,buttonsRender:$t=Ot=>Ot,mouseEnterDelay:Fe,mouseLeaveDelay:pt,overlayClassName:ut,overlayStyle:Yt,destroyPopupOnHide:bt,dropdownRender:Ct}=Te,mt=fe(Te,["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"]),mn=Ie("dropdown",rt),zt=`${mn}-button`,ue={menu:Ue,arrow:be,autoFocus:We,align:St,disabled:Ae,trigger:Ae?[]:de,onOpenChange:ze,getPopupContainer:Se||we,mouseEnterDelay:Fe,mouseLeaveDelay:pt,overlayClassName:ut,overlayStyle:Yt,destroyPopupOnHide:bt,dropdownRender:Ct},{compactSize:ie,compactItemClassnames:re}=(0,De.ri)(mn,Pe),oe=xe()(zt,re,lt);"overlay"in Te&&(ue.overlay=Be),"open"in Te&&(ue.open=Qe),"placement"in Te?ue.placement=st:ue.placement=Pe==="rtl"?"bottomLeft":"bottomRight";const pe=ve.createElement(Ee.ZP,{type:Et,danger:Oe,disabled:Ae,loading:Ve,onClick:Ye,htmlType:xt,href:ye,title:Ht},gt),ae=ve.createElement(Ee.ZP,{type:Et,danger:Oe,icon:vt}),[me,Ze]=$t([pe,ae]);return ve.createElement(ke.Z.Compact,Object.assign({className:oe,size:ie,block:!0},mt),me,ve.createElement(y.Z,Object.assign({},ue),Ze))};je.__ANT_BUTTON=!0;var Ne=je;const ct=y.Z;ct.Button=Ne;var Ke=ct},584:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Et}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(9017),xe=E(17835),Ee=E(57700),ke=()=>{const[,Oe]=(0,Ee.ZP)(),[Ae]=(0,Le.Z)("Empty"),Ye=new xe.FastColor(Oe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:Ye,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Ae==null?void 0:Ae.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[,Oe]=(0,Ee.ZP)(),[Ae]=(0,Le.Z)("Empty"),{colorFill:Ve,colorFillTertiary:Ye,colorFillQuaternary:xt,colorBgContainer:gt}=Oe,{borderColor:lt,shadowColor:Ue,contentColor:be}=(0,y.useMemo)(()=>({borderColor:new xe.FastColor(Ve).onBackground(gt).toHexString(),shadowColor:new xe.FastColor(Ye).onBackground(gt).toHexString(),contentColor:new xe.FastColor(xt).onBackground(gt).toHexString()}),[Ve,Ye,xt,gt]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Ae==null?void 0:Ae.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:Ue,cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{fillRule:"nonzero",stroke:lt},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:be}))))},je=E(16931),Ne=E(51636);const ct=Oe=>{const{componentCls:Ae,margin:Ve,marginXS:Ye,marginXL:xt,fontSize:gt,lineHeight:lt}=Oe;return{[Ae]:{marginInline:Ye,fontSize:gt,lineHeight:lt,textAlign:"center",[`${Ae}-image`]:{height:Oe.emptyImgHeight,marginBottom:Ye,opacity:Oe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ae}-description`]:{color:Oe.colorTextDescription},[`${Ae}-footer`]:{marginTop:Ve},"&-normal":{marginBlock:xt,color:Oe.colorTextDescription,[`${Ae}-description`]:{color:Oe.colorTextDescription},[`${Ae}-image`]:{height:Oe.emptyImgHeightMD}},"&-small":{marginBlock:Ye,color:Oe.colorTextDescription,[`${Ae}-image`]:{height:Oe.emptyImgHeightSM}}}}};var Ke=(0,je.I$)("Empty",Oe=>{const{componentCls:Ae,controlHeightLG:Ve,calc:Ye}=Oe,xt=(0,Ne.mergeToken)(Oe,{emptyImgCls:`${Ae}-img`,emptyImgHeight:Ye(Ve).mul(2.5).equal(),emptyImgHeightMD:Ve,emptyImgHeightSM:Ye(Ve).mul(.875).equal()});return[ct(xt)]}),Te=E(48755),we=function(Oe,Ae){var Ve={};for(var Ye in Oe)Object.prototype.hasOwnProperty.call(Oe,Ye)&&Ae.indexOf(Ye)<0&&(Ve[Ye]=Oe[Ye]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,Ye=Object.getOwnPropertySymbols(Oe);xt<Ye.length;xt++)Ae.indexOf(Ye[xt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Ye[xt])&&(Ve[Ye[xt]]=Oe[Ye[xt]]);return Ve};const Ie=y.createElement(ke,null),Pe=y.createElement(fe,null),rt=Oe=>{const{className:Ae,rootClassName:Ve,prefixCls:Ye,image:xt=Ie,description:gt,children:lt,imageStyle:Ue,style:be,classNames:We,styles:Be}=Oe,de=we(Oe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:St,direction:Qe,className:ze,style:st,classNames:Se,styles:ye}=(0,Te.dj)("empty"),vt=St("empty",Ye),[Ht,$t,Fe]=Ke(vt),[pt]=(0,Le.Z)("Empty"),ut=typeof gt!="undefined"?gt:pt==null?void 0:pt.description,Yt=typeof ut=="string"?ut:"empty";let bt=null;return typeof xt=="string"?bt=y.createElement("img",{alt:Yt,src:xt}):bt=xt,Ht(y.createElement("div",Object.assign({className:ce()($t,Fe,vt,ze,{[`${vt}-normal`]:xt===Pe,[`${vt}-rtl`]:Qe==="rtl"},Ae,Ve,Se.root,We==null?void 0:We.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),st),Be==null?void 0:Be.root),be)},de),y.createElement("div",{className:ce()(`${vt}-image`,Se.image,We==null?void 0:We.image),style:Object.assign(Object.assign(Object.assign({},Ue),ye.image),Be==null?void 0:Be.image)},bt),ut&&y.createElement("div",{className:ce()(`${vt}-description`,Se.description,We==null?void 0:We.description),style:Object.assign(Object.assign({},ye.description),Be==null?void 0:Be.description)},ut),lt&&y.createElement("div",{className:ce()(`${vt}-footer`,Se.footer,We==null?void 0:We.footer),style:Object.assign(Object.assign({},ye.footer),Be==null?void 0:Be.footer)},lt)))};rt.PRESENTED_IMAGE_DEFAULT=Ie,rt.PRESENTED_IMAGE_SIMPLE=Pe;var Et=rt},28284:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return Vt}});var y=E(56553),ve=E(94480),ce=E(59301),Le=E(92310),xe=E.n(Le),Ee=E(77900),Ce=E(86641),ke=E(83397);function De(ft){const[kt,it]=ce.useState(ft);return ce.useEffect(()=>{const ht=setTimeout(()=>{it(ft)},ft.length?0:10);return()=>{clearTimeout(ht)}},[ft]),kt}var fe=E(36237),je=E(63356),Ne=E(34925),ct=E(34961),Ke=E(51636),Te=E(16931),Ie=ft=>{const{componentCls:kt}=ft,it=`${kt}-show-help`,ht=`${kt}-show-help-item`;return{[it]:{transition:`opacity ${ft.motionDurationFast} ${ft.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ht]:{overflow:"hidden",transition:`height ${ft.motionDurationFast} ${ft.motionEaseInOut},
opacity ${ft.motionDurationFast} ${ft.motionEaseInOut},
transform ${ft.motionDurationFast} ${ft.motionEaseInOut} !important`,[`&${ht}-appear, &${ht}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ht}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Pe=ft=>({legend:{display:"block",width:"100%",marginBottom:ft.marginLG,padding:0,color:ft.colorTextDescription,fontSize:ft.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(ft.lineWidth)} ${ft.lineType} ${ft.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)(ft.controlOutlineWidth)} ${ft.controlOutline}`},output:{display:"block",paddingTop:15,color:ft.colorText,fontSize:ft.fontSize,lineHeight:ft.lineHeight}}),rt=(ft,kt)=>{const{formItemCls:it}=ft;return{[it]:{[`${it}-label > label`]:{height:kt},[`${it}-control-input`]:{minHeight:kt}}}},Et=ft=>{const{componentCls:kt}=ft;return{[ft.componentCls]:Object.assign(Object.assign(Object.assign({},(0,je.Wf)(ft)),Pe(ft)),{[`${kt}-text`]:{display:"inline-block",paddingInlineEnd:ft.paddingSM},"&-small":Object.assign({},rt(ft,ft.controlHeightSM)),"&-large":Object.assign({},rt(ft,ft.controlHeightLG))})}},Oe=ft=>{const{formItemCls:kt,iconCls:it,rootPrefixCls:ht,antCls:cn,labelRequiredMarkColor:ar,labelColor:mr,labelFontSize:It,labelHeight:_t,labelColonMarginInlineStart:Tt,labelColonMarginInlineEnd:Kt,itemMarginBottom:Fn}=ft;return{[kt]:Object.assign(Object.assign({},(0,je.Wf)(ft)),{marginBottom:Fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${cn}-row`]:{display:"none"},"&-has-warning":{[`${kt}-split`]:{color:ft.colorError}},"&-has-error":{[`${kt}-split`]:{color:ft.colorWarning}},[`${kt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ft.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:_t,color:mr,fontSize:It,[`> ${it}`]:{fontSize:ft.fontSize,verticalAlign:"top"},[`&${kt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ft.marginXXS,color:ar,fontSize:ft.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${kt}-required-mark-hidden, &${kt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${kt}-optional`]:{display:"inline-block",marginInlineStart:ft.marginXXS,color:ft.colorTextDescription,[`&${kt}-required-mark-hidden`]:{display:"none"}},[`${kt}-tooltip`]:{color:ft.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ft.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Tt,marginInlineEnd:Kt},[`&${kt}-no-colon::after`]:{content:'"\\a0"'}}},[`${kt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ht}-col-'"]):not([class*="' ${ht}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ft.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[kt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ft.colorTextDescription,fontSize:ft.fontSize,lineHeight:ft.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ft.controlHeightSM,transition:`color ${ft.motionDurationMid} ${ft.motionEaseOut}`},"&-explain":{"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning}}},[`&-with-help ${kt}-explain`]:{height:"auto",opacity:1},[`${kt}-feedback-icon`]:{fontSize:ft.fontSize,textAlign:"center",visibility:"visible",animationName:Ne.kr,animationDuration:ft.motionDurationMid,animationTimingFunction:ft.motionEaseOutBack,pointerEvents:"none","&-success":{color:ft.colorSuccess},"&-error":{color:ft.colorError},"&-warning":{color:ft.colorWarning},"&-validating":{color:ft.colorPrimary}}})}},Ae=(ft,kt)=>{const{formItemCls:it}=ft;return{[`${kt}-horizontal`]:{[`${it}-label`]:{flexGrow:0},[`${it}-control`]:{flex:"1 1 0",minWidth:0},[`${it}-label[class$='-24'], ${it}-label[class*='-24 ']`]:{[`& + ${it}-control`]:{minWidth:"unset"}}}}},Ve=ft=>{const{componentCls:kt,formItemCls:it,inlineItemMarginBottom:ht}=ft;return{[`${kt}-inline`]:{display:"flex",flexWrap:"wrap",[it]:{flex:"none",marginInlineEnd:ft.margin,marginBottom:ht,"&-row":{flexWrap:"nowrap"},[`> ${it}-label,
> ${it}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${it}-label`]:{flex:"none"},[`${kt}-text`]:{display:"inline-block"},[`${it}-has-feedback`]:{display:"inline-block"}}}}},Ye=ft=>({padding:ft.verticalLabelPadding,margin:ft.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),xt=ft=>{const{componentCls:kt,formItemCls:it,rootPrefixCls:ht}=ft;return{[`${it} ${it}-label`]:Ye(ft),[`${kt}:not(${kt}-inline)`]:{[it]:{flexWrap:"wrap",[`${it}-label, ${it}-control`]:{[`&:not([class*=" ${ht}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gt=ft=>{const{componentCls:kt,formItemCls:it,antCls:ht}=ft;return{[`${kt}-vertical`]:{[`${it}:not(${it}-horizontal)`]:{[`${it}-row`]:{flexDirection:"column"},[`${it}-label > label`]:{height:"auto"},[`${it}-control`]:{width:"100%"},[`${it}-label,
${ht}-col-24${it}-label,
${ht}-col-xl-24${it}-label`]:Ye(ft)}},[`@media (max-width: ${(0,fe.unit)(ft.screenXSMax)})`]:[xt(ft),{[kt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-xs-24${it}-label`]:Ye(ft)}}}],[`@media (max-width: ${(0,fe.unit)(ft.screenSMMax)})`]:{[kt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-sm-24${it}-label`]:Ye(ft)}}},[`@media (max-width: ${(0,fe.unit)(ft.screenMDMax)})`]:{[kt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-md-24${it}-label`]:Ye(ft)}}},[`@media (max-width: ${(0,fe.unit)(ft.screenLGMax)})`]:{[kt]:{[`${it}:not(${it}-horizontal)`]:{[`${ht}-col-lg-24${it}-label`]:Ye(ft)}}}}},lt=ft=>{const{formItemCls:kt,antCls:it}=ft;return{[`${kt}-vertical`]:{[`${kt}-row`]:{flexDirection:"column"},[`${kt}-label > label`]:{height:"auto"},[`${kt}-control`]:{width:"100%"}},[`${kt}-vertical ${kt}-label,
${it}-col-24${kt}-label,
${it}-col-xl-24${kt}-label`]:Ye(ft),[`@media (max-width: ${(0,fe.unit)(ft.screenXSMax)})`]:[xt(ft),{[kt]:{[`${it}-col-xs-24${kt}-label`]:Ye(ft)}}],[`@media (max-width: ${(0,fe.unit)(ft.screenSMMax)})`]:{[kt]:{[`${it}-col-sm-24${kt}-label`]:Ye(ft)}},[`@media (max-width: ${(0,fe.unit)(ft.screenMDMax)})`]:{[kt]:{[`${it}-col-md-24${kt}-label`]:Ye(ft)}},[`@media (max-width: ${(0,fe.unit)(ft.screenLGMax)})`]:{[kt]:{[`${it}-col-lg-24${kt}-label`]:Ye(ft)}}}},Ue=ft=>({labelRequiredMarkColor:ft.colorError,labelColor:ft.colorTextHeading,labelFontSize:ft.fontSize,labelHeight:ft.controlHeight,labelColonMarginInlineStart:ft.marginXXS/2,labelColonMarginInlineEnd:ft.marginXS,itemMarginBottom:ft.marginLG,verticalLabelPadding:`0 0 ${ft.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),be=(ft,kt)=>(0,Ke.mergeToken)(ft,{formItemCls:`${ft.componentCls}-item`,rootPrefixCls:kt});var We=(0,Te.I$)("Form",(ft,kt)=>{let{rootPrefixCls:it}=kt;const ht=be(ft,it);return[Et(ht),Oe(ht),Ie(ht),Ae(ht,ht.componentCls),Ae(ht,ht.formItemCls),Ve(ht),gt(ht),lt(ht),(0,ct.Z)(ht),Ne.kr]},Ue,{order:-1e3});const Be=[];function de(ft,kt,it){let ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ft=="string"?ft:`${kt}-${ht}`,error:ft,errorStatus:it}}var Qe=ft=>{let{help:kt,helpStatus:it,errors:ht=Be,warnings:cn=Be,className:ar,fieldId:mr,onVisibleChanged:It}=ft;const{prefixCls:_t}=ce.useContext(y.Rk),Tt=`${_t}-item-explain`,Kt=(0,ke.Z)(_t),[Fn,Hn,Gn]=We(_t,Kt),jn=ce.useMemo(()=>(0,Ce.Z)(_t),[_t]),hr=De(ht),Pr=De(cn),Tr=ce.useMemo(()=>kt!=null?[de(kt,"help",it)]:[].concat((0,ve.Z)(hr.map((Rr,Xr)=>de(Rr,"error","error",Xr))),(0,ve.Z)(Pr.map((Rr,Xr)=>de(Rr,"warning","warning",Xr)))),[kt,it,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`),Fn(ce.createElement(Ee.default,{motionDeadline:jn.motionDeadline,motionName:`${_t}-show-help`,visible:!!Lr.length,onVisibleChanged:It},Rr=>{const{className:Xr,style:oa}=Rr;return ce.createElement("div",Object.assign({},Cr,{className:xe()(Tt,Xr,Gn,Kt,ar,Hn),style:oa}),ce.createElement(Ee.CSSMotionList,Object.assign({keys:Lr},(0,Ce.Z)(_t),{motionName:`${_t}-show-help-item`,component:!1}),ta=>{const{key:xa,error:Ia,errorStatus:Ur,className:ya,style:Xa}=ta;return ce.createElement("div",{key:xa,className:xe()(ya,{[`${Tt}-${Ur}`]:Ur}),style:Xa},Ia)}))}))},ze=E(22001),st=E(48755),Se=E(2171),ye=E(31756),vt=E(23069),Ht=E(76846),$t=E(16722);const Fe=["parentNode"],pt="form_item";function ut(ft){return ft===void 0||ft===!1?[]:Array.isArray(ft)?ft:[ft]}function Yt(ft,kt){if(!ft.length)return;const it=ft.join("_");return kt?`${kt}_${it}`:Fe.includes(it)?`${pt}_${it}`:it}function bt(ft,kt,it,ht,cn,ar){let mr=ht;return ar!==void 0?mr=ar:it.validating?mr="validating":ft.length?mr="error":kt.length?mr="warning":(it.touched||cn&&it.validated)&&(mr="success"),mr}var Ct=function(ft,kt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&kt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,ht=Object.getOwnPropertySymbols(ft);cn<ht.length;cn++)kt.indexOf(ht[cn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[cn])&&(it[ht[cn]]=ft[ht[cn]]);return it};function mt(ft){return ut(ft).join("_")}function mn(ft,kt){const it=kt.getFieldInstance(ft),ht=(0,Ht.bn)(it);if(ht)return ht;const cn=Yt(ut(ft),kt.__INTERNAL__.name);if(cn)return document.getElementById(cn)}function zt(ft){const[kt]=(0,ze.useForm)(),it=ce.useRef({}),ht=ce.useMemo(()=>ft!=null?ft:Object.assign(Object.assign({},kt),{__INTERNAL__:{itemRef:cn=>ar=>{const mr=mt(cn);ar?it.current[mr]=ar:delete it.current[mr]}},scrollToField:function(cn){let ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:mr}=ar,It=Ct(ar,["focus"]),_t=mn(cn,ht);_t&&((0,$t.Z)(_t,Object.assign({scrollMode:"if-needed",block:"nearest"},It)),mr&&ht.focusField(cn))},focusField:cn=>{var ar,mr;const It=ht.getFieldInstance(cn);typeof(It==null?void 0:It.focus)=="function"?It.focus():(mr=(ar=mn(cn,ht))===null||ar===void 0?void 0:ar.focus)===null||mr===void 0||mr.call(ar)},getFieldInstance:cn=>{const ar=mt(cn);return it.current[ar]}}),[ft,kt]);return[ht]}var ue=E(98350),ie=function(ft,kt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&kt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,ht=Object.getOwnPropertySymbols(ft);cn<ht.length;cn++)kt.indexOf(ht[cn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[cn])&&(it[ht[cn]]=ft[ht[cn]]);return it};const re=(ft,kt)=>{const it=ce.useContext(Se.Z),{getPrefixCls:ht,direction:cn,requiredMark:ar,colon:mr,scrollToFirstError:It,className:_t,style:Tt}=(0,st.dj)("form"),{prefixCls:Kt,className:Fn,rootClassName:Hn,size:Gn,disabled:jn=it,form:hr,colon:Pr,labelAlign:Tr,labelWrap:Lr,labelCol:Cr,wrapperCol:Rr,hideRequiredMark:Xr,layout:oa="horizontal",scrollToFirstError:ta,requiredMark:xa,onFinishFailed:Ia,name:Ur,style:ya,feedbackIcons:Xa,variant:Pa}=ft,pa=ie(ft,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),kr=(0,ye.Z)(Gn),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=ht("form",Kt),Ya=(0,ke.Z)(Kr),[Mi,ji,za]=We(Kr,Ya),Di=xe()(Kr,`${Kr}-${oa}`,{[`${Kr}-hide-required-mark`]:Sa===!1,[`${Kr}-rtl`]:cn==="rtl",[`${Kr}-${kr}`]:kr},za,Ya,ji,_t,Fn,Hn),[pi]=zt(hr),{__INTERNAL__:Wi}=pi;Wi.name=Ur;const Ci=ce.useMemo(()=>({name:Ur,labelAlign:Tr,labelCol:Cr,labelWrap:Lr,wrapperCol:Rr,vertical:oa==="vertical",colon:la,requiredMark:Sa,itemRef:Wi.itemRef,form:pi,feedbackIcons:Xa}),[Ur,Tr,Cr,Rr,oa,la,Sa,pi,Xa]),ei=ce.useRef(null);ce.useImperativeHandle(kt,()=>{var xr;return Object.assign(Object.assign({},pi),{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)),pi.scrollToField(Sr,tr)}},Qn=xr=>{if(Ia==null||Ia(xr),xr.errorFields.length){const Sr=xr.errorFields[0].name;if(ta!==void 0){Ar(ta,Sr);return}It!==void 0&&Ar(It,Sr)}};return Mi(ce.createElement(y.pg.Provider,{value:Pa},ce.createElement(Se.n,{disabled:jn},ce.createElement(vt.Z.Provider,{value:kr},ce.createElement(y.RV,{validateMessages:Za},ce.createElement(y.q3.Provider,{value:Ci},ce.createElement(ze.default,Object.assign({id:Ur},pa,{name:Ur,onFinishFailed:Qn,form:pi,ref:ei,style:Object.assign(Object.assign({},Tt),ya),className:Di}))))))))};var pe=ce.forwardRef(re),ae=E(41799),me=E(8654),Ze=E(22703),Ot=E(32383),at=E(11592);function qe(ft){if(typeof ft=="function")return ft;const kt=(0,at.Z)(ft);return kt.length<=1?kt[0]:kt}const yt=()=>{const{status:ft,errors:kt=[],warnings:it=[]}=ce.useContext(y.aM);return{status:ft,errors:kt,warnings:it}};yt.Context=y.aM;var Ft=yt,jt=E(16089);function Xe(ft){const[kt,it]=ce.useState(ft),ht=ce.useRef(null),cn=ce.useRef([]),ar=ce.useRef(!1);ce.useEffect(()=>(ar.current=!1,()=>{ar.current=!0,jt.Z.cancel(ht.current),ht.current=null}),[]);function mr(It){ar.current||(ht.current===null&&(cn.current=[],ht.current=(0,jt.Z)(()=>{ht.current=null,it(_t=>{let Tt=_t;return cn.current.forEach(Kt=>{Tt=Kt(Tt)}),Tt})})),cn.current.push(It))}return[kt,mr]}function tt(){const{itemRef:ft}=ce.useContext(y.q3),kt=ce.useRef({});function it(ht,cn){const ar=cn&&typeof cn=="object"&&(0,me.C4)(cn),mr=ht.join("_");return(kt.current.name!==mr||kt.current.originRef!==ar)&&(kt.current.name=mr,kt.current.originRef=ar,kt.current.ref=(0,me.sQ)(ft(ht),ar)),kt.current.ref}return it}var Gt=E(29194),un=E(34280),wn=E(2738),gn=E(65970),Rt=E(70425),Ut=E(5472);const At=ft=>{const{formItemCls:kt}=ft;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${kt}-control`]:{display:"flex"}}}};var Je=(0,Te.bk)(["Form","item-item"],(ft,kt)=>{let{rootPrefixCls:it}=kt;const ht=be(ft,it);return[At(ht)]}),Pt=function(ft,kt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&kt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,ht=Object.getOwnPropertySymbols(ft);cn<ht.length;cn++)kt.indexOf(ht[cn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[cn])&&(it[ht[cn]]=ft[ht[cn]]);return it};const nn=24;var nt=ft=>{const{prefixCls:kt,status:it,labelCol:ht,wrapperCol:cn,children:ar,errors:mr,warnings:It,_internalItemRender:_t,extra:Tt,help:Kt,fieldId:Fn,marginBottom:Hn,onErrorVisibleChanged:Gn,label:jn}=ft,hr=`${kt}-item`,Pr=ce.useContext(y.q3),Tr=ce.useMemo(()=>{let pa=Object.assign({},cn||Pr.wrapperCol||{});return jn===null&&!ht&&!cn&&Pr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Za=>{const Sa=Za?[Za]:[],la=(0,Rt.U2)(Pr.labelCol,Sa),Kr=typeof la=="object"?la:{},Ya=(0,Rt.U2)(pa,Sa),Mi=typeof Ya=="object"?Ya:{};"span"in Kr&&!("offset"in Mi)&&Kr.span<nn&&(pa=(0,Rt.t8)(pa,[].concat(Sa,["offset"]),Kr.span))}),pa},[cn,Pr]),Lr=xe()(`${hr}-control`,Tr.className),Cr=ce.useMemo(()=>{const{labelCol:pa,wrapperCol:kr}=Pr;return Pt(Pr,["labelCol","wrapperCol"])},[Pr]),Rr=ce.useRef(null),[Xr,oa]=ce.useState(0);(0,un.Z)(()=>{Tt&&Rr.current?oa(Rr.current.clientHeight):oa(0)},[Tt]);const ta=ce.createElement("div",{className:`${hr}-control-input`},ce.createElement("div",{className:`${hr}-control-input-content`},ar)),xa=ce.useMemo(()=>({prefixCls:kt,status:it}),[kt,it]),Ia=Hn!==null||mr.length||It.length?ce.createElement(y.Rk.Provider,{value:xa},ce.createElement(Qe,{fieldId:Fn,errors:mr,warnings:It,help:Kt,helpStatus:it,className:`${hr}-explain-connected`,onVisibleChanged:Gn})):null,Ur={};Fn&&(Ur.id=`${Fn}_extra`);const ya=Tt?ce.createElement("div",Object.assign({},Ur,{className:`${hr}-extra`,ref:Rr}),Tt):null,Xa=Ia||ya?ce.createElement("div",{className:`${hr}-additional`,style:Hn?{minHeight:Hn+Xr}:{}},Ia,ya):null,Pa=_t&&_t.mark==="pro_table_render"&&_t.render?_t.render(ft,{input:ta,errorList:Ia,extra:ya}):ce.createElement(ce.Fragment,null,ta,Xa);return ce.createElement(y.q3.Provider,{value:Cr},ce.createElement(Ut.Z,Object.assign({},Tr,{className:Lr}),Pa),ce.createElement(Je,{prefixCls:kt}))},Nt=E(61485),qt=E(9017),wt=E(85981),Wt=E(25399),en=function(ft,kt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&kt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,ht=Object.getOwnPropertySymbols(ft);cn<ht.length;cn++)kt.indexOf(ht[cn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[cn])&&(it[ht[cn]]=ft[ht[cn]]);return it};function _n(ft){return ft?typeof ft=="object"&&!ce.isValidElement(ft)?ft:{title:ft}:null}var On=ft=>{let{prefixCls:kt,label:it,htmlFor:ht,labelCol:cn,labelAlign:ar,colon:mr,required:It,requiredMark:_t,tooltip:Tt,vertical:Kt}=ft;var Fn;const[Hn]=(0,qt.Z)("Form"),{labelAlign:Gn,labelCol:jn,labelWrap:hr,colon:Pr}=ce.useContext(y.q3);if(!it)return null;const Tr=cn||jn||{},Lr=ar||Gn,Cr=`${kt}-item-label`,Rr=xe()(Cr,Lr==="left"&&`${Cr}-left`,Tr.className,{[`${Cr}-wrap`]:!!hr});let Xr=it;const oa=mr===!0||Pr!==!1&&mr!==!1;oa&&!Kt&&typeof it=="string"&&it.trim()&&(Xr=it.replace(/[:|]\s*$/,""));const xa=_n(Tt);if(xa){const{icon:pa=ce.createElement(Nt.Z,null)}=xa,kr=en(xa,["icon"]),Za=ce.createElement(Wt.Z,Object.assign({},kr),ce.cloneElement(pa,{className:`${kt}-item-tooltip`,title:"",onClick:Sa=>{Sa.preventDefault()},tabIndex:null}));Xr=ce.createElement(ce.Fragment,null,Xr,Za)}const Ia=_t==="optional",Ur=typeof _t=="function",ya=_t===!1;Ur?Xr=_t(Xr,{required:!!It}):Ia&&!It&&(Xr=ce.createElement(ce.Fragment,null,Xr,ce.createElement("span",{className:`${kt}-item-optional`,title:""},(Hn==null?void 0:Hn.optional)||((Fn=wt.Z.Form)===null||Fn===void 0?void 0:Fn.optional))));let Xa;ya?Xa="hidden":(Ia||Ur)&&(Xa="optional");const Pa=xe()({[`${kt}-item-required`]:It,[`${kt}-item-required-mark-${Xa}`]:Xa,[`${kt}-item-no-colon`]:!oa});return ce.createElement(Ut.Z,Object.assign({},Tr,{className:Rr}),ce.createElement("label",{htmlFor:ht,className:Pa,title:typeof it=="string"?it:""},Xr))},Vn=E(29679),Zt=E(19248),Xt=E(96512),an=E(58617);const xn={success:Vn.Z,warning:Xt.Z,error:Zt.Z,validating:an.Z};function ln(ft){let{children:kt,errors:it,warnings:ht,hasFeedback:cn,validateStatus:ar,prefixCls:mr,meta:It,noStyle:_t}=ft;const Tt=`${mr}-item`,{feedbackIcons:Kt}=ce.useContext(y.q3),Fn=bt(it,ht,It,null,!!cn,ar),{isFormItemInput:Hn,status:Gn,hasFeedback:jn,feedbackIcon:hr}=ce.useContext(y.aM),Pr=ce.useMemo(()=>{var Tr;let Lr;if(cn){const Rr=cn!==!0&&cn.icons||Kt,Xr=Fn&&((Tr=Rr==null?void 0:Rr({status:Fn,errors:it,warnings:ht}))===null||Tr===void 0?void 0:Tr[Fn]),oa=Fn&&xn[Fn];Lr=Xr!==!1&&oa?ce.createElement("span",{className:xe()(`${Tt}-feedback-icon`,`${Tt}-feedback-icon-${Fn}`)},Xr||ce.createElement(oa,null)):null}const Cr={status:Fn||"",errors:it,warnings:ht,hasFeedback:!!cn,feedbackIcon:Lr,isFormItemInput:!0};return _t&&(Cr.status=(Fn!=null?Fn:Gn)||"",Cr.isFormItemInput=Hn,Cr.hasFeedback=!!(cn!=null?cn:jn),Cr.feedbackIcon=cn!==void 0?Cr.feedbackIcon:hr),Cr},[Fn,cn,_t,Hn,Gn]);return ce.createElement(y.aM.Provider,{value:Pr},kt)}var Pn=function(ft,kt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&kt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,ht=Object.getOwnPropertySymbols(ft);cn<ht.length;cn++)kt.indexOf(ht[cn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[cn])&&(it[ht[cn]]=ft[ht[cn]]);return it};function Sn(ft){const{prefixCls:kt,className:it,rootClassName:ht,style:cn,help:ar,errors:mr,warnings:It,validateStatus:_t,meta:Tt,hasFeedback:Kt,hidden:Fn,children:Hn,fieldId:Gn,required:jn,isRequired:hr,onSubItemMetaChange:Pr,layout:Tr}=ft,Lr=Pn(ft,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Cr=`${kt}-item`,{requiredMark:Rr,vertical:Xr}=ce.useContext(y.q3),oa=Xr||Tr==="vertical",ta=ce.useRef(null),xa=De(mr),Ia=De(It),Ur=ar!=null,ya=!!(Ur||mr.length||It.length),Xa=!!ta.current&&(0,Gt.Z)(ta.current),[Pa,pa]=ce.useState(null);(0,un.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:Tt.errors,Mi=Kr?Ia:Tt.warnings;return bt(Ya,Mi,Tt,"",!!Kt,_t)}(),la=xe()(Cr,it,ht,{[`${Cr}-with-help`]:Ur||xa.length||Ia.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`]:Fn,[`${Cr}-${Tr}`]:Tr});return ce.createElement("div",{className:la,style:cn,ref:ta},ce.createElement(gn.Z,Object.assign({className:`${Cr}-row`},(0,wn.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(On,Object.assign({htmlFor:Gn},ft,{requiredMark:Rr,required:jn!=null?jn:hr,prefixCls:kt,vertical:oa})),ce.createElement(nt,Object.assign({},ft,Tt,{errors:xa,warnings:Ia,prefixCls:kt,status:Sa,help:ar,marginBottom:Pa,onErrorVisibleChanged:kr}),ce.createElement(y.qI.Provider,{value:Pr},ce.createElement(ln,{prefixCls:kt,meta:Tt,errors:Tt.errors,warnings:Tt.warnings,hasFeedback:Kt,validateStatus:Sa},Hn)))),!!Pa&&ce.createElement("div",{className:`${Cr}-margin-offset`,style:{marginBottom:-Pa}}))}const Rn="__SPLIT__",Er=null;function Jn(ft,kt){const it=Object.keys(ft),ht=Object.keys(kt);return it.length===ht.length&&it.every(cn=>{const ar=ft[cn],mr=kt[cn];return ar===mr||typeof ar=="function"||typeof mr=="function"})}const dr=ce.memo(ft=>{let{children:kt}=ft;return kt},(ft,kt)=>Jn(ft.control,kt.control)&&ft.update===kt.update&&ft.childProps.length===kt.childProps.length&&ft.childProps.every((it,ht)=>it===kt.childProps[ht]));function yr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gr(ft){const{name:kt,noStyle:it,className:ht,dependencies:cn,prefixCls:ar,shouldUpdate:mr,rules:It,children:_t,required:Tt,label:Kt,messageVariables:Fn,trigger:Hn="onChange",validateTrigger:Gn,hidden:jn,help:hr,layout:Pr}=ft,{getPrefixCls:Tr}=ce.useContext(st.E_),{name:Lr}=ce.useContext(y.q3),Cr=qe(_t),Rr=typeof Cr=="function",Xr=ce.useContext(y.qI),{validateTrigger:oa}=ce.useContext(ze.FieldContext),ta=Gn!==void 0?Gn:oa,xa=kt!=null,Ia=Tr("form",ar),Ur=(0,ke.Z)(Ia),[ya,Xa,Pa]=We(Ia,Ur),pa=(0,Ot.ln)("Form.Item"),kr=ce.useContext(ze.ListContext),Za=ce.useRef(null),[Sa,la]=Xe({}),[Kr,Ya]=(0,ae.Z)(()=>yr()),Mi=ei=>{const Ar=kr==null?void 0:kr.getKey(ei.name);if(Ya(ei.destroy?yr():ei,!0),it&&hr!==!1&&Xr){let Qn=ei.name;if(ei.destroy)Qn=Za.current||Qn;else if(Ar!==void 0){const[xr,Sr]=Ar;Qn=[xr].concat((0,ve.Z)(Sr)),Za.current=Qn}Xr(ei,Qn)}},ji=(ei,Ar)=>{la(Qn=>{const xr=Object.assign({},Qn),tr=[].concat((0,ve.Z)(ei.name.slice(0,-1)),(0,ve.Z)(Ar)).join(Rn);return ei.destroy?delete xr[tr]:xr[tr]=ei,xr})},[za,Di]=ce.useMemo(()=>{const ei=(0,ve.Z)(Kr.errors),Ar=(0,ve.Z)(Kr.warnings);return Object.values(Sa).forEach(Qn=>{ei.push.apply(ei,(0,ve.Z)(Qn.errors||[])),Ar.push.apply(Ar,(0,ve.Z)(Qn.warnings||[]))}),[ei,Ar]},[Sa,Kr.errors,Kr.warnings]),pi=tt();function Wi(ei,Ar,Qn){return it&&!jn?ce.createElement(ln,{prefixCls:Ia,hasFeedback:ft.hasFeedback,validateStatus:ft.validateStatus,meta:Kr,errors:za,warnings:Di,noStyle:!0},ei):ce.createElement(Sn,Object.assign({key:"row"},ft,{className:xe()(ht,Pa,Ur,Xa),prefixCls:Ia,fieldId:Ar,isRequired:Qn,errors:za,warnings:Di,meta:Kr,onSubItemMetaChange:ji,layout:Pr}),ei)}if(!xa&&!Rr&&!cn)return ya(Wi(Cr));let Ci={};return typeof Kt=="string"?Ci.label=Kt:kt&&(Ci.label=String(kt)),Fn&&(Ci=Object.assign(Object.assign({},Ci),Fn)),ya(ce.createElement(ze.Field,Object.assign({},ft,{messageVariables:Ci,trigger:Hn,validateTrigger:ta,onMetaChange:Mi}),(ei,Ar,Qn)=>{const xr=ut(kt).length&&Ar?Ar.name:[],Sr=Yt(xr,Lr),tr=Tt!==void 0?Tt:!!(It!=null&&It.some(br=>{if(br&&typeof br=="object"&&br.required&&!br.warningOnly)return!0;if(typeof br=="function"){const Dr=br(Qn);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 br=Object.assign(Object.assign({},Cr.props),$r);if(br.id||(br.id=Sr),hr||za.length>0||Di.length>0||ft.extra){const Qr=[];(hr||za.length>0)&&Qr.push(`${Sr}_help`),ft.extra&&Qr.push(`${Sr}_extra`),br["aria-describedby"]=Qr.join(" ")}za.length>0&&(br["aria-invalid"]="true"),tr&&(br["aria-required"]="true"),(0,me.Yr)(Cr)&&(br.ref=pi(xr,Cr)),new Set([].concat((0,ve.Z)(ut(Hn)),(0,ve.Z)(ut(ta)))).forEach(Qr=>{br[Qr]=function(){for(var _a,$a,ea,ai,yi,zi=arguments.length,Ui=new Array(zi),Ji=0;Ji<zi;Ji++)Ui[Ji]=arguments[Ji];(ea=$r[Qr])===null||ea===void 0||(_a=ea).call.apply(_a,[$r].concat(Ui)),(yi=(ai=Cr.props)[Qr])===null||yi===void 0||($a=yi).call.apply($a,[ai].concat(Ui))}});const jr=[br["aria-required"],br["aria-invalid"],br["aria-describedby"]];sa=ce.createElement(dr,{control:$r,update:Cr,childProps:jr},(0,Ze.Tm)(Cr,br))}else Rr&&(mr||cn)&&!xa?sa=Cr(Qn):sa=Cr}return Wi(sa,Sr,tr)}))}const Vr=gr;Vr.useStatus=Ft;var Zr=Vr,Dn=function(ft,kt){var it={};for(var ht in ft)Object.prototype.hasOwnProperty.call(ft,ht)&&kt.indexOf(ht)<0&&(it[ht]=ft[ht]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,ht=Object.getOwnPropertySymbols(ft);cn<ht.length;cn++)kt.indexOf(ht[cn])<0&&Object.prototype.propertyIsEnumerable.call(ft,ht[cn])&&(it[ht[cn]]=ft[ht[cn]]);return it},fr=ft=>{var{prefixCls:kt,children:it}=ft,ht=Dn(ft,["prefixCls","children"]);const{getPrefixCls:cn}=ce.useContext(st.E_),ar=cn("form",kt),mr=ce.useMemo(()=>({prefixCls:ar,status:"error"}),[ar]);return ce.createElement(ze.List,Object.assign({},ht),(It,_t,Tt)=>ce.createElement(y.Rk.Provider,{value:mr},it(It.map(Kt=>Object.assign(Object.assign({},Kt),{fieldKey:Kt.key})),_t,{errors:Tt.errors,warnings:Tt.warnings})))};function ur(){const{form:ft}=ce.useContext(y.q3);return ft}const Mt=pe;Mt.Item=Zr,Mt.List=fr,Mt.ErrorList=Qe,Mt.useForm=zt,Mt.useFormInstance=ur,Mt.useWatch=ze.useWatch,Mt.Provider=y.RV,Mt.create=()=>{};var Vt=Mt},4875:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return pn}});var y=E(59301),ve=E(84105),ce=E(87395),Le=E(92310),xe=E.n(Le),Ee=E(54476),Ce=E(20068),ke=E(76190),De=E(42978),fe=E(75931),je=E(67732),Ne=E(83652);function ct(){return typeof BigInt=="function"}function Ke(nt){return!nt&&nt!==0&&!Number.isNaN(nt)||!String(nt).trim()}function Te(nt){var Nt=nt.trim(),qt=Nt.startsWith("-");qt&&(Nt=Nt.slice(1)),Nt=Nt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Nt.startsWith(".")&&(Nt="0".concat(Nt));var wt=Nt||"0",Wt=wt.split("."),en=Wt[0]||"0",_n=Wt[1]||"0";en==="0"&&_n==="0"&&(qt=!1);var Un=qt?"-":"";return{negative:qt,negativeStr:Un,trimStr:wt,integerStr:en,decimalStr:_n,fullStr:"".concat(Un).concat(wt)}}function we(nt){var Nt=String(nt);return!Number.isNaN(Number(Nt))&&Nt.includes("e")}function Ie(nt){var Nt=String(nt);if(we(nt)){var qt=Number(Nt.slice(Nt.indexOf("e-")+2)),wt=Nt.match(/\.(\d+)/);return wt!=null&&wt[1]&&(qt+=wt[1].length),qt}return Nt.includes(".")&&rt(Nt)?Nt.length-Nt.indexOf(".")-1:0}function Pe(nt){var Nt=String(nt);if(we(nt)){if(nt>Number.MAX_SAFE_INTEGER)return String(ct()?BigInt(nt).toString():Number.MAX_SAFE_INTEGER);if(nt<Number.MIN_SAFE_INTEGER)return String(ct()?BigInt(nt).toString():Number.MIN_SAFE_INTEGER);Nt=nt.toFixed(Ie(Nt))}return Te(Nt).fullStr}function rt(nt){return typeof nt=="number"?!Number.isNaN(nt):nt?/^\s*-?\d+(\.\d+)?\s*$/.test(nt)||/^\s*-?\d+\.\s*$/.test(nt)||/^\s*-?\.\d+\s*$/.test(nt):!1}var Et=function(){function nt(Nt){if((0,je.Z)(this,nt),(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),Ke(Nt)){this.empty=!0;return}if(this.origin=String(Nt),Nt==="-"||Number.isNaN(Nt)){this.nan=!0;return}var qt=Nt;if(we(qt)&&(qt=Number(qt)),qt=typeof qt=="string"?qt:Pe(qt),rt(qt)){var wt=Te(qt);this.negative=wt.negative;var Wt=wt.trimStr.split(".");this.integer=BigInt(Wt[0]);var en=Wt[1]||"0";this.decimal=BigInt(en),this.decimalLen=en.length}else this.nan=!0}return(0,Ne.Z)(nt,[{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(qt){var wt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(qt,"0"));return BigInt(wt)}},{key:"negate",value:function(){var qt=new nt(this.toString());return qt.negative=!qt.negative,qt}},{key:"cal",value:function(qt,wt,Wt){var en=Math.max(this.getDecimalStr().length,qt.getDecimalStr().length),_n=this.alignDecimal(en),Un=qt.alignDecimal(en),On=wt(_n,Un).toString(),Vn=Wt(en),Zt=Te(On),Xt=Zt.negativeStr,an=Zt.trimStr,xn="".concat(Xt).concat(an.padStart(Vn+1,"0"));return new nt("".concat(xn.slice(0,-Vn),".").concat(xn.slice(-Vn)))}},{key:"add",value:function(qt){if(this.isInvalidate())return new nt(qt);var wt=new nt(qt);return wt.isInvalidate()?this:this.cal(wt,function(Wt,en){return Wt+en},function(Wt){return Wt})}},{key:"multi",value:function(qt){var wt=new nt(qt);return this.isInvalidate()||wt.isInvalidate()?new nt(NaN):this.cal(wt,function(Wt,en){return Wt*en},function(Wt){return Wt*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(qt){return this.toString()===(qt==null?void 0:qt.toString())}},{key:"lessEquals",value:function(qt){return this.add(qt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return qt?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),nt}(),Oe=function(){function nt(Nt){if((0,je.Z)(this,nt),(0,Ce.Z)(this,"origin",""),(0,Ce.Z)(this,"number",void 0),(0,Ce.Z)(this,"empty",void 0),Ke(Nt)){this.empty=!0;return}this.origin=String(Nt),this.number=Number(Nt)}return(0,Ne.Z)(nt,[{key:"negate",value:function(){return new nt(-this.toNumber())}},{key:"add",value:function(qt){if(this.isInvalidate())return new nt(qt);var wt=Number(qt);if(Number.isNaN(wt))return this;var Wt=this.number+wt;if(Wt>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Wt<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var en=Math.max(Ie(this.number),Ie(wt));return new nt(Wt.toFixed(en))}},{key:"multi",value:function(qt){var wt=Number(qt);if(this.isInvalidate()||Number.isNaN(wt))return new nt(NaN);var Wt=this.number*wt;if(Wt>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Wt<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var en=Math.max(Ie(this.number),Ie(wt));return new nt(Wt.toFixed(en))}},{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(qt){return this.toNumber()===(qt==null?void 0:qt.toNumber())}},{key:"lessEquals",value:function(qt){return this.add(qt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return qt?this.isInvalidate()?"":Pe(this.number):this.origin}}]),nt}();function Ae(nt){return ct()?new Et(nt):new Oe(nt)}function Ve(nt,Nt,qt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(nt==="")return"";var Wt=Te(nt),en=Wt.negativeStr,_n=Wt.integerStr,Un=Wt.decimalStr,On="".concat(Nt).concat(Un),Vn="".concat(en).concat(_n);if(qt>=0){var Zt=Number(Un[qt]);if(Zt>=5&&!wt){var Xt=Ae(nt).add("".concat(en,"0.").concat("0".repeat(qt)).concat(10-Zt));return Ve(Xt.toString(),Nt,qt,wt)}return qt===0?Vn:"".concat(Vn).concat(Nt).concat(Un.padEnd(qt,"0").slice(0,qt))}return On===".0"?Vn:"".concat(Vn).concat(On)}var Ye=Ae,xt=E(36901),gt=E(34280);function lt(nt,Nt){return typeof Proxy!="undefined"&&nt?new Proxy(nt,{get:function(wt,Wt){if(Nt[Wt])return Nt[Wt];var en=wt[Wt];return typeof en=="function"?en.bind(wt):en}}):nt}var Ue=E(8654),be=E(48736);function We(nt,Nt){var qt=(0,y.useRef)(null);function wt(){try{var en=nt.selectionStart,_n=nt.selectionEnd,Un=nt.value,On=Un.substring(0,en),Vn=Un.substring(_n);qt.current={start:en,end:_n,value:Un,beforeTxt:On,afterTxt:Vn}}catch(Zt){}}function Wt(){if(nt&&qt.current&&Nt)try{var en=nt.value,_n=qt.current,Un=_n.beforeTxt,On=_n.afterTxt,Vn=_n.start,Zt=en.length;if(en.startsWith(Un))Zt=Un.length;else if(en.endsWith(On))Zt=en.length-qt.current.afterTxt.length;else{var Xt=Un[Vn-1],an=en.indexOf(Xt,Vn-1);an!==-1&&(Zt=an+1)}nt.setSelectionRange(Zt,Zt)}catch(xn){(0,be.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(xn.message))}}return[wt,Wt]}var Be=E(49658),de=function(){var Nt=(0,y.useState)(!1),qt=(0,De.Z)(Nt,2),wt=qt[0],Wt=qt[1];return(0,gt.Z)(function(){Wt((0,Be.Z)())},[]),wt},St=de,Qe=E(16089),ze=200,st=600;function Se(nt){var Nt=nt.prefixCls,qt=nt.upNode,wt=nt.downNode,Wt=nt.upDisabled,en=nt.downDisabled,_n=nt.onStep,Un=y.useRef(),On=y.useRef([]),Vn=y.useRef();Vn.current=_n;var Zt=function(){clearTimeout(Un.current)},Xt=function(Jn,dr){Jn.preventDefault(),Zt(),Vn.current(dr);function yr(){Vn.current(dr),Un.current=setTimeout(yr,ze)}Un.current=setTimeout(yr,st)};y.useEffect(function(){return function(){Zt(),On.current.forEach(function(Er){return Qe.Z.cancel(Er)})}},[]);var an=St();if(an)return null;var xn="".concat(Nt,"-handler"),ln=xe()(xn,"".concat(xn,"-up"),(0,Ce.Z)({},"".concat(xn,"-up-disabled"),Wt)),Pn=xe()(xn,"".concat(xn,"-down"),(0,Ce.Z)({},"".concat(xn,"-down-disabled"),en)),Sn=function(){return On.current.push((0,Qe.Z)(Zt))},Rn={unselectable:"on",role:"button",onMouseUp:Sn,onMouseLeave:Sn};return y.createElement("div",{className:"".concat(xn,"-wrap")},y.createElement("span",(0,Ee.Z)({},Rn,{onMouseDown:function(Jn){Xt(Jn,!0)},"aria-label":"Increase Value","aria-disabled":Wt,className:ln}),qt||y.createElement("span",{unselectable:"on",className:"".concat(Nt,"-handler-up-inner")})),y.createElement("span",(0,Ee.Z)({},Rn,{onMouseDown:function(Jn){Xt(Jn,!1)},"aria-label":"Decrease Value","aria-disabled":en,className:Pn}),wt||y.createElement("span",{unselectable:"on",className:"".concat(Nt,"-handler-down-inner")})))}function ye(nt){var Nt=typeof nt=="number"?Pe(nt):Te(nt).fullStr,qt=Nt.includes(".");return qt?Te(Nt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:nt+"0"}var vt=E(30292),Ht=function(){var nt=(0,y.useRef)(0),Nt=function(){Qe.Z.cancel(nt.current)};return(0,y.useEffect)(function(){return Nt},[]),function(qt){Nt(),nt.current=(0,Qe.Z)(function(){qt()})}},$t=["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"],Fe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],pt=function(Nt,qt){return Nt||qt.isEmpty()?qt.toString():qt.toNumber()},ut=function(Nt){var qt=Ye(Nt);return qt.isInvalidate()?null:qt},Yt=y.forwardRef(function(nt,Nt){var qt=nt.prefixCls,wt=nt.className,Wt=nt.style,en=nt.min,_n=nt.max,Un=nt.step,On=Un===void 0?1:Un,Vn=nt.defaultValue,Zt=nt.value,Xt=nt.disabled,an=nt.readOnly,xn=nt.upHandler,ln=nt.downHandler,Pn=nt.keyboard,Sn=nt.changeOnWheel,Rn=Sn===void 0?!1:Sn,Er=nt.controls,Jn=Er===void 0?!0:Er,dr=nt.classNames,yr=nt.stringMode,gr=nt.parser,Vr=nt.formatter,Zr=nt.precision,Dn=nt.decimalSeparator,Zn=nt.onChange,fr=nt.onInput,ur=nt.onPressEnter,Mt=nt.onStep,Vt=nt.changeOnBlur,ft=Vt===void 0?!0:Vt,kt=nt.domRef,it=(0,fe.Z)(nt,$t),ht="".concat(qt,"-input"),cn=y.useRef(null),ar=y.useState(!1),mr=(0,De.Z)(ar,2),It=mr[0],_t=mr[1],Tt=y.useRef(!1),Kt=y.useRef(!1),Fn=y.useRef(!1),Hn=y.useState(function(){return Ye(Zt!=null?Zt:Vn)}),Gn=(0,De.Z)(Hn,2),jn=Gn[0],hr=Gn[1];function Pr(Sr){Zt===void 0&&hr(Sr)}var Tr=y.useCallback(function(Sr,tr){if(!tr)return Zr>=0?Zr:Math.max(Ie(Sr),Ie(On))},[Zr,On]),Lr=y.useCallback(function(Sr){var tr=String(Sr);if(gr)return gr(tr);var $r=tr;return Dn&&($r=$r.replace(Dn,".")),$r.replace(/[^\w.-]+/g,"")},[gr,Dn]),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"?Pe(Sr):Sr;if(!tr){var sa=Tr($r,tr);if(rt($r)&&(Dn||sa>=0)){var br=Dn||".";$r=Ve($r,br,sa)}}return $r},[Vr,Tr,Dn]),Xr=y.useState(function(){var Sr=Vn!=null?Vn:Zt;return jn.isInvalidate()&&["string","number"].includes((0,ke.Z)(Sr))?Number.isNaN(Sr)?"":Sr:Rr(jn.toString(),!1)}),oa=(0,De.Z)(Xr,2),ta=oa[0],xa=oa[1];Cr.current=ta;function Ia(Sr,tr){xa(Rr(Sr.isInvalidate()?Sr.toString(!1):Sr.toString(!tr),tr))}var Ur=y.useMemo(function(){return ut(_n)},[_n,Zr]),ya=y.useMemo(function(){return ut(en)},[en,Zr]),Xa=y.useMemo(function(){return!Ur||!jn||jn.isInvalidate()?!1:Ur.lessEquals(jn)},[Ur,jn]),Pa=y.useMemo(function(){return!ya||!jn||jn.isInvalidate()?!1:jn.lessEquals(ya)},[ya,jn]),pa=We(cn.current,It),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,br=Kr(sa)||sa.isEmpty();if(!sa.isEmpty()&&!$r&&(sa=la(sa)||sa,br=!0),!an&&!Xt&&br){var Dr=sa.toString(),jr=Tr(Dr,$r);return jr>=0&&(sa=Ye(Ve(Dr,".",jr)),Kr(sa)||(sa=Ye(Ve(Dr,".",jr,!0)))),sa.equals(jn)||(Pr(sa),Zn==null||Zn(sa.isEmpty()?null:pt(yr,sa)),Zt===void 0&&Ia(sa,$r)),sa}return jn},Mi=Ht(),ji=function Sr(tr){if(Za(),Cr.current=tr,xa(tr),!Kt.current){var $r=Lr(tr),sa=Ye($r);sa.isNaN()||Ya(sa,!0)}fr==null||fr(tr),Mi(function(){var br=tr;gr||(br=tr.replace(/。/g,".")),br!==tr&&Sr(br)})},za=function(){Kt.current=!0},Di=function(){Kt.current=!1,ji(cn.current.value)},pi=function(tr){ji(tr.target.value)},Wi=function(tr){var $r;if(!(tr&&Xa||!tr&&Pa)){Tt.current=!1;var sa=Ye(Fn.current?ye(On):On);tr||(sa=sa.negate());var br=(jn||Ye(0)).add(sa.toString()),Dr=Ya(br,!1);Mt==null||Mt(pt(yr,Dr),{offset:Fn.current?ye(On):On,type:tr?"up":"down"}),($r=cn.current)===null||$r===void 0||$r.focus()}},Ci=function(tr){var $r=Ye(Lr(ta)),sa;$r.isNaN()?sa=Ya(jn,tr):sa=Ya($r,tr),Zt!==void 0?Ia(jn,!1):sa.isNaN()||Ia(sa,!1)},ei=function(){Tt.current=!0},Ar=function(tr){var $r=tr.key,sa=tr.shiftKey;Tt.current=!0,Fn.current=sa,$r==="Enter"&&(Kt.current||(Tt.current=!1),Ci(!1),ur==null||ur(tr)),Pn!==!1&&!Kt.current&&["Up","ArrowUp","Down","ArrowDown"].includes($r)&&(Wi($r==="Up"||$r==="ArrowUp"),tr.preventDefault())},Qn=function(){Tt.current=!1,Fn.current=!1};y.useEffect(function(){if(Rn&&It){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(){ft&&Ci(!1),_t(!1),Tt.current=!1};return(0,gt.o)(function(){jn.isInvalidate()||Ia(jn,!1)},[Zr,Vr]),(0,gt.o)(function(){var Sr=Ye(Zt);hr(Sr);var tr=Ye(Lr(ta));(!Sr.equals(tr)||!Tt.current||Vr)&&Ia(Sr,Tt.current)},[Zt]),(0,gt.o)(function(){Vr&&Sa()},[ta]),y.createElement("div",{ref:kt,className:xe()(qt,wt,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(qt,"-focused"),It),"".concat(qt,"-disabled"),Xt),"".concat(qt,"-readonly"),an),"".concat(qt,"-not-a-number"),jn.isNaN()),"".concat(qt,"-out-of-range"),!jn.isInvalidate()&&!Kr(jn))),style:Wt,onFocus:function(){_t(!0)},onBlur:xr,onKeyDown:Ar,onKeyUp:Qn,onCompositionStart:za,onCompositionEnd:Di,onBeforeInput:ei},Jn&&y.createElement(Se,{prefixCls:qt,upNode:xn,downNode:ln,upDisabled:Xa,downDisabled:Pa,onStep:Wi}),y.createElement("div",{className:"".concat(ht,"-wrap")},y.createElement("input",(0,Ee.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":en,"aria-valuemax":_n,"aria-valuenow":jn.isInvalidate()?null:jn.toString(),step:On},it,{ref:(0,Ue.sQ)(cn,Nt),className:ht,value:ta,onChange:pi,disabled:Xt,readOnly:an}))))}),bt=y.forwardRef(function(nt,Nt){var qt=nt.disabled,wt=nt.style,Wt=nt.prefixCls,en=Wt===void 0?"rc-input-number":Wt,_n=nt.value,Un=nt.prefix,On=nt.suffix,Vn=nt.addonBefore,Zt=nt.addonAfter,Xt=nt.className,an=nt.classNames,xn=(0,fe.Z)(nt,Fe),ln=y.useRef(null),Pn=y.useRef(null),Sn=y.useRef(null),Rn=function(Jn){Sn.current&&(0,vt.nH)(Sn.current,Jn)};return y.useImperativeHandle(Nt,function(){return lt(Sn.current,{focus:Rn,nativeElement:ln.current.nativeElement||Pn.current})}),y.createElement(xt.BaseInput,{className:Xt,triggerFocus:Rn,prefixCls:en,value:_n,disabled:qt,style:wt,prefix:Un,suffix:On,addonAfter:Zt,addonBefore:Vn,classNames:an,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:ln},y.createElement(Yt,(0,Ee.Z)({prefixCls:en,disabled:qt,ref:Sn,domRef:Pn,className:an==null?void 0:an.input},xn)))}),Ct=bt,mt=Ct,mn=E(62487),zt=E(82855),ue=E(48755),ie=E(60840),re=E(2171),oe=E(83397),pe=E(31756),ae=E(56553),me=E(24971),Ze=E(70045),Ot=E(36237),at=E(53075),qe=E(64910),yt=E(39082),Ft=E(63356),jt=E(56119),Xe=E(16931),tt=E(51636),Gt=E(17835);const un=nt=>{var Nt;const qt=(Nt=nt.handleVisible)!==null&&Nt!==void 0?Nt:"auto",wt=nt.controlHeightSM-nt.lineWidth*2;return Object.assign(Object.assign({},(0,qe.T)(nt)),{controlWidth:90,handleWidth:wt,handleFontSize:nt.fontSize/2,handleVisible:qt,handleActiveBg:nt.colorFillAlter,handleBg:nt.colorBgContainer,filledHandleBg:new Gt.FastColor(nt.colorFillSecondary).onBackground(nt.colorBgContainer).toHexString(),handleHoverColor:nt.colorPrimary,handleBorderColor:nt.colorBorder,handleOpacity:qt===!0?1:0,handleVisibleWidth:qt===!0?wt:0})},wn=(nt,Nt)=>{let{componentCls:qt,borderRadiusSM:wt,borderRadiusLG:Wt}=nt;const en=Nt==="lg"?Wt:wt;return{[`&-${Nt}`]:{[`${qt}-handler-wrap`]:{borderStartEndRadius:en,borderEndEndRadius:en},[`${qt}-handler-up`]:{borderStartEndRadius:en},[`${qt}-handler-down`]:{borderEndEndRadius:en}}}},gn=nt=>{const{componentCls:Nt,lineWidth:qt,lineType:wt,borderRadius:Wt,inputFontSizeSM:en,inputFontSizeLG:_n,controlHeightLG:Un,controlHeightSM:On,colorError:Vn,paddingInlineSM:Zt,paddingBlockSM:Xt,paddingBlockLG:an,paddingInlineLG:xn,colorTextDescription:ln,motionDurationMid:Pn,handleHoverColor:Sn,handleOpacity:Rn,paddingInline:Er,paddingBlock:Jn,handleBg:dr,handleActiveBg:yr,colorTextDisabled:gr,borderRadiusSM:Vr,borderRadiusLG:Zr,controlWidth:Dn,handleBorderColor:Zn,filledHandleBg:fr,lineHeightLG:ur,calc:Mt}=nt;return[{[Nt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(nt)),(0,at.ik)(nt)),{display:"inline-block",width:Dn,margin:0,padding:0,borderRadius:Wt}),(0,yt.qG)(nt,{[`${Nt}-handler-wrap`]:{background:dr,[`${Nt}-handler-down`]:{borderBlockStart:`${(0,Ot.unit)(qt)} ${wt} ${Zn}`}}})),(0,yt.H8)(nt,{[`${Nt}-handler-wrap`]:{background:fr,[`${Nt}-handler-down`]:{borderBlockStart:`${(0,Ot.unit)(qt)} ${wt} ${Zn}`}},"&:focus-within":{[`${Nt}-handler-wrap`]:{background:dr}}})),(0,yt.vc)(nt,{[`${Nt}-handler-wrap`]:{background:dr,[`${Nt}-handler-down`]:{borderBlockStart:`${(0,Ot.unit)(qt)} ${wt} ${Zn}`}}})),(0,yt.Mu)(nt)),{"&-rtl":{direction:"rtl",[`${Nt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:_n,lineHeight:ur,borderRadius:Zr,[`input${Nt}-input`]:{height:Mt(Un).sub(Mt(qt).mul(2)).equal(),padding:`${(0,Ot.unit)(an)} ${(0,Ot.unit)(xn)}`}},"&-sm":{padding:0,fontSize:en,borderRadius:Vr,[`input${Nt}-input`]:{height:Mt(On).sub(Mt(qt).mul(2)).equal(),padding:`${(0,Ot.unit)(Xt)} ${(0,Ot.unit)(Zt)}`}},"&-out-of-range":{[`${Nt}-input-wrap`]:{input:{color:Vn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(nt)),(0,at.s7)(nt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Nt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Nt}-group-addon`]:{borderRadius:Zr,fontSize:nt.fontSizeLG}},"&-sm":{[`${Nt}-group-addon`]:{borderRadius:Vr}}},(0,yt.ir)(nt)),(0,yt.S5)(nt)),{[`&:not(${Nt}-compact-first-item):not(${Nt}-compact-last-item)${Nt}-compact-item`]:{[`${Nt}, ${Nt}-group-addon`]:{borderRadius:0}},[`&:not(${Nt}-compact-last-item)${Nt}-compact-first-item`]:{[`${Nt}, ${Nt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Nt}-compact-first-item)${Nt}-compact-last-item`]:{[`${Nt}, ${Nt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Nt}-input`]:{cursor:"not-allowed"},[Nt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ft.Wf)(nt)),{width:"100%",padding:`${(0,Ot.unit)(Jn)} ${(0,Ot.unit)(Er)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Wt,outline:0,transition:`all ${Pn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,at.nz)(nt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Nt}-handler-wrap, &-focused ${Nt}-handler-wrap`]:{width:nt.handleWidth,opacity:1}})},{[Nt]:Object.assign(Object.assign(Object.assign({[`${Nt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:nt.handleVisibleWidth,opacity:Rn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Wt,borderEndEndRadius:Wt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Pn}`,overflow:"hidden",[`${Nt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Nt}-handler-up-inner,
${Nt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:nt.handleFontSize}}},[`${Nt}-handler`]:{height:"50%",overflow:"hidden",color:ln,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Ot.unit)(qt)} ${wt} ${Zn}`,transition:`all ${Pn} linear`,"&:active":{background:yr},"&:hover":{height:"60%",[`
${Nt}-handler-up-inner,
${Nt}-handler-down-inner
`]:{color:Sn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ft.Ro)()),{color:ln,transition:`all ${Pn} linear`,userSelect:"none"})},[`${Nt}-handler-up`]:{borderStartEndRadius:Wt},[`${Nt}-handler-down`]:{borderEndEndRadius:Wt}},wn(nt,"lg")),wn(nt,"sm")),{"&-disabled, &-readonly":{[`${Nt}-handler-wrap`]:{display:"none"},[`${Nt}-input`]:{color:"inherit"}},[`
${Nt}-handler-up-disabled,
${Nt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Nt}-handler-up-disabled:hover &-handler-up-inner,
${Nt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:gr}})}]},Rt=nt=>{const{componentCls:Nt,paddingBlock:qt,paddingInline:wt,inputAffixPadding:Wt,controlWidth:en,borderRadiusLG:_n,borderRadiusSM:Un,paddingInlineLG:On,paddingInlineSM:Vn,paddingBlockLG:Zt,paddingBlockSM:Xt,motionDurationMid:an}=nt;return{[`${Nt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Nt}-input`]:{padding:`${(0,Ot.unit)(qt)} 0`}},(0,at.ik)(nt)),{position:"relative",display:"inline-flex",alignItems:"center",width:en,padding:0,paddingInlineStart:wt,"&-lg":{borderRadius:_n,paddingInlineStart:On,[`input${Nt}-input`]:{padding:`${(0,Ot.unit)(Zt)} 0`}},"&-sm":{borderRadius:Un,paddingInlineStart:Vn,[`input${Nt}-input`]:{padding:`${(0,Ot.unit)(Xt)} 0`}},[`&:not(${Nt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Nt}-disabled`]:{background:"transparent"},[`> div${Nt}`]:{width:"100%",border:"none",outline:"none",[`&${Nt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Nt}-handler-wrap`]:{zIndex:2},[Nt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Wt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:wt,marginInlineStart:Wt,transition:`margin ${an}`}},[`&:hover ${Nt}-handler-wrap, &-focused ${Nt}-handler-wrap`]:{width:nt.handleWidth,opacity:1},[`&:not(${Nt}-affix-wrapper-without-controls):hover ${Nt}-suffix`]:{marginInlineEnd:nt.calc(nt.handleWidth).add(wt).equal()}})}};var Ut=(0,Xe.I$)("InputNumber",nt=>{const Nt=(0,tt.mergeToken)(nt,(0,qe.e)(nt));return[gn(Nt),Rt(Nt),(0,jt.c)(Nt)]},un,{unitless:{handleOpacity:!0}}),At=function(nt,Nt){var qt={};for(var wt in nt)Object.prototype.hasOwnProperty.call(nt,wt)&&Nt.indexOf(wt)<0&&(qt[wt]=nt[wt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,wt=Object.getOwnPropertySymbols(nt);Wt<wt.length;Wt++)Nt.indexOf(wt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(nt,wt[Wt])&&(qt[wt[Wt]]=nt[wt[Wt]]);return qt};const Je=y.forwardRef((nt,Nt)=>{const{getPrefixCls:qt,direction:wt}=y.useContext(ue.E_),Wt=y.useRef(null);y.useImperativeHandle(Nt,()=>Wt.current);const{className:en,rootClassName:_n,size:Un,disabled:On,prefixCls:Vn,addonBefore:Zt,addonAfter:Xt,prefix:an,suffix:xn,bordered:ln,readOnly:Pn,status:Sn,controls:Rn,variant:Er}=nt,Jn=At(nt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),dr=qt("input-number",Vn),yr=(0,oe.Z)(dr),[gr,Vr,Zr]=Ut(dr,yr),{compactSize:Dn,compactItemClassnames:Zn}=(0,Ze.ri)(dr,wt);let fr=y.createElement(ce.Z,{className:`${dr}-handler-up-inner`}),ur=y.createElement(ve.Z,{className:`${dr}-handler-down-inner`});const Mt=typeof Rn=="boolean"?Rn:void 0;typeof Rn=="object"&&(fr=typeof Rn.upIcon=="undefined"?fr:y.createElement("span",{className:`${dr}-handler-up-inner`},Rn.upIcon),ur=typeof Rn.downIcon=="undefined"?ur:y.createElement("span",{className:`${dr}-handler-down-inner`},Rn.downIcon));const{hasFeedback:Vt,status:ft,isFormItemInput:kt,feedbackIcon:it}=y.useContext(ae.aM),ht=(0,zt.F)(ft,Sn),cn=(0,pe.Z)(Gn=>{var jn;return(jn=Un!=null?Un:Dn)!==null&&jn!==void 0?jn:Gn}),ar=y.useContext(re.Z),mr=On!=null?On:ar,[It,_t]=(0,me.Z)("inputNumber",Er,ln),Tt=Vt&&y.createElement(y.Fragment,null,it),Kt=xe()({[`${dr}-lg`]:cn==="large",[`${dr}-sm`]:cn==="small",[`${dr}-rtl`]:wt==="rtl",[`${dr}-in-form-item`]:kt},Vr),Fn=`${dr}-group`,Hn=y.createElement(mt,Object.assign({ref:Wt,disabled:mr,className:xe()(Zr,yr,en,_n,Zn),upHandler:fr,downHandler:ur,prefixCls:dr,readOnly:Pn,controls:Mt,prefix:an,suffix:Tt||xn,addonBefore:Zt&&y.createElement(mn.Z,{form:!0,space:!0},Zt),addonAfter:Xt&&y.createElement(mn.Z,{form:!0,space:!0},Xt),classNames:{input:Kt,variant:xe()({[`${dr}-${It}`]:_t},(0,zt.Z)(dr,ht,Vt)),affixWrapper:xe()({[`${dr}-affix-wrapper-sm`]:cn==="small",[`${dr}-affix-wrapper-lg`]:cn==="large",[`${dr}-affix-wrapper-rtl`]:wt==="rtl",[`${dr}-affix-wrapper-without-controls`]:Rn===!1||mr},Vr),wrapper:xe()({[`${Fn}-rtl`]:wt==="rtl"},Vr),groupWrapper:xe()({[`${dr}-group-wrapper-sm`]:cn==="small",[`${dr}-group-wrapper-lg`]:cn==="large",[`${dr}-group-wrapper-rtl`]:wt==="rtl",[`${dr}-group-wrapper-${It}`]:_t},(0,zt.Z)(`${dr}-group-wrapper`,ht,Vt),Vr)}},Jn));return gr(Hn)}),Pt=Je,nn=nt=>y.createElement(ie.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(Je,Object.assign({},nt)));Pt._InternalPanelDoNotUseOrYouWillBeFired=nn;var pn=Pt},49397:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Oe}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(36901),xe=E(8654),Ee=E(62487),Ce=E(86013),ke=E(82855),De=E(48755),fe=E(2171),je=E(83397),Ne=E(31756),ct=E(56553),Ke=E(24971),Te=E(70045),we=E(23826),Ie=E(53075);function Pe(Ae){return!!(Ae.prefix||Ae.suffix||Ae.allowClear||Ae.showCount)}var rt=function(Ae,Ve){var Ye={};for(var xt in Ae)Object.prototype.hasOwnProperty.call(Ae,xt)&&Ve.indexOf(xt)<0&&(Ye[xt]=Ae[xt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,xt=Object.getOwnPropertySymbols(Ae);gt<xt.length;gt++)Ve.indexOf(xt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,xt[gt])&&(Ye[xt[gt]]=Ae[xt[gt]]);return Ye},Oe=(0,y.forwardRef)((Ae,Ve)=>{const{prefixCls:Ye,bordered:xt=!0,status:gt,size:lt,disabled:Ue,onBlur:be,onFocus:We,suffix:Be,allowClear:de,addonAfter:St,addonBefore:Qe,className:ze,style:st,styles:Se,rootClassName:ye,onChange:vt,classNames:Ht,variant:$t}=Ae,Fe=rt(Ae,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:pt,direction:ut,allowClear:Yt,autoComplete:bt,className:Ct,style:mt,classNames:mn,styles:zt}=(0,De.dj)("input"),ue=pt("input",Ye),ie=(0,y.useRef)(null),re=(0,je.Z)(ue),[oe,pe,ae]=(0,Ie.TI)(ue,ye),[me]=(0,Ie.ZP)(ue,re),{compactSize:Ze,compactItemClassnames:Ot}=(0,Te.ri)(ue,ut),at=(0,Ne.Z)(pn=>{var nt;return(nt=lt!=null?lt:Ze)!==null&&nt!==void 0?nt:pn}),qe=y.useContext(fe.Z),yt=Ue!=null?Ue:qe,{status:Ft,hasFeedback:jt,feedbackIcon:Xe}=(0,y.useContext)(ct.aM),tt=(0,ke.F)(Ft,gt),Gt=Pe(Ae)||!!jt,un=(0,y.useRef)(Gt),wn=(0,we.Z)(ie,!0),gn=pn=>{wn(),be==null||be(pn)},Rt=pn=>{wn(),We==null||We(pn)},Ut=pn=>{wn(),vt==null||vt(pn)},At=(jt||Be)&&y.createElement(y.Fragment,null,Be,jt&&Xe),Je=(0,Ce.Z)(de!=null?de:Yt),[Pt,nn]=(0,Ke.Z)("input",$t,xt);return oe(me(y.createElement(Le.default,Object.assign({ref:(0,xe.sQ)(Ve,ie),prefixCls:ue,autoComplete:bt},Fe,{disabled:yt,onBlur:gn,onFocus:Rt,style:Object.assign(Object.assign({},mt),st),styles:Object.assign(Object.assign({},zt),Se),suffix:At,allowClear:Je,className:ce()(ze,ye,ae,re,Ot,Ct),onChange:Ut,addonBefore:Qe&&y.createElement(Ee.Z,{form:!0,space:!0},Qe),addonAfter:St&&y.createElement(Ee.Z,{form:!0,space:!0},St),classNames:Object.assign(Object.assign(Object.assign({},Ht),mn),{input:ce()({[`${ue}-sm`]:at==="small",[`${ue}-lg`]:at==="large",[`${ue}-rtl`]:ut==="rtl"},Ht==null?void 0:Ht.input,mn.input,pe),variant:ce()({[`${ue}-${Pt}`]:nn},(0,ke.Z)(ue,tt)),affixWrapper:ce()({[`${ue}-affix-wrapper-sm`]:at==="small",[`${ue}-affix-wrapper-lg`]:at==="large",[`${ue}-affix-wrapper-rtl`]:ut==="rtl"},pe),wrapper:ce()({[`${ue}-group-rtl`]:ut==="rtl"},pe),groupWrapper:ce()({[`${ue}-group-wrapper-sm`]:at==="small",[`${ue}-group-wrapper-lg`]:at==="large",[`${ue}-group-wrapper-rtl`]:ut==="rtl",[`${ue}-group-wrapper-${Pt}`]:nn},(0,ke.Z)(`${ue}-group-wrapper`,tt,jt),pe)})}))))})},79809:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ve}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(22711),xe=E(86013),Ee=E(82855),Ce=E(48755),ke=E(2171),De=E(83397),fe=E(31756),je=E(56553),Ne=E(24971),ct=E(70045),Ke=E(30292),Te=E(53075),we=E(16931),Ie=E(51636),Pe=E(64910);const rt=Ye=>{const{componentCls:xt,paddingLG:gt}=Ye,lt=`${xt}-textarea`;return{[`textarea${xt}`]:{maxWidth:"100%",height:"auto",minHeight:Ye.controlHeight,lineHeight:Ye.lineHeight,verticalAlign:"bottom",transition:`all ${Ye.motionDurationSlow}`,resize:"vertical",[`&${xt}-mouse-active`]:{transition:`all ${Ye.motionDurationSlow}, height 0s, width 0s`}},[`${xt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[lt]:{position:"relative","&-show-count":{[`> ${xt}`]:{height:"100%"},[`${xt}-data-count`]:{position:"absolute",bottom:Ye.calc(Ye.fontSize).mul(Ye.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ye.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${xt},
&-affix-wrapper${lt}-has-feedback ${xt}
`]:{paddingInlineEnd:gt},[`&-affix-wrapper${xt}-affix-wrapper`]:{padding:0,[`> textarea${xt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ye.calc(Ye.controlHeight).sub(Ye.calc(Ye.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${xt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${xt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ye.paddingInline,insetBlockStart:Ye.paddingXS},[`${lt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ye.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${xt}-affix-wrapper-sm`]:{[`${xt}-suffix`]:{[`${xt}-clear-icon`]:{insetInlineEnd:Ye.paddingInlineSM}}}}}};var Et=(0,we.I$)(["Input","TextArea"],Ye=>{const xt=(0,Ie.mergeToken)(Ye,(0,Pe.e)(Ye));return[rt(xt)]},Pe.T,{resetFont:!1}),Oe=function(Ye,xt){var gt={};for(var lt in Ye)Object.prototype.hasOwnProperty.call(Ye,lt)&&xt.indexOf(lt)<0&&(gt[lt]=Ye[lt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,lt=Object.getOwnPropertySymbols(Ye);Ue<lt.length;Ue++)xt.indexOf(lt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ye,lt[Ue])&&(gt[lt[Ue]]=Ye[lt[Ue]]);return gt},Ve=(0,y.forwardRef)((Ye,xt)=>{var gt;const{prefixCls:lt,bordered:Ue=!0,size:be,disabled:We,status:Be,allowClear:de,classNames:St,rootClassName:Qe,className:ze,style:st,styles:Se,variant:ye,showCount:vt,onMouseDown:Ht,onResize:$t}=Ye,Fe=Oe(Ye,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:pt,direction:ut,allowClear:Yt,autoComplete:bt,className:Ct,style:mt,classNames:mn,styles:zt}=(0,Ce.dj)("textArea"),ue=y.useContext(ke.Z),ie=We!=null?We:ue,{status:re,hasFeedback:oe,feedbackIcon:pe}=y.useContext(je.aM),ae=(0,Ee.F)(re,Be),me=y.useRef(null);y.useImperativeHandle(xt,()=>{var nn;return{resizableTextArea:(nn=me.current)===null||nn===void 0?void 0:nn.resizableTextArea,focus:pn=>{var nt,Nt;(0,Ke.nH)((Nt=(nt=me.current)===null||nt===void 0?void 0:nt.resizableTextArea)===null||Nt===void 0?void 0:Nt.textArea,pn)},blur:()=>{var pn;return(pn=me.current)===null||pn===void 0?void 0:pn.blur()}}});const Ze=pt("input",lt),Ot=(0,De.Z)(Ze),[at,qe,yt]=(0,Te.TI)(Ze,Qe),[Ft]=Et(Ze,Ot),{compactSize:jt,compactItemClassnames:Xe}=(0,ct.ri)(Ze,ut),tt=(0,fe.Z)(nn=>{var pn;return(pn=be!=null?be:jt)!==null&&pn!==void 0?pn:nn}),[Gt,un]=(0,Ne.Z)("textArea",ye,Ue),wn=(0,xe.Z)(de!=null?de:Yt),[gn,Rt]=y.useState(!1),[Ut,At]=y.useState(!1),Je=nn=>{Rt(!0),Ht==null||Ht(nn);const pn=()=>{Rt(!1),document.removeEventListener("mouseup",pn)};document.addEventListener("mouseup",pn)},Pt=nn=>{var pn,nt;if($t==null||$t(nn),gn&&typeof getComputedStyle=="function"){const Nt=(nt=(pn=me.current)===null||pn===void 0?void 0:pn.nativeElement)===null||nt===void 0?void 0:nt.querySelector("textarea");Nt&&getComputedStyle(Nt).resize==="both"&&At(!0)}};return at(Ft(y.createElement(Le.default,Object.assign({autoComplete:bt},Fe,{style:Object.assign(Object.assign({},mt),st),styles:Object.assign(Object.assign({},zt),Se),disabled:ie,allowClear:wn,className:ce()(yt,Ot,ze,Qe,Xe,Ct,Ut&&`${Ze}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},St),mn),{textarea:ce()({[`${Ze}-sm`]:tt==="small",[`${Ze}-lg`]:tt==="large"},qe,St==null?void 0:St.textarea,mn.textarea,gn&&`${Ze}-mouse-active`),variant:ce()({[`${Ze}-${Gt}`]:un},(0,Ee.Z)(Ze,ae)),affixWrapper:ce()(`${Ze}-textarea-affix-wrapper`,{[`${Ze}-affix-wrapper-rtl`]:ut==="rtl",[`${Ze}-affix-wrapper-sm`]:tt==="small",[`${Ze}-affix-wrapper-lg`]:tt==="large",[`${Ze}-textarea-show-count`]:vt||((gt=Ye.count)===null||gt===void 0?void 0:gt.show)},qe)}),prefixCls:Ze,suffix:oe&&y.createElement("span",{className:`${Ze}-textarea-suffix`},pe),showCount:vt,ref:me,onResize:Pt,onMouseDown:Je}))))})},23826:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ve}});var y=E(59301);function ve(ce,Le){const xe=(0,y.useRef)([]),Ee=()=>{xe.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)(()=>(Le&&Ee(),()=>xe.current.forEach(Ce=>{Ce&&clearTimeout(Ce)})),[]),Ee}},37568:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return mn}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(48755),xe=E(56553),Ee=E(53075),ke=zt=>{const{getPrefixCls:ue,direction:ie}=(0,y.useContext)(Le.E_),{prefixCls:re,className:oe}=zt,pe=ue("input-group",re),ae=ue("input"),[me,Ze,Ot]=(0,Ee.ZP)(ae),at=ce()(pe,Ot,{[`${pe}-lg`]:zt.size==="large",[`${pe}-sm`]:zt.size==="small",[`${pe}-compact`]:zt.compact,[`${pe}-rtl`]:ie==="rtl"},Ze,oe),qe=(0,y.useContext)(xe.aM),yt=(0,y.useMemo)(()=>Object.assign(Object.assign({},qe),{isFormItemInput:!1}),[qe]);return me(y.createElement("span",{className:at,style:zt.style,onMouseEnter:zt.onMouseEnter,onMouseLeave:zt.onMouseLeave,onFocus:zt.onFocus,onBlur:zt.onBlur},y.createElement(xe.aM.Provider,{value:yt},zt.children)))},De=E(49397),fe=E(94480),je=E(6089),Ne=E(26112),ct=E(82855),Ke=E(31756),Te=E(16931),we=E(51636),Ie=E(64910);const Pe=zt=>{const{componentCls:ue,paddingXS:ie}=zt;return{[ue]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ie,"&-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 rt=(0,Te.I$)(["Input","OTP"],zt=>{const ue=(0,we.mergeToken)(zt,(0,Ie.e)(zt));return[Pe(ue)]},Ie.T),Et=E(16089),Oe=function(zt,ue){var ie={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ie[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(zt);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[oe])&&(ie[re[oe]]=zt[re[oe]]);return ie},Ve=y.forwardRef((zt,ue)=>{const{value:ie,onChange:re,onActiveChange:oe,index:pe,mask:ae}=zt,me=Oe(zt,["value","onChange","onActiveChange","index","mask"]),Ze=ie&&typeof ae=="string"?ae:ie,Ot=jt=>{re(pe,jt.target.value)},at=y.useRef(null);y.useImperativeHandle(ue,()=>at.current);const qe=()=>{(0,Et.Z)(()=>{var jt;const Xe=(jt=at.current)===null||jt===void 0?void 0:jt.input;document.activeElement===Xe&&Xe&&Xe.select()})},yt=jt=>{const{key:Xe,ctrlKey:tt,metaKey:Gt}=jt;Xe==="ArrowLeft"?oe(pe-1):Xe==="ArrowRight"?oe(pe+1):Xe==="z"&&(tt||Gt)&&jt.preventDefault(),qe()},Ft=jt=>{jt.key==="Backspace"&&!ie&&oe(pe-1),qe()};return y.createElement(De.Z,Object.assign({type:ae===!0?"password":"text"},me,{ref:at,value:Ze,onInput:Ot,onFocus:qe,onKeyDown:yt,onKeyUp:Ft,onMouseDown:qe,onMouseUp:qe}))}),Ye=function(zt,ue){var ie={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ie[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(zt);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[oe])&&(ie[re[oe]]=zt[re[oe]]);return ie};function xt(zt){return(zt||"").split("")}const gt=zt=>{const{index:ue,prefixCls:ie,separator:re}=zt,oe=typeof re=="function"?re(ue):re;return oe?y.createElement("span",{className:`${ie}-separator`},oe):null};var Ue=y.forwardRef((zt,ue)=>{const{prefixCls:ie,length:re=6,size:oe,defaultValue:pe,value:ae,onChange:me,formatter:Ze,separator:Ot,variant:at,disabled:qe,status:yt,autoFocus:Ft,mask:jt,type:Xe,onInput:tt,inputMode:Gt}=zt,un=Ye(zt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:wn,direction:gn}=y.useContext(Le.E_),Rt=wn("otp",ie),Ut=(0,Ne.Z)(un,{aria:!0,data:!0,attr:!0}),[At,Je,Pt]=rt(Rt),nn=(0,Ke.Z)(an=>oe!=null?oe:an),pn=y.useContext(xe.aM),nt=(0,ct.F)(pn.status,yt),Nt=y.useMemo(()=>Object.assign(Object.assign({},pn),{status:nt,hasFeedback:!1,feedbackIcon:null}),[pn,nt]),qt=y.useRef(null),wt=y.useRef({});y.useImperativeHandle(ue,()=>({focus:()=>{var an;(an=wt.current[0])===null||an===void 0||an.focus()},blur:()=>{var an;for(let xn=0;xn<re;xn+=1)(an=wt.current[xn])===null||an===void 0||an.blur()},nativeElement:qt.current}));const Wt=an=>Ze?Ze(an):an,[en,_n]=y.useState(()=>xt(Wt(pe||"")));y.useEffect(()=>{ae!==void 0&&_n(xt(ae))},[ae]);const Un=(0,je.Z)(an=>{_n(an),tt&&tt(an),me&&an.length===re&&an.every(xn=>xn)&&an.some((xn,ln)=>en[ln]!==xn)&&me(an.join(""))}),On=(0,je.Z)((an,xn)=>{let ln=(0,fe.Z)(en);for(let Sn=0;Sn<an;Sn+=1)ln[Sn]||(ln[Sn]="");xn.length<=1?ln[an]=xn:ln=ln.slice(0,an).concat(xt(xn)),ln=ln.slice(0,re);for(let Sn=ln.length-1;Sn>=0&&!ln[Sn];Sn-=1)ln.pop();const Pn=Wt(ln.map(Sn=>Sn||" ").join(""));return ln=xt(Pn).map((Sn,Rn)=>Sn===" "&&!ln[Rn]?ln[Rn]:Sn),ln}),Vn=(an,xn)=>{var ln;const Pn=On(an,xn),Sn=Math.min(an+xn.length,re-1);Sn!==an&&Pn[an]!==void 0&&((ln=wt.current[Sn])===null||ln===void 0||ln.focus()),Un(Pn)},Zt=an=>{var xn;(xn=wt.current[an])===null||xn===void 0||xn.focus()},Xt={variant:at,disabled:qe,status:nt,mask:jt,type:Xe,inputMode:Gt};return At(y.createElement("div",Object.assign({},Ut,{ref:qt,className:ce()(Rt,{[`${Rt}-sm`]:nn==="small",[`${Rt}-lg`]:nn==="large",[`${Rt}-rtl`]:gn==="rtl"},Pt,Je)}),y.createElement(xe.aM.Provider,{value:Nt},Array.from({length:re}).map((an,xn)=>{const ln=`otp-${xn}`,Pn=en[xn]||"";return y.createElement(y.Fragment,{key:ln},y.createElement(Ve,Object.assign({ref:Sn=>{wt.current[xn]=Sn},index:xn,size:nn,htmlSize:1,className:`${Rt}-input`,onChange:Vn,value:Pn,onActiveChange:Zt,autoFocus:xn===0&&Ft},Xt)),xn<re-1&&y.createElement(gt,{separator:Ot,index:xn,prefixCls:Rt}))}))))}),be=E(73331),We=E(15277),Be=E(2738),de=E(8654),St=E(2171),Qe=E(23826),ze=function(zt,ue){var ie={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ie[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(zt);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[oe])&&(ie[re[oe]]=zt[re[oe]]);return ie};const st=zt=>zt?y.createElement(We.Z,null):y.createElement(be.Z,null),Se={click:"onClick",hover:"onMouseOver"};var vt=y.forwardRef((zt,ue)=>{const{disabled:ie,action:re="click",visibilityToggle:oe=!0,iconRender:pe=st}=zt,ae=y.useContext(St.Z),me=ie!=null?ie:ae,Ze=typeof oe=="object"&&oe.visible!==void 0,[Ot,at]=(0,y.useState)(()=>Ze?oe.visible:!1),qe=(0,y.useRef)(null);y.useEffect(()=>{Ze&&at(oe.visible)},[Ze,oe]);const yt=(0,Qe.Z)(qe),Ft=()=>{var nn;if(me)return;Ot&&yt();const pn=!Ot;at(pn),typeof oe=="object"&&((nn=oe.onVisibleChange)===null||nn===void 0||nn.call(oe,pn))},jt=nn=>{const pn=Se[re]||"",nt=pe(Ot),Nt={[pn]:Ft,className:`${nn}-icon`,key:"passwordIcon",onMouseDown:qt=>{qt.preventDefault()},onMouseUp:qt=>{qt.preventDefault()}};return y.cloneElement(y.isValidElement(nt)?nt:y.createElement("span",null,nt),Nt)},{className:Xe,prefixCls:tt,inputPrefixCls:Gt,size:un}=zt,wn=ze(zt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:gn}=y.useContext(Le.E_),Rt=gn("input",Gt),Ut=gn("input-password",tt),At=oe&&jt(Ut),Je=ce()(Ut,Xe,{[`${Ut}-${un}`]:!!un}),Pt=Object.assign(Object.assign({},(0,Be.Z)(wn,["suffix","iconRender","visibilityToggle"])),{type:Ot?"text":"password",className:Je,prefixCls:Rt,suffix:At});return un&&(Pt.size=un),y.createElement(De.Z,Object.assign({ref:(0,de.sQ)(ue,qe)},Pt))}),Ht=E(47472),$t=E(22703),Fe=E(7939),pt=E(70045),ut=function(zt,ue){var ie={};for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&ue.indexOf(re)<0&&(ie[re]=zt[re]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,re=Object.getOwnPropertySymbols(zt);oe<re.length;oe++)ue.indexOf(re[oe])<0&&Object.prototype.propertyIsEnumerable.call(zt,re[oe])&&(ie[re[oe]]=zt[re[oe]]);return ie},bt=y.forwardRef((zt,ue)=>{const{prefixCls:ie,inputPrefixCls:re,className:oe,size:pe,suffix:ae,enterButton:me=!1,addonAfter:Ze,loading:Ot,disabled:at,onSearch:qe,onChange:yt,onCompositionStart:Ft,onCompositionEnd:jt}=zt,Xe=ut(zt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:tt,direction:Gt}=y.useContext(Le.E_),un=y.useRef(!1),wn=tt("input-search",ie),gn=tt("input",re),{compactSize:Rt}=(0,pt.ri)(wn,Gt),Ut=(0,Ke.Z)(Vn=>{var Zt;return(Zt=pe!=null?pe:Rt)!==null&&Zt!==void 0?Zt:Vn}),At=y.useRef(null),Je=Vn=>{Vn!=null&&Vn.target&&Vn.type==="click"&&qe&&qe(Vn.target.value,Vn,{source:"clear"}),yt==null||yt(Vn)},Pt=Vn=>{var Zt;document.activeElement===((Zt=At.current)===null||Zt===void 0?void 0:Zt.input)&&Vn.preventDefault()},nn=Vn=>{var Zt,Xt;qe&&qe((Xt=(Zt=At.current)===null||Zt===void 0?void 0:Zt.input)===null||Xt===void 0?void 0:Xt.value,Vn,{source:"input"})},pn=Vn=>{un.current||Ot||nn(Vn)},nt=typeof me=="boolean"?y.createElement(Ht.Z,null):null,Nt=`${wn}-button`;let qt;const wt=me||{},Wt=wt.type&&wt.type.__ANT_BUTTON===!0;Wt||wt.type==="button"?qt=(0,$t.Tm)(wt,Object.assign({onMouseDown:Pt,onClick:Vn=>{var Zt,Xt;(Xt=(Zt=wt==null?void 0:wt.props)===null||Zt===void 0?void 0:Zt.onClick)===null||Xt===void 0||Xt.call(Zt,Vn),nn(Vn)},key:"enterButton"},Wt?{className:Nt,size:Ut}:{})):qt=y.createElement(Fe.ZP,{className:Nt,type:me?"primary":void 0,size:Ut,disabled:at,key:"enterButton",onMouseDown:Pt,onClick:nn,loading:Ot,icon:nt},me),Ze&&(qt=[qt,(0,$t.Tm)(Ze,{key:"addonAfter"})]);const en=ce()(wn,{[`${wn}-rtl`]:Gt==="rtl",[`${wn}-${Ut}`]:!!Ut,[`${wn}-with-button`]:!!me},oe),_n=Object.assign(Object.assign({},Xe),{className:en,prefixCls:gn,type:"search"}),Un=Vn=>{un.current=!0,Ft==null||Ft(Vn)},On=Vn=>{un.current=!1,jt==null||jt(Vn)};return y.createElement(De.Z,Object.assign({ref:(0,de.sQ)(At,ue),onPressEnter:pn},_n,{size:Ut,onCompositionStart:Un,onCompositionEnd:On,addonAfter:qt,suffix:ae,onChange:Je,disabled:at}))}),Ct=E(79809);const mt=De.Z;mt.Group=ke,mt.Search=bt,mt.TextArea=Ct.Z,mt.Password=vt,mt.OTP=Ue;var mn=mt},24303:function(Mn,Jt,E){"use strict";E.d(Jt,{D:function(){return Ye},Z:function(){return lt}});var y=E(59301),ve=E(54476),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"},Le=ce,xe=E(7657),Ee=function(be,We){return y.createElement(xe.Z,(0,ve.Z)({},be,{ref:We,icon:Le}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(33853),fe=E(38819),je=E(92310),Ne=E.n(je),ct=E(2738),Ke=E(48755),Te=E(6989),we=E(36237),Ie=E(48923),Pe=E(16931);const rt=Ue=>{const{componentCls:be,siderBg:We,motionDurationMid:Be,motionDurationSlow:de,antCls:St,triggerHeight:Qe,triggerColor:ze,triggerBg:st,headerHeight:Se,zeroTriggerWidth:ye,zeroTriggerHeight:vt,borderRadiusLG:Ht,lightSiderBg:$t,lightTriggerColor:Fe,lightTriggerBg:pt,bodyBg:ut}=Ue;return{[be]:{position:"relative",minWidth:0,background:We,transition:`all ${Be}, background 0s`,"&-has-trigger":{paddingBottom:Qe},"&-right":{order:1},[`${be}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${St}-menu${St}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${be}-children`]:{overflow:"hidden"},[`${be}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Qe,color:ze,lineHeight:(0,we.unit)(Qe),textAlign:"center",background:st,cursor:"pointer",transition:`all ${Be}`},[`${be}-zero-width-trigger`]:{position:"absolute",top:Se,insetInlineEnd:Ue.calc(ye).mul(-1).equal(),zIndex:1,width:ye,height:vt,color:ze,fontSize:Ue.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:We,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:Ue.calc(ye).mul(-1).equal(),borderRadius:`${(0,we.unit)(Ht)} 0 0 ${(0,we.unit)(Ht)}`}},"&-light":{background:$t,[`${be}-trigger`]:{color:Fe,background:pt},[`${be}-zero-width-trigger`]:{color:Fe,background:pt,border:`1px solid ${ut}`,borderInlineStart:0}}}}};var Et=(0,Pe.I$)(["Layout","Sider"],Ue=>[rt(Ue)],Ie.eh,{deprecatedTokens:Ie.jn}),Oe=function(Ue,be){var We={};for(var Be in Ue)Object.prototype.hasOwnProperty.call(Ue,Be)&&be.indexOf(Be)<0&&(We[Be]=Ue[Be]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Be=Object.getOwnPropertySymbols(Ue);de<Be.length;de++)be.indexOf(Be[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Be[de])&&(We[Be[de]]=Ue[Be[de]]);return We};const Ae={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ve=Ue=>!Number.isNaN(Number.parseFloat(Ue))&&isFinite(Ue),Ye=y.createContext({}),xt=(()=>{let Ue=0;return function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ue+=1,`${be}${Ue}`}})();var lt=y.forwardRef((Ue,be)=>{const{prefixCls:We,className:Be,trigger:de,children:St,defaultCollapsed:Qe=!1,theme:ze="dark",style:st={},collapsible:Se=!1,reverseArrow:ye=!1,width:vt=200,collapsedWidth:Ht=80,zeroWidthTriggerStyle:$t,breakpoint:Fe,onCollapse:pt,onBreakpoint:ut}=Ue,Yt=Oe(Ue,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:bt}=(0,y.useContext)(Te.V),[Ct,mt]=(0,y.useState)("collapsed"in Ue?Ue.collapsed:Qe),[mn,zt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in Ue&&mt(Ue.collapsed)},[Ue.collapsed]);const ue=(Ut,At)=>{"collapsed"in Ue||mt(Ut),pt==null||pt(Ut,At)},{getPrefixCls:ie,direction:re}=(0,y.useContext)(Ke.E_),oe=ie("layout-sider",We),[pe,ae,me]=Et(oe),Ze=(0,y.useRef)(null);Ze.current=Ut=>{zt(Ut.matches),ut==null||ut(Ut.matches),Ct!==Ut.matches&&ue(Ut.matches,"responsive")},(0,y.useEffect)(()=>{function Ut(Je){return Ze.current(Je)}let At;if(typeof window!="undefined"){const{matchMedia:Je}=window;if(Je&&Fe&&Fe in Ae){At=Je(`screen and (max-width: ${Ae[Fe]})`);try{At.addEventListener("change",Ut)}catch(Pt){At.addListener(Ut)}Ut(At)}}return()=>{try{At==null||At.removeEventListener("change",Ut)}catch(Je){At==null||At.removeListener(Ut)}}},[Fe]),(0,y.useEffect)(()=>{const Ut=xt("ant-sider-");return bt.addSider(Ut),()=>bt.removeSider(Ut)},[]);const Ot=()=>{ue(!Ct,"clickTrigger")},at=(0,ct.Z)(Yt,["collapsed"]),qe=Ct?Ht:vt,yt=Ve(qe)?`${qe}px`:String(qe),Ft=parseFloat(String(Ht||0))===0?y.createElement("span",{onClick:Ot,className:Ne()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ye?"right":"left"}`),style:$t},de||y.createElement(ke,null)):null,jt=re==="rtl"==!ye,Gt={expanded:jt?y.createElement(fe.Z,null):y.createElement(De.Z,null),collapsed:jt?y.createElement(De.Z,null):y.createElement(fe.Z,null)}[Ct?"collapsed":"expanded"],un=de!==null?Ft||y.createElement("div",{className:`${oe}-trigger`,onClick:Ot,style:{width:yt}},de||Gt):null,wn=Object.assign(Object.assign({},st),{flex:`0 0 ${yt}`,maxWidth:yt,minWidth:yt,width:yt}),gn=Ne()(oe,`${oe}-${ze}`,{[`${oe}-collapsed`]:!!Ct,[`${oe}-has-trigger`]:Se&&de!==null&&!Ft,[`${oe}-below`]:!!mn,[`${oe}-zero-width`]:parseFloat(yt)===0},Be,ae,me),Rt=y.useMemo(()=>({siderCollapsed:Ct}),[Ct]);return pe(y.createElement(Ye.Provider,{value:Rt},y.createElement("aside",Object.assign({className:gn},at,{style:wn,ref:be}),y.createElement("div",{className:`${oe}-children`},St),Se||mn&&Ft?un:null)))})},6989:function(Mn,Jt,E){"use strict";E.d(Jt,{V:function(){return ve}});var y=E(59301);const ve=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Mn,Jt,E){"use strict";E.d(Jt,{eh:function(){return Le},jn:function(){return xe}});var y=E(36237),ve=E(16931);const ce=Ee=>{const{antCls:Ce,componentCls:ke,colorText:De,footerBg:fe,headerHeight:je,headerPadding:Ne,headerColor:ct,footerPadding:Ke,fontSize:Te,bodyBg:we,headerBg:Ie}=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:je,padding:Ne,color:ct,lineHeight:(0,y.unit)(je),background:Ie,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${ke}-footer`]:{padding:Ke,color:De,fontSize:Te,background:fe},[`${ke}-content`]:{flex:"auto",color:De,minHeight:0}}},Le=Ee=>{const{colorBgLayout:Ce,controlHeight:ke,controlHeightLG:De,colorText:fe,controlHeightSM:je,marginXXS:Ne,colorTextLightSolid:ct,colorBgContainer:Ke}=Ee,Te=De*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:ke*2,headerPadding:`0 ${Te}px`,headerColor:fe,footerPadding:`${je}px ${Te}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:De+Ne*2,triggerBg:"#002140",triggerColor:ct,zeroTriggerWidth:De,zeroTriggerHeight:De,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:fe}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Jt.ZP=(0,ve.I$)("Layout",Ee=>[ce(Ee)],Le,{deprecatedTokens:xe})},78857:function(Mn,Jt,E){"use strict";E.d(Jt,{J:function(){return Ee}});var y=E(59301),ve=E(8654),ce=E(62487),Le=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 je=0,fe=Object.getOwnPropertySymbols(Ce);je<fe.length;je++)ke.indexOf(fe[je])<0&&Object.prototype.propertyIsEnumerable.call(Ce,fe[je])&&(De[fe[je]]=Ce[fe[je]]);return De};const xe=y.createContext(null),Ee=y.forwardRef((Ce,ke)=>{const{children:De}=Ce,fe=Le(Ce,["children"]),je=y.useContext(xe),Ne=y.useMemo(()=>Object.assign(Object.assign({},je),fe),[je,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),ct=(0,ve.t4)(De),Ke=(0,ve.x1)(ke,ct?(0,ve.C4)(De):null);return y.createElement(xe.Provider,{value:Ne},y.createElement(ce.Z,{space:!0},ct?y.cloneElement(De,{ref:Ke}):De))});Jt.Z=xe},93041:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return pe}});var y=E(59301),ve=E(28321),ce=E(24303),Le=E(18785),xe=E(92310),Ee=E.n(xe),Ce=E(6089),ke=E(2738),De=E(86641),fe=E(22703),je=E(48755),Ne=E(83397),Ke=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(ae,me){var Ze={};for(var Ot in ae)Object.prototype.hasOwnProperty.call(ae,Ot)&&me.indexOf(Ot)<0&&(Ze[Ot]=ae[Ot]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ot=Object.getOwnPropertySymbols(ae);at<Ot.length;at++)me.indexOf(Ot[at])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ot[at])&&(Ze[Ot[at]]=ae[Ot[at]]);return Ze},Ie=ae=>{const{prefixCls:me,className:Ze,dashed:Ot}=ae,at=Te(ae,["prefixCls","className","dashed"]),{getPrefixCls:qe}=y.useContext(je.E_),yt=qe("menu",me),Ft=Ee()({[`${yt}-item-divider-dashed`]:!!Ot},Ze);return y.createElement(ve.iz,Object.assign({className:Ft},at))},Pe=E(11592),rt=E(25399),Oe=ae=>{var me;const{className:Ze,children:Ot,icon:at,title:qe,danger:yt,extra:Ft}=ae,{prefixCls:jt,firstLevel:Xe,direction:tt,disableMenuItemTitleTooltip:Gt,inlineCollapsed:un}=y.useContext(Ke),wn=Pt=>{const nn=Ot==null?void 0:Ot[0],pn=y.createElement("span",{className:Ee()(`${jt}-title-content`,{[`${jt}-title-content-with-extra`]:!!Ft||Ft===0})},Ot);return(!at||y.isValidElement(Ot)&&Ot.type==="span")&&Ot&&Pt&&Xe&&typeof nn=="string"?y.createElement("div",{className:`${jt}-inline-collapsed-noicon`},nn.charAt(0)):pn},{siderCollapsed:gn}=y.useContext(ce.D);let Rt=qe;typeof qe=="undefined"?Rt=Xe?Ot:"":qe===!1&&(Rt="");const Ut={title:Rt};!gn&&!un&&(Ut.title=null,Ut.open=!1);const At=(0,Pe.Z)(Ot).length;let Je=y.createElement(ve.ck,Object.assign({},(0,ke.Z)(ae,["title","icon","danger"]),{className:Ee()({[`${jt}-item-danger`]:yt,[`${jt}-item-only-child`]:(at?At+1:At)===1},Ze),title:typeof qe=="string"?qe:void 0}),(0,fe.Tm)(at,{className:Ee()(y.isValidElement(at)?(me=at.props)===null||me===void 0?void 0:me.className:"",`${jt}-item-icon`)}),wn(un));return Gt||(Je=y.createElement(rt.Z,Object.assign({},Ut,{placement:tt==="rtl"?"left":"right",classNames:{root:`${jt}-inline-collapsed-tooltip`}}),Je)),Je},Ae=E(78857),Ve=E(36237),Ye=E(17835),xt=E(63356),gt=E(34961),lt=E(46e3),Ue=E(34925),be=E(16931),We=E(51636),de=ae=>{const{componentCls:me,motionDurationSlow:Ze,horizontalLineHeight:Ot,colorSplit:at,lineWidth:qe,lineType:yt,itemPaddingInline:Ft}=ae;return{[`${me}-horizontal`]:{lineHeight:Ot,border:0,borderBottom:`${(0,Ve.unit)(qe)} ${yt} ${at}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${me}-item, ${me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ft},[`> ${me}-item:hover,
> ${me}-item-active,
> ${me}-submenu ${me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${me}-item, ${me}-submenu-title`]:{transition:[`border-color ${Ze}`,`background ${Ze}`].join(",")},[`${me}-submenu-arrow`]:{display:"none"}}}},Qe=ae=>{let{componentCls:me,menuArrowOffset:Ze,calc:Ot}=ae;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,Ve.unit)(Ot(Ze).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Ve.unit)(Ze)})`}}}}};const ze=ae=>Object.assign({},(0,xt.oN)(ae));var Se=(ae,me)=>{const{componentCls:Ze,itemColor:Ot,itemSelectedColor:at,subMenuItemSelectedColor:qe,groupTitleColor:yt,itemBg:Ft,subMenuItemBg:jt,itemSelectedBg:Xe,activeBarHeight:tt,activeBarWidth:Gt,activeBarBorderWidth:un,motionDurationSlow:wn,motionEaseInOut:gn,motionEaseOut:Rt,itemPaddingInline:Ut,motionDurationMid:At,itemHoverColor:Je,lineType:Pt,colorSplit:nn,itemDisabledColor:pn,dangerItemColor:nt,dangerItemHoverColor:Nt,dangerItemSelectedColor:qt,dangerItemActiveBg:wt,dangerItemSelectedBg:Wt,popupBg:en,itemHoverBg:_n,itemActiveBg:Un,menuSubMenuBg:On,horizontalItemSelectedColor:Vn,horizontalItemSelectedBg:Zt,horizontalItemBorderRadius:Xt,horizontalItemHoverBg:an}=ae;return{[`${Ze}-${me}, ${Ze}-${me} > ${Ze}`]:{color:Ot,background:Ft,[`&${Ze}-root:focus-visible`]:Object.assign({},ze(ae)),[`${Ze}-item`]:{"&-group-title, &-extra":{color:yt}},[`${Ze}-submenu-selected > ${Ze}-submenu-title`]:{color:qe},[`${Ze}-item, ${Ze}-submenu-title`]:{color:Ot,[`&:not(${Ze}-item-disabled):focus-visible`]:Object.assign({},ze(ae))},[`${Ze}-item-disabled, ${Ze}-submenu-disabled`]:{color:`${pn} !important`},[`${Ze}-item:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{[`&:hover, > ${Ze}-submenu-title:hover`]:{color:Je}},[`&:not(${Ze}-horizontal)`]:{[`${Ze}-item:not(${Ze}-item-selected)`]:{"&:hover":{backgroundColor:_n},"&:active":{backgroundColor:Un}},[`${Ze}-submenu-title`]:{"&:hover":{backgroundColor:_n},"&:active":{backgroundColor:Un}}},[`${Ze}-item-danger`]:{color:nt,[`&${Ze}-item:hover`]:{[`&:not(${Ze}-item-selected):not(${Ze}-submenu-selected)`]:{color:Nt}},[`&${Ze}-item:active`]:{background:wt}},[`${Ze}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ze}-item-selected`]:{color:at,[`&${Ze}-item-danger`]:{color:qt},"a, a:hover":{color:"inherit"}},[`& ${Ze}-item-selected`]:{backgroundColor:Xe,[`&${Ze}-item-danger`]:{backgroundColor:Wt}},[`&${Ze}-submenu > ${Ze}`]:{backgroundColor:On},[`&${Ze}-popup > ${Ze}`]:{backgroundColor:en},[`&${Ze}-submenu-popup > ${Ze}`]:{backgroundColor:en},[`&${Ze}-horizontal`]:Object.assign(Object.assign({},me==="dark"?{borderBottom:0}:{}),{[`> ${Ze}-item, > ${Ze}-submenu`]:{top:un,marginTop:ae.calc(un).mul(-1).equal(),marginBottom:0,borderRadius:Xt,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${(0,Ve.unit)(tt)} solid transparent`,transition:`border-color ${wn} ${gn}`,content:'""'},"&:hover, &-active, &-open":{background:an,"&::after":{borderBottomWidth:tt,borderBottomColor:Vn}},"&-selected":{color:Vn,backgroundColor:Zt,"&:hover":{backgroundColor:Zt},"&::after":{borderBottomWidth:tt,borderBottomColor:Vn}}}}),[`&${Ze}-root`]:{[`&${Ze}-inline, &${Ze}-vertical`]:{borderInlineEnd:`${(0,Ve.unit)(un)} ${Pt} ${nn}`}},[`&${Ze}-inline`]:{[`${Ze}-sub${Ze}-inline`]:{background:jt},[`${Ze}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Ve.unit)(Gt)} solid ${at}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${At} ${Rt}`,`opacity ${At} ${Rt}`].join(","),content:'""'},[`&${Ze}-item-danger`]:{"&::after":{borderInlineEndColor:qt}}},[`${Ze}-selected, ${Ze}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${At} ${gn}`,`opacity ${At} ${gn}`].join(",")}}}}}};const ye=ae=>{const{componentCls:me,itemHeight:Ze,itemMarginInline:Ot,padding:at,menuArrowSize:qe,marginXS:yt,itemMarginBlock:Ft,itemWidth:jt,itemPaddingInline:Xe}=ae,tt=ae.calc(qe).add(at).add(yt).equal();return{[`${me}-item`]:{position:"relative",overflow:"hidden"},[`${me}-item, ${me}-submenu-title`]:{height:Ze,lineHeight:(0,Ve.unit)(Ze),paddingInline:Xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ot,marginBlock:Ft,width:jt},[`> ${me}-item,
> ${me}-submenu > ${me}-submenu-title`]:{height:Ze,lineHeight:(0,Ve.unit)(Ze)},[`${me}-item-group-list ${me}-submenu-title,
${me}-submenu-title`]:{paddingInlineEnd:tt}}};var Ht=ae=>{const{componentCls:me,iconCls:Ze,itemHeight:Ot,colorTextLightSolid:at,dropdownWidth:qe,controlHeightLG:yt,motionEaseOut:Ft,paddingXL:jt,itemMarginInline:Xe,fontSizeLG:tt,motionDurationFast:Gt,motionDurationSlow:un,paddingXS:wn,boxShadowSecondary:gn,collapsedWidth:Rt,collapsedIconSize:Ut}=ae,At={height:Ot,lineHeight:(0,Ve.unit)(Ot),listStylePosition:"inside",listStyleType:"disc"};return[{[me]:{"&-inline, &-vertical":Object.assign({[`&${me}-root`]:{boxShadow:"none"}},ye(ae))},[`${me}-submenu-popup`]:{[`${me}-vertical`]:Object.assign(Object.assign({},ye(ae)),{boxShadow:gn})}},{[`${me}-submenu-popup ${me}-vertical${me}-sub`]:{minWidth:qe,maxHeight:`calc(100vh - ${(0,Ve.unit)(ae.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 ${un}`,`background ${un}`,`padding ${Gt} ${Ft}`].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`]:At,[`& ${me}-item-group-title`]:{paddingInlineStart:jt}},[`${me}-item`]:At}},{[`${me}-inline-collapsed`]:{width:Rt,[`&${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,Ve.unit)(ae.calc(Ut).div(2).equal())} - ${(0,Ve.unit)(Xe)})`,textOverflow:"clip",[`
${me}-submenu-arrow,
${me}-submenu-expand-icon
`]:{opacity:0},[`${me}-item-icon, ${Ze}`]:{margin:0,fontSize:Ut,lineHeight:(0,Ve.unit)(Ot),"+ span":{display:"inline-block",opacity:0}}},[`${me}-item-icon, ${Ze}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${me}-item-icon, ${Ze}`]:{display:"none"},"a, a:hover":{color:at}},[`${me}-item-group-title`]:Object.assign(Object.assign({},xt.vS),{paddingInline:wn})}}]};const $t=ae=>{const{componentCls:me,motionDurationSlow:Ze,motionDurationMid:Ot,motionEaseInOut:at,motionEaseOut:qe,iconCls:yt,iconSize:Ft,iconMarginInlineEnd:jt}=ae;return{[`${me}-item, ${me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ze}`,`background ${Ze}`,`padding calc(${Ze} + 0.1s) ${at}`].join(","),[`${me}-item-icon, ${yt}`]:{minWidth:Ft,fontSize:Ft,transition:[`font-size ${Ot} ${qe}`,`margin ${Ze} ${at}`,`color ${Ze}`].join(","),"+ span":{marginInlineStart:jt,opacity:1,transition:[`opacity ${Ze} ${at}`,`margin ${Ze}`,`color ${Ze}`].join(",")}},[`${me}-item-icon`]:Object.assign({},(0,xt.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"}}}},Fe=ae=>{const{componentCls:me,motionDurationSlow:Ze,motionEaseInOut:Ot,borderRadius:at,menuArrowSize:qe,menuArrowOffset:yt}=ae;return{[`${me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ae.margin,width:qe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ze} ${Ot}, opacity ${Ze}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ae.calc(qe).mul(.6).equal(),height:ae.calc(qe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:at,transition:[`background ${Ze} ${Ot}`,`transform ${Ze} ${Ot}`,`top ${Ze} ${Ot}`,`color ${Ze} ${Ot}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Ve.unit)(ae.calc(yt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Ve.unit)(yt)})`}}}}},pt=ae=>{const{antCls:me,componentCls:Ze,fontSize:Ot,motionDurationSlow:at,motionDurationMid:qe,motionEaseInOut:yt,paddingXS:Ft,padding:jt,colorSplit:Xe,lineWidth:tt,zIndexPopup:Gt,borderRadiusLG:un,subMenuItemBorderRadius:wn,menuArrowSize:gn,menuArrowOffset:Rt,lineType:Ut,groupTitleLineHeight:At,groupTitleFontSize:Je}=ae;return[{"":{[Ze]:Object.assign(Object.assign({},(0,xt.dF)()),{"&-hidden":{display:"none"}})},[`${Ze}-submenu-hidden`]:{display:"none"}},{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xt.Wf)(ae)),(0,xt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ot,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${at} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ze}-item`]:{flex:"none"}},[`${Ze}-item, ${Ze}-submenu, ${Ze}-submenu-title`]:{borderRadius:ae.itemBorderRadius},[`${Ze}-item-group-title`]:{padding:`${(0,Ve.unit)(Ft)} ${(0,Ve.unit)(jt)}`,fontSize:Je,lineHeight:At,transition:`all ${at}`},[`&-horizontal ${Ze}-submenu`]:{transition:[`border-color ${at} ${yt}`,`background ${at} ${yt}`].join(",")},[`${Ze}-submenu, ${Ze}-submenu-inline`]:{transition:[`border-color ${at} ${yt}`,`background ${at} ${yt}`,`padding ${qe} ${yt}`].join(",")},[`${Ze}-submenu ${Ze}-sub`]:{cursor:"initial",transition:[`background ${at} ${yt}`,`padding ${at} ${yt}`].join(",")},[`${Ze}-title-content`]:{transition:`color ${at}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${me}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ze}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ae.padding}},[`${Ze}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ze}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Xe,borderStyle:Ut,borderWidth:0,borderTopWidth:tt,marginBlock:tt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),$t(ae)),{[`${Ze}-item-group`]:{[`${Ze}-item-group-list`]:{margin:0,padding:0,[`${Ze}-item, ${Ze}-submenu-title`]:{paddingInline:`${(0,Ve.unit)(ae.calc(Ot).mul(2).equal())} ${(0,Ve.unit)(jt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Gt,borderRadius:un,boxShadow:"none",transformOrigin:"0 0",[`&${Ze}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ze}`]:Object.assign(Object.assign(Object.assign({borderRadius:un},$t(ae)),Fe(ae)),{[`${Ze}-item, ${Ze}-submenu > ${Ze}-submenu-title`]:{borderRadius:wn},[`${Ze}-submenu-title::after`]:{transition:`transform ${at} ${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:ae.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ae.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ae.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ae.paddingXS}}}),Fe(ae)),{[`&-inline-collapsed ${Ze}-submenu-arrow,
&-inline ${Ze}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Ve.unit)(Rt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Ve.unit)(ae.calc(Rt).mul(-1).equal())})`}},[`${Ze}-submenu-open${Ze}-submenu-inline > ${Ze}-submenu-title > ${Ze}-submenu-arrow`]:{transform:`translateY(${(0,Ve.unit)(ae.calc(gn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Ve.unit)(ae.calc(Rt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Ve.unit)(Rt)})`}}})},{[`${me}-layout-header`]:{[Ze]:{lineHeight:"inherit"}}}]},ut=ae=>{var me,Ze,Ot;const{colorPrimary:at,colorError:qe,colorTextDisabled:yt,colorErrorBg:Ft,colorText:jt,colorTextDescription:Xe,colorBgContainer:tt,colorFillAlter:Gt,colorFillContent:un,lineWidth:wn,lineWidthBold:gn,controlItemBgActive:Rt,colorBgTextHover:Ut,controlHeightLG:At,lineHeight:Je,colorBgElevated:Pt,marginXXS:nn,padding:pn,fontSize:nt,controlHeightSM:Nt,fontSizeLG:qt,colorTextLightSolid:wt,colorErrorHover:Wt}=ae,en=(me=ae.activeBarWidth)!==null&&me!==void 0?me:0,_n=(Ze=ae.activeBarBorderWidth)!==null&&Ze!==void 0?Ze:wn,Un=(Ot=ae.itemMarginInline)!==null&&Ot!==void 0?Ot:ae.marginXXS,On=new Ye.FastColor(wt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ae.zIndexPopupBase+50,radiusItem:ae.borderRadiusLG,itemBorderRadius:ae.borderRadiusLG,radiusSubMenuItem:ae.borderRadiusSM,subMenuItemBorderRadius:ae.borderRadiusSM,colorItemText:jt,itemColor:jt,colorItemTextHover:jt,itemHoverColor:jt,colorItemTextHoverHorizontal:at,horizontalItemHoverColor:at,colorGroupTitle:Xe,groupTitleColor:Xe,colorItemTextSelected:at,itemSelectedColor:at,subMenuItemSelectedColor:at,colorItemTextSelectedHorizontal:at,horizontalItemSelectedColor:at,colorItemBg:tt,itemBg:tt,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:un,itemActiveBg:Rt,colorSubItemBg:Gt,subMenuItemBg:Gt,colorItemBgSelected:Rt,itemSelectedBg:Rt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:en,colorActiveBarHeight:gn,activeBarHeight:gn,colorActiveBarBorderSize:wn,activeBarBorderWidth:_n,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:qe,dangerItemColor:qe,colorDangerItemTextHover:qe,dangerItemHoverColor:qe,colorDangerItemTextSelected:qe,dangerItemSelectedColor:qe,colorDangerItemBgActive:Ft,dangerItemActiveBg:Ft,colorDangerItemBgSelected:Ft,dangerItemSelectedBg:Ft,itemMarginInline:Un,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:At,groupTitleLineHeight:Je,collapsedWidth:At*2,popupBg:Pt,itemMarginBlock:nn,itemPaddingInline:pn,horizontalLineHeight:`${At*1.15}px`,iconSize:nt,iconMarginInlineEnd:Nt-nt,collapsedIconSize:qt,groupTitleFontSize:nt,darkItemDisabledColor:new Ye.FastColor(wt).setA(.25).toRgbString(),darkItemColor:On,darkDangerItemColor:qe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:wt,darkItemSelectedBg:at,darkDangerItemSelectedBg:qe,darkItemHoverBg:"transparent",darkGroupTitleColor:On,darkItemHoverColor:wt,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:wt,darkDangerItemActiveBg:qe,itemWidth:en?`calc(100% + ${_n}px)`:`calc(100% - ${Un*2}px)`}};var Yt=function(ae){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ae,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,be.I$)("Menu",at=>{const{colorBgElevated:qe,controlHeightLG:yt,fontSize:Ft,darkItemColor:jt,darkDangerItemColor:Xe,darkItemBg:tt,darkSubMenuItemBg:Gt,darkItemSelectedColor:un,darkItemSelectedBg:wn,darkDangerItemSelectedBg:gn,darkItemHoverBg:Rt,darkGroupTitleColor:Ut,darkItemHoverColor:At,darkItemDisabledColor:Je,darkDangerItemHoverColor:Pt,darkDangerItemSelectedColor:nn,darkDangerItemActiveBg:pn,popupBg:nt,darkPopupBg:Nt}=at,qt=at.calc(Ft).div(7).mul(5).equal(),wt=(0,We.mergeToken)(at,{menuArrowSize:qt,menuHorizontalHeight:at.calc(yt).mul(1.15).equal(),menuArrowOffset:at.calc(qt).mul(.25).equal(),menuSubMenuBg:qe,calc:at.calc,popupBg:nt}),Wt=(0,We.mergeToken)(wt,{itemColor:jt,itemHoverColor:At,groupTitleColor:Ut,itemSelectedColor:un,subMenuItemSelectedColor:un,itemBg:tt,popupBg:Nt,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:wn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Rt,itemDisabledColor:Je,dangerItemColor:Xe,dangerItemHoverColor:Pt,dangerItemSelectedColor:nn,dangerItemActiveBg:pn,dangerItemSelectedBg:gn,menuSubMenuBg:Gt,horizontalItemSelectedColor:un,horizontalItemSelectedBg:wn});return[pt(wt),de(wt),Ht(wt),Se(wt,"light"),Se(Wt,"dark"),Qe(wt),(0,gt.Z)(wt),(0,lt.oN)(wt,"slide-up"),(0,lt.oN)(wt,"slide-down"),(0,Ue._y)(wt,"zoom-big")]},ut,{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:Ze,unitless:{groupTitleLineHeight:!0}})(ae,me)},bt=E(75030),mt=ae=>{var me;const{popupClassName:Ze,icon:Ot,title:at,theme:qe}=ae,yt=y.useContext(Ke),{prefixCls:Ft,inlineCollapsed:jt,theme:Xe}=yt,tt=(0,ve.Xl)();let Gt;if(!Ot)Gt=jt&&!tt.length&&at&&typeof at=="string"?y.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},at.charAt(0)):y.createElement("span",{className:`${Ft}-title-content`},at);else{const gn=y.isValidElement(at)&&at.type==="span";Gt=y.createElement(y.Fragment,null,(0,fe.Tm)(Ot,{className:Ee()(y.isValidElement(Ot)?(me=Ot.props)===null||me===void 0?void 0:me.className:"",`${Ft}-item-icon`)}),gn?at:y.createElement("span",{className:`${Ft}-title-content`},at))}const un=y.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]),[wn]=(0,bt.Cn)("Menu");return y.createElement(Ke.Provider,{value:un},y.createElement(ve.Wd,Object.assign({},(0,ke.Z)(ae,["icon"]),{title:Gt,popupClassName:Ee()(Ft,Ze,`${Ft}-${qe||Xe}`),popupStyle:Object.assign({zIndex:wn},ae.popupStyle)})))},mn=function(ae,me){var Ze={};for(var Ot in ae)Object.prototype.hasOwnProperty.call(ae,Ot)&&me.indexOf(Ot)<0&&(Ze[Ot]=ae[Ot]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ot=Object.getOwnPropertySymbols(ae);at<Ot.length;at++)me.indexOf(Ot[at])<0&&Object.prototype.propertyIsEnumerable.call(ae,Ot[at])&&(Ze[Ot[at]]=ae[Ot[at]]);return Ze};function zt(ae){return ae===null||ae===!1}const ue={item:Oe,submenu:mt,divider:Ie};var re=(0,y.forwardRef)((ae,me)=>{var Ze;const Ot=y.useContext(Ae.Z),at=Ot||{},{getPrefixCls:qe,getPopupContainer:yt,direction:Ft,menu:jt}=y.useContext(je.E_),Xe=qe(),{prefixCls:tt,className:Gt,style:un,theme:wn="light",expandIcon:gn,_internalDisableMenuItemTitleTooltip:Rt,inlineCollapsed:Ut,siderCollapsed:At,rootClassName:Je,mode:Pt,selectable:nn,onClick:pn,overflowedIndicatorPopupClassName:nt}=ae,Nt=mn(ae,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),qt=(0,ke.Z)(Nt,["collapsedWidth"]);(Ze=at.validator)===null||Ze===void 0||Ze.call(at,{mode:Pt});const wt=(0,Ce.Z)(function(){var Sn;pn==null||pn.apply(void 0,arguments),(Sn=at.onClick)===null||Sn===void 0||Sn.call(at)}),Wt=at.mode||Pt,en=nn!=null?nn:at.selectable,_n=Ut!=null?Ut:At,Un={horizontal:{motionName:`${Xe}-slide-up`},inline:(0,De.Z)(Xe),other:{motionName:`${Xe}-zoom-big`}},On=qe("menu",tt||at.prefixCls),Vn=(0,Ne.Z)(On),[Zt,Xt,an]=Yt(On,Vn,!Ot),xn=Ee()(`${On}-${wn}`,jt==null?void 0:jt.className,Gt),ln=y.useMemo(()=>{var Sn,Rn;if(typeof gn=="function"||zt(gn))return gn||null;if(typeof at.expandIcon=="function"||zt(at.expandIcon))return at.expandIcon||null;if(typeof(jt==null?void 0:jt.expandIcon)=="function"||zt(jt==null?void 0:jt.expandIcon))return(jt==null?void 0:jt.expandIcon)||null;const Er=(Sn=gn!=null?gn:at==null?void 0:at.expandIcon)!==null&&Sn!==void 0?Sn:jt==null?void 0:jt.expandIcon;return(0,fe.Tm)(Er,{className:Ee()(`${On}-submenu-expand-icon`,y.isValidElement(Er)?(Rn=Er.props)===null||Rn===void 0?void 0:Rn.className:void 0)})},[gn,at==null?void 0:at.expandIcon,jt==null?void 0:jt.expandIcon,On]),Pn=y.useMemo(()=>({prefixCls:On,inlineCollapsed:_n||!1,direction:Ft,firstLevel:!0,theme:wn,mode:Wt,disableMenuItemTitleTooltip:Rt}),[On,_n,Ft,Rt,wn]);return Zt(y.createElement(Ae.Z.Provider,{value:null},y.createElement(Ke.Provider,{value:Pn},y.createElement(ve.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:y.createElement(Le.Z,null),overflowedIndicatorPopupClassName:Ee()(On,`${On}-${wn}`,nt),mode:Wt,selectable:en,onClick:wt},qt,{inlineCollapsed:_n,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),un),className:xn,prefixCls:On,direction:Ft,defaultMotions:Un,expandIcon:ln,ref:me,rootClassName:Ee()(Je,Xt,at.rootClassName,an,Vn),_internalComponents:ue})))))});const oe=(0,y.forwardRef)((ae,me)=>{const Ze=(0,y.useRef)(null),Ot=y.useContext(ce.D);return(0,y.useImperativeHandle)(me,()=>({menu:Ze.current,focus:at=>{var qe;(qe=Ze.current)===null||qe===void 0||qe.focus(at)}})),y.createElement(re,Object.assign({ref:Ze},ae,Ot))});oe.Item=Oe,oe.SubMenu=mt,oe.Divider=Ie,oe.ItemGroup=ve.BW;var pe=oe},31709:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return jt}});var y=E(59301),ve=E(54476),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"},Le=ce,xe=E(7657),Ee=function(tt,Gt){return y.createElement(xe.Z,(0,ve.Z)({},tt,{ref:Gt,icon:Le}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(49198),fe=E(33853),je=E(38819),Ne=E(92310),ct=E.n(Ne),Ke=E(20068),Te=E(76190),we=E(33885),Ie=E(42978),Pe=E(18929),rt=E(10228),Et=E(26112),Oe=E(48736),Ae=E(17119),Ve=[10,20,50,100],Ye=function(tt){var Gt=tt.pageSizeOptions,un=Gt===void 0?Ve:Gt,wn=tt.locale,gn=tt.changeSize,Rt=tt.pageSize,Ut=tt.goButton,At=tt.quickGo,Je=tt.rootPrefixCls,Pt=tt.disabled,nn=tt.buildOptionText,pn=tt.showSizeChanger,nt=tt.sizeChangerRender,Nt=y.useState(""),qt=(0,Ie.Z)(Nt,2),wt=qt[0],Wt=qt[1],en=function(){return!wt||Number.isNaN(wt)?void 0:Number(wt)},_n=typeof nn=="function"?nn:function(Pn){return"".concat(Pn," ").concat(wn.items_per_page)},Un=function(Sn){Wt(Sn.target.value)},On=function(Sn){Ut||wt===""||(Wt(""),!(Sn.relatedTarget&&(Sn.relatedTarget.className.indexOf("".concat(Je,"-item-link"))>=0||Sn.relatedTarget.className.indexOf("".concat(Je,"-item"))>=0))&&(At==null||At(en())))},Vn=function(Sn){wt!==""&&(Sn.keyCode===rt.Z.ENTER||Sn.type==="click")&&(Wt(""),At==null||At(en()))},Zt=function(){return un.some(function(Sn){return Sn.toString()===Rt.toString()})?un:un.concat([Rt]).sort(function(Sn,Rn){var Er=Number.isNaN(Number(Sn))?0:Number(Sn),Jn=Number.isNaN(Number(Rn))?0:Number(Rn);return Er-Jn})},Xt="".concat(Je,"-options");if(!pn&&!At)return null;var an=null,xn=null,ln=null;return pn&&nt&&(an=nt({disabled:Pt,size:Rt,onSizeChange:function(Sn){gn==null||gn(Number(Sn))},"aria-label":wn.page_size,className:"".concat(Xt,"-size-changer"),options:Zt().map(function(Pn){return{label:_n(Pn),value:Pn}})})),At&&(Ut&&(ln=typeof Ut=="boolean"?y.createElement("button",{type:"button",onClick:Vn,onKeyUp:Vn,disabled:Pt,className:"".concat(Xt,"-quick-jumper-button")},wn.jump_to_confirm):y.createElement("span",{onClick:Vn,onKeyUp:Vn},Ut)),xn=y.createElement("div",{className:"".concat(Xt,"-quick-jumper")},wn.jump_to,y.createElement("input",{disabled:Pt,type:"text",value:wt,onChange:Un,onKeyUp:Vn,onBlur:On,"aria-label":wn.page}),wn.page,ln)),y.createElement("li",{className:Xt},an,xn)},xt=Ye,gt=function(tt){var Gt=tt.rootPrefixCls,un=tt.page,wn=tt.active,gn=tt.className,Rt=tt.showTitle,Ut=tt.onClick,At=tt.onKeyPress,Je=tt.itemRender,Pt="".concat(Gt,"-item"),nn=ct()(Pt,"".concat(Pt,"-").concat(un),(0,Ke.Z)((0,Ke.Z)({},"".concat(Pt,"-active"),wn),"".concat(Pt,"-disabled"),!un),gn),pn=function(){Ut(un)},nt=function(wt){At(wt,Ut,un)},Nt=Je(un,"page",y.createElement("a",{rel:"nofollow"},un));return Nt?y.createElement("li",{title:Rt?String(un):null,className:nn,onClick:pn,onKeyDown:nt,tabIndex:0},Nt):null},lt=gt,Ue=function(tt,Gt,un){return un};function be(){}function We(Xe){var tt=Number(Xe);return typeof tt=="number"&&!Number.isNaN(tt)&&isFinite(tt)&&Math.floor(tt)===tt}function Be(Xe,tt,Gt){var un=typeof Xe=="undefined"?tt:Xe;return Math.floor((Gt-1)/un)+1}var de=function(tt){var Gt=tt.prefixCls,un=Gt===void 0?"rc-pagination":Gt,wn=tt.selectPrefixCls,gn=wn===void 0?"rc-select":wn,Rt=tt.className,Ut=tt.current,At=tt.defaultCurrent,Je=At===void 0?1:At,Pt=tt.total,nn=Pt===void 0?0:Pt,pn=tt.pageSize,nt=tt.defaultPageSize,Nt=nt===void 0?10:nt,qt=tt.onChange,wt=qt===void 0?be:qt,Wt=tt.hideOnSinglePage,en=tt.align,_n=tt.showPrevNextJumpers,Un=_n===void 0?!0:_n,On=tt.showQuickJumper,Vn=tt.showLessItems,Zt=tt.showTitle,Xt=Zt===void 0?!0:Zt,an=tt.onShowSizeChange,xn=an===void 0?be:an,ln=tt.locale,Pn=ln===void 0?Ae.Z:ln,Sn=tt.style,Rn=tt.totalBoundaryShowSizeChanger,Er=Rn===void 0?50:Rn,Jn=tt.disabled,dr=tt.simple,yr=tt.showTotal,gr=tt.showSizeChanger,Vr=gr===void 0?nn>Er:gr,Zr=tt.sizeChangerRender,Dn=tt.pageSizeOptions,Zn=tt.itemRender,fr=Zn===void 0?Ue:Zn,ur=tt.jumpPrevIcon,Mt=tt.jumpNextIcon,Vt=tt.prevIcon,ft=tt.nextIcon,kt=y.useRef(null),it=(0,Pe.Z)(10,{value:pn,defaultValue:Nt}),ht=(0,Ie.Z)(it,2),cn=ht[0],ar=ht[1],mr=(0,Pe.Z)(1,{value:Ut,defaultValue:Je,postState:function(ri){return Math.max(1,Math.min(ri,Be(void 0,cn,nn)))}}),It=(0,Ie.Z)(mr,2),_t=It[0],Tt=It[1],Kt=y.useState(_t),Fn=(0,Ie.Z)(Kt,2),Hn=Fn[0],Gn=Fn[1];(0,y.useEffect)(function(){Gn(_t)},[_t]);var jn=wt!==be,hr="current"in tt,Pr=Math.max(1,_t-(Vn?3:5)),Tr=Math.min(Be(void 0,cn,nn),_t+(Vn?3:5));function Lr(Ii,ri){var So=Ii||y.createElement("button",{type:"button","aria-label":ri,className:"".concat(un,"-item-link")});return typeof Ii=="function"&&(So=y.createElement(Ii,(0,we.Z)({},tt))),So}function Cr(Ii){var ri=Ii.target.value,So=Be(void 0,cn,nn),di;return ri===""?di=ri:Number.isNaN(Number(ri))?di=Hn:ri>=So?di=So:di=Number(ri),di}function Rr(Ii){return We(Ii)&&Ii!==_t&&We(nn)&&nn>0}var Xr=nn>cn?On:!1;function oa(Ii){(Ii.keyCode===rt.Z.UP||Ii.keyCode===rt.Z.DOWN)&&Ii.preventDefault()}function ta(Ii){var ri=Cr(Ii);switch(ri!==Hn&&Gn(ri),Ii.keyCode){case rt.Z.ENTER:Ur(ri);break;case rt.Z.UP:Ur(ri-1);break;case rt.Z.DOWN:Ur(ri+1);break;default:break}}function xa(Ii){Ur(Cr(Ii))}function Ia(Ii){var ri=Be(Ii,cn,nn),So=_t>ri&&ri!==0?ri:_t;ar(Ii),Gn(So),xn==null||xn(_t,Ii),Tt(So),wt==null||wt(So,Ii)}function Ur(Ii){if(Rr(Ii)&&!Jn){var ri=Be(void 0,cn,nn),So=Ii;return Ii>ri?So=ri:Ii<1&&(So=1),So!==Hn&&Gn(So),Tt(So),wt==null||wt(So,cn),So}return _t}var ya=_t>1,Xa=_t<Be(void 0,cn,nn);function Pa(){ya&&Ur(_t-1)}function pa(){Xa&&Ur(_t+1)}function kr(){Ur(Pr)}function Za(){Ur(Tr)}function Sa(Ii,ri){if(Ii.key==="Enter"||Ii.charCode===rt.Z.ENTER||Ii.keyCode===rt.Z.ENTER){for(var So=arguments.length,di=new Array(So>2?So-2:0),il=2;il<So;il++)di[il-2]=arguments[il];ri.apply(void 0,di)}}function la(Ii){Sa(Ii,Pa)}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(Vt,"prev page"));return y.isValidElement(ri)?y.cloneElement(ri,{disabled:!ya}):ri}function za(Ii){var ri=fr(Ii,"next",Lr(ft,"next page"));return y.isValidElement(ri)?y.cloneElement(ri,{disabled:!Xa}):ri}function Di(Ii){(Ii.type==="click"||Ii.keyCode===rt.Z.ENTER)&&Ur(Hn)}var pi=null,Wi=(0,Et.Z)(tt,{aria:!0,data:!0}),Ci=yr&&y.createElement("li",{className:"".concat(un,"-total-text")},yr(nn,[nn===0?0:(_t-1)*cn+1,_t*cn>nn?nn:_t*cn])),ei=null,Ar=Be(void 0,cn,nn);if(Wt&&nn<=cn)return null;var Qn=[],xr={rootPrefixCls:un,onClick:Ur,onKeyPress:Sa,showTitle:Xt,itemRender:fr,page:-1},Sr=_t-1>0?_t-1:0,tr=_t+1<Ar?_t+1:Ar,$r=On&&On.goButton,sa=(0,Te.Z)(dr)==="object"?dr.readOnly:!dr,br=$r,Dr=null;dr&&($r&&(typeof $r=="boolean"?br=y.createElement("button",{type:"button",onClick:Di,onKeyUp:Di},Pn.jump_to_confirm):br=y.createElement("span",{onClick:Di,onKeyUp:Di},$r),br=y.createElement("li",{title:Xt?"".concat(Pn.jump_to).concat(_t,"/").concat(Ar):null,className:"".concat(un,"-simple-pager")},br)),Dr=y.createElement("li",{title:Xt?"".concat(_t,"/").concat(Ar):null,className:"".concat(un,"-simple-pager")},sa?Hn:y.createElement("input",{type:"text","aria-label":Pn.jump_to,value:Hn,disabled:Jn,onKeyDown:oa,onKeyUp:ta,onChange:ta,onBlur:xa,size:3}),y.createElement("span",{className:"".concat(un,"-slash")},"/"),Ar));var jr=Vn?1:2;if(Ar<=3+jr*2){Ar||Qn.push(y.createElement(lt,(0,ve.Z)({},xr,{key:"noPager",page:1,className:"".concat(un,"-item-disabled")})));for(var Qr=1;Qr<=Ar;Qr+=1)Qn.push(y.createElement(lt,(0,ve.Z)({},xr,{key:Qr,page:Qr,active:_t===Qr})))}else{var _a=Vn?Pn.prev_3:Pn.prev_5,$a=Vn?Pn.next_3:Pn.next_5,ea=fr(Pr,"jump-prev",Lr(ur,"prev page")),ai=fr(Tr,"jump-next",Lr(Mt,"next page"));Un&&(pi=ea?y.createElement("li",{title:Xt?_a:null,key:"prev",onClick:kr,tabIndex:0,onKeyDown:Ya,className:ct()("".concat(un,"-jump-prev"),(0,Ke.Z)({},"".concat(un,"-jump-prev-custom-icon"),!!ur))},ea):null,ei=ai?y.createElement("li",{title:Xt?$a:null,key:"next",onClick:Za,tabIndex:0,onKeyDown:Mi,className:ct()("".concat(un,"-jump-next"),(0,Ke.Z)({},"".concat(un,"-jump-next-custom-icon"),!!Mt))},ai):null);var yi=Math.max(1,_t-jr),zi=Math.min(_t+jr,Ar);_t-1<=jr&&(zi=1+jr*2),Ar-_t<=jr&&(yi=Ar-jr*2);for(var Ui=yi;Ui<=zi;Ui+=1)Qn.push(y.createElement(lt,(0,ve.Z)({},xr,{key:Ui,page:Ui,active:_t===Ui})));if(_t-1>=jr*2&&_t!==3&&(Qn[0]=y.cloneElement(Qn[0],{className:ct()("".concat(un,"-item-after-jump-prev"),Qn[0].props.className)}),Qn.unshift(pi)),Ar-_t>=jr*2&&_t!==Ar-2){var Ji=Qn[Qn.length-1];Qn[Qn.length-1]=y.cloneElement(Ji,{className:ct()("".concat(un,"-item-before-jump-next"),Ji.props.className)}),Qn.push(ei)}yi!==1&&Qn.unshift(y.createElement(lt,(0,ve.Z)({},xr,{key:1,page:1}))),zi!==Ar&&Qn.push(y.createElement(lt,(0,ve.Z)({},xr,{key:Ar,page:Ar})))}var Yi=ji(Sr);if(Yi){var co=!ya||!Ar;Yi=y.createElement("li",{title:Xt?Pn.prev_page:null,onClick:Pa,tabIndex:co?null:0,onKeyDown:la,className:ct()("".concat(un,"-prev"),(0,Ke.Z)({},"".concat(un,"-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:Xt?Pn.next_page:null,onClick:pa,tabIndex:Wo,onKeyDown:Kr,className:ct()("".concat(un,"-next"),(0,Ke.Z)({},"".concat(un,"-disabled"),$o)),"aria-disabled":$o},No)}var Da=ct()(un,Rt,(0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)((0,Ke.Z)({},"".concat(un,"-start"),en==="start"),"".concat(un,"-center"),en==="center"),"".concat(un,"-end"),en==="end"),"".concat(un,"-simple"),dr),"".concat(un,"-disabled"),Jn));return y.createElement("ul",(0,ve.Z)({className:Da,style:Sn,ref:kt},Wi),Ci,Yi,dr?Dr:Qn,No,y.createElement(xt,{locale:Pn,rootPrefixCls:un,disabled:Jn,selectPrefixCls:gn,changeSize:Ia,pageSize:cn,pageSizeOptions:Dn,quickGo:Xr?Ur:null,goButton:br,showSizeChanger:Vr,sizeChangerRender:Zr}))},St=de,Qe=E(61852),ze=E(48755),st=E(31756),Se=E(13783),ye=E(9017),vt=E(82326),Ht=E(57700),$t=E(36237),Fe=E(53075),pt=E(64910),ut=E(39082),Yt=E(63356),bt=E(51636),Ct=E(16931);const mt=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${tt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed"}}},[`&${tt}-disabled`]:{cursor:"not-allowed",[`${tt}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Xe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Xe.colorBorder,backgroundColor:Xe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Xe.itemActiveBgDisabled},a:{color:Xe.itemActiveColorDisabled}}},[`${tt}-item-link`]:{color:Xe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${tt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${tt}-simple-pager`]:{color:Xe.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"}}}}}},mn=Xe=>{const{componentCls:tt}=Xe;return{[`&${tt}-mini ${tt}-total-text, &${tt}-mini ${tt}-simple-pager`]:{height:Xe.itemSizeSM,lineHeight:(0,$t.unit)(Xe.itemSizeSM)},[`&${tt}-mini ${tt}-item`]:{minWidth:Xe.itemSizeSM,height:Xe.itemSizeSM,margin:0,lineHeight:(0,$t.unit)(Xe.calc(Xe.itemSizeSM).sub(2).equal())},[`&${tt}-mini ${tt}-prev, &${tt}-mini ${tt}-next`]:{minWidth:Xe.itemSizeSM,height:Xe.itemSizeSM,margin:0,lineHeight:(0,$t.unit)(Xe.itemSizeSM)},[`&${tt}-mini:not(${tt}-disabled)`]:{[`${tt}-prev, ${tt}-next`]:{[`&:hover ${tt}-item-link`]:{backgroundColor:Xe.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Xe.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:Xe.itemSizeSM,lineHeight:(0,$t.unit)(Xe.itemSizeSM)}},[`&${tt}-mini ${tt}-jump-prev, &${tt}-mini ${tt}-jump-next`]:{height:Xe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,$t.unit)(Xe.itemSizeSM)},[`&${tt}-mini ${tt}-options`]:{marginInlineStart:Xe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Xe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Xe.itemSizeSM,lineHeight:(0,$t.unit)(Xe.itemSizeSM),input:Object.assign(Object.assign({},(0,Fe.x0)(Xe)),{width:Xe.paginationMiniQuickJumperInputWidth,height:Xe.controlHeightSM})}}}},zt=Xe=>{const{componentCls:tt}=Xe;return{[`
&${tt}-simple ${tt}-prev,
&${tt}-simple ${tt}-next
`]:{height:Xe.itemSizeSM,lineHeight:(0,$t.unit)(Xe.itemSizeSM),verticalAlign:"top",[`${tt}-item-link`]:{height:Xe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive},"&::after":{height:Xe.itemSizeSM,lineHeight:(0,$t.unit)(Xe.itemSizeSM)}}},[`&${tt}-simple ${tt}-simple-pager`]:{display:"inline-block",height:Xe.itemSizeSM,marginInlineEnd:Xe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,$t.unit)(Xe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Xe.itemInputBg,border:`${(0,$t.unit)(Xe.lineWidth)} ${Xe.lineType} ${Xe.colorBorder}`,borderRadius:Xe.borderRadius,outline:"none",transition:`border-color ${Xe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Xe.colorPrimary},"&:focus":{borderColor:Xe.colorPrimaryHover,boxShadow:`${(0,$t.unit)(Xe.inputOutlineOffset)} 0 ${(0,$t.unit)(Xe.controlOutlineWidth)} ${Xe.controlOutline}`},"&[disabled]":{color:Xe.colorTextDisabled,backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,cursor:"not-allowed"}}}}},ue=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}-jump-prev, ${tt}-jump-next`]:{outline:0,[`${tt}-item-container`]:{position:"relative",[`${tt}-item-link-icon`]:{color:Xe.colorPrimary,fontSize:Xe.fontSizeSM,opacity:0,transition:`all ${Xe.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:Xe.colorTextDisabled,letterSpacing:Xe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Xe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Xe.motionDurationMid}`}},"&:hover":{[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}}},[`
${tt}-prev,
${tt}-jump-prev,
${tt}-jump-next
`]:{marginInlineEnd:Xe.marginXS},[`
${tt}-prev,
${tt}-next,
${tt}-jump-prev,
${tt}-jump-next
`]:{display:"inline-block",minWidth:Xe.itemSize,height:Xe.itemSize,color:Xe.colorText,fontFamily:Xe.fontFamily,lineHeight:(0,$t.unit)(Xe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Xe.borderRadius,cursor:"pointer",transition:`all ${Xe.motionDurationMid}`},[`${tt}-prev, ${tt}-next`]:{outline:0,button:{color:Xe.colorText,cursor:"pointer",userSelect:"none"},[`${tt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Xe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,$t.unit)(Xe.lineWidth)} ${Xe.lineType} transparent`,borderRadius:Xe.borderRadius,outline:"none",transition:`all ${Xe.motionDurationMid}`},[`&:hover ${tt}-item-link`]:{backgroundColor:Xe.colorBgTextHover},[`&:active ${tt}-item-link`]:{backgroundColor:Xe.colorBgTextActive},[`&${tt}-disabled:hover`]:{[`${tt}-item-link`]:{backgroundColor:"transparent"}}},[`${tt}-slash`]:{marginInlineEnd:Xe.paginationSlashMarginInlineEnd,marginInlineStart:Xe.paginationSlashMarginInlineStart},[`${tt}-options`]:{display:"inline-block",marginInlineStart:Xe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Xe.controlHeight,marginInlineStart:Xe.marginXS,lineHeight:(0,$t.unit)(Xe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Fe.ik)(Xe)),(0,ut.$U)(Xe,{borderColor:Xe.colorBorder,hoverBorderColor:Xe.colorPrimaryHover,activeBorderColor:Xe.colorPrimary,activeShadow:Xe.activeShadow})),{"&[disabled]":Object.assign({},(0,ut.Xy)(Xe)),width:Xe.calc(Xe.controlHeightLG).mul(1.25).equal(),height:Xe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Xe.marginXS,marginInlineEnd:Xe.marginXS})}}}},ie=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}-item`]:{display:"inline-block",minWidth:Xe.itemSize,height:Xe.itemSize,marginInlineEnd:Xe.marginXS,fontFamily:Xe.fontFamily,lineHeight:(0,$t.unit)(Xe.calc(Xe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Xe.itemBg,border:`${(0,$t.unit)(Xe.lineWidth)} ${Xe.lineType} transparent`,borderRadius:Xe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,$t.unit)(Xe.paginationItemPaddingInline)}`,color:Xe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${tt}-item-active)`]:{"&:hover":{transition:`all ${Xe.motionDurationMid}`,backgroundColor:Xe.colorBgTextHover},"&:active":{backgroundColor:Xe.colorBgTextActive}},"&-active":{fontWeight:Xe.fontWeightStrong,backgroundColor:Xe.itemActiveBg,borderColor:Xe.colorPrimary,a:{color:Xe.colorPrimary},"&:hover":{borderColor:Xe.colorPrimaryHover},"&:hover a":{color:Xe.colorPrimaryHover}}}}},re=Xe=>{const{componentCls:tt}=Xe;return{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Yt.Wf)(Xe)),{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:Xe.itemSize,marginInlineEnd:Xe.marginXS,lineHeight:(0,$t.unit)(Xe.calc(Xe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ie(Xe)),ue(Xe)),zt(Xe)),mn(Xe)),mt(Xe)),{[`@media only screen and (max-width: ${Xe.screenLG}px)`]:{[`${tt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Xe.screenSM}px)`]:{[`${tt}-options`]:{display:"none"}}}),[`&${Xe.componentCls}-rtl`]:{direction:"rtl"}}},oe=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}:not(${tt}-disabled)`]:{[`${tt}-item`]:Object.assign({},(0,Yt.Qy)(Xe)),[`${tt}-jump-prev, ${tt}-jump-next`]:{"&:focus-visible":Object.assign({[`${tt}-item-link-icon`]:{opacity:1},[`${tt}-item-ellipsis`]:{opacity:0}},(0,Yt.oN)(Xe))},[`${tt}-prev, ${tt}-next`]:{[`&:focus-visible ${tt}-item-link`]:Object.assign({},(0,Yt.oN)(Xe))}}}},pe=Xe=>Object.assign({itemBg:Xe.colorBgContainer,itemSize:Xe.controlHeight,itemSizeSM:Xe.controlHeightSM,itemActiveBg:Xe.colorBgContainer,itemLinkBg:Xe.colorBgContainer,itemActiveColorDisabled:Xe.colorTextDisabled,itemActiveBgDisabled:Xe.controlItemBgActiveDisabled,itemInputBg:Xe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,pt.T)(Xe)),ae=Xe=>(0,bt.mergeToken)(Xe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Xe.calc(Xe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Xe.calc(Xe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Xe.calc(Xe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Xe.calc(Xe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Xe.marginSM,paginationSlashMarginInlineEnd:Xe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,pt.e)(Xe));var me=(0,Ct.I$)("Pagination",Xe=>{const tt=ae(Xe);return[re(tt),oe(tt)]},pe);const Ze=Xe=>{const{componentCls:tt}=Xe;return{[`${tt}${tt}-bordered${tt}-disabled:not(${tt}-mini)`]:{"&, &:hover":{[`${tt}-item-link`]:{borderColor:Xe.colorBorder}},"&:focus-visible":{[`${tt}-item-link`]:{borderColor:Xe.colorBorder}},[`${tt}-item, ${tt}-item-link`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,[`&:hover:not(${tt}-item-active)`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,a:{color:Xe.colorTextDisabled}},[`&${tt}-item-active`]:{backgroundColor:Xe.itemActiveBgDisabled}},[`${tt}-prev, ${tt}-next`]:{"&:hover button":{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder,color:Xe.colorTextDisabled},[`${tt}-item-link`]:{backgroundColor:Xe.colorBgContainerDisabled,borderColor:Xe.colorBorder}}},[`${tt}${tt}-bordered:not(${tt}-mini)`]:{[`${tt}-prev, ${tt}-next`]:{"&:hover button":{borderColor:Xe.colorPrimaryHover,backgroundColor:Xe.itemBg},[`${tt}-item-link`]:{backgroundColor:Xe.itemLinkBg,borderColor:Xe.colorBorder},[`&:hover ${tt}-item-link`]:{borderColor:Xe.colorPrimary,backgroundColor:Xe.itemBg,color:Xe.colorPrimary},[`&${tt}-disabled`]:{[`${tt}-item-link`]:{borderColor:Xe.colorBorder,color:Xe.colorTextDisabled}}},[`${tt}-item`]:{backgroundColor:Xe.itemBg,border:`${(0,$t.unit)(Xe.lineWidth)} ${Xe.lineType} ${Xe.colorBorder}`,[`&:hover:not(${tt}-item-active)`]:{borderColor:Xe.colorPrimary,backgroundColor:Xe.itemBg,a:{color:Xe.colorPrimary}},"&-active":{borderColor:Xe.colorPrimary}}}}};var Ot=(0,Ct.bk)(["Pagination","bordered"],Xe=>{const tt=ae(Xe);return[Ze(tt)]},pe);function at(Xe){return(0,y.useMemo)(()=>typeof Xe=="boolean"?[Xe,{}]:Xe&&typeof Xe=="object"?[!0,Xe]:[void 0,void 0],[Xe])}var qe=function(Xe,tt){var Gt={};for(var un in Xe)Object.prototype.hasOwnProperty.call(Xe,un)&&tt.indexOf(un)<0&&(Gt[un]=Xe[un]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,un=Object.getOwnPropertySymbols(Xe);wn<un.length;wn++)tt.indexOf(un[wn])<0&&Object.prototype.propertyIsEnumerable.call(Xe,un[wn])&&(Gt[un[wn]]=Xe[un[wn]]);return Gt},Ft=Xe=>{const{align:tt,prefixCls:Gt,selectPrefixCls:un,className:wn,rootClassName:gn,style:Rt,size:Ut,locale:At,responsive:Je,showSizeChanger:Pt,selectComponentClass:nn,pageSizeOptions:pn}=Xe,nt=qe(Xe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Nt}=(0,Se.Z)(Je),[,qt]=(0,Ht.ZP)(),{getPrefixCls:wt,direction:Wt,showSizeChanger:en,className:_n,style:Un}=(0,ze.dj)("pagination"),On=wt("pagination",Gt),[Vn,Zt,Xt]=me(On),an=(0,st.Z)(Ut),xn=an==="small"||!!(Nt&&!an&&Je),[ln]=(0,ye.Z)("Pagination",Qe.Z),Pn=Object.assign(Object.assign({},ln),At),[Sn,Rn]=at(Pt),[Er,Jn]=at(en),dr=Sn!=null?Sn:Er,yr=Rn!=null?Rn:Jn,gr=nn||vt.default,Vr=y.useMemo(()=>pn?pn.map(Mt=>Number(Mt)):void 0,[pn]),Zr=Mt=>{var Vt;const{disabled:ft,size:kt,onSizeChange:it,"aria-label":ht,className:cn,options:ar}=Mt,{className:mr,onChange:It}=yr||{},_t=(Vt=ar.find(Tt=>String(Tt.value)===String(kt)))===null||Vt===void 0?void 0:Vt.value;return y.createElement(gr,Object.assign({disabled:ft,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Tt=>Tt.parentNode,"aria-label":ht,options:ar},yr,{value:_t,onChange:(Tt,Kt)=>{it==null||it(Tt),It==null||It(Tt,Kt)},size:xn?"small":"middle",className:ct()(cn,mr)}))},Dn=y.useMemo(()=>{const Mt=y.createElement("span",{className:`${On}-item-ellipsis`},"\u2022\u2022\u2022"),Vt=y.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},Wt==="rtl"?y.createElement(je.Z,null):y.createElement(fe.Z,null)),ft=y.createElement("button",{className:`${On}-item-link`,type:"button",tabIndex:-1},Wt==="rtl"?y.createElement(fe.Z,null):y.createElement(je.Z,null)),kt=y.createElement("a",{className:`${On}-item-link`},y.createElement("div",{className:`${On}-item-container`},Wt==="rtl"?y.createElement(De.Z,{className:`${On}-item-link-icon`}):y.createElement(ke,{className:`${On}-item-link-icon`}),Mt)),it=y.createElement("a",{className:`${On}-item-link`},y.createElement("div",{className:`${On}-item-container`},Wt==="rtl"?y.createElement(ke,{className:`${On}-item-link-icon`}):y.createElement(De.Z,{className:`${On}-item-link-icon`}),Mt));return{prevIcon:Vt,nextIcon:ft,jumpPrevIcon:kt,jumpNextIcon:it}},[Wt,On]),Zn=wt("select",un),fr=ct()({[`${On}-${tt}`]:!!tt,[`${On}-mini`]:xn,[`${On}-rtl`]:Wt==="rtl",[`${On}-bordered`]:qt.wireframe},_n,wn,gn,Zt,Xt),ur=Object.assign(Object.assign({},Un),Rt);return Vn(y.createElement(y.Fragment,null,qt.wireframe&&y.createElement(Ot,{prefixCls:On}),y.createElement(St,Object.assign({},Dn,nt,{style:ur,prefixCls:On,selectPrefixCls:Zn,className:fr,locale:Pn,pageSizeOptions:Vr,showSizeChanger:dr,sizeChangerRender:Zr}))))},jt=Ft},69106:function(Mn,Jt,E){"use strict";E.d(Jt,{aV:function(){return De},t5:function(){return fe}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(29125),xe=E(54500),Ee=E(48755),Ce=E(85074),ke=function(Ne,ct){var Ke={};for(var Te in Ne)Object.prototype.hasOwnProperty.call(Ne,Te)&&ct.indexOf(Te)<0&&(Ke[Te]=Ne[Te]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Te=Object.getOwnPropertySymbols(Ne);we<Te.length;we++)ct.indexOf(Te[we])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Te[we])&&(Ke[Te[we]]=Ne[Te[we]]);return Ke};const De=Ne=>{let{title:ct,content:Ke,prefixCls:Te}=Ne;return!ct&&!Ke?null:y.createElement(y.Fragment,null,ct&&y.createElement("div",{className:`${Te}-title`},ct),Ke&&y.createElement("div",{className:`${Te}-inner-content`},Ke))},fe=Ne=>{const{hashId:ct,prefixCls:Ke,className:Te,style:we,placement:Ie="top",title:Pe,content:rt,children:Et}=Ne,Oe=(0,xe.Z)(Pe),Ae=(0,xe.Z)(rt),Ve=ce()(ct,Ke,`${Ke}-pure`,`${Ke}-placement-${Ie}`,Te);return y.createElement("div",{className:Ve,style:we},y.createElement("div",{className:`${Ke}-arrow`}),y.createElement(Le.G,Object.assign({},Ne,{className:ct,prefixCls:Ke}),Et||y.createElement(De,{prefixCls:Ke,title:Oe,content:Ae})))},je=Ne=>{const{prefixCls:ct,className:Ke}=Ne,Te=ke(Ne,["prefixCls","className"]),{getPrefixCls:we}=y.useContext(Ee.E_),Ie=we("popover",ct),[Pe,rt,Et]=(0,Ce.Z)(Ie);return Pe(y.createElement(fe,Object.assign({},Te,{prefixCls:Ie,hashId:rt,className:ce()(Ke,Et)})))};Jt.ZP=je},37639:function(Mn,Jt,E){"use strict";var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(18929),xe=E(10228),Ee=E(54500),Ce=E(86641),ke=E(22703),De=E(25399),fe=E(69106),je=E(48755),Ne=E(85074),ct=function(we,Ie){var Pe={};for(var rt in we)Object.prototype.hasOwnProperty.call(we,rt)&&Ie.indexOf(rt)<0&&(Pe[rt]=we[rt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,rt=Object.getOwnPropertySymbols(we);Et<rt.length;Et++)Ie.indexOf(rt[Et])<0&&Object.prototype.propertyIsEnumerable.call(we,rt[Et])&&(Pe[rt[Et]]=we[rt[Et]]);return Pe};const Te=y.forwardRef((we,Ie)=>{var Pe,rt;const{prefixCls:Et,title:Oe,content:Ae,overlayClassName:Ve,placement:Ye="top",trigger:xt="hover",children:gt,mouseEnterDelay:lt=.1,mouseLeaveDelay:Ue=.1,onOpenChange:be,overlayStyle:We={},styles:Be,classNames:de}=we,St=ct(we,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Qe,className:ze,style:st,classNames:Se,styles:ye}=(0,je.dj)("popover"),vt=Qe("popover",Et),[Ht,$t,Fe]=(0,Ne.Z)(vt),pt=Qe(),ut=ce()(Ve,$t,Fe,ze,Se.root,de==null?void 0:de.root),Yt=ce()(Se.body,de==null?void 0:de.body),[bt,Ct]=(0,Le.Z)(!1,{value:(Pe=we.open)!==null&&Pe!==void 0?Pe:we.visible,defaultValue:(rt=we.defaultOpen)!==null&&rt!==void 0?rt:we.defaultVisible}),mt=(re,oe)=>{Ct(re,!0),be==null||be(re,oe)},mn=re=>{re.keyCode===xe.Z.ESC&&mt(!1,re)},zt=re=>{mt(re)},ue=(0,Ee.Z)(Oe),ie=(0,Ee.Z)(Ae);return Ht(y.createElement(De.Z,Object.assign({placement:Ye,trigger:xt,mouseEnterDelay:lt,mouseLeaveDelay:Ue},St,{prefixCls:vt,classNames:{root:ut,body:Yt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),st),We),Be==null?void 0:Be.root),body:Object.assign(Object.assign({},ye.body),Be==null?void 0:Be.body)},ref:Ie,open:bt,onOpenChange:zt,overlay:ue||ie?y.createElement(fe.aV,{prefixCls:vt,title:ue,content:ie}):null,transitionName:(0,Ce.m)(pt,"zoom-big",St.transitionName),"data-popover-inject":!0}),(0,ke.Tm)(gt,{onKeyDown:re=>{var oe,pe;y.isValidElement(gt)&&((pe=gt==null?void 0:(oe=gt.props).onKeyDown)===null||pe===void 0||pe.call(oe,re)),mn(re)}})))});Te._InternalPanelDoNotUseOrYouWillBeFired=fe.ZP,Jt.Z=Te},85074:function(Mn,Jt,E){"use strict";var y=E(63356),ve=E(34925),ce=E(37645),Le=E(36305),xe=E(34998),Ee=E(16931),Ce=E(51636);const ke=je=>{const{componentCls:Ne,popoverColor:ct,titleMinWidth:Ke,fontWeightStrong:Te,innerPadding:we,boxShadowSecondary:Ie,colorTextHeading:Pe,borderRadiusLG:rt,zIndexPopup:Et,titleMarginBottom:Oe,colorBgElevated:Ae,popoverBg:Ve,titleBorderBottom:Ye,innerContentPadding:xt,titlePadding:gt}=je;return[{[Ne]:Object.assign(Object.assign({},(0,y.Wf)(je)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Et,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":Ae,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ne}-content`]:{position:"relative"},[`${Ne}-inner`]:{backgroundColor:Ve,backgroundClip:"padding-box",borderRadius:rt,boxShadow:Ie,padding:we},[`${Ne}-title`]:{minWidth:Ke,marginBottom:Oe,color:Pe,fontWeight:Te,borderBottom:Ye,padding:gt},[`${Ne}-inner-content`]:{color:ct,padding:xt}})},(0,ce.ZP)(je,"var(--antd-arrow-background-color)"),{[`${Ne}-pure`]:{position:"relative",maxWidth:"none",margin:je.sizePopupArrow,display:"inline-block",[`${Ne}-content`]:{display:"inline-block"}}}]},De=je=>{const{componentCls:Ne}=je;return{[Ne]:xe.i.map(ct=>{const Ke=je[`${ct}6`];return{[`&${Ne}-${ct}`]:{"--antd-arrow-background-color":Ke,[`${Ne}-inner`]:{backgroundColor:Ke},[`${Ne}-arrow`]:{background:"transparent"}}}})}},fe=je=>{const{lineWidth:Ne,controlHeight:ct,fontHeight:Ke,padding:Te,wireframe:we,zIndexPopupBase:Ie,borderRadiusLG:Pe,marginXS:rt,lineType:Et,colorSplit:Oe,paddingSM:Ae}=je,Ve=ct-Ke,Ye=Ve/2,xt=Ve/2-Ne,gt=Te;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ie+30},(0,Le.w)(je)),(0,ce.wZ)({contentRadius:Pe,limitVerticalRadius:!0})),{innerPadding:we?0:12,titleMarginBottom:we?0:rt,titlePadding:we?`${Ye}px ${gt}px ${xt}px`:0,titleBorderBottom:we?`${Ne}px ${Et} ${Oe}`:"none",innerContentPadding:we?`${Ae}px ${gt}px`:0})};Jt.Z=(0,Ee.I$)("Popover",je=>{const{colorBgElevated:Ne,colorText:ct}=je,Ke=(0,Ce.mergeToken)(je,{popoverBg:Ne,popoverColor:ct});return[ke(Ke),De(Ke),(0,ve._y)(Ke,"zoom-big")]},fe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return At}});var y=E(59301),ve=E(17835),ce=E(29679),Le=E(40001),xe=E(19248),Ee=E(99267),Ce=E(92310),ke=E.n(Ce),De=E(2738),fe=E(48755),je=E(54476),Ne=E(33885),ct=E(75931),Ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var Pt=(0,y.useRef)([]),nn=(0,y.useRef)(null);return(0,y.useEffect)(function(){var pn=Date.now(),nt=!1;Pt.current.forEach(function(Nt){if(Nt){nt=!0;var qt=Nt.style;qt.transitionDuration=".3s, .3s, .3s, .06s",nn.current&&pn-nn.current<100&&(qt.transitionDuration="0s, 0s")}}),nt&&(nn.current=Date.now())}),Pt.current},we=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ie=function(Pt){var nn=(0,Ne.Z)((0,Ne.Z)({},Ke),Pt),pn=nn.className,nt=nn.percent,Nt=nn.prefixCls,qt=nn.strokeColor,wt=nn.strokeLinecap,Wt=nn.strokeWidth,en=nn.style,_n=nn.trailColor,Un=nn.trailWidth,On=nn.transition,Vn=(0,ct.Z)(nn,we);delete Vn.gapPosition;var Zt=Array.isArray(nt)?nt:[nt],Xt=Array.isArray(qt)?qt:[qt],an=Te(),xn=Wt/2,ln=100-Wt/2,Pn="M ".concat(wt==="round"?xn:0,",").concat(xn,`
L `).concat(wt==="round"?ln:100,",").concat(xn),Sn="0 0 100 ".concat(Wt),Rn=0;return y.createElement("svg",(0,je.Z)({className:ke()("".concat(Nt,"-line"),pn),viewBox:Sn,preserveAspectRatio:"none",style:en},Vn),y.createElement("path",{className:"".concat(Nt,"-line-trail"),d:Pn,strokeLinecap:wt,stroke:_n,strokeWidth:Un||Wt,fillOpacity:"0"}),Zt.map(function(Er,Jn){var dr=1;switch(wt){case"round":dr=1-Wt/100;break;case"square":dr=1-Wt/2/100;break;default:dr=1;break}var yr={strokeDasharray:"".concat(Er*dr,"px, 100px"),strokeDashoffset:"-".concat(Rn,"px"),transition:On||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},gr=Xt[Jn]||Xt[Xt.length-1];return Rn+=Er,y.createElement("path",{key:Jn,className:"".concat(Nt,"-line-path"),d:Pn,strokeLinecap:wt,stroke:gr,strokeWidth:Wt,fillOpacity:"0",ref:function(Zr){an[Jn]=Zr},style:yr})}))},Pe=Ie,rt=E(76190),Et=E(42978),Oe=E(47273),Ae=0,Ve=(0,Oe.Z)();function Ye(){var Je;return Ve?(Je=Ae,Ae+=1):Je="TEST_OR_SSR",Je}var xt=function(Je){var Pt=y.useState(),nn=(0,Et.Z)(Pt,2),pn=nn[0],nt=nn[1];return y.useEffect(function(){nt("rc_progress_".concat(Ye()))},[]),Je||pn},gt=function(Pt){var nn=Pt.bg,pn=Pt.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:nn}},pn)};function lt(Je,Pt){return Object.keys(Je).map(function(nn){var pn=parseFloat(nn),nt="".concat(Math.floor(pn*Pt),"%");return"".concat(Je[nn]," ").concat(nt)})}var Ue=y.forwardRef(function(Je,Pt){var nn=Je.prefixCls,pn=Je.color,nt=Je.gradientId,Nt=Je.radius,qt=Je.style,wt=Je.ptg,Wt=Je.strokeLinecap,en=Je.strokeWidth,_n=Je.size,Un=Je.gapDegree,On=pn&&(0,rt.Z)(pn)==="object",Vn=On?"#FFF":void 0,Zt=_n/2,Xt=y.createElement("circle",{className:"".concat(nn,"-circle-path"),r:Nt,cx:Zt,cy:Zt,stroke:Vn,strokeLinecap:Wt,strokeWidth:en,opacity:wt===0?0:1,style:qt,ref:Pt});if(!On)return Xt;var an="".concat(nt,"-conic"),xn=Un?"".concat(180+Un/2,"deg"):"0deg",ln=lt(pn,(360-Un)/360),Pn=lt(pn,1),Sn="conic-gradient(from ".concat(xn,", ").concat(ln.join(", "),")"),Rn="linear-gradient(to ".concat(Un?"bottom":"top",", ").concat(Pn.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:an},Xt),y.createElement("foreignObject",{x:0,y:0,width:_n,height:_n,mask:"url(#".concat(an,")")},y.createElement(gt,{bg:Rn},y.createElement(gt,{bg:Sn}))))}),be=Ue,We=100,Be=function(Pt,nn,pn,nt,Nt,qt,wt,Wt,en,_n){var Un=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,On=pn/100*360*((360-qt)/360),Vn=qt===0?0:{bottom:0,top:180,left:90,right:-90}[wt],Zt=(100-nt)/100*nn;en==="round"&&nt!==100&&(Zt+=_n/2,Zt>=nn&&(Zt=nn-.01));var Xt=We/2;return{stroke:typeof Wt=="string"?Wt:void 0,strokeDasharray:"".concat(nn,"px ").concat(Pt),strokeDashoffset:Zt+Un,transform:"rotate(".concat(Nt+On+Vn,"deg)"),transformOrigin:"".concat(Xt,"px ").concat(Xt,"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 St(Je){var Pt=Je!=null?Je:[];return Array.isArray(Pt)?Pt:[Pt]}var Qe=function(Pt){var nn=(0,Ne.Z)((0,Ne.Z)({},Ke),Pt),pn=nn.id,nt=nn.prefixCls,Nt=nn.steps,qt=nn.strokeWidth,wt=nn.trailWidth,Wt=nn.gapDegree,en=Wt===void 0?0:Wt,_n=nn.gapPosition,Un=nn.trailColor,On=nn.strokeLinecap,Vn=nn.style,Zt=nn.className,Xt=nn.strokeColor,an=nn.percent,xn=(0,ct.Z)(nn,de),ln=We/2,Pn=xt(pn),Sn="".concat(Pn,"-gradient"),Rn=ln-qt/2,Er=Math.PI*2*Rn,Jn=en>0?90+en/2:-90,dr=Er*((360-en)/360),yr=(0,rt.Z)(Nt)==="object"?Nt:{count:Nt,gap:2},gr=yr.count,Vr=yr.gap,Zr=St(an),Dn=St(Xt),Zn=Dn.find(function(it){return it&&(0,rt.Z)(it)==="object"}),fr=Zn&&(0,rt.Z)(Zn)==="object",ur=fr?"butt":On,Mt=Be(Er,dr,0,100,Jn,en,_n,Un,ur,qt),Vt=Te(),ft=function(){var ht=0;return Zr.map(function(cn,ar){var mr=Dn[ar]||Dn[Dn.length-1],It=Be(Er,dr,ht,cn,Jn,en,_n,mr,ur,qt);return ht+=cn,y.createElement(be,{key:ar,color:mr,ptg:cn,radius:Rn,prefixCls:nt,gradientId:Sn,style:It,strokeLinecap:ur,strokeWidth:qt,gapDegree:en,ref:function(Tt){Vt[ar]=Tt},size:We})}).reverse()},kt=function(){var ht=Math.round(gr*(Zr[0]/100)),cn=100/gr,ar=0;return new Array(gr).fill(null).map(function(mr,It){var _t=It<=ht-1?Dn[0]:Un,Tt=_t&&(0,rt.Z)(_t)==="object"?"url(#".concat(Sn,")"):void 0,Kt=Be(Er,dr,ar,cn,Jn,en,_n,_t,"butt",qt,Vr);return ar+=(dr-Kt.strokeDashoffset+Vr)*100/dr,y.createElement("circle",{key:It,className:"".concat(nt,"-circle-path"),r:Rn,cx:ln,cy:ln,stroke:Tt,strokeWidth:qt,opacity:1,style:Kt,ref:function(Hn){Vt[It]=Hn}})})};return y.createElement("svg",(0,je.Z)({className:ke()("".concat(nt,"-circle"),Zt),viewBox:"0 0 ".concat(We," ").concat(We),style:Vn,id:pn,role:"presentation"},xn),!gr&&y.createElement("circle",{className:"".concat(nt,"-circle-trail"),r:Rn,cx:ln,cy:ln,stroke:Un,strokeLinecap:ur,strokeWidth:wt||qt,style:Mt}),gr?kt():ft())},ze=Qe,st={Line:Pe,Circle:ze},Se=E(25399),ye=E(68361);function vt(Je){return!Je||Je<0?0:Je>100?100:Je}function Ht(Je){let{success:Pt,successPercent:nn}=Je,pn=nn;return Pt&&"progress"in Pt&&(pn=Pt.progress),Pt&&"percent"in Pt&&(pn=Pt.percent),pn}const $t=Je=>{let{percent:Pt,success:nn,successPercent:pn}=Je;const nt=vt(Ht({success:nn,successPercent:pn}));return[nt,vt(vt(Pt)-nt)]},Fe=Je=>{let{success:Pt={},strokeColor:nn}=Je;const{strokeColor:pn}=Pt;return[pn||ye.presetPrimaryColors.green,nn||null]},pt=(Je,Pt,nn)=>{var pn,nt,Nt,qt;let wt=-1,Wt=-1;if(Pt==="step"){const en=nn.steps,_n=nn.strokeWidth;typeof Je=="string"||typeof Je=="undefined"?(wt=Je==="small"?2:14,Wt=_n!=null?_n:8):typeof Je=="number"?[wt,Wt]=[Je,Je]:[wt=14,Wt=8]=Array.isArray(Je)?Je:[Je.width,Je.height],wt*=en}else if(Pt==="line"){const en=nn==null?void 0:nn.strokeWidth;typeof Je=="string"||typeof Je=="undefined"?Wt=en||(Je==="small"?6:8):typeof Je=="number"?[wt,Wt]=[Je,Je]:[wt=-1,Wt=8]=Array.isArray(Je)?Je:[Je.width,Je.height]}else(Pt==="circle"||Pt==="dashboard")&&(typeof Je=="string"||typeof Je=="undefined"?[wt,Wt]=Je==="small"?[60,60]:[120,120]:typeof Je=="number"?[wt,Wt]=[Je,Je]:Array.isArray(Je)&&(wt=(nt=(pn=Je[0])!==null&&pn!==void 0?pn:Je[1])!==null&&nt!==void 0?nt:120,Wt=(qt=(Nt=Je[0])!==null&&Nt!==void 0?Nt:Je[1])!==null&&qt!==void 0?qt:120));return[wt,Wt]},ut=3,Yt=Je=>ut/Je*100;var Ct=Je=>{const{prefixCls:Pt,trailColor:nn=null,strokeLinecap:pn="round",gapPosition:nt,gapDegree:Nt,width:qt=120,type:wt,children:Wt,success:en,size:_n=qt,steps:Un}=Je,[On,Vn]=pt(_n,"circle");let{strokeWidth:Zt}=Je;Zt===void 0&&(Zt=Math.max(Yt(On),6));const Xt={width:On,height:Vn,fontSize:On*.15+6},an=y.useMemo(()=>{if(Nt||Nt===0)return Nt;if(wt==="dashboard")return 75},[Nt,wt]),xn=$t(Je),ln=nt||wt==="dashboard"&&"bottom"||void 0,Pn=Object.prototype.toString.call(Je.strokeColor)==="[object Object]",Sn=Fe({success:en,strokeColor:Je.strokeColor}),Rn=ke()(`${Pt}-inner`,{[`${Pt}-circle-gradient`]:Pn}),Er=y.createElement(ze,{steps:Un,percent:Un?xn[1]:xn,strokeWidth:Zt,trailWidth:Zt,strokeColor:Un?Sn[1]:Sn,strokeLinecap:pn,trailColor:nn,prefixCls:Pt,gapDegree:an,gapPosition:ln}),Jn=On<=20,dr=y.createElement("div",{className:Rn,style:Xt},Er,!Jn&&Wt);return Jn?y.createElement(Se.Z,{title:Wt},dr):dr},mt=E(36237),mn=E(63356),zt=E(16931),ue=E(51636);const ie="--progress-line-stroke-color",re="--progress-percent",oe=Je=>{const Pt=Je?"100%":"-100%";return new mt.Keyframes(`antProgress${Je?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},pe=Je=>{const{componentCls:Pt,iconCls:nn}=Je;return{[Pt]:Object.assign(Object.assign({},(0,mn.Wf)(Je)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Je.fontSize},[`${Pt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Pt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Je.remainingColor,borderRadius:Je.lineBorderRadius},[`${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:Je.defaultColor}},[`${Pt}-success-bg, ${Pt}-bg`]:{position:"relative",background:Je.defaultColor,borderRadius:Je.lineBorderRadius,transition:`all ${Je.motionDurationSlow} ${Je.motionEaseInOutCirc}`},[`${Pt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Pt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Je.marginXXS}},[`${Pt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ie})`]},height:"100%",width:`calc(1 / var(${re}) * 100%)`,display:"block"},[`&${Pt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Pt}-text-inner`]:{color:Je.colorWhite,[`&${Pt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Pt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Je.colorSuccess},[`${Pt}-text`]:{display:"inline-block",marginInlineStart:Je.marginXS,color:Je.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[nn]:{fontSize:Je.fontSize},[`&${Pt}-text-outer`]:{width:"max-content"},[`&${Pt}-text-outer${Pt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Je.marginXS}},[`${Pt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,mt.unit)(Je.paddingXXS)}`,[`&${Pt}-text-start`]:{justifyContent:"start"},[`&${Pt}-text-end`]:{justifyContent:"end"}},[`&${Pt}-status-active`]:{[`${Pt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Je.colorBgContainer,borderRadius:Je.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Je.progressActiveMotionDuration,animationTimingFunction:Je.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Pt}-rtl${Pt}-status-active`]:{[`${Pt}-bg::before`]:{animationName:oe(!0)}},[`&${Pt}-status-exception`]:{[`${Pt}-bg`]:{backgroundColor:Je.colorError},[`${Pt}-text`]:{color:Je.colorError}},[`&${Pt}-status-exception ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:Je.colorError}},[`&${Pt}-status-success`]:{[`${Pt}-bg`]:{backgroundColor:Je.colorSuccess},[`${Pt}-text`]:{color:Je.colorSuccess}},[`&${Pt}-status-success ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:Je.colorSuccess}}})}},ae=Je=>{const{componentCls:Pt,iconCls:nn}=Je;return{[Pt]:{[`${Pt}-circle-trail`]:{stroke:Je.remainingColor},[`&${Pt}-circle ${Pt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Pt}-circle ${Pt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Je.circleTextColor,fontSize:Je.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[nn]:{fontSize:Je.circleIconFontSize}},[`${Pt}-circle&-status-exception`]:{[`${Pt}-text`]:{color:Je.colorError}},[`${Pt}-circle&-status-success`]:{[`${Pt}-text`]:{color:Je.colorSuccess}}},[`${Pt}-inline-circle`]:{lineHeight:1,[`${Pt}-inner`]:{verticalAlign:"bottom"}}}},me=Je=>{const{componentCls:Pt}=Je;return{[Pt]:{[`${Pt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Je.progressStepMinWidth,marginInlineEnd:Je.progressStepMarginInlineEnd,backgroundColor:Je.remainingColor,transition:`all ${Je.motionDurationSlow}`,"&-active":{backgroundColor:Je.defaultColor}}}}}},Ze=Je=>{const{componentCls:Pt,iconCls:nn}=Je;return{[Pt]:{[`${Pt}-small&-line, ${Pt}-small&-line ${Pt}-text ${nn}`]:{fontSize:Je.fontSizeSM}}}},Ot=Je=>({circleTextColor:Je.colorText,defaultColor:Je.colorInfo,remainingColor:Je.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Je.fontSize/Je.fontSizeSM}em`});var at=(0,zt.I$)("Progress",Je=>{const Pt=Je.calc(Je.marginXXS).div(2).equal(),nn=(0,ue.mergeToken)(Je,{progressStepMarginInlineEnd:Pt,progressStepMinWidth:Pt,progressActiveMotionDuration:"2.4s"});return[pe(nn),ae(nn),me(nn),Ze(nn)]},Ot),qe=function(Je,Pt){var nn={};for(var pn in Je)Object.prototype.hasOwnProperty.call(Je,pn)&&Pt.indexOf(pn)<0&&(nn[pn]=Je[pn]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,pn=Object.getOwnPropertySymbols(Je);nt<pn.length;nt++)Pt.indexOf(pn[nt])<0&&Object.prototype.propertyIsEnumerable.call(Je,pn[nt])&&(nn[pn[nt]]=Je[pn[nt]]);return nn};const yt=Je=>{let Pt=[];return Object.keys(Je).forEach(nn=>{const pn=parseFloat(nn.replace(/%/g,""));Number.isNaN(pn)||Pt.push({key:pn,value:Je[nn]})}),Pt=Pt.sort((nn,pn)=>nn.key-pn.key),Pt.map(nn=>{let{key:pn,value:nt}=nn;return`${nt} ${pn}%`}).join(", ")},Ft=(Je,Pt)=>{const{from:nn=ye.presetPrimaryColors.blue,to:pn=ye.presetPrimaryColors.blue,direction:nt=Pt==="rtl"?"to left":"to right"}=Je,Nt=qe(Je,["from","to","direction"]);if(Object.keys(Nt).length!==0){const wt=yt(Nt),Wt=`linear-gradient(${nt}, ${wt})`;return{background:Wt,[ie]:Wt}}const qt=`linear-gradient(${nt}, ${nn}, ${pn})`;return{background:qt,[ie]:qt}};var Xe=Je=>{const{prefixCls:Pt,direction:nn,percent:pn,size:nt,strokeWidth:Nt,strokeColor:qt,strokeLinecap:wt="round",children:Wt,trailColor:en=null,percentPosition:_n,success:Un}=Je,{align:On,type:Vn}=_n,Zt=qt&&typeof qt!="string"?Ft(qt,nn):{[ie]:qt,background:qt},Xt=wt==="square"||wt==="butt"?0:void 0,an=nt!=null?nt:[-1,Nt||(nt==="small"?6:8)],[xn,ln]=pt(an,"line",{strokeWidth:Nt}),Pn={backgroundColor:en||void 0,borderRadius:Xt},Sn=Object.assign(Object.assign({width:`${vt(pn)}%`,height:ln,borderRadius:Xt},Zt),{[re]:vt(pn)/100}),Rn=Ht(Je),Er={width:`${vt(Rn)}%`,height:ln,borderRadius:Xt,backgroundColor:Un==null?void 0:Un.strokeColor},Jn={width:xn<0?"100%":xn},dr=y.createElement("div",{className:`${Pt}-inner`,style:Pn},y.createElement("div",{className:ke()(`${Pt}-bg`,`${Pt}-bg-${Vn}`),style:Sn},Vn==="inner"&&Wt),Rn!==void 0&&y.createElement("div",{className:`${Pt}-success-bg`,style:Er})),yr=Vn==="outer"&&On==="start",gr=Vn==="outer"&&On==="end";return Vn==="outer"&&On==="center"?y.createElement("div",{className:`${Pt}-layout-bottom`},dr,Wt):y.createElement("div",{className:`${Pt}-outer`,style:Jn},yr&&Wt,dr,gr&&Wt)},Gt=Je=>{const{size:Pt,steps:nn,rounding:pn=Math.round,percent:nt=0,strokeWidth:Nt=8,strokeColor:qt,trailColor:wt=null,prefixCls:Wt,children:en}=Je,_n=pn(nn*(nt/100)),Un=Pt==="small"?2:14,On=Pt!=null?Pt:[Un,Nt],[Vn,Zt]=pt(On,"step",{steps:nn,strokeWidth:Nt}),Xt=Vn/nn,an=Array.from({length:nn});for(let xn=0;xn<nn;xn++){const ln=Array.isArray(qt)?qt[xn]:qt;an[xn]=y.createElement("div",{key:xn,className:ke()(`${Wt}-steps-item`,{[`${Wt}-steps-item-active`]:xn<=_n-1}),style:{backgroundColor:xn<=_n-1?ln:wt,width:Xt,height:Zt}})}return y.createElement("div",{className:`${Wt}-steps-outer`},an,en)},un=function(Je,Pt){var nn={};for(var pn in Je)Object.prototype.hasOwnProperty.call(Je,pn)&&Pt.indexOf(pn)<0&&(nn[pn]=Je[pn]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,pn=Object.getOwnPropertySymbols(Je);nt<pn.length;nt++)Pt.indexOf(pn[nt])<0&&Object.prototype.propertyIsEnumerable.call(Je,pn[nt])&&(nn[pn[nt]]=Je[pn[nt]]);return nn};const wn=null,gn=["normal","exception","active","success"];var Ut=y.forwardRef((Je,Pt)=>{const{prefixCls:nn,className:pn,rootClassName:nt,steps:Nt,strokeColor:qt,percent:wt=0,size:Wt="default",showInfo:en=!0,type:_n="line",status:Un,format:On,style:Vn,percentPosition:Zt={}}=Je,Xt=un(Je,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:an="end",type:xn="outer"}=Zt,ln=Array.isArray(qt)?qt[0]:qt,Pn=typeof qt=="string"||Array.isArray(qt)?qt:void 0,Sn=y.useMemo(()=>{if(ln){const ft=typeof ln=="string"?ln:Object.values(ln)[0];return new ve.FastColor(ft).isLight()}return!1},[qt]),Rn=y.useMemo(()=>{var ft,kt;const it=Ht(Je);return parseInt(it!==void 0?(ft=it!=null?it:0)===null||ft===void 0?void 0:ft.toString():(kt=wt!=null?wt:0)===null||kt===void 0?void 0:kt.toString(),10)},[wt,Je.success,Je.successPercent]),Er=y.useMemo(()=>!gn.includes(Un)&&Rn>=100?"success":Un||"normal",[Un,Rn]),{getPrefixCls:Jn,direction:dr,progress:yr}=y.useContext(fe.E_),gr=Jn("progress",nn),[Vr,Zr,Dn]=at(gr),Zn=_n==="line",fr=Zn&&!Nt,ur=y.useMemo(()=>{if(!en)return null;const ft=Ht(Je);let kt;const it=On||(cn=>`${cn}%`),ht=Zn&&Sn&&xn==="inner";return xn==="inner"||On||Er!=="exception"&&Er!=="success"?kt=it(vt(wt),vt(ft)):Er==="exception"?kt=Zn?y.createElement(xe.Z,null):y.createElement(Ee.Z,null):Er==="success"&&(kt=Zn?y.createElement(ce.Z,null):y.createElement(Le.Z,null)),y.createElement("span",{className:ke()(`${gr}-text`,{[`${gr}-text-bright`]:ht,[`${gr}-text-${an}`]:fr,[`${gr}-text-${xn}`]:fr}),title:typeof kt=="string"?kt:void 0},kt)},[en,wt,Rn,Er,_n,gr,On]);let Mt;_n==="line"?Mt=Nt?y.createElement(Gt,Object.assign({},Je,{strokeColor:Pn,prefixCls:gr,steps:typeof Nt=="object"?Nt.count:Nt}),ur):y.createElement(Xe,Object.assign({},Je,{strokeColor:ln,prefixCls:gr,direction:dr,percentPosition:{align:an,type:xn}}),ur):(_n==="circle"||_n==="dashboard")&&(Mt=y.createElement(Ct,Object.assign({},Je,{strokeColor:ln,prefixCls:gr,progressStatus:Er}),ur));const Vt=ke()(gr,`${gr}-status-${Er}`,{[`${gr}-${_n==="dashboard"&&"circle"||_n}`]:_n!=="line",[`${gr}-inline-circle`]:_n==="circle"&&pt(Wt,"circle")[0]<=20,[`${gr}-line`]:fr,[`${gr}-line-align-${an}`]:fr,[`${gr}-line-position-${xn}`]:fr,[`${gr}-steps`]:Nt,[`${gr}-show-info`]:en,[`${gr}-${Wt}`]:typeof Wt=="string",[`${gr}-rtl`]:dr==="rtl"},yr==null?void 0:yr.className,pn,nt,Zr,Dn);return Vr(y.createElement("div",Object.assign({ref:Pt,style:Object.assign(Object.assign({},yr==null?void 0:yr.style),Vn),className:Vt,role:"progressbar","aria-valuenow":Rn,"aria-valuemin":0,"aria-valuemax":100},(0,De.Z)(Xt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Mt))}),At=Ut},63139:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return $t}});var y=E(59301),ve=E(54476),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"},Le=ce,xe=E(7657),Ee=function(pt,ut){return y.createElement(xe.Z,(0,ve.Z)({},pt,{ref:ut,icon:Le}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(92310),fe=E.n(De),je=E(20068),Ne=E(42978),ct=E(75931),Ke=E(18929),Te=E(10228),we=E(26112);function Ie(Fe,pt){var ut=Fe.disabled,Yt=Fe.prefixCls,bt=Fe.character,Ct=Fe.characterRender,mt=Fe.index,mn=Fe.count,zt=Fe.value,ue=Fe.allowHalf,ie=Fe.focused,re=Fe.onHover,oe=Fe.onClick,pe=function(Ft){re(Ft,mt)},ae=function(Ft){oe(Ft,mt)},me=function(Ft){Ft.keyCode===Te.Z.ENTER&&oe(Ft,mt)},Ze=mt+1,Ot=new Set([Yt]);zt===0&&mt===0&&ie?Ot.add("".concat(Yt,"-focused")):ue&&zt+.5>=Ze&&zt<Ze?(Ot.add("".concat(Yt,"-half")),Ot.add("".concat(Yt,"-active")),ie&&Ot.add("".concat(Yt,"-focused"))):(Ze<=zt?Ot.add("".concat(Yt,"-full")):Ot.add("".concat(Yt,"-zero")),Ze===zt&&ie&&Ot.add("".concat(Yt,"-focused")));var at=typeof bt=="function"?bt(Fe):bt,qe=y.createElement("li",{className:fe()(Array.from(Ot)),ref:pt},y.createElement("div",{onClick:ut?null:ae,onKeyDown:ut?null:me,onMouseMove:ut?null:pe,role:"radio","aria-checked":zt>mt?"true":"false","aria-posinset":mt+1,"aria-setsize":mn,tabIndex:ut?-1:0},y.createElement("div",{className:"".concat(Yt,"-first")},at),y.createElement("div",{className:"".concat(Yt,"-second")},at)));return Ct&&(qe=Ct(qe,Fe)),qe}var Pe=y.forwardRef(Ie);function rt(){var Fe=y.useRef({});function pt(Yt){return Fe.current[Yt]}function ut(Yt){return function(bt){Fe.current[Yt]=bt}}return[pt,ut]}function Et(Fe){var pt=Fe.pageXOffset,ut="scrollLeft";if(typeof pt!="number"){var Yt=Fe.document;pt=Yt.documentElement[ut],typeof pt!="number"&&(pt=Yt.body[ut])}return pt}function Oe(Fe){var pt,ut,Yt=Fe.ownerDocument,bt=Yt.body,Ct=Yt&&Yt.documentElement,mt=Fe.getBoundingClientRect();return pt=mt.left,ut=mt.top,pt-=Ct.clientLeft||bt.clientLeft||0,ut-=Ct.clientTop||bt.clientTop||0,{left:pt,top:ut}}function Ae(Fe){var pt=Oe(Fe),ut=Fe.ownerDocument,Yt=ut.defaultView||ut.parentWindow;return pt.left+=Et(Yt),pt.left}var Ve=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ye(Fe,pt){var ut=Fe.prefixCls,Yt=ut===void 0?"rc-rate":ut,bt=Fe.className,Ct=Fe.defaultValue,mt=Fe.value,mn=Fe.count,zt=mn===void 0?5:mn,ue=Fe.allowHalf,ie=ue===void 0?!1:ue,re=Fe.allowClear,oe=re===void 0?!0:re,pe=Fe.keyboard,ae=pe===void 0?!0:pe,me=Fe.character,Ze=me===void 0?"\u2605":me,Ot=Fe.characterRender,at=Fe.disabled,qe=Fe.direction,yt=qe===void 0?"ltr":qe,Ft=Fe.tabIndex,jt=Ft===void 0?0:Ft,Xe=Fe.autoFocus,tt=Fe.onHoverChange,Gt=Fe.onChange,un=Fe.onFocus,wn=Fe.onBlur,gn=Fe.onKeyDown,Rt=Fe.onMouseLeave,Ut=(0,ct.Z)(Fe,Ve),At=rt(),Je=(0,Ne.Z)(At,2),Pt=Je[0],nn=Je[1],pn=y.useRef(null),nt=function(){if(!at){var ur;(ur=pn.current)===null||ur===void 0||ur.focus()}};y.useImperativeHandle(pt,function(){return{focus:nt,blur:function(){if(!at){var ur;(ur=pn.current)===null||ur===void 0||ur.blur()}}}});var Nt=(0,Ke.Z)(Ct||0,{value:mt}),qt=(0,Ne.Z)(Nt,2),wt=qt[0],Wt=qt[1],en=(0,Ke.Z)(null),_n=(0,Ne.Z)(en,2),Un=_n[0],On=_n[1],Vn=function(ur,Mt){var Vt=yt==="rtl",ft=ur+1;if(ie){var kt=Pt(ur),it=Ae(kt),ht=kt.clientWidth;(Vt&&Mt-it>ht/2||!Vt&&Mt-it<ht/2)&&(ft-=.5)}return ft},Zt=function(ur){Wt(ur),Gt==null||Gt(ur)},Xt=y.useState(!1),an=(0,Ne.Z)(Xt,2),xn=an[0],ln=an[1],Pn=function(){ln(!0),un==null||un()},Sn=function(){ln(!1),wn==null||wn()},Rn=y.useState(null),Er=(0,Ne.Z)(Rn,2),Jn=Er[0],dr=Er[1],yr=function(ur,Mt){var Vt=Vn(Mt,ur.pageX);Vt!==Un&&(dr(Vt),On(null)),tt==null||tt(Vt)},gr=function(ur){at||(dr(null),On(null),tt==null||tt(void 0)),ur&&(Rt==null||Rt(ur))},Vr=function(ur,Mt){var Vt=Vn(Mt,ur.pageX),ft=!1;oe&&(ft=Vt===wt),gr(),Zt(ft?0:Vt),On(ft?Vt:null)},Zr=function(ur){var Mt=ur.keyCode,Vt=yt==="rtl",ft=ie?.5:1;ae&&(Mt===Te.Z.RIGHT&&wt<zt&&!Vt?(Zt(wt+ft),ur.preventDefault()):Mt===Te.Z.LEFT&&wt>0&&!Vt||Mt===Te.Z.RIGHT&&wt>0&&Vt?(Zt(wt-ft),ur.preventDefault()):Mt===Te.Z.LEFT&&wt<zt&&Vt&&(Zt(wt+ft),ur.preventDefault())),gn==null||gn(ur)};y.useEffect(function(){Xe&&!at&&nt()},[]);var Dn=new Array(zt).fill(0).map(function(fr,ur){return y.createElement(Pe,{ref:nn(ur),index:ur,count:zt,disabled:at,prefixCls:"".concat(Yt,"-star"),allowHalf:ie,value:Jn===null?wt:Jn,onClick:Vr,onHover:yr,key:fr||ur,character:Ze,characterRender:Ot,focused:xn})}),Zn=fe()(Yt,bt,(0,je.Z)((0,je.Z)({},"".concat(Yt,"-disabled"),at),"".concat(Yt,"-rtl"),yt==="rtl"));return y.createElement("ul",(0,ve.Z)({className:Zn,onMouseLeave:gr,tabIndex:at?-1:jt,onFocus:at?null:Pn,onBlur:at?null:Sn,onKeyDown:at?null:Zr,ref:pn},(0,we.Z)(Ut,{aria:!0,data:!0,attr:!0})),Dn)}var xt=y.forwardRef(Ye),gt=xt,lt=E(48755),Ue=E(25399),be=E(36237),We=E(63356),Be=E(16931),de=E(51636);const St=Fe=>{const{componentCls:pt}=Fe;return{[`${pt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Fe.marginXS},"> div":{transition:`all ${Fe.motionDurationMid}, outline 0s`,"&:hover":{transform:Fe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,be.unit)(Fe.lineWidth)} dashed ${Fe.starColor}`,transform:Fe.starHoverScale}},"&-first, &-second":{color:Fe.starBg,transition:`all ${Fe.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${pt}-star-first, &-half ${pt}-star-second`]:{opacity:1},[`&-half ${pt}-star-first, &-full ${pt}-star-second`]:{color:"inherit"}}}},Qe=Fe=>({[`&-rtl${Fe.componentCls}`]:{direction:"rtl"}}),ze=Fe=>{const{componentCls:pt}=Fe;return{[pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,We.Wf)(Fe)),{display:"inline-block",margin:0,padding:0,color:Fe.starColor,fontSize:Fe.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${pt} ${pt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),St(Fe)),Qe(Fe))}},st=Fe=>({starColor:Fe.yellow6,starSize:Fe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Fe.colorFillContent});var Se=(0,Be.I$)("Rate",Fe=>{const pt=(0,de.mergeToken)(Fe,{});return[ze(pt)]},st),ye=E(2171),vt=function(Fe,pt){var ut={};for(var Yt in Fe)Object.prototype.hasOwnProperty.call(Fe,Yt)&&pt.indexOf(Yt)<0&&(ut[Yt]=Fe[Yt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Yt=Object.getOwnPropertySymbols(Fe);bt<Yt.length;bt++)pt.indexOf(Yt[bt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Yt[bt])&&(ut[Yt[bt]]=Fe[Yt[bt]]);return ut},$t=y.forwardRef((Fe,pt)=>{const{prefixCls:ut,className:Yt,rootClassName:bt,style:Ct,tooltips:mt,character:mn=y.createElement(ke,null),disabled:zt}=Fe,ue=vt(Fe,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ie=(Ft,jt)=>{let{index:Xe}=jt;return mt?y.createElement(Ue.Z,{title:mt[Xe]},Ft):Ft},{getPrefixCls:re,direction:oe,rate:pe}=y.useContext(lt.E_),ae=re("rate",ut),[me,Ze,Ot]=Se(ae),at=Object.assign(Object.assign({},pe==null?void 0:pe.style),Ct),qe=y.useContext(ye.Z),yt=zt!=null?zt:qe;return me(y.createElement(gt,Object.assign({ref:pt,character:mn,characterRender:ie,disabled:yt},ue,{className:fe()(Yt,bt,Ze,Ot,pe==null?void 0:pe.className),style:at,prefixCls:ae,direction:oe})))})},82326:function(Mn,Jt,E){"use strict";var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(37463),xe=E(2738),Ee=E(75030),Ce=E(86641),ke=E(45915),De=E(82855),fe=E(48755),je=E(38406),Ne=E(2171),ct=E(83397),Ke=E(31756),Te=E(56553),we=E(24971),Ie=E(70045),Pe=E(57700),rt=E(1722),Et=E(90376),Oe=E(68525),Ae=E(90005),Ve=function(Ue,be){var We={};for(var Be in Ue)Object.prototype.hasOwnProperty.call(Ue,Be)&&be.indexOf(Be)<0&&(We[Be]=Ue[Be]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Be=Object.getOwnPropertySymbols(Ue);de<Be.length;de++)be.indexOf(Be[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Be[de])&&(We[Be[de]]=Ue[Be[de]]);return We};const Ye="SECRET_COMBOBOX_MODE_DO_NOT_USE",xt=(Ue,be)=>{var We;const{prefixCls:Be,bordered:de,className:St,rootClassName:Qe,getPopupContainer:ze,popupClassName:st,dropdownClassName:Se,listHeight:ye=256,placement:vt,listItemHeight:Ht,size:$t,disabled:Fe,notFoundContent:pt,status:ut,builtinPlacements:Yt,dropdownMatchSelectWidth:bt,popupMatchSelectWidth:Ct,direction:mt,style:mn,allowClear:zt,variant:ue,dropdownStyle:ie,transitionName:re,tagRender:oe,maxCount:pe,prefix:ae}=Ue,me=Ve(Ue,["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:Ze,getPrefixCls:Ot,renderEmpty:at,direction:qe,virtual:yt,popupMatchSelectWidth:Ft,popupOverflow:jt}=y.useContext(fe.E_),Xe=(0,fe.dj)("select"),[,tt]=(0,Pe.ZP)(),Gt=Ht!=null?Ht:tt==null?void 0:tt.controlHeight,un=Ot("select",Be),wn=Ot(),gn=mt!=null?mt:qe,{compactSize:Rt,compactItemClassnames:Ut}=(0,Ie.ri)(un,gn),[At,Je]=(0,we.Z)("select",ue,de),Pt=(0,ct.Z)(un),[nn,pn,nt]=(0,Et.Z)(un,Pt),Nt=y.useMemo(()=>{const{mode:Zr}=Ue;if(Zr!=="combobox")return Zr===Ye?"combobox":Zr},[Ue.mode]),qt=Nt==="multiple"||Nt==="tags",wt=(0,Ae.Z)(Ue.suffixIcon,Ue.showArrow),Wt=(We=Ct!=null?Ct:bt)!==null&&We!==void 0?We:Ft,{status:en,hasFeedback:_n,isFormItemInput:Un,feedbackIcon:On}=y.useContext(Te.aM),Vn=(0,De.F)(en,ut);let Zt;pt!==void 0?Zt=pt:Nt==="combobox"?Zt=null:Zt=(at==null?void 0:at("Select"))||y.createElement(je.Z,{componentName:"Select"});const{suffixIcon:Xt,itemIcon:an,removeIcon:xn,clearIcon:ln}=(0,Oe.Z)(Object.assign(Object.assign({},me),{multiple:qt,hasFeedback:_n,feedbackIcon:On,showSuffixIcon:wt,prefixCls:un,componentName:"Select"})),Pn=zt===!0?{clearIcon:ln}:zt,Sn=(0,xe.Z)(me,["suffixIcon","itemIcon"]),Rn=ce()(st||Se,{[`${un}-dropdown-${gn}`]:gn==="rtl"},Qe,nt,Pt,pn),Er=(0,Ke.Z)(Zr=>{var Dn;return(Dn=$t!=null?$t:Rt)!==null&&Dn!==void 0?Dn:Zr}),Jn=y.useContext(Ne.Z),dr=Fe!=null?Fe:Jn,yr=ce()({[`${un}-lg`]:Er==="large",[`${un}-sm`]:Er==="small",[`${un}-rtl`]:gn==="rtl",[`${un}-${At}`]:Je,[`${un}-in-form-item`]:Un},(0,De.Z)(un,Vn,_n),Ut,Xe.className,St,Qe,nt,Pt,pn),gr=y.useMemo(()=>vt!==void 0?vt:gn==="rtl"?"bottomRight":"bottomLeft",[vt,gn]),[Vr]=(0,Ee.Cn)("SelectLike",ie==null?void 0:ie.zIndex);return nn(y.createElement(Le.ZP,Object.assign({ref:be,virtual:yt,showSearch:Xe.showSearch},Sn,{style:Object.assign(Object.assign({},Xe.style),mn),dropdownMatchSelectWidth:Wt,transitionName:(0,Ce.m)(wn,"slide-up",re),builtinPlacements:(0,rt.Z)(Yt,jt),listHeight:ye,listItemHeight:Gt,mode:Nt,prefixCls:un,placement:gr,direction:gn,prefix:ae,suffixIcon:Xt,menuItemSelectedIcon:an,removeIcon:xn,allowClear:Pn,notFoundContent:Zt,className:yr,getPopupContainer:ze||Ze,dropdownClassName:Rn,disabled:dr,dropdownStyle:Object.assign(Object.assign({},ie),{zIndex:Vr}),maxCount:qt?pe:void 0,tagRender:qt?oe:void 0})))},gt=y.forwardRef(xt),lt=(0,ke.Z)(gt,"dropdownAlign");gt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ye,gt.Option=Le.Wx,gt.OptGroup=Le.Xo,gt._InternalPanelDoNotUseOrYouWillBeFired=lt,Jt.default=gt},1722:function(Mn,Jt){"use strict";const E=ve=>{const Le={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ve==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Le),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Le),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Le),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Le),{points:["br","tr"],offset:[0,-4]})}};function y(ve,ce){return ve||E(ce)}Jt.Z=y},90376:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Be}});var y=E(63356),ve=E(56119),ce=E(16931),Le=E(51636),xe=E(46e3),Ee=E(93873);const Ce=de=>{const{optionHeight:St,optionFontSize:Qe,optionLineHeight:ze,optionPadding:st}=de;return{position:"relative",display:"block",minHeight:St,padding:st,color:de.colorText,fontWeight:"normal",fontSize:Qe,lineHeight:ze,boxSizing:"border-box"}};var De=de=>{const{antCls:St,componentCls:Qe}=de,ze=`${Qe}-item`,st=`&${St}-slide-up-enter${St}-slide-up-enter-active`,Se=`&${St}-slide-up-appear${St}-slide-up-appear-active`,ye=`&${St}-slide-up-leave${St}-slide-up-leave-active`,vt=`${Qe}-dropdown-placement-`,Ht=`${ze}-option-selected`;return[{[`${Qe}-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,[`
${st}${vt}bottomLeft,
${Se}${vt}bottomLeft
`]:{animationName:xe.fJ},[`
${st}${vt}topLeft,
${Se}${vt}topLeft,
${st}${vt}topRight,
${Se}${vt}topRight
`]:{animationName:xe.Qt},[`${ye}${vt}bottomLeft`]:{animationName:xe.Uw},[`
${ye}${vt}topLeft,
${ye}${vt}topRight
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[ze]: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(${ze}-option-disabled)`]:{backgroundColor:de.optionActiveBg},[`&-selected:not(${ze}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${ze}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${ze}-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,xe.oN)(de,"slide-up"),(0,xe.oN)(de,"slide-down"),(0,Ee.Fm)(de,"move-up"),(0,Ee.Fm)(de,"move-down")]},fe=E(26743),je=E(36237);function Ne(de,St){const{componentCls:Qe,inputPaddingHorizontalBase:ze,borderRadius:st}=de,Se=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),ye=St?`${Qe}-${St}`:"";return{[`${Qe}-single${ye}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${Qe}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(de,!0)),{display:"flex",borderRadius:st,flex:"1 1 auto",[`${Qe}-selection-wrap:after`]:{lineHeight:(0,je.unit)(Se)},[`${Qe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Qe}-selection-item,
${Qe}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,je.unit)(Se),transition:`all ${de.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Qe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Qe}-selection-item:empty:after`,`${Qe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Qe}-show-arrow ${Qe}-selection-item,
&${Qe}-show-arrow ${Qe}-selection-search,
&${Qe}-show-arrow ${Qe}-selection-placeholder
`]:{paddingInlineEnd:de.showArrowPaddingInlineEnd},[`&${Qe}-open ${Qe}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${Qe}-customize-input)`]:{[`${Qe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,je.unit)(ze)}`,[`${Qe}-selection-search-input`]:{height:Se,fontSize:de.fontSize},"&:after":{lineHeight:(0,je.unit)(Se)}}},[`&${Qe}-customize-input`]:{[`${Qe}-selector`]:{"&:after":{display:"none"},[`${Qe}-selection-search`]:{position:"static",width:"100%"},[`${Qe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,je.unit)(ze)}`,"&:after":{display:"none"}}}}}}}function ct(de){const{componentCls:St}=de,Qe=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[Ne(de),Ne((0,Le.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${St}-single${St}-sm`]:{[`&:not(${St}-customize-input)`]:{[`${St}-selector`]:{padding:`0 ${(0,je.unit)(Qe)}`},[`&${St}-show-arrow ${St}-selection-search`]:{insetInlineEnd:de.calc(Qe).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
&${St}-show-arrow ${St}-selection-item,
&${St}-show-arrow ${St}-selection-placeholder
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},Ne((0,Le.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const Ke=de=>{const{fontSize:St,lineHeight:Qe,lineWidth:ze,controlHeight:st,controlHeightSM:Se,controlHeightLG:ye,paddingXXS:vt,controlPaddingHorizontal:Ht,zIndexPopupBase:$t,colorText:Fe,fontWeightStrong:pt,controlItemBgActive:ut,controlItemBgHover:Yt,colorBgContainer:bt,colorFillSecondary:Ct,colorBgContainerDisabled:mt,colorTextDisabled:mn,colorPrimaryHover:zt,colorPrimary:ue,controlOutline:ie}=de,re=vt*2,oe=ze*2,pe=Math.min(st-re,st-oe),ae=Math.min(Se-re,Se-oe),me=Math.min(ye-re,ye-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(vt/2),zIndexPopup:$t+50,optionSelectedColor:Fe,optionSelectedFontWeight:pt,optionSelectedBg:ut,optionActiveBg:Yt,optionPadding:`${(st-St*Qe)/2}px ${Ht}px`,optionFontSize:St,optionLineHeight:Qe,optionHeight:st,selectorBg:bt,clearBg:bt,singleItemHeightLG:ye,multipleItemBg:Ct,multipleItemBorderColor:"transparent",multipleItemHeight:pe,multipleItemHeightSM:ae,multipleItemHeightLG:me,multipleSelectorBgDisabled:mt,multipleItemColorDisabled:mn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:zt,activeBorderColor:ue,activeOutlineColor:ie,selectAffixPadding:vt}},Te=(de,St)=>{const{componentCls:Qe,antCls:ze,controlOutlineWidth:st}=de;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{border:`${(0,je.unit)(de.lineWidth)} ${de.lineType} ${St.borderColor}`,background:de.selectorBg},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{borderColor:St.hoverBorderHover},[`${Qe}-focused& ${Qe}-selector`]:{borderColor:St.activeBorderColor,boxShadow:`0 0 0 ${(0,je.unit)(st)} ${St.activeOutlineColor}`,outline:0},[`${Qe}-prefix`]:{color:St.color}}}},we=(de,St)=>({[`&${de.componentCls}-status-${St.status}`]:Object.assign({},Te(de,St))}),Ie=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(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,je.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),Pe=(de,St)=>{const{componentCls:Qe,antCls:ze}=de;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{background:St.bg,border:`${(0,je.unit)(de.lineWidth)} ${de.lineType} transparent`,color:St.color},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{background:St.hoverBg},[`${Qe}-focused& ${Qe}-selector`]:{background:de.selectorBg,borderColor:St.activeBorderColor,outline:0}}}},rt=(de,St)=>({[`&${de.componentCls}-status-${St.status}`]:Object.assign({},Pe(de,St))}),Et=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Pe(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),rt(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),rt(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,je.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),Oe=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,je.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,je.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}}}}),Ae=(de,St)=>{const{componentCls:Qe,antCls:ze}=de;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{borderWidth:`0 0 ${(0,je.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:St.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${ze}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{borderColor:St.hoverBorderHover},[`${Qe}-focused& ${Qe}-selector`]:{borderColor:St.activeBorderColor,outline:0},[`${Qe}-prefix`]:{color:St.color}}}},Ve=(de,St)=>({[`&${de.componentCls}-status-${St.status}`]:Object.assign({},Ae(de,St))}),Ye=de=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ae(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),Ve(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),Ve(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,je.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var gt=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ie(de)),Et(de)),Oe(de)),Ye(de))});const lt=de=>{const{componentCls:St}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${St}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${St}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ue=de=>{const{componentCls:St}=de;return{[`${St}-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"}}}},be=de=>{const{antCls:St,componentCls:Qe,inputPaddingHorizontalBase:ze,iconCls:st}=de;return{[Qe]:Object.assign(Object.assign({},(0,y.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Qe}-customize-input) ${Qe}-selector`]:Object.assign(Object.assign({},lt(de)),Ue(de)),[`${Qe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${St}-typography`]:{display:"inline"}}),[`${Qe}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${Qe}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,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`,[st]:{verticalAlign:"top",transition:`transform ${de.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Qe}-suffix)`]:{pointerEvents:"auto"}},[`${Qe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Qe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Qe}-prefix`]:{flex:"none",marginInlineEnd:de.selectAffixPadding},[`${Qe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:ze,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 ${Qe}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${Qe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Qe}-has-feedback`]:{[`${Qe}-clear`]:{insetInlineEnd:de.calc(ze).add(de.fontSize).add(de.paddingXS).equal()}}}}}},We=de=>{const{componentCls:St}=de;return[{[St]:{[`&${St}-in-form-item`]:{width:"100%"}}},be(de),ct(de),(0,fe.ZP)(de),De(de),{[`${St}-rtl`]:{direction:"rtl"}},(0,ve.c)(de,{borderElCls:`${St}-selector`,focusElCls:`${St}-focused`})]};var Be=(0,ce.I$)("Select",(de,St)=>{let{rootPrefixCls:Qe}=St;const ze=(0,Le.mergeToken)(de,{rootPrefixCls:Qe,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[We(ze),gt(ze)]},Ke,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Mn,Jt,E){"use strict";E.d(Jt,{_z:function(){return Ee},gp:function(){return Le}});var y=E(36237),ve=E(63356),ce=E(51636);const Le=fe=>{const{multipleSelectItemHeight:je,paddingXXS:Ne,lineWidth:ct,INTERNAL_FIXED_ITEM_MARGIN:Ke}=fe,Te=fe.max(fe.calc(Ne).sub(ct).equal(),0),we=fe.max(fe.calc(Te).sub(Ke).equal(),0);return{basePadding:Te,containerPadding:we,itemHeight:(0,y.unit)(je),itemLineHeight:(0,y.unit)(fe.calc(je).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},xe=fe=>{const{multipleSelectItemHeight:je,selectHeight:Ne,lineWidth:ct}=fe;return fe.calc(Ne).sub(je).div(2).sub(ct).equal()},Ee=fe=>{const{componentCls:je,iconCls:Ne,borderRadiusSM:ct,motionDurationSlow:Ke,paddingXS:Te,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:Ie,colorIcon:Pe,colorIconHover:rt,INTERNAL_FIXED_ITEM_MARGIN:Et}=fe;return{[`${je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Et,borderRadius:ct,cursor:"default",transition:`font-size ${Ke}, line-height ${Ke}, height ${Ke}`,marginInlineEnd:fe.calc(Et).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:fe.calc(Te).div(2).equal(),[`${je}-disabled&`]:{color:we,borderColor:Ie,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ve.Ro)()),{display:"inline-flex",alignItems:"center",color:Pe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ne}`]:{verticalAlign:"-0.2em"},"&:hover":{color:rt}})}}}},Ce=(fe,je)=>{const{componentCls:Ne,INTERNAL_FIXED_ITEM_MARGIN:ct}=fe,Ke=`${Ne}-selection-overflow`,Te=fe.multipleSelectItemHeight,we=xe(fe),Ie=je?`${Ne}-${je}`:"",Pe=Le(fe);return{[`${Ne}-multiple${Ie}`]:Object.assign(Object.assign({},Ee(fe)),{[`${Ne}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Pe.basePadding,paddingBlock:Pe.containerPadding,borderRadius:fe.borderRadius,[`${Ne}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(ct)} 0`,lineHeight:(0,y.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${Ne}-selection-item`]:{height:Pe.itemHeight,lineHeight:(0,y.unit)(Pe.itemLineHeight)},[`${Ne}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(Te),marginBlock:ct}},[`${Ne}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Pe.basePadding).equal()},[`${Ke}-item + ${Ke}-item,
${Ne}-prefix + ${Ne}-selection-wrap
`]:{[`${Ne}-selection-search`]:{marginInlineStart:0},[`${Ne}-selection-placeholder`]:{insetInlineStart:0}},[`${Ke}-item-suffix`]:{minHeight:Pe.itemHeight,marginBlock:ct},[`${Ne}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(we).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:fe.fontFamily,lineHeight:(0,y.unit)(Te),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"}},[`${Ne}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Pe.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function ke(fe,je){const{componentCls:Ne}=fe,ct=je?`${Ne}-${je}`:"",Ke={[`${Ne}-multiple${ct}`]:{fontSize:fe.fontSize,[`${Ne}-selector`]:{[`${Ne}-show-search&`]:{cursor:"text"}},[`
&${Ne}-show-arrow ${Ne}-selector,
&${Ne}-allow-clear ${Ne}-selector
`]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Ce(fe,je),Ke]}const De=fe=>{const{componentCls:je}=fe,Ne=(0,ce.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),ct=(0,ce.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[ke(fe),ke(Ne,"sm"),{[`${je}-multiple${je}-sm`]:{[`${je}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${je}-selection-search`]:{marginInlineStart:2}}},ke(ct,"lg")]};Jt.ZP=De},68525:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});var y=E(59301),ve=E(40001),ce=E(19248),Le=E(99267),xe=E(84105),Ee=E(58617),Ce=E(47472);function ke(De){let{suffixIcon:fe,clearIcon:je,menuItemSelectedIcon:Ne,removeIcon:ct,loading:Ke,multiple:Te,hasFeedback:we,prefixCls:Ie,showSuffixIcon:Pe,feedbackIcon:rt,showArrow:Et,componentName:Oe}=De;const Ae=je!=null?je:y.createElement(ce.Z,null),Ve=lt=>fe===null&&!we&&!Et?null:y.createElement(y.Fragment,null,Pe!==!1&&lt,we&&rt);let Ye=null;if(fe!==void 0)Ye=Ve(fe);else if(Ke)Ye=Ve(y.createElement(Ee.Z,{spin:!0}));else{const lt=`${Ie}-suffix`;Ye=Ue=>{let{open:be,showSearch:We}=Ue;return Ve(be&&We?y.createElement(Ce.Z,{className:lt}):y.createElement(xe.Z,{className:lt}))}}let xt=null;Ne!==void 0?xt=Ne:Te?xt=y.createElement(ve.Z,null):xt=null;let gt=null;return ct!==void 0?gt=ct:gt=y.createElement(Le.Z,null),{clearIcon:Ae,suffixIcon:Ye,itemIcon:xt,removeIcon:gt}}},90005:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return y}});function y(ve,ce){return ce!==void 0?ce:ve!==null}},11938:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return Ue}});var y=E(59301),ve=E(40192),ce=E(22703),Le=E(92310),xe=E.n(Le),Ee=E(26112),Ce=E(48755),ke=E(458),fe=be=>{const{value:We,formatter:Be,precision:de,decimalSeparator:St,groupSeparator:Qe="",prefixCls:ze}=be;let st;if(typeof Be=="function")st=Be(We);else{const Se=String(We),ye=Se.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ye||Se==="-")st=Se;else{const vt=ye[1];let Ht=ye[2]||"0",$t=ye[4]||"";Ht=Ht.replace(/\B(?=(\d{3})+(?!\d))/g,Qe),typeof de=="number"&&($t=$t.padEnd(de,"0").slice(0,de>0?de:0)),$t&&($t=`${St}${$t}`),st=[y.createElement("span",{key:"int",className:`${ze}-content-value-int`},vt,Ht),$t&&y.createElement("span",{key:"decimal",className:`${ze}-content-value-decimal`},$t)]}}return y.createElement("span",{className:`${ze}-content-value`},st)},je=E(63356),Ne=E(16931),ct=E(51636);const Ke=be=>{const{componentCls:We,marginXXS:Be,padding:de,colorTextDescription:St,titleFontSize:Qe,colorTextHeading:ze,contentFontSize:st,fontFamily:Se}=be;return{[We]:Object.assign(Object.assign({},(0,je.Wf)(be)),{[`${We}-title`]:{marginBottom:Be,color:St,fontSize:Qe},[`${We}-skeleton`]:{paddingTop:de},[`${We}-content`]:{color:ze,fontSize:st,fontFamily:Se,[`${We}-content-value`]:{display:"inline-block",direction:"ltr"},[`${We}-content-prefix, ${We}-content-suffix`]:{display:"inline-block"},[`${We}-content-prefix`]:{marginInlineEnd:Be},[`${We}-content-suffix`]:{marginInlineStart:Be}}})}},Te=be=>{const{fontSizeHeading3:We,fontSize:Be}=be;return{titleFontSize:Be,contentFontSize:We}};var we=(0,Ne.I$)("Statistic",be=>{const We=(0,ct.mergeToken)(be,{});return[Ke(We)]},Te),Ie=function(be,We){var Be={};for(var de in be)Object.prototype.hasOwnProperty.call(be,de)&&We.indexOf(de)<0&&(Be[de]=be[de]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,de=Object.getOwnPropertySymbols(be);St<de.length;St++)We.indexOf(de[St])<0&&Object.prototype.propertyIsEnumerable.call(be,de[St])&&(Be[de[St]]=be[de[St]]);return Be},rt=be=>{const{prefixCls:We,className:Be,rootClassName:de,style:St,valueStyle:Qe,value:ze=0,title:st,valueRender:Se,prefix:ye,suffix:vt,loading:Ht=!1,formatter:$t,precision:Fe,decimalSeparator:pt=".",groupSeparator:ut=",",onMouseEnter:Yt,onMouseLeave:bt}=be,Ct=Ie(be,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:mt,direction:mn,className:zt,style:ue}=(0,Ce.dj)("statistic"),ie=mt("statistic",We),[re,oe,pe]=we(ie),ae=y.createElement(fe,{decimalSeparator:pt,groupSeparator:ut,prefixCls:ie,formatter:$t,precision:Fe,value:ze}),me=xe()(ie,{[`${ie}-rtl`]:mn==="rtl"},zt,Be,de,oe,pe),Ze=(0,Ee.Z)(Ct,{aria:!0,data:!0});return re(y.createElement("div",Object.assign({},Ze,{className:me,style:Object.assign(Object.assign({},ue),St),onMouseEnter:Yt,onMouseLeave:bt}),st&&y.createElement("div",{className:`${ie}-title`},st),y.createElement(ke.Z,{paragraph:!1,loading:Ht,className:`${ie}-skeleton`},y.createElement("div",{style:Qe,className:`${ie}-content`},ye&&y.createElement("span",{className:`${ie}-content-prefix`},ye),Se?Se(ae):ae,vt&&y.createElement("span",{className:`${ie}-content-suffix`},vt)))))};const Et=[["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 Oe(be,We){let Be=be;const de=/\[[^\]]*]/g,St=(We.match(de)||[]).map(Se=>Se.slice(1,-1)),Qe=We.replace(de,"[]"),ze=Et.reduce((Se,ye)=>{let[vt,Ht]=ye;if(Se.includes(vt)){const $t=Math.floor(Be/Ht);return Be-=$t*Ht,Se.replace(new RegExp(`${vt}+`,"g"),Fe=>{const pt=Fe.length;return $t.toString().padStart(pt,"0")})}return Se},Qe);let st=0;return ze.replace(de,()=>{const Se=St[st];return st+=1,Se})}function Ae(be,We){const{format:Be=""}=We,de=new Date(be).getTime(),St=Date.now(),Qe=Math.max(de-St,0);return Oe(Qe,Be)}var Ve=function(be,We){var Be={};for(var de in be)Object.prototype.hasOwnProperty.call(be,de)&&We.indexOf(de)<0&&(Be[de]=be[de]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,de=Object.getOwnPropertySymbols(be);St<de.length;St++)We.indexOf(de[St])<0&&Object.prototype.propertyIsEnumerable.call(be,de[St])&&(Be[de[St]]=be[de[St]]);return Be};const Ye=1e3/30;function xt(be){return new Date(be).getTime()}const gt=be=>{const{value:We,format:Be="HH:mm:ss",onChange:de,onFinish:St}=be,Qe=Ve(be,["value","format","onChange","onFinish"]),ze=(0,ve.Z)(),st=y.useRef(null),Se=()=>{St==null||St(),st.current&&(clearInterval(st.current),st.current=null)},ye=()=>{const $t=xt(We);$t>=Date.now()&&(st.current=setInterval(()=>{ze(),de==null||de($t-Date.now()),$t<Date.now()&&Se()},Ye))};y.useEffect(()=>(ye(),()=>{st.current&&(clearInterval(st.current),st.current=null)}),[We]);const vt=($t,Fe)=>Ae($t,Object.assign(Object.assign({},Fe),{format:Be})),Ht=$t=>(0,ce.Tm)($t,{title:void 0});return y.createElement(rt,Object.assign({},Qe,{value:We,valueRender:Ht,formatter:vt}))};var lt=y.memo(gt);rt.Countdown=lt;var Ue=rt},58755:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return St}});var y=E(59301),ve=E(58617),ce=E(92310),Le=E.n(ce),xe=E(54476),Ee=E(20068),Ce=E(42978),ke=E(75931),De=E(18929),fe=E(10228),je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ne=y.forwardRef(function(Qe,ze){var st,Se=Qe.prefixCls,ye=Se===void 0?"rc-switch":Se,vt=Qe.className,Ht=Qe.checked,$t=Qe.defaultChecked,Fe=Qe.disabled,pt=Qe.loadingIcon,ut=Qe.checkedChildren,Yt=Qe.unCheckedChildren,bt=Qe.onClick,Ct=Qe.onChange,mt=Qe.onKeyDown,mn=(0,ke.Z)(Qe,je),zt=(0,De.Z)(!1,{value:Ht,defaultValue:$t}),ue=(0,Ce.Z)(zt,2),ie=ue[0],re=ue[1];function oe(Ze,Ot){var at=ie;return Fe||(at=Ze,re(at),Ct==null||Ct(at,Ot)),at}function pe(Ze){Ze.which===fe.Z.LEFT?oe(!1,Ze):Ze.which===fe.Z.RIGHT&&oe(!0,Ze),mt==null||mt(Ze)}function ae(Ze){var Ot=oe(!ie,Ze);bt==null||bt(Ot,Ze)}var me=Le()(ye,vt,(st={},(0,Ee.Z)(st,"".concat(ye,"-checked"),ie),(0,Ee.Z)(st,"".concat(ye,"-disabled"),Fe),st));return y.createElement("button",(0,xe.Z)({},mn,{type:"button",role:"switch","aria-checked":ie,disabled:Fe,className:me,ref:ze,onKeyDown:pe,onClick:ae}),pt,y.createElement("span",{className:"".concat(ye,"-inner")},y.createElement("span",{className:"".concat(ye,"-inner-checked")},ut),y.createElement("span",{className:"".concat(ye,"-inner-unchecked")},Yt)))});Ne.displayName="Switch";var ct=Ne,Ke=E(12919),Te=E(48755),we=E(2171),Ie=E(31756),Pe=E(36237),rt=E(17835),Et=E(63356),Oe=E(16931),Ae=E(51636);const Ve=Qe=>{const{componentCls:ze,trackHeightSM:st,trackPadding:Se,trackMinWidthSM:ye,innerMinMarginSM:vt,innerMaxMarginSM:Ht,handleSizeSM:$t,calc:Fe}=Qe,pt=`${ze}-inner`,ut=(0,Pe.unit)(Fe($t).add(Fe(Se).mul(2)).equal()),Yt=(0,Pe.unit)(Fe(Ht).mul(2).equal());return{[ze]:{[`&${ze}-small`]:{minWidth:ye,height:st,lineHeight:(0,Pe.unit)(st),[`${ze}-inner`]:{paddingInlineStart:Ht,paddingInlineEnd:vt,[`${pt}-checked, ${pt}-unchecked`]:{minHeight:st},[`${pt}-checked`]:{marginInlineStart:`calc(-100% + ${ut} - ${Yt})`,marginInlineEnd:`calc(100% - ${ut} + ${Yt})`},[`${pt}-unchecked`]:{marginTop:Fe(st).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${ze}-handle`]:{width:$t,height:$t},[`${ze}-loading-icon`]:{top:Fe(Fe($t).sub(Qe.switchLoadingIconSize)).div(2).equal(),fontSize:Qe.switchLoadingIconSize},[`&${ze}-checked`]:{[`${ze}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:Ht,[`${pt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${pt}-unchecked`]:{marginInlineStart:`calc(100% - ${ut} + ${Yt})`,marginInlineEnd:`calc(-100% + ${ut} - ${Yt})`}},[`${ze}-handle`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(Fe($t).add(Se).equal())})`}},[`&:not(${ze}-disabled):active`]:{[`&:not(${ze}-checked) ${pt}`]:{[`${pt}-unchecked`]:{marginInlineStart:Fe(Qe.marginXXS).div(2).equal(),marginInlineEnd:Fe(Qe.marginXXS).mul(-1).div(2).equal()}},[`&${ze}-checked ${pt}`]:{[`${pt}-checked`]:{marginInlineStart:Fe(Qe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Fe(Qe.marginXXS).div(2).equal()}}}}}}},Ye=Qe=>{const{componentCls:ze,handleSize:st,calc:Se}=Qe;return{[ze]:{[`${ze}-loading-icon${Qe.iconCls}`]:{position:"relative",top:Se(Se(st).sub(Qe.fontSize)).div(2).equal(),color:Qe.switchLoadingIconColor,verticalAlign:"top"},[`&${ze}-checked ${ze}-loading-icon`]:{color:Qe.switchColor}}}},xt=Qe=>{const{componentCls:ze,trackPadding:st,handleBg:Se,handleShadow:ye,handleSize:vt,calc:Ht}=Qe,$t=`${ze}-handle`;return{[ze]:{[$t]:{position:"absolute",top:st,insetInlineStart:st,width:vt,height:vt,transition:`all ${Qe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Se,borderRadius:Ht(vt).div(2).equal(),boxShadow:ye,transition:`all ${Qe.switchDuration} ease-in-out`,content:'""'}},[`&${ze}-checked ${$t}`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(Ht(vt).add(st).equal())})`},[`&:not(${ze}-disabled):active`]:{[`${$t}::before`]:{insetInlineEnd:Qe.switchHandleActiveInset,insetInlineStart:0},[`&${ze}-checked ${$t}::before`]:{insetInlineEnd:0,insetInlineStart:Qe.switchHandleActiveInset}}}}},gt=Qe=>{const{componentCls:ze,trackHeight:st,trackPadding:Se,innerMinMargin:ye,innerMaxMargin:vt,handleSize:Ht,calc:$t}=Qe,Fe=`${ze}-inner`,pt=(0,Pe.unit)($t(Ht).add($t(Se).mul(2)).equal()),ut=(0,Pe.unit)($t(vt).mul(2).equal());return{[ze]:{[Fe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:vt,paddingInlineEnd:ye,transition:`padding-inline-start ${Qe.switchDuration} ease-in-out, padding-inline-end ${Qe.switchDuration} ease-in-out`,[`${Fe}-checked, ${Fe}-unchecked`]:{display:"block",color:Qe.colorTextLightSolid,fontSize:Qe.fontSizeSM,transition:`margin-inline-start ${Qe.switchDuration} ease-in-out, margin-inline-end ${Qe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:st},[`${Fe}-checked`]:{marginInlineStart:`calc(-100% + ${pt} - ${ut})`,marginInlineEnd:`calc(100% - ${pt} + ${ut})`},[`${Fe}-unchecked`]:{marginTop:$t(st).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${ze}-checked ${Fe}`]:{paddingInlineStart:ye,paddingInlineEnd:vt,[`${Fe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Fe}-unchecked`]:{marginInlineStart:`calc(100% - ${pt} + ${ut})`,marginInlineEnd:`calc(-100% + ${pt} - ${ut})`}},[`&:not(${ze}-disabled):active`]:{[`&:not(${ze}-checked) ${Fe}`]:{[`${Fe}-unchecked`]:{marginInlineStart:$t(Se).mul(2).equal(),marginInlineEnd:$t(Se).mul(-1).mul(2).equal()}},[`&${ze}-checked ${Fe}`]:{[`${Fe}-checked`]:{marginInlineStart:$t(Se).mul(-1).mul(2).equal(),marginInlineEnd:$t(Se).mul(2).equal()}}}}}},lt=Qe=>{const{componentCls:ze,trackHeight:st,trackMinWidth:Se}=Qe;return{[ze]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Et.Wf)(Qe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Se,height:st,lineHeight:(0,Pe.unit)(st),verticalAlign:"middle",background:Qe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Qe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${ze}-disabled)`]:{background:Qe.colorTextTertiary}}),(0,Et.Qy)(Qe)),{[`&${ze}-checked`]:{background:Qe.switchColor,[`&:hover:not(${ze}-disabled)`]:{background:Qe.colorPrimaryHover}},[`&${ze}-loading, &${ze}-disabled`]:{cursor:"not-allowed",opacity:Qe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${ze}-rtl`]:{direction:"rtl"}})}},Ue=Qe=>{const{fontSize:ze,lineHeight:st,controlHeight:Se,colorWhite:ye}=Qe,vt=ze*st,Ht=Se/2,$t=2,Fe=vt-$t*2,pt=Ht-$t*2;return{trackHeight:vt,trackHeightSM:Ht,trackMinWidth:Fe*2+$t*4,trackMinWidthSM:pt*2+$t*2,trackPadding:$t,handleBg:ye,handleSize:Fe,handleSizeSM:pt,handleShadow:`0 2px 4px 0 ${new rt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Fe/2,innerMaxMargin:Fe+$t+$t*2,innerMinMarginSM:pt/2,innerMaxMarginSM:pt+$t+$t*2}};var be=(0,Oe.I$)("Switch",Qe=>{const ze=(0,Ae.mergeToken)(Qe,{switchDuration:Qe.motionDurationMid,switchColor:Qe.colorPrimary,switchDisabledOpacity:Qe.opacityLoading,switchLoadingIconSize:Qe.calc(Qe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Qe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[lt(ze),gt(ze),xt(ze),Ye(ze),Ve(ze)]},Ue),We=function(Qe,ze){var st={};for(var Se in Qe)Object.prototype.hasOwnProperty.call(Qe,Se)&&ze.indexOf(Se)<0&&(st[Se]=Qe[Se]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Se=Object.getOwnPropertySymbols(Qe);ye<Se.length;ye++)ze.indexOf(Se[ye])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Se[ye])&&(st[Se[ye]]=Qe[Se[ye]]);return st};const de=y.forwardRef((Qe,ze)=>{const{prefixCls:st,size:Se,disabled:ye,loading:vt,className:Ht,rootClassName:$t,style:Fe,checked:pt,value:ut,defaultChecked:Yt,defaultValue:bt,onChange:Ct}=Qe,mt=We(Qe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[mn,zt]=(0,De.Z)(!1,{value:pt!=null?pt:ut,defaultValue:Yt!=null?Yt:bt}),{getPrefixCls:ue,direction:ie,switch:re}=y.useContext(Te.E_),oe=y.useContext(we.Z),pe=(ye!=null?ye:oe)||vt,ae=ue("switch",st),me=y.createElement("div",{className:`${ae}-handle`},vt&&y.createElement(ve.Z,{className:`${ae}-loading-icon`})),[Ze,Ot,at]=be(ae),qe=(0,Ie.Z)(Se),yt=Le()(re==null?void 0:re.className,{[`${ae}-small`]:qe==="small",[`${ae}-loading`]:vt,[`${ae}-rtl`]:ie==="rtl"},Ht,$t,Ot,at),Ft=Object.assign(Object.assign({},re==null?void 0:re.style),Fe),jt=function(){zt(arguments.length<=0?void 0:arguments[0]),Ct==null||Ct.apply(void 0,arguments)};return Ze(y.createElement(Ke.Z,{component:"Switch"},y.createElement(ct,Object.assign({},mt,{checked:mn,onChange:jt,prefixCls:ae,className:yt,style:Ft,disabled:pe,ref:ze,loadingIcon:me}))))});de.__ANT_SWITCH=!0;var St=de},70858:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return jl}});var y=E(59301),ve={},ce="rc-table-internal-hook",Le=E(42978),xe=E(6089),Ee=E(34280),Ce=E(13697),ke=E(4676);function De(Re){var Me=y.createContext(void 0),Dt=function(on){var hn=on.value,Tn=on.children,Bn=y.useRef(hn);Bn.current=hn;var $n=y.useState(function(){return{getValue:function(){return Bn.current},listeners:new Set}}),Ln=(0,Le.Z)($n,1),Br=Ln[0];return(0,Ee.Z)(function(){(0,ke.unstable_batchedUpdates)(function(){Br.listeners.forEach(function(lr){lr(hn)})})},[hn]),y.createElement(Me.Provider,{value:Br},Tn)};return{Context:Me,Provider:Dt,defaultValue:Re}}function fe(Re,Me){var Dt=(0,xe.Z)(typeof Me=="function"?Me:function(lr){if(Me===void 0)return lr;if(!Array.isArray(Me))return lr[Me];var nr={};return Me.forEach(function(Xn){nr[Xn]=lr[Xn]}),nr}),Lt=y.useContext(Re==null?void 0:Re.Context),on=Lt||{},hn=on.listeners,Tn=on.getValue,Bn=y.useRef();Bn.current=Dt(Lt?Tn():Re==null?void 0:Re.defaultValue);var $n=y.useState({}),Ln=(0,Le.Z)($n,2),Br=Ln[1];return(0,Ee.Z)(function(){if(!Lt)return;function lr(nr){var Xn=Dt(nr);(0,Ce.Z)(Bn.current,Xn,!0)||Br({})}return hn.add(lr),function(){hn.delete(lr)}},[Lt]),Bn.current}var je=E(54476),Ne=E(8654);function ct(){var Re=y.createContext(null);function Me(){return y.useContext(Re)}function Dt(on,hn){var Tn=(0,Ne.Yr)(on),Bn=function(Ln,Br){var lr=Tn?{ref:Br}:{},nr=y.useRef(0),Xn=y.useRef(Ln),Kn=Me();return Kn!==null?y.createElement(on,(0,je.Z)({},Ln,lr)):((!hn||hn(Xn.current,Ln))&&(nr.current+=1),Xn.current=Ln,y.createElement(Re.Provider,{value:nr.current},y.createElement(on,(0,je.Z)({},Ln,lr))))};return Tn?y.forwardRef(Bn):Bn}function Lt(on,hn){var Tn=(0,Ne.Yr)(on),Bn=function(Ln,Br){var lr=Tn?{ref:Br}:{};return Me(),y.createElement(on,(0,je.Z)({},Ln,lr))};return Tn?y.memo(y.forwardRef(Bn),hn):y.memo(Bn,hn)}return{makeImmutable:Dt,responseImmutable:Lt,useImmutableMark:Me}}var Ke=ct(),Te=Ke.makeImmutable,we=Ke.responseImmutable,Ie=Ke.useImmutableMark,Pe=ct(),rt=Pe.makeImmutable,Et=Pe.responseImmutable,Oe=Pe.useImmutableMark,Ae=De(),Ve=Ae;function Ye(Re,Me){var Dt=React.useRef(0);Dt.current+=1;var Lt=React.useRef(Re),on=[];Object.keys(Re||{}).map(function(Tn){var Bn;(Re==null?void 0:Re[Tn])!==((Bn=Lt.current)===null||Bn===void 0?void 0:Bn[Tn])&&on.push(Tn)}),Lt.current=Re;var hn=React.useRef([]);return on.length&&(hn.current=on),React.useDebugValue(Dt.current),React.useDebugValue(hn.current.join(", ")),Me&&console.log("".concat(Me,":"),Dt.current,hn.current),Dt.current}var xt=null,gt=null,lt=E(76190),Ue=E(33885),be=E(20068),We=E(92310),Be=E.n(We),de=E(80547),St=E(97938),Qe=E(48736),ze=y.createContext({renderWithProps:!1}),st=ze,Se="RC_TABLE_KEY";function ye(Re){return Re==null?[]:Array.isArray(Re)?Re:[Re]}function vt(Re){var Me=[],Dt={};return Re.forEach(function(Lt){for(var on=Lt||{},hn=on.key,Tn=on.dataIndex,Bn=hn||ye(Tn).join("-")||Se;Dt[Bn];)Bn="".concat(Bn,"_next");Dt[Bn]=!0,Me.push(Bn)}),Me}function Ht(Re){return Re!=null}function $t(Re){return typeof Re=="number"&&!Number.isNaN(Re)}function Fe(Re){return Re&&(0,lt.Z)(Re)==="object"&&!Array.isArray(Re)&&!y.isValidElement(Re)}function pt(Re,Me,Dt,Lt,on,hn){var Tn=y.useContext(st),Bn=Oe(),$n=(0,de.Z)(function(){if(Ht(Lt))return[Lt];var Ln=Me==null||Me===""?[]:Array.isArray(Me)?Me:[Me],Br=(0,St.Z)(Re,Ln),lr=Br,nr=void 0;if(on){var Xn=on(Br,Re,Dt);Fe(Xn)?(lr=Xn.children,nr=Xn.props,Tn.renderWithProps=!0):lr=Xn}return[lr,nr]},[Bn,Re,Lt,Me,on,Dt],function(Ln,Br){if(hn){var lr=(0,Le.Z)(Ln,2),nr=lr[1],Xn=(0,Le.Z)(Br,2),Kn=Xn[1];return hn(Kn,nr)}return Tn.renderWithProps?!0:!(0,Ce.Z)(Ln,Br,!0)});return $n}function ut(Re,Me,Dt,Lt){var on=Re+Me-1;return Re<=Lt&&on>=Dt}function Yt(Re,Me){return fe(Ve,function(Dt){var Lt=ut(Re,Me||1,Dt.hoverStartRow,Dt.hoverEndRow);return[Lt,Dt.onHover]})}var bt=E(70425),Ct=function(Me){var Dt=Me.ellipsis,Lt=Me.rowType,on=Me.children,hn,Tn=Dt===!0?{showTitle:!0}:Dt;return Tn&&(Tn.showTitle||Lt==="header")&&(typeof on=="string"||typeof on=="number"?hn=on.toString():y.isValidElement(on)&&typeof on.props.children=="string"&&(hn=on.props.children)),hn};function mt(Re){var Me,Dt,Lt,on,hn,Tn,Bn,$n,Ln=Re.component,Br=Re.children,lr=Re.ellipsis,nr=Re.scope,Xn=Re.prefixCls,Kn=Re.className,ia=Re.align,_r=Re.record,da=Re.render,Ea=Re.dataIndex,Jr=Re.renderIndex,Oa=Re.shouldCellUpdate,La=Re.index,Qa=Re.rowType,Ga=Re.colSpan,eo=Re.rowSpan,Si=Re.fixLeft,gi=Re.fixRight,$i=Re.firstFixLeft,qa=Re.lastFixLeft,ti=Re.firstFixRight,Ra=Re.lastFixRight,Ca=Re.appendNode,Ja=Re.additionalProps,ni=Ja===void 0?{}:Ja,wi=Re.isSticky,Ma="".concat(Xn,"-cell"),lo=fe(Ve,["supportSticky","allColumnsFixedLeft","rowHoverable"]),so=lo.supportSticky,pl=lo.allColumnsFixedLeft,ul=lo.rowHoverable,el=pt(_r,Ea,Jr,Br,da,Oa),ol=(0,Le.Z)(el,2),El=ol[0],mo=ol[1],yo={},ll=typeof Si=="number"&&so,cl=typeof gi=="number"&&so;ll&&(yo.position="sticky",yo.left=Si),cl&&(yo.position="sticky",yo.right=gi);var mi=(Me=(Dt=(Lt=mo==null?void 0:mo.colSpan)!==null&&Lt!==void 0?Lt:ni.colSpan)!==null&&Dt!==void 0?Dt:Ga)!==null&&Me!==void 0?Me:1,qi=(on=(hn=(Tn=mo==null?void 0:mo.rowSpan)!==null&&Tn!==void 0?Tn:ni.rowSpan)!==null&&hn!==void 0?hn:eo)!==null&&on!==void 0?on:1,li=Yt(La,qi),Ua=(0,Le.Z)(li,2),po=Ua[0],To=Ua[1],sl=(0,bt.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,bt.zX)(function(zo){var jo;_r&&To(-1,-1),ni==null||(jo=ni.onMouseLeave)===null||jo===void 0||jo.call(ni,zo)});if(mi===0||qi===0)return null;var hl=(Bn=ni.title)!==null&&Bn!==void 0?Bn:Ct({rowType:Qa,ellipsis:lr,children:El}),Bl=Be()(Ma,Kn,($n={},(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)($n,"".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,be.Z)($n,"".concat(Ma,"-row-hover"),!mo&&po)),ni.className,mo==null?void 0:mo.className),Bi={};ia&&(Bi.textAlign=ia);var Ri=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},mo==null?void 0:mo.style),yo),Bi),ni.style),Do=El;return(0,lt.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,je.Z)({},mo,ni,{className:Bl,style:Ri,title:hl,scope:nr,onMouseEnter:ul?sl:void 0,onMouseLeave:ul?Co:void 0,colSpan:mi!==1?mi:null,rowSpan:qi!==1?qi:null}),Ca,Do)}var mn=y.memo(mt);function zt(Re,Me,Dt,Lt,on){var hn=Dt[Re]||{},Tn=Dt[Me]||{},Bn,$n;hn.fixed==="left"?Bn=Lt.left[on==="rtl"?Me:Re]:Tn.fixed==="right"&&($n=Lt.right[on==="rtl"?Re:Me]);var Ln=!1,Br=!1,lr=!1,nr=!1,Xn=Dt[Me+1],Kn=Dt[Re-1],ia=Xn&&!Xn.fixed||Kn&&!Kn.fixed||Dt.every(function(Oa){return Oa.fixed==="left"});if(on==="rtl"){if(Bn!==void 0){var _r=Kn&&Kn.fixed==="left";nr=!_r&&ia}else if($n!==void 0){var da=Xn&&Xn.fixed==="right";lr=!da&&ia}}else if(Bn!==void 0){var Ea=Xn&&Xn.fixed==="left";Ln=!Ea&&ia}else if($n!==void 0){var Jr=Kn&&Kn.fixed==="right";Br=!Jr&&ia}return{fixLeft:Bn,fixRight:$n,lastFixLeft:Ln,firstFixRight:Br,lastFixRight:lr,firstFixLeft:nr,isSticky:Lt.isSticky}}var ue=y.createContext({}),ie=ue;function re(Re){var Me=Re.className,Dt=Re.index,Lt=Re.children,on=Re.colSpan,hn=on===void 0?1:on,Tn=Re.rowSpan,Bn=Re.align,$n=fe(Ve,["prefixCls","direction"]),Ln=$n.prefixCls,Br=$n.direction,lr=y.useContext(ie),nr=lr.scrollColumnIndex,Xn=lr.stickyOffsets,Kn=lr.flattenColumns,ia=Dt+hn-1,_r=ia+1===nr?hn+1:hn,da=zt(Dt,Dt+_r-1,Kn,Xn,Br);return y.createElement(mn,(0,je.Z)({className:Me,index:Dt,component:"td",prefixCls:Ln,record:null,dataIndex:null,align:Bn,colSpan:_r,rowSpan:Tn,render:function(){return Lt}},da))}var oe=E(75931),pe=["children"];function ae(Re){var Me=Re.children,Dt=(0,oe.Z)(Re,pe);return y.createElement("tr",Dt,Me)}function me(Re){var Me=Re.children;return Me}me.Row=ae,me.Cell=re;var Ze=me;function Ot(Re){var Me=Re.children,Dt=Re.stickyOffsets,Lt=Re.flattenColumns,on=fe(Ve,"prefixCls"),hn=Lt.length-1,Tn=Lt[hn],Bn=y.useMemo(function(){return{stickyOffsets:Dt,flattenColumns:Lt,scrollColumnIndex:Tn!=null&&Tn.scrollbar?hn:null}},[Tn,Lt,hn,Dt]);return y.createElement(ie.Provider,{value:Bn},y.createElement("tfoot",{className:"".concat(on,"-summary")},Me))}var at=Et(Ot),qe=Ze,yt=E(29301),Ft=E(24514),jt=E(75152),Xe=E(26112);function tt(Re,Me,Dt,Lt,on,hn,Tn){Re.push({record:Me,indent:Dt,index:Tn});var Bn=hn(Me),$n=on==null?void 0:on.has(Bn);if(Me&&Array.isArray(Me[Lt])&&$n)for(var Ln=0;Ln<Me[Lt].length;Ln+=1)tt(Re,Me[Lt][Ln],Dt+1,Lt,on,hn,Ln)}function Gt(Re,Me,Dt,Lt){var on=y.useMemo(function(){if(Dt!=null&&Dt.size){for(var hn=[],Tn=0;Tn<(Re==null?void 0:Re.length);Tn+=1){var Bn=Re[Tn];tt(hn,Bn,0,Me,Dt,Lt,Tn)}return hn}return Re==null?void 0:Re.map(function($n,Ln){return{record:$n,indent:0,index:Ln}})},[Re,Me,Dt,Lt]);return on}function un(Re,Me,Dt,Lt){var on=fe(Ve,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),hn=on.flattenColumns,Tn=on.expandableType,Bn=on.expandedKeys,$n=on.childrenColumnName,Ln=on.onTriggerExpand,Br=on.rowExpandable,lr=on.onRow,nr=on.expandRowByClick,Xn=on.rowClassName,Kn=Tn==="nest",ia=Tn==="row"&&(!Br||Br(Re)),_r=ia||Kn,da=Bn&&Bn.has(Me),Ea=$n&&Re&&Re[$n],Jr=(0,bt.zX)(Ln),Oa=lr==null?void 0:lr(Re,Dt),La=Oa==null?void 0:Oa.onClick,Qa=function(gi){nr&&_r&&Ln(Re,gi);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,[gi].concat(qa))},Ga;typeof Xn=="string"?Ga=Xn:typeof Xn=="function"&&(Ga=Xn(Re,Dt,Lt));var eo=vt(hn);return(0,Ue.Z)((0,Ue.Z)({},on),{},{columnsKey:eo,nestExpandable:Kn,expanded:da,hasNestChildren:Ea,record:Re,onTriggerExpand:Jr,rowSupportExpand:ia,expandable:_r,rowProps:(0,Ue.Z)((0,Ue.Z)({},Oa),{},{className:Be()(Ga,Oa==null?void 0:Oa.className),onClick:Qa})})}function wn(Re){var Me=Re.prefixCls,Dt=Re.children,Lt=Re.component,on=Re.cellComponent,hn=Re.className,Tn=Re.expanded,Bn=Re.colSpan,$n=Re.isEmpty,Ln=fe(Ve,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Br=Ln.scrollbarSize,lr=Ln.fixHeader,nr=Ln.fixColumn,Xn=Ln.componentWidth,Kn=Ln.horizonScroll,ia=Dt;return($n?Kn&&Xn:nr)&&(ia=y.createElement("div",{style:{width:Xn-(lr&&!$n?Br:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Me,"-expanded-row-fixed")},ia)),y.createElement(Lt,{className:hn,style:{display:Tn?null:"none"}},y.createElement(mn,{component:on,prefixCls:Me,colSpan:Bn},ia))}var gn=wn;function Rt(Re){var Me=Re.prefixCls,Dt=Re.record,Lt=Re.onExpand,on=Re.expanded,hn=Re.expandable,Tn="".concat(Me,"-row-expand-icon");if(!hn)return y.createElement("span",{className:Be()(Tn,"".concat(Me,"-row-spaced"))});var Bn=function(Ln){Lt(Dt,Ln),Ln.stopPropagation()};return y.createElement("span",{className:Be()(Tn,(0,be.Z)((0,be.Z)({},"".concat(Me,"-row-expanded"),on),"".concat(Me,"-row-collapsed"),!on)),onClick:Bn})}function Ut(Re,Me,Dt){var Lt=[];function on(hn){(hn||[]).forEach(function(Tn,Bn){Lt.push(Me(Tn,Bn)),on(Tn[Dt])})}return on(Re),Lt}function At(Re,Me,Dt,Lt){return typeof Re=="string"?Re:typeof Re=="function"?Re(Me,Dt,Lt):""}function Je(Re,Me,Dt,Lt,on){var hn=Re.record,Tn=Re.prefixCls,Bn=Re.columnsKey,$n=Re.fixedInfoList,Ln=Re.expandIconColumnIndex,Br=Re.nestExpandable,lr=Re.indentSize,nr=Re.expandIcon,Xn=Re.expanded,Kn=Re.hasNestChildren,ia=Re.onTriggerExpand,_r=Bn[Dt],da=$n[Dt],Ea;Dt===(Ln||0)&&Br&&(Ea=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(lr*Lt,"px")},className:"".concat(Tn,"-row-indent indent-level-").concat(Lt)}),nr({prefixCls:Tn,expanded:Xn,expandable:Kn,record:hn,onExpand:ia})));var Jr;return Me.onCell&&(Jr=Me.onCell(hn,on)),{key:_r,fixedInfo:da,appendCellNode:Ea,additionalCellProps:Jr||{}}}function Pt(Re){var Me=Re.className,Dt=Re.style,Lt=Re.record,on=Re.index,hn=Re.renderIndex,Tn=Re.rowKey,Bn=Re.indent,$n=Bn===void 0?0:Bn,Ln=Re.rowComponent,Br=Re.cellComponent,lr=Re.scopeCellComponent,nr=un(Lt,Tn,on,$n),Xn=nr.prefixCls,Kn=nr.flattenColumns,ia=nr.expandedRowClassName,_r=nr.expandedRowRender,da=nr.rowProps,Ea=nr.expanded,Jr=nr.rowSupportExpand,Oa=y.useRef(!1);Oa.current||(Oa.current=Ea);var La=At(ia,Lt,on,$n),Qa=y.createElement(Ln,(0,je.Z)({},da,{"data-row-key":Tn,className:Be()(Me,"".concat(Xn,"-row"),"".concat(Xn,"-row-level-").concat($n),da==null?void 0:da.className,(0,be.Z)({},La,$n>=1)),style:(0,Ue.Z)((0,Ue.Z)({},Dt),da==null?void 0:da.style)}),Kn.map(function(Si,gi){var $i=Si.render,qa=Si.dataIndex,ti=Si.className,Ra=Je(nr,Si,gi,$n,on),Ca=Ra.key,Ja=Ra.fixedInfo,ni=Ra.appendCellNode,wi=Ra.additionalCellProps;return y.createElement(mn,(0,je.Z)({className:ti,ellipsis:Si.ellipsis,align:Si.align,scope:Si.rowScope,component:Si.rowScope?lr:Br,prefixCls:Xn,key:Ca,record:Lt,index:on,renderIndex:hn,dataIndex:qa,render:$i,shouldCellUpdate:Si.shouldCellUpdate},Ja,{appendNode:ni,additionalProps:wi}))})),Ga;if(Jr&&(Oa.current||Ea)){var eo=_r(Lt,on,$n+1,Ea);Ga=y.createElement(gn,{expanded:Ea,className:Be()("".concat(Xn,"-expanded-row"),"".concat(Xn,"-expanded-row-level-").concat($n+1),La),prefixCls:Xn,component:Ln,cellComponent:Br,colSpan:Kn.length,isEmpty:!1},eo)}return y.createElement(y.Fragment,null,Qa,Ga)}var nn=Et(Pt);function pn(Re){var Me=Re.columnKey,Dt=Re.onColumnResize,Lt=y.useRef();return(0,Ee.Z)(function(){Lt.current&&Dt(Me,Lt.current.offsetWidth)},[]),y.createElement(yt.Z,{data:Me},y.createElement("td",{ref:Lt,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var nt=E(29194);function Nt(Re){var Me=Re.prefixCls,Dt=Re.columnsKey,Lt=Re.onColumnResize,on=y.useRef(null);return y.createElement("tr",{"aria-hidden":"true",className:"".concat(Me,"-measure-row"),style:{height:0,fontSize:0},ref:on},y.createElement(yt.Z.Collection,{onBatchResize:function(Tn){(0,nt.Z)(on.current)&&Tn.forEach(function(Bn){var $n=Bn.data,Ln=Bn.size;Lt($n,Ln.offsetWidth)})}},Dt.map(function(hn){return y.createElement(pn,{key:hn,columnKey:hn,onColumnResize:Lt})})))}function qt(Re){var Me=Re.data,Dt=Re.measureColumnWidth,Lt=fe(Ve,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),on=Lt.prefixCls,hn=Lt.getComponent,Tn=Lt.onColumnResize,Bn=Lt.flattenColumns,$n=Lt.getRowKey,Ln=Lt.expandedKeys,Br=Lt.childrenColumnName,lr=Lt.emptyNode,nr=Gt(Me,Br,Ln,$n),Xn=y.useRef({renderWithProps:!1}),Kn=hn(["body","wrapper"],"tbody"),ia=hn(["body","row"],"tr"),_r=hn(["body","cell"],"td"),da=hn(["body","cell"],"th"),Ea;Me.length?Ea=nr.map(function(Oa,La){var Qa=Oa.record,Ga=Oa.indent,eo=Oa.index,Si=$n(Qa,La);return y.createElement(nn,{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(on,"-placeholder"),prefixCls:on,component:ia,cellComponent:_r,colSpan:Bn.length,isEmpty:!0},lr);var Jr=vt(Bn);return y.createElement(st.Provider,{value:Xn.current},y.createElement(Kn,{className:"".concat(on,"-tbody")},Dt&&y.createElement(Nt,{prefixCls:on,columnsKey:Jr,onColumnResize:Tn}),Ea))}var wt=Et(qt),Wt=["expandable"],en="RC_TABLE_INTERNAL_COL_DEFINE";function _n(Re){var Me=Re.expandable,Dt=(0,oe.Z)(Re,Wt),Lt;return"expandable"in Re?Lt=(0,Ue.Z)((0,Ue.Z)({},Dt),Me):Lt=Dt,Lt.showExpandColumn===!1&&(Lt.expandIconColumnIndex=-1),Lt}var Un=["columnType"];function On(Re){for(var Me=Re.colWidths,Dt=Re.columns,Lt=Re.columCount,on=fe(Ve,["tableLayout"]),hn=on.tableLayout,Tn=[],Bn=Lt||Dt.length,$n=!1,Ln=Bn-1;Ln>=0;Ln-=1){var Br=Me[Ln],lr=Dt&&Dt[Ln],nr=void 0,Xn=void 0;if(lr&&(nr=lr[en],hn==="auto"&&(Xn=lr.minWidth)),Br||Xn||nr||$n){var Kn=nr||{},ia=Kn.columnType,_r=(0,oe.Z)(Kn,Un);Tn.unshift(y.createElement("col",(0,je.Z)({key:Ln,style:{width:Br,minWidth:Xn}},_r))),$n=!0}}return y.createElement("colgroup",null,Tn)}var Vn=On,Zt=E(94480),Xt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function an(Re,Me){return(0,y.useMemo)(function(){for(var Dt=[],Lt=0;Lt<Me;Lt+=1){var on=Re[Lt];if(on!==void 0)Dt[Lt]=on;else return null}return Dt},[Re.join("_"),Me])}var xn=y.forwardRef(function(Re,Me){var Dt=Re.className,Lt=Re.noData,on=Re.columns,hn=Re.flattenColumns,Tn=Re.colWidths,Bn=Re.columCount,$n=Re.stickyOffsets,Ln=Re.direction,Br=Re.fixHeader,lr=Re.stickyTopOffset,nr=Re.stickyBottomOffset,Xn=Re.stickyClassName,Kn=Re.onScroll,ia=Re.maxContentScroll,_r=Re.children,da=(0,oe.Z)(Re,Xt),Ea=fe(Ve,["prefixCls","scrollbarSize","isSticky","getComponent"]),Jr=Ea.prefixCls,Oa=Ea.scrollbarSize,La=Ea.isSticky,Qa=Ea.getComponent,Ga=Qa(["header","table"],"table"),eo=La&&!Br?0:Oa,Si=y.useRef(null),gi=y.useCallback(function(wi){(0,Ne.mH)(Me,wi),(0,Ne.mH)(Si,wi)},[]);y.useEffect(function(){var wi;function Ma(lo){var so=lo,pl=so.currentTarget,ul=so.deltaX;ul&&(Kn({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 hn.every(function(wi){return wi.width})},[hn]),qa=hn[hn.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,Zt.Z)(on),[ti]):on},[eo,on]),Ca=(0,y.useMemo)(function(){return eo?[].concat((0,Zt.Z)(hn),[ti]):hn},[eo,hn]),Ja=(0,y.useMemo)(function(){var wi=$n.right,Ma=$n.left;return(0,Ue.Z)((0,Ue.Z)({},$n),{},{left:Ln==="rtl"?[].concat((0,Zt.Z)(Ma.map(function(lo){return lo+eo})),[0]):Ma,right:Ln==="rtl"?wi:[].concat((0,Zt.Z)(wi.map(function(lo){return lo+eo})),[0]),isSticky:La})},[eo,$n,La]),ni=an(Tn,Bn);return y.createElement("div",{style:(0,Ue.Z)({overflow:"hidden"},La?{top:lr,bottom:nr}:{}),ref:gi,className:Be()(Dt,(0,be.Z)({},Xn,!!Xn))},y.createElement(Ga,{style:{tableLayout:"fixed",visibility:Lt||ni?null:"hidden"}},(!Lt||!ia||$i)&&y.createElement(Vn,{colWidths:ni?[].concat((0,Zt.Z)(ni),[eo]):[],columCount:Bn+1,columns:Ca}),_r((0,Ue.Z)((0,Ue.Z)({},da),{},{stickyOffsets:Ja,columns:Ra,flattenColumns:Ca}))))}),ln=y.memo(xn),Pn=function(Me){var Dt=Me.cells,Lt=Me.stickyOffsets,on=Me.flattenColumns,hn=Me.rowComponent,Tn=Me.cellComponent,Bn=Me.onHeaderRow,$n=Me.index,Ln=fe(Ve,["prefixCls","direction"]),Br=Ln.prefixCls,lr=Ln.direction,nr;Bn&&(nr=Bn(Dt.map(function(Kn){return Kn.column}),$n));var Xn=vt(Dt.map(function(Kn){return Kn.column}));return y.createElement(hn,nr,Dt.map(function(Kn,ia){var _r=Kn.column,da=zt(Kn.colStart,Kn.colEnd,on,Lt,lr),Ea;return _r&&_r.onHeaderCell&&(Ea=Kn.column.onHeaderCell(_r)),y.createElement(mn,(0,je.Z)({},Kn,{scope:_r.title?Kn.colSpan>1?"colgroup":"col":null,ellipsis:_r.ellipsis,align:_r.align,component:Tn,prefixCls:Br,key:Xn[ia]},da,{additionalProps:Ea,rowType:"header"}))}))},Sn=Pn;function Rn(Re){var Me=[];function Dt(Tn,Bn){var $n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Me[$n]=Me[$n]||[];var Ln=Bn,Br=Tn.filter(Boolean).map(function(lr){var nr={key:lr.key,className:lr.className||"",children:lr.title,column:lr,colStart:Ln},Xn=1,Kn=lr.children;return Kn&&Kn.length>0&&(Xn=Dt(Kn,Ln,$n+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,Me[$n].push(nr),Ln+=Xn,Xn});return Br}Dt(Re,0);for(var Lt=Me.length,on=function(Bn){Me[Bn].forEach(function($n){!("rowSpan"in $n)&&!$n.hasSubColumns&&($n.rowSpan=Lt-Bn)})},hn=0;hn<Lt;hn+=1)on(hn);return Me}var Er=function(Me){var Dt=Me.stickyOffsets,Lt=Me.columns,on=Me.flattenColumns,hn=Me.onHeaderRow,Tn=fe(Ve,["prefixCls","getComponent"]),Bn=Tn.prefixCls,$n=Tn.getComponent,Ln=y.useMemo(function(){return Rn(Lt)},[Lt]),Br=$n(["header","wrapper"],"thead"),lr=$n(["header","row"],"tr"),nr=$n(["header","cell"],"th");return y.createElement(Br,{className:"".concat(Bn,"-thead")},Ln.map(function(Xn,Kn){var ia=y.createElement(Sn,{key:Kn,flattenColumns:on,cells:Xn,stickyOffsets:Dt,rowComponent:lr,cellComponent:nr,onHeaderRow:hn,index:Kn});return ia}))},Jn=Et(Er),dr=E(11592);function yr(Re){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Me=="number"?Me:Me.endsWith("%")?Re*parseFloat(Me)/100:null}function gr(Re,Me,Dt){return y.useMemo(function(){if(Me&&Me>0){var Lt=0,on=0;Re.forEach(function(nr){var Xn=yr(Me,nr.width);Xn?Lt+=Xn:on+=1});var hn=Math.max(Me,Dt),Tn=Math.max(hn-Lt,on),Bn=on,$n=Tn/on,Ln=0,Br=Re.map(function(nr){var Xn=(0,Ue.Z)({},nr),Kn=yr(Me,Xn.width);if(Kn)Xn.width=Kn;else{var ia=Math.floor($n);Xn.width=Bn===1?Tn:ia,Tn-=ia,Bn-=1}return Ln+=Xn.width,Xn});if(Ln<hn){var lr=hn/Ln;Tn=hn,Br.forEach(function(nr,Xn){var Kn=Math.floor(nr.width*lr);nr.width=Xn===Br.length-1?Tn:Kn,Tn-=Kn})}return[Br,Math.max(Ln,hn)]}return[Re,Me]},[Re,Me,Dt])}var Vr=["children"],Zr=["fixed"];function Dn(Re){return(0,dr.Z)(Re).filter(function(Me){return y.isValidElement(Me)}).map(function(Me){var Dt=Me.key,Lt=Me.props,on=Lt.children,hn=(0,oe.Z)(Lt,Vr),Tn=(0,Ue.Z)({key:Dt},hn);return on&&(Tn.children=Dn(on)),Tn})}function Zn(Re){return Re.filter(function(Me){return Me&&(0,lt.Z)(Me)==="object"&&!Me.hidden}).map(function(Me){var Dt=Me.children;return Dt&&Dt.length>0?(0,Ue.Z)((0,Ue.Z)({},Me),{},{children:Zn(Dt)}):Me})}function fr(Re){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Re.filter(function(Dt){return Dt&&(0,lt.Z)(Dt)==="object"}).reduce(function(Dt,Lt,on){var hn=Lt.fixed,Tn=hn===!0?"left":hn,Bn="".concat(Me,"-").concat(on),$n=Lt.children;return $n&&$n.length>0?[].concat((0,Zt.Z)(Dt),(0,Zt.Z)(fr($n,Bn).map(function(Ln){return(0,Ue.Z)({fixed:Tn},Ln)}))):[].concat((0,Zt.Z)(Dt),[(0,Ue.Z)((0,Ue.Z)({key:Bn},Lt),{},{fixed:Tn})])},[])}function ur(Re){return Re.map(function(Me){var Dt=Me.fixed,Lt=(0,oe.Z)(Me,Zr),on=Dt;return Dt==="left"?on="right":Dt==="right"&&(on="left"),(0,Ue.Z)({fixed:on},Lt)})}function Mt(Re,Me){var Dt=Re.prefixCls,Lt=Re.columns,on=Re.children,hn=Re.expandable,Tn=Re.expandedKeys,Bn=Re.columnTitle,$n=Re.getRowKey,Ln=Re.onTriggerExpand,Br=Re.expandIcon,lr=Re.rowExpandable,nr=Re.expandIconColumnIndex,Xn=Re.direction,Kn=Re.expandRowByClick,ia=Re.columnWidth,_r=Re.fixed,da=Re.scrollWidth,Ea=Re.clientWidth,Jr=y.useMemo(function(){var qa=Lt||Dn(on)||[];return Zn(qa.slice())},[Lt,on]),Oa=y.useMemo(function(){if(hn){var qa=Jr.slice();if(!qa.includes(ve)){var ti=nr||0;ti>=0&&(ti||_r==="left"||!_r)&&qa.splice(ti,0,ve),_r==="right"&&qa.splice(Jr.length,0,ve)}var Ra=qa.indexOf(ve);qa=qa.filter(function(wi,Ma){return wi!==ve||Ma===Ra});var Ca=Jr[Ra],Ja;_r?Ja=_r:Ja=Ca?Ca.fixed:null;var ni=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},en,{className:"".concat(Dt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Bn),"fixed",Ja),"className","".concat(Dt,"-row-expand-icon-cell")),"width",ia),"render",function(Ma,lo,so){var pl=$n(lo,so),ul=Tn.has(pl),el=lr?lr(lo):!0,ol=Br({prefixCls:Dt,expanded:ul,expandable:el,record:lo,onExpand:Ln});return Kn?y.createElement("span",{onClick:function(mo){return mo.stopPropagation()}},ol):ol});return qa.map(function(wi){return wi===ve?ni:wi})}return Jr.filter(function(wi){return wi!==ve})},[hn,Jr,$n,Tn,Br,Xn]),La=y.useMemo(function(){var qa=Oa;return Me&&(qa=Me(qa)),qa.length||(qa=[{render:function(){return null}}]),qa},[Me,Oa,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=gr(Qa,da,Ea),Si=(0,Le.Z)(eo,2),gi=Si[0],$i=Si[1];return[La,gi,$i,Ga]}var Vt=Mt;function ft(Re,Me,Dt){var Lt=_n(Re),on=Lt.expandIcon,hn=Lt.expandedRowKeys,Tn=Lt.defaultExpandedRowKeys,Bn=Lt.defaultExpandAllRows,$n=Lt.expandedRowRender,Ln=Lt.onExpand,Br=Lt.onExpandedRowsChange,lr=Lt.childrenColumnName,nr=on||Rt,Xn=lr||"children",Kn=y.useMemo(function(){return $n?"row":Re.expandable&&Re.internalHooks===ce&&Re.expandable.__PARENT_RENDER_ICON__||Me.some(function(La){return La&&(0,lt.Z)(La)==="object"&&La[Xn]})?"nest":!1},[!!$n,Me]),ia=y.useState(function(){return Tn||(Bn?Ut(Me,Dt,Xn):[])}),_r=(0,Le.Z)(ia,2),da=_r[0],Ea=_r[1],Jr=y.useMemo(function(){return new Set(hn||da||[])},[hn,da]),Oa=y.useCallback(function(La){var Qa=Dt(La,Me.indexOf(La)),Ga,eo=Jr.has(Qa);eo?(Jr.delete(Qa),Ga=(0,Zt.Z)(Jr)):Ga=[].concat((0,Zt.Z)(Jr),[Qa]),Ea(Ga),Ln&&Ln(!eo,La),Br&&Br(Ga)},[Dt,Jr,Me,Ln,Br]);return[Lt,Kn,Jr,nr,Xn,Oa]}function kt(Re,Me,Dt){var Lt=Re.map(function(on,hn){return zt(hn,hn,Re,Me,Dt)});return(0,de.Z)(function(){return Lt},[Lt],function(on,hn){return!(0,Ce.Z)(on,hn)})}function it(Re){var Me=(0,y.useRef)(Re),Dt=(0,y.useState)({}),Lt=(0,Le.Z)(Dt,2),on=Lt[1],hn=(0,y.useRef)(null),Tn=(0,y.useRef)([]);function Bn($n){Tn.current.push($n);var Ln=Promise.resolve();hn.current=Ln,Ln.then(function(){if(hn.current===Ln){var Br=Tn.current,lr=Me.current;Tn.current=[],Br.forEach(function(nr){Me.current=nr(Me.current)}),hn.current=null,lr!==Me.current&&on({})}})}return(0,y.useEffect)(function(){return function(){hn.current=null}},[]),[Me.current,Bn]}function ht(Re){var Me=(0,y.useRef)(Re||null),Dt=(0,y.useRef)();function Lt(){window.clearTimeout(Dt.current)}function on(Tn){Me.current=Tn,Lt(),Dt.current=window.setTimeout(function(){Me.current=null,Dt.current=void 0},100)}function hn(){return Me.current}return(0,y.useEffect)(function(){return Lt},[]),[on,hn]}function cn(){var Re=y.useState(-1),Me=(0,Le.Z)(Re,2),Dt=Me[0],Lt=Me[1],on=y.useState(-1),hn=(0,Le.Z)(on,2),Tn=hn[0],Bn=hn[1],$n=y.useCallback(function(Ln,Br){Lt(Ln),Bn(Br)},[]);return[Dt,Tn,$n]}var ar=E(47273),mr=(0,ar.Z)()?window:null;function It(Re,Me){var Dt=(0,lt.Z)(Re)==="object"?Re:{},Lt=Dt.offsetHeader,on=Lt===void 0?0:Lt,hn=Dt.offsetSummary,Tn=hn===void 0?0:hn,Bn=Dt.offsetScroll,$n=Bn===void 0?0:Bn,Ln=Dt.getContainer,Br=Ln===void 0?function(){return mr}:Ln,lr=Br()||mr,nr=!!Re;return y.useMemo(function(){return{isSticky:nr,stickyClassName:nr?"".concat(Me,"-sticky-holder"):"",offsetHeader:on,offsetSummary:Tn,offsetScroll:$n,container:lr}},[nr,$n,on,Tn,Me,lr])}function _t(Re,Me,Dt){var Lt=(0,y.useMemo)(function(){var on=Me.length,hn=function(Ln,Br,lr){for(var nr=[],Xn=0,Kn=Ln;Kn!==Br;Kn+=lr)nr.push(Xn),Me[Kn].fixed&&(Xn+=Re[Kn]||0);return nr},Tn=hn(0,on,1),Bn=hn(on-1,-1,-1).reverse();return Dt==="rtl"?{left:Bn,right:Tn}:{left:Tn,right:Bn}},[Re,Me,Dt]);return Lt}var Tt=_t;function Kt(Re){var Me=Re.className,Dt=Re.children;return y.createElement("div",{className:Me},Dt)}var Fn=Kt,Hn=E(8224),Gn=E(16089),jn=E(76846);function hr(Re){var Me=(0,jn.bn)(Re),Dt=Me.getBoundingClientRect(),Lt=document.documentElement;return{left:Dt.left+(window.pageXOffset||Lt.scrollLeft)-(Lt.clientLeft||document.body.clientLeft||0),top:Dt.top+(window.pageYOffset||Lt.scrollTop)-(Lt.clientTop||document.body.clientTop||0)}}var Pr=function(Me,Dt){var Lt,on,hn=Me.scrollBodyRef,Tn=Me.onScroll,Bn=Me.offsetScroll,$n=Me.container,Ln=Me.direction,Br=fe(Ve,"prefixCls"),lr=((Lt=hn.current)===null||Lt===void 0?void 0:Lt.scrollWidth)||0,nr=((on=hn.current)===null||on===void 0?void 0:on.clientWidth)||0,Xn=lr&&nr*(nr/lr),Kn=y.useRef(),ia=it({scrollLeft:0,isHiddenScrollBar:!0}),_r=(0,Le.Z)(ia,2),da=_r[0],Ea=_r[1],Jr=y.useRef({delta:0,x:0}),Oa=y.useState(!1),La=(0,Le.Z)(Oa,2),Qa=La[0],Ga=La[1],eo=y.useRef(null);y.useEffect(function(){return function(){Gn.Z.cancel(eo.current)}},[]);var Si=function(){Ga(!1)},gi=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&&(Tn({scrollLeft:Ma/nr*(lr+2)}),Jr.current.x=Ca.pageX)},qa=function(){Gn.Z.cancel(eo.current),eo.current=(0,Gn.Z)(function(){if(hn.current){var Ca=hr(hn.current).top,Ja=Ca+hn.current.offsetHeight,ni=$n===window?document.documentElement.scrollTop+window.innerHeight:hr($n).top+$n.clientHeight;Ja-(0,jt.Z)()<=ni||Ca>=ni-Bn?Ea(function(wi){return(0,Ue.Z)((0,Ue.Z)({},wi),{},{isHiddenScrollBar:!0})}):Ea(function(wi){return(0,Ue.Z)((0,Ue.Z)({},wi),{},{isHiddenScrollBar:!1})})}})},ti=function(Ca){Ea(function(Ja){return(0,Ue.Z)((0,Ue.Z)({},Ja),{},{scrollLeft:Ca/lr*nr||0})})};return y.useImperativeHandle(Dt,function(){return{setScrollLeft:ti,checkScrollBarVisible:qa}}),y.useEffect(function(){var Ra=(0,Hn.Z)(document.body,"mouseup",Si,!1),Ca=(0,Hn.Z)(document.body,"mousemove",$i,!1);return qa(),function(){Ra.remove(),Ca.remove()}},[Xn,Qa]),y.useEffect(function(){if(hn.current){for(var Ra=[],Ca=(0,jn.bn)(hn.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),$n.addEventListener("scroll",qa,!1),function(){Ra.forEach(function(Ja){return Ja.removeEventListener("scroll",qa)}),window.removeEventListener("resize",qa),window.removeEventListener("scroll",qa),$n.removeEventListener("scroll",qa)}}},[$n]),y.useEffect(function(){da.isHiddenScrollBar||Ea(function(Ra){var Ca=hn.current;return Ca?(0,Ue.Z)((0,Ue.Z)({},Ra),{},{scrollLeft:Ca.scrollLeft/Ca.scrollWidth*Ca.clientWidth}):Ra})},[da.isHiddenScrollBar]),lr<=nr||!Xn||da.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,jt.Z)(),width:nr,bottom:Bn},className:"".concat(Br,"-sticky-scroll")},y.createElement("div",{onMouseDown:gi,ref:Kn,className:Be()("".concat(Br,"-sticky-scroll-bar"),(0,be.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(Re){return null}var Cr=Lr;function Rr(Re){return null}var Xr=Rr,oa="rc-table",ta=[],xa={};function Ia(){return"No Data"}function Ur(Re,Me){var Dt=(0,Ue.Z)({rowKey:"key",prefixCls:oa,emptyText:Ia},Re),Lt=Dt.prefixCls,on=Dt.className,hn=Dt.rowClassName,Tn=Dt.style,Bn=Dt.data,$n=Dt.rowKey,Ln=Dt.scroll,Br=Dt.tableLayout,lr=Dt.direction,nr=Dt.title,Xn=Dt.footer,Kn=Dt.summary,ia=Dt.caption,_r=Dt.id,da=Dt.showHeader,Ea=Dt.components,Jr=Dt.emptyText,Oa=Dt.onRow,La=Dt.onHeaderRow,Qa=Dt.onScroll,Ga=Dt.internalHooks,eo=Dt.transformColumns,Si=Dt.internalRefs,gi=Dt.tailor,$i=Dt.getContainerWidth,qa=Dt.sticky,ti=Dt.rowHoverable,Ra=ti===void 0?!0:ti,Ca=Bn||ta,Ja=!!Ca.length,ni=Ga===ce,wi=y.useCallback(function(Fo,Mo){return(0,St.Z)(Ea,Fo)||Mo},[Ea]),Ma=y.useMemo(function(){return typeof $n=="function"?$n:function(Fo){var Mo=Fo&&Fo[$n];return Mo}},[$n]),lo=wi(["body"]),so=cn(),pl=(0,Le.Z)(so,3),ul=pl[0],el=pl[1],ol=pl[2],El=ft(Dt,Ca,Ma),mo=(0,Le.Z)(El,6),yo=mo[0],ll=mo[1],cl=mo[2],mi=mo[3],qi=mo[4],li=mo[5],Ua=Ln==null?void 0:Ln.x,po=y.useState(0),To=(0,Le.Z)(po,2),sl=To[0],Co=To[1],hl=Vt((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Dt),yo),{},{expandable:!!yo.expandedRowRender,columnTitle:yo.columnTitle,expandedKeys:cl,getRowKey:Ma,onTriggerExpand:li,expandIcon:mi,expandIconColumnIndex:yo.expandIconColumnIndex,direction:lr,scrollWidth:ni&&gi&&typeof Ua=="number"?Ua:null,clientWidth:sl}),ni?eo:null),Bl=(0,Le.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(Me,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($t(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,Le.Z)(tl,2),vl=Dl[0],Oo=Dl[1],nl=y.useState(!1),Lo=(0,Le.Z)(nl,2),Kl=Lo[0],gl=Lo[1],ts=y.useState(new Map),os=(0,Le.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=Tt(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=It(qa,Lt),Ns=Os.isSticky,nu=Os.offsetHeader,mu=Os.offsetSummary,Su=Os.offsetScroll,wu=Os.stickyClassName,Zu=Os.container,io=y.useMemo(function(){return Kn==null?void 0:Kn(Ca)},[Kn,Ca]),wo=(Wl||Ns)&&y.isValidElement(io)&&io.type===Ze&&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=ht(null),Gl=(0,Le.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,xe.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&&gi&&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,xe.Z)(function(Fo){Ys(Fo),Qa==null||Qa(Fo)}),Qs=function(){if(al&&Go.current){var Mo;Ys({currentTarget:(0,jn.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,Bn,Bi.length]),y.useEffect(function(){Ls.current=!0},[]);var ju=y.useState(0),tc=(0,Le.Z)(ju,2),Vs=tc[0],Wu=tc[1],zu=y.useState(!0),Hu=(0,Le.Z)(zu,2),hu=Hu[0],sc=Hu[1];(0,Ee.Z)(function(){(!gi||!ni)&&(Go.current instanceof Element?Wu((0,jt.o)(Go.current).width):Wu((0,jt.o)(Ao.current).width)),sc((0,Ft.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(Jn,Fo),wo==="top"&&y.createElement(at,Fo,io))},[wo,io]),vu=y.useCallback(function(Fo){return y.createElement(at,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(wt,{data:Ca,measureColumnWidth:Wl||al||Ns}),Gu=y.createElement(Vn,{colWidths:Ri.map(function(Fo){var Mo=Fo.width;return Mo}),columns:Ri}),Fu=ia!=null?y.createElement("caption",{className:"".concat(Lt,"-caption")},ia):void 0,cc=(0,Xe.Z)(Dt,{data:!0}),Iu=(0,Xe.Z)(Dt,{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,Ue.Z)((0,Ue.Z)({},fl),xl),onScroll:pu,ref:Go,className:Be()("".concat(Lt,"-body"))},y.createElement(Vu,(0,je.Z)({style:(0,Ue.Z)((0,Ue.Z)({},zl),{},{tableLayout:gu})},Iu),Fu,Gu,nc,!wo&&io&&y.createElement(at,{stickyOffsets:Es,flattenColumns:Ri},io)));var au=(0,Ue.Z)((0,Ue.Z)((0,Ue.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(ln,(0,je.Z)({},au,{stickyTopOffset:nu,className:"".concat(Lt,"-header"),ref:Yl}),uc),Js,wo&&wo!=="top"&&y.createElement(ln,(0,je.Z)({},au,{stickyBottomOffset:mu,className:"".concat(Lt,"-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,Ue.Z)((0,Ue.Z)({},fl),xl),className:Be()("".concat(Lt,"-content")),onScroll:Ys,ref:Go},y.createElement(Vu,(0,je.Z)({style:(0,Ue.Z)((0,Ue.Z)({},zl),{},{tableLayout:gu})},Iu),Fu,Gu,da!==!1&&y.createElement(Jn,(0,je.Z)({},yu,Ml)),nc,io&&y.createElement(at,{stickyOffsets:Es,flattenColumns:Ri},io)));var Uu=y.createElement("div",(0,je.Z)({className:Be()(Lt,on,(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},"".concat(Lt,"-rtl"),lr==="rtl"),"".concat(Lt,"-ping-left"),vl),"".concat(Lt,"-ping-right"),Kl),"".concat(Lt,"-layout-fixed"),Br==="fixed"),"".concat(Lt,"-fixed-header"),Wl),"".concat(Lt,"-fixed-column"),ss),"".concat(Lt,"-fixed-column-gapped"),ss&&zo),"".concat(Lt,"-scroll-horizontal"),al),"".concat(Lt,"-has-fix-left"),Ri[0]&&Ri[0].fixed),"".concat(Lt,"-has-fix-right"),Ri[Ri.length-1]&&Ri[Ri.length-1].fixed==="right")),style:Tn,id:_r,ref:Cl},cc),nr&&y.createElement(Fn,{className:"".concat(Lt,"-title")},nr(Ca)),y.createElement("div",{ref:Ao,className:"".concat(Lt,"-container")},Du),Xn&&y.createElement(Fn,{className:"".concat(Lt,"-footer")},Xn(Ca)));al&&(Uu=y.createElement(yt.Z,{onResize:$u},Uu));var Xu=kt(Ri,Es,lr),Pu=y.useMemo(function(){return{scrollX:jo,prefixCls:Lt,getComponent:wi,scrollbarSize:Vs,direction:lr,fixedInfoList:Xu,isSticky:Ns,supportSticky:hu,componentWidth:sl,fixHeader:Wl,fixColumn:ss,horizonScroll:al,tableLayout:gu,rowClassName:hn,expandedRowClassName:yo.expandedRowClassName,expandIcon:mi,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:Oa,getRowKey:Ma,expandedKeys:cl,childrenColumnName:qi,rowHoverable:Ra}},[jo,Lt,wi,Vs,lr,Xu,Ns,hu,sl,Wl,ss,al,gu,hn,yo.expandedRowClassName,mi,ll,yo.expandRowByClick,yo.expandedRowRender,li,yo.expandIconColumnIndex,yo.indentSize,Ku,Bi,Ri,Sl,ul,el,ol,yo.rowExpandable,Oa,Ma,cl,qi,Ra]);return y.createElement(Ve.Provider,{value:Pu},Uu)}var ya=y.forwardRef(Ur);function Xa(Re){return rt(ya,Re)}var Pa=Xa();Pa.EXPAND_COLUMN=ve,Pa.INTERNAL_HOOKS=ce,Pa.Column=Cr,Pa.ColumnGroup=Xr,Pa.Summary=qe;var pa=Pa,kr=E(48911),Za=De(null),Sa=De(null);function la(Re,Me,Dt){var Lt=Me||1;return Dt[Re+Lt]-(Dt[Re]||0)}function Kr(Re){var Me=Re.rowInfo,Dt=Re.column,Lt=Re.colIndex,on=Re.indent,hn=Re.index,Tn=Re.component,Bn=Re.renderIndex,$n=Re.record,Ln=Re.style,Br=Re.className,lr=Re.inverse,nr=Re.getHeight,Xn=Dt.render,Kn=Dt.dataIndex,ia=Dt.className,_r=Dt.width,da=fe(Sa,["columnsOffset"]),Ea=da.columnsOffset,Jr=Je(Me,Dt,Lt,on,hn),Oa=Jr.key,La=Jr.fixedInfo,Qa=Jr.appendCellNode,Ga=Jr.additionalCellProps,eo=Ga.style,Si=Ga.colSpan,gi=Si===void 0?1:Si,$i=Ga.rowSpan,qa=$i===void 0?1:$i,ti=Lt-1,Ra=la(ti,gi,Ea),Ca=gi>1?_r-Ra:0,Ja=(0,Ue.Z)((0,Ue.Z)((0,Ue.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:gi===0||qa===0||qa>1},[qa,gi,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||gi===0)&&(Ma.rowSpan=1,Ma.colSpan=1),y.createElement(mn,(0,je.Z)({className:Be()(ia,Br),ellipsis:Dt.ellipsis,align:Dt.align,scope:Dt.rowScope,component:Tn,prefixCls:Me.prefixCls,key:Oa,record:$n,index:hn,renderIndex:Bn,dataIndex:Kn,render:wi,shouldCellUpdate:Dt.shouldCellUpdate},La,{appendNode:Qa,additionalProps:(0,Ue.Z)((0,Ue.Z)({},Ga),{},{style:Ja},Ma)}))}var Ya=Kr,Mi=["data","index","className","rowKey","style","extra","getHeight"],ji=y.forwardRef(function(Re,Me){var Dt=Re.data,Lt=Re.index,on=Re.className,hn=Re.rowKey,Tn=Re.style,Bn=Re.extra,$n=Re.getHeight,Ln=(0,oe.Z)(Re,Mi),Br=Dt.record,lr=Dt.indent,nr=Dt.index,Xn=fe(Ve,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Kn=Xn.scrollX,ia=Xn.flattenColumns,_r=Xn.prefixCls,da=Xn.fixColumn,Ea=Xn.componentWidth,Jr=fe(Za,["getComponent"]),Oa=Jr.getComponent,La=un(Br,hn,Lt,lr),Qa=Oa(["body","row"],"div"),Ga=Oa(["body","cell"],"div"),eo=La.rowSupportExpand,Si=La.expanded,gi=La.rowProps,$i=La.expandedRowRender,qa=La.expandedRowClassName,ti;if(eo&&Si){var Ra=$i(Br,Lt,lr+1,Si),Ca=At(qa,Br,Lt,lr),Ja={};da&&(Ja={style:(0,be.Z)({},"--virtual-width","".concat(Ea,"px"))});var ni="".concat(_r,"-expanded-row-cell");ti=y.createElement(Qa,{className:Be()("".concat(_r,"-expanded-row"),"".concat(_r,"-expanded-row-level-").concat(lr+1),Ca)},y.createElement(mn,{component:Ga,prefixCls:_r,className:Be()(ni,(0,be.Z)({},"".concat(ni,"-fixed"),da)),additionalProps:Ja},Ra))}var wi=(0,Ue.Z)((0,Ue.Z)({},Tn),{},{width:Kn});Bn&&(wi.position="absolute",wi.pointerEvents="none");var Ma=y.createElement(Qa,(0,je.Z)({},gi,Ln,{"data-row-key":hn,ref:eo?null:Me,className:Be()(on,"".concat(_r,"-row"),gi==null?void 0:gi.className,(0,be.Z)({},"".concat(_r,"-row-extra"),Bn)),style:(0,Ue.Z)((0,Ue.Z)({},wi),gi==null?void 0:gi.style)}),ia.map(function(lo,so){return y.createElement(Ya,{key:so,component:Ga,rowInfo:La,column:lo,colIndex:so,indent:lr,index:Lt,renderIndex:nr,record:Br,inverse:Bn,getHeight:$n})}));return eo?y.createElement("div",{ref:Me},Ma,ti):Ma}),za=Et(ji),Di=za,pi=y.forwardRef(function(Re,Me){var Dt=Re.data,Lt=Re.onScroll,on=fe(Ve,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),hn=on.flattenColumns,Tn=on.onColumnResize,Bn=on.getRowKey,$n=on.expandedKeys,Ln=on.prefixCls,Br=on.childrenColumnName,lr=on.scrollX,nr=on.direction,Xn=fe(Za),Kn=Xn.sticky,ia=Xn.scrollY,_r=Xn.listItemHeight,da=Xn.getComponent,Ea=Xn.onScroll,Jr=y.useRef(),Oa=Gt(Dt,Br,$n,Bn),La=y.useMemo(function(){var ti=0;return hn.map(function(Ra){var Ca=Ra.width,Ja=Ra.key;return ti+=Ca,[Ja,Ca,ti]})},[hn]),Qa=y.useMemo(function(){return La.map(function(ti){return ti[2]})},[La]);y.useEffect(function(){La.forEach(function(ti){var Ra=(0,Le.Z)(ti,2),Ca=Ra[0],Ja=Ra[1];Tn(Ca,Ja)})},[La]),y.useImperativeHandle(Me,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=Oa[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=hn.filter(function(mi){return Ga(mi,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=hn.filter(function(mi){return Ga(mi,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<Oa.length&&!ol(El);El+=1);for(var mo=[],yo=function(qi){var li=Oa[qi];if(!li)return 1;hn.some(function(Ua){return Ga(Ua,qi)>1})&&mo.push(qi)},ll=lo;ll<=el;ll+=1)yo(ll);var cl=mo.map(function(mi){var qi=Oa[mi],li=Bn(qi.record,mi),Ua=function(sl){var Co=mi+sl-1,hl=Bn(Oa[Co].record,Co),Bl=ni(li,hl);return Bl.bottom-Bl.top},po=ni(li);return y.createElement(Di,{key:mi,data:qi,rowKey:li,index:mi,style:{top:-wi+po.top},extra:!0,getHeight:Ua})});return cl},Si=y.useMemo(function(){return{columnsOffset:Qa}},[Qa]),gi="".concat(Ln,"-tbody"),$i=da(["body","wrapper"]),qa={};return Kn&&(qa.position="sticky",qa.bottom=0,(0,lt.Z)(Kn)==="object"&&Kn.offsetScroll&&(qa.bottom=Kn.offsetScroll)),y.createElement(Sa.Provider,{value:Si},y.createElement(kr.Z,{fullHeight:!1,ref:Jr,prefixCls:"".concat(gi,"-virtual"),styles:{horizontalScrollBar:qa},className:gi,height:ia,itemHeight:_r||24,data:Oa,itemKey:function(Ra){return Bn(Ra.record)},component:$i,scrollWidth:lr,direction:nr,onVirtualScroll:function(Ra){var Ca,Ja=Ra.x;Lt({currentTarget:(Ca=Jr.current)===null||Ca===void 0?void 0:Ca.nativeElement,scrollLeft:Ja})},onScroll:Ea,extraRender:eo},function(ti,Ra,Ca){var Ja=Bn(ti.record,Ra);return y.createElement(Di,{data:ti,rowKey:Ja,index:Ra,style:Ca.style})}))}),Wi=Et(pi),Ci=Wi,ei=function(Me,Dt){var Lt=Dt.ref,on=Dt.onScroll;return y.createElement(Ci,{ref:Lt,data:Me,onScroll:on})};function Ar(Re,Me){var Dt=Re.data,Lt=Re.columns,on=Re.scroll,hn=Re.sticky,Tn=Re.prefixCls,Bn=Tn===void 0?oa:Tn,$n=Re.className,Ln=Re.listItemHeight,Br=Re.components,lr=Re.onScroll,nr=on||{},Xn=nr.x,Kn=nr.y;typeof Xn!="number"&&(Xn=1),typeof Kn!="number"&&(Kn=500);var ia=(0,bt.zX)(function(Ea,Jr){return(0,St.Z)(Br,Ea)||Jr}),_r=(0,bt.zX)(lr),da=y.useMemo(function(){return{sticky:hn,scrollY:Kn,listItemHeight:Ln,getComponent:ia,onScroll:_r}},[hn,Kn,Ln,ia,_r]);return y.createElement(Za.Provider,{value:da},y.createElement(pa,(0,je.Z)({},Re,{className:Be()($n,"".concat(Bn,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},on),{},{x:Xn}),components:(0,Ue.Z)((0,Ue.Z)({},Br),{},{body:Dt!=null&&Dt.length?ei:void 0}),columns:Lt,internalHooks:ce,tailor:!0,ref:Me})))}var Qn=y.forwardRef(Ar);function xr(Re){return rt(Qn,Re)}var Sr=xr(),tr=null,sa=Re=>null,Dr=Re=>null,jr=E(84105),Qr=E(82661),_a=E(34643),$a=E(34061),ea=E(18929);function ai(Re){const[Me,Dt]=(0,y.useState)(null);return[(0,y.useCallback)((hn,Tn,Bn)=>{const $n=Me!=null?Me:hn,Ln=Math.min($n||0,hn),Br=Math.max($n||0,hn),lr=Tn.slice(Ln,Br+1).map(Kn=>Re(Kn)),nr=lr.some(Kn=>!Bn.has(Kn)),Xn=[];return lr.forEach(Kn=>{nr?(Bn.has(Kn)||Xn.push(Kn),Bn.add(Kn)):(Bn.delete(Kn),Xn.push(Kn))}),Dt(nr?Br:null),Xn},[Me]),hn=>{Dt(hn)}]}var yi=E(32383),zi=E(62673),Ui=E(75727),Ji=E(47889);const Yi={},co="SELECT_ALL",No="SELECT_INVERT",$o="SELECT_NONE",Wo=[],Da=(Re,Me)=>{let Dt=[];return(Me||[]).forEach(Lt=>{Dt.push(Lt),Lt&&typeof Lt=="object"&&Re in Lt&&(Dt=[].concat((0,Zt.Z)(Dt),(0,Zt.Z)(Da(Re,Lt[Re]))))}),Dt};var ri=(Re,Me)=>{const{preserveSelectedRowKeys:Dt,selectedRowKeys:Lt,defaultSelectedRowKeys:on,getCheckboxProps:hn,onChange:Tn,onSelect:Bn,onSelectAll:$n,onSelectInvert:Ln,onSelectNone:Br,onSelectMultiple:lr,columnWidth:nr,type:Xn,selections:Kn,fixed:ia,renderCell:_r,hideSelectAll:da,checkStrictly:Ea=!0}=Me||{},{prefixCls:Jr,data:Oa,pageData:La,getRecordByKey:Qa,getRowKey:Ga,expandType:eo,childrenColumnName:Si,locale:gi,getPopupContainer:$i}=Re,qa=(0,yi.ln)("Table"),[ti,Ra]=ai(mi=>mi),[Ca,Ja]=(0,ea.Z)(Lt||on||Wo,{value:Lt}),ni=y.useRef(new Map),wi=(0,y.useCallback)(mi=>{if(Dt){const qi=new Map;mi.forEach(li=>{let Ua=Qa(li);!Ua&&ni.current.has(li)&&(Ua=ni.current.get(li)),qi.set(li,Ua)}),ni.current=qi}},[Qa,Dt]);y.useEffect(()=>{wi(Ca)},[Ca]);const Ma=(0,y.useMemo)(()=>Da(Si,La),[Si,La]),{keyEntities:lo}=(0,y.useMemo)(()=>{if(Ea)return{keyEntities:null};let mi=Oa;if(Dt){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)},[]);mi=[].concat((0,Zt.Z)(mi),(0,Zt.Z)(li))}return(0,$a.I8)(mi,{externalGetKey:Ga,childrenPropName:Si})},[Oa,Ga,Ea,Si,Dt,Ma]),so=(0,y.useMemo)(()=>{const mi=new Map;return Ma.forEach((qi,li)=>{const Ua=Ga(qi,li),po=(hn?hn(qi):null)||{};mi.set(Ua,po)}),mi},[Ma,Ga,hn]),pl=(0,y.useCallback)(mi=>{const qi=Ga(mi);let li;return so.has(qi)?li=so.get(Ga(mi)):li=hn?hn(mi):void 0,!!(li!=null&&li.disabled)},[so,Ga]),[ul,el]=(0,y.useMemo)(()=>{if(Ea)return[Ca||[],[]];const{checkedKeys:mi,halfCheckedKeys:qi}=(0,_a.S)(Ca,!0,lo,pl);return[mi||[],qi]},[Ca,Ea,lo,pl]),ol=(0,y.useMemo)(()=>{const mi=Xn==="radio"?ul.slice(0,1):ul;return new Set(mi)},[ul,Xn]),El=(0,y.useMemo)(()=>Xn==="radio"?new Set:new Set(el),[el,Xn]);y.useEffect(()=>{Me||Ja(Wo)},[!!Me]);const mo=(0,y.useCallback)((mi,qi)=>{let li,Ua;wi(mi),Dt?(li=mi,Ua=mi.map(po=>ni.current.get(po))):(li=[],Ua=[],mi.forEach(po=>{const To=Qa(po);To!==void 0&&(li.push(po),Ua.push(To))})),Ja(li),Tn==null||Tn(li,Ua,{type:qi})},[Ja,Qa,Tn,Dt]),yo=(0,y.useCallback)((mi,qi,li,Ua)=>{if(Bn){const po=li.map(To=>Qa(To));Bn(Qa(mi),qi,po,Ua)}mo(li,"single")},[Bn,Qa,mo]),ll=(0,y.useMemo)(()=>!Kn||da?null:(Kn===!0?[co,No,$o]:Kn).map(qi=>qi===co?{key:"all",text:gi.selectionAll,onSelect(){mo(Oa.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:gi.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:gi.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)}})),[Kn,ol,La,Ga,Ln,mo]);return[(0,y.useCallback)(mi=>{var qi;if(!Me)return mi.filter(Ao=>Ao!==Yi);let li=(0,Zt.Z)(mi);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);$n==null||$n(!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,_a.S)([].concat((0,Zt.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,_a.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[en])===null||Xo===void 0?void 0:Xo.columnType)==="EXPAND_COLUMN"})===0){const[Ao,...Xo]=li;li=[Ao,Yi].concat((0,Zt.Z)(Xo))}else li=[Yi].concat((0,Zt.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[en])===null||qi===void 0?void 0:qi.columnType)==="EXPAND_COLUMN"&&zo.fixed===void 0&&(zo.fixed=Ml);const Cl=Be()(`${Jr}-selection-col`,{[`${Jr}-selection-col-with-dropdown`]:Kn&&Xn==="checkbox"}),Yl=()=>Me!=null&&Me.columnTitle?typeof Me.columnTitle=="function"?Me.columnTitle(Bl):Me.columnTitle:hl,Go={fixed:Ml,width:nr,className:`${Jr}-selection-column`,title:Yl(),render:Ri,onCell:Me.onCell,[en]:{className:Cl}};return li.map(Ao=>Ao===Yi?Go:Ao)},[Ga,Ma,Me,ul,ol,El,nr,ll,eo,so,lr,yo,pl]),ol]},So=E(2738);function di(Re,Me){return Re._antProxy=Re._antProxy||{},Object.keys(Me).forEach(Dt=>{if(!(Dt in Re._antProxy)){const Lt=Re[Dt];Re._antProxy[Dt]=Lt,Re[Dt]=Me[Dt]}}),Re}function il(Re,Me){return(0,y.useImperativeHandle)(Re,()=>{const Dt=Me(),{nativeElement:Lt}=Dt;return typeof Proxy!="undefined"?new Proxy(Lt,{get(on,hn){return Dt[hn]?Dt[hn]:Reflect.get(on,hn)}}):di(Lt,Dt)})}var $l=E(83010),Al=E(48755),Vo=E(38406),Yo=E(83397),no=E(31756),Ol=E(13783),Ul=E(85981),Nl=E(31709),Io=E(29787),es=E(57700);function as(Re){return Me=>{const{prefixCls:Dt,onExpand:Lt,record:on,expanded:hn,expandable:Tn}=Me,Bn=`${Dt}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:$n=>{Lt(on,$n),$n.stopPropagation()},className:Be()(Bn,{[`${Bn}-spaced`]:!Tn,[`${Bn}-expanded`]:Tn&&hn,[`${Bn}-collapsed`]:Tn&&!hn}),"aria-label":hn?Re.collapse:Re.expand,"aria-expanded":hn})}}var Ni=as;function Qi(Re){return(Dt,Lt)=>{const on=Dt.querySelector(`.${Re}-container`);let hn=Lt;if(on){const Tn=getComputedStyle(on),Bn=parseInt(Tn.borderLeftWidth,10),$n=parseInt(Tn.borderRightWidth,10);hn=Lt-Bn-$n}return hn}}const Pi=(Re,Me)=>"key"in Re&&Re.key!==void 0&&Re.key!==null?Re.key:Re.dataIndex?Array.isArray(Re.dataIndex)?Re.dataIndex.join("."):Re.dataIndex:Me;function hi(Re,Me){return Me?`${Me}-${Re}`:`${Re}`}const Hi=(Re,Me)=>typeof Re=="function"?Re(Me):Re,uo=(Re,Me)=>{const Dt=Hi(Re,Me);return Object.prototype.toString.call(Dt)==="[object Object]"?"":Dt};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(Me,Dt){return y.createElement(Qo.Z,(0,je.Z)({},Me,{ref:Dt,icon:oo}))},vn=y.forwardRef(Jo),yn=vn,Nn=E(9981),wr=E(40192);function Or(Re){const Me=y.useRef(Re),Dt=(0,wr.Z)();return[()=>Me.current,Lt=>{Me.current=Lt,Dt()}]}var rr=E(7939),ir=E(584),kn=E(93041),er=E(78857),vr=E(18287),na=E(47472),xi=E(49397),fo=Re=>{const{value:Me,filterSearch:Dt,tablePrefixCls:Lt,locale:on,onChange:hn}=Re;return Dt?y.createElement("div",{className:`${Lt}-filter-dropdown-search`},y.createElement(xi.Z,{prefix:y.createElement(na.Z,null),placeholder:on.filterSearchPlaceholder,onChange:hn,value:Me,htmlSize:1,className:`${Lt}-filter-dropdown-search-input`})):null},ro=E(10228);const Ha=Re=>{const{keyCode:Me}=Re;Me===ro.Z.ENTER&&Re.stopPropagation()};var Hr=y.forwardRef((Re,Me)=>y.createElement("div",{className:Re.className,onClick:Dt=>Dt.stopPropagation(),onKeyDown:Ha,ref:Me},Re.children));function _i(Re){let Me=[];return(Re||[]).forEach(Dt=>{let{value:Lt,children:on}=Dt;Me.push(Lt),on&&(Me=[].concat((0,Zt.Z)(Me),(0,Zt.Z)(_i(on))))}),Me}function Li(Re){return Re.some(Me=>{let{children:Dt}=Me;return Dt})}function vo(Re,Me){return typeof Me=="string"||typeof Me=="number"?Me==null?void 0:Me.toString().toLowerCase().includes(Re.trim().toLowerCase()):!1}function _o(Re){let{filters:Me,prefixCls:Dt,filteredKeys:Lt,filterMultiple:on,searchValue:hn,filterSearch:Tn}=Re;return Me.map((Bn,$n)=>{const Ln=String(Bn.value);if(Bn.children)return{key:Ln||$n,label:Bn.text,popupClassName:`${Dt}-dropdown-submenu`,children:_o({filters:Bn.children,prefixCls:Dt,filteredKeys:Lt,filterMultiple:on,searchValue:hn,filterSearch:Tn})};const Br=on?zi.default:Ji.ZP,lr={key:Bn.value!==void 0?Ln:$n,label:y.createElement(y.Fragment,null,y.createElement(Br,{checked:Lt.includes(Ln)}),y.createElement("span",null,Bn.text))};return hn.trim()?typeof Tn=="function"?Tn(hn,Bn)?lr:null:vo(hn,Bn.text)?lr:null:lr})}function Ai(Re){return Re||[]}var bi=Re=>{var Me,Dt,Lt,on;const{tablePrefixCls:hn,prefixCls:Tn,column:Bn,dropdownPrefixCls:$n,columnKey:Ln,filterOnClose:Br,filterMultiple:lr,filterMode:nr="menu",filterSearch:Xn=!1,filterState:Kn,triggerFilter:ia,locale:_r,children:da,getPopupContainer:Ea,rootClassName:Jr}=Re,{filterResetToDefaultFilteredValue:Oa,defaultFilteredValue:La,filterDropdownProps:Qa={},filterDropdownOpen:Ga,filterDropdownVisible:eo,onFilterDropdownVisibleChange:Si,onFilterDropdownOpenChange:gi}=Bn,[$i,qa]=y.useState(!1),ti=!!(Kn&&(!((Me=Kn.filteredKeys)===null||Me===void 0)&&Me.length||Kn.forceFiltered)),Ra=Bi=>{var Ri;qa(Bi),(Ri=Qa.onOpenChange)===null||Ri===void 0||Ri.call(Qa,Bi),gi==null||gi(Bi),Si==null||Si(Bi)},Ca=(on=(Lt=(Dt=Qa.open)!==null&&Dt!==void 0?Dt:Ga)!==null&&Lt!==void 0?Lt:eo)!==null&&on!==void 0?on:$i,Ja=Kn==null?void 0:Kn.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&&(!Kn||!Kn.filteredKeys)||(0,Ce.Z)(Ri,Kn==null?void 0:Kn.filteredKeys,!0))return null;ia({column:Bn,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(Oa?(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())},mi=(Bi,Ri)=>{Ri.source==="trigger"&&(Bi&&Ja!==void 0&&wi(Ai(Ja)),Ra(Bi),!Bi&&!Bn.filterDropdown&&Br&&yo())},qi=Be()({[`${$n}-menu-without-submenu`]:!Li(Bn.filters||[])}),li=Bi=>{if(Bi.target.checked){const Ri=_i(Bn==null?void 0:Bn.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(Al.E_);if(typeof Bn.filterDropdown=="function")To=Bn.filterDropdown({prefixCls:`${$n}-custom`,setSelectedKeys:Bi=>Ma({selectedKeys:Bi}),selectedKeys:ni(),confirm:cl,clearFilters:ll,filters:Bn.filters,visible:Ca,close:()=>{Ra(!1)}});else if(Bn.filterDropdown)To=Bn.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((Bn.filters||[]).length===0)return Ml;if(nr==="tree")return y.createElement(y.Fragment,null,y.createElement(fo,{filterSearch:Xn,value:el,onChange:El,tablePrefixCls:hn,locale:_r}),y.createElement("div",{className:`${hn}-filter-dropdown-tree`},lr?y.createElement(zi.default,{checked:Bi.length===_i(Bn.filters).length,indeterminate:Bi.length>0&&Bi.length<_i(Bn.filters).length,className:`${hn}-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(vr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:lr,checkStrictly:!lr,className:`${$n}-menu`,onCheck:lo,checkedKeys:Bi,selectedKeys:Bi,showIcon:!1,treeData:Ua({filters:Bn.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:Bn.filters||[],filterSearch:Xn,prefixCls:Tn,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:hn,locale:_r}),Yl?Ml:y.createElement(kn.default,{selectable:!0,multiple:lr,prefixCls:`${$n}-menu`,className:qi,onSelect:Ma,onDeselect:Ma,selectedKeys:Bi,getPopupContainer:Ea,openKeys:so,onOpenChange:ul,items:Cl}))},Do=()=>Oa?(0,Ce.Z)((La||[]).map(zo=>String(zo)),Bi,!0):Bi.length===0;To=y.createElement(y.Fragment,null,Ri(),y.createElement("div",{className:`${Tn}-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)))}Bn.filterDropdown&&(To=y.createElement(er.J,{selectable:void 0},To)),To=y.createElement(Hr,{className:`${Tn}-dropdown`},To);const hl=()=>{let Bi;return typeof Bn.filterIcon=="function"?Bi=Bn.filterIcon(ti):Bn.filterIcon?Bi=Bn.filterIcon:Bi=y.createElement(yn,null),y.createElement("span",{role:"button",tabIndex:-1,className:Be()(`${Tn}-trigger`,{active:ti}),onClick:Ri=>{Ri.stopPropagation()}},Bi)},Bl=(0,Nn.Z)({trigger:["click"],placement:sl==="rtl"?"bottomLeft":"bottomRight",children:hl(),getPopupContainer:Ea},Object.assign(Object.assign({},Qa),{rootClassName:Be()(Jr,Qa.rootClassName),open:Ca,onOpenChange:mi,dropdownRender:()=>typeof(Qa==null?void 0:Qa.dropdownRender)=="function"?Qa.dropdownRender(To):To}));return y.createElement("div",{className:`${Tn}-column`},y.createElement("span",{className:`${hn}-column-title`},da),y.createElement(Ui.Z,Object.assign({},Bl)))};const ga=(Re,Me,Dt)=>{let Lt=[];return(Re||[]).forEach((on,hn)=>{var Tn;const Bn=hi(hn,Dt);if(on.filters||"filterDropdown"in on||"onFilter"in on)if("filteredValue"in on){let $n=on.filteredValue;"filterDropdown"in on||($n=(Tn=$n==null?void 0:$n.map(String))!==null&&Tn!==void 0?Tn:$n),Lt.push({column:on,key:Pi(on,Bn),filteredKeys:$n,forceFiltered:on.filtered})}else Lt.push({column:on,key:Pi(on,Bn),filteredKeys:Me&&on.defaultFilteredValue?on.defaultFilteredValue:void 0,forceFiltered:on.filtered});"children"in on&&(Lt=[].concat((0,Zt.Z)(Lt),(0,Zt.Z)(ga(on.children,Me,Bn))))}),Lt};function vi(Re,Me,Dt,Lt,on,hn,Tn,Bn,$n){return Dt.map((Ln,Br)=>{const lr=hi(Br,Bn),{filterOnClose:nr=!0,filterMultiple:Xn=!0,filterMode:Kn,filterSearch:ia}=Ln;let _r=Ln;if(_r.filters||_r.filterDropdown){const da=Pi(_r,lr),Ea=Lt.find(Jr=>{let{key:Oa}=Jr;return da===Oa});_r=Object.assign(Object.assign({},_r),{title:Jr=>y.createElement(bi,{tablePrefixCls:Re,prefixCls:`${Re}-filter`,dropdownPrefixCls:Me,column:_r,columnKey:da,filterState:Ea,filterOnClose:nr,filterMultiple:Xn,filterMode:Kn,filterSearch:ia,triggerFilter:hn,locale:on,getPopupContainer:Tn,rootClassName:$n},Hi(Ln.title,Jr))})}return"children"in _r&&(_r=Object.assign(Object.assign({},_r),{children:vi(Re,Me,_r.children,Lt,on,hn,Tn,lr,$n)})),_r})}const fi=Re=>{const Me={};return Re.forEach(Dt=>{let{key:Lt,filteredKeys:on,column:hn}=Dt;const Tn=Lt,{filters:Bn,filterDropdown:$n}=hn;if($n)Me[Tn]=on||null;else if(Array.isArray(on)){const Ln=_i(Bn);Me[Tn]=Ln.filter(Br=>on.includes(String(Br)))}else Me[Tn]=null}),Me},si=(Re,Me,Dt)=>Me.reduce((on,hn)=>{const{column:{onFilter:Tn,filters:Bn},filteredKeys:$n}=hn;return Tn&&$n&&$n.length?on.map(Ln=>Object.assign({},Ln)).filter(Ln=>$n.some(Br=>{const lr=_i(Bn),nr=lr.findIndex(Kn=>String(Kn)===String(Br)),Xn=nr!==-1?lr[nr]:Br;return Ln[Dt]&&(Ln[Dt]=si(Ln[Dt],Me,Dt)),Tn(Xn,Ln)})):on},Re),Bt=Re=>Re.flatMap(Me=>"children"in Me?[Me].concat((0,Zt.Z)(Bt(Me.children||[]))):[Me]);var rn=Re=>{const{prefixCls:Me,dropdownPrefixCls:Dt,mergedColumns:Lt,onFilterChange:on,getPopupContainer:hn,locale:Tn,rootClassName:Bn}=Re,$n=(0,yi.ln)("Table"),Ln=y.useMemo(()=>Bt(Lt||[]),[Lt]),[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:Oa}=Jr;Oa!==void 0?da=!1:Ea=!1}),da){const Jr=(Ln||[]).map((Oa,La)=>Pi(Oa,hi(La)));return Br.filter(Oa=>{let{key:La}=Oa;return Jr.includes(La)}).map(Oa=>{const La=Ln[Jr.findIndex(Qa=>Qa===Oa.key)];return Object.assign(Object.assign({},Oa),{column:Object.assign(Object.assign({},Oa.column),La),forceFiltered:La.filtered})})}return _r},[Ln,Br]),Xn=y.useMemo(()=>fi(nr),[nr]),Kn=_r=>{const da=nr.filter(Ea=>{let{key:Jr}=Ea;return Jr!==_r.key});da.push(_r),lr(da),on(fi(da),da)};return[_r=>vi(Me,Dt,_r,nr,Tn,Kn,hn,void 0,Bn),nr,Xn]},Va=(Re,Me,Dt)=>{const Lt=y.useRef({});function on(hn){var Tn;if(!Lt.current||Lt.current.data!==Re||Lt.current.childrenColumnName!==Me||Lt.current.getRowKey!==Dt){let $n=function(Ln){Ln.forEach((Br,lr)=>{const nr=Dt(Br,lr);Bn.set(nr,Br),Br&&typeof Br=="object"&&Me in Br&&$n(Br[Me]||[])})};const Bn=new Map;$n(Re),Lt.current={data:Re,childrenColumnName:Me,kvMap:Bn,getRowKey:Dt}}return(Tn=Lt.current.kvMap)===null||Tn===void 0?void 0:Tn.get(hn)}return[on]},zr=function(Re,Me){var Dt={};for(var Lt in Re)Object.prototype.hasOwnProperty.call(Re,Lt)&&Me.indexOf(Lt)<0&&(Dt[Lt]=Re[Lt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Lt=Object.getOwnPropertySymbols(Re);on<Lt.length;on++)Me.indexOf(Lt[on])<0&&Object.prototype.propertyIsEnumerable.call(Re,Lt[on])&&(Dt[Lt[on]]=Re[Lt[on]]);return Dt};const qn=10;function pr(Re,Me){const Dt={current:Re.current,pageSize:Re.pageSize};return Object.keys(Me&&typeof Me=="object"?Me:{}).forEach(on=>{const hn=Re[on];typeof hn!="function"&&(Dt[on]=hn)}),Dt}function Fr(Re,Me,Dt){const Lt=Dt&&typeof Dt=="object"?Dt:{},{total:on=0}=Lt,hn=zr(Lt,["total"]),[Tn,Bn]=(0,y.useState)(()=>({current:"defaultCurrent"in hn?hn.defaultCurrent:1,pageSize:"defaultPageSize"in hn?hn.defaultPageSize:qn})),$n=(0,Nn.Z)(Tn,hn,{total:on>0?on:Re}),Ln=Math.ceil((on||Re)/$n.pageSize);$n.current>Ln&&($n.current=Ln||1);const Br=(nr,Xn)=>{Bn({current:nr!=null?nr:1,pageSize:Xn||$n.pageSize})},lr=(nr,Xn)=>{var Kn;Dt&&((Kn=Dt.onChange)===null||Kn===void 0||Kn.call(Dt,nr,Xn)),Br(nr,Xn),Me(nr,Xn||($n==null?void 0:$n.pageSize))};return Dt===!1?[{},()=>{}]:[Object.assign(Object.assign({},$n),{onChange:lr}),Br]}var aa=Fr,Wr=E(89489),or=E(59477),ha=E(25399);const fa="ascend",Nr="descend",Fa=Re=>typeof Re.sorter=="object"&&typeof Re.sorter.multiple=="number"?Re.sorter.multiple:!1,ja=Re=>typeof Re=="function"?Re:Re&&typeof Re=="object"&&Re.compare?Re.compare:!1,ua=(Re,Me)=>Me?Re[Re.indexOf(Me)+1]:Re[0],cr=(Re,Me,Dt)=>{let Lt=[];const on=(hn,Tn)=>{Lt.push({column:hn,key:Pi(hn,Tn),multiplePriority:Fa(hn),sortOrder:hn.sortOrder})};return(Re||[]).forEach((hn,Tn)=>{const Bn=hi(Tn,Dt);hn.children?("sortOrder"in hn&&on(hn,Bn),Lt=[].concat((0,Zt.Z)(Lt),(0,Zt.Z)(cr(hn.children,Me,Bn)))):hn.sorter&&("sortOrder"in hn?on(hn,Bn):Me&&hn.defaultSortOrder&&Lt.push({column:hn,key:Pi(hn,Bn),multiplePriority:Fa(hn),sortOrder:hn.defaultSortOrder}))}),Lt},Yr=(Re,Me,Dt,Lt,on,hn,Tn,Bn)=>(Me||[]).map((Ln,Br)=>{const lr=hi(Br,Bn);let nr=Ln;if(nr.sorter){const Xn=nr.sortDirections||on,Kn=nr.showSorterTooltip===void 0?Tn:nr.showSorterTooltip,ia=Pi(nr,lr),_r=Dt.find(Si=>{let{key:gi}=Si;return gi===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:Be()(`${Re}-column-sorter-up`,{active:da===fa})}),gi=Xn.includes(Nr)&&y.createElement(Wr.Z,{className:Be()(`${Re}-column-sorter-down`,{active:da===Nr})});Jr=y.createElement("span",{className:Be()(`${Re}-column-sorter`,{[`${Re}-column-sorter-full`]:!!(Si&&gi)})},y.createElement("span",{className:`${Re}-column-sorter-inner`,"aria-hidden":"true"},Si,gi))}const{cancelSort:Oa,triggerAsc:La,triggerDesc:Qa}=hn||{};let Ga=Oa;Ea===Nr?Ga=Qa:Ea===fa&&(Ga=La);const eo=typeof Kn=="object"?Object.assign({title:Ga},Kn):{title:Ga};nr=Object.assign(Object.assign({},nr),{className:Be()(nr.className,{[`${Re}-column-sort`]:da}),title:Si=>{const gi=`${Re}-column-sorters`,$i=y.createElement("span",{className:`${Re}-column-title`},Hi(Ln.title,Si)),qa=y.createElement("div",{className:gi},$i,Jr);return Kn?typeof Kn!="boolean"&&(Kn==null?void 0:Kn.target)==="sorter-icon"?y.createElement("div",{className:`${gi} ${Re}-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 gi;const $i=((gi=Ln.onHeaderCell)===null||gi===void 0?void 0:gi.call(Ln,Si))||{},qa=$i.onClick,ti=$i.onKeyDown;$i.onClick=Ja=>{Lt({column:Ln,key:ia,sortOrder:Ea,multiplePriority:Fa(Ln)}),qa==null||qa(Ja)},$i.onKeyDown=Ja=>{Ja.keyCode===ro.Z.ENTER&&(Lt({column:Ln,key:ia,sortOrder:Ea,multiplePriority:Fa(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=Be()($i.className,`${Re}-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(Re,nr.children,Dt,Lt,on,hn,Tn,lr)})),nr}),ui=Re=>{const{column:Me,sortOrder:Dt}=Re;return{column:Me,order:Dt,field:Me.dataIndex,columnKey:Me.key}},ba=Re=>{const Me=Re.filter(Dt=>{let{sortOrder:Lt}=Dt;return Lt}).map(ui);if(Me.length===0&&Re.length){const Dt=Re.length-1;return Object.assign(Object.assign({},ui(Re[Dt])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Me.length<=1?Me[0]||{}:Me},ca=(Re,Me,Dt)=>{const Lt=Me.slice().sort((Tn,Bn)=>Bn.multiplePriority-Tn.multiplePriority),on=Re.slice(),hn=Lt.filter(Tn=>{let{column:{sorter:Bn},sortOrder:$n}=Tn;return ja(Bn)&&$n});return hn.length?on.sort((Tn,Bn)=>{for(let $n=0;$n<hn.length;$n+=1){const Ln=hn[$n],{column:{sorter:Br},sortOrder:lr}=Ln,nr=ja(Br);if(nr&&lr){const Xn=nr(Tn,Bn,lr);if(Xn!==0)return lr===fa?Xn:-Xn}}return 0}).map(Tn=>{const Bn=Tn[Dt];return Bn?Object.assign(Object.assign({},Tn),{[Dt]:ca(Bn,Me,Dt)}):Tn}):on};var Aa=Re=>{const{prefixCls:Me,mergedColumns:Dt,sortDirections:Lt,tableLocale:on,showSorterTooltip:hn,onSorterChange:Tn}=Re,[Bn,$n]=y.useState(cr(Dt,!0)),Ln=(ia,_r)=>{const da=[];return ia.forEach((Ea,Jr)=>{const Oa=hi(Jr,_r);if(da.push(Pi(Ea,Oa)),Array.isArray(Ea.children)){const La=Ln(Ea.children,Oa);da.push.apply(da,(0,Zt.Z)(La))}}),da},Br=y.useMemo(()=>{let ia=!0;const _r=cr(Dt,!1);if(!_r.length){const Oa=Ln(Dt);return Bn.filter(La=>{let{key:Qa}=La;return Oa.includes(Qa)})}const da=[];function Ea(Oa){ia?da.push(Oa):da.push(Object.assign(Object.assign({},Oa),{sortOrder:null}))}let Jr=null;return _r.forEach(Oa=>{Jr===null?(Ea(Oa),Oa.sortOrder&&(Oa.multiplePriority===!1?ia=!1:Jr=!0)):(Jr&&Oa.multiplePriority!==!1||(ia=!1),Ea(Oa))}),da},[Dt,Bn]),lr=y.useMemo(()=>{var ia,_r;const da=Br.map(Ea=>{let{column:Jr,sortOrder:Oa}=Ea;return{column:Jr,order:Oa}});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,Zt.Z)(Br.filter(da=>{let{key:Ea}=da;return Ea!==ia.key})),[ia]),$n(_r),Tn(ba(_r),_r)};return[ia=>Yr(Me,ia,Br,nr,Lt,on,hn),Br,lr,()=>ba(Br)]};const ao=(Re,Me)=>Re.map(Lt=>{const on=Object.assign({},Lt);return on.title=Hi(Lt.title,Me),"children"in on&&(on.children=ao(on.children,Me)),on});var Ko=Re=>[y.useCallback(Dt=>ao(Dt,Re),[Re])],Oi=Xa((Re,Me)=>{const{_renderTimes:Dt}=Re,{_renderTimes:Lt}=Me;return Dt!==Lt}),Tl=xr((Re,Me)=>{const{_renderTimes:Dt}=Re,{_renderTimes:Lt}=Me;return Dt!==Lt}),Gr=E(36237),bo=E(17835),Po=E(63356),Eo=E(16931),yl=E(51636),Ms=Re=>{const{componentCls:Me,lineWidth:Dt,lineType:Lt,tableBorderColor:on,tableHeaderBg:hn,tablePaddingVertical:Tn,tablePaddingHorizontal:Bn,calc:$n}=Re,Ln=`${(0,Gr.unit)(Dt)} ${Lt} ${on}`,Br=(lr,nr,Xn)=>({[`&${Me}-${lr}`]:{[`> ${Me}-container`]:{[`> ${Me}-content, > ${Me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Me}-expanded-row-fixed`]:{margin:`${(0,Gr.unit)($n(nr).mul(-1).equal())}
${(0,Gr.unit)($n($n(Xn).add(Dt)).mul(-1).equal())}`}}}}}});return{[`${Me}-wrapper`]:{[`${Me}${Me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Me}-title`]:{border:Ln,borderBottom:0},[`> ${Me}-container`]:{borderInlineStart:Ln,borderTop:Ln,[`
> ${Me}-content,
> ${Me}-header,
> ${Me}-body,
> ${Me}-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 ":{[`> ${Me}-cell-fix-right-first::after`]:{borderInlineEnd:Ln}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Me}-expanded-row-fixed`]:{margin:`${(0,Gr.unit)($n(Tn).mul(-1).equal())} ${(0,Gr.unit)($n($n(Bn).add(Dt)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Dt,bottom:0,borderInlineEnd:Ln,content:'""'}}}}}},[`&${Me}-scroll-horizontal`]:{[`> ${Me}-container > ${Me}-body`]:{"> table > tbody":{[`
> tr${Me}-expanded-row,
> tr${Me}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Br("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle)),Br("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall)),{[`> ${Me}-footer`]:{border:Ln,borderTop:0}}),[`${Me}-cell`]:{[`${Me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Gr.unit)(Dt)} 0 ${(0,Gr.unit)(Dt)} ${hn}`}},[`${Me}-bordered ${Me}-cell-scrollbar`]:{borderInlineEnd:Ln}}}},xs=Re=>{const{componentCls:Me}=Re;return{[`${Me}-wrapper`]:{[`${Me}-cell-ellipsis`]:Object.assign(Object.assign({},Po.vS),{wordBreak:"keep-all",[`
&${Me}-cell-fix-left-last,
&${Me}-cell-fix-right-first
`]:{overflow:"visible",[`${Me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},tu=Re=>{const{componentCls:Me}=Re;return{[`${Me}-wrapper`]:{[`${Me}-tbody > tr${Me}-placeholder`]:{textAlign:"center",color:Re.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Re.colorBgContainer}}}}},Ss=Re=>{const{componentCls:Me,antCls:Dt,motionDurationSlow:Lt,lineWidth:on,paddingXS:hn,lineType:Tn,tableBorderColor:Bn,tableExpandIconBg:$n,tableExpandColumnWidth:Ln,borderRadius:Br,tablePaddingVertical:lr,tablePaddingHorizontal:nr,tableExpandedRowBg:Xn,paddingXXS:Kn,expandIconMarginTop:ia,expandIconSize:_r,expandIconHalfInner:da,expandIconScale:Ea,calc:Jr}=Re,Oa=`${(0,Gr.unit)(on)} ${Tn} ${Bn}`,La=Jr(Kn).sub(on).equal();return{[`${Me}-wrapper`]:{[`${Me}-expand-icon-col`]:{width:Ln},[`${Me}-row-expand-icon-cell`]:{textAlign:"center",[`${Me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Me}-row-indent`]:{height:1,float:"left"},[`${Me}-row-expand-icon`]:Object.assign(Object.assign({},(0,Po.Nd)(Re)),{position:"relative",float:"left",width:_r,height:_r,color:"inherit",lineHeight:(0,Gr.unit)(_r),background:$n,border:Oa,borderRadius:Br,transform:`scale(${Ea})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Lt} ease-out`,content:'""'},"&::before":{top:da,insetInlineEnd:La,insetInlineStart:La,height:on},"&::after":{top:La,bottom:La,insetInlineStart:da,width:on,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"}}),[`${Me}-row-indent + ${Me}-row-expand-icon`]:{marginTop:ia,marginInlineEnd:hn},[`tr${Me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Xn}},[`${Dt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Me}-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=Re=>{const{componentCls:Me,antCls:Dt,iconCls:Lt,tableFilterDropdownWidth:on,tableFilterDropdownSearchWidth:hn,paddingXXS:Tn,paddingXS:Bn,colorText:$n,lineWidth:Ln,lineType:Br,tableBorderColor:lr,headerIconColor:nr,fontSizeSM:Xn,tablePaddingHorizontal:Kn,borderRadius:ia,motionDurationSlow:_r,colorTextDescription:da,colorPrimary:Ea,tableHeaderFilterActiveBg:Jr,colorTextDisabled:Oa,tableFilterDropdownBg:La,tableFilterDropdownHeight:Qa,controlItemBgHover:Ga,controlItemBgActive:eo,boxShadowSecondary:Si,filterDropdownMenuBg:gi,calc:$i}=Re,qa=`${Dt}-dropdown`,ti=`${Me}-filter-dropdown`,Ra=`${Dt}-tree`,Ca=`${(0,Gr.unit)(Ln)} ${Br} ${lr}`;return[{[`${Me}-wrapper`]:{[`${Me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:$i(Tn).mul(-1).equal(),marginInline:`${(0,Gr.unit)(Tn)} ${(0,Gr.unit)($i(Kn).div(2).mul(-1).equal())}`,padding:`0 ${(0,Gr.unit)(Tn)}`,color:nr,fontSize:Xn,borderRadius:ia,cursor:"pointer",transition:`all ${_r}`,"&:hover":{color:da,background:Jr},"&.active":{color:Ea}}}},{[`${Dt}-dropdown`]:{[ti]:Object.assign(Object.assign({},(0,Po.Wf)(Re)),{minWidth:on,backgroundColor:La,borderRadius:ia,boxShadow:Si,overflow:"hidden",[`${qa}-menu`]:{maxHeight:Qa,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:gi,"&:empty::after":{display:"block",padding:`${(0,Gr.unit)(Bn)} 0`,color:Oa,fontSize:Xn,textAlign:"center",content:'"Not Found"'}},[`${ti}-tree`]:{paddingBlock:`${(0,Gr.unit)(Bn)} 0`,paddingInline:Bn,[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:Bn,borderBottom:Ca,"&-input":{input:{minWidth:hn},[Lt]:{color:Oa}}},[`${ti}-checkall`]:{width:"100%",marginBottom:Tn,marginInlineStart:Tn},[`${ti}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Gr.unit)($i(Bn).sub(Ln).equal())} ${(0,Gr.unit)(Bn)}`,overflow:"hidden",borderTop:Ca}})}},{[`${Dt}-dropdown ${ti}, ${ti}-submenu`]:{[`${Dt}-checkbox-wrapper + span`]:{paddingInlineStart:Bn,color:$n},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ws=Re=>{const{componentCls:Me,lineWidth:Dt,colorSplit:Lt,motionDurationSlow:on,zIndexTableFixed:hn,tableBg:Tn,zIndexTableSticky:Bn,calc:$n}=Re,Ln=Lt;return{[`${Me}-wrapper`]:{[`
${Me}-cell-fix-left,
${Me}-cell-fix-right
`]:{position:"sticky !important",zIndex:hn,background:Tn},[`
${Me}-cell-fix-left-first::after,
${Me}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:$n(Dt).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${on}`,content:'""',pointerEvents:"none"},[`${Me}-cell-fix-left-all::after`]:{display:"none"},[`
${Me}-cell-fix-right-first::after,
${Me}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:$n(Dt).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${on}`,content:'""',pointerEvents:"none"},[`${Me}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:$n(Bn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${on}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Me}-ping-left`]:{[`&:not(${Me}-has-fix-left) ${Me}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Ln}`},[`
${Me}-cell-fix-left-first::after,
${Me}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Ln}`},[`${Me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Me}-ping-right`]:{[`&:not(${Me}-has-fix-right) ${Me}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Ln}`},[`
${Me}-cell-fix-right-first::after,
${Me}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Ln}`}},[`${Me}-fixed-column-gapped`]:{[`
${Me}-cell-fix-left-first::after,
${Me}-cell-fix-left-last::after,
${Me}-cell-fix-right-first::after,
${Me}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},Rs=Re=>{const{componentCls:Me,antCls:Dt,margin:Lt}=Re;return{[`${Me}-wrapper`]:{[`${Me}-pagination${Dt}-pagination`]:{margin:`${(0,Gr.unit)(Lt)} 0`},[`${Me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Re.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Us=Re=>{const{componentCls:Me,tableRadius:Dt}=Re;return{[`${Me}-wrapper`]:{[Me]:{[`${Me}-title, ${Me}-header`]:{borderRadius:`${(0,Gr.unit)(Dt)} ${(0,Gr.unit)(Dt)} 0 0`},[`${Me}-title + ${Me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Me}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Dt,borderStartEndRadius:Dt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Dt},"> *:last-child":{borderStartEndRadius:Dt}}},"&-footer":{borderRadius:`0 0 ${(0,Gr.unit)(Dt)} ${(0,Gr.unit)(Dt)}`}}}}},Cu=Re=>{const{componentCls:Me}=Re;return{[`${Me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Me}-pagination-left`]:{justifyContent:"flex-end"},[`${Me}-pagination-right`]:{justifyContent:"flex-start"},[`${Me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Me}-row-indent`]:{float:"right"}}}}},As=Re=>{const{componentCls:Me,antCls:Dt,iconCls:Lt,fontSizeIcon:on,padding:hn,paddingXS:Tn,headerIconColor:Bn,headerIconHoverColor:$n,tableSelectionColumnWidth:Ln,tableSelectedRowBg:Br,tableSelectedRowHoverBg:lr,tableRowHoverBg:nr,tablePaddingHorizontal:Xn,calc:Kn}=Re;return{[`${Me}-wrapper`]:{[`${Me}-selection-col`]:{width:Ln,[`&${Me}-selection-col-with-dropdown`]:{width:Kn(Ln).add(on).add(Kn(hn).div(4)).equal()}},[`${Me}-bordered ${Me}-selection-col`]:{width:Kn(Ln).add(Kn(Tn).mul(2)).equal(),[`&${Me}-selection-col-with-dropdown`]:{width:Kn(Ln).add(on).add(Kn(hn).div(4)).add(Kn(Tn).mul(2)).equal()}},[`
table tr th${Me}-selection-column,
table tr td${Me}-selection-column,
${Me}-selection-column
`]:{paddingInlineEnd:Re.paddingXS,paddingInlineStart:Re.paddingXS,textAlign:"center",[`${Dt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Me}-selection-column${Me}-cell-fix-left`]:{zIndex:Kn(Re.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${Me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Gr.unit)(Kn(Xn).div(4).equal()),[Lt]:{color:Bn,fontSize:on,verticalAlign:"baseline","&:hover":{color:$n}}},[`${Me}-tbody`]:{[`${Me}-row`]:{[`&${Me}-row-selected`]:{[`> ${Me}-cell`]:{background:Br,"&-row-hover":{background:lr}}},[`> ${Me}-cell-row-hover`]:{background:nr}}}}}},xu=Re=>{const{componentCls:Me,tableExpandColumnWidth:Dt,calc:Lt}=Re,on=(hn,Tn,Bn,$n)=>({[`${Me}${Me}-${hn}`]:{fontSize:$n,[`
${Me}-title,
${Me}-footer,
${Me}-cell,
${Me}-thead > tr > th,
${Me}-tbody > tr > th,
${Me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,Gr.unit)(Tn)} ${(0,Gr.unit)(Bn)}`},[`${Me}-filter-trigger`]:{marginInlineEnd:(0,Gr.unit)(Lt(Bn).div(2).mul(-1).equal())},[`${Me}-expanded-row-fixed`]:{margin:`${(0,Gr.unit)(Lt(Tn).mul(-1).equal())} ${(0,Gr.unit)(Lt(Bn).mul(-1).equal())}`},[`${Me}-tbody`]:{[`${Me}-wrapper:only-child ${Me}`]:{marginBlock:(0,Gr.unit)(Lt(Tn).mul(-1).equal()),marginInline:`${(0,Gr.unit)(Lt(Dt).sub(Bn).equal())} ${(0,Gr.unit)(Lt(Bn).mul(-1).equal())}`}},[`${Me}-selection-extra`]:{paddingInlineStart:(0,Gr.unit)(Lt(Bn).div(4).equal())}}});return{[`${Me}-wrapper`]:Object.assign(Object.assign({},on("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle,Re.tableFontSizeMiddle)),on("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall,Re.tableFontSizeSmall))}},Lu=Re=>{const{componentCls:Me,marginXXS:Dt,fontSizeIcon:Lt,headerIconColor:on,headerIconHoverColor:hn}=Re;return{[`${Me}-wrapper`]:{[`${Me}-thead th${Me}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Re.motionDurationSlow}, left 0s`,"&:hover":{background:Re.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Re.colorPrimary},[`
&${Me}-cell-fix-left:hover,
&${Me}-cell-fix-right:hover
`]:{background:Re.tableFixedHeaderSortActiveBg}},[`${Me}-thead th${Me}-column-sort`]:{background:Re.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Me}-column-sort`]:{background:Re.tableBodySortBg},[`${Me}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${Me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Me}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Me}-column-sorter`]:{marginInlineStart:Dt,color:on,fontSize:0,transition:`color ${Re.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Lt,"&.active":{color:Re.colorPrimary}},[`${Me}-column-sorter-up + ${Me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Me}-column-sorters:hover ${Me}-column-sorter`]:{color:hn}}}},wa=Re=>{const{componentCls:Me,opacityLoading:Dt,tableScrollThumbBg:Lt,tableScrollThumbBgHover:on,tableScrollThumbSize:hn,tableScrollBg:Tn,zIndexTableSticky:Bn,stickyScrollBarBorderRadius:$n,lineWidth:Ln,lineType:Br,tableBorderColor:lr}=Re,nr=`${(0,Gr.unit)(Ln)} ${Br} ${lr}`;return{[`${Me}-wrapper`]:{[`${Me}-sticky`]:{"&-holder":{position:"sticky",zIndex:Bn,background:Re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Gr.unit)(hn)} !important`,zIndex:Bn,display:"flex",alignItems:"center",background:Tn,borderTop:nr,opacity:Dt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:hn,backgroundColor:Lt,borderRadius:$n,transition:`all ${Re.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:on}}}}}}},Ta=Re=>{const{componentCls:Me,lineWidth:Dt,tableBorderColor:Lt,calc:on}=Re,hn=`${(0,Gr.unit)(Dt)} ${Re.lineType} ${Lt}`;return{[`${Me}-wrapper`]:{[`${Me}-summary`]:{position:"relative",zIndex:Re.zIndexTableFixed,background:Re.tableBg,"> tr":{"> th, > td":{borderBottom:hn}}},[`div${Me}-summary`]:{boxShadow:`0 ${(0,Gr.unit)(on(Dt).mul(-1).equal())} 0 ${Lt}`}}}},Zi=Re=>{const{componentCls:Me,motionDurationMid:Dt,lineWidth:Lt,lineType:on,tableBorderColor:hn,calc:Tn}=Re,Bn=`${(0,Gr.unit)(Lt)} ${on} ${hn}`,$n=`${Me}-expanded-row-cell`;return{[`${Me}-wrapper`]:{[`${Me}-tbody-virtual`]:{[`${Me}-tbody-virtual-holder-inner`]:{[`
& > ${Me}-row,
& > div:not(${Me}-row) > ${Me}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${Me}-cell`]:{borderBottom:Bn,transition:`background ${Dt}`},[`${Me}-expanded-row`]:{[`${$n}${$n}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Gr.unit)(Lt)})`,borderInlineEnd:"none"}}},[`${Me}-bordered`]:{[`${Me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Bn,position:"absolute"},[`${Me}-cell`]:{borderInlineEnd:Bn,[`&${Me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Tn(Lt).mul(-1).equal(),borderInlineStart:Bn}}},[`&${Me}-virtual`]:{[`${Me}-placeholder ${Me}-cell`]:{borderInlineEnd:Bn,borderBottom:Bn}}}}}};const Ki=Re=>{const{componentCls:Me,fontWeightStrong:Dt,tablePaddingVertical:Lt,tablePaddingHorizontal:on,tableExpandColumnWidth:hn,lineWidth:Tn,lineType:Bn,tableBorderColor:$n,tableFontSize:Ln,tableBg:Br,tableRadius:lr,tableHeaderTextColor:nr,motionDurationMid:Xn,tableHeaderBg:Kn,tableHeaderCellSplitColor:ia,tableFooterTextColor:_r,tableFooterBg:da,calc:Ea}=Re,Jr=`${(0,Gr.unit)(Tn)} ${Bn} ${$n}`;return{[`${Me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Po.dF)()),{[Me]:Object.assign(Object.assign({},(0,Po.Wf)(Re)),{fontSize:Ln,background:Br,borderRadius:`${(0,Gr.unit)(lr)} ${(0,Gr.unit)(lr)} 0 0`,scrollbarColor:`${Re.tableScrollThumbBg} ${Re.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Gr.unit)(lr)} ${(0,Gr.unit)(lr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Me}-cell,
${Me}-thead > tr > th,
${Me}-tbody > tr > th,
${Me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,Gr.unit)(Lt)} ${(0,Gr.unit)(on)}`,overflowWrap:"break-word"},[`${Me}-title`]:{padding:`${(0,Gr.unit)(Lt)} ${(0,Gr.unit)(on)}`},[`${Me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:nr,fontWeight:Dt,textAlign:"start",background:Kn,borderBottom:Jr,transition:`background ${Xn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Me}-selection-column):not(${Me}-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}},[`${Me}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Xn}, border-color ${Xn}`,borderBottom:Jr,[`
> ${Me}-wrapper:only-child,
> ${Me}-expanded-row-fixed > ${Me}-wrapper:only-child
`]:{[Me]:{marginBlock:(0,Gr.unit)(Ea(Lt).mul(-1).equal()),marginInline:`${(0,Gr.unit)(Ea(hn).sub(on).equal())}
${(0,Gr.unit)(Ea(on).mul(-1).equal())}`,[`${Me}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:nr,fontWeight:Dt,textAlign:"start",background:Kn,borderBottom:Jr,transition:`background ${Xn} ease`}}},[`${Me}-footer`]:{padding:`${(0,Gr.unit)(Lt)} ${(0,Gr.unit)(on)}`,color:_r,background:da}})}},ko=Re=>{const{colorFillAlter:Me,colorBgContainer:Dt,colorTextHeading:Lt,colorFillSecondary:on,colorFillContent:hn,controlItemBgActive:Tn,controlItemBgActiveHover:Bn,padding:$n,paddingSM:Ln,paddingXS:Br,colorBorderSecondary:lr,borderRadiusLG:nr,controlHeight:Xn,colorTextPlaceholder:Kn,fontSize:ia,fontSizeSM:_r,lineHeight:da,lineWidth:Ea,colorIcon:Jr,colorIconHover:Oa,opacityLoading:La,controlInteractiveSize:Qa}=Re,Ga=new bo.FastColor(on).onBackground(Dt).toHexString(),eo=new bo.FastColor(hn).onBackground(Dt).toHexString(),Si=new bo.FastColor(Me).onBackground(Dt).toHexString(),gi=new bo.FastColor(Jr),$i=new bo.FastColor(Oa),qa=Qa/2-Ea,ti=qa*2+Ea*3;return{headerBg:Si,headerColor:Lt,headerSortActiveBg:Ga,headerSortHoverBg:eo,bodySortBg:Si,rowHoverBg:Si,rowSelectedBg:Tn,rowSelectedHoverBg:Bn,rowExpandedBg:Me,cellPaddingBlock:$n,cellPaddingInline:$n,cellPaddingBlockMD:Ln,cellPaddingInlineMD:Br,cellPaddingBlockSM:Br,cellPaddingInlineSM:Br,borderColor:lr,headerBorderRadius:nr,footerBg:Si,footerColor:Lt,cellFontSize:ia,cellFontSizeMD:ia,cellFontSizeSM:ia,headerSplitColor:lr,fixedHeaderSortActiveBg:Ga,headerFilterHoverBg:hn,filterDropdownMenuBg:Dt,filterDropdownBg:Dt,expandIconBg:Dt,selectionColumnWidth:Xn,stickyScrollBarBg:Kn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(ia*da-Ea*3)/2-Math.ceil((_r*1.4-Ea*3)/2),headerIconColor:gi.clone().setA(gi.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",Re=>{const{colorTextHeading:Me,colorSplit:Dt,colorBgContainer:Lt,controlInteractiveSize:on,headerBg:hn,headerColor:Tn,headerSortActiveBg:Bn,headerSortHoverBg:$n,bodySortBg:Ln,rowHoverBg:Br,rowSelectedBg:lr,rowSelectedHoverBg:nr,rowExpandedBg:Xn,cellPaddingBlock:Kn,cellPaddingInline:ia,cellPaddingBlockMD:_r,cellPaddingInlineMD:da,cellPaddingBlockSM:Ea,cellPaddingInlineSM:Jr,borderColor:Oa,footerBg:La,footerColor:Qa,headerBorderRadius:Ga,cellFontSize:eo,cellFontSizeMD:Si,cellFontSizeSM:gi,headerSplitColor:$i,fixedHeaderSortActiveBg:qa,headerFilterHoverBg:ti,filterDropdownBg:Ra,expandIconBg:Ca,selectionColumnWidth:Ja,stickyScrollBarBg:ni,calc:wi}=Re,Ma=(0,yl.mergeToken)(Re,{tableFontSize:eo,tableBg:Lt,tableRadius:Ga,tablePaddingVertical:Kn,tablePaddingHorizontal:ia,tablePaddingVerticalMiddle:_r,tablePaddingHorizontalMiddle:da,tablePaddingVerticalSmall:Ea,tablePaddingHorizontalSmall:Jr,tableBorderColor:Oa,tableHeaderTextColor:Tn,tableHeaderBg:hn,tableFooterTextColor:Qa,tableFooterBg:La,tableHeaderCellSplitColor:$i,tableHeaderSortBg:Bn,tableHeaderSortHoverBg:$n,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:gi,tableSelectionColumnWidth:Ja,tableExpandIconBg:Ca,tableExpandColumnWidth:wi(on).add(wi(Re.padding).mul(2)).equal(),tableExpandedRowBg:Xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ni,tableScrollThumbBgHover:Me,tableScrollBg:Dt});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),wa(Ma),xs(Ma),xu(Ma),Cu(Ma),Zi(Ma)]},ko,{unitless:{expandIconScale:!0}});const Ro=[],ys=(Re,Me)=>{var Dt,Lt;const{prefixCls:on,className:hn,rootClassName:Tn,style:Bn,size:$n,bordered:Ln,dropdownPrefixCls:Br,dataSource:lr,pagination:nr,rowSelection:Xn,rowKey:Kn="key",rowClassName:ia,columns:_r,children:da,childrenColumnName:Ea,onChange:Jr,getPopupContainer:Oa,loading:La,expandIcon:Qa,expandable:Ga,expandedRowRender:eo,expandIconColumnIndex:Si,indentSize:gi,scroll:$i,sortDirections:qa,locale:ti,showSorterTooltip:Ra={target:"full-header"},virtual:Ca}=Re,Ja=(0,yi.ln)("Table"),ni=y.useMemo(()=>_r||Dn(da),[_r,da]),wi=y.useMemo(()=>ni.some(io=>io.responsive),[ni]),Ma=(0,Ol.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)(Re,["className","style","columns"]),{locale:pl=Ul.Z,direction:ul,table:el,renderEmpty:ol,getPrefixCls:El,getPopupContainer:mo}=y.useContext(Al.E_),yo=(0,no.Z)($n),ll=Object.assign(Object.assign({},pl.Table),ti),cl=lr||Ro,mi=El("table",on),qi=El("dropdown",Br),[,li]=(0,es.ZP)(),Ua=(0,Yo.Z)(mi),[po,To,sl]=dl(mi,Ua),Co=Object.assign(Object.assign({childrenColumnName:Ea,expandIconColumnIndex:Si},Ga),{expandIcon:(Dt=Ga==null?void 0:Ga.expandIcon)!==null&&Dt!==void 0?Dt:(Lt=el==null?void 0:el.expandable)===null||Lt===void 0?void 0:Lt.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(mi),Do=y.useRef(null),zo=y.useRef(null);il(Me,()=>Object.assign(Object.assign({},zo.current),{nativeElement:Do.current}));const jo=y.useMemo(()=>typeof Kn=="function"?Kn:io=>io==null?void 0:io[Kn],[Kn]),[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]=Aa({prefixCls:mi,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:mi,locale:ll,dropdownPrefixCls:qi,mergedColumns:lo,onFilterChange:Oo,getPopupContainer:Oa||mo,rootClassName:Be()(Tn,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:mi,data:gl,pageData:ls,getRowKey:jo,getRecordByKey:Ml,expandType:Bl,childrenColumnName:hl,locale:ll,getPopupContainer:Oa||mo},Xn),Wl=(io,wo,fl)=>{let xl;return typeof ia=="function"?xl=Be()(ia(io,wo,fl)):xl=Be()(ia),Be()({[`${mi}-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 gi=="number"?gi: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(Nl.Z,Object.assign({},rl,{className:Be()(`${mi}-pagination ${mi}-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=Be()(sl,Ua,`${mi}-wrapper`,el==null?void 0:el.className,{[`${mi}-wrapper-rtl`]:ul==="rtl"},hn,Tn,To),nu=Object.assign(Object.assign({},el==null?void 0:el.style),Bn),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?Tl: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:mi,className:Be()({[`${mi}-middle`]:yo==="middle",[`${mi}-small`]:yo==="small",[`${mi}-bordered`]:Ln,[`${mi}-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 ci=(Re,Me)=>{const Dt=y.useRef(0);return Dt.current+=1,y.createElement(Xs,Object.assign({},Re,{ref:Me,_renderTimes:Dt.current}))},bl=y.forwardRef(ci);bl.SELECTION_COLUMN=Yi,bl.EXPAND_COLUMN=ve,bl.SELECTION_ALL=co,bl.SELECTION_INVERT=No,bl.SELECTION_NONE=$o,bl.Column=sa,bl.ColumnGroup=Dr,bl.Summary=qe;var is=bl,jl=is},96599:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return Be}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(2738),xe=E(29509),Ee=E(78776),Ce=E(22703),ke=E(12919),De=E(48755),fe=E(36237),je=E(17835),Ne=E(63356),ct=E(51636),Ke=E(16931);const Te=de=>{const{paddingXXS:St,lineWidth:Qe,tagPaddingHorizontal:ze,componentCls:st,calc:Se}=de,ye=Se(ze).sub(Qe).equal(),vt=Se(St).sub(Qe).equal();return{[st]:Object.assign(Object.assign({},(0,Ne.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",[`&${st}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:de.defaultColor},[`${st}-close-icon`]:{marginInlineStart:vt,fontSize:de.tagIconSize,color:de.colorTextDescription,cursor:"pointer",transition:`all ${de.motionDurationMid}`,"&:hover":{color:de.colorTextHeading}},[`&${st}-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(${st}-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}}),[`${st}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},we=de=>{const{lineWidth:St,fontSizeIcon:Qe,calc:ze}=de,st=de.fontSizeSM;return(0,ct.mergeToken)(de,{tagFontSize:st,tagLineHeight:(0,fe.unit)(ze(de.lineHeightSM).mul(st).equal()),tagIconSize:ze(Qe).sub(ze(St).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},Ie=de=>({defaultBg:new je.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var Pe=(0,Ke.I$)("Tag",de=>{const St=we(de);return Te(St)},Ie),rt=function(de,St){var Qe={};for(var ze in de)Object.prototype.hasOwnProperty.call(de,ze)&&St.indexOf(ze)<0&&(Qe[ze]=de[ze]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,ze=Object.getOwnPropertySymbols(de);st<ze.length;st++)St.indexOf(ze[st])<0&&Object.prototype.propertyIsEnumerable.call(de,ze[st])&&(Qe[ze[st]]=de[ze[st]]);return Qe},Oe=y.forwardRef((de,St)=>{const{prefixCls:Qe,style:ze,className:st,checked:Se,onChange:ye,onClick:vt}=de,Ht=rt(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:$t,tag:Fe}=y.useContext(De.E_),pt=mn=>{ye==null||ye(!Se),vt==null||vt(mn)},ut=$t("tag",Qe),[Yt,bt,Ct]=Pe(ut),mt=ce()(ut,`${ut}-checkable`,{[`${ut}-checkable-checked`]:Se},Fe==null?void 0:Fe.className,st,bt,Ct);return Yt(y.createElement("span",Object.assign({},Ht,{ref:St,style:Object.assign(Object.assign({},ze),Fe==null?void 0:Fe.style),className:mt,onClick:pt})))}),Ae=E(93427);const Ve=de=>(0,Ae.Z)(de,(St,Qe)=>{let{textColor:ze,lightBorderColor:st,lightColor:Se,darkColor:ye}=Qe;return{[`${de.componentCls}${de.componentCls}-${St}`]:{color:ze,background:Se,borderColor:st,"&-inverse":{color:de.colorTextLightSolid,background:ye,borderColor:ye},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ye=(0,Ke.bk)(["Tag","preset"],de=>{const St=we(de);return Ve(St)},Ie);function xt(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const gt=(de,St,Qe)=>{const ze=xt(Qe);return{[`${de.componentCls}${de.componentCls}-${St}`]:{color:de[`color${Qe}`],background:de[`color${ze}Bg`],borderColor:de[`color${ze}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var lt=(0,Ke.bk)(["Tag","status"],de=>{const St=we(de);return[gt(St,"success","Success"),gt(St,"processing","Info"),gt(St,"error","Error"),gt(St,"warning","Warning")]},Ie),Ue=function(de,St){var Qe={};for(var ze in de)Object.prototype.hasOwnProperty.call(de,ze)&&St.indexOf(ze)<0&&(Qe[ze]=de[ze]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,ze=Object.getOwnPropertySymbols(de);st<ze.length;st++)St.indexOf(ze[st])<0&&Object.prototype.propertyIsEnumerable.call(de,ze[st])&&(Qe[ze[st]]=de[ze[st]]);return Qe};const We=y.forwardRef((de,St)=>{const{prefixCls:Qe,className:ze,rootClassName:st,style:Se,children:ye,icon:vt,color:Ht,onClose:$t,bordered:Fe=!0,visible:pt}=de,ut=Ue(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Yt,direction:bt,tag:Ct}=y.useContext(De.E_),[mt,mn]=y.useState(!0),zt=(0,Le.Z)(ut,["closeIcon","closable"]);y.useEffect(()=>{pt!==void 0&&mn(pt)},[pt]);const ue=(0,xe.o2)(Ht),ie=(0,xe.yT)(Ht),re=ue||ie,oe=Object.assign(Object.assign({backgroundColor:Ht&&!re?Ht:void 0},Ct==null?void 0:Ct.style),Se),pe=Yt("tag",Qe),[ae,me,Ze]=Pe(pe),Ot=ce()(pe,Ct==null?void 0:Ct.className,{[`${pe}-${Ht}`]:re,[`${pe}-has-color`]:Ht&&!re,[`${pe}-hidden`]:!mt,[`${pe}-rtl`]:bt==="rtl",[`${pe}-borderless`]:!Fe},ze,st,me,Ze),at=tt=>{tt.stopPropagation(),$t==null||$t(tt),!tt.defaultPrevented&&mn(!1)},[,qe]=(0,Ee.Z)((0,Ee.w)(de),(0,Ee.w)(Ct),{closable:!1,closeIconRender:tt=>{const Gt=y.createElement("span",{className:`${pe}-close-icon`,onClick:at},tt);return(0,Ce.wm)(tt,Gt,un=>({onClick:wn=>{var gn;(gn=un==null?void 0:un.onClick)===null||gn===void 0||gn.call(un,wn),at(wn)},className:ce()(un==null?void 0:un.className,`${pe}-close-icon`)}))}}),yt=typeof ut.onClick=="function"||ye&&ye.type==="a",Ft=vt||null,jt=Ft?y.createElement(y.Fragment,null,Ft,ye&&y.createElement("span",null,ye)):ye,Xe=y.createElement("span",Object.assign({},zt,{ref:St,className:Ot,style:oe}),jt,qe,ue&&y.createElement(Ye,{key:"preset",prefixCls:pe}),ie&&y.createElement(lt,{key:"status",prefixCls:pe}));return ae(yt?y.createElement(ke.Z,{component:"Tag"},Xe):Xe)});We.CheckableTag=Oe;var Be=We},71114:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return lt}});var y=E(59301),ve=E(92310),ce=E.n(ve),Le=E(48755),xe=E(83397),Ee=E(36237),Ce=E(63356),ke=E(16931),De=E(51636);const fe=Ue=>{const{componentCls:be,calc:We}=Ue;return{[be]:Object.assign(Object.assign({},(0,Ce.Wf)(Ue)),{margin:0,padding:0,listStyle:"none",[`${be}-item`]:{position:"relative",margin:0,paddingBottom:Ue.itemPaddingBottom,fontSize:Ue.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:Ue.itemHeadSize,insetInlineStart:We(We(Ue.itemHeadSize).sub(Ue.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,Ee.unit)(Ue.itemHeadSize)})`,borderInlineStart:`${(0,Ee.unit)(Ue.tailWidth)} ${Ue.lineType} ${Ue.tailColor}`},"&-pending":{[`${be}-item-head`]:{fontSize:Ue.fontSizeSM,backgroundColor:"transparent"},[`${be}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:Ue.itemHeadSize,height:Ue.itemHeadSize,backgroundColor:Ue.dotBg,border:`${(0,Ee.unit)(Ue.dotBorderWidth)} ${Ue.lineType} transparent`,borderRadius:"50%","&-blue":{color:Ue.colorPrimary,borderColor:Ue.colorPrimary},"&-red":{color:Ue.colorError,borderColor:Ue.colorError},"&-green":{color:Ue.colorSuccess,borderColor:Ue.colorSuccess},"&-gray":{color:Ue.colorTextDisabled,borderColor:Ue.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:We(Ue.itemHeadSize).div(2).equal(),insetInlineStart:We(Ue.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:Ue.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:We(We(Ue.fontSize).mul(Ue.lineHeight).sub(Ue.fontSize)).mul(-1).add(Ue.lineWidth).equal(),marginInlineStart:We(Ue.margin).add(Ue.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${be}-item-tail`]:{display:"none"},[`> ${be}-item-content`]:{minHeight:We(Ue.controlHeightLG).mul(1.2).equal()}}},[`&${be}-alternate,
&${be}-right,
&${be}-label`]:{[`${be}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:We(Ue.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:We(Ue.tailWidth).div(2).equal()}},"&-left":{[`${be}-item-content`]:{insetInlineStart:`calc(50% - ${(0,Ee.unit)(Ue.marginXXS)})`,width:`calc(50% - ${(0,Ee.unit)(Ue.marginSM)})`,textAlign:"start"}},"&-right":{[`${be}-item-content`]:{width:`calc(50% - ${(0,Ee.unit)(Ue.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${be}-right`]:{[`${be}-item-right`]:{[`${be}-item-tail,
${be}-item-head,
${be}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,Ee.unit)(We(We(Ue.itemHeadSize).add(Ue.tailWidth)).div(2).equal())})`},[`${be}-item-content`]:{width:`calc(100% - ${(0,Ee.unit)(We(Ue.itemHeadSize).add(Ue.marginXS).equal())})`}}},[`&${be}-pending
${be}-item-last
${be}-item-tail`]:{display:"block",height:`calc(100% - ${(0,Ee.unit)(Ue.margin)})`,borderInlineStart:`${(0,Ee.unit)(Ue.tailWidth)} dotted ${Ue.tailColor}`},[`&${be}-reverse
${be}-item-last
${be}-item-tail`]:{display:"none"},[`&${be}-reverse ${be}-item-pending`]:{[`${be}-item-tail`]:{insetBlockStart:Ue.margin,display:"block",height:`calc(100% - ${(0,Ee.unit)(Ue.margin)})`,borderInlineStart:`${(0,Ee.unit)(Ue.tailWidth)} dotted ${Ue.tailColor}`},[`${be}-item-content`]:{minHeight:We(Ue.controlHeightLG).mul(1.2).equal()}},[`&${be}-label`]:{[`${be}-item-label`]:{position:"absolute",insetBlockStart:We(We(Ue.fontSize).mul(Ue.lineHeight).sub(Ue.fontSize)).mul(-1).add(Ue.tailWidth).equal(),width:`calc(50% - ${(0,Ee.unit)(Ue.marginSM)})`,textAlign:"end"},[`${be}-item-right`]:{[`${be}-item-label`]:{insetInlineStart:`calc(50% + ${(0,Ee.unit)(Ue.marginSM)})`,width:`calc(50% - ${(0,Ee.unit)(Ue.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${be}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},je=Ue=>({tailColor:Ue.colorSplit,tailWidth:Ue.lineWidthBold,dotBorderWidth:Ue.wireframe?Ue.lineWidthBold:Ue.lineWidth*3,dotBg:Ue.colorBgContainer,itemPaddingBottom:Ue.padding*1.25});var Ne=(0,ke.I$)("Timeline",Ue=>{const be=(0,De.mergeToken)(Ue,{itemHeadSize:10,customHeadPaddingVertical:Ue.paddingXXS,paddingInlineEnd:2});return[fe(be)]},je),ct=function(Ue,be){var We={};for(var Be in Ue)Object.prototype.hasOwnProperty.call(Ue,Be)&&be.indexOf(Be)<0&&(We[Be]=Ue[Be]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Be=Object.getOwnPropertySymbols(Ue);de<Be.length;de++)be.indexOf(Be[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Be[de])&&(We[Be[de]]=Ue[Be[de]]);return We},Te=Ue=>{var{prefixCls:be,className:We,color:Be="blue",dot:de,pending:St=!1,position:Qe,label:ze,children:st}=Ue,Se=ct(Ue,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:ye}=y.useContext(Le.E_),vt=ye("timeline",be),Ht=ce()(`${vt}-item`,{[`${vt}-item-pending`]:St},We),$t=/blue|red|green|gray/.test(Be||"")?void 0:Be,Fe=ce()(`${vt}-item-head`,{[`${vt}-item-head-custom`]:!!de,[`${vt}-item-head-${Be}`]:!$t});return y.createElement("li",Object.assign({},Se,{className:Ht}),ze&&y.createElement("div",{className:`${vt}-item-label`},ze),y.createElement("div",{className:`${vt}-item-tail`}),y.createElement("div",{className:Fe,style:{borderColor:$t,color:$t}},de),y.createElement("div",{className:`${vt}-item-content`},st))},we=E(94480),Ie=E(58617),Pe=function(Ue,be){var We={};for(var Be in Ue)Object.prototype.hasOwnProperty.call(Ue,Be)&&be.indexOf(Be)<0&&(We[Be]=Ue[Be]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Be=Object.getOwnPropertySymbols(Ue);de<Be.length;de++)be.indexOf(Be[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Be[de])&&(We[Be[de]]=Ue[Be[de]]);return We},Et=Ue=>{var{prefixCls:be,className:We,pending:Be=!1,children:de,items:St,rootClassName:Qe,reverse:ze=!1,direction:st,hashId:Se,pendingDot:ye,mode:vt=""}=Ue,Ht=Pe(Ue,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const $t=(mn,zt)=>vt==="alternate"?mn==="right"?`${be}-item-right`:mn==="left"?`${be}-item-left`:zt%2===0?`${be}-item-left`:`${be}-item-right`:vt==="left"?`${be}-item-left`:vt==="right"?`${be}-item-right`:mn==="right"?`${be}-item-right`:"",Fe=(0,we.Z)(St||[]),pt=typeof Be=="boolean"?null:Be;Be&&Fe.push({pending:!!Be,dot:ye||y.createElement(Ie.Z,null),children:pt}),ze&&Fe.reverse();const ut=Fe.length,Yt=`${be}-item-last`,bt=Fe.filter(mn=>!!mn).map((mn,zt)=>{var ue;const ie=zt===ut-2?Yt:"",re=zt===ut-1?Yt:"",{className:oe}=mn,pe=Pe(mn,["className"]);return y.createElement(Te,Object.assign({},pe,{className:ce()([oe,!ze&&Be?ie:re,$t((ue=mn==null?void 0:mn.position)!==null&&ue!==void 0?ue:"",zt)]),key:(mn==null?void 0:mn.key)||zt}))}),Ct=Fe.some(mn=>!!(mn!=null&&mn.label)),mt=ce()(be,{[`${be}-pending`]:!!Be,[`${be}-reverse`]:!!ze,[`${be}-${vt}`]:!!vt&&!Ct,[`${be}-label`]:Ct,[`${be}-rtl`]:st==="rtl"},We,Qe,Se);return y.createElement("ul",Object.assign({},Ht,{className:mt}),bt)},Oe=E(11592);function Ae(Ue,be){return Ue&&Array.isArray(Ue)?Ue:(0,Oe.Z)(be).map(We=>{var Be,de;return Object.assign({children:(de=(Be=We==null?void 0:We.props)===null||Be===void 0?void 0:Be.children)!==null&&de!==void 0?de:""},We.props)})}var Ve=Ae,Ye=function(Ue,be){var We={};for(var Be in Ue)Object.prototype.hasOwnProperty.call(Ue,Be)&&be.indexOf(Be)<0&&(We[Be]=Ue[Be]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Be=Object.getOwnPropertySymbols(Ue);de<Be.length;de++)be.indexOf(Be[de])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Be[de])&&(We[Be[de]]=Ue[Be[de]]);return We};const xt=Ue=>{const{getPrefixCls:be,direction:We,timeline:Be}=y.useContext(Le.E_),{prefixCls:de,children:St,items:Qe,className:ze,style:st}=Ue,Se=Ye(Ue,["prefixCls","children","items","className","style"]),ye=be("timeline",de),vt=(0,xe.Z)(ye),[Ht,$t,Fe]=Ne(ye,vt),pt=Ve(Qe,St);return Ht(y.createElement(Et,Object.assign({},Se,{className:ce()(Be==null?void 0:Be.className,ze,Fe,vt),style:Object.assign(Object.assign({},Be==null?void 0:Be.style),st),prefixCls:ye,direction:We,items:pt,hashId:$t})))};xt.Item=Te;var gt=xt,lt=gt},18287:function(Mn,Jt,E){"use strict";E.d(Jt,{default:function(){return $t}});var y=E(3741),ve=E(94480),ce=E(59301),Le=E(52671),xe=E(8657),Ee=E(54476),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(pt,ut){return ce.createElement(De.Z,(0,Ee.Z)({},pt,{ref:ut,icon:ke}))},je=ce.forwardRef(fe),Ne=je,ct=E(92310),Ke=E.n(ct),Te=E(82661),we=E(34061),Ie=E(48755),Pe=E(56082),rt=E(86641),Et=E(57700),Oe=E(12425);const Ae=4;function Ve(Fe){const{dropPosition:pt,dropLevelOffset:ut,prefixCls:Yt,indent:bt,direction:Ct="ltr"}=Fe,mt=Ct==="ltr"?"left":"right",mn=Ct==="ltr"?"right":"left",zt={[mt]:-ut*bt+Ae,[mn]:0};switch(pt){case-1:zt.top=-3;break;case 1:zt.bottom=-3;break;default:zt.bottom=-3,zt[mt]=bt+Ae;break}return ce.createElement("div",{style:zt,className:`${Yt}-drop-indicator`})}var Ye=Ve,xt=E(85278),lt=ce.forwardRef((Fe,pt)=>{var ut;const{getPrefixCls:Yt,direction:bt,virtual:Ct,tree:mt}=ce.useContext(Ie.E_),{prefixCls:mn,className:zt,showIcon:ue=!1,showLine:ie,switcherIcon:re,switcherLoadingIcon:oe,blockNode:pe=!1,children:ae,checkable:me=!1,selectable:Ze=!0,draggable:Ot,motion:at,style:qe}=Fe,yt=Yt("tree",mn),Ft=Yt(),jt=at!=null?at:Object.assign(Object.assign({},(0,rt.Z)(Ft)),{motionAppear:!1}),Xe=Object.assign(Object.assign({},Fe),{checkable:me,selectable:Ze,showIcon:ue,motion:jt,blockNode:pe,showLine:!!ie,dropIndicatorRender:Ye}),[tt,Gt,un]=(0,Oe.ZP)(yt),[,wn]=(0,Et.ZP)(),gn=wn.paddingXS/2+(((ut=wn.Tree)===null||ut===void 0?void 0:ut.titleHeight)||wn.controlHeightSM),Rt=ce.useMemo(()=>{if(!Ot)return!1;let At={};switch(typeof Ot){case"function":At.nodeDraggable=Ot;break;case"object":At=Object.assign({},Ot);break;default:break}return At.icon!==!1&&(At.icon=At.icon||ce.createElement(Pe.Z,null)),At},[Ot]),Ut=At=>ce.createElement(xt.Z,{prefixCls:yt,switcherIcon:re,switcherLoadingIcon:oe,treeNodeProps:At,showLine:ie});return tt(ce.createElement(y.ZP,Object.assign({itemHeight:gn,ref:pt,virtual:Ct},Xe,{style:Object.assign(Object.assign({},mt==null?void 0:mt.style),qe),prefixCls:yt,className:Ke()({[`${yt}-icon-hide`]:!ue,[`${yt}-block-node`]:pe,[`${yt}-unselectable`]:!Ze,[`${yt}-rtl`]:bt==="rtl"},mt==null?void 0:mt.className,zt,Gt,un),direction:bt,checkable:me&&ce.createElement("span",{className:`${yt}-checkbox-inner`}),selectable:Ze,switcherIcon:Ut,draggable:Rt}),ae))});const Ue=0,be=1,We=2;function Be(Fe,pt,ut){const{key:Yt,children:bt}=ut;function Ct(mt){const mn=mt[Yt],zt=mt[bt];pt(mn,mt)!==!1&&Be(zt||[],pt,ut)}Fe.forEach(Ct)}function de(Fe){let{treeData:pt,expandedKeys:ut,startKey:Yt,endKey:bt,fieldNames:Ct}=Fe;const mt=[];let mn=Ue;if(Yt&&Yt===bt)return[Yt];if(!Yt||!bt)return[];function zt(ue){return ue===Yt||ue===bt}return Be(pt,ue=>{if(mn===We)return!1;if(zt(ue)){if(mt.push(ue),mn===Ue)mn=be;else if(mn===be)return mn=We,!1}else mn===be&&mt.push(ue);return ut.includes(ue)},(0,we.w$)(Ct)),mt}function St(Fe,pt,ut){const Yt=(0,ve.Z)(pt),bt=[];return Be(Fe,(Ct,mt)=>{const mn=Yt.indexOf(Ct);return mn!==-1&&(bt.push(mt),Yt.splice(mn,1)),!!Yt.length},(0,we.w$)(ut)),bt}var Qe=function(Fe,pt){var ut={};for(var Yt in Fe)Object.prototype.hasOwnProperty.call(Fe,Yt)&&pt.indexOf(Yt)<0&&(ut[Yt]=Fe[Yt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Yt=Object.getOwnPropertySymbols(Fe);bt<Yt.length;bt++)pt.indexOf(Yt[bt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Yt[bt])&&(ut[Yt[bt]]=Fe[Yt[bt]]);return ut};function ze(Fe){const{isLeaf:pt,expanded:ut}=Fe;return pt?ce.createElement(Le.Z,null):ut?ce.createElement(xe.Z,null):ce.createElement(Ne,null)}function st(Fe){let{treeData:pt,children:ut}=Fe;return pt||(0,we.zn)(ut)}const Se=(Fe,pt)=>{var{defaultExpandAll:ut,defaultExpandParent:Yt,defaultExpandedKeys:bt}=Fe,Ct=Qe(Fe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const mt=ce.useRef(null),mn=ce.useRef(null),zt=()=>{const{keyEntities:tt}=(0,we.I8)(st(Ct));let Gt;return ut?Gt=Object.keys(tt):Yt?Gt=(0,Te.r7)(Ct.expandedKeys||bt||[],tt):Gt=Ct.expandedKeys||bt||[],Gt},[ue,ie]=ce.useState(Ct.selectedKeys||Ct.defaultSelectedKeys||[]),[re,oe]=ce.useState(()=>zt());ce.useEffect(()=>{"selectedKeys"in Ct&&ie(Ct.selectedKeys)},[Ct.selectedKeys]),ce.useEffect(()=>{"expandedKeys"in Ct&&oe(Ct.expandedKeys)},[Ct.expandedKeys]);const pe=(tt,Gt)=>{var un;return"expandedKeys"in Ct||oe(tt),(un=Ct.onExpand)===null||un===void 0?void 0:un.call(Ct,tt,Gt)},ae=(tt,Gt)=>{var un;const{multiple:wn,fieldNames:gn}=Ct,{node:Rt,nativeEvent:Ut}=Gt,{key:At=""}=Rt,Je=st(Ct),Pt=Object.assign(Object.assign({},Gt),{selected:!0}),nn=(Ut==null?void 0:Ut.ctrlKey)||(Ut==null?void 0:Ut.metaKey),pn=Ut==null?void 0:Ut.shiftKey;let nt;wn&&nn?(nt=tt,mt.current=At,mn.current=nt,Pt.selectedNodes=St(Je,nt,gn)):wn&&pn?(nt=Array.from(new Set([].concat((0,ve.Z)(mn.current||[]),(0,ve.Z)(de({treeData:Je,expandedKeys:re,startKey:At,endKey:mt.current,fieldNames:gn}))))),Pt.selectedNodes=St(Je,nt,gn)):(nt=[At],mt.current=At,mn.current=nt,Pt.selectedNodes=St(Je,nt,gn)),(un=Ct.onSelect)===null||un===void 0||un.call(Ct,nt,Pt),"selectedKeys"in Ct||ie(nt)},{getPrefixCls:me,direction:Ze}=ce.useContext(Ie.E_),{prefixCls:Ot,className:at,showIcon:qe=!0,expandAction:yt="click"}=Ct,Ft=Qe(Ct,["prefixCls","className","showIcon","expandAction"]),jt=me("tree",Ot),Xe=Ke()(`${jt}-directory`,{[`${jt}-directory-rtl`]:Ze==="rtl"},at);return ce.createElement(lt,Object.assign({icon:ze,ref:pt,blockNode:!0},Ft,{showIcon:qe,expandAction:yt,prefixCls:jt,className:Xe,expandedKeys:re,selectedKeys:ue,onSelect:ae,onExpand:pe}))};var vt=ce.forwardRef(Se);const Ht=lt;Ht.DirectoryTree=vt,Ht.TreeNode=y.OF;var $t=Ht},12425:function(Mn,Jt,E){"use strict";E.d(Jt,{ZP:function(){return Te},Yk:function(){return Ne},TM:function(){return ct}});var y=E(36237),ve=E(36170),ce=E(63356),Le=E(34961),xe=E(51636),Ee=E(16931);const Ce=we=>{let{treeCls:Ie,treeNodeCls:Pe,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:Et,motionDurationMid:Oe,borderRadius:Ae,controlItemBgHover:Ve}=we;return{[`${Ie}${Ie}-directory ${Pe}`]:{[`${Ie}-node-content-wrapper`]:{position:"static",[`> *:not(${Ie}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Oe}`,content:'""',borderRadius:Ae},"&:hover:before":{background:Ve}},[`${Ie}-switcher, ${Ie}-checkbox, ${Ie}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Ie}-switcher, ${Ie}-draggable-icon`]:{color:Et},[`${Ie}-node-content-wrapper`]:{color:Et,background:"transparent","&:before, &:hover:before":{background:rt}}}}}},ke=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),De=(we,Ie)=>({[`.${we}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ie.motionDurationSlow}`}}}),fe=(we,Ie)=>({[`.${we}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ie.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(Ie.lineWidthBold)} solid ${Ie.colorPrimary}`,borderRadius:"50%",content:'""'}}}),je=(we,Ie)=>{const{treeCls:Pe,treeNodeCls:rt,treeNodePadding:Et,titleHeight:Oe,indentSize:Ae,nodeSelectedBg:Ve,nodeHoverBg:Ye,colorTextQuaternary:xt,controlItemBgActiveDisabled:gt}=Ie;return{[Pe]:Object.assign(Object.assign({},(0,ce.Wf)(Ie)),{background:Ie.colorBgContainer,borderRadius:Ie.borderRadius,transition:`background-color ${Ie.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Pe}-rtl ${Pe}-switcher_close ${Pe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Pe}-active-focused)`]:Object.assign({},(0,ce.oN)(Ie)),[`${Pe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Pe}-block-node`]:{[`${Pe}-list-holder-inner`]:{alignItems:"stretch",[`${Pe}-node-content-wrapper`]:{flex:"auto"},[`${rt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Ie.colorPrimary}`,opacity:0,animationName:ke,animationDuration:Ie.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Ie.borderRadius}}},[rt]:{display:"flex",alignItems:"flex-start",marginBottom:Et,lineHeight:(0,y.unit)(Oe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Et},[`&-disabled ${Pe}-node-content-wrapper`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Pe}-checkbox-disabled + ${Pe}-node-selected,&${rt}-disabled${rt}-selected ${Pe}-node-content-wrapper`]:{backgroundColor:gt},[`${Pe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${rt}-disabled)`]:{[`${Pe}-node-content-wrapper`]:{"&:hover":{color:Ie.nodeHoverColor}}},[`&-active ${Pe}-node-content-wrapper`]:{background:Ie.controlItemBgHover},[`&:not(${rt}-disabled).filter-node ${Pe}-title`]:{color:Ie.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Pe}-draggable-icon`]:{flexShrink:0,width:Oe,textAlign:"center",visibility:"visible",color:xt},[`&${rt}-disabled ${Pe}-draggable-icon`]:{visibility:"hidden"}}},[`${Pe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ae}},[`${Pe}-draggable-icon`]:{visibility:"hidden"},[`${Pe}-switcher, ${Pe}-checkbox`]:{marginInlineEnd:Ie.calc(Ie.calc(Oe).sub(Ie.controlInteractiveSize)).div(2).equal()},[`${Pe}-switcher`]:Object.assign(Object.assign({},De(we,Ie)),{position:"relative",flex:"none",alignSelf:"stretch",width:Oe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Ie.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Oe,height:Oe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Ie.borderRadius,transition:`all ${Ie.motionDurationSlow}`},[`&:not(${Pe}-switcher-noop):hover:before`]:{backgroundColor:Ie.colorBgTextHover},[`&_close ${Pe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Ie.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ie.calc(Oe).div(2).equal(),bottom:Ie.calc(Et).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ie.calc(Ie.calc(Oe).div(2).equal()).mul(.8).equal(),height:Ie.calc(Oe).div(2).equal(),borderBottom:`1px solid ${Ie.colorBorder}`,content:'""'}}}),[`${Pe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Oe,paddingBlock:0,paddingInline:Ie.paddingXS,background:"transparent",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},fe(we,Ie)),{"&:hover":{backgroundColor:Ye},[`&${Pe}-node-selected`]:{color:Ie.nodeSelectedColor,backgroundColor:Ve},[`${Pe}-iconEle`]:{display:"inline-block",width:Oe,height:Oe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Pe}-unselectable ${Pe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${rt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Ie.colorPrimary}`},"&-show-line":{[`${Pe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ie.calc(Oe).div(2).equal(),bottom:Ie.calc(Et).mul(-1).equal(),borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Pe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${rt}-leaf-last ${Pe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(Ie.calc(Oe).div(2).equal())} !important`}})}},Ne=function(we,Ie){let Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const rt=`.${we}`,Et=`${rt}-treenode`,Oe=Ie.calc(Ie.paddingXS).div(2).equal(),Ae=(0,xe.mergeToken)(Ie,{treeCls:rt,treeNodeCls:Et,treeNodePadding:Oe});return[je(we,Ae),Pe&&Ce(Ae)].filter(Boolean)},ct=we=>{const{controlHeightSM:Ie,controlItemBgHover:Pe,controlItemBgActive:rt}=we,Et=Ie;return{titleHeight:Et,indentSize:Et,nodeHoverBg:Pe,nodeHoverColor:we.colorText,nodeSelectedBg:rt,nodeSelectedColor:we.colorText}},Ke=we=>{const{colorTextLightSolid:Ie,colorPrimary:Pe}=we;return Object.assign(Object.assign({},ct(we)),{directoryNodeSelectedColor:Ie,directoryNodeSelectedBg:Pe})};var Te=(0,Ee.I$)("Tree",(we,Ie)=>{let{prefixCls:Pe}=Ie;return[{[we.componentCls]:(0,ve.C2)(`${Pe}-checkbox`,we)},Ne(Pe,we),(0,Le.Z)(we)]},Ke)},85278:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Ie}});var y=E(59301),ve=E(54476),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"},Le=ce,xe=E(7657),Ee=function(rt,Et){return y.createElement(xe.Z,(0,ve.Z)({},rt,{ref:Et,icon:Le}))},Ce=y.forwardRef(Ee),ke=Ce,De=E(52671),fe=E(58617),je=E(15075),Ne=E(43531),ct=E(92310),Ke=E.n(ct),Te=E(22703),Ie=Pe=>{const{prefixCls:rt,switcherIcon:Et,treeNodeProps:Oe,showLine:Ae,switcherLoadingIcon:Ve}=Pe,{isLeaf:Ye,expanded:xt,loading:gt}=Oe;if(gt)return y.isValidElement(Ve)?Ve:y.createElement(fe.Z,{className:`${rt}-switcher-loading-icon`});let lt;if(Ae&&typeof Ae=="object"&&(lt=Ae.showLeafIcon),Ye){if(!Ae)return null;if(typeof lt!="boolean"&&lt){const We=typeof lt=="function"?lt(Oe):lt,Be=`${rt}-switcher-line-custom-icon`;return y.isValidElement(We)?(0,Te.Tm)(We,{className:Ke()(We.props.className||"",Be)}):We}return lt?y.createElement(De.Z,{className:`${rt}-switcher-line-icon`}):y.createElement("span",{className:`${rt}-switcher-leaf-line`})}const Ue=`${rt}-switcher-icon`,be=typeof Et=="function"?Et(Oe):Et;return y.isValidElement(be)?(0,Te.Tm)(be,{className:Ke()(be.props.className||"",Ue)}):be!==void 0?be:Ae?xt?y.createElement(je.Z,{className:`${rt}-switcher-line-icon`}):y.createElement(Ne.Z,{className:`${rt}-switcher-line-icon`}):y.createElement(ke,{className:Ue})}},99498:function(Mn,Jt,E){(function(y){y(E(89780))})(function(y){y.defineOption("placeholder","",function(ke,De,fe){var je=fe&&fe!=y.Init;if(De&&!je)ke.on("blur",xe),ke.on("change",Ee),ke.on("swapDoc",Ee),y.on(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose=function(){Le(ke)}),Ee(ke);else if(!De&&je){ke.off("blur",xe),ke.off("change",Ee),ke.off("swapDoc",Ee),y.off(ke.getInputField(),"compositionupdate",ke.state.placeholderCompose),ve(ke);var Ne=ke.getWrapperElement();Ne.className=Ne.className.replace(" CodeMirror-empty","")}De&&!ke.hasFocus()&&xe(ke)});function ve(ke){ke.state.placeholder&&(ke.state.placeholder.parentNode.removeChild(ke.state.placeholder),ke.state.placeholder=null)}function ce(ke){ve(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 Le(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):ve(ke)},20)}function xe(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):ve(ke)}function Ce(ke){return ke.lineCount()===1&&ke.getLine(0)===""}})},25717:function(Mn,Jt,E){(function(y){y(E(89780))})(function(y){var ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ce=y.Pos;y.defineOption("autoCloseBrackets",!1,function(Te,we,Ie){Ie&&Ie!=y.Init&&(Te.removeKeyMap(xe),Te.state.closeBrackets=null),we&&(Ee(Le(we,"pairs")),Te.state.closeBrackets=we,Te.addKeyMap(xe))});function Le(Te,we){return we=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[we]!=null?Te[we]:ve[we]}var xe={Backspace:De,Enter:fe};function Ee(Te){for(var we=0;we<Te.length;we++){var Ie=Te.charAt(we),Pe="'"+Ie+"'";xe[Pe]||(xe[Pe]=Ce(Ie))}}Ee(ve.pairs+"`");function Ce(Te){return function(we){return Ne(we,Te)}}function ke(Te){var we=Te.state.closeBrackets;if(!we||we.override)return we;var Ie=Te.getModeAt(Te.getCursor());return Ie.closeBrackets||we}function De(Te){var we=ke(Te);if(!we||Te.getOption("disableInput"))return y.Pass;for(var Ie=Le(we,"pairs"),Pe=Te.listSelections(),rt=0;rt<Pe.length;rt++){if(!Pe[rt].empty())return y.Pass;var Et=ct(Te,Pe[rt].head);if(!Et||Ie.indexOf(Et)%2!=0)return y.Pass}for(var rt=Pe.length-1;rt>=0;rt--){var Oe=Pe[rt].head;Te.replaceRange("",ce(Oe.line,Oe.ch-1),ce(Oe.line,Oe.ch+1),"+delete")}}function fe(Te){var we=ke(Te),Ie=we&&Le(we,"explode");if(!Ie||Te.getOption("disableInput"))return y.Pass;for(var Pe=Te.listSelections(),rt=0;rt<Pe.length;rt++){if(!Pe[rt].empty())return y.Pass;var Et=ct(Te,Pe[rt].head);if(!Et||Ie.indexOf(Et)%2!=0)return y.Pass}Te.operation(function(){var Oe=Te.lineSeparator()||`
`;Te.replaceSelection(Oe+Oe,null),Te.execCommand("goCharLeft"),Pe=Te.listSelections();for(var Ae=0;Ae<Pe.length;Ae++){var Ve=Pe[Ae].head.line;Te.indentLine(Ve,null,!0),Te.indentLine(Ve+1,null,!0)}})}function je(Te){var we=y.cmpPos(Te.anchor,Te.head)>0;return{anchor:new ce(Te.anchor.line,Te.anchor.ch+(we?-1:1)),head:new ce(Te.head.line,Te.head.ch+(we?1:-1))}}function Ne(Te,we){var Ie=ke(Te);if(!Ie||Te.getOption("disableInput"))return y.Pass;var Pe=Le(Ie,"pairs"),rt=Pe.indexOf(we);if(rt==-1)return y.Pass;for(var Et=Le(Ie,"closeBefore"),Oe=Le(Ie,"triples"),Ae=Pe.charAt(rt+1)==we,Ve=Te.listSelections(),Ye=rt%2==0,xt,gt=0;gt<Ve.length;gt++){var lt=Ve[gt],Ue=lt.head,be,We=Te.getRange(Ue,ce(Ue.line,Ue.ch+1));if(Ye&&!lt.empty())be="surround";else if((Ae||!Ye)&&We==we)Ae&&Ke(Te,Ue)?be="both":Oe.indexOf(we)>=0&&Te.getRange(Ue,ce(Ue.line,Ue.ch+3))==we+we+we?be="skipThree":be="skip";else if(Ae&&Ue.ch>1&&Oe.indexOf(we)>=0&&Te.getRange(ce(Ue.line,Ue.ch-2),Ue)==we+we){if(Ue.ch>2&&/\bstring/.test(Te.getTokenTypeAt(ce(Ue.line,Ue.ch-2))))return y.Pass;be="addFour"}else if(Ae){var Be=Ue.ch==0?" ":Te.getRange(ce(Ue.line,Ue.ch-1),Ue);if(!y.isWordChar(We)&&Be!=we&&!y.isWordChar(Be))be="both";else return y.Pass}else if(Ye&&(We.length===0||/\s/.test(We)||Et.indexOf(We)>-1))be="both";else return y.Pass;if(!xt)xt=be;else if(xt!=be)return y.Pass}var de=rt%2?Pe.charAt(rt-1):we,St=rt%2?we:Pe.charAt(rt+1);Te.operation(function(){if(xt=="skip")Te.execCommand("goCharRight");else if(xt=="skipThree")for(var Qe=0;Qe<3;Qe++)Te.execCommand("goCharRight");else if(xt=="surround"){for(var ze=Te.getSelections(),Qe=0;Qe<ze.length;Qe++)ze[Qe]=de+ze[Qe]+St;Te.replaceSelections(ze,"around"),ze=Te.listSelections().slice();for(var Qe=0;Qe<ze.length;Qe++)ze[Qe]=je(ze[Qe]);Te.setSelections(ze)}else xt=="both"?(Te.replaceSelection(de+St,null),Te.triggerElectric(de+St),Te.execCommand("goCharLeft")):xt=="addFour"&&(Te.replaceSelection(de+de+de+de,"before"),Te.execCommand("goCharRight"))})}function ct(Te,we){var Ie=Te.getRange(ce(we.line,we.ch-1),ce(we.line,we.ch+1));return Ie.length==2?Ie:null}function Ke(Te,we){var Ie=Te.getTokenAt(ce(we.line,we.ch+1));return/\bstring/.test(Ie.type)&&Ie.start==we.ch&&(we.ch==0||!/\bstring/.test(Te.getTokenTypeAt(we)))}})},6313:function(Mn,Jt,E){(function(y){y(E(89780),E(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(De,fe,je){if(je!=y.Init&&je&&De.removeKeyMap("autoCloseTags"),!!fe){var Ne={name:"autoCloseTags"};(typeof fe!="object"||fe.whenClosing!==!1)&&(Ne["'/'"]=function(ct){return Ee(ct)}),(typeof fe!="object"||fe.whenOpening!==!1)&&(Ne["'>'"]=function(ct){return Le(ct)}),De.addKeyMap(Ne)}});var ve=["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 Le(De){if(De.getOption("disableInput"))return y.Pass;for(var fe=De.listSelections(),je=[],Ne=De.getOption("autoCloseTags"),ct=0;ct<fe.length;ct++){if(!fe[ct].empty())return y.Pass;var Ke=fe[ct].head,Te=De.getTokenAt(Ke),we=y.innerMode(De.getMode(),Te.state),Ie=we.state,Pe=we.mode.xmlCurrentTag&&we.mode.xmlCurrentTag(Ie),rt=Pe&&Pe.name;if(!rt)return y.Pass;var Et=we.mode.configuration=="html",Oe=typeof Ne=="object"&&Ne.dontCloseTags||Et&&ve,Ae=typeof Ne=="object"&&Ne.indentTags||Et&&ce;Te.end>Ke.ch&&(rt=rt.slice(0,rt.length-Te.end+Ke.ch));var Ve=rt.toLowerCase();if(!rt||Te.type=="string"&&(Te.end!=Ke.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&Pe.close||Te.string.indexOf("/")==Ke.ch-Te.start-1||Oe&&Ce(Oe,Ve)>-1||ke(De,we.mode.xmlCurrentContext&&we.mode.xmlCurrentContext(Ie)||[],rt,Ke,!0))return y.Pass;var Ye=typeof Ne=="object"&&Ne.emptyTags;if(Ye&&Ce(Ye,rt)>-1){je[ct]={text:"/>",newPos:y.Pos(Ke.line,Ke.ch+2)};continue}var xt=Ae&&Ce(Ae,Ve)>-1;je[ct]={indent:xt,text:">"+(xt?`
`:"")+"</"+rt+">",newPos:xt?y.Pos(Ke.line+1,0):y.Pos(Ke.line,Ke.ch+1)}}for(var gt=typeof Ne=="object"&&Ne.dontIndentOnAutoClose,ct=fe.length-1;ct>=0;ct--){var lt=je[ct];De.replaceRange(lt.text,fe[ct].head,fe[ct].anchor,"+insert");var Ue=De.listSelections().slice(0);Ue[ct]={head:lt.newPos,anchor:lt.newPos},De.setSelections(Ue),!gt&&lt.indent&&(De.indentLine(lt.newPos.line,null,!0),De.indentLine(lt.newPos.line+1,null,!0))}}function xe(De,fe){for(var je=De.listSelections(),Ne=[],ct=fe?"/":"</",Ke=De.getOption("autoCloseTags"),Te=typeof Ke=="object"&&Ke.dontIndentOnSlash,we=0;we<je.length;we++){if(!je[we].empty())return y.Pass;var Ie=je[we].head,Pe=De.getTokenAt(Ie),rt=y.innerMode(De.getMode(),Pe.state),Et=rt.state;if(fe&&(Pe.type=="string"||Pe.string.charAt(0)!="<"||Pe.start!=Ie.ch-1))return y.Pass;var Oe,Ae=rt.mode.name!="xml"&&De.getMode().name=="htmlmixed";if(Ae&&rt.mode.name=="javascript")Oe=ct+"script";else if(Ae&&rt.mode.name=="css")Oe=ct+"style";else{var Ve=rt.mode.xmlCurrentContext&&rt.mode.xmlCurrentContext(Et);if(!Ve||Ve.length&&ke(De,Ve,Ve[Ve.length-1],Ie))return y.Pass;Oe=ct+Ve[Ve.length-1]}De.getLine(Ie.line).charAt(Pe.end)!=">"&&(Oe+=">"),Ne[we]=Oe}if(De.replaceSelections(Ne),je=De.listSelections(),!Te)for(var we=0;we<je.length;we++)(we==je.length-1||je[we].head.line<je[we+1].head.line)&&De.indentLine(je[we].head.line)}function Ee(De){return De.getOption("disableInput")?y.Pass:xe(De,!0)}y.commands.closeTag=function(De){return xe(De)};function Ce(De,fe){if(De.indexOf)return De.indexOf(fe);for(var je=0,Ne=De.length;je<Ne;++je)if(De[je]==fe)return je;return-1}function ke(De,fe,je,Ne,ct){if(!y.scanForClosingTag)return!1;var Ke=Math.min(De.lastLine()+1,Ne.line+500),Te=y.scanForClosingTag(De,Ne,null,Ke);if(!Te||Te.tag!=je)return!1;for(var we=ct?1:0,Ie=fe.length-1;Ie>=0&&fe[Ie]==je;Ie--)++we;Ne=Te.to;for(var Ie=1;Ie<we;Ie++){var Pe=y.scanForClosingTag(De,Ne,null,Ke);if(!Pe||Pe.tag!=je)return!1;Ne=Pe.to}return!0}})},32855:function(Mn,Jt,E){(function(y){y(E(89780))})(function(y){"use strict";var ve=y.Pos;function ce(Ie,Pe){return Ie.line-Pe.line||Ie.ch-Pe.ch}var Le="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",xe=Le+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+Le+"]["+xe+"]*)","g");function Ce(Ie,Pe,rt,Et){this.line=Pe,this.ch=rt,this.cm=Ie,this.text=Ie.getLine(Pe),this.min=Et?Math.max(Et.from,Ie.firstLine()):Ie.firstLine(),this.max=Et?Math.min(Et.to-1,Ie.lastLine()):Ie.lastLine()}function ke(Ie,Pe){var rt=Ie.cm.getTokenTypeAt(ve(Ie.line,Pe));return rt&&/\btag\b/.test(rt)}function De(Ie){if(!(Ie.line>=Ie.max))return Ie.ch=0,Ie.text=Ie.cm.getLine(++Ie.line),!0}function fe(Ie){if(!(Ie.line<=Ie.min))return Ie.text=Ie.cm.getLine(--Ie.line),Ie.ch=Ie.text.length,!0}function je(Ie){for(;;){var Pe=Ie.text.indexOf(">",Ie.ch);if(Pe==-1){if(De(Ie))continue;return}if(!ke(Ie,Pe+1)){Ie.ch=Pe+1;continue}var rt=Ie.text.lastIndexOf("/",Pe),Et=rt>-1&&!/\S/.test(Ie.text.slice(rt+1,Pe));return Ie.ch=Pe+1,Et?"selfClose":"regular"}}function Ne(Ie){for(;;){var Pe=Ie.ch?Ie.text.lastIndexOf("<",Ie.ch-1):-1;if(Pe==-1){if(fe(Ie))continue;return}if(!ke(Ie,Pe+1)){Ie.ch=Pe;continue}Ee.lastIndex=Pe,Ie.ch=Pe;var rt=Ee.exec(Ie.text);if(rt&&rt.index==Pe)return rt}}function ct(Ie){for(;;){Ee.lastIndex=Ie.ch;var Pe=Ee.exec(Ie.text);if(!Pe){if(De(Ie))continue;return}if(!ke(Ie,Pe.index+1)){Ie.ch=Pe.index+1;continue}return Ie.ch=Pe.index+Pe[0].length,Pe}}function Ke(Ie){for(;;){var Pe=Ie.ch?Ie.text.lastIndexOf(">",Ie.ch-1):-1;if(Pe==-1){if(fe(Ie))continue;return}if(!ke(Ie,Pe+1)){Ie.ch=Pe;continue}var rt=Ie.text.lastIndexOf("/",Pe),Et=rt>-1&&!/\S/.test(Ie.text.slice(rt+1,Pe));return Ie.ch=Pe+1,Et?"selfClose":"regular"}}function Te(Ie,Pe){for(var rt=[];;){var Et=ct(Ie),Oe,Ae=Ie.line,Ve=Ie.ch-(Et?Et[0].length:0);if(!Et||!(Oe=je(Ie)))return;if(Oe!="selfClose")if(Et[1]){for(var Ye=rt.length-1;Ye>=0;--Ye)if(rt[Ye]==Et[2]){rt.length=Ye;break}if(Ye<0&&(!Pe||Pe==Et[2]))return{tag:Et[2],from:ve(Ae,Ve),to:ve(Ie.line,Ie.ch)}}else rt.push(Et[2])}}function we(Ie,Pe){for(var rt=[];;){var Et=Ke(Ie);if(!Et)return;if(Et=="selfClose"){Ne(Ie);continue}var Oe=Ie.line,Ae=Ie.ch,Ve=Ne(Ie);if(!Ve)return;if(Ve[1])rt.push(Ve[2]);else{for(var Ye=rt.length-1;Ye>=0;--Ye)if(rt[Ye]==Ve[2]){rt.length=Ye;break}if(Ye<0&&(!Pe||Pe==Ve[2]))return{tag:Ve[2],from:ve(Ie.line,Ie.ch),to:ve(Oe,Ae)}}}}y.registerHelper("fold","xml",function(Ie,Pe){for(var rt=new Ce(Ie,Pe.line,0);;){var Et=ct(rt);if(!Et||rt.line!=Pe.line)return;var Oe=je(rt);if(!Oe)return;if(!Et[1]&&Oe!="selfClose"){var Ae=ve(rt.line,rt.ch),Ve=Te(rt,Et[2]);return Ve&&ce(Ve.from,Ae)>0?{from:Ae,to:Ve.from}:null}}}),y.findMatchingTag=function(Ie,Pe,rt){var Et=new Ce(Ie,Pe.line,Pe.ch,rt);if(!(Et.text.indexOf(">")==-1&&Et.text.indexOf("<")==-1)){var Oe=je(Et),Ae=Oe&&ve(Et.line,Et.ch),Ve=Oe&&Ne(Et);if(!(!Oe||!Ve||ce(Et,Pe)>0)){var Ye={from:ve(Et.line,Et.ch),to:Ae,tag:Ve[2]};return Oe=="selfClose"?{open:Ye,close:null,at:"open"}:Ve[1]?{open:we(Et,Ve[2]),close:Ye,at:"close"}:(Et=new Ce(Ie,Ae.line,Ae.ch,rt),{open:Ye,close:Te(Et,Ve[2]),at:"open"})}}},y.findEnclosingTag=function(Ie,Pe,rt,Et){for(var Oe=new Ce(Ie,Pe.line,Pe.ch,rt);;){var Ae=we(Oe,Et);if(!Ae)break;var Ve=new Ce(Ie,Pe.line,Pe.ch,rt),Ye=Te(Ve,Ae.tag);if(Ye)return{open:Ae,close:Ye}}},y.scanForClosingTag=function(Ie,Pe,rt,Et){var Oe=new Ce(Ie,Pe.line,Pe.ch,Et?{from:0,to:Et}:null);return Te(Oe,rt)}})},89780:function(Mn){(function(Jt,E){Mn.exports=E()})(this,function(){"use strict";var Jt=navigator.userAgent,E=navigator.platform,y=/gecko\/\d/i.test(Jt),ve=/MSIE \d/.test(Jt),ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Jt),Le=/Edge\/(\d+)/.exec(Jt),xe=ve||ce||Le,Ee=xe&&(ve?document.documentMode||6:+(Le||ce)[1]),Ce=!Le&&/WebKit\//.test(Jt),ke=Ce&&/Qt\/\d+\.\d+/.test(Jt),De=!Le&&/Chrome\//.test(Jt),fe=/Opera\//.test(Jt),je=/Apple Computer/.test(navigator.vendor),Ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Jt),ct=/PhantomJS/.test(Jt),Ke=!Le&&/AppleWebKit/.test(Jt)&&/Mobile\/\w+/.test(Jt),Te=/Android/.test(Jt),we=Ke||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Jt),Ie=Ke||/Mac/.test(E),Pe=/\bCrOS\b/.test(Jt),rt=/win/i.test(E),Et=fe&&Jt.match(/Version\/(\d*\.\d*)/);Et&&(Et=Number(Et[1])),Et&&Et>=15&&(fe=!1,Ce=!0);var Oe=Ie&&(ke||fe&&(Et==null||Et<12.11)),Ae=y||xe&&Ee>=9;function Ve(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ye=function(a,b){var z=a.className,x=Ve(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 xt(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function gt(a,b){return xt(a).appendChild(b)}function lt(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 se=0;se<b.length;++se)ee.appendChild(b[se]);return ee}function Ue(a,b,z,x){var ee=lt(a,b,z,x);return ee.setAttribute("role","presentation"),ee}var be;document.createRange?be=function(a,b,z,x){var ee=document.createRange();return ee.setEnd(x||a,z),ee.setStart(a,b),ee}:be=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 We(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 Be(){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;Ve(b).test(z)||(a.className+=(z?" ":"")+b)}function St(a,b){for(var z=a.split(" "),x=0;x<z.length;x++)z[x]&&!Ve(z[x]).test(b)&&(b+=" "+z[x]);return b}var Qe=function(a){a.select()};Ke?Qe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(Qe=function(a){try{a.select()}catch(b){}});function ze(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function st(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 Se(a,b,z,x,ee){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var se=x||0,ge=ee||0;;){var _e=a.indexOf(" ",se);if(_e<0||_e>=b)return ge+(b-se);ge+=_e-se,ge+=z-ge%z,se=_e+1}}var ye=function(){this.id=null,this.f=null,this.time=0,this.handler=ze(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,$t={toString:function(){return"CodeMirror.Pass"}},Fe={scroll:!1},pt={origin:"*mouse"},ut={origin:"+move"};function Yt(a,b,z){for(var x=0,ee=0;;){var se=a.indexOf(" ",x);se==-1&&(se=a.length);var ge=se-x;if(se==a.length||ee+ge>=b)return x+Math.min(ge,b-ee);if(ee+=se-x,ee+=z-ee%z,x=se+1,ee>=b)return x}}var bt=[""];function Ct(a){for(;bt.length<=a;)bt.push(mt(bt)+" ");return bt[a]}function mt(a){return a[a.length-1]}function mn(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 ie(a,b){var z;return Object.create?z=Object.create(a):(ue.prototype=a,z=new ue),b&&st(b,z),z}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||re.test(a))}function pe(a,b){return b?b.source.indexOf("\\w")>-1&&oe(a)?!0:b.test(a):oe(a)}function ae(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 Ze(a){return a.charCodeAt(0)>=768&&me.test(a)}function Ot(a,b,z){for(;(z<0?b>0:b<a.length)&&Ze(a.charAt(b));)b+=z;return b}function at(a,b,z){for(var x=b>z?-1:1;;){if(b==z)return b;var ee=(b+z)/2,se=x<0?Math.ceil(ee):Math.floor(ee);if(se==b)return a(se)?b:z;a(se)?z=se:b=se+x}}function qe(a,b,z,x){if(!a)return x(b,z,"ltr",0);for(var ee=!1,se=0;se<a.length;++se){var ge=a[se];(ge.from<z&&ge.to>b||b==z&&ge.to==b)&&(x(Math.max(ge.from,b),Math.min(ge.to,z),ge.level==1?"rtl":"ltr",se),ee=!0)}ee||x(b,z,"ltr")}var yt=null;function Ft(a,b,z){var x;yt=null;for(var ee=0;ee<a.length;++ee){var se=a[ee];if(se.from<b&&se.to>b)return ee;se.to==b&&(se.from!=se.to&&z=="before"?x=ee:yt=ee),se.from==b&&(se.from!=se.to&&z!="before"?x=ee:yt=ee)}return x!=null?x:yt}var jt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function z(ot){return ot<=247?a.charAt(ot):1424<=ot&&ot<=1524?"R":1536<=ot&&ot<=1785?b.charAt(ot-1536):1774<=ot&&ot<=2220?"r":8192<=ot&&ot<=8203?"w":ot==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,se=/[LRr]/,ge=/[Lb1n]/,_e=/[1n]/;function Ge(ot,dn,En){this.level=ot,this.from=dn,this.to=En}return function(ot,dn){var En=dn=="ltr"?"L":"R";if(ot.length==0||dn=="ltr"&&!x.test(ot))return!1;for(var Yn=ot.length,zn=[],Mr=0;Mr<Yn;++Mr)zn.push(z(ot.charCodeAt(Mr)));for(var qr=0,Ba=En;qr<Yn;++qr){var Ka=zn[qr];Ka=="m"?zn[qr]=Ba:Ba=Ka}for(var ii=0,Wa=En;ii<Yn;++ii){var Ei=zn[ii];Ei=="1"&&Wa=="r"?zn[ii]="n":se.test(Ei)&&(Wa=Ei,Ei=="r"&&(zn[ii]="R"))}for(var to=1,Gi=zn[0];to<Yn-1;++to){var Bo=zn[to];Bo=="+"&&Gi=="1"&&zn[to+1]=="1"?zn[to]="1":Bo==","&&Gi==zn[to+1]&&(Gi=="1"||Gi=="n")&&(zn[to]=Gi),Gi=Bo}for(var ml=0;ml<Yn;++ml){var ql=zn[ml];if(ql==",")zn[ml]="N";else if(ql=="%"){var Fl=void 0;for(Fl=ml+1;Fl<Yn&&zn[Fl]=="%";++Fl);for(var Cs=ml&&zn[ml-1]=="!"||Fl<Yn&&zn[Fl]=="1"?"1":"N",fs=ml;fs<Fl;++fs)zn[fs]=Cs;ml=Fl-1}}for(var kl=0,ms=En;kl<Yn;++kl){var ns=zn[kl];ms=="L"&&ns=="1"?zn[kl]="L":se.test(ns)&&(ms=ns)}for(var Ll=0;Ll<Yn;++Ll)if(ee.test(zn[Ll])){var Zl=void 0;for(Zl=Ll+1;Zl<Yn&&ee.test(zn[Zl]);++Zl);for(var Pl=(Ll?zn[Ll-1]:En)=="L",ps=(Zl<Yn?zn[Zl]:En)=="L",Tu=Pl==ps?Pl?"L":"R":En,ou=Ll;ou<Zl;++ou)zn[ou]=Tu;Ll=Zl-1}for(var rs=[],te,ne=0;ne<Yn;)if(ge.test(zn[ne])){var le=ne;for(++ne;ne<Yn&&ge.test(zn[ne]);++ne);rs.push(new Ge(0,le,ne))}else{var he=ne,$e=rs.length,He=dn=="rtl"?1:0;for(++ne;ne<Yn&&zn[ne]!="L";++ne);for(var et=he;et<ne;)if(_e.test(zn[et])){he<et&&(rs.splice($e,0,new Ge(1,he,et)),$e+=He);var dt=et;for(++et;et<ne&&_e.test(zn[et]);++et);rs.splice($e,0,new Ge(2,dt,et)),$e+=He,he=et}else++et;he<ne&&rs.splice($e,0,new Ge(1,he,ne))}return dn=="ltr"&&(rs[0].level==1&&(te=ot.match(/^\s+/))&&(rs[0].from=te[0].length,rs.unshift(new Ge(0,0,te[0].length))),mt(rs).level==1&&(te=ot.match(/\s+$/))&&(mt(rs).to-=te[0].length,rs.push(new Ge(0,Yn-te[0].length,Yn)))),dn=="rtl"?rs.reverse():rs}}();function Xe(a,b){var z=a.order;return z==null&&(z=a.order=jt(a.text,b)),z}var tt=[],Gt=function(a,b,z){if(a.addEventListener)a.addEventListener(b,z,!1);else if(a.attachEvent)a.attachEvent("on"+b,z);else{var x=a._handlers||(a._handlers={});x[b]=(x[b]||tt).concat(z)}};function un(a,b){return a._handlers&&a._handlers[b]||tt}function wn(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 se=vt(ee,z);se>-1&&(x[b]=ee.slice(0,se).concat(ee.slice(se+1)))}}}function gn(a,b){var z=un(a,b);if(z.length)for(var x=Array.prototype.slice.call(arguments,2),ee=0;ee<z.length;++ee)z[ee].apply(null,x)}function Rt(a,b,z){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),gn(a,z||b.type,a,b),pn(b)||b.codemirrorIgnore}function Ut(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 At(a,b){return un(a,b).length>0}function Je(a){a.prototype.on=function(b,z){Gt(this,b,z)},a.prototype.off=function(b,z){wn(this,b,z)}}function Pt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function nn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function pn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function nt(a){Pt(a),nn(a)}function Nt(a){return a.target||a.srcElement}function qt(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),Ie&&a.ctrlKey&&b==1&&(b=3),b}var wt=function(){if(xe&&Ee<9)return!1;var a=lt("div");return"draggable"in a||"dragDrop"in a}(),Wt;function en(a){if(Wt==null){var b=lt("span","\u200B");gt(a,lt("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Wt=b.offsetWidth<=1&&b.offsetHeight>2&&!(xe&&Ee<8))}var z=Wt?lt("span","\u200B"):lt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return z.setAttribute("cm-text",""),z}var _n;function Un(a){if(_n!=null)return _n;var b=gt(a,document.createTextNode("A\u062EA")),z=be(b,0,1).getBoundingClientRect(),x=be(b,1,2).getBoundingClientRect();return xt(a),!z||z.left==z.right?!1:_n=x.right-z.right<3}var On=`
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 se=a.slice(b,a.charAt(ee-1)=="\r"?ee-1:ee),ge=se.indexOf("\r");ge!=-1?(z.push(se.slice(0,ge)),b+=ge+1):(z.push(se),b=ee+1)}return z}:function(a){return a.split(/\r\n?|\n/)},Vn=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},Zt=function(){var a=lt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Xt=null;function an(a){if(Xt!=null)return Xt;var b=gt(a,lt("span","x")),z=b.getBoundingClientRect(),x=be(b,0,1).getBoundingClientRect();return Xt=Math.abs(z.left-x.left)>1}var xn={},ln={};function Pn(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),xn[a]=b}function Sn(a,b){ln[a]=b}function Rn(a){if(typeof a=="string"&&ln.hasOwnProperty(a))a=ln[a];else if(a&&typeof a.name=="string"&&ln.hasOwnProperty(a.name)){var b=ln[a.name];typeof b=="string"&&(b={name:b}),a=ie(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Rn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Rn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Er(a,b){b=Rn(b);var z=xn[b.name];if(!z)return Er(a,"text/plain");var x=z(a,b);if(Jn.hasOwnProperty(b.name)){var ee=Jn[b.name];for(var se in ee)ee.hasOwnProperty(se)&&(x.hasOwnProperty(se)&&(x["_"+se]=x[se]),x[se]=ee[se])}if(x.name=b.name,b.helperType&&(x.helperType=b.helperType),b.modeProps)for(var ge in b.modeProps)x[ge]=b.modeProps[ge];return x}var Jn={};function dr(a,b){var z=Jn.hasOwnProperty(a)?Jn[a]:Jn[a]={};st(b,z)}function yr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var z={};for(var x in b){var ee=b[x];ee instanceof Array&&(ee=ee.concat([])),z[x]=ee}return z}function gr(a,b){for(var z;a.innerMode&&(z=a.innerMode(b),!(!z||z.mode==a));)b=z.state,a=z.mode;return z||{mode:a,state:b}}function 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=Se(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Se(this.string,this.lineStart,this.tabSize):0)},Zr.prototype.indentation=function(){return Se(this.string,null,this.tabSize)-(this.lineStart?Se(this.string,this.lineStart,this.tabSize):0)},Zr.prototype.match=function(a,b,z){if(typeof a=="string"){var x=function(ge){return z?ge.toLowerCase():ge},ee=this.string.substr(this.pos,a.length);if(x(ee)==x(a))return b!==!1&&(this.pos+=a.length),!0}else{var se=this.string.slice(this.pos).match(a);return se&&se.index>0?null:(se&&b!==!1&&(this.pos+=se[0].length),se)}},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 Dn(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],se=ee.chunkSize();if(b<se){z=ee;break}b-=se}return z.lines[b]}function Zn(a,b,z){var x=[],ee=b.line;return a.iter(b.line,z.line+1,function(se){var ge=se.text;ee==z.line&&(ge=ge.slice(0,z.ch)),ee==b.line&&(ge=ge.slice(b.ch)),x.push(ge),++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 Mt(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 Vt(a,b){var z=a.first;e:do{for(var x=0;x<a.children.length;++x){var ee=a.children[x],se=ee.height;if(b<se){a=ee;continue e}b-=se,z+=ee.chunkSize()}return z}while(!a.lines);for(var ge=0;ge<a.lines.length;++ge){var _e=a.lines[ge],Ge=_e.height;if(b<Ge)break;b-=Ge}return z+ge}function ft(a,b){return b>=a.first&&b<a.first+a.size}function kt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function it(a,b,z){if(z===void 0&&(z=null),!(this instanceof it))return new it(a,b,z);this.line=a,this.ch=b,this.sticky=z}function ht(a,b){return a.line-b.line||a.ch-b.ch}function cn(a,b){return a.sticky==b.sticky&&ht(a,b)==0}function ar(a){return it(a.line,a.ch)}function mr(a,b){return ht(a,b)<0?b:a}function It(a,b){return ht(a,b)<0?a:b}function _t(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function Tt(a,b){if(b.line<a.first)return it(a.first,0);var z=a.first+a.size-1;return b.line>z?it(z,Dn(a,z).text.length):Kt(b,Dn(a,b.line).text.length)}function Kt(a,b){var z=a.ch;return z==null||z>b?it(a.line,b):z<0?it(a.line,0):a}function Fn(a,b){for(var z=[],x=0;x<b.length;x++)z[x]=Tt(a,b[x]);return z}var Hn=function(a,b){this.state=a,this.lookAhead=b},Gn=function(a,b,z,x){this.state=b,this.doc=a,this.line=z,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};Gn.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Gn.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}},Gn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Gn.fromSaved=function(a,b,z){return b instanceof Hn?new Gn(a,yr(a.mode,b.state),z,b.lookAhead):new Gn(a,yr(a.mode,b),z)},Gn.prototype.save=function(a){var b=a!==!1?yr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(b,this.maxLookAhead):b};function jn(a,b,z,x){var ee=[a.state.modeGen],se={};ta(a,b.text,a.doc.mode,z,function(ot,dn){return ee.push(ot,dn)},se,x);for(var ge=z.state,_e=function(ot){z.baseTokens=ee;var dn=a.state.overlays[ot],En=1,Yn=0;z.state=!0,ta(a,b.text,dn.mode,z,function(zn,Mr){for(var qr=En;Yn<zn;){var Ba=ee[En];Ba>zn&&ee.splice(En,1,zn,ee[En+1],Ba),En+=2,Yn=Math.min(zn,Ba)}if(Mr)if(dn.opaque)ee.splice(qr,En-qr,zn,"overlay "+Mr),En=qr+2;else for(;qr<En;qr+=2){var Ka=ee[qr+1];ee[qr+1]=(Ka?Ka+" ":"")+"overlay "+Mr}},se),z.state=ge,z.baseTokens=null,z.baseTokenPos=1},Ge=0;Ge<a.state.overlays.length;++Ge)_e(Ge);return{styles:ee,classes:se.bgClass||se.textClass?se:null}}function hr(a,b,z){if(!b.styles||b.styles[0]!=a.state.modeGen){var x=Pr(a,Mt(b)),ee=b.text.length>a.options.maxHighlightLength&&yr(a.doc.mode,x.state),se=jn(a,b,x);ee&&(x.state=ee),b.stateAfter=x.save(!ee),b.styles=se.styles,se.classes?b.styleClasses=se.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 Gn(x,!0,b);var se=xa(a,b,z),ge=se>x.first&&Dn(x,se-1).stateAfter,_e=ge?Gn.fromSaved(x,ge,se):new Gn(x,Vr(x.mode),se);return x.iter(se,b,function(Ge){Tr(a,Ge.text,_e);var ot=_e.line;Ge.stateAfter=ot==b-1||ot%5==0||ot>=ee.viewFrom&&ot<ee.viewTo?_e.save():null,_e.nextLine()}),z&&(x.modeFrontier=_e.line),_e}function Tr(a,b,z,x){var ee=a.doc.mode,se=new Zr(b,a.options.tabSize,z);for(se.start=se.pos=x||0,b==""&&Lr(ee,z.state);!se.eol();)Cr(ee,se,z.state),se.start=se.pos}function Lr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var z=gr(a,b);if(z.mode.blankLine)return z.mode.blankLine(z.state)}}function Cr(a,b,z,x){for(var ee=0;ee<10;ee++){x&&(x[0]=gr(a,z).mode);var se=a.token(b,z);if(b.pos>b.start)return se}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,se=ee.mode,ge;b=Tt(ee,b);var _e=Dn(ee,b.line),Ge=Pr(a,b.line,z),ot=new Zr(_e.text,a.options.tabSize,Ge),dn;for(x&&(dn=[]);(x||ot.pos<b.ch)&&!ot.eol();)ot.start=ot.pos,ge=Cr(se,ot,Ge.state),x&&dn.push(new Rr(ot,ge,yr(ee.mode,Ge.state)));return x?dn:new Rr(ot,ge,Ge.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,se,ge){var _e=z.flattenSpans;_e==null&&(_e=a.options.flattenSpans);var Ge=0,ot=null,dn=new Zr(b,a.options.tabSize,x),En,Yn=a.options.addModeClass&&[null];for(b==""&&oa(Lr(z,x.state),se);!dn.eol();){if(dn.pos>a.options.maxHighlightLength?(_e=!1,ge&&Tr(a,b,x,dn.pos),dn.pos=b.length,En=null):En=oa(Cr(z,dn,x.state,Yn),se),Yn){var zn=Yn[0].name;zn&&(En="m-"+(En?zn+" "+En:zn))}if(!_e||ot!=En){for(;Ge<dn.start;)Ge=Math.min(dn.start,Ge+5e3),ee(Ge,ot);ot=En}dn.start=dn.pos}for(;Ge<dn.pos;){var Mr=Math.min(dn.pos,Ge+5e3);ee(Mr,ot),Ge=Mr}}function xa(a,b,z){for(var x,ee,se=a.doc,ge=z?-1:b-(a.doc.mode.innerMode?1e3:100),_e=b;_e>ge;--_e){if(_e<=se.first)return se.first;var Ge=Dn(se,_e-1),ot=Ge.stateAfter;if(ot&&(!z||_e+(ot instanceof Hn?ot.lookAhead:0)<=se.modeFrontier))return _e;var dn=Se(Ge.text,null,a.options.tabSize);(ee==null||x>dn)&&(ee=_e-1,x=dn)}return ee}function Ia(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=Dn(a,x).stateAfter;if(ee&&(!(ee instanceof Hn)||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 Pa(){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 se=a[ee],ge=se.marker,_e=se.from==null||(ge.inclusiveLeft?se.from<=b:se.from<b);if(_e||se.from==b&&ge.type=="bookmark"&&(!z||!se.marker.insertLeft)){var Ge=se.to==null||(ge.inclusiveRight?se.to>=b:se.to>b);(x||(x=[])).push(new pa(ge,se.from,Ge?null:se.to))}}return x}function Kr(a,b,z){var x;if(a)for(var ee=0;ee<a.length;++ee){var se=a[ee],ge=se.marker,_e=se.to==null||(ge.inclusiveRight?se.to>=b:se.to>b);if(_e||se.from==b&&ge.type=="bookmark"&&(!z||se.marker.insertLeft)){var Ge=se.from==null||(ge.inclusiveLeft?se.from<=b:se.from<b);(x||(x=[])).push(new pa(ge,Ge?null:se.from-b,se.to==null?null:se.to-b))}}return x}function Ya(a,b){if(b.full)return null;var z=ft(a,b.from.line)&&Dn(a,b.from.line).markedSpans,x=ft(a,b.to.line)&&Dn(a,b.to.line).markedSpans;if(!z&&!x)return null;var ee=b.from.ch,se=b.to.ch,ge=ht(b.from,b.to)==0,_e=la(z,ee,ge),Ge=Kr(x,se,ge),ot=b.text.length==1,dn=mt(b.text).length+(ot?ee:0);if(_e)for(var En=0;En<_e.length;++En){var Yn=_e[En];if(Yn.to==null){var zn=kr(Ge,Yn.marker);zn?ot&&(Yn.to=zn.to==null?null:zn.to+dn):Yn.to=ee}}if(Ge)for(var Mr=0;Mr<Ge.length;++Mr){var qr=Ge[Mr];if(qr.to!=null&&(qr.to+=dn),qr.from==null){var Ba=kr(_e,qr.marker);Ba||(qr.from=dn,ot&&(_e||(_e=[])).push(qr))}else qr.from+=dn,ot&&(_e||(_e=[])).push(qr)}_e&&(_e=Mi(_e)),Ge&&Ge!=_e&&(Ge=Mi(Ge));var Ka=[_e];if(!ot){var ii=b.text.length-2,Wa;if(ii>0&&_e)for(var Ei=0;Ei<_e.length;++Ei)_e[Ei].to==null&&(Wa||(Wa=[])).push(new pa(_e[Ei].marker,null,null));for(var to=0;to<ii;++to)Ka.push(Wa);Ka.push(Ge)}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(zn){if(zn.markedSpans)for(var Mr=0;Mr<zn.markedSpans.length;++Mr){var qr=zn.markedSpans[Mr].marker;qr.readOnly&&(!x||vt(x,qr)==-1)&&(x||(x=[])).push(qr)}}),!x)return null;for(var ee=[{from:b,to:z}],se=0;se<x.length;++se)for(var ge=x[se],_e=ge.find(0),Ge=0;Ge<ee.length;++Ge){var ot=ee[Ge];if(!(ht(ot.to,_e.from)<0||ht(ot.from,_e.to)>0)){var dn=[Ge,1],En=ht(ot.from,_e.from),Yn=ht(ot.to,_e.to);(En<0||!ge.inclusiveLeft&&!En)&&dn.push({from:ot.from,to:_e.from}),(Yn>0||!ge.inclusiveRight&&!Yn)&&dn.push({from:_e.to,to:ot.to}),ee.splice.apply(ee,dn),Ge+=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 pi(a){return a.inclusiveLeft?-1:0}function Wi(a){return a.inclusiveRight?1:0}function Ci(a,b){var z=a.lines.length-b.lines.length;if(z!=0)return z;var x=a.find(),ee=b.find(),se=ht(x.from,ee.from)||pi(a)-pi(b);if(se)return-se;var ge=ht(x.to,ee.to)||Wi(a)-Wi(b);return ge||b.id-a.id}function ei(a,b){var z=ya&&a.markedSpans,x;if(z)for(var ee=void 0,se=0;se<z.length;++se)ee=z[se],ee.marker.collapsed&&(b?ee.from:ee.to)==null&&(!x||Ci(x,ee.marker)<0)&&(x=ee.marker);return x}function Ar(a){return ei(a,!0)}function Qn(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 se=z[ee];se.marker.collapsed&&(se.from==null||se.from<b)&&(se.to==null||se.to>b)&&(!x||Ci(x,se.marker)<0)&&(x=se.marker)}return x}function Sr(a,b,z,x,ee){var se=Dn(a,b),ge=ya&&se.markedSpans;if(ge)for(var _e=0;_e<ge.length;++_e){var Ge=ge[_e];if(Ge.marker.collapsed){var ot=Ge.marker.find(0),dn=ht(ot.from,z)||pi(Ge.marker)-pi(ee),En=ht(ot.to,x)||Wi(Ge.marker)-Wi(ee);if(!(dn>=0&&En<=0||dn<=0&&En>=0)&&(dn<=0&&(Ge.marker.inclusiveRight&&ee.inclusiveLeft?ht(ot.to,z)>=0:ht(ot.to,z)>0)||dn>=0&&(Ge.marker.inclusiveRight&&ee.inclusiveLeft?ht(ot.from,x)<=0:ht(ot.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=Qn(a);)a=b.find(1,!0).line;return a}function sa(a){for(var b,z;b=Qn(a);)a=b.find(1,!0).line,(z||(z=[])).push(a);return z}function br(a,b){var z=Dn(a,b),x=tr(z);return z==x?b:Mt(x)}function Dr(a,b){if(b>a.lastLine())return b;var z=Dn(a,b),x;if(!jr(a,z))return b;for(;x=Qn(z);)z=x.find(1,!0).line;return Mt(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,se=0;se<b.markedSpans.length;++se)if(ee=b.markedSpans[se],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 _a(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 se=z.parent;se;z=se,se=z.parent)for(var ge=0;ge<se.children.length;++ge){var _e=se.children[ge];if(_e==z)break;b+=_e.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=Qn(x);){var se=z.find(0,!0);b-=x.text.length-se.from.ch,x=se.to.line,b+=x.text.length-se.to.ch}return b}function ea(a){var b=a.display,z=a.doc;b.maxLine=Dn(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 Mt(this)},Je(ai);function yi(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=Ue("span",null,null,Ce?"padding-right: .1px":null),x={pre:Ue("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 se=ee?b.rest[ee-1]:b.line,ge=void 0;x.pos=0,x.addToken=$o,Un(a.display.measure)&&(ge=Xe(se,a.doc.direction))&&(x.addToken=Da(x.addToken,ge)),x.map=[];var _e=b!=a.display.externalMeasured&&Mt(se);ri(se,x,hr(a,se,_e)),se.styleClasses&&(se.styleClasses.bgClass&&(x.bgClass=St(se.styleClasses.bgClass,x.bgClass||"")),se.styleClasses.textClass&&(x.textClass=St(se.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(en(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 Ge=x.content.lastChild;(/\bcm-tab\b/.test(Ge.className)||Ge.querySelector&&Ge.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return gn(a,"renderLine",a,b.line,x.pre),x.pre.className&&(x.textClass=St(x.pre.className,x.textClass||"")),x}function No(a){var b=lt("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,se,ge){if(b){var _e=a.splitSpaces?Wo(b,a.trailingSpace):b,Ge=a.cm.state.specialChars,ot=!1,dn;if(!Ge.test(b))a.col+=b.length,dn=document.createTextNode(_e),a.map.push(a.pos,a.pos+b.length,dn),xe&&Ee<9&&(ot=!0),a.pos+=b.length;else{dn=document.createDocumentFragment();for(var En=0;;){Ge.lastIndex=En;var Yn=Ge.exec(b),zn=Yn?Yn.index-En:b.length-En;if(zn){var Mr=document.createTextNode(_e.slice(En,En+zn));xe&&Ee<9?dn.appendChild(lt("span",[Mr])):dn.appendChild(Mr),a.map.push(a.pos,a.pos+zn,Mr),a.col+=zn,a.pos+=zn}if(!Yn)break;En+=zn+1;var qr=void 0;if(Yn[0]==" "){var Ba=a.cm.options.tabSize,Ka=Ba-a.col%Ba;qr=dn.appendChild(lt("span",Ct(Ka),"cm-tab")),qr.setAttribute("role","presentation"),qr.setAttribute("cm-text"," "),a.col+=Ka}else Yn[0]=="\r"||Yn[0]==`
`?(qr=dn.appendChild(lt("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]),xe&&Ee<9?dn.appendChild(lt("span",[qr])):dn.appendChild(qr),a.col+=1);a.map.push(a.pos,a.pos+1,qr),a.pos++}}if(a.trailingSpace=_e.charCodeAt(b.length-1)==32,z||x||ee||ot||se||ge){var ii=z||"";x&&(ii+=x),ee&&(ii+=ee);var Wa=lt("span",[dn],ii,se);if(ge)for(var Ei in ge)ge.hasOwnProperty(Ei)&&Ei!="style"&&Ei!="class"&&Wa.setAttribute(Ei,ge[Ei]);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 se=a.charAt(ee);se==" "&&z&&(ee==a.length-1||a.charCodeAt(ee+1)==32)&&(se="\xA0"),x+=se,z=se==" "}return x}function Da(a,b){return function(z,x,ee,se,ge,_e,Ge){ee=ee?ee+" cm-force-border":"cm-force-border";for(var ot=z.pos,dn=ot+x.length;;){for(var En=void 0,Yn=0;Yn<b.length&&(En=b[Yn],!(En.to>ot&&En.from<=ot));Yn++);if(En.to>=dn)return a(z,x,ee,se,ge,_e,Ge);a(z,x.slice(0,En.to-ot),ee,se,null,_e,Ge),se=null,x=x.slice(En.to-ot),ot=En.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,se=0;if(!x){for(var ge=1;ge<z.length;ge+=2)b.addToken(b,ee.slice(se,se=z[ge]),Yi(z[ge+1],b.cm.options));return}for(var _e=ee.length,Ge=0,ot=1,dn="",En,Yn,zn=0,Mr,qr,Ba,Ka,ii;;){if(zn==Ge){Mr=qr=Ba=Yn="",ii=null,Ka=null,zn=1/0;for(var Wa=[],Ei=void 0,to=0;to<x.length;++to){var Gi=x[to],Bo=Gi.marker;if(Bo.type=="bookmark"&&Gi.from==Ge&&Bo.widgetNode)Wa.push(Bo);else if(Gi.from<=Ge&&(Gi.to==null||Gi.to>Ge||Bo.collapsed&&Gi.to==Ge&&Gi.from==Ge)){if(Gi.to!=null&&Gi.to!=Ge&&zn>Gi.to&&(zn=Gi.to,qr=""),Bo.className&&(Mr+=" "+Bo.className),Bo.css&&(Yn=(Yn?Yn+";":"")+Bo.css),Bo.startStyle&&Gi.from==Ge&&(Ba+=" "+Bo.startStyle),Bo.endStyle&&Gi.to==zn&&(Ei||(Ei=[])).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||Ci(Ka.marker,Bo)<0)&&(Ka=Gi)}else Gi.from>Ge&&zn>Gi.from&&(zn=Gi.from)}if(Ei)for(var ql=0;ql<Ei.length;ql+=2)Ei[ql+1]==zn&&(qr+=" "+Ei[ql]);if(!Ka||Ka.from==Ge)for(var Fl=0;Fl<Wa.length;++Fl)Ii(b,0,Wa[Fl]);if(Ka&&(Ka.from||0)==Ge){if(Ii(b,(Ka.to==null?_e+1:Ka.to)-Ge,Ka.marker,Ka.from==null),Ka.to==null)return;Ka.to==Ge&&(Ka=!1)}}if(Ge>=_e)break;for(var Cs=Math.min(_e,zn);;){if(dn){var fs=Ge+dn.length;if(!Ka){var kl=fs>Cs?dn.slice(0,Cs-Ge):dn;b.addToken(b,kl,En?En+Mr:Mr,Ba,Ge+kl.length==zn?qr:"",Yn,ii)}if(fs>=Cs){dn=dn.slice(Cs-Ge),Ge=Cs;break}Ge=fs,Ba=""}dn=ee.slice(se,se=z[ot++]),En=Yi(z[ot++],b.cm.options)}}}function So(a,b,z){this.line=b,this.rest=sa(b),this.size=this.rest?Mt(mt(this.rest))-z+1:1,this.node=this.text=null,this.hidden=jr(a,b)}function di(a,b,z){for(var x=[],ee,se=b;se<z;se=ee){var ge=new So(a.doc,Dn(a.doc,se),se);ee=se+ge.size,x.push(ge)}return x}var il=null;function $l(a){il?il.ops.push(a):a.ownsGroup=il={ops:[a],delayedCallbacks:[]}}function Al(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{Al(z)}finally{il=null,b(z)}}var Yo=null;function no(a,b){var z=un(a,b);if(z.length){var x=Array.prototype.slice.call(arguments,2),ee;il?ee=il.delayedCallbacks:Yo?ee=Yo:(ee=Yo=[],setTimeout(Ol,0));for(var se=function(_e){ee.push(function(){return z[_e].apply(null,x)})},ge=0;ge<z.length;++ge)se(ge)}}function Ol(){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 se=b.changes[ee];se=="text"?as(a,b):se=="gutter"?Qi(a,b,z,x):se=="class"?Ni(a,b):se=="widget"&&Pi(a,b,x)}b.changes=null}function Nl(a){return a.node==a.text&&(a.node=lt("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&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=Nl(b);b.background=x.insertBefore(lt("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?Nl(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=Nl(b);b.gutterBackground=lt("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 se=b.line.gutterMarkers;if(a.options.lineNumbers||se){var ge=Nl(b),_e=b.gutter=lt("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(_e),ge.insertBefore(_e,b.text),b.line.gutterClass&&(_e.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!se||!se["CodeMirror-linenumbers"])&&(b.lineNumber=_e.appendChild(lt("div",kt(a.options,z),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),se)for(var Ge=0;Ge<a.display.gutterSpecs.length;++Ge){var ot=a.display.gutterSpecs[Ge].className,dn=se.hasOwnProperty(ot)&&se[ot];dn&&_e.appendChild(lt("div",[dn],"CodeMirror-gutter-elt","left: "+x.gutterLeft[ot]+"px; width: "+x.gutterWidth[ot]+"px"))}}}function Pi(a,b,z){b.alignable&&(b.alignable=null);for(var x=Ve("CodeMirror-linewidget"),ee=b.node.firstChild,se=void 0;ee;ee=se)se=ee.nextSibling,x.test(ee.className)&&b.node.removeChild(ee);Hi(a,b,z)}function hi(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 se=Nl(z),ge=0,_e=b.widgets;ge<_e.length;++ge){var Ge=_e[ge],ot=lt("div",[Ge.node],"CodeMirror-linewidget"+(Ge.className?" "+Ge.className:""));Ge.handleMouseEvents||ot.setAttribute("cm-ignore-events","true"),Il(Ge,ot,z,x),a.display.input.setUneditable(ot),ee&&Ge.above?se.insertBefore(ot,z.gutter||z.text):se.appendChild(ot),no(Ge,"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(!We(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;"),gt(b.display.measure,lt("div",[a.node],null,z))}return a.height=a.node.parentNode.offsetHeight}function Qo(a,b){for(var z=Nt(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 vn(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function yn(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=gt(a.measure,lt("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 Nn(a){return Ht-a.display.nativeBarWidth}function wr(a){return a.display.scroller.clientWidth-Nn(a)-a.display.barWidth}function Or(a){return a.display.scroller.clientHeight-Nn(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 se=b.measure.heights=[];if(x){b.measure.width=ee;for(var ge=b.text.firstChild.getClientRects(),_e=0;_e<ge.length-1;_e++){var Ge=ge[_e],ot=ge[_e+1];Math.abs(Ge.bottom-ot.bottom)>2&&se.push((Ge.bottom+ot.top)/2-z.top)}}se.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(Mt(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=Mt(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,gt(a.display.lineMeasure,ee.pre),x}function er(a,b,z,x){return xi(a,na(a,b),z,x)}function vr(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Fa(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=Mt(b),x=vr(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 xi(a,b,z,x,ee){b.before&&(z=-1);var se=z+(x||""),ge;return b.cache.hasOwnProperty(se)?ge=b.cache[se]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(rr(a,b.view,b.rect),b.hasHeights=!0),ge=Ha(a,b,z,x),ge.bogus||(b.cache[se]=ge)),{left:ge.left,right:ge.right,top:ee?ge.rtop:ge.top,bottom:ee?ge.rbottom:ge.bottom}}var ki={left:0,right:0,top:0,bottom:0};function fo(a,b,z){for(var x,ee,se,ge,_e,Ge,ot=0;ot<a.length;ot+=3)if(_e=a[ot],Ge=a[ot+1],b<_e?(ee=0,se=1,ge="left"):b<Ge?(ee=b-_e,se=ee+1):(ot==a.length-3||b==Ge&&a[ot+3]>b)&&(se=Ge-_e,ee=se-1,b>=Ge&&(ge="right")),ee!=null){if(x=a[ot+2],_e==Ge&&z==(x.insertLeft?"left":"right")&&(ge=z),z=="left"&&ee==0)for(;ot&&a[ot-2]==a[ot-3]&&a[ot-1].insertLeft;)x=a[(ot-=3)+2],ge="left";if(z=="right"&&ee==Ge-_e)for(;ot<a.length-3&&a[ot+3]==a[ot+4]&&!a[ot+5].insertLeft;)x=a[(ot+=3)+2],ge="right";break}return{node:x,start:ee,end:se,collapse:ge,coverStart:_e,coverEnd:Ge}}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),se=ee.node,ge=ee.start,_e=ee.end,Ge=ee.collapse,ot;if(se.nodeType==3){for(var dn=0;dn<4;dn++){for(;ge&&Ze(b.line.text.charAt(ee.coverStart+ge));)--ge;for(;ee.coverStart+_e<ee.coverEnd&&Ze(b.line.text.charAt(ee.coverStart+_e));)++_e;if(xe&&Ee<9&&ge==0&&_e==ee.coverEnd-ee.coverStart?ot=se.parentNode.getBoundingClientRect():ot=ro(be(se,ge,_e).getClientRects(),x),ot.left||ot.right||ge==0)break;_e=ge,ge=ge-1,Ge="right"}xe&&Ee<11&&(ot=ma(a.display.measure,ot))}else{ge>0&&(Ge=x="right");var En;a.options.lineWrapping&&(En=se.getClientRects()).length>1?ot=En[x=="right"?En.length-1:0]:ot=se.getBoundingClientRect()}if(xe&&Ee<9&&!ge&&(!ot||!ot.left&&!ot.right)){var Yn=se.parentNode.getClientRects()[0];Yn?ot={left:Yn.left,right:Yn.left+aa(a.display),top:Yn.top,bottom:Yn.bottom}:ot=ki}for(var zn=ot.top-b.rect.top,Mr=ot.bottom-b.rect.top,qr=(zn+Mr)/2,Ba=b.view.measure.heights,Ka=0;Ka<Ba.length-1&&!(qr<Ba[Ka]);Ka++);var ii=Ka?Ba[Ka-1]:0,Wa=Ba[Ka],Ei={left:(Ge=="right"?ot.right:ot.left)-b.rect.left,right:(Ge=="left"?ot.left:ot.right)-b.rect.left,top:ii,bottom:Wa};return!ot.left&&!ot.right&&(Ei.bogus=!0),a.options.singleCursorHeightPerLine||(Ei.rtop=zn,Ei.rbottom=Mr),Ei}function ma(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!an(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,xt(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&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function _o(){return De&&Te?-(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 se=Ai(b);z.top+=se,z.bottom+=se}if(x=="line")return z;x||(x="local");var ge=_a(b);if(x=="local"?ge+=Jo(a.display):ge-=a.display.viewOffset,x=="page"||x=="window"){var _e=a.display.lineSpace.getBoundingClientRect();ge+=_e.top+(x=="window"?0:_o());var Ge=_e.left+(x=="window"?0:vo());z.left+=Ge,z.right+=Ge}return z.top+=ge,z.bottom+=ge,z}function bi(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 se=a.display.sizer.getBoundingClientRect();x+=se.left,ee+=se.top}var ge=a.display.lineSpace.getBoundingClientRect();return{left:x-ge.left,top:ee-ge.top}}function ga(a,b,z,x,ee){return x||(x=Dn(a.doc,b.line)),go(a,x,er(a,x,b.ch,ee),z)}function vi(a,b,z,x,ee,se){x=x||Dn(a.doc,b.line),ee||(ee=na(a,x));function ge(Mr,qr){var Ba=xi(a,ee,Mr,qr?"right":"left",se);return qr?Ba.left=Ba.right:Ba.right=Ba.left,go(a,x,Ba,z)}var _e=Xe(x,a.doc.direction),Ge=b.ch,ot=b.sticky;if(Ge>=x.text.length?(Ge=x.text.length,ot="before"):Ge<=0&&(Ge=0,ot="after"),!_e)return ge(ot=="before"?Ge-1:Ge,ot=="before");function dn(Mr,qr,Ba){var Ka=_e[qr],ii=Ka.level==1;return ge(Ba?Mr-1:Mr,ii!=Ba)}var En=Ft(_e,Ge,ot),Yn=yt,zn=dn(Ge,En,ot=="before");return Yn!=null&&(zn.other=dn(Ge,Yn,ot!="before")),zn}function fi(a,b){var z=0;b=Tt(a.doc,b),a.options.lineWrapping||(z=aa(a.display)*b.ch);var x=Dn(a.doc,b.line),ee=_a(x)+Jo(a.display);return{left:z,right:z,top:ee,bottom:ee+x.height}}function si(a,b,z,x,ee){var se=it(a,b,z);return se.xRel=ee,x&&(se.outside=x),se}function Bt(a,b,z){var x=a.doc;if(z+=a.display.viewOffset,z<0)return si(x.first,0,null,-1,-1);var ee=Vt(x,z),se=x.first+x.size-1;if(ee>se)return si(x.first+x.size-1,Dn(x,se).text.length,null,1,1);b<0&&(b=0);for(var ge=Dn(x,ee);;){var _e=Va(a,ge,ee,b,z),Ge=xr(ge,_e.ch+(_e.xRel>0||_e.outside>0?1:0));if(!Ge)return _e;var ot=Ge.find(1);if(ot.line==ee)return ot;ge=Dn(x,ee=ot.line)}}function Qt(a,b,z,x){x-=Ai(b);var ee=b.text.length,se=at(function(ge){return xi(a,z,ge-1).bottom<=x},ee,0);return ee=at(function(ge){return xi(a,z,ge).top>x},se,ee),{begin:se,end:ee}}function rn(a,b,z,x){z||(z=na(a,b));var ee=go(a,b,xi(a,z,x),"line").top;return Qt(a,b,z,ee)}function In(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-=_a(b);var se=na(a,b),ge=Ai(b),_e=0,Ge=b.text.length,ot=!0,dn=Xe(b,a.doc.direction);if(dn){var En=(a.options.lineWrapping?qn:zr)(a,b,z,se,dn,x,ee);ot=En.level!=1,_e=ot?En.from:En.to-1,Ge=ot?En.to:En.from-1}var Yn=null,zn=null,Mr=at(function(to){var Gi=xi(a,se,to);return Gi.top+=ge,Gi.bottom+=ge,In(Gi,x,ee,!1)?(Gi.top<=ee&&Gi.left<=x&&(Yn=to,zn=Gi),!0):!1},_e,Ge),qr,Ba,Ka=!1;if(zn){var ii=x-zn.left<zn.right-x,Wa=ii==ot;Mr=Yn+(Wa?0:1),Ba=Wa?"after":"before",qr=ii?zn.left:zn.right}else{!ot&&(Mr==Ge||Mr==_e)&&Mr++,Ba=Mr==0?"after":Mr==b.text.length?"before":xi(a,se,Mr-(ot?1:0)).bottom+ge<=ee==ot?"after":"before";var Ei=vi(a,it(z,Mr,Ba),"line",b,se);qr=Ei.left,Ka=ee<Ei.top?-1:ee>=Ei.bottom?1:0}return Mr=Ot(b.text,Mr,1),si(z,Mr,Ba,Ka,x-qr)}function zr(a,b,z,x,ee,se,ge){var _e=at(function(En){var Yn=ee[En],zn=Yn.level!=1;return In(vi(a,it(z,zn?Yn.to:Yn.from,zn?"before":"after"),"line",b,x),se,ge,!0)},0,ee.length-1),Ge=ee[_e];if(_e>0){var ot=Ge.level!=1,dn=vi(a,it(z,ot?Ge.from:Ge.to,ot?"after":"before"),"line",b,x);In(dn,se,ge,!0)&&dn.top>ge&&(Ge=ee[_e-1])}return Ge}function qn(a,b,z,x,ee,se,ge){var _e=Qt(a,b,x,ge),Ge=_e.begin,ot=_e.end;/\s/.test(b.text.charAt(ot-1))&&ot--;for(var dn=null,En=null,Yn=0;Yn<ee.length;Yn++){var zn=ee[Yn];if(!(zn.from>=ot||zn.to<=Ge)){var Mr=zn.level!=1,qr=xi(a,x,Mr?Math.min(ot,zn.to)-1:Math.max(Ge,zn.from)).right,Ba=qr<se?se-qr+1e9:qr-se;(!dn||En>Ba)&&(dn=zn,En=Ba)}}return dn||(dn=ee[ee.length-1]),dn.from<Ge&&(dn={from:Ge,to:dn.to,level:dn.level}),dn.to>ot&&(dn={from:dn.from,to:ot,level:dn.level}),dn}var pr;function Fr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(pr==null){pr=lt("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)pr.appendChild(document.createTextNode("x")),pr.appendChild(lt("br"));pr.appendChild(document.createTextNode("x"))}gt(a.measure,pr);var z=pr.offsetHeight/50;return z>3&&(a.cachedTextHeight=z),xt(a.measure),z||1}function aa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=lt("span","xxxxxxxxxx"),z=lt("pre",[b],"CodeMirror-line-like");gt(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,se=b.gutters.firstChild,ge=0;se;se=se.nextSibling,++ge){var _e=a.display.gutterSpecs[ge].className;z[_e]=se.offsetLeft+se.clientLeft+ee,x[_e]=se.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 se=0;if(ee.widgets)for(var ge=0;ge<ee.widgets.length;ge++)ee.widgets[ge].height&&(se+=ee.widgets[ge].height);return z?se+(Math.ceil(ee.text.length/x)||1)*b:se+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&&Nt(b).getAttribute("cm-not-content")=="true")return null;var se,ge,_e=ee.lineSpace.getBoundingClientRect();try{se=b.clientX-_e.left,ge=b.clientY-_e.top}catch(En){return null}var Ge=Bt(a,se,ge),ot;if(x&&Ge.xRel>0&&(ot=Dn(a.doc,Ge.line).text).length==Ge.ch){var dn=Se(ot,ot.length,a.options.tabSize)-ot.length;Ge=it(Ge.line,Math.max(0,Math.round((se-yn(a.display).left)/aa(a.display))-dn))}return Ge}function Fa(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&&br(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 se=Yr(a,z,z+x,1);se?(ee.view=ee.view.slice(se.index),ee.viewFrom=se.lineN,ee.viewTo+=x):cr(a)}else if(z>=ee.viewTo){var ge=Yr(a,b,b,-1);ge?(ee.view=ee.view.slice(0,ge.index),ee.viewTo=ge.lineN):cr(a)}else{var _e=Yr(a,b,b,-1),Ge=Yr(a,z,z+x,1);_e&&Ge?(ee.view=ee.view.slice(0,_e.index).concat(di(a,_e.lineN,Ge.lineN)).concat(ee.view.slice(Ge.index)),ee.viewTo+=x):cr(a)}var ot=ee.externalMeasured;ot&&(z<ot.lineN?ot.lineN+=x:b<ot.lineN+ot.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 se=x.view[Fa(a,b)];if(se.node!=null){var ge=se.changes||(se.changes=[]);vt(ge,z)==-1&&ge.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=Fa(a,b),se,ge=a.display.view;if(!ya||z==a.doc.first+a.doc.size)return{index:ee,lineN:z};for(var _e=a.display.viewFrom,Ge=0;Ge<ee;Ge++)_e+=ge[Ge].size;if(_e!=b){if(x>0){if(ee==ge.length-1)return null;se=_e+ge[ee].size-b,ee++}else se=_e-b;b+=se,z+=se}for(;br(a.doc,z)!=z;){if(ee==(x<0?0:ge.length-1))return null;z+=x*ge[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=di(a,b,z),x.viewFrom=b):(x.viewFrom>b?x.view=di(a,b,x.viewFrom).concat(x.view):x.viewFrom<b&&(x.view=x.view.slice(Fa(a,b))),x.viewFrom=b,x.viewTo<z?x.view=x.view.concat(di(a,x.viewTo,z)):x.viewTo>z&&(x.view=x.view.slice(0,Fa(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(),se=x.selection=document.createDocumentFragment(),ge=0;ge<z.sel.ranges.length;ge++)if(!(!b&&ge==z.sel.primIndex)){var _e=z.sel.ranges[ge];if(!(_e.from().line>=a.display.viewTo||_e.to().line<a.display.viewFrom)){var Ge=_e.empty();(Ge||a.options.showCursorWhenSelecting)&&Aa(a,_e.head,ee),Ge||qo(a,_e,se)}}return x}function Aa(a,b,z){var x=vi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ee=z.appendChild(lt("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 se=z.appendChild(lt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));se.style.display="",se.style.left=x.other.left+"px",se.style.top=x.other.top+"px",se.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,se=document.createDocumentFragment(),ge=yn(a.display),_e=ge.left,Ge=Math.max(x.sizerWidth,wr(a)-x.sizer.offsetLeft)-ge.right,ot=ee.direction=="ltr";function dn(Wa,Ei,to,Gi){Ei<0&&(Ei=0),Ei=Math.round(Ei),Gi=Math.round(Gi),se.appendChild(lt("div",null,"CodeMirror-selected","position: absolute; left: "+Wa+`px;
top: `+Ei+"px; width: "+(to==null?Ge-Wa:to)+`px;
height: `+(Gi-Ei)+"px"))}function En(Wa,Ei,to){var Gi=Dn(ee,Wa),Bo=Gi.text.length,ml,ql;function Fl(kl,ms){return ga(a,it(Wa,kl),"div",Gi,ms)}function Cs(kl,ms,ns){var Ll=rn(a,Gi,null,kl),Zl=ms=="ltr"==(ns=="after")?"left":"right",Pl=ns=="after"?Ll.begin:Ll.end-(/\s/.test(Gi.text.charAt(Ll.end-1))?2:1);return Fl(Pl,Zl)[Zl]}var fs=Xe(Gi,ee.direction);return qe(fs,Ei||0,to==null?Bo:to,function(kl,ms,ns,Ll){var Zl=ns=="ltr",Pl=Fl(kl,Zl?"left":"right"),ps=Fl(ms-1,Zl?"right":"left"),Tu=Ei==null&&kl==0,ou=to==null&&ms==Bo,rs=Ll==0,te=!fs||Ll==fs.length-1;if(ps.top-Pl.top<=3){var ne=(ot?Tu:ou)&&rs,le=(ot?ou:Tu)&&te,he=ne?_e:(Zl?Pl:ps).left,$e=le?Ge:(Zl?ps:Pl).right;dn(he,Pl.top,$e-he,Pl.bottom)}else{var He,et,dt,tn;Zl?(He=ot&&Tu&&rs?_e:Pl.left,et=ot?Ge:Cs(kl,ns,"before"),dt=ot?_e:Cs(ms,ns,"after"),tn=ot&&ou&&te?Ge:ps.right):(He=ot?Cs(kl,ns,"before"):_e,et=!ot&&Tu&&rs?Ge:Pl.right,dt=!ot&&ou&&te?_e:ps.left,tn=ot?Cs(ms,ns,"after"):Ge),dn(He,Pl.top,et-He,Pl.bottom),Pl.bottom<ps.top&&dn(_e,Pl.bottom,null,ps.top),dn(dt,ps.top,tn-dt,ps.bottom)}(!ml||ao(Pl,ml)<0)&&(ml=Pl),ao(ps,ml)<0&&(ml=ps),(!ql||ao(Pl,ql)<0)&&(ql=Pl),ao(ps,ql)<0&&(ql=ps)}),{start:ml,end:ql}}var Yn=b.from(),zn=b.to();if(Yn.line==zn.line)En(Yn.line,Yn.ch,zn.ch);else{var Mr=Dn(ee,Yn.line),qr=Dn(ee,zn.line),Ba=tr(Mr)==tr(qr),Ka=En(Yn.line,Yn.ch,Ba?Mr.text.length+1:null).end,ii=En(zn.line,Ba?0:null,zn.ch).start;Ba&&(Ka.top<ii.top-2?(dn(Ka.right,Ka.top,null,Ka.bottom),dn(_e,ii.top,ii.left,ii.bottom)):dn(Ka.right,Ka.top,ii.left-Ka.right,Ka.bottom)),Ka.bottom<ii.top&&dn(_e,Ka.bottom,null,ii.top)}z.appendChild(se)}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()||Tl(a),b.cursorDiv.style.visibility=(z=!z)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Xl(a){a.state.focused||(a.display.input.focus(),_l(a))}function Oi(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Tl(a))},100)}function _l(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 Tl(a,b){a.state.delayingBlurEvent||(a.state.focused&&(gn(a,"blur",a,b),a.state.focused=!1,Ye(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],se=a.options.lineWrapping,ge=void 0,_e=0;if(!ee.hidden){if(xe&&Ee<8){var Ge=ee.node.offsetTop+ee.node.offsetHeight;ge=Ge-z,z=Ge}else{var ot=ee.node.getBoundingClientRect();ge=ot.bottom-ot.top,!se&&ee.text.firstChild&&(_e=ee.text.firstChild.getBoundingClientRect().right-ot.left-1)}var dn=ee.line.height-ge;if((dn>.005||dn<-.005)&&(ur(ee.line,ge),bo(ee.line),ee.rest))for(var En=0;En<ee.rest.length;En++)bo(ee.rest[En]);if(_e>a.display.sizerWidth){var Yn=Math.ceil(_e/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,se=Vt(b,x),ge=Vt(b,ee);if(z&&z.ensure){var _e=z.ensure.from.line,Ge=z.ensure.to.line;_e<se?(se=_e,ge=Vt(b,_a(Dn(b,_e))+a.wrapper.clientHeight)):Math.min(Ge,b.lastLine())>=ge&&(se=Vt(b,_a(Dn(b,Ge))-a.wrapper.clientHeight),ge=Ge)}return{from:se,to:Math.max(ge,se+1)}}function Eo(a,b){if(!Rt(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&&!ct){var se=lt("div","\u200B",null,`position: absolute;
top: `+(b.top-z.viewOffset-Jo(a.display))+`px;
height: `+(b.bottom-b.top+Nn(a)+z.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(se),se.scrollIntoView(ee),a.display.lineSpace.removeChild(se)}}}function yl(a,b,z,x){x==null&&(x=0);var ee;!a.options.lineWrapping&&b==z&&(b=b.ch?it(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,z=b.sticky=="before"?it(b.line,b.ch+1,"before"):b);for(var se=0;se<5;se++){var ge=!1,_e=vi(a,b),Ge=!z||z==b?_e:vi(a,z);ee={left:Math.min(_e.left,Ge.left),top:Math.min(_e.top,Ge.top)-x,right:Math.max(_e.left,Ge.left),bottom:Math.max(_e.bottom,Ge.bottom)+x};var ot=Ms(a,ee),dn=a.doc.scrollTop,En=a.doc.scrollLeft;if(ot.scrollTop!=null&&(js(a,ot.scrollTop),Math.abs(a.doc.scrollTop-dn)>1&&(ge=!0)),ot.scrollLeft!=null&&(gs(a,ot.scrollLeft),Math.abs(a.doc.scrollLeft-En)>1&&(ge=!0)),!ge)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,se=Or(a),ge={};b.bottom-b.top>se&&(b.bottom=b.top+se);var _e=a.doc.height+vn(z),Ge=b.top<x,ot=b.bottom>_e-x;if(b.top<ee)ge.scrollTop=Ge?0:b.top;else if(b.bottom>ee+se){var dn=Math.min(b.top,(ot?_e:b.bottom)-se);dn!=ee&&(ge.scrollTop=dn)}var En=a.options.fixedGutter?0:z.gutters.offsetWidth,Yn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:z.scroller.scrollLeft-En,zn=wr(a)-z.gutters.offsetWidth,Mr=b.right-b.left>zn;return Mr&&(b.right=b.left+zn),b.left<10?ge.scrollLeft=0:b.left<Yn?ge.scrollLeft=Math.max(0,b.left+En-(Mr?0:10)):b.right>zn+Yn-3&&(ge.scrollLeft=b.right+(Mr?0:10)-zn),ge}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=fi(a,b.from),x=fi(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,Dt(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+vn(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+Nn(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:z}}var Ps=function(a,b,z){this.cm=z;var x=this.vert=lt("div",[lt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ee=this.horiz=lt("div",[lt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=ee.tabIndex=-1,a(x),a(ee),Gt(x,"scroll",function(){x.clientHeight&&b(x.scrollTop,"vertical")}),Gt(ee,"scroll",function(){ee.clientWidth&&b(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&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 se=a.viewWidth-a.barLeft-(z?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+se)+"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=Ie&&!Ne?"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(),se=z=="vert"?document.elementFromPoint(ee.right-1,(ee.top+ee.bottom)/2):document.elementFromPoint((ee.right+ee.left)/2,ee.bottom-1);se!=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&&Ye(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),Gt(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 se=0;se<b.length;se++)wa(b[se]);for(var ge=0;ge<b.length;ge++)Vi(b[ge])}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&&ci(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+Nn(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 wa(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==Be();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,z),(a.updatedDisplay||a.startHeight!=b.doc.height)&&zs(b,a.barMeasure),a.updatedDisplay&&Me(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,Tt(x,a.scrollToPos.from),Tt(x,a.scrollToPos.to),a.scrollToPos.margin);Eo(b,ee)}var se=a.maybeHiddenMarkers,ge=a.maybeUnhiddenMarkers;if(se)for(var _e=0;_e<se.length;++_e)se[_e].lines.length||gn(se[_e],"hide");if(ge)for(var Ge=0;Ge<ge.length;++Ge)ge[Ge].lines.length&&gn(ge[Ge],"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,ze(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(se){if(x.line>=a.display.viewFrom){var ge=se.styles,_e=se.text.length>a.options.maxHighlightLength?yr(b.mode,x.state):null,Ge=jn(a,se,x,!0);_e&&(x.state=_e),se.styles=Ge.styles;var ot=se.styleClasses,dn=Ge.classes;dn?se.styleClasses=dn:ot&&(se.styleClasses=null);for(var En=!ge||ge.length!=se.styles.length||ot!=dn&&(!ot||!dn||ot.bgClass!=dn.bgClass||ot.textClass!=dn.textClass),Yn=0;!En&&Yn<ge.length;++Yn)En=ge[Yn]!=se.styles[Yn];En&&ee.push(x.line),se.stateAfter=x.save(),x.nextLine()}else se.text.length<=a.options.maxHighlightLength&&Tr(a,se.text,x),se.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 se=0;se<ee.length;se++)ua(a,ee[se],"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){At(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=Nn(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Nn(a)+"px",b.scrollbarsClipped=!0)}function ys(a){if(a.hasFocus())return null;var b=Be();if(!b||!We(a.display.lineDiv,b))return null;var z={activeElt:b};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&We(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==Be())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&We(document.body,a.anchorNode)&&We(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 ci(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;Lt(a)&&(cr(a),b.dims=Wr(a));var ee=x.first+x.size,se=Math.max(b.visible.from-a.options.viewportMargin,x.first),ge=Math.min(ee,b.visible.to+a.options.viewportMargin);z.viewFrom<se&&se-z.viewFrom<20&&(se=Math.max(x.first,z.viewFrom)),z.viewTo>ge&&z.viewTo-ge<20&&(ge=Math.min(ee,z.viewTo)),ya&&(se=br(a.doc,se),ge=Dr(a.doc,ge));var _e=se!=z.viewFrom||ge!=z.viewTo||z.lastWrapHeight!=b.wrapperHeight||z.lastWrapWidth!=b.wrapperWidth;ui(a,se,ge),z.viewOffset=_a(Dn(a.doc,z.viewFrom)),a.display.mover.style.top=z.viewOffset+"px";var Ge=ba(a);if(!_e&&Ge==0&&!b.force&&z.renderedView==z.view&&(z.updateLineNumbers==null||z.updateLineNumbers>=z.viewTo))return!1;var ot=ys(a);return Ge>4&&(z.lineDiv.style.display="none"),jl(a,z.updateLineNumbers,b.dims),Ge>4&&(z.lineDiv.style.display=""),z.renderedView=z.view,Xs(ot),xt(z.cursorDiv),xt(z.selectionDiv),z.gutters.style.height=z.sizer.style.minHeight=0,_e&&(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+vn(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(!ci(a,b))break;Gr(a);var ee=Ws(a);ca(a),zs(a,ee),Me(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(ci(a,z)){Gr(a),bl(a,z);var x=Ws(a);ca(a),zs(a,x),Me(a,x),z.finish()}}function jl(a,b,z){var x=a.display,ee=a.options.lineNumbers,se=x.lineDiv,ge=se.firstChild;function _e(Mr){var qr=Mr.nextSibling;return Ce&&Ie&&a.display.currentWheelTarget==Mr?Mr.style.display="none":Mr.parentNode.removeChild(Mr),qr}for(var Ge=x.view,ot=x.viewFrom,dn=0;dn<Ge.length;dn++){var En=Ge[dn];if(!En.hidden)if(!En.node||En.node.parentNode!=se){var Yn=hi(a,En,ot,z);se.insertBefore(Yn,ge)}else{for(;ge!=En.node;)ge=_e(ge);var zn=ee&&b!=null&&b<=ot&&En.lineNumber;En.changes&&(vt(En.changes,"gutter")>-1&&(zn=!1),Ul(a,En,ot,z)),zn&&(xt(En.lineNumber),En.lineNumber.appendChild(document.createTextNode(kt(a.options,ot)))),ge=En.node.nextSibling}ot+=En.size}for(;ge;)ge=_e(ge)}function Re(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function Me(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+Nn(a)+"px"}function Dt(a){var b=a.display,z=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var x=or(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ee=b.gutters.offsetWidth,se=x+"px",ge=0;ge<z.length;ge++)if(!z[ge].hidden){a.options.fixedGutter&&(z[ge].gutter&&(z[ge].gutter.style.left=se),z[ge].gutterBackground&&(z[ge].gutterBackground.style.left=se));var _e=z[ge].alignable;if(_e)for(var Ge=0;Ge<_e.length;Ge++)_e[Ge].style.left=se}a.options.fixedGutter&&(b.gutters.style.left=x+ee+"px")}}function Lt(a){if(!a.options.lineNumbers)return!1;var b=a.doc,z=kt(a.options,b.first+b.size-1),x=a.display;if(z.length!=x.lineNumChars){var ee=x.measure.appendChild(lt("div",[lt("div",z)],"CodeMirror-linenumber CodeMirror-gutter-elt")),se=ee.firstChild.offsetWidth,ge=ee.offsetWidth-se;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(se,x.lineGutter.offsetWidth-ge)+1,x.lineNumWidth=x.lineNumInnerWidth+ge,x.lineNumChars=x.lineNumInnerWidth?z.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",Re(a.display),!0}return!1}function on(a,b){for(var z=[],x=!1,ee=0;ee<a.length;ee++){var se=a[ee],ge=null;if(typeof se!="string"&&(ge=se.style,se=se.className),se=="CodeMirror-linenumbers")if(b)x=!0;else continue;z.push({className:se,style:ge})}return b&&!x&&z.push({className:"CodeMirror-linenumbers",style:null}),z}function hn(a){var b=a.gutters,z=a.gutterSpecs;xt(b),a.lineGutter=null;for(var x=0;x<z.length;++x){var ee=z[x],se=ee.className,ge=ee.style,_e=b.appendChild(lt("div",null,"CodeMirror-gutter "+se));ge&&(_e.style.cssText=ge),se=="CodeMirror-linenumbers"&&(a.lineGutter=_e,_e.style.width=(a.lineNumWidth||1)+"px")}b.style.display=z.length?"":"none",Re(a)}function Tn(a){hn(a.display),ja(a),Dt(a)}function Bn(a,b,z,x){var ee=this;this.input=z,ee.scrollbarFiller=lt("div",null,"CodeMirror-scrollbar-filler"),ee.scrollbarFiller.setAttribute("cm-not-content","true"),ee.gutterFiller=lt("div",null,"CodeMirror-gutter-filler"),ee.gutterFiller.setAttribute("cm-not-content","true"),ee.lineDiv=Ue("div",null,"CodeMirror-code"),ee.selectionDiv=lt("div",null,null,"position: relative; z-index: 1"),ee.cursorDiv=lt("div",null,"CodeMirror-cursors"),ee.measure=lt("div",null,"CodeMirror-measure"),ee.lineMeasure=lt("div",null,"CodeMirror-measure"),ee.lineSpace=Ue("div",[ee.measure,ee.lineMeasure,ee.selectionDiv,ee.cursorDiv,ee.lineDiv],null,"position: relative; outline: none");var se=Ue("div",[ee.lineSpace],"CodeMirror-lines");ee.mover=lt("div",[se],null,"position: relative"),ee.sizer=lt("div",[ee.mover],"CodeMirror-sizer"),ee.sizerWidth=null,ee.heightForcer=lt("div",null,null,"position: absolute; height: "+Ht+"px; width: 1px;"),ee.gutters=lt("div",null,"CodeMirror-gutters"),ee.lineGutter=null,ee.scroller=lt("div",[ee.sizer,ee.heightForcer,ee.gutters],"CodeMirror-scroll"),ee.scroller.setAttribute("tabIndex","-1"),ee.wrapper=lt("div",[ee.scrollbarFiller,ee.gutterFiller,ee.scroller],"CodeMirror"),xe&&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=on(x.gutters,x.lineNumbers),hn(ee),z.init(ee)}var $n=0,Ln=null;xe?Ln=-.53:y?Ln=15:De?Ln=-.7:je&&(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,se=a.display,ge=se.scroller,_e=ge.scrollWidth>ge.clientWidth,Ge=ge.scrollHeight>ge.clientHeight;if(x&&_e||ee&&Ge){if(ee&&Ie&&Ce){e:for(var ot=b.target,dn=se.view;ot!=ge;ot=ot.parentNode)for(var En=0;En<dn.length;En++)if(dn[En].node==ot){a.display.currentWheelTarget=ot;break e}}if(x&&!y&&!fe&&Ln!=null){ee&&Ge&&js(a,Math.max(0,ge.scrollTop+ee*Ln)),gs(a,Math.max(0,ge.scrollLeft+x*Ln)),(!ee||ee&&Ge)&&Pt(b),se.wheelStartX=null;return}if(ee&&Ln!=null){var Yn=ee*Ln,zn=a.doc.scrollTop,Mr=zn+se.wrapper.clientHeight;Yn<0?zn=Math.max(0,zn+Yn-50):Mr=Math.min(a.doc.height,Mr+Yn+50),is(a,{top:zn,bottom:Mr})}$n<20&&(se.wheelStartX==null?(se.wheelStartX=ge.scrollLeft,se.wheelStartY=ge.scrollTop,se.wheelDX=x,se.wheelDY=ee,setTimeout(function(){if(se.wheelStartX!=null){var qr=ge.scrollLeft-se.wheelStartX,Ba=ge.scrollTop-se.wheelStartY,Ka=Ba&&se.wheelDY&&Ba/se.wheelDY||qr&&se.wheelDX&&qr/se.wheelDX;se.wheelStartX=se.wheelStartY=null,Ka&&(Ln=(Ln*$n+Ka)/($n+1),++$n)}},200)):(se.wheelDX+=x,se.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 Kn(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(ht(b,x.from())>=0&&ht(a,x.to())<=0)return z}return-1};var Kn=function(a,b){this.anchor=a,this.head=b};Kn.prototype.from=function(){return It(this.anchor,this.head)},Kn.prototype.to=function(){return mr(this.anchor,this.head)},Kn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ia(a,b,z){var x=a&&a.options.selectionsMayTouch,ee=b[z];b.sort(function(Yn,zn){return ht(Yn.from(),zn.from())}),z=vt(b,ee);for(var se=1;se<b.length;se++){var ge=b[se],_e=b[se-1],Ge=ht(_e.to(),ge.from());if(x&&!ge.empty()?Ge>0:Ge>=0){var ot=It(_e.from(),ge.from()),dn=mr(_e.to(),ge.to()),En=_e.empty()?ge.from()==ge.head:_e.from()==_e.head;se<=z&&--z,b.splice(--se,2,new Kn(En?dn:ot,En?ot:dn))}}return new Xn(b,z)}function _r(a,b){return new Xn([new Kn(a,b||a)],0)}function da(a){return a.text?it(a.from.line+a.text.length-1,mt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ea(a,b){if(ht(a,b.from)<0)return a;if(ht(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),it(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 Kn(Ea(ee.anchor,b),Ea(ee.head,b)))}return ia(a.cm,z,a.sel.primIndex)}function Oa(a,b,z){return a.line==b.line?it(z.line,a.ch-b.ch+z.ch):it(z.line+(a.line-b.line),a.ch)}function La(a,b,z){for(var x=[],ee=it(a.first,0),se=ee,ge=0;ge<b.length;ge++){var _e=b[ge],Ge=Oa(_e.from,ee,se),ot=Oa(da(_e),ee,se);if(ee=_e.to,se=ot,z=="around"){var dn=a.sel.ranges[ge],En=ht(dn.head,dn.anchor)<0;x[ge]=new Kn(En?ot:Ge,En?Ge:ot)}else x[ge]=new Kn(Ge,Ge)}return new Xn(x,a.sel.primIndex)}function Qa(a){a.doc.mode=Er(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&&mt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Si(a,b,z,x){function ee(ii){return z?z[ii]:null}function se(ii,Wa,Ei){yi(ii,Wa,Ei,x),no(ii,"change",ii,b)}function ge(ii,Wa){for(var Ei=[],to=ii;to<Wa;++to)Ei.push(new ai(ot[to],ee(to),x));return Ei}var _e=b.from,Ge=b.to,ot=b.text,dn=Dn(a,_e.line),En=Dn(a,Ge.line),Yn=mt(ot),zn=ee(ot.length-1),Mr=Ge.line-_e.line;if(b.full)a.insert(0,ge(0,ot.length)),a.remove(ot.length,a.size-ot.length);else if(eo(a,b)){var qr=ge(0,ot.length-1);se(En,En.text,zn),Mr&&a.remove(_e.line,Mr),qr.length&&a.insert(_e.line,qr)}else if(dn==En)if(ot.length==1)se(dn,dn.text.slice(0,_e.ch)+Yn+dn.text.slice(Ge.ch),zn);else{var Ba=ge(1,ot.length-1);Ba.push(new ai(Yn+dn.text.slice(Ge.ch),zn,x)),se(dn,dn.text.slice(0,_e.ch)+ot[0],ee(0)),a.insert(_e.line+1,Ba)}else if(ot.length==1)se(dn,dn.text.slice(0,_e.ch)+ot[0]+En.text.slice(Ge.ch),ee(0)),a.remove(_e.line+1,Mr);else{se(dn,dn.text.slice(0,_e.ch)+ot[0],ee(0)),se(En,Yn+En.text.slice(Ge.ch),zn);var Ka=ge(1,ot.length-1);Mr>1&&a.remove(_e.line+1,Mr-1),a.insert(_e.line+1,Ka)}no(a,"change",a,b)}function gi(a,b,z){function x(ee,se,ge){if(ee.linked)for(var _e=0;_e<ee.linked.length;++_e){var Ge=ee.linked[_e];if(Ge.doc!=se){var ot=ge&&Ge.sharedHist;z&&!ot||(b(Ge.doc,ot),x(Ge.doc,ee,ot))}}}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:Ye)(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:Zn(a,b.from,b.to)};return pl(a,z,b.from.line,b.to.line+1),gi(a,function(x){return pl(x,z,b.from.line,b.to.line+1)},!0),z}function Ja(a){for(;a.length;){var b=mt(a);if(b.ranges)a.pop();else break}}function ni(a,b){if(b)return Ja(a.done),mt(a.done);if(a.done.length&&!mt(a.done).ranges)return mt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),mt(a.done)}function wi(a,b,z,x){var ee=a.history;ee.undone.length=0;var se=+new Date,ge,_e;if((ee.lastOp==x||ee.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ee.lastModTime>se-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(ge=ni(ee,ee.lastOp==x)))_e=mt(ge.changes),ht(b.from,b.to)==0&&ht(b.from,_e.to)==0?_e.to=da(b):ge.changes.push(Ca(a,b));else{var Ge=mt(ee.done);for((!Ge||!Ge.ranges)&&so(a.sel,ee.done),ge={changes:[Ca(a,b)],generation:ee.generation},ee.done.push(ge);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=se,ee.lastOp=ee.lastSelOp=x,ee.lastOrigin=ee.lastSelOrigin=b.origin,_e||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,se=x&&x.origin;z==ee.lastSelOp||se&&ee.lastSelOrigin==se&&(ee.lastModTime==ee.lastSelTime&&ee.lastOrigin==se||Ma(a,se,mt(ee.done),b))?ee.done[ee.done.length-1]=b:so(b,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=se,ee.lastSelOp=z,x&&x.clearRedo!==!1&&Ja(ee.undone)}function so(a,b){var z=mt(b);z&&z.ranges&&z.equals(a)||b.push(a)}function pl(a,b,z,x){var ee=b["spans_"+a.id],se=0;a.iter(Math.max(a.first,z),Math.min(a.first+a.size,x),function(ge){ge.markedSpans&&((ee||(ee=b["spans_"+a.id]={}))[se]=ge.markedSpans),++se})}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 se=z[ee],ge=x[ee];if(se&&ge)e:for(var _e=0;_e<ge.length;++_e){for(var Ge=ge[_e],ot=0;ot<se.length;++ot)if(se[ot].marker==Ge.marker)continue e;se.push(Ge)}else ge&&(z[ee]=ge)}return z}function El(a,b,z){for(var x=[],ee=0;ee<a.length;++ee){var se=a[ee];if(se.ranges){x.push(z?Xn.prototype.deepCopy.call(se):se);continue}var ge=se.changes,_e=[];x.push({changes:_e});for(var Ge=0;Ge<ge.length;++Ge){var ot=ge[Ge],dn=void 0;if(_e.push({from:ot.from,to:ot.to,text:ot.text}),b)for(var En in ot)(dn=En.match(/^spans_(\d+)$/))&&vt(b,Number(dn[1]))>-1&&(mt(_e)[En]=ot[En],delete ot[En])}}return x}function mo(a,b,z,x){if(x){var ee=a.anchor;if(z){var se=ht(b,ee)<0;se!=ht(z,ee)<0?(ee=b,b=z):se!=ht(b,z)<0&&(b=z)}return new Kn(ee,b)}else return new Kn(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),se=0;se<a.sel.ranges.length;se++)x[se]=mo(a.sel.ranges[se],b[se],null,ee);var ge=ia(a.cm,x,a.sel.primIndex);Ua(a,ge,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 mi(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 se=0;se<ee.length;se++)this.ranges[se]=new Kn(Tt(a,ee[se].anchor),Tt(a,ee[se].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=mt(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){(At(a,"beforeSelectionChange")||a.cm&&At(a.cm,"beforeSelectionChange"))&&(b=qi(a,b,z));var x=z&&z.bias||(ht(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,Ut(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,se=0;se<b.ranges.length;se++){var ge=b.ranges[se],_e=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[se],Ge=Bl(a,ge.anchor,_e&&_e.anchor,z,x),ot=Bl(a,ge.head,_e&&_e.head,z,x);(ee||Ge!=ge.anchor||ot!=ge.head)&&(ee||(ee=b.ranges.slice(0,se)),ee[se]=new Kn(Ge,ot))}return ee?ia(a.cm,ee,b.primIndex):b}function hl(a,b,z,x,ee){var se=Dn(a,b.line);if(se.markedSpans)for(var ge=0;ge<se.markedSpans.length;++ge){var _e=se.markedSpans[ge],Ge=_e.marker,ot="selectLeft"in Ge?!Ge.selectLeft:Ge.inclusiveLeft,dn="selectRight"in Ge?!Ge.selectRight:Ge.inclusiveRight;if((_e.from==null||(ot?_e.from<=b.ch:_e.from<b.ch))&&(_e.to==null||(dn?_e.to>=b.ch:_e.to>b.ch))){if(ee&&(gn(Ge,"beforeCursorEnter"),Ge.explicitlyCleared))if(se.markedSpans){--ge;continue}else break;if(!Ge.atomic)continue;if(z){var En=Ge.find(x<0?1:-1),Yn=void 0;if((x<0?dn:ot)&&(En=Bi(a,En,-x,En&&En.line==b.line?se:null)),En&&En.line==b.line&&(Yn=ht(En,z))&&(x<0?Yn<0:Yn>0))return hl(a,En,b,x,ee)}var zn=Ge.find(x<0?-1:1);return(x<0?ot:dn)&&(zn=Bi(a,zn,x,zn.line==b.line?se:null)),zn?hl(a,zn,b,x,ee):null}}return b}function Bl(a,b,z,x,ee){var se=x||1,ge=hl(a,b,z,se,ee)||!ee&&hl(a,b,z,se,!0)||hl(a,b,z,-se,ee)||!ee&&hl(a,b,z,-se,!0);return ge||(a.cantEdit=!0,it(a.first,0))}function Bi(a,b,z,x){return z<0&&b.ch==0?b.line>a.first?Tt(a,it(b.line-1)):null:z>0&&b.ch==(x||Dn(a,b.line)).text.length?b.line<a.first+a.size-1?it(b.line+1,0):null:new it(b.line,b.ch+z)}function Ri(a){a.setSelection(it(a.firstLine(),0),it(a.lastLine()),Fe)}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,se,ge,_e){ee&&(x.from=Tt(a,ee)),se&&(x.to=Tt(a,se)),ge&&(x.text=ge),_e!==void 0&&(x.origin=_e)}),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(!((At(a,"beforeChange")||a.cm&&At(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]==""&&ht(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=[];gi(a,function(ee,se){!se&&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,se,ge=a.sel,_e=b=="undo"?ee.done:ee.undone,Ge=b=="undo"?ee.undone:ee.done,ot=0;ot<_e.length&&(se=_e[ot],!(z?se.ranges&&!se.equals(a.sel):!se.ranges));ot++);if(ot!=_e.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(se=_e.pop(),se.ranges){if(so(se,Ge),z&&!se.equals(a.sel)){Ua(a,se,{clearRedo:!1});return}ge=se}else if(x){_e.push(se);return}else break;var dn=[];so(ge,Ge),Ge.push({changes:dn,generation:ee.generation}),ee.generation=se.generation||++ee.maxGeneration;for(var En=At(a,"beforeChange")||a.cm&&At(a.cm,"beforeChange"),Yn=function(qr){var Ba=se.changes[qr];if(Ba.origin=b,En&&!Do(a,Ba,!1))return _e.length=0,{};dn.push(Ca(a,Ba));var Ka=qr?Jr(a,Ba):mt(_e);Yl(a,Ba,Ka,ol(a,Ba)),!qr&&a.cm&&a.cm.scrollIntoView({from:Ba.from,to:da(Ba)});var ii=[];gi(a,function(Wa,Ei){!Ei&&vt(ii,Wa.history)==-1&&(Dl(Wa.history,Ba),ii.push(Wa.history)),Yl(Wa,Ba,null,ol(Wa,Ba))})},zn=se.changes.length-1;zn>=0;--zn){var Mr=Yn(zn);if(Mr)return Mr.v}}}}function Cl(a,b){if(b!=0&&(a.first+=b,a.sel=new Xn(mn(a.sel.ranges,function(ee){return new Kn(it(ee.anchor.line+b,ee.anchor.ch),it(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:it(a.first,0),to:it(b.to.line+ee,b.to.ch),text:[mt(b.text)],origin:b.origin}}var se=a.lastLine();b.to.line>se&&(b={from:b.from,to:it(se,Dn(a,se).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Zn(a,b.from,b.to),z||(z=Jr(a,b)),a.cm?Go(a.cm,b,x):Si(a,b,x),po(a,z,Fe),a.cantEdit&&Bl(a,it(a.firstLine(),0))&&(a.cantEdit=!1)}}function Go(a,b,z){var x=a.doc,ee=a.display,se=b.from,ge=b.to,_e=!1,Ge=se.line;a.options.lineWrapping||(Ge=Mt(tr(Dn(x,se.line))),x.iter(Ge,ge.line+1,function(zn){if(zn==ee.maxLine)return _e=!0,!0})),x.sel.contains(b.from,b.to)>-1&&Ut(a),Si(x,b,z,ha(a)),a.options.lineWrapping||(x.iter(Ge,se.line+b.text.length,function(zn){var Mr=$a(zn);Mr>ee.maxLineLength&&(ee.maxLine=zn,ee.maxLineLength=Mr,ee.maxLineChanged=!0,_e=!1)}),_e&&(a.curOp.updateMaxLine=!0)),Ia(x,se.line),ko(a,400);var ot=b.text.length-(ge.line-se.line)-1;b.full?ja(a):se.line==ge.line&&b.text.length==1&&!eo(a.doc,b)?ua(a,se.line,"text"):ja(a,se.line,ge.line+1,ot);var dn=At(a,"changes"),En=At(a,"change");if(En||dn){var Yn={from:se,to:ge,text:b.text,removed:b.removed,origin:b.origin};En&&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 se;x||(x=z),ht(x,z)<0&&(se=[x,z],z=se[0],x=se[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 se=a[ee],ge=!0;if(se.ranges){se.copied||(se=a[ee]=se.deepCopy(),se.copied=!0);for(var _e=0;_e<se.ranges.length;_e++)Xo(se.ranges[_e].anchor,b,z,x),Xo(se.ranges[_e].head,b,z,x);continue}for(var Ge=0;Ge<se.changes.length;++Ge){var ot=se.changes[Ge];if(z<ot.from.line)ot.from=it(ot.from.line+x,ot.from.ch),ot.to=it(ot.to.line+x,ot.to.ch);else if(b<=ot.to.line){ge=!1;break}}ge||(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,se=b;return typeof b=="number"?se=Dn(a,_t(a,b)):ee=Mt(b),ee==null?null:(x(se,ee)&&a.cm&&ua(a.cm,ee,z),se)}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 se=Math.min(b,ee-a),ge=x.height;if(x.removeInner(a,se),this.height-=ge-x.height,ee==se&&(this.children.splice(z--,1),x.parent=null),(b-=se)==0)break;a=0}else a-=ee}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Oo))){var _e=[];this.collapse(_e),this.children=[new Oo(_e)],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],se=ee.chunkSize();if(a<=se){if(ee.insertInner(a,b,z),ee.lines&&ee.lines.length>50){for(var ge=ee.lines.length%25+25,_e=ge;_e<ee.lines.length;){var Ge=new Oo(ee.lines.slice(_e,_e+=25));ee.height-=Ge.height,this.children.splice(++x,0,Ge),Ge.parent=this}ee.lines=ee.lines.slice(0,ge),this.maybeSpill()}break}a-=se}},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],se=ee.chunkSize();if(a<se){var ge=Math.min(b,se-a);if(ee.iterN(a,ge,z))return!0;if((b-=ge)==0)break;a=0}else a-=se}}};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=Mt(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 se=oo(this);ur(z,Math.max(0,z.height-se)),a&&(Ta(a,function(){Kl(a,z,-se),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,Mt(x))}))},Je(Lo);function Kl(a,b,z){_a(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),se=a.cm;return se&&ee.noHScroll&&(se.display.alignWidgets=!0),vl(a,b,"widget",function(ge){var _e=ge.widgets||(ge.widgets=[]);if(ee.insertAt==null?_e.push(ee):_e.splice(Math.min(_e.length-1,Math.max(0,ee.insertAt)),0,ee),ee.line=ge,se&&!jr(a,ge)){var Ge=_a(ge)<a.scrollTop;ur(ge,ge.height+oo(ee)),Ge&&eu(se,ee.height),se.curOp.forceUpdate=!0}return!0}),se&&no(se,"lineWidgetAdded",se,ee,typeof b=="number"?b:Mt(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),At(this,"clear")){var z=this.find();z&&no(this,"clear",z.from,z.to)}for(var x=null,ee=null,se=0;se<this.lines.length;++se){var ge=this.lines[se],_e=kr(ge.markedSpans,this);a&&!this.collapsed?ua(a,Mt(ge),"text"):a&&(_e.to!=null&&(ee=Mt(ge)),_e.from!=null&&(x=Mt(ge))),ge.markedSpans=Za(ge.markedSpans,_e),_e.from==null&&this.collapsed&&!jr(this.doc,ge)&&a&&ur(ge,Fr(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Ge=0;Ge<this.lines.length;++Ge){var ot=tr(this.lines[Ge]),dn=$a(ot);dn>a.display.maxLineLength&&(a.display.maxLine=ot,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 se=this.lines[ee],ge=kr(se.markedSpans,this);if(ge.from!=null&&(z=it(b?se:Mt(se),ge.from),a==-1))return z;if(ge.to!=null&&(x=it(b?se:Mt(se),ge.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,se=Mt(b.line),ge=vr(x,se);if(ge&&(Hr(ge),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!jr(z.doc,ee)&&z.height!=null){var _e=z.height;z.height=null;var Ge=oo(z)-_e;Ge&&ur(ee,ee.height+Ge)}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)}},Je(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 se=new os(a,ee),ge=ht(b,z);if(x&&st(x,se,!1),ge>0||ge==0&&se.clearWhenEmpty!==!1)return se;if(se.replacedWith&&(se.collapsed=!0,se.widgetNode=Ue("span",[se.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||se.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(se.widgetNode.insertLeft=!0)),se.collapsed){if(Sr(a,b.line,b,z,se)||b.line!=z.line&&Sr(a,z.line,b,z,se))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pa()}se.addToHistory&&wi(a,{from:b,to:z,origin:"markText"},a.sel,NaN);var _e=b.line,Ge=a.cm,ot;if(a.iter(_e,z.line+1,function(En){Ge&&se.collapsed&&!Ge.options.lineWrapping&&tr(En)==Ge.display.maxLine&&(ot=!0),se.collapsed&&_e!=b.line&&ur(En,0),Sa(En,new pa(se,_e==b.line?b.ch:null,_e==z.line?z.ch:null)),++_e}),se.collapsed&&a.iter(b.line,z.line+1,function(En){jr(a,En)&&ur(En,0)}),se.clearOnEnter&&Gt(se,"beforeCursorEnter",function(){return se.clear()}),se.readOnly&&(Xa(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),se.collapsed&&(se.id=++ts,se.atomic=!0),Ge){if(ot&&(Ge.curOp.updateMaxLine=!0),se.collapsed)ja(Ge,b.line,z.line+1);else if(se.className||se.startStyle||se.endStyle||se.css||se.attributes||se.title)for(var dn=b.line;dn<=z.line;dn++)ua(Ge,dn,"text");se.atomic&&sl(Ge.doc),no(Ge,"markerAdded",Ge,se)}return se}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)},Je(rl);function fu(a,b,z,x,ee){x=st(x),x.shared=!1;var se=[Bs(a,b,z,x,ee)],ge=se[0],_e=x.widgetNode;return gi(a,function(Ge){_e&&(x.widgetNode=_e.cloneNode(!0)),se.push(Bs(Ge,Tt(Ge,b),Tt(Ge,z),x,ee));for(var ot=0;ot<Ge.linked.length;++ot)if(Ge.linked[ot].isParent)return;ge=mt(se)}),new rl(se,ge)}function ls(a){return a.findMarks(it(a.first,0),a.clipPos(it(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(),se=a.clipPos(ee.from),ge=a.clipPos(ee.to);if(ht(se,ge)){var _e=Bs(a,se,ge,x.primary,x.primary.type);x.markers.push(_e),_e.parent=x}}}function Es(a){for(var b=function(x){var ee=a[x],se=[ee.primary.doc];gi(ee.primary.doc,function(Ge){return se.push(Ge)});for(var ge=0;ge<ee.markers.length;ge++){var _e=ee.markers[ge];vt(se,_e.doc)==-1&&(_e.parent=null,ee.markers.splice(ge--,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 se=it(z,0);this.sel=_r(se),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:se,to:se,text:a}),Ua(this,_r(se),Fe)};al.prototype=ie(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=it(this.first,0),z=this.first+this.size-1;zo(this,{from:b,to:it(z,Dn(this,z).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Fs(this.cm,0,0),Ua(this,_r(b),Fe)}),replaceRange:function(a,b,z,x){b=Tt(this,b),z=z?Tt(this,z):b,Ao(this,a,b,z,x)},getRange:function(a,b,z){var x=Zn(this,Tt(this,a),Tt(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(ft(this,a))return Dn(this,a)},getLineNumber:function(a){return Mt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Dn(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 Tt(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){mi(this,Tt(this,typeof a=="number"?it(a,b||0):a),null,z)}),setSelection:Ki(function(a,b,z){mi(this,Tt(this,a),Tt(this,b||a),z)}),extendSelection:Ki(function(a,b,z){yo(this,Tt(this,a),b&&Tt(this,b),z)}),extendSelections:Ki(function(a,b){ll(this,Fn(this,a),b)}),extendSelectionsBy:Ki(function(a,b){var z=mn(this.sel.ranges,a);ll(this,Fn(this,z),b)}),setSelections:Ki(function(a,b,z){if(a.length){for(var x=[],ee=0;ee<a.length;ee++)x[ee]=new Kn(Tt(this,a[ee].anchor),Tt(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 Kn(Tt(this,a),Tt(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=Zn(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=Zn(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,se=0;se<ee.ranges.length;se++){var ge=ee.ranges[se];x[se]={from:ge.from(),to:ge.to(),text:this.splitLines(a[se]),origin:z}}for(var _e=b&&b!="end"&&La(this,x,b),Ge=x.length-1;Ge>=0;Ge--)zo(this,x[Ge]);_e?li(this,_e):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),gi(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&&ae(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,ae(z.gutterMarkers)&&(z.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!ft(this,a)||(b=a,a=Dn(this,a),!a))return null}else if(b=Mt(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(Ve(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",se=x[ee];if(se)if(z==null)x[ee]=null;else{var ge=se.match(Ve(z));if(!ge)return!1;var _e=ge.index+ge[0].length;x[ee]=se.slice(0,ge.index)+(!ge.index||_e==se.length?"":" ")+se.slice(_e)||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,Tt(this,a),Tt(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=Tt(this,a),Bs(this,a,a,z,"bookmark")},findMarksAt:function(a){a=Tt(this,a);var b=[],z=Dn(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=Tt(this,a),b=Tt(this,b);var x=[],ee=a.line;return this.iter(a.line,b.line+1,function(se){var ge=se.markedSpans;if(ge)for(var _e=0;_e<ge.length;_e++){var Ge=ge[_e];!(Ge.to!=null&&ee==a.line&&a.ch>=Ge.to||Ge.from==null&&ee!=a.line||Ge.from!=null&&ee==b.line&&Ge.from>=b.ch)&&(!z||z(Ge.marker))&&x.push(Ge.marker.parent||Ge.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 se=ee.text.length+x;if(se>a)return b=a,!0;a-=se,++z}),Tt(this,it(z,b))},indexFromPos:function(a){a=Tt(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];gi(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){gi(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):On(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),!(Rt(b,a)||Qo(b.display,a))){Pt(a),xe&&(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,se=Array(ee),ge=0,_e=function(){++ge==ee&&Ir(b,function(){z=Tt(b.doc,z);var zn={from:z,to:z,text:b.doc.splitLines(se.filter(function(Mr){return Mr!=null}).join(b.doc.lineSeparator())),origin:"paste"};zo(b.doc,zn),li(b.doc,_r(Tt(b.doc,z),Tt(b.doc,da(zn))))})()},Ge=function(zn,Mr){if(b.options.allowDropFileTypes&&vt(b.options.allowDropFileTypes,zn.type)==-1){_e();return}var qr=new FileReader;qr.onerror=function(){return _e()},qr.onload=function(){var Ba=qr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ba)){_e();return}se[Mr]=Ba,_e()},qr.readAsText(zn)},ot=0;ot<x.length;ot++)Ge(x[ot],ot);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 En;if(b.state.draggingText&&!b.state.draggingText.copy&&(En=b.listSelections()),po(b.doc,_r(z,z)),En)for(var Yn=0;Yn<En.length;++Yn)Ao(b.doc,"",En[Yn].anchor,En[Yn].head,"drag");b.replaceSelection(dn,"around","paste"),b.display.input.focus()}}catch(zn){}}}}function Os(a,b){if(xe&&(!a.state.draggingText||+new Date-ss<100)){nt(b);return}if(!(Rt(a,b)||Qo(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!je)){var z=lt("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();Aa(a,z,x),a.display.dragCursor||(a.display.dragCursor=lt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),gt(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 se=0;se<z.length;se++)a(z[se])})}}var Su=!1;function wu(){Su||(Zu(),Su=!0)}function Zu(){var a;Gt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,mu(io)},100))}),Gt(window,"blur",function(){return mu(Tl)})}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=Ie?Sl.macDefault:Sl.pcDefault;function Ds(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var z,x,ee,se,ge=0;ge<b.length-1;ge++){var _e=b[ge];if(/^(cmd|meta|m)$/i.test(_e))se=!0;else if(/^a(lt)?$/i.test(_e))z=!0;else if(/^(c|ctrl|control)$/i.test(_e))x=!0;else if(/^s(hift)?$/i.test(_e))ee=!0;else throw new Error("Unrecognized modifier name: "+_e)}return z&&(a="Alt-"+a),x&&(a="Ctrl-"+a),se&&(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=mn(z.split(" "),Ds),se=0;se<ee.length;se++){var ge=void 0,_e=void 0;se==ee.length-1?(_e=ee.join(" "),ge=x):(_e=ee.slice(0,se+1).join(" "),ge="...");var Ge=b[_e];if(!Ge)b[_e]=ge;else if(Ge!=ge)throw new Error("Inconsistent bindings for "+_e)}delete a[z]}for(var ot in b)a[ot]=b[ot];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 se=0;se<b.fallthrough.length;se++){var ge=ks(a,b.fallthrough[se],z,x);if(ge)return ge}}}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),(Oe?b.metaKey:b.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(Oe?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 se=b(z[ee]);x.length&&ht(se.from,mt(x).to)<=0;){var ge=x.pop();if(ht(ge.from,se.from)<0){se.from=ge.from;break}}x.push(se)}Ta(a,function(){for(var _e=x.length-1;_e>=0;_e--)Ao(a.doc,"",x[_e].from,x[_e].to,"+delete");xs(a)})}function $u(a,b,z){var x=Ot(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 it(b.line,x,z<0?"after":"before")}function ju(a,b,z,x,ee){if(a){b.doc.direction=="rtl"&&(ee=-ee);var se=Xe(z,b.doc.direction);if(se){var ge=ee<0?mt(se):se[0],_e=ee<0==(ge.level==1),Ge=_e?"after":"before",ot;if(ge.level>0||b.doc.direction=="rtl"){var dn=na(b,z);ot=ee<0?z.text.length-1:0;var En=xi(b,dn,ot).top;ot=at(function(Yn){return xi(b,dn,Yn).top==En},ee<0==(ge.level==1)?ge.from:ge.to-1,ot),Ge=="before"&&(ot=$u(z,ot,1))}else ot=ee<0?ge.to:ge.from;return new it(x,ot,Ge)}}return new it(x,ee<0?z.text.length:0,ee<0?"before":"after")}function tc(a,b,z,x){var ee=Xe(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 se=Ft(ee,z.ch,z.sticky),ge=ee[se];if(a.doc.direction=="ltr"&&ge.level%2==0&&(x>0?ge.to>z.ch:ge.from<z.ch))return Ls(b,z,x);var _e=function(Ka,ii){return $u(b,Ka instanceof it?Ka.ch:Ka,ii)},Ge,ot=function(Ka){return a.options.lineWrapping?(Ge=Ge||na(a,b),rn(a,b,Ge,Ka)):{begin:0,end:b.text.length}},dn=ot(z.sticky=="before"?_e(z,-1):z.ch);if(a.doc.direction=="rtl"||ge.level==1){var En=ge.level==1==x<0,Yn=_e(z,En?1:-1);if(Yn!=null&&(En?Yn<=ge.to&&Yn<=dn.end:Yn>=ge.from&&Yn>=dn.begin)){var zn=En?"before":"after";return new it(z.line,Yn,zn)}}var Mr=function(Ka,ii,Wa){for(var Ei=function(ml,ql){return ql?new it(z.line,_e(ml,1),"before"):new it(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:_e(Wa.end,-1);if(to.from<=Bo&&Bo<to.to||(Bo=Gi?to.from:_e(to.to,-1),Wa.begin<=Bo&&Bo<Wa.end))return Ei(Bo,Gi)}},qr=Mr(se+x,x,dn);if(qr)return qr;var Ba=x>0?dn.end:_e(dn.begin,-1);return Ba!=null&&!(x>0&&Ba==b.text.length)&&(qr=Mr(x>0?0:ee.length-1,x,ot(Ba)),qr)?qr:null}var Vs={selectAll:Ri,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Fe)},killLine:function(a){return Qs(a,function(b){if(b.empty()){var z=Dn(a.doc,b.head.line).text.length;return b.head.ch==z&&b.head.line<a.lastLine()?{from:b.head,to:it(b.head.line+1,0)}:{from:b.head,to:it(b.head.line,z)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return Qs(a,function(b){return{from:it(b.from().line,0),to:Tt(a.doc,it(b.to().line+1,0))}})},delLineLeft:function(a){return Qs(a,function(b){return{from:it(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(it(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(it(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")},ut)},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")},ut)},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},ut)},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 se=z[ee].from(),ge=Se(a.getLine(se.line),se.ch,x);b.push(Ct(x-ge%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,se=Dn(a.doc,ee.line).text;if(se){if(ee.ch==se.length&&(ee=new it(ee.line,ee.ch-1)),ee.ch>0)ee=new it(ee.line,ee.ch+1),a.replaceRange(se.charAt(ee.ch-1)+se.charAt(ee.ch-2),it(ee.line,ee.ch-2),ee,"+transpose");else if(ee.line>a.doc.first){var ge=Dn(a.doc,ee.line-1).text;ge&&(ee=new it(ee.line,1),a.replaceRange(se.charAt(0)+a.doc.lineSeparator()+ge.charAt(ge.length-1),it(ee.line-1,ge.length-1),ee,"+transpose"))}}z.push(new Kn(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=Dn(a.doc,b),x=tr(z);return x!=z&&(b=Mt(x)),ju(!0,a,x,b,1)}function zu(a,b){var z=Dn(a.doc,b),x=$r(z);return x!=z&&(b=Mt(x)),ju(!0,a,z,b,-1)}function Hu(a,b){var z=Wu(a,b.line),x=Dn(a.doc,z.line),ee=Xe(x,a.doc.direction);if(!ee||ee[0].level==0){var se=Math.max(z.ch,x.text.search(/\S/)),ge=b.line==z.line&&b.ch<=se&&b.ch;return it(z.line,ge?0:se,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)!=$t}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")&&(Pt(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=Be(),!Rt(b,a))){xe&&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&&!Zt&&(Ie?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),y&&!Ie&&!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)&&(Ye(b,"CodeMirror-crosshair"),wn(document,"keyup",z),wn(document,"mouseover",z))}Gt(document,"keyup",z),Gt(document,"mouseover",z)}function Gu(a){a.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,a)}function Fu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Qo(b.display,a)||Rt(b,a)||a.ctrlKey&&!a.altKey||Ie&&a.metaKey)){var z=a.keyCode,x=a.charCode;if(fe&&z==yu){yu=null,Pt(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&&ht(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(!(Rt(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=qt(a),se=x?Uu(x,ee):"single";window.focus(),ee==1&&b.state.selectingText&&b.state.selectingText(a),!(x&&Pu(b,ee,x,se,a))&&(ee==1?x?Mo(b,x,se,a):Nt(a)==z.scroller&&Pt(a):ee==2?(x&&yo(b.doc,x),setTimeout(function(){return z.input.focus()},20)):ee==3&&(Ae?b.display.input.onContextMenu(a):Oi(b)))}}}function Pu(a,b,z,x,ee){var se="Click";return x=="double"?se="Double"+se:x=="triple"&&(se="Triple"+se),se=(b==1?"Left":b==2?"Middle":"Right")+se,vu(a,ru(se,ee),ee,function(ge){if(typeof ge=="string"&&(ge=Vs[ge]),!ge)return!1;var _e=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),_e=ge(a,z)!=$t}finally{a.state.suppressEdits=!1}return _e})}function Fo(a,b,z){var x=a.getOption("configureMouse"),ee=x?x(a,b,z):{};if(ee.unit==null){var se=Pe?z.shiftKey&&z.metaKey:z.altKey;ee.unit=se?"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=Ie?z.metaKey:z.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(Ie?z.altKey:z.ctrlKey)),ee}function Mo(a,b,z,x){xe?setTimeout(ze(Xl,a),0):a.curOp.focus=Be();var ee=Fo(a,z,x),se=a.doc.sel,ge;a.options.dragDrop&&wt&&!a.isReadOnly()&&z=="single"&&(ge=se.contains(b))>-1&&(ht((ge=se.ranges[ge]).from(),b)<0||b.xRel>0)&&(ht(ge.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,se=!1,ge=Ir(a,function(ot){Ce&&(ee.scroller.draggable=!1),a.state.draggingText=!1,wn(ee.wrapper.ownerDocument,"mouseup",ge),wn(ee.wrapper.ownerDocument,"mousemove",_e),wn(ee.scroller,"dragstart",Ge),wn(ee.scroller,"drop",ge),se||(Pt(ot),x.addNew||yo(a.doc,z,null,null,x.extend),Ce&&!je||xe&&Ee==9?setTimeout(function(){ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),ee.input.focus()},20):ee.input.focus())}),_e=function(ot){se=se||Math.abs(b.clientX-ot.clientX)+Math.abs(b.clientY-ot.clientY)>=10},Ge=function(){return se=!0};Ce&&(ee.scroller.draggable=!0),a.state.draggingText=ge,ge.copy=!x.moveOnDrag,ee.scroller.dragDrop&&ee.scroller.dragDrop(),Gt(ee.wrapper.ownerDocument,"mouseup",ge),Gt(ee.wrapper.ownerDocument,"mousemove",_e),Gt(ee.scroller,"dragstart",Ge),Gt(ee.scroller,"drop",ge),Oi(a),setTimeout(function(){return ee.input.focus()},20)}function ds(a,b,z){if(z=="char")return new Kn(b,b);if(z=="word")return a.findWordAt(b);if(z=="line")return new Kn(it(b.line,0),Tt(a.doc,it(b.line+1,0)));var x=z(a,b);return new Kn(x.from,x.to)}function Jl(a,b,z,x){var ee=a.display,se=a.doc;Pt(b);var ge,_e,Ge=se.sel,ot=Ge.ranges;if(x.addNew&&!x.extend?(_e=se.sel.contains(z),_e>-1?ge=ot[_e]:ge=new Kn(z,z)):(ge=se.sel.primary(),_e=se.sel.primIndex),x.unit=="rectangle")x.addNew||(ge=new Kn(z,z)),z=Nr(a,b,!0,!0),_e=-1;else{var dn=ds(a,z,x.unit);x.extend?ge=mo(ge,dn.anchor,dn.head,x.extend):ge=dn}x.addNew?_e==-1?(_e=ot.length,Ua(se,ia(a,ot.concat([ge]),_e),{scroll:!1,origin:"*mouse"})):ot.length>1&&ot[_e].empty()&&x.unit=="char"&&!x.extend?(Ua(se,ia(a,ot.slice(0,_e).concat(ot.slice(_e+1)),0),{scroll:!1,origin:"*mouse"}),Ge=se.sel):cl(se,_e,ge,pt):(_e=0,Ua(se,new Xn([ge],0),pt),Ge=se.sel);var En=z;function Yn(Wa){if(ht(En,Wa)!=0)if(En=Wa,x.unit=="rectangle"){for(var Ei=[],to=a.options.tabSize,Gi=Se(Dn(se,z.line).text,z.ch,to),Bo=Se(Dn(se,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=Dn(se,Fl).text,kl=Yt(fs,ml,to);ml==ql?Ei.push(new Kn(it(Fl,kl),it(Fl,kl))):fs.length>kl&&Ei.push(new Kn(it(Fl,kl),it(Fl,Yt(fs,ql,to))))}Ei.length||Ei.push(new Kn(z,z)),Ua(se,ia(a,Ge.ranges.slice(0,_e).concat(Ei),_e),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Wa)}else{var ms=ge,ns=ds(a,Wa,x.unit),Ll=ms.anchor,Zl;ht(ns.anchor,Ll)>0?(Zl=ns.head,Ll=It(ms.from(),ns.anchor)):(Zl=ns.anchor,Ll=mr(ms.to(),ns.head));var Pl=Ge.ranges.slice(0);Pl[_e]=_s(a,new Kn(Tt(se,Ll),Zl)),Ua(se,ia(a,Pl,_e),pt)}}var zn=ee.wrapper.getBoundingClientRect(),Mr=0;function qr(Wa){var Ei=++Mr,to=Nr(a,Wa,!0,x.unit=="rectangle");if(to)if(ht(to,En)!=0){a.curOp.focus=Be(),Yn(to);var Gi=Po(ee,se);(to.line>=Gi.to||to.line<Gi.from)&&setTimeout(Ir(a,function(){Mr==Ei&&qr(Wa)}),150)}else{var Bo=Wa.clientY<zn.top?-20:Wa.clientY>zn.bottom?20:0;Bo&&setTimeout(Ir(a,function(){Mr==Ei&&(ee.scroller.scrollTop+=Bo,qr(Wa))}),50)}}function Ba(Wa){a.state.selectingText=!1,Mr=1/0,Wa&&(Pt(Wa),ee.input.focus()),wn(ee.wrapper.ownerDocument,"mousemove",Ka),wn(ee.wrapper.ownerDocument,"mouseup",ii),se.history.lastSelOrigin=null}var Ka=Ir(a,function(Wa){Wa.buttons===0||!qt(Wa)?Ba(Wa):qr(Wa)}),ii=Ir(a,Ba);a.state.selectingText=ii,Gt(ee.wrapper.ownerDocument,"mousemove",Ka),Gt(ee.wrapper.ownerDocument,"mouseup",ii)}function _s(a,b){var z=b.anchor,x=b.head,ee=Dn(a.doc,z.line);if(ht(z,x)==0&&z.sticky==x.sticky)return b;var se=Xe(ee);if(!se)return b;var ge=Ft(se,z.ch,z.sticky),_e=se[ge];if(_e.from!=z.ch&&_e.to!=z.ch)return b;var Ge=ge+(_e.from==z.ch==(_e.level!=1)?0:1);if(Ge==0||Ge==se.length)return b;var ot;if(x.line!=z.line)ot=(x.line-z.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var dn=Ft(se,x.ch,x.sticky),En=dn-ge||(x.ch-z.ch)*(_e.level==1?-1:1);dn==Ge-1||dn==Ge?ot=En<0:ot=En>0}var Yn=se[Ge+(ot?-1:0)],zn=ot==(Yn.level==1),Mr=zn?Yn.from:Yn.to,qr=zn?"after":"before";return z.ch==Mr&&z.sticky==qr?b:new Kn(new it(z.line,Mr,qr),x)}function Ks(a,b,z,x){var ee,se;if(b.touches)ee=b.touches[0].clientX,se=b.touches[0].clientY;else try{ee=b.clientX,se=b.clientY}catch(Yn){return!1}if(ee>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&Pt(b);var ge=a.display,_e=ge.lineDiv.getBoundingClientRect();if(se>_e.bottom||!At(a,z))return pn(b);se-=_e.top-ge.viewOffset;for(var Ge=0;Ge<a.display.gutterSpecs.length;++Ge){var ot=ge.gutters.childNodes[Ge];if(ot&&ot.getBoundingClientRect().right>=ee){var dn=Vt(a.doc,se),En=a.display.gutterSpecs[Ge];return gn(a,z,a,dn,En.className,b),pn(b)}}}function Ts(a,b){return Ks(a,b,"gutterClick",!0)}function iu(a,b){Qo(a.display,b)||Yu(a,b)||Rt(a,b,"contextmenu")||Ae||a.display.input.onContextMenu(b)}function Yu(a,b){return At(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,se,ge){a.defaults[x]=ee,se&&(b[x]=ge?function(_e,Ge,ot){ot!=Au&&se(_e,Ge,ot)}:se)}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 se=[],ge=x.doc.first;x.doc.iter(function(Ge){for(var ot=0;;){var dn=Ge.text.indexOf(ee,ot);if(dn==-1)break;ot=dn+ee.length,se.push(it(ge,dn))}ge++});for(var _e=se.length-1;_e>=0;_e--)Ao(x.doc,ee,se[_e],it(se[_e].line,se[_e].ch+ee.length))}}),z("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,ee,se){x.state.specialChars=new RegExp(ee.source+(ee.test(" ")?"":"| "),"g"),se!=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",!rt),z("wholeLineUpdateBefore",!0),z("theme","default",function(x){Tc(x),Tn(x)},!0),z("keyMap","default",function(x,ee,se){var ge=pu(ee),_e=se!=Au&&pu(se);_e&&_e.detach&&_e.detach(x,ge),ge.attach&&ge.attach(x,_e||null)}),z("extraKeys",null),z("configureMouse",null),z("lineWrapping",!1,bc,!0),z("gutters",[],function(x,ee){x.display.gutterSpecs=on(ee,x.options.lineNumbers),Tn(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=on(x.options.gutters,ee),Tn(x)},!0),z("firstLineNumber",1,Tn,!0),z("lineNumberFormatter",function(x){return x},Tn,!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"&&(Tl(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,se=b?Gt:wn;se(a.display.scroller,"dragstart",ee.start),se(a.display.scroller,"dragenter",ee.enter),se(a.display.scroller,"dragover",ee.over),se(a.display.scroller,"dragleave",ee.leave),se(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):(Ye(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?st(b):{},st(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),se=this.display=new Bn(a,x,ee,b);se.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&&se.input.focus(),xe&&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&&_l(z)},20):Tl(this);for(var ge in ac)ac.hasOwnProperty(ge)&&ac[ge](this,b[ge],Au);Lt(this),b.finishInit&&b.finishInit(this);for(var _e=0;_e<dc.length;++_e)dc[_e](this);ws(this),Ce&&b.lineWrapping&&getComputedStyle(se.lineDiv).textRendering=="optimizelegibility"&&(se.lineDiv.style.textRendering="auto")}wl.defaults=rc,wl.optionHandlers=ac;function Ec(a){var b=a.display;Gt(b.scroller,"mousedown",Ir(a,Xu)),xe&&Ee<11?Gt(b.scroller,"dblclick",Ir(a,function(Ge){if(!Rt(a,Ge)){var ot=Nr(a,Ge);if(!(!ot||Ts(a,Ge)||Qo(a.display,Ge))){Pt(Ge);var dn=a.findWordAt(ot);yo(a.doc,dn.anchor,dn.head)}}})):Gt(b.scroller,"dblclick",function(Ge){return Rt(a,Ge)||Pt(Ge)}),Gt(b.scroller,"contextmenu",function(Ge){return iu(a,Ge)}),Gt(b.input.getField(),"contextmenu",function(Ge){b.scroller.contains(Ge.target)||iu(a,Ge)});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 se(Ge){if(Ge.touches.length!=1)return!1;var ot=Ge.touches[0];return ot.radiusX<=1&&ot.radiusY<=1}function ge(Ge,ot){if(ot.left==null)return!0;var dn=ot.left-Ge.left,En=ot.top-Ge.top;return dn*dn+En*En>20*20}Gt(b.scroller,"touchstart",function(Ge){if(!Rt(a,Ge)&&!se(Ge)&&!Ts(a,Ge)){b.input.ensurePolled(),clearTimeout(z);var ot=+new Date;b.activeTouch={start:ot,moved:!1,prev:ot-x.end<=300?x:null},Ge.touches.length==1&&(b.activeTouch.left=Ge.touches[0].pageX,b.activeTouch.top=Ge.touches[0].pageY)}}),Gt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Gt(b.scroller,"touchend",function(Ge){var ot=b.activeTouch;if(ot&&!Qo(b,Ge)&&ot.left!=null&&!ot.moved&&new Date-ot.start<300){var dn=a.coordsChar(b.activeTouch,"page"),En;!ot.prev||ge(ot,ot.prev)?En=new Kn(dn,dn):!ot.prev.prev||ge(ot,ot.prev.prev)?En=a.findWordAt(dn):En=new Kn(it(dn.line,0),Tt(a.doc,it(dn.line+1,0))),a.setSelection(En.anchor,En.head),a.focus(),Pt(Ge)}ee()}),Gt(b.scroller,"touchcancel",ee),Gt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(js(a,b.scroller.scrollTop),gs(a,b.scroller.scrollLeft,!0),gn(a,"scroll",a))}),Gt(b.scroller,"mousewheel",function(Ge){return nr(a,Ge)}),Gt(b.scroller,"DOMMouseScroll",function(Ge){return nr(a,Ge)}),Gt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(Ge){Rt(a,Ge)||nt(Ge)},over:function(Ge){Rt(a,Ge)||(Ns(a,Ge),nt(Ge))},start:function(Ge){return Os(a,Ge)},drop:Ir(a,Hs),leave:function(Ge){Rt(a,Ge)||nu(a)}};var _e=b.input.getField();Gt(_e,"keyup",function(Ge){return Gu.call(a,Ge)}),Gt(_e,"keydown",Ir(a,Ku)),Gt(_e,"keypress",Ir(a,Fu)),Gt(_e,"focus",function(Ge){return _l(a,Ge)}),Gt(_e,"blur",function(Ge){return Tl(a,Ge)})}var dc=[];wl.defineInitHook=function(a){return dc.push(a)};function Ou(a,b,z,x){var ee=a.doc,se;z==null&&(z="add"),z=="smart"&&(ee.mode.indent?se=Pr(a,b).state:z="prev");var ge=a.options.tabSize,_e=Dn(ee,b),Ge=Se(_e.text,null,ge);_e.stateAfter&&(_e.stateAfter=null);var ot=_e.text.match(/^\s*/)[0],dn;if(!x&&!/\S/.test(_e.text))dn=0,z="not";else if(z=="smart"&&(dn=ee.mode.indent(se,_e.text.slice(ot.length),_e.text),dn==$t||dn>150)){if(!x)return;z="prev"}z=="prev"?b>ee.first?dn=Se(Dn(ee,b-1).text,null,ge):dn=0:z=="add"?dn=Ge+a.options.indentUnit:z=="subtract"?dn=Ge-a.options.indentUnit:typeof z=="number"&&(dn=Ge+z),dn=Math.max(0,dn);var En="",Yn=0;if(a.options.indentWithTabs)for(var zn=Math.floor(dn/ge);zn;--zn)Yn+=ge,En+=" ";if(Yn<dn&&(En+=Ct(dn-Yn)),En!=ot)return Ao(ee,En,it(b,0),it(b,ot.length),"+input"),_e.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<ot.length){var Ba=it(b,ot.length);cl(ee,Mr,new Kn(Ba,Ba));break}}}var Gs=null;function Nu(a){Gs=a}function fc(a,b,z,x,ee){var se=a.doc;a.display.shift=!1,x||(x=se.sel);var ge=+new Date-200,_e=ee=="paste"||a.state.pasteIncoming>ge,Ge=On(b),ot=null;if(_e&&x.ranges.length>1)if(Gs&&Gs.text.join(`
`)==b){if(x.ranges.length%Gs.text.length==0){ot=[];for(var dn=0;dn<Gs.text.length;dn++)ot.push(se.splitLines(Gs.text[dn]))}}else Ge.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(ot=mn(Ge,function(Ka){return[Ka]}));for(var En=a.curOp.updateInput,Yn=x.ranges.length-1;Yn>=0;Yn--){var zn=x.ranges[Yn],Mr=zn.from(),qr=zn.to();zn.empty()&&(z&&z>0?Mr=it(Mr.line,Mr.ch-z):a.state.overwrite&&!_e?qr=it(qr.line,Math.min(Dn(se,qr.line).text.length,qr.ch+mt(Ge).length)):_e&&Gs&&Gs.lineWise&&Gs.text.join(`
`)==Ge.join(`
`)&&(Mr=qr=it(Mr.line,0)));var Ba={from:Mr,to:qr,text:ot?ot[Yn%ot.length]:Ge,origin:ee||(_e?"paste":a.state.cutIncoming>ge?"cut":"+input")};zo(a.doc,Ba),no(a,"inputRead",a,Ba)}b&&!_e&&xc(a,b),xs(a),a.curOp.updateInput<2&&(a.curOp.updateInput=En),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 se=a.getModeAt(ee.head),ge=!1;if(se.electricChars){for(var _e=0;_e<se.electricChars.length;_e++)if(b.indexOf(se.electricChars.charAt(_e))>-1){ge=Ou(a,ee.head.line,"smart");break}}else se.electricInput&&se.electricInput.test(Dn(a.doc,ee.head.line).text.slice(0,ee.head.ch))&&(ge=Ou(a,ee.head.line,"smart"));ge&&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,se={anchor:it(ee,0),head:it(ee+1,0)};z.push(se),b.push(a.getRange(se.anchor,se.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=lt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=lt("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ce?a.style.width="1000px":a.setAttribute("wrap","off"),Ke&&(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 se=this.options,ge=se[x];se[x]==ee&&x!="mode"||(se[x]=ee,b.hasOwnProperty(x)&&Ir(this,b[x])(this,ee,ge),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,se=0;se<ee.length;++se)if(ee[se]==x||ee[se].name==x)return ee.splice(se,1),!0},addOverlay:Zi(function(x,ee){var se=x.token?x:a.getMode(this.options,x);if(se.startState)throw new Error("Overlays may not be stateful.");zt(this.state.overlays,{mode:se,modeSpec:x,opaque:ee&&ee.opaque,priority:ee&&ee.priority||0},function(ge){return ge.priority}),this.state.modeGen++,ja(this)}),removeOverlay:Zi(function(x){for(var ee=this.state.overlays,se=0;se<ee.length;++se){var ge=ee[se].modeSpec;if(ge==x||typeof x=="string"&&ge.name==x){ee.splice(se,1),this.state.modeGen++,ja(this);return}}}),indentLine:Zi(function(x,ee,se){typeof ee!="string"&&typeof ee!="number"&&(ee==null?ee=this.options.smartIndent?"smart":"prev":ee=ee?"add":"subtract"),ft(this.doc,x)&&Ou(this,x,ee,se)}),indentSelection:Zi(function(x){for(var ee=this.doc.sel.ranges,se=-1,ge=0;ge<ee.length;ge++){var _e=ee[ge];if(_e.empty())_e.head.line>se&&(Ou(this,_e.head.line,x,!0),se=_e.head.line,ge==this.doc.sel.primIndex&&xs(this));else{var Ge=_e.from(),ot=_e.to(),dn=Math.max(se,Ge.line);se=Math.min(this.lastLine(),ot.line-(ot.ch?0:1))+1;for(var En=dn;En<se;++En)Ou(this,En,x);var Yn=this.doc.sel.ranges;Ge.ch==0&&ee.length==Yn.length&&Yn[ge].from().ch>0&&cl(this.doc,ge,new Kn(Ge,Yn[ge].to()),Fe)}}}),getTokenAt:function(x,ee){return Xr(this,x,ee)},getLineTokens:function(x,ee){return Xr(this,it(x),ee,!0)},getTokenTypeAt:function(x){x=Tt(this.doc,x);var ee=hr(this,Dn(this.doc,x.line)),se=0,ge=(ee.length-1)/2,_e=x.ch,Ge;if(_e==0)Ge=ee[2];else for(;;){var ot=se+ge>>1;if((ot?ee[ot*2-1]:0)>=_e)ge=ot;else if(ee[ot*2+1]<_e)se=ot+1;else{Ge=ee[ot*2+2];break}}var dn=Ge?Ge.indexOf("overlay "):-1;return dn<0?Ge:dn==0?null:Ge.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 se=[];if(!z.hasOwnProperty(ee))return se;var ge=z[ee],_e=this.getModeAt(x);if(typeof _e[ee]=="string")ge[_e[ee]]&&se.push(ge[_e[ee]]);else if(_e[ee])for(var Ge=0;Ge<_e[ee].length;Ge++){var ot=ge[_e[ee][Ge]];ot&&se.push(ot)}else _e.helperType&&ge[_e.helperType]?se.push(ge[_e.helperType]):ge[_e.name]&&se.push(ge[_e.name]);for(var dn=0;dn<ge._global.length;dn++){var En=ge._global[dn];En.pred(_e,this)&&vt(se,En.val)==-1&&se.push(En.val)}return se},getStateAfter:function(x,ee){var se=this.doc;return x=_t(se,x==null?se.first+se.size-1:x),Pr(this,x+1,ee).state},cursorCoords:function(x,ee){var se,ge=this.doc.sel.primary();return x==null?se=ge.head:typeof x=="object"?se=Tt(this.doc,x):se=x?ge.from():ge.to(),vi(this,se,ee||"page")},charCoords:function(x,ee){return ga(this,Tt(this.doc,x),ee||"page")},coordsChar:function(x,ee){return x=bi(this,x,ee||"page"),Bt(this,x.left,x.top)},lineAtHeight:function(x,ee){return x=bi(this,{top:x,left:0},ee||"page").top,Vt(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,ee,se){var ge=!1,_e;if(typeof x=="number"){var Ge=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>Ge&&(x=Ge,ge=!0),_e=Dn(this.doc,x)}else _e=x;return go(this,_e,{top:0,left:0},ee||"page",se||ge).top+(ge?this.doc.height-_a(_e):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,se,ge,_e){var Ge=this.display;x=vi(this,Tt(this.doc,x));var ot=x.bottom,dn=x.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),Ge.sizer.appendChild(ee),ge=="over")ot=x.top;else if(ge=="above"||ge=="near"){var En=Math.max(Ge.wrapper.clientHeight,this.doc.height),Yn=Math.max(Ge.sizer.clientWidth,Ge.lineSpace.clientWidth);(ge=="above"||x.bottom+ee.offsetHeight>En)&&x.top>ee.offsetHeight?ot=x.top-ee.offsetHeight:x.bottom+ee.offsetHeight<=En&&(ot=x.bottom),dn+ee.offsetWidth>Yn&&(dn=Yn-ee.offsetWidth)}ee.style.top=ot+"px",ee.style.left=ee.style.right="",_e=="right"?(dn=Ge.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(_e=="left"?dn=0:_e=="middle"&&(dn=(Ge.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=dn+"px"),se&&$s(this,{left:dn,top:ot,right:dn+ee.offsetWidth,bottom:ot+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,se,ge){var _e=1;ee<0&&(_e=-1,ee=-ee);for(var Ge=Tt(this.doc,x),ot=0;ot<ee&&(Ge=ic(this.doc,Ge,_e,se,ge),!Ge.hitSide);++ot);return Ge},moveH:Zi(function(x,ee){var se=this;this.extendSelectionsBy(function(ge){return se.display.shift||se.doc.extend||ge.empty()?ic(se.doc,ge.head,x,ee,se.options.rtlMoveVisually):x<0?ge.from():ge.to()},ut)}),deleteH:Zi(function(x,ee){var se=this.doc.sel,ge=this.doc;se.somethingSelected()?ge.replaceSelection("",null,"+delete"):Qs(this,function(_e){var Ge=ic(ge,_e.head,x,ee,!1);return x<0?{from:Ge,to:_e.head}:{from:_e.head,to:Ge}})}),findPosV:function(x,ee,se,ge){var _e=1,Ge=ge;ee<0&&(_e=-1,ee=-ee);for(var ot=Tt(this.doc,x),dn=0;dn<ee;++dn){var En=vi(this,ot,"div");if(Ge==null?Ge=En.left:En.left=Ge,ot=Qu(this,En,_e,se),ot.hitSide)break}return ot},moveV:Zi(function(x,ee){var se=this,ge=this.doc,_e=[],Ge=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(dn){if(Ge)return x<0?dn.from():dn.to();var En=vi(se,dn.head,"div");dn.goalColumn!=null&&(En.left=dn.goalColumn),_e.push(En.left);var Yn=Qu(se,En,x,ee);return ee=="page"&&dn==ge.sel.primary()&&eu(se,ga(se,Yn,"div").top-En.top),Yn},ut),_e.length)for(var ot=0;ot<ge.sel.ranges.length;ot++)ge.sel.ranges[ot].goalColumn=_e[ot]}),findWordAt:function(x){var ee=this.doc,se=Dn(ee,x.line).text,ge=x.ch,_e=x.ch;if(se){var Ge=this.getHelper(x,"wordChars");(x.sticky=="before"||_e==se.length)&&ge?--ge:++_e;for(var ot=se.charAt(ge),dn=pe(ot,Ge)?function(En){return pe(En,Ge)}:/\s/.test(ot)?function(En){return/\s/.test(En)}:function(En){return!/\s/.test(En)&&!pe(En)};ge>0&&dn(se.charAt(ge-1));)--ge;for(;_e<se.length&&dn(se.charAt(_e));)++_e}return new Kn(it(x.line,ge),it(x.line,_e))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):Ye(this.display.cursorDiv,"CodeMirror-overwrite"),gn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Be()},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-Nn(this)-this.display.barHeight,width:x.scrollWidth-Nn(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:it(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 se=this,ge=function(Ge){return typeof Ge=="number"||/^\d+$/.test(String(Ge))?Ge+"px":Ge};x!=null&&(this.display.wrapper.style.width=ge(x)),ee!=null&&(this.display.wrapper.style.height=ge(ee)),this.options.lineWrapping&&_i(this);var _e=this.display.viewFrom;this.doc.iter(_e,this.display.viewTo,function(Ge){if(Ge.widgets){for(var ot=0;ot<Ge.widgets.length;ot++)if(Ge.widgets[ot].noHScroll){ua(se,_e,"widget");break}}++_e}),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),Re(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}},Je(a),a.registerHelper=function(x,ee,se){z.hasOwnProperty(x)||(z[x]=a[x]={_global:[]}),z[x][ee]=se},a.registerGlobalHelper=function(x,ee,se,ge){a.registerHelper(x,ee,ge),z[x]._global.push({pred:se,val:ge})}}function ic(a,b,z,x,ee){var se=b,ge=z,_e=Dn(a,b.line),Ge=ee&&a.direction=="rtl"?-z:z;function ot(){var ii=b.line+Ge;return ii<a.first||ii>=a.first+a.size?!1:(b=new it(ii,b.ch,b.sticky),_e=Dn(a,ii))}function dn(ii){var Wa;if(x=="codepoint"){var Ei=_e.text.charCodeAt(b.ch+(x>0?0:-1));isNaN(Ei)?Wa=null:Wa=new it(b.line,Math.max(0,Math.min(_e.text.length,b.ch+z*(Ei>=55296&&Ei<56320?2:1))),-z)}else ee?Wa=tc(a.cm,_e,b,z):Wa=Ls(_e,b,z);if(Wa==null)if(!ii&&ot())b=ju(ee,a.cm,_e,b.line,Ge);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 En=null,Yn=x=="group",zn=a.cm&&a.cm.getHelper(b,"wordChars"),Mr=!0;!(z<0&&!dn(!Mr));Mr=!1){var qr=_e.text.charAt(b.ch)||`
`,Ba=pe(qr,zn)?"w":Yn&&qr==`
`?"n":!Yn||/\s/.test(qr)?null:"p";if(Yn&&!Mr&&!Ba&&(Ba="s"),En&&En!=Ba){z<0&&(z=1,dn(),b.sticky="after");break}if(Ba&&(En=Ba),z>0&&!dn(!Mr))break}var Ka=Bl(a,b,se,ge,!0);return cn(se,Ka)&&(Ka.hitSide=!0),Ka}function Qu(a,b,z,x){var ee=a.doc,se=b.left,ge;if(x=="page"){var _e=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ge=Math.max(_e-.5*Fr(a.display),3);ge=(z>0?b.bottom:b.top)+z*Ge}else x=="line"&&(ge=z>0?b.bottom+3:b.top-3);for(var ot;ot=Bt(a,se,ge),!!ot.outside;){if(z<0?ge<=0:ge>=ee.height){ot.hitSide=!0;break}ge+=z*5}return ot}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 se(_e){for(var Ge=_e.target;Ge;Ge=Ge.parentNode){if(Ge==ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ge.className))break}return!1}Gt(ee,"paste",function(_e){!se(_e)||Rt(x,_e)||Cc(_e,x)||Ee<=11&&setTimeout(Ir(x,function(){return b.updateFromDOM()}),20)}),Gt(ee,"compositionstart",function(_e){b.composing={data:_e.data,done:!1}}),Gt(ee,"compositionupdate",function(_e){b.composing||(b.composing={data:_e.data,done:!1})}),Gt(ee,"compositionend",function(_e){b.composing&&(_e.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Gt(ee,"touchstart",function(){return z.forceCompositionEnd()}),Gt(ee,"input",function(){b.composing||b.readFromDOMSoon()});function ge(_e){if(!(!se(_e)||Rt(x,_e))){if(x.somethingSelected())Nu({lineWise:!1,text:x.getSelections()}),_e.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var Ge=Sc(x);Nu({lineWise:!0,text:Ge.text}),_e.type=="cut"&&x.operation(function(){x.setSelections(Ge.ranges,0,Fe),x.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var ot=Gs.text.join(`
`);if(_e.clipboardData.setData("Text",ot),_e.clipboardData.getData("Text")==ot){_e.preventDefault();return}}var dn=Bc(),En=dn.firstChild;x.display.lineSpace.insertBefore(dn,x.display.lineSpace.firstChild),En.value=Gs.text.join(`
`);var Yn=document.activeElement;Qe(En),setTimeout(function(){x.display.lineSpace.removeChild(dn),Yn.focus(),Yn==ee&&z.showPrimarySelection()},50)}}Gt(ee,"copy",ge),Gt(ee,"cut",ge)},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 se=oc(b,a.anchorNode,a.anchorOffset),ge=oc(b,a.focusNode,a.focusOffset);if(!(se&&!se.bad&&ge&&!ge.bad&&ht(It(se,ge),x)==0&&ht(mr(se,ge),ee)==0)){var _e=b.display.view,Ge=x.line>=b.display.viewFrom&&Dc(b,x)||{node:_e[0].measure.map[2],offset:0},ot=ee.line<b.display.viewTo&&Dc(b,ee);if(!ot){var dn=_e[_e.length-1].measure,En=dn.maps?dn.maps[dn.maps.length-1]:dn.map;ot={node:En[En.length-1],offset:En[En.length-2]-En[En.length-3]}}if(!Ge||!ot){a.removeAllRanges();return}var Yn=a.rangeCount&&a.getRangeAt(0),zn;try{zn=be(Ge.node,Ge.offset,ot.offset,ot.node)}catch(Mr){}zn&&(!y&&b.state.focused?(a.collapse(Ge.node,Ge.offset),zn.collapsed||(a.removeAllRanges(),a.addRange(zn))):(a.removeAllRanges(),a.addRange(zn)),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){gt(this.cm.display.cursorDiv,a.cursors),gt(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 We(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(Te&&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),Fe),(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=it(x.line-1,Dn(a.doc,x.line-1).length)),ee.ch==Dn(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=it(ee.line+1,0)),x.line<b.viewFrom||ee.line>b.viewTo-1)return!1;var se,ge,_e;x.line==b.viewFrom||(se=Fa(a,x.line))==0?(ge=Mt(b.view[0].line),_e=b.view[0].node):(ge=Mt(b.view[se].line),_e=b.view[se-1].node.nextSibling);var Ge=Fa(a,ee.line),ot,dn;if(Ge==b.view.length-1?(ot=b.viewTo-1,dn=b.lineDiv.lastChild):(ot=Mt(b.view[Ge+1].line)-1,dn=b.view[Ge+1].node.previousSibling),!_e)return!1;for(var En=a.doc.splitLines(Lc(a,_e,dn,ge,ot)),Yn=Zn(a.doc,it(ge,0),it(ot,Dn(a.doc,ot).text.length));En.length>1&&Yn.length>1;)if(mt(En)==mt(Yn))En.pop(),Yn.pop(),ot--;else if(En[0]==Yn[0])En.shift(),Yn.shift(),ge++;else break;for(var zn=0,Mr=0,qr=En[0],Ba=Yn[0],Ka=Math.min(qr.length,Ba.length);zn<Ka&&qr.charCodeAt(zn)==Ba.charCodeAt(zn);)++zn;for(var ii=mt(En),Wa=mt(Yn),Ei=Math.min(ii.length-(En.length==1?zn:0),Wa.length-(Yn.length==1?zn:0));Mr<Ei&&ii.charCodeAt(ii.length-Mr-1)==Wa.charCodeAt(Wa.length-Mr-1);)++Mr;if(En.length==1&&Yn.length==1&&ge==x.line)for(;zn&&zn>x.ch&&ii.charCodeAt(ii.length-Mr-1)==Wa.charCodeAt(Wa.length-Mr-1);)zn--,Mr++;En[En.length-1]=ii.slice(0,ii.length-Mr).replace(/^\u200b+/,""),En[0]=En[0].slice(zn).replace(/\u200b+$/,"");var to=it(ge,zn),Gi=it(ot,Yn.length?mt(Yn).length-Mr:0);if(En.length>1||En[0]||ht(to,Gi))return Ao(a.doc,En,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=vr(a,b.line);if(!z||z.hidden)return null;var x=Dn(a.doc,b.line),ee=ir(z,x,b.line),se=Xe(x,a.doc.direction),ge="left";if(se){var _e=Ft(se,b.ch);ge=_e%2?"right":"left"}var Ge=fo(ee.map,b.ch,ge);return Ge.offset=Ge.collapse=="right"?Ge.end:Ge.start,Ge}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 se="",ge=!1,_e=a.doc.lineSeparator(),Ge=!1;function ot(zn){return function(Mr){return Mr.id==zn}}function dn(){ge&&(se+=_e,Ge&&(se+=_e),ge=Ge=!1)}function En(zn){zn&&(dn(),se+=zn)}function Yn(zn){if(zn.nodeType==1){var Mr=zn.getAttribute("cm-text");if(Mr){En(Mr);return}var qr=zn.getAttribute("cm-marker"),Ba;if(qr){var Ka=a.findMarks(it(x,0),it(ee+1,0),ot(+qr));Ka.length&&(Ba=Ka[0].find(0))&&En(Zn(a.doc,Ba.from,Ba.to).join(_e));return}if(zn.getAttribute("contenteditable")=="false")return;var ii=/^(pre|div|p|li|table|br)$/i.test(zn.nodeName);if(!/^br$/i.test(zn.nodeName)&&zn.textContent.length==0)return;ii&&dn();for(var Wa=0;Wa<zn.childNodes.length;Wa++)Yn(zn.childNodes[Wa]);/^(pre|p)$/i.test(zn.nodeName)&&(Ge=!0),ii&&(ge=!0)}else zn.nodeType==3&&En(zn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Yn(b),b!=z;)b=b.nextSibling,Ge=!1;return se}function oc(a,b,z){var x;if(b==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[z],!x)return bu(a.clipPos(it(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 se=a.display.view[ee];if(se.node==x)return Zc(se,b,z)}}function Zc(a,b,z){var x=a.text.firstChild,ee=!1;if(!b||!We(x,b))return bu(it(Mt(a.line),0),!0);if(b==x&&(ee=!0,b=x.childNodes[z],z=0,!b)){var se=a.rest?mt(a.rest):a.line;return bu(it(Mt(se),se.text.length),ee)}var ge=b.nodeType==3?b:null,_e=b;for(!ge&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(ge=b.firstChild,z&&(z=ge.nodeValue.length));_e.parentNode!=x;)_e=_e.parentNode;var Ge=a.measure,ot=Ge.maps;function dn(Ba,Ka,ii){for(var Wa=-1;Wa<(ot?ot.length:0);Wa++)for(var Ei=Wa<0?Ge.map:ot[Wa],to=0;to<Ei.length;to+=3){var Gi=Ei[to+2];if(Gi==Ba||Gi==Ka){var Bo=Mt(Wa<0?a.line:a.rest[Wa]),ml=Ei[to]+ii;return(ii<0||Gi!=Ba)&&(ml=Ei[to+(ii?1:0)]),it(Bo,ml)}}}var En=dn(ge,_e,z);if(En)return bu(En,ee);for(var Yn=_e.nextSibling,zn=ge?ge.nodeValue.length-z:0;Yn;Yn=Yn.nextSibling){if(En=dn(Yn,Yn.firstChild,0),En)return bu(it(En.line,En.ch-zn),ee);zn+=Yn.textContent.length}for(var Mr=_e.previousSibling,qr=z;Mr;Mr=Mr.previousSibling){if(En=dn(Mr,Mr.firstChild,-1),En)return bu(it(En.line,En.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),Ke&&(ee.style.width="0px"),Gt(ee,"input",function(){xe&&Ee>=9&&b.hasSelection&&(b.hasSelection=null),z.poll()}),Gt(ee,"paste",function(ge){Rt(x,ge)||Cc(ge,x)||(x.state.pasteIncoming=+new Date,z.fastPoll())});function se(ge){if(!Rt(x,ge)){if(x.somethingSelected())Nu({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var _e=Sc(x);Nu({lineWise:!0,text:_e.text}),ge.type=="cut"?x.setSelections(_e.ranges,null,Fe):(z.prevInput="",ee.value=_e.text.join(`
`),Qe(ee))}else return;ge.type=="cut"&&(x.state.cutIncoming=+new Date)}}Gt(ee,"cut",se),Gt(ee,"copy",se),Gt(a.scroller,"paste",function(ge){if(!(Qo(a,ge)||Rt(x,ge))){if(!ee.dispatchEvent){x.state.pasteIncoming=+new Date,z.focus();return}var _e=new Event("paste");_e.clipboardData=ge.clipboardData,ee.dispatchEvent(_e)}}),Gt(a.lineSpace,"selectstart",function(ge){Qo(a,ge)||Pt(ge)}),Gt(ee,"compositionstart",function(){var ge=x.getCursor("from");z.composing&&z.composing.range.clear(),z.composing={start:ge,range:x.markText(ge,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Gt(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=vi(a,z.sel.primary().head,"div"),se=b.wrapper.getBoundingClientRect(),ge=b.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ee.top+ge.top-se.top)),x.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ee.left+ge.left-se.left))}return x},Rl.prototype.showSelection=function(a){var b=this.cm,z=b.display;gt(z.cursorDiv,a.cursors),gt(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&&Qe(this.textarea),xe&&Ee>=9&&(this.hasSelection=z)}else a||(this.prevInput=this.textarea.value="",xe&&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||Be()!=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||Vn(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(xe&&Ee>=9&&this.hasSelection===ee||Ie&&/[\uf700-\uf7ff]/.test(ee))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var se=ee.charCodeAt(0);if(se==8203&&!x&&(x="\u200B"),se==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,_e=Math.min(x.length,ee.length);ge<_e&&x.charCodeAt(ge)==ee.charCodeAt(ge);)++ge;return Ta(b,function(){fc(b,ee.slice(ge),x.length-ge,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(){xe&&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 se=Nr(z,a),ge=x.scroller.scrollTop;if(!se||fe)return;var _e=z.options.resetSelectionOnContextMenu;_e&&z.doc.sel.contains(se)==-1&&Ir(z,Ua)(z.doc,_r(se),Fe);var Ge=ee.style.cssText,ot=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: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var En;Ce&&(En=window.scrollY),x.input.focus(),Ce&&window.scrollTo(null,En),x.input.reset(),z.somethingSelected()||(ee.value=b.prevInput=" "),b.contextMenuPending=zn,x.selForContextMenu=z.doc.sel,clearTimeout(x.detectingSelectAll);function Yn(){if(ee.selectionStart!=null){var qr=z.somethingSelected(),Ba="\u200B"+(qr?ee.value:"");ee.value="\u21DA",ee.value=Ba,b.prevInput=qr?"":"\u200B",ee.selectionStart=1,ee.selectionEnd=Ba.length,x.selForContextMenu=z.doc.sel}}function zn(){if(b.contextMenuPending==zn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=ot,ee.style.cssText=Ge,xe&&Ee<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=ge),ee.selectionStart!=null)){(!xe||xe&&Ee<9)&&Yn();var qr=0,Ba=function(){x.selForContextMenu==z.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&b.prevInput=="\u200B"?Ir(z,Ri)(z):qr++<10?x.detectingSelectAll=setTimeout(Ba,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Ba,200)}}if(xe&&Ee>=9&&Yn(),Ae){nt(a);var Mr=function(){wn(window,"mouseup",Mr),setTimeout(zn,20)};Gt(window,"mouseup",Mr)}else setTimeout(zn,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?st(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=Be();b.autofocus=z==a||a.getAttribute("autofocus")!=null&&z==document.body}function x(){a.value=_e.getValue()}var ee;if(a.form&&(Gt(a.form,"submit",x),!b.leaveSubmitMethodAlone)){var se=a.form;ee=se.submit;try{var ge=se.submit=function(){x(),se.submit=ee,se.submit(),se.submit=ge}}catch(Ge){}}b.finishInit=function(Ge){Ge.save=x,Ge.getTextArea=function(){return a},Ge.toTextArea=function(){Ge.toTextArea=isNaN,x(),a.parentNode.removeChild(Ge.getWrapperElement()),a.style.display="",a.form&&(wn(a.form,"submit",x),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ee))}},a.style.display="none";var _e=wl(function(Ge){return a.parentNode.insertBefore(Ge,a.nextSibling)},b);return _e}function Fc(a){a.off=wn,a.on=Gt,a.wheelEventPixels=lr,a.Doc=al,a.splitLines=On,a.countColumn=Se,a.findColumn=Yt,a.isWordChar=oe,a.Pass=$t,a.signal=gn,a.Line=ai,a.changeEnd=da,a.scrollbarModel=Eu,a.Pos=it,a.cmpPos=ht,a.modes=xn,a.mimeModes=ln,a.resolveMode=Rn,a.getMode=Er,a.modeExtensions=Jn,a.extendMode=dr,a.copyState=yr,a.startState=Vr,a.innerMode=gr,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=Pt,a.e_stopPropagation=nn,a.e_stop=nt,a.addClass=de,a.contains=We,a.rmClass=Ye,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 Je(al),wl.inputStyles={textarea:Rl,contenteditable:Uo},wl.defineMode=function(a){!wl.defaults.mode&&a!="null"&&(wl.defaults.mode=a),Pn.apply(this,arguments)},wl.defineMIME=Sn,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(Mn,Jt,E){(function(y){y(E(89780),E(15525),E(98101))})(function(y){"use strict";y.defineMode("markdown",function(ve,ce){var Le=y.getMode(ve,"text/html"),xe=Le.name=="null";function Ee(Se){if(y.findModeByName){var ye=y.findModeByName(Se);ye&&(Se=ye.mime||ye.mimes[0])}var vt=y.getMode(ve,Se);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+/,je=/^\[(x| )\](?=\s)/i,Ne=ce.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ke=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,we=/^\s*\[[^\]]+?\]:.*$/,Ie=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Pe=" ";function rt(Se,ye,vt){return ye.f=ye.inline=vt,vt(Se,ye)}function Et(Se,ye,vt){return ye.f=ye.block=vt,vt(Se,ye)}function Oe(Se){return!Se||!/\S/.test(Se.string)}function Ae(Se){if(Se.linkTitle=!1,Se.linkHref=!1,Se.linkText=!1,Se.em=!1,Se.strong=!1,Se.strikethrough=!1,Se.quote=0,Se.indentedCode=!1,Se.f==Ye){var ye=xe;if(!ye){var vt=y.innerMode(Le,Se.htmlState);ye=vt.mode.name=="xml"&&vt.state.tagStart===null&&!vt.state.context&&vt.state.tokenize.isInText}ye&&(Se.f=Ue,Se.block=Ve,Se.htmlState=null)}return Se.trailingSpace=0,Se.trailingSpaceNewLine=!1,Se.prevLine=Se.thisLine,Se.thisLine={stream:null},null}function Ve(Se,ye){var vt=Se.column()===ye.indentation,Ht=Oe(ye.prevLine.stream),$t=ye.indentedCode,Fe=ye.prevLine.hr,pt=ye.list!==!1,ut=(ye.listStack[ye.listStack.length-1]||0)+3;ye.indentedCode=!1;var Yt=ye.indentation;if(ye.indentationDiff===null&&(ye.indentationDiff=ye.indentation,pt)){for(ye.list=null;Yt<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=Yt-ye.listStack[ye.listStack.length-1])}var bt=!Ht&&!Fe&&!ye.prevLine.header&&(!pt||!$t)&&!ye.prevLine.fencedCodeEnd,Ct=(ye.list===!1||Fe||Ht)&&ye.indentation<=ut&&Se.match(De),mt=null;if(ye.indentationDiff>=4&&($t||ye.prevLine.fencedCodeEnd||ye.prevLine.header||Ht))return Se.skipToEnd(),ye.indentedCode=!0,Ce.code;if(Se.eatSpace())return null;if(vt&&ye.indentation<=ut&&(mt=Se.match(Ne))&&mt[1].length<=6)return ye.quote=0,ye.header=mt[1].length,ye.thisLine.header=!0,ce.highlightFormatting&&(ye.formatting="header"),ye.f=ye.inline,gt(ye);if(ye.indentation<=ut&&Se.eat(">"))return ye.quote=vt?1:ye.quote+1,ce.highlightFormatting&&(ye.formatting="quote"),Se.eatSpace(),gt(ye);if(!Ct&&!ye.setext&&vt&&ye.indentation<=ut&&(mt=Se.match(fe))){var mn=mt[1]?"ol":"ul";return ye.indentation=Yt+Se.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&&Se.match(je,!1)&&(ye.taskList=!0),ye.f=ye.inline,ce.highlightFormatting&&(ye.formatting=["list","list-"+mn]),gt(ye)}else{if(vt&&ye.indentation<=ut&&(mt=Se.match(Te,!0)))return ye.quote=0,ye.fencedEndRE=new RegExp(mt[1]+"+ *$"),ye.localMode=ce.fencedCodeBlockHighlighting&&Ee(mt[2]||ce.fencedCodeBlockDefaultMode),ye.localMode&&(ye.localState=y.startState(ye.localMode)),ye.f=ye.block=xt,ce.highlightFormatting&&(ye.formatting="code-block"),ye.code=-1,gt(ye);if(ye.setext||(!bt||!pt)&&!ye.quote&&ye.list===!1&&!ye.code&&!Ct&&!we.test(Se.string)&&(mt=Se.lookAhead(1))&&(mt=mt.match(ct)))return ye.setext?(ye.header=ye.setext,ye.setext=0,Se.skipToEnd(),ce.highlightFormatting&&(ye.formatting="header")):(ye.header=mt[0].charAt(0)=="="?1:2,ye.setext=ye.header),ye.thisLine.header=!0,ye.f=ye.inline,gt(ye);if(Ct)return Se.skipToEnd(),ye.hr=!0,ye.thisLine.hr=!0,Ce.hr;if(Se.peek()==="[")return rt(Se,ye,St)}return rt(Se,ye,ye.inline)}function Ye(Se,ye){var vt=Le.token(Se,ye.htmlState);if(!xe){var Ht=y.innerMode(Le,ye.htmlState);(Ht.mode.name=="xml"&&Ht.state.tagStart===null&&!Ht.state.context&&Ht.state.tokenize.isInText||ye.md_inside&&Se.current().indexOf(">")>-1)&&(ye.f=Ue,ye.block=Ve,ye.htmlState=null)}return vt}function xt(Se,ye){var vt=ye.listStack[ye.listStack.length-1]||0,Ht=ye.indentation<vt,$t=vt+3;if(ye.fencedEndRE&&ye.indentation<=$t&&(Ht||Se.match(ye.fencedEndRE))){ce.highlightFormatting&&(ye.formatting="code-block");var Fe;return Ht||(Fe=gt(ye)),ye.localMode=ye.localState=null,ye.block=Ve,ye.f=Ue,ye.fencedEndRE=null,ye.code=0,ye.thisLine.fencedCodeEnd=!0,Ht?Et(Se,ye,ye.block):Fe}else return ye.localMode?ye.localMode.token(Se,ye.localState):(Se.skipToEnd(),Ce.code)}function gt(Se){var ye=[];if(Se.formatting){ye.push(Ce.formatting),typeof Se.formatting=="string"&&(Se.formatting=[Se.formatting]);for(var vt=0;vt<Se.formatting.length;vt++)ye.push(Ce.formatting+"-"+Se.formatting[vt]),Se.formatting[vt]==="header"&&ye.push(Ce.formatting+"-"+Se.formatting[vt]+"-"+Se.header),Se.formatting[vt]==="quote"&&(!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Se.quote?ye.push(Ce.formatting+"-"+Se.formatting[vt]+"-"+Se.quote):ye.push("error"))}if(Se.taskOpen)return ye.push("meta"),ye.length?ye.join(" "):null;if(Se.taskClosed)return ye.push("property"),ye.length?ye.join(" "):null;if(Se.linkHref?ye.push(Ce.linkHref,"url"):(Se.strong&&ye.push(Ce.strong),Se.em&&ye.push(Ce.em),Se.strikethrough&&ye.push(Ce.strikethrough),Se.emoji&&ye.push(Ce.emoji),Se.linkText&&ye.push(Ce.linkText),Se.code&&ye.push(Ce.code),Se.image&&ye.push(Ce.image),Se.imageAltText&&ye.push(Ce.imageAltText,"link"),Se.imageMarker&&ye.push(Ce.imageMarker)),Se.header&&ye.push(Ce.header,Ce.header+"-"+Se.header),Se.quote&&(ye.push(Ce.quote),!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=Se.quote?ye.push(Ce.quote+"-"+Se.quote):ye.push(Ce.quote+"-"+ce.maxBlockquoteDepth)),Se.list!==!1){var Ht=(Se.listStack.length-1)%3;Ht?Ht===1?ye.push(Ce.list2):ye.push(Ce.list3):ye.push(Ce.list1)}return Se.trailingSpaceNewLine?ye.push("trailing-space-new-line"):Se.trailingSpace&&ye.push("trailing-space-"+(Se.trailingSpace%2?"a":"b")),ye.length?ye.join(" "):null}function lt(Se,ye){if(Se.match(Ke,!0))return gt(ye)}function Ue(Se,ye){var vt=ye.text(Se,ye);if(typeof vt!="undefined")return vt;if(ye.list)return ye.list=null,gt(ye);if(ye.taskList){var Ht=Se.match(je,!0)[1]===" ";return Ht?ye.taskOpen=!0:ye.taskClosed=!0,ce.highlightFormatting&&(ye.formatting="task"),ye.taskList=!1,gt(ye)}if(ye.taskOpen=!1,ye.taskClosed=!1,ye.header&&Se.match(/^#+$/,!0))return ce.highlightFormatting&&(ye.formatting="header"),gt(ye);var $t=Se.next();if(ye.linkTitle){ye.linkTitle=!1;var Fe=$t;$t==="("&&(Fe=")"),Fe=(Fe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var pt="^\\s*(?:[^"+Fe+"\\\\]+|\\\\\\\\|\\\\.)"+Fe;if(Se.match(new RegExp(pt),!0))return Ce.linkHref}if($t==="`"){var ut=ye.formatting;ce.highlightFormatting&&(ye.formatting="code"),Se.eatWhile("`");var Yt=Se.current().length;if(ye.code==0&&(!ye.quote||Yt==1))return ye.code=Yt,gt(ye);if(Yt==ye.code){var bt=gt(ye);return ye.code=0,bt}else return ye.formatting=ut,gt(ye)}else if(ye.code)return gt(ye);if($t==="\\"&&(Se.next(),ce.highlightFormatting)){var Ct=gt(ye),mt=Ce.formatting+"-escape";return Ct?Ct+" "+mt:mt}if($t==="!"&&Se.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ye.imageMarker=!0,ye.image=!0,ce.highlightFormatting&&(ye.formatting="image"),gt(ye);if($t==="["&&ye.imageMarker&&Se.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ye.imageMarker=!1,ye.imageAltText=!0,ce.highlightFormatting&&(ye.formatting="image"),gt(ye);if($t==="]"&&ye.imageAltText){ce.highlightFormatting&&(ye.formatting="image");var Ct=gt(ye);return ye.imageAltText=!1,ye.image=!1,ye.inline=ye.f=We,Ct}if($t==="["&&!ye.image)return ye.linkText&&Se.match(/^.*?\]/)||(ye.linkText=!0,ce.highlightFormatting&&(ye.formatting="link")),gt(ye);if($t==="]"&&ye.linkText){ce.highlightFormatting&&(ye.formatting="link");var Ct=gt(ye);return ye.linkText=!1,ye.inline=ye.f=Se.match(/\(.*?\)| ?\[.*?\]/,!1)?We:Ue,Ct}if($t==="<"&&Se.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=be,ce.highlightFormatting&&(ye.formatting="link");var Ct=gt(ye);return Ct?Ct+=" ":Ct="",Ct+Ce.linkInline}if($t==="<"&&Se.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=be,ce.highlightFormatting&&(ye.formatting="link");var Ct=gt(ye);return Ct?Ct+=" ":Ct="",Ct+Ce.linkEmail}if(ce.xml&&$t==="<"&&Se.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var mn=Se.string.indexOf(">",Se.pos);if(mn!=-1){var zt=Se.string.substring(Se.start,mn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(zt)&&(ye.md_inside=!0)}return Se.backUp(1),ye.htmlState=y.startState(Le),Et(Se,ye,Ye)}if(ce.xml&&$t==="<"&&Se.match(/^\/\w*?>/))return ye.md_inside=!1,"tag";if($t==="*"||$t==="_"){for(var ue=1,ie=Se.pos==1?" ":Se.string.charAt(Se.pos-2);ue<3&&Se.eat($t);)ue++;var re=Se.peek()||" ",oe=!/\s/.test(re)&&(!Ie.test(re)||/\s/.test(ie)||Ie.test(ie)),pe=!/\s/.test(ie)&&(!Ie.test(ie)||/\s/.test(re)||Ie.test(re)),ae=null,me=null;if(ue%2&&(!ye.em&&oe&&($t==="*"||!pe||Ie.test(ie))?ae=!0:ye.em==$t&&pe&&($t==="*"||!oe||Ie.test(re))&&(ae=!1)),ue>1&&(!ye.strong&&oe&&($t==="*"||!pe||Ie.test(ie))?me=!0:ye.strong==$t&&pe&&($t==="*"||!oe||Ie.test(re))&&(me=!1)),me!=null||ae!=null){ce.highlightFormatting&&(ye.formatting=ae==null?"strong":me==null?"em":"strong em"),ae===!0&&(ye.em=$t),me===!0&&(ye.strong=$t);var bt=gt(ye);return ae===!1&&(ye.em=!1),me===!1&&(ye.strong=!1),bt}}else if($t===" "&&(Se.eat("*")||Se.eat("_"))){if(Se.peek()===" ")return gt(ye);Se.backUp(1)}if(ce.strikethrough){if($t==="~"&&Se.eatWhile($t)){if(ye.strikethrough){ce.highlightFormatting&&(ye.formatting="strikethrough");var bt=gt(ye);return ye.strikethrough=!1,bt}else if(Se.match(/^[^\s]/,!1))return ye.strikethrough=!0,ce.highlightFormatting&&(ye.formatting="strikethrough"),gt(ye)}else if($t===" "&&Se.match(/^~~/,!0)){if(Se.peek()===" ")return gt(ye);Se.backUp(2)}}if(ce.emoji&&$t===":"&&Se.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ye.emoji=!0,ce.highlightFormatting&&(ye.formatting="emoji");var Ze=gt(ye);return ye.emoji=!1,Ze}return $t===" "&&(Se.match(/^ +$/,!1)?ye.trailingSpace++:ye.trailingSpace&&(ye.trailingSpaceNewLine=!0)),gt(ye)}function be(Se,ye){var vt=Se.next();if(vt===">"){ye.f=ye.inline=Ue,ce.highlightFormatting&&(ye.formatting="link");var Ht=gt(ye);return Ht?Ht+=" ":Ht="",Ht+Ce.linkInline}return Se.match(/^[^>]+/,!0),Ce.linkInline}function We(Se,ye){if(Se.eatSpace())return null;var vt=Se.next();return vt==="("||vt==="["?(ye.f=ye.inline=de(vt==="("?")":"]"),ce.highlightFormatting&&(ye.formatting="link-string"),ye.linkHref=!0,gt(ye)):"error"}var Be={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(Se){return function(ye,vt){var Ht=ye.next();if(Ht===Se){vt.f=vt.inline=Ue,ce.highlightFormatting&&(vt.formatting="link-string");var $t=gt(vt);return vt.linkHref=!1,$t}return ye.match(Be[Se]),vt.linkHref=!0,gt(vt)}}function St(Se,ye){return Se.match(/^([^\]\\]|\\.)*\]:/,!1)?(ye.f=Qe,Se.next(),ce.highlightFormatting&&(ye.formatting="link"),ye.linkText=!0,gt(ye)):rt(Se,ye,Ue)}function Qe(Se,ye){if(Se.match(/^\]:/,!0)){ye.f=ye.inline=ze,ce.highlightFormatting&&(ye.formatting="link");var vt=gt(ye);return ye.linkText=!1,vt}return Se.match(/^([^\]\\]|\\.)+/,!0),Ce.linkText}function ze(Se,ye){return Se.eatSpace()?null:(Se.match(/^[^\s]+/,!0),Se.peek()===void 0?ye.linkTitle=!0:Se.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ye.f=ye.inline=Ue,Ce.linkHref+" url")}var st={startState:function(){return{f:Ve,prevLine:{stream:null},thisLine:{stream:null},block:Ve,htmlState:null,indentation:0,inline:Ue,text:lt,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(Se){return{f:Se.f,prevLine:Se.prevLine,thisLine:Se.thisLine,block:Se.block,htmlState:Se.htmlState&&y.copyState(Le,Se.htmlState),indentation:Se.indentation,localMode:Se.localMode,localState:Se.localMode?y.copyState(Se.localMode,Se.localState):null,inline:Se.inline,text:Se.text,formatting:!1,linkText:Se.linkText,linkTitle:Se.linkTitle,linkHref:Se.linkHref,code:Se.code,em:Se.em,strong:Se.strong,strikethrough:Se.strikethrough,emoji:Se.emoji,header:Se.header,setext:Se.setext,hr:Se.hr,taskList:Se.taskList,list:Se.list,listStack:Se.listStack.slice(0),quote:Se.quote,indentedCode:Se.indentedCode,trailingSpace:Se.trailingSpace,trailingSpaceNewLine:Se.trailingSpaceNewLine,md_inside:Se.md_inside,fencedEndRE:Se.fencedEndRE}},token:function(Se,ye){if(ye.formatting=!1,Se!=ye.thisLine.stream){if(ye.header=0,ye.hr=!1,Se.match(/^\s*$/,!0))return Ae(ye),null;if(ye.prevLine=ye.thisLine,ye.thisLine={stream:Se},ye.taskList=!1,ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,!ye.localState&&(ye.f=ye.block,ye.f!=Ye)){var vt=Se.match(/^\s*/,!0)[0].replace(/\t/g,Pe).length;if(ye.indentation=vt,ye.indentationDiff=null,vt>0)return null}}return ye.f(Se,ye)},innerMode:function(Se){return Se.block==Ye?{state:Se.htmlState,mode:Le}:Se.localState?{state:Se.localState,mode:Se.localMode}:{state:Se,mode:st}},indent:function(Se,ye,vt){return Se.block==Ye&&Le.indent?Le.indent(Se.htmlState,ye,vt):Se.localState&&Se.localMode.indent?Se.localMode.indent(Se.localState,ye,vt):y.Pass},blankLine:Ae,getType:gt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return st},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(Mn,Jt,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 ve=0;ve<y.modeInfo.length;ve++){var ce=y.modeInfo[ve];ce.mimes&&(ce.mime=ce.mimes[0])}y.findModeByMIME=function(Le){Le=Le.toLowerCase();for(var xe=0;xe<y.modeInfo.length;xe++){var Ee=y.modeInfo[xe];if(Ee.mime==Le)return Ee;if(Ee.mimes){for(var Ce=0;Ce<Ee.mimes.length;Ce++)if(Ee.mimes[Ce]==Le)return Ee}}if(/\+xml$/.test(Le))return y.findModeByMIME("application/xml");if(/\+json$/.test(Le))return y.findModeByMIME("application/json")},y.findModeByExtension=function(Le){Le=Le.toLowerCase();for(var xe=0;xe<y.modeInfo.length;xe++){var Ee=y.modeInfo[xe];if(Ee.ext){for(var Ce=0;Ce<Ee.ext.length;Ce++)if(Ee.ext[Ce]==Le)return Ee}}},y.findModeByFileName=function(Le){for(var xe=0;xe<y.modeInfo.length;xe++){var Ee=y.modeInfo[xe];if(Ee.file&&Ee.file.test(Le))return Ee}var Ce=Le.lastIndexOf("."),ke=Ce>-1&&Le.substring(Ce+1,Le.length);if(ke)return y.findModeByExtension(ke)},y.findModeByName=function(Le){Le=Le.toLowerCase();for(var xe=0;xe<y.modeInfo.length;xe++){var Ee=y.modeInfo[xe];if(Ee.name.toLowerCase()==Le)return Ee;if(Ee.alias){for(var Ce=0;Ce<Ee.alias.length;Ce++)if(Ee.alias[Ce].toLowerCase()==Le)return Ee}}}})},67549:function(Mn,Jt,E){(function(y){y(E(89780))})(function(y){"use strict";y.defineMode("stex",function(ve,ce){"use strict";function Le(Ke,Te){Ke.cmdState.push(Te)}function xe(Ke){return Ke.cmdState.length>0?Ke.cmdState[Ke.cmdState.length-1]:null}function Ee(Ke){var Te=Ke.cmdState.pop();Te&&Te.closeBracket()}function Ce(Ke){for(var Te=Ke.cmdState,we=Te.length-1;we>=0;we--){var Ie=Te[we];if(Ie.name!="DEFAULT")return Ie}return{styleIdentifier:function(){return null}}}function ke(Ke,Te,we){return function(){this.name=Ke,this.bracketNo=0,this.style=Te,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(Ke,Te){Ke.f=Te}function je(Ke,Te){var we;if(Ke.match(/^\\[a-zA-Z@]+/)){var Ie=Ke.current().slice(1);return we=De.hasOwnProperty(Ie)?De[Ie]:De.DEFAULT,we=new we,Le(Te,we),fe(Te,ct),we.style}if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/\\]/))return"tag";if(Ke.match("\\["))return fe(Te,function(rt,Et){return Ne(rt,Et,"\\]")}),"keyword";if(Ke.match("\\("))return fe(Te,function(rt,Et){return Ne(rt,Et,"\\)")}),"keyword";if(Ke.match("$$"))return fe(Te,function(rt,Et){return Ne(rt,Et,"$$")}),"keyword";if(Ke.match("$"))return fe(Te,function(rt,Et){return Ne(rt,Et,"$")}),"keyword";var Pe=Ke.next();if(Pe=="%")return Ke.skipToEnd(),"comment";if(Pe=="}"||Pe=="]"){if(we=xe(Te),we)we.closeBracket(Pe),fe(Te,ct);else return"error";return"bracket"}else return Pe=="{"||Pe=="["?(we=De.DEFAULT,we=new we,Le(Te,we),"bracket"):/\d/.test(Pe)?(Ke.eatWhile(/[\w.%]/),"atom"):(Ke.eatWhile(/[\w\-_]/),we=Ce(Te),we.name=="begin"&&(we.argument=Ke.current()),we.styleIdentifier())}function Ne(Ke,Te,we){if(Ke.eatSpace())return null;if(we&&Ke.match(we))return fe(Te,je),"keyword";if(Ke.match(/^\\[a-zA-Z@]+/))return"tag";if(Ke.match(/^[a-zA-Z]+/))return"variable-2";if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/]/)||Ke.match(/^[\^_&]/))return"tag";if(Ke.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ke.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ie=Ke.next();return Ie=="{"||Ie=="}"||Ie=="["||Ie=="]"||Ie=="("||Ie==")"?"bracket":Ie=="%"?(Ke.skipToEnd(),"comment"):"error"}function ct(Ke,Te){var we=Ke.peek(),Ie;return we=="{"||we=="["?(Ie=xe(Te),Ie.openBracket(we),Ke.eat(we),fe(Te,je),"bracket"):/[ \t\r]/.test(we)?(Ke.eat(we),null):(fe(Te,je),Ee(Te),je(Ke,Te))}return{startState:function(){var Ke=ce.inMathMode?function(Te,we){return Ne(Te,we)}:je;return{cmdState:[],f:Ke}},copyState:function(Ke){return{cmdState:Ke.cmdState.slice(),f:Ke.f}},token:function(Ke,Te){return Te.f(Ke,Te)},blankLine:function(Ke){Ke.f=je,Ke.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(Mn,Jt,E){(function(y){y(E(89780))})(function(y){"use strict";var ve={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(Le,xe){var Ee=Le.indentUnit,Ce={},ke=xe.htmlMode?ve:ce;for(var De in ke)Ce[De]=ke[De];for(var De in xe)Ce[De]=xe[De];var fe,je;function Ne(be,We){function Be(Qe){return We.tokenize=Qe,Qe(be,We)}var de=be.next();if(de=="<")return be.eat("!")?be.eat("[")?be.match("CDATA[")?Be(Te("atom","]]>")):null:be.match("--")?Be(Te("comment","-->")):be.match("DOCTYPE",!0,!0)?(be.eatWhile(/[\w\._\-]/),Be(we(1))):null:be.eat("?")?(be.eatWhile(/[\w\._\-]/),We.tokenize=Te("meta","?>"),"meta"):(fe=be.eat("/")?"closeTag":"openTag",We.tokenize=ct,"tag bracket");if(de=="&"){var St;return be.eat("#")?be.eat("x")?St=be.eatWhile(/[a-fA-F\d]/)&&be.eat(";"):St=be.eatWhile(/[\d]/)&&be.eat(";"):St=be.eatWhile(/[\w\.\-:]/)&&be.eat(";"),St?"atom":"error"}else return be.eatWhile(/[^&<]/),null}Ne.isInText=!0;function ct(be,We){var Be=be.next();if(Be==">"||Be=="/"&&be.eat(">"))return We.tokenize=Ne,fe=Be==">"?"endTag":"selfcloseTag","tag bracket";if(Be=="=")return fe="equals",null;if(Be=="<"){We.tokenize=Ne,We.state=Et,We.tagName=We.tagStart=null;var de=We.tokenize(be,We);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(Be)?(We.tokenize=Ke(Be),We.stringStartCol=be.column(),We.tokenize(be,We)):(be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ke(be){var We=function(Be,de){for(;!Be.eol();)if(Be.next()==be){de.tokenize=ct;break}return"string"};return We.isInAttribute=!0,We}function Te(be,We){return function(Be,de){for(;!Be.eol();){if(Be.match(We)){de.tokenize=Ne;break}Be.next()}return be}}function we(be){return function(We,Be){for(var de;(de=We.next())!=null;){if(de=="<")return Be.tokenize=we(be+1),Be.tokenize(We,Be);if(de==">")if(be==1){Be.tokenize=Ne;break}else return Be.tokenize=we(be-1),Be.tokenize(We,Be)}return"meta"}}function Ie(be,We,Be){this.prev=be.context,this.tagName=We,this.indent=be.indented,this.startOfLine=Be,(Ce.doNotIndent.hasOwnProperty(We)||be.context&&be.context.noIndent)&&(this.noIndent=!0)}function Pe(be){be.context&&(be.context=be.context.prev)}function rt(be,We){for(var Be;;){if(!be.context||(Be=be.context.tagName,!Ce.contextGrabbers.hasOwnProperty(Be)||!Ce.contextGrabbers[Be].hasOwnProperty(We)))return;Pe(be)}}function Et(be,We,Be){return be=="openTag"?(Be.tagStart=We.column(),Oe):be=="closeTag"?Ae:Et}function Oe(be,We,Be){return be=="word"?(Be.tagName=We.current(),je="tag",xt):Ce.allowMissingTagName&&be=="endTag"?(je="tag bracket",xt(be,We,Be)):(je="error",Oe)}function Ae(be,We,Be){if(be=="word"){var de=We.current();return Be.context&&Be.context.tagName!=de&&Ce.implicitlyClosed.hasOwnProperty(Be.context.tagName)&&Pe(Be),Be.context&&Be.context.tagName==de||Ce.matchClosing===!1?(je="tag",Ve):(je="tag error",Ye)}else return Ce.allowMissingTagName&&be=="endTag"?(je="tag bracket",Ve(be,We,Be)):(je="error",Ye)}function Ve(be,We,Be){return be!="endTag"?(je="error",Ve):(Pe(Be),Et)}function Ye(be,We,Be){return je="error",Ve(be,We,Be)}function xt(be,We,Be){if(be=="word")return je="attribute",gt;if(be=="endTag"||be=="selfcloseTag"){var de=Be.tagName,St=Be.tagStart;return Be.tagName=Be.tagStart=null,be=="selfcloseTag"||Ce.autoSelfClosers.hasOwnProperty(de)?rt(Be,de):(rt(Be,de),Be.context=new Ie(Be,de,St==Be.indented)),Et}return je="error",xt}function gt(be,We,Be){return be=="equals"?lt:(Ce.allowMissing||(je="error"),xt(be,We,Be))}function lt(be,We,Be){return be=="string"?Ue:be=="word"&&Ce.allowUnquoted?(je="string",xt):(je="error",xt(be,We,Be))}function Ue(be,We,Be){return be=="string"?Ue:xt(be,We,Be)}return{startState:function(be){var We={tokenize:Ne,state:Et,indented:be||0,tagName:null,tagStart:null,context:null};return be!=null&&(We.baseIndent=be),We},token:function(be,We){if(!We.tagName&&be.sol()&&(We.indented=be.indentation()),be.eatSpace())return null;fe=null;var Be=We.tokenize(be,We);return(Be||fe)&&Be!="comment"&&(je=null,We.state=We.state(fe||Be,be,We),je&&(Be=je=="error"?Be+" error":je)),Be},indent:function(be,We,Be){var de=be.context;if(be.tokenize.isInAttribute)return be.tagStart==be.indented?be.stringStartCol+1:be.indented+Ee;if(de&&de.noIndent)return y.Pass;if(be.tokenize!=ct&&be.tokenize!=Ne)return Be?Be.match(/^(\s*)/)[0].length:0;if(be.tagName)return Ce.multilineTagIndentPastTag!==!1?be.tagStart+be.tagName.length+2:be.tagStart+Ee*(Ce.multilineTagIndentFactor||1);if(Ce.alignCDATA&&/<!\[CDATA\[/.test(We))return 0;var St=We&&/^<(\/)?([\w_:\.-]*)/.exec(We);if(St&&St[1])for(;de;)if(de.tagName==St[2]){de=de.prev;break}else if(Ce.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(St)for(;de;){var Qe=Ce.contextGrabbers[de.tagName];if(Qe&&Qe.hasOwnProperty(St[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+Ee:be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ce.htmlMode?"html":"xml",helperType:Ce.htmlMode?"html":"xml",skipAttribute:function(be){be.state==lt&&(be.state=xt)},xmlCurrentTag:function(be){return be.tagName?{name:be.tagName,close:be.type=="closeTag"}:null},xmlCurrentContext:function(be){for(var We=[],Be=be.context;Be;Be=Be.prev)Be.tagName&&We.push(Be.tagName);return We.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(Mn,Jt,E){var y,ve;(function(ce,Le){Mn.exports=Le(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof E.g!="undefined"?E.g:this,function(ce){"use strict";ce=ce||{};var Le=ce.Base64,xe="2.6.4",Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ce=function(Be){for(var de={},St=0,Qe=Be.length;St<Qe;St++)de[Be.charAt(St)]=St;return de}(Ee),ke=String.fromCharCode,De=function(Be){if(Be.length<2){var de=Be.charCodeAt(0);return de<128?Be: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+(Be.charCodeAt(0)-55296)*1024+(Be.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,je=function(Be){return Be.replace(fe,De)},Ne=function(Be){var de=[0,2,1][Be.length%3],St=Be.charCodeAt(0)<<16|(Be.length>1?Be.charCodeAt(1):0)<<8|(Be.length>2?Be.charCodeAt(2):0),Qe=[Ee.charAt(St>>>18),Ee.charAt(St>>>12&63),de>=2?"=":Ee.charAt(St>>>6&63),de>=1?"=":Ee.charAt(St&63)];return Qe.join("")},ct=ce.btoa&&typeof ce.btoa=="function"?function(Be){return ce.btoa(Be)}:function(Be){if(Be.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Be.replace(/[\s\S]{1,3}/g,Ne)},Ke=function(Be){return ct(je(String(Be)))},Te=function(Be){return Be.replace(/[+\/]/g,function(de){return de=="+"?"-":"_"}).replace(/=/g,"")},we=function(Be,de){return de?Te(Ke(Be)):Ke(Be)},Ie=function(Be){return we(Be,!0)},Pe;ce.Uint8Array&&(Pe=function(Be,de){for(var St="",Qe=0,ze=Be.length;Qe<ze;Qe+=3){var st=Be[Qe],Se=Be[Qe+1],ye=Be[Qe+2],vt=st<<16|Se<<8|ye;St+=Ee.charAt(vt>>>18)+Ee.charAt(vt>>>12&63)+(typeof Se!="undefined"?Ee.charAt(vt>>>6&63):"=")+(typeof ye!="undefined"?Ee.charAt(vt&63):"=")}return de?Te(St):St});var rt=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Et=function(Be){switch(Be.length){case 4:var de=(7&Be.charCodeAt(0))<<18|(63&Be.charCodeAt(1))<<12|(63&Be.charCodeAt(2))<<6|63&Be.charCodeAt(3),St=de-65536;return ke((St>>>10)+55296)+ke((St&1023)+56320);case 3:return ke((15&Be.charCodeAt(0))<<12|(63&Be.charCodeAt(1))<<6|63&Be.charCodeAt(2));default:return ke((31&Be.charCodeAt(0))<<6|63&Be.charCodeAt(1))}},Oe=function(Be){return Be.replace(rt,Et)},Ae=function(Be){var de=Be.length,St=de%4,Qe=(de>0?Ce[Be.charAt(0)]<<18:0)|(de>1?Ce[Be.charAt(1)]<<12:0)|(de>2?Ce[Be.charAt(2)]<<6:0)|(de>3?Ce[Be.charAt(3)]:0),ze=[ke(Qe>>>16),ke(Qe>>>8&255),ke(Qe&255)];return ze.length-=[0,0,2,1][St],ze.join("")},Ve=ce.atob&&typeof ce.atob=="function"?function(Be){return ce.atob(Be)}:function(Be){return Be.replace(/\S{1,4}/g,Ae)},Ye=function(Be){return Ve(String(Be).replace(/[^A-Za-z0-9\+\/]/g,""))},xt=function(Be){return Oe(Ve(Be))},gt=function(Be){return String(Be).replace(/[-_]/g,function(de){return de=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},lt=function(Be){return xt(gt(Be))},Ue;ce.Uint8Array&&(Ue=function(Be){return Uint8Array.from(Ye(gt(Be)),function(de){return de.charCodeAt(0)})});var be=function(){var Be=ce.Base64;return ce.Base64=Le,Be};if(ce.Base64={VERSION:xe,atob:Ye,btoa:ct,fromBase64:lt,toBase64:we,utob:je,encode:we,encodeURI:Ie,btou:Oe,decode:lt,noConflict:be,fromUint8Array:Pe,toUint8Array:Ue},typeof Object.defineProperty=="function"){var We=function(Be){return{value:Be,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",We(function(){return lt(this)})),Object.defineProperty(String.prototype,"toBase64",We(function(Be){return we(this,Be)})),Object.defineProperty(String.prototype,"toBase64URI",We(function(){return we(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),Mn.exports?Mn.exports.Base64=ce.Base64:(y=[],ve=function(){return ce.Base64}.apply(Jt,y),ve!==void 0&&(Mn.exports=ve)),{Base64:ce.Base64}})},2859:function(Mn,Jt,E){"use strict";E.d(Jt,{hP:function(){return zt}});var y=function(ue,ie){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,oe){re.__proto__=oe}||function(re,oe){for(var pe in oe)Object.prototype.hasOwnProperty.call(oe,pe)&&(re[pe]=oe[pe])})(ue,ie)};function ve(ue,ie){function re(){this.constructor=ue}y(ue,ie),ue.prototype=ie===null?Object.create(ie):(re.prototype=ie.prototype,new re)}function ce(ue,ie,re,oe){return new(re||(re=Promise))(function(pe,ae){function me(at){try{Ot(oe.next(at))}catch(qe){ae(qe)}}function Ze(at){try{Ot(oe.throw(at))}catch(qe){ae(qe)}}function Ot(at){var qe;at.done?pe(at.value):(qe=at.value,qe instanceof re?qe:new re(function(yt){yt(qe)})).then(me,Ze)}Ot((oe=oe.apply(ue,ie||[])).next())})}function Le(ue,ie){var re,oe,pe,ae,me={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return ae={next:Ze(0),throw:Ze(1),return:Ze(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function Ze(Ot){return function(at){return function(qe){if(re)throw new TypeError("Generator is already executing.");for(;me;)try{if(re=1,oe&&(pe=2&qe[0]?oe.return:qe[0]?oe.throw||((pe=oe.return)&&pe.call(oe),0):oe.next)&&!(pe=pe.call(oe,qe[1])).done)return pe;switch(oe=0,pe&&(qe=[2&qe[0],pe.value]),qe[0]){case 0:case 1:pe=qe;break;case 4:return me.label++,{value:qe[1],done:!1};case 5:me.label++,oe=qe[1],qe=[0];continue;case 7:qe=me.ops.pop(),me.trys.pop();continue;default:if(pe=me.trys,!((pe=pe.length>0&&pe[pe.length-1])||qe[0]!==6&&qe[0]!==2)){me=0;continue}if(qe[0]===3&&(!pe||qe[1]>pe[0]&&qe[1]<pe[3])){me.label=qe[1];break}if(qe[0]===6&&me.label<pe[1]){me.label=pe[1],pe=qe;break}if(pe&&me.label<pe[2]){me.label=pe[2],me.ops.push(qe);break}pe[2]&&me.ops.pop(),me.trys.pop();continue}qe=ie.call(ue,me)}catch(yt){qe=[6,yt],oe=0}finally{re=pe=0}if(5&qe[0])throw qe[1];return{value:qe[0]?qe[1]:void 0,done:!0}}([Ot,at])}}}function xe(){for(var ue=0,ie=0,re=arguments.length;ie<re;ie++)ue+=arguments[ie].length;var oe=Array(ue),pe=0;for(ie=0;ie<re;ie++)for(var ae=arguments[ie],me=0,Ze=ae.length;me<Ze;me++,pe++)oe[pe]=ae[me];return oe}var Ee=function(){function ue(){}return ue.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ue.setAttributes=function(ie,re){for(var oe=0,pe=re;oe<pe.length;oe++){var ae=pe[oe],me=ae[0],Ze=ae[1];ie.setAttribute(me,Ze)}},ue.createRect=function(ie,re,oe){var pe=document.createElementNS("http://www.w3.org/2000/svg","rect");return pe.setAttribute("width",ie.toString()),pe.setAttribute("height",re.toString()),oe&&ue.setAttributes(pe,oe),pe},ue.createLine=function(ie,re,oe,pe,ae){var me=document.createElementNS("http://www.w3.org/2000/svg","line");return me.setAttribute("x1",ie.toString()),me.setAttribute("y1",re.toString()),me.setAttribute("x2",oe.toString()),me.setAttribute("y2",pe.toString()),ae&&ue.setAttributes(me,ae),me},ue.createPolygon=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",ie),re&&ue.setAttributes(oe,re),oe},ue.createCircle=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(ie/2).toString()),oe.setAttribute("cy",(ie/2).toString()),oe.setAttribute("r",ie.toString()),re&&ue.setAttributes(oe,re),oe},ue.createEllipse=function(ie,re,oe){var pe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return pe.setAttribute("cx",(ie/2).toString()),pe.setAttribute("cy",(re/2).toString()),pe.setAttribute("rx",(ie/2).toString()),pe.setAttribute("ry",(re/2).toString()),oe&&ue.setAttributes(pe,oe),pe},ue.createGroup=function(ie){var re=document.createElementNS("http://www.w3.org/2000/svg","g");return ie&&ue.setAttributes(re,ie),re},ue.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ue.createMarker=function(ie,re,oe,pe,ae,me,Ze){var Ot=document.createElementNS("http://www.w3.org/2000/svg","marker");return ue.setAttributes(Ot,[["id",ie],["orient",re],["markerWidth",oe.toString()],["markerHeight",pe.toString()],["refX",ae.toString()],["refY",me.toString()]]),Ot.appendChild(Ze),Ot},ue.createText=function(ie){var re=document.createElementNS("http://www.w3.org/2000/svg","text");return re.setAttribute("x","0"),re.setAttribute("y","0"),ie&&ue.setAttributes(re,ie),re},ue.createTSpan=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=ie,re&&ue.setAttributes(oe,re),oe},ue.createImage=function(ie){var re=document.createElementNS("http://www.w3.org/2000/svg","image");return ie&&ue.setAttributes(re,ie),re},ue.createPoint=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=ie,oe.y=re,oe},ue.createPath=function(ie,re){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",ie),re&&ue.setAttributes(oe,re),oe},ue}(),Ce=function(){function ue(){}return ue.addKey=function(ie){ue.key=ie},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(ie,re,oe){var pe=this;return new Promise(function(ae){var me=oe!==void 0?oe:document.createElement("canvas");ie===null&&(pe.markersOnly=!0,pe.naturalSize=!1);var Ze=document.createElementNS("http://www.w3.org/2000/svg","svg");Ze.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ze.setAttribute("width",re.width.baseVal.valueAsString),Ze.setAttribute("height",re.height.baseVal.valueAsString),Ze.setAttribute("viewBox","0 0 "+re.viewBox.baseVal.width.toString()+" "+re.viewBox.baseVal.height.toString()),Ze.innerHTML=re.innerHTML,pe.naturalSize===!0?(Ze.width.baseVal.value=ie.naturalWidth,Ze.height.baseVal.value=ie.naturalHeight):pe.width!==void 0&&pe.height!==void 0&&(Ze.width.baseVal.value=pe.width,Ze.height.baseVal.value=pe.height),me.width=Ze.width.baseVal.value,me.height=Ze.height.baseVal.value;var Ot=Ze.outerHTML,at=me.getContext("2d");pe.markersOnly!==!0&&at.drawImage(ie,0,0,me.width,me.height);var qe=window.URL,yt=new Image(me.width,me.height);yt.setAttribute("crossOrigin","anonymous");var Ft=new Blob([Ot],{type:"image/svg+xml"}),jt=qe.createObjectURL(Ft);yt.onload=function(){at.drawImage(yt,0,0),qe.revokeObjectURL(jt);var Xe=me.toDataURL(pe.imageType,pe.imageQuality);ae(Xe)},yt.src=jt})},ue}(),De=function(){},fe=function(){function ue(ie){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ie+"_"}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(ie){return this.styleSheet===void 0&&this.addStyleSheet(),ie.name=""+this.classNamePrefix+ie.localName,this.classes.push(ie),this.styleSheet.sheet.insertRule("."+ie.name+" {"+ie.style+"}",this.styleSheet.sheet.cssRules.length),ie},ue.prototype.addRule=function(ie){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ie),this.styleSheet.sheet.insertRule(ie.selector+" {"+ie.style+"}",this.styleSheet.sheet.cssRules.length)},ue.prototype.addStyleSheet=function(){var ie;this.styleSheet=document.createElement("style"),((ie=this.styleSheetRoot)!==null&&ie!==void 0?ie:document.head).appendChild(this.styleSheet),this.addRule(new je("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new je("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new je("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ne("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ne("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ue.prototype.removeStyleSheet=function(){var ie;this.styleSheet&&(((ie=this.styleSheetRoot)!==null&&ie!==void 0?ie:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ue}(),je=function(ue,ie){this.selector=ue,this.style=ie},Ne=function(ue,ie){this.localName=ue,this.style=ie},ct=function(){function ue(ie,re,oe,pe,ae){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ie,this.displayMode=re,this.markerItems=oe,this.uiStyleSettings=pe,this.styles=ae,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(ie){var re=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ie,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(ae){var me=document.createElement("div");me.className=""+re.toolbarButtonStyleClass.name,me.setAttribute("data-type-name",ae.typeName),me.innerHTML=ae.icon,me.addEventListener("click",function(){re.markerToolbarButtonClicked(me,ae)}),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 pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",pe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<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(pe,'<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(ie){this.buttonClickListeners.push(ie)},ue.prototype.removeButtonClickListener=function(ie){this.buttonClickListeners.indexOf(ie)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ie),1)},ue.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ue.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ie=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<ie||re===ie&&this.markerButtons.length-1===ie?this.markerButtonBlock.appendChild(this.markerButtons[re]):(re===ie&&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 ie=this;this.buttons.forEach(function(re){re.className=re.className.replace(ie.uiStyleSettings.toolbarButtonStyleColorsClassName?ie.uiStyleSettings.toolbarButtonStyleColorsClassName:ie.toolbarButtonStyleColorsClass.name,"").trim(),re.className=re.className.replace(ie.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ie.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ie.toolbarActiveButtonStyleColorsClass.name,"").trim(),re.className+=" "+(ie.uiStyleSettings.toolbarButtonStyleColorsClassName?ie.uiStyleSettings.toolbarButtonStyleColorsClassName:ie.toolbarButtonStyleColorsClass.name)})},ue.prototype.addActionButton=function(ie,re,oe){var pe=this,ae=document.createElement("div");switch(ae.className=""+this.toolbarButtonStyleClass.name,ae.innerHTML=re,ae.setAttribute("data-action",oe),ae.addEventListener("click",function(){pe.actionToolbarButtonClicked(ae,oe)}),oe){case"select":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ae.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ae.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ae.style.fill=this.uiStyleSettings.closeButtonColor}ie.appendChild(ae),this.buttons.push(ae)},ue.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ne("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 Ne("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ne("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ne("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 Ne("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ie=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ne("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ie)+`px;
padding: `+ie+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ne("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new je("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new je("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ue.prototype.markerToolbarButtonClicked=function(ie,re){this.setActiveButton(ie),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",re)}),this.markerButtonOverflowBlock.style.display="none"},ue.prototype.actionToolbarButtonClicked=function(ie,re){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",re)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ue.prototype.setActiveButton=function(ie){this.resetButtonStyles(),ie.className=ie.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ie.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ue.prototype.setActiveMarkerButton=function(ie){var re=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ie});re&&this.setActiveButton(re)},ue.prototype.setCurrentMarker=function(ie){var re=this;this.currentMarker=ie,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){re.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ue}(),Ke=function(){function ue(ie,re,oe,pe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ie,this.displayMode=re,this.uiStyleSettings=oe,this.styles=pe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ue.prototype.addStyles=function(){var ie;this.toolboxStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var re=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ne("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ne("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox-panel-row_colors",`
background-color: `+((ie=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ie!==void 0?ie:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ne("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 Ne("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ne("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new je("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new je("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ue.prototype.show=function(ie){var re;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ie,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(ie){var re,oe,pe=this;this.panels=ie,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+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ae){var me;ae.uiStyleSettings=pe.uiStyleSettings;var Ze=document.createElement("div");Ze.className=pe.toolboxButtonStyleClass.name+" "+((me=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&me!==void 0?me:pe.toolboxButtonStyleColorsClass.name),Ze.innerHTML=ae.icon,Ze.title=ae.title,Ze.addEventListener("click",function(){pe.panelButtonClick(ae)}),pe.panelButtons.push(Ze),pe.buttonRow.appendChild(Ze)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ue.prototype.panelButtonClick=function(ie){var re=this,oe=-1;if(ie!==this.activePanel){oe=this.panels.indexOf(ie),this.panelRow.innerHTML="";var pe=ie.getUi();pe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(pe),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=ie}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(ae,me){var Ze,Ot;ae.className=re.toolboxButtonStyleClass.name+" "+(me===oe?""+((Ze=re.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ze!==void 0?Ze:re.toolboxActiveButtonStyleColorsClass.name):""+((Ot=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ot!==void 0?Ot:re.toolboxButtonStyleColorsClass.name))})},ue}(),Te=function(ue,ie){this.title=ue,this.icon=ie},we=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<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=oe,me.currentColor=pe,me.setCurrentColor=me.setCurrentColor.bind(me),me.getColorBox=me.getColorBox.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(pe){var ae=re.getColorBox(pe);oe.appendChild(ae),re.colorBoxes.push(ae)}),oe},ie.prototype.getColorBox=function(re){var oe=this,pe=this.uiStyleSettings.toolbarHeight/4,ae=this.uiStyleSettings.toolbarHeight-pe,me=document.createElement("div");me.style.display="inline-block",me.style.boxSizing="content-box",me.style.width=ae-2+"px",me.style.height=ae-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=(ae+2)/2+"px",me.style.borderColor=re===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",me.addEventListener("click",function(){oe.setCurrentColor(re,me)});var Ze=document.createElement("div");return Ze.style.display="inline-block",Ze.style.width=ae-2+"px",Ze.style.height=ae-2+"px",Ze.style.backgroundColor=re,Ze.style.borderRadius=ae/2+"px",re==="transparent"&&(Ze.style.fill=this.uiStyleSettings.toolboxAccentColor,Ze.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(Ze),me},ie.prototype.setCurrentColor=function(re,oe){var pe=this;this.currentColor=re,this.colorBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(re)},ie}(Te),Ie=function(){function ue(ie,re,oe){this._state="new",this._isSelected=!1,this._container=ie,this._overlayContainer=re,this.globalSettings=oe,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(ie){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(ie,re){},ue.prototype.dblClick=function(ie,re){},ue.prototype.manipulate=function(ie){},ue.prototype.pointerUp=function(ie){this.stateChanged()},ue.prototype.dispose=function(){},ue.prototype.addMarkerVisualToContainer=function(ie){this.container.childNodes.length>0?this.container.insertBefore(ie,this.container.childNodes[0]):this.container.appendChild(ie)},ue.prototype.getState=function(){return{typeName:ue.typeName,state:this.state,notes:this.notes}},ue.prototype.restoreState=function(ie){this._state=ie.state,this.notes=ie.notes},ue.prototype.scale=function(ie,re){},ue.prototype.colorChanged=function(ie){this.onColorChanged&&this.onColorChanged(ie),this.stateChanged()},ue.prototype.fillColorChanged=function(ie){this.onFillColorChanged&&this.onFillColorChanged(ie),this.stateChanged()},ue.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ie=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ie.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ie)&&this.onStateChanged(this)}},ue.typeName="MarkerBase",ue}(),Pe=function(){function ue(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ue.prototype.findGripByVisual=function(ie){return this.topLeft.ownsTarget(ie)?this.topLeft:this.topCenter.ownsTarget(ie)?this.topCenter:this.topRight.ownsTarget(ie)?this.topRight:this.centerLeft.ownsTarget(ie)?this.centerLeft:this.centerRight.ownsTarget(ie)?this.centerRight:this.bottomLeft.ownsTarget(ie)?this.bottomLeft:this.bottomCenter.ownsTarget(ie)?this.bottomCenter:this.bottomRight.ownsTarget(ie)?this.bottomRight:void 0},ue}(),rt=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(ie){return ie===this.visual||ie===this.visual.childNodes[0]||ie===this.visual.childNodes[1]},ue}(),Et=function(){function ue(){}return ue.toITransformMatrix=function(ie){return{a:ie.a,b:ie.b,c:ie.c,d:ie.d,e:ie.e,f:ie.f}},ue.toSVGMatrix=function(ie,re){return ie.a=re.a,ie.b=re.b,ie.c=re.c,ie.d=re.d,ie.e=re.e,ie.f=re.f,ie},ue}(),Oe=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.left=0,ae.top=0,ae.width=0,ae.height=0,ae.defaultSize={x:50,y:20},ae.offsetX=0,ae.offsetY=0,ae.rotationAngle=0,ae.CB_DISTANCE=10,ae._suppressMarkerCreateEvent=!1,ae.container.transform.baseVal.appendItem(Ee.createTransform()),ae.setupControlBox(),ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"visual",{get:function(){return this._visual},set:function(re){this._visual=re;var oe=Ee.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ie.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))},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),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 pe=this.unrotatePoint(re);if(this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.offsetX=pe.x-this.left,this.offsetY=pe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ae=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ae.x-this.width/2,this.top=ae.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"},ie.prototype.pointerUp=function(re){var oe=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",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ie.prototype.moveVisual=function(re){this.visual.style.transform="translate("+re.x+"px, "+re.y+"px)"},ie.prototype.manipulate=function(re){var oe=this.unrotatePoint(re);this.state==="creating"?this.resize(re):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(re)},ie.prototype.resize=function(re){var oe=this.manipulationStartLeft,pe=this.manipulationStartWidth,ae=this.manipulationStartTop,me=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+re.x-this.manipulationStartX,pe=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:pe=this.manipulationStartWidth+re.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ae=this.manipulationStartTop+re.y-this.manipulationStartY,me=this.manipulationStartHeight+this.manipulationStartTop-ae;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:me=this.manipulationStartHeight+re.y-this.manipulationStartY}pe>=0?(this.left=oe,this.width=pe):(this.left=oe+pe,this.width=-pe),me>=0?(this.top=ae,this.height=me):(this.top=ae+me,this.height=-me),this.setSize()},ie.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ie.prototype.rotate=function(re){if(Math.abs(re.x-this.centerX)>.1){var oe=Math.sign(re.x-this.centerX);this.rotationAngle=180*Math.atan((re.y-this.centerY)/(re.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},ie.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)},ie.prototype.rotatePoint=function(re){if(this.rotationAngle===0)return re;var oe=this.container.getCTM(),pe=Ee.createPoint(re.x,re.y);return{x:(pe=pe.matrixTransform(oe)).x,y:pe.y}},ie.prototype.unrotatePoint=function(re){if(this.rotationAngle===0)return re;var oe=this.container.getCTM();oe=oe.inverse();var pe=Ee.createPoint(re.x,re.y);return{x:(pe=pe.matrixTransform(oe)).x,y:pe.y}},ie.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ie.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},ie.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 Pe,this.addControlGrips(),this.controlBox.style.display="none"},ie.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()},ie.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()},ie.prototype.createGrip=function(){var re=new rt;return re.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(re.visual),re},ie.prototype.positionGrips=function(){var re=this.controlGrips.topLeft.GRIP_SIZE,oe=-re/2,pe=oe,ae=(this.width+this.CB_DISTANCE)/2-re/2,me=(this.height+this.CB_DISTANCE)/2-re/2,Ze=this.height+this.CB_DISTANCE-re/2,Ot=this.width+this.CB_DISTANCE-re/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,pe),this.positionGrip(this.controlGrips.topCenter.visual,ae,pe),this.positionGrip(this.controlGrips.topRight.visual,Ot,pe),this.positionGrip(this.controlGrips.centerLeft.visual,oe,me),this.positionGrip(this.controlGrips.centerRight.visual,Ot,me),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Ze),this.positionGrip(this.controlGrips.bottomCenter.visual,ae,Ze),this.positionGrip(this.controlGrips.bottomRight.visual,Ot,Ze),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ae,pe-3*this.CB_DISTANCE)},ie.prototype.positionGrip=function(re,oe,pe){var ae=re.transform.baseVal.getItem(0);ae.setTranslate(oe,pe),re.transform.baseVal.replaceItem(ae,0)},ie.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ie.prototype.showControlBox=function(){this.controlBox.style.display=""},ie.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Et.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Et.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ue.prototype.getState.call(this))},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe);var pe=this.rotatePoint({x:this.left,y:this.top}),ae=this.unrotatePoint({x:pe.x*re,y:pe.y*oe});this.left=ae.x,this.top=ae.y,this.width=this.width*re,this.height=this.height*oe,this.adjustControlBox()},ie}(Ie),Ae=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual)},ie.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)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ie.prototype.setSize=function(){ue.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ie.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize()},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ie.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ie.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))},ie.prototype.restoreState=function(re){var oe=re;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize()},ie.title="Rectangle marker",ie}(Oe),Ve=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<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=oe,me.currentWidth=pe,me.setCurrentWidth=me.setCurrentWidth.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.flexGrow="2",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=pe===re.currentWidth?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentWidth(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.innerText=pe.toString(),me.style.marginRight="5px",ae.appendChild(me);var Ze=document.createElement("div");Ze.style.minHeight="20px",Ze.style.flexGrow="2",Ze.style.display="flex",Ze.style.alignItems="center";var Ot=document.createElement("hr");Ot.style.minWidth="20px",Ot.style.border="0px",Ot.style.borderTop=pe+"px solid "+re.uiStyleSettings.toolboxColor,Ot.style.flexGrow="2",Ze.appendChild(Ot),ae.appendChild(Ze),re.widthBoxes.push(ae)}),oe},ie.prototype.setCurrentWidth=function(re,oe){var pe=this;this.currentWidth=re,this.widthBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ie}(Te),Ye=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<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=oe,me.currentStyle=pe,me.setCurrentStyle=me.setCurrentStyle.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/re.styles.length-5+"%",ae.style.borderColor=pe===re.currentStyle?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentStyle(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.overflow="hidden";var Ze=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+re.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(pe!==""?'stroke-dasharray="'+pe+'"':"")+` />
</svg>`;me.innerHTML=Ze,ae.appendChild(me),re.styleBoxes.push(ae)}),oe},ie.prototype.setCurrentStyle=function(re,oe){var pe=this;this.currentStyle=re,this.styleBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ie}(Te),xt=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new we("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Ve("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ye("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="FrameMarker",ie.title="Frame marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ie}(Ae),gt=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"},lt=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.x1=0,ae.y1=0,ae.x2=0,ae.y2=0,ae.defaultLength=50,ae.manipulationStartX=0,ae.manipulationStartY=0,ae.manipulationStartX1=0,ae.manipulationStartY1=0,ae.manipulationStartX2=0,ae.manipulationStartY2=0,ae.setupControlBox(),ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!!ue.prototype.ownsTarget.call(this,re)||!(!this.grip1.ownsTarget(re)&&!this.grip2.ownsTarget(re))},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),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(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ie.prototype.pointerUp=function(re){var oe=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",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ie.prototype.adjustVisual=function(){},ie.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)},ie.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()},ie.prototype.select=function(){ue.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ie.prototype.deselect=function(){ue.prototype.deselect.call(this),this.controlBox.style.display="none"},ie.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ie.prototype.adjustControlBox=function(){this.positionGrips()},ie.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ie.prototype.createGrip=function(){var re=new rt;return re.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(re.visual),re},ie.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)},ie.prototype.positionGrip=function(re,oe,pe){var ae=re.transform.baseVal.getItem(0);ae.setTranslate(oe,pe),re.transform.baseVal.replaceItem(ae,0)},ie.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ue.prototype.getState.call(this))},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.x1=this.x1*re,this.y1=this.y1*oe,this.x2=this.x2*re,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},ie}(Ie),Ue=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new we("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Ve("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ye("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorLine&&re!==this.visibleLine)},ie.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)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ie.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()]]))},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},ie.typeName="LineMarker",ie.title="Line marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ie}(lt),be=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<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=oe,me.currentFont=pe,me.setCurrentFont=me.setCurrentFont.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(pe){var ae=document.createElement("div");ae.style.display="inline-block",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/re.fonts.length-5+"%",ae.style.borderColor=pe===re.currentFont?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentFont(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.style.display="flex",me.style.minHeight="20px",me.style.flexGrow="2",me.style.fontFamily=pe,me.style.overflow="hidden";var Ze=document.createElement("div");Ze.style.whiteSpace="nowrap",Ze.style.overflow="hidden",Ze.style.textOverflow="ellipsis",Ze.innerHTML="The quick brown fox jumps over the lazy dog",me.appendChild(Ze),ae.appendChild(me),re.fontBoxes.push(ae)}),oe},ie.prototype.setCurrentFont=function(re,oe){var pe=this;this.currentFont=re,this.fontBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ie}(Te),We=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.color="transparent",ae.padding=5,ae.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ae.text=ae.DEFAULT_TEXT,ae.isMoved=!1,ae.color=pe.defaultColor,ae.fontFamily=pe.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setColor=ae.setColor.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.renderText=ae.renderText.bind(ae),ae.sizeText=ae.sizeText.bind(ae),ae.textEditDivClicked=ae.textEditDivClicked.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.setSize=ae.setSize.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.colorPanel=new we("Color",pe.defaultColorSet,pe.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.fontFamilyPanel=new be("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){if(ue.prototype.ownsTarget.call(this,re)||re===this.visual||re===this.textElement||re===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(pe){pe===re&&(oe=!0)}),oe},ie.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()},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.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(oe){re.textElement.appendChild(Ee.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ie.prototype.getTextScale=function(){var re=this.textElement.getBBox(),oe=1;if(re.width>0&&re.height>0){var pe=(1*this.width-this.width*this.padding*2/100)/re.width,ae=(1*this.height-this.height*this.padding*2/100)/re.height;oe=Math.min(pe,ae)}return oe},ie.prototype.getTextPosition=function(re){var oe=this.textElement.getBBox(),pe=0,ae=0;return oe.width>0&&oe.height>0&&(pe=(this.width-oe.width*re)/2,ae=this.height/2-oe.height*re/2),{x:pe,y:ae}},ie.prototype.sizeText=function(){var re=this.textElement.getBBox(),oe=this.getTextScale(),pe=this.getTextPosition(oe);pe.y-=re.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+pe.x+"px, "+pe.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(pe.x,pe.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},ie.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)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.isMoved=!0,this.setSize(),this.sizeText()},ie.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()]]))},ie.prototype.pointerUp=function(re){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ue.prototype.pointerUp.call(this,re),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ie.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(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(re.textEditor.style.fontSize);re.textEditor.clientWidth>=Number.parseInt(re.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,re.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var pe=oe.clipboardData.getData("text"),ae=window.getSelection();if(!ae.rangeCount)return!1;ae.deleteFromDocument(),ae.getRangeAt(0).insertNode(document.createTextNode(pe)),oe.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")},ie.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var re=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),pe=this.textElement.getBBox(),ae={x:pe.width*re,y:pe.height*re};oe.x-=ae.x/2,oe.y-=ae.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*re,12)+"px",this.textElement.style.display="none"}},ie.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()},ie.prototype.select=function(){ue.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ie.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ue.prototype.deselect.call(this)},ie.prototype.dblClick=function(re,oe){ue.prototype.dblClick.call(this,re,oe),this.showTextEditor()},ie.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)},ie.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()},ie.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ie.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ie.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=ie.typeName,re},ie.prototype.restoreState=function(re){var oe=re;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},ie.typeName="TextMarker",ie.title="Text marker",ie.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>',ie}(Oe),Be=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.color="transparent",ae.lineWidth=3,ae.drawing=!1,ae.pixelRatio=1,ae.color=pe.defaultColor,ae.lineWidth=pe.defaultStrokeWidth,ae.pixelRatio=pe.freehandPixelRatio,ae.setColor=ae.setColor.bind(ae),ae.addCanvas=ae.addCanvas.bind(ae),ae.finishCreation=ae.finishCreation.bind(ae),ae.setLineWidth=ae.setLineWidth.bind(ae),ae.colorPanel=new we("Color",pe.defaultColorSet,pe.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.lineWidthPanel=new Ve("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.lineWidthPanel.onWidthChanged=ae.setLineWidth,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.drawingImage)},ie.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)},ie.prototype.pointerDown=function(re,oe){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,oe)},ie.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)},ie.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()]])},ie.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)},ie.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)},ie.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.select.call(this)},ie.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ue.prototype.deselect.call(this)},ie.prototype.finishCreation=function(){for(var re=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],pe=oe[0],ae=oe[1],me=oe[2],Ze=oe[3],Ot=!1,at=0;at<this.canvasElement.height;at++)for(var qe=0;qe<this.canvasElement.width;qe++)re.data[at*this.canvasElement.width*4+4*qe+3]>0&&(Ot=!0,at<ae&&(ae=at),qe<pe&&(pe=qe),at>Ze&&(Ze=at),qe>me&&(me=qe));if(Ot){this.left=pe/this.pixelRatio,this.top=ae/this.pixelRatio,this.width=(me-pe)/this.pixelRatio,this.height=(Ze-ae)/this.pixelRatio;var yt=document.createElement("canvas");yt.width=me-pe,yt.height=Ze-ae,yt.getContext("2d").putImageData(this.canvasContext.getImageData(pe,ae,me-pe,Ze-ae),0,0),this.drawingImgUrl=yt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ie.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})},ie.prototype.setColor=function(re){this.color=re,this.colorChanged(re)},ie.prototype.setLineWidth=function(re){this.lineWidth=re},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({drawingImgUrl:this.drawingImgUrl},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){this.createVisual(),ue.prototype.restoreState.call(this,re),this.drawingImgUrl=re.drawingImgUrl,this.setDrawingImage()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setDrawingImage()},ie.typeName="FreehandMarker",ie.title="Freehand marker",ie.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>',ie}(Oe),de=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,pe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ae.typeBoxes=[],ae.currentType=oe,ae.setCurrentType=ae.setCurrentType.bind(ae),ae}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var pe=function(Ze){var Ot="both";switch(Ze){case 0:Ot="both";break;case 1:Ot="start";break;case 2:Ot="end";break;case 3:Ot="none"}var at=document.createElement("div");if(at.style.display="flex",at.style.flexGrow="2",at.style.alignItems="center",at.style.justifyContent="space-between",at.style.padding="5px",at.style.borderWidth="2px",at.style.borderStyle="solid",at.style.borderColor=Ot===ae.currentType?ae.uiStyleSettings.toolboxAccentColor:"transparent",at.addEventListener("click",function(){re.setCurrentType(Ot,at)}),oe.appendChild(at),Ot==="both"||Ot==="start"){var qe=document.createElement("div");qe.style.display="flex",qe.style.alignItems="center",qe.style.minHeight="20px",qe.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="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,qe.style.marginLeft="5px",at.appendChild(qe)}var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.style.flexGrow="2";var Ft=document.createElement("hr");if(Ft.style.minWidth="20px",Ft.style.border="0px",Ft.style.borderTop="3px solid "+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee"),Ft.style.flexGrow="2",yt.appendChild(Ft),at.appendChild(yt),Ot==="both"||Ot==="end"){var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.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="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,jt.style.marginRight="5px",at.appendChild(jt)}ae.typeBoxes.push(at)},ae=this,me=0;me<4;me++)pe(me);return oe},ie.prototype.setCurrentType=function(re,oe){var pe=this;this.currentType=re,this.typeBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings!==void 0?pe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ie}(Te),St=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.arrowType="end",ae.arrowBaseHeight=10,ae.arrowBaseWidth=10,ae.getArrowPoints=ae.getArrowPoints.bind(ae),ae.setArrowType=ae.setArrowType.bind(ae),ae.arrowTypePanel=new de("Arrow type","end"),ae.arrowTypePanel.onArrowTypeChanged=ae.setArrowType,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.arrow1&&re!==this.arrow2)},ie.prototype.getArrowPoints=function(re,oe){var pe=this.arrowBaseWidth+2*this.strokeWidth,ae=this.arrowBaseHeight+2*this.strokeWidth;return re-pe/2+","+(oe+ae/2)+" "+re+","+(oe-ae/2)+" "+(re+pe/2)+","+(oe+ae/2)},ie.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)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="creating"&&this.createTips()},ie.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 oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(re,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var pe=this.arrow2.transform.baseVal.getItem(0);pe.setRotate(re+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(pe,0)}},ie.prototype.setArrowType=function(re){this.arrowType=re,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=Object.assign({arrowType:this.arrowType},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},ie.typeName="ArrowMarker",ie.title="Arrow marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ie}(Ue),Qe=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor=pe.defaultFillColor,ae.strokeWidth=0,ae.fillPanel=new we("Color",pe.defaultColorSet,pe.defaultFillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="CoverMarker",ie.title="Cover marker",ie.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ie}(Ae),ze=function(ue){function ie(re,oe,pe,ae){var me=ue.call(this,re,ae||'<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=oe,me.currentOpacity=pe,me.setCurrentOpacity=me.setCurrentOpacity.bind(me),me}return ve(ie,ue),ie.prototype.getUi=function(){var re=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(pe){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="center",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=pe===re.currentOpacity?re.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){re.setCurrentOpacity(pe,ae)}),oe.appendChild(ae);var me=document.createElement("div");me.innerText=100*pe+"%",ae.appendChild(me),re.opacityBoxes.push(ae)}),oe},ie.prototype.setCurrentOpacity=function(re,oe){var pe=this;this.currentOpacity=re,this.opacityBoxes.forEach(function(ae){ae.style.borderColor=ae===oe?pe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ie}(Te),st=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.setOpacity=ae.setOpacity.bind(ae),ae.fillColor=pe.defaultHighlightColor,ae.strokeWidth=0,ae.opacity=pe.defaultHighlightOpacity,ae.fillPanel=new we("Color",pe.defaultColorSet,ae.fillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae.opacityPanel=new ze("Opacity",pe.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return ve(ie,ue),ie.prototype.setOpacity=function(re){this.opacity=re,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="HighlightMarker",ie.title="Highlight marker",ie.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>',ie}(Qe),Se='<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 ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.bgColor="transparent",ae.tipPosition={x:0,y:0},ae.tipBase1Position={x:0,y:0},ae.tipBase2Position={x:0,y:0},ae.tipMoving=!1,ae.color=pe.defaultStrokeColor,ae.bgColor=pe.defaultFillColor,ae.fontFamily=pe.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setBgColor=ae.setBgColor.bind(ae),ae.getTipPoints=ae.getTipPoints.bind(ae),ae.positionTip=ae.positionTip.bind(ae),ae.setTipPoints=ae.setTipPoints.bind(ae),ae.colorPanel=new we("Text color",pe.defaultColorSet,ae.color,Se),ae.colorPanel.onColorChanged=ae.setColor,ae.bgColorPanel=new we("Fill color",pe.defaultColorSet,ae.bgColor,ye),ae.bgColorPanel.onColorChanged=ae.setBgColor,ae.fontFamilyPanel=new be("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.tipGrip=new rt,ae.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),ae.controlBox.appendChild(ae.tipGrip.visual),ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return ue.prototype.ownsTarget.call(this,re)||this.tipGrip.ownsTarget(re)||this.tip===re},ie.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)},ie.prototype.pointerDown=function(re,oe){this.state==="new"&&ue.prototype.pointerDown.call(this,re,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ue.prototype.pointerDown.call(this,re,oe)},ie.prototype.pointerUp=function(re){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ue.prototype.pointerUp.call(this,re);else{var oe=this.state==="creating";ue.prototype.pointerUp.call(this,re),this.setTipPoints(oe),this.positionTip()}},ie.prototype.manipulate=function(re){if(this.tipMoving){var oe=this.unrotatePoint(re);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ue.prototype.manipulate.call(this,re)},ie.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)},ie.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},ie.prototype.setTipPoints=function(re){re===void 0&&(re=!1);var oe=Math.min(this.height/2,15),pe=this.height/5;re&&(this.tipPosition={x:oe+pe/2,y:this.height+20});var ae=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+pe,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-pe,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+pe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ae<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-pe,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-pe},this.tipBase2Position={x:this.width,y:this.height-oe}):ae<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(pe=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+pe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-pe})},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.positionTip()},ie.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(ie.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ie.prototype.select=function(){this.positionTip(),ue.prototype.select.call(this)},ie.prototype.getState=function(){var re=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ue.prototype.getState.call(this));return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){var oe=re;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ue.prototype.restoreState.call(this,re),this.createTip(),this.setTipPoints()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.tipPosition={x:this.tipPosition.x*re,y:this.tipPosition.y*oe},this.positionTip()},ie.typeName="CalloutMarker",ie.title="Callout marker",ie.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>',ie}(We),Ht=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.fillColor=pe.defaultFillColor,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.setOpacity=ae.setOpacity.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.strokePanel=new we("Line color",xe(pe.defaultColorSet,["transparent"]),pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new we("Fill color",xe(pe.defaultColorSet,["transparent"]),ae.fillColor,ye),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new Ve("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ye("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.opacityPanel=new ze("Opacity",pe.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual)},ie.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)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.prototype.manipulate=function(re){ue.prototype.manipulate.call(this,re)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ie.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()]])},ie.prototype.pointerUp=function(re){ue.prototype.pointerUp.call(this,re),this.setSize()},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ie.prototype.setFillColor=function(re){this.fillColor=re,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ie.prototype.setOpacity=function(re){this.opacity=re,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ie.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=ie.typeName,re},ie.prototype.restoreState=function(re){var oe=re;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize()},ie.typeName="EllipseMarker",ie.title="Ellipse marker",ie.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>',ie}(Oe),$t=function(ue){function ie(re,oe,pe){return ue.call(this,re,oe,pe)||this}return ve(ie,ue),Object.defineProperty(ie.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.tip1&&re!==this.tip2)},ie.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)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.state==="creating"&&this.createTips()},ie.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),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(re,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var pe=this.tip2.transform.baseVal.getItem(0);pe.setRotate(re+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(pe,0)}},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re),this.createTips(),this.adjustVisual()},ie.typeName="MeasurementMarker",ie.title="Measurement marker",ie.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>',ie}(Ue),Fe=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokePanel.colors=pe.defaultColorSet,ae.fillColor="transparent",ae}return ve(ie,ue),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.prototype.getState=function(){var re=ue.prototype.getState.call(this);return re.typeName=ie.typeName,re},ie.typeName="EllipseFrameMarker",ie.title="Ellipse frame marker",ie.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>',ie}(Ht),pt=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(ie){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ie)||(this.undoStack.push(ie),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ie)&&this.redoStack.splice(0,this.redoStack.length))},ue.prototype.replaceLastUndoStep=function(ie){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ie)},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 ie=this.undoStack.pop();return ie!==void 0&&this.redoStack.push(ie),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}(),ut=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.curveX=0,ae.curveY=0,ae.manipulationStartCurveX=0,ae.manipulationStartCurveY=0,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.positionGrips=ae.positionGrips.bind(ae),ae.addControlGrips=ae.addControlGrips.bind(ae),ae.adjustVisual=ae.adjustVisual.bind(ae),ae.setupControlBox=ae.setupControlBox.bind(ae),ae.resize=ae.resize.bind(ae),ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.strokePanel=new we("Line color",pe.defaultColorSet,pe.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Ve("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ye("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.selectorCurve&&re!==this.visibleCurve&&!this.curveGrip.ownsTarget(re))},ie.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ie.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)},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),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(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ie.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()]]))},ie.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)},ie.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ue.prototype.addControlGrips.call(this)},ie.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()))},ie.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)},ie.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)},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.adjustVisual(),this.colorChanged(re)},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.adjustVisual()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.adjustVisual()},ie.prototype.scale=function(re,oe){this.curveX=this.curveX*re,this.curveY=this.curveY*oe,ue.prototype.scale.call(this,re,oe)},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ie.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=ie.typeName,re},ie.prototype.restoreState=function(re){ue.prototype.restoreState.call(this,re);var oe=re;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},ie.typeName="CurveMarker",ie.title="Curve marker",ie.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>',ie}(lt),Yt=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,oe,pe)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.textColor="transparent",ae.fontSize="1rem",ae.isMoved=!1,ae.captionText="Caption",ae.PADDING=5,ae.captionBoxWidth=0,ae.captionBoxHeight=0,ae.strokeColor=pe.defaultColor,ae.strokeWidth=pe.defaultStrokeWidth,ae.strokeDasharray=pe.defaultStrokeDasharray,ae.fillColor=pe.defaultFillColor,ae.textColor=pe.defaultStrokeColor,ae.fontFamily=pe.defaultFontFamily,ae.fontSize=pe.defaultCaptionFontSize,ae.captionText=pe.defaultCaptionText,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.sizeCaption=ae.sizeCaption.bind(ae),ae.setCaptionText=ae.setCaptionText.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.finishTextEditing=ae.finishTextEditing.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.setTextColor=ae.setTextColor.bind(ae),ae.strokePanel=new we("Line color",xe(pe.defaultColorSet,["transparent"]),ae.strokeColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new we("Fill color",xe(pe.defaultColorSet,["transparent"]),ae.fillColor,ye),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new Ve("Line width",pe.defaultStrokeWidths,pe.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new Ye("Line style",pe.defaultStrokeDasharrays,pe.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.fontFamilyPanel=new be("Font",pe.defaultFontFamilies,pe.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.textColorPanel=new we("Text color",pe.defaultColorSet,ae.textColor,Se),ae.textColorPanel.onColorChanged=ae.setTextColor,ae}return ve(ie,ue),ie.prototype.ownsTarget=function(re){return!(!ue.prototype.ownsTarget.call(this,re)&&re!==this.visual&&re!==this.frame&&re!==this.captionBg&&re!==this.captionElement)},ie.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()},ie.prototype.setCaptionText=function(re){this.captionText=re,this.captionElement.textContent=this.captionText,this.sizeCaption()},ie.prototype.pointerDown=function(re,oe){ue.prototype.pointerDown.call(this,re,oe),this.isMoved=!1,this.pointerDownPoint=re,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(re),this._state="creating")},ie.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)},ie.prototype.resize=function(re){ue.prototype.resize.call(this,re),this.setSize()},ie.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')"]])},ie.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(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&re.finishTextEditing(re.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.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()},ie.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"))},ie.prototype.finishTextEditing=function(re){this.setCaptionText(re.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ie.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()},ie.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()},ie.prototype.setSize=function(){ue.prototype.setSize.call(this),Ee.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ie.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},ie.prototype.dblClick=function(re,oe){ue.prototype.dblClick.call(this,re,oe),this.showTextEditor()},ie.prototype.setStrokeColor=function(re){this.strokeColor=re,this.frame&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(re),this.stateChanged()},ie.prototype.setFillColor=function(re){this.fillColor=re,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(re),this.stateChanged()},ie.prototype.setStrokeWidth=function(re){this.strokeWidth=re,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ie.prototype.setStrokeDasharray=function(re){this.strokeDasharray=re,this.frame&&Ee.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ie.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},ie.prototype.restoreState=function(re){var oe=re;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ue.prototype.restoreState.call(this,re),this.setSize()},ie.prototype.scale=function(re,oe){ue.prototype.scale.call(this,re,oe),this.setSize()},ie.typeName="CaptionFrameMarker",ie.title="Caption frame marker",ie.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>',ie}(Oe),bt=function(){function ue(ie,re){re===void 0&&(re=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ie,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}(),Ct=function(ue){function ie(re,oe,pe){var ae=ue.call(this,re,!1)||this;return ae.dataUrl=oe,ae.state=pe,ae}return ve(ie,ue),ie}(bt),mt=function(ue){function ie(re,oe,pe){pe===void 0&&(pe=!1);var ae=ue.call(this,re,pe)||this;return ae.marker=oe,ae}return ve(ie,ue),ie}(bt),mn=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(ie,re){this[ie].push(re)},ue.prototype.removeEventListener=function(ie,re){var oe=this[ie].indexOf(re);oe>-1&&this[ie].splice(oe,1)},ue}(),zt=function(){function ue(ie){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new gt,this._isOpen=!1,this.undoRedoManager=new pt,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 mn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ue.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ie,this.targetRoot=document.body,this.width=ie.clientWidth,this.height=ie.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[xt,Be,St,We,Fe,Ht,st,vt,$t,Qe,Ue,ut,Yt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[xt,Be,St,We,Ht,st,vt]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"BASIC_MARKER_TYPES",{get:function(){return[xt,Be,St,We,st]},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ie){var re=this;this._availableMarkerTypes.splice(0),ie.forEach(function(oe){if(typeof oe=="string"){var pe=re.ALL_MARKER_TYPES.find(function(ae){return ae.typeName===oe});pe!==void 0&&re._availableMarkerTypes.push(pe)}else re._availableMarkerTypes.push(oe)})},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(ie){this._zoomLevel=ie,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 ie=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 bt(ie))})},ue.prototype.render=function(){return ce(this,void 0,void 0,function(){var ie;return Le(this,function(re){switch(re.label){case 0:return this.setCurrentMarker(),(ie=new ke).naturalSize=this.renderAtNaturalSize,ie.imageType=this.renderImageType,ie.imageQuality=this.renderImageQuality,ie.markersOnly=this.renderMarkersOnly,ie.width=this.renderWidth,ie.height=this.renderHeight,[4,ie.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return re.sent(),[4,ie.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,re.sent()]}})})},ue.prototype.close=function(ie){var re=this;if(ie===void 0&&(ie=!1),this.isOpen){var oe=!1;ie||this.eventListeners.beforeclose.forEach(function(pe){var ae=new bt(re,!0);pe(ae),ae.defaultPrevented&&(oe=!0)}),oe||(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(pe){return pe(new bt(re))}),this.detachEvents(),this._isOpen=!1)}},ue.prototype.addMarkersToToolbar=function(){for(var ie,re=[],oe=0;oe<arguments.length;oe++)re[oe]=arguments[oe];(ie=this._availableMarkerTypes).push.apply(ie,re)},ue.prototype.addRenderEventListener=function(ie){this.addEventListener("render",function(re){ie(re.dataUrl,re.state)})},ue.prototype.removeRenderEventListener=function(ie){},ue.prototype.addCloseEventListener=function(ie){this.addEventListener("close",function(){ie()})},ue.prototype.removeCloseEventListener=function(ie){},ue.prototype.setupResizeObserver=function(){var ie=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ie.resize(ie.target.clientWidth,ie.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ie.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ue.prototype.onPopupTargetResize=function(){var ie=1*this.target.clientWidth/this.target.clientHeight,re=this.editorCanvas.clientWidth/ie>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ie:this.editorCanvas.clientWidth,oe=re<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ie;this.resize(re,oe)},ue.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ue.prototype.resize=function(ie,re){this._isResizing=!0;var oe=ie/this.imageWidth,pe=re/this.imageHeight;this.imageWidth=Math.round(ie),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(oe,pe),this._isResizing=!1},ue.prototype.scaleMarkers=function(ie,re){var oe,pe=this;this._currentMarker&&this._currentMarker instanceof We?this._currentMarker.scale(ie,re):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ae){ae!==pe._currentMarker&&ae.scale(ie,re)}),oe!==void 0&&this.setCurrentMarker(oe)},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 ie=this.editingTarget.getBoundingClientRect(),re=this.editorCanvas.getBoundingClientRect();this.left=ie.left-re.left,this.top=ie.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 ie,re=[],oe=0;oe<arguments.length;oe++)re[oe]=arguments[oe];this.defs=Ee.createDefs(),this.addDefsToImage(),(ie=this.defs).append.apply(ie,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 ie=document.createElement("a");ie.href="https://markerjs.com/",ie.target="_blank",ie.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>',ie.title="Powered by marker.js",ie.style.display="grid",ie.style.alignItems="center",ie.style.justifyItems="center",ie.style.padding="3px",ie.style.width="20px",ie.style.height="20px",this.logoUI.appendChild(ie),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 ie=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=ie+"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 ct(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 Ke(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(ie){this.markerImage.removeChild(ie.container),this.markers.indexOf(ie)>-1&&this.markers.splice(this.markers.indexOf(ie),1),ie.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(ie,re){if(ie==="marker"&&re!==void 0)this.createNewMarker(re);else if(ie==="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 ie=this;if(this._currentMarker!==void 0){var re=!1;if(this.eventListeners.markerbeforedelete.forEach(function(pe){var ae=new mt(ie,ie._currentMarker,!0);pe(ae),ae.defaultPrevented&&(re=!0)}),!re){var oe=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(pe){return pe(new mt(ie,oe))})}}},ue.prototype.clear=function(){var ie=this,re=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(me){var Ze=new mt(ie,void 0,!0);me(Ze),Ze.defaultPrevented&&(re=!0)}),!re)){this.setCurrentMarker();for(var oe=function(me){var Ze=pe.markers[me];pe.setCurrentMarker(pe.markers[me]),pe._currentMarker.dispose(),pe.markerImage.removeChild(pe._currentMarker.container),pe.markers.splice(pe.markers.indexOf(pe._currentMarker),1),pe.eventListeners.markerdelete.forEach(function(Ot){return Ot(new mt(ie,Ze))})},pe=this,ae=this.markers.length-1;ae>=0;ae--)oe(ae);this.addUndoStep()}},Object.defineProperty(ue.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ue.prototype.showNotesEditor=function(){var ie;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=(ie=this._currentMarker.notes)!==null&&ie!==void 0?ie:"",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 ie=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var re=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===re.width&&oe.height===re.height){var pe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(re),pe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ae){return ae(new bt(ie))})}else this.undoRedoManager.replaceLastUndoStep(re),this.eventListeners.statechange.forEach(function(ae){return ae(new bt(ie))})}},ue.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ue.prototype.undoStep=function(){var ie=this,re=this.undoRedoManager.undo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(ie))}))},ue.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ue.prototype.redoStep=function(){var ie=this,re=this.undoRedoManager.redo();re!==void 0&&(this.restoreState(re),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(ie))}))},ue.prototype.stepZoom=function(){var ie=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ie<this.zoomSteps.length-1?this.zoomSteps[ie+1]:this.zoomSteps[0]},ue.prototype.panTo=function(ie){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ie.x,top:this.prevPanPoint.y-ie.y}),this.prevPanPoint=ie},ue.prototype.startRenderAndClose=function(){return ce(this,void 0,void 0,function(){var ie,re,oe=this;return Le(this,function(pe){switch(pe.label){case 0:return[4,this.render()];case 1:return ie=pe.sent(),re=this.getState(),this.eventListeners.render.forEach(function(ae){return ae(new Ct(oe,ie,re))}),this.close(!0),[2]}})})},ue.prototype.getState=function(ie){ie===!0&&this.setCurrentMarker();var re={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return re.markers.push(oe.getState())}),re},ue.prototype.restoreState=function(ie){var re=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ie.markers.forEach(function(oe){var pe=re._availableMarkerTypes.find(function(me){return me.typeName===oe.typeName});if(pe!==void 0){var ae=re.addNewMarker(pe);ae.restoreState(oe),re.markers.push(ae)}}),ie.width&&ie.height&&(ie.width!==this.imageWidth||ie.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ie.width,this.imageHeight/ie.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new bt(re))})},ue.prototype.addNewMarker=function(ie){var re=Ee.createGroup();return this.markerImage.appendChild(re),new ie(re,this.overlayContainer,this.settings)},ue.prototype.createNewMarker=function(ie){var re,oe=this;(re=typeof ie=="string"?this._availableMarkerTypes.find(function(pe){return pe.typeName===ie}):ie)&&(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(pe){return pe(new mt(oe,oe._currentMarker))}))},ue.prototype.markerCreated=function(ie){var re=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ie),this.setCurrentMarker(ie),ie instanceof Be&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Be):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new mt(re,re._currentMarker))})},ue.prototype.colorChanged=function(ie){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ie,this.settings.defaultStrokeColor=ie)},ue.prototype.fillColorChanged=function(ie){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ie)},ue.prototype.markerStateChanged=function(ie){var re=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new mt(re,ie))})},ue.prototype.setCurrentMarker=function(ie){var re=this;this._currentMarker!==ie&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new mt(re,re._currentMarker))})),this._currentMarker=ie,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(oe){return oe(new mt(re,re._currentMarker))}))},ue.prototype.onPointerDown=function(ie){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ie.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(oe){return oe.ownsTarget(ie.target)});re!==void 0?(this.setCurrentMarker(re),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ie.clientX,ie.clientY),ie.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ie.clientX,y:ie.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ie.clientX,ie.clientY))},ue.prototype.onDblClick=function(ie){if(this._isFocused||this.focus(),this.mode==="select"){var re=this.markers.find(function(oe){return oe.ownsTarget(ie.target)});re!==void 0&&re!==this._currentMarker&&this.setCurrentMarker(re),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ie.clientX,ie.clientY),ie.target):this.setCurrentMarker()}},ue.prototype.onPointerMove=function(ie){this.touchPoints!==1&&ie.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ie.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ie.clientX,ie.clientY)):this.zoomLevel>1&&this.panTo({x:ie.clientX,y:ie.clientY}))},ue.prototype.onPointerUp=function(ie){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ie.clientX,ie.clientY)),this.isDragging=!1,this.addUndoStep()},ue.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ue.prototype.onKeyUp=function(ie){this._currentMarker===void 0||this.notesArea!==void 0||ie.key!=="Delete"&&ie.key!=="Backspace"||this.deleteSelectedMarker()},ue.prototype.clientToLocalCoordinates=function(ie,re){var oe=this.markerImage.getBoundingClientRect();return{x:(ie-oe.left)/this.zoomLevel,y:(re-oe.top)/this.zoomLevel}},ue.prototype.onWindowResize=function(){this.positionUI()},ue.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ie=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ie+"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(ie){Ce.addKey(ie)},ue.prototype.addEventListener=function(ie,re){this.eventListeners.addEventListener(ie,re)},ue.prototype.removeEventListener=function(ie,re){this.eventListeners.removeEventListener(ie,re)},ue.prototype.renderState=function(ie){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ie),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ue.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ue.prototype.focus=function(){var ie=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(re){return re(new bt(ie))}))},ue.prototype.blur=function(){var ie=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(re){return re(new bt(ie))}))},ue.instanceCounter=0,ue}()},6551:function(Mn,Jt,E){"use strict";E.d(Jt,{ZP:function(){return Ce}});var y=E(42978),ve=E(59301),ce=E(47273),Le=0,xe=(0,ce.Z)();function Ee(){var ke;return xe?(ke=Le,Le+=1):ke="TEST_OR_SSR",ke}function Ce(ke){var De=ve.useState(),fe=(0,y.Z)(De,2),je=fe[0],Ne=fe[1];return ve.useEffect(function(){Ne("rc_select_".concat(Ee()))},[]),ke||je}},37463:function(Mn,Jt,E){"use strict";E.d(Jt,{Ac:function(){return Rt},Xo:function(){return At},Wx:function(){return Pt},ZP:function(){return ur},lk:function(){return Et}});var y=E(54476),ve=E(94480),ce=E(20068),Le=E(33885),xe=E(42978),Ee=E(75931),Ce=E(76190),ke=E(18929),De=E(48736),fe=E(59301),je=E(92310),Ne=E.n(je),ct=E(34280),Ke=E(49658),Te=E(8654),we=function(Vt){var ft=Vt.className,kt=Vt.customizeIcon,it=Vt.customizeIconProps,ht=Vt.children,cn=Vt.onMouseDown,ar=Vt.onClick,mr=typeof kt=="function"?kt(it):kt;return fe.createElement("span",{className:ft,onMouseDown:function(_t){_t.preventDefault(),cn==null||cn(_t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ar,"aria-hidden":!0},mr!==void 0?mr:fe.createElement("span",{className:Ne()(ft.split(/\s+/).map(function(It){return"".concat(It,"-icon")}))},ht))},Ie=we,Pe=function(Vt,ft,kt,it,ht){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,It=fe.useMemo(function(){if((0,Ce.Z)(it)==="object")return it.clearIcon;if(ht)return ht},[it,ht]),_t=fe.useMemo(function(){return!!(!cn&&it&&(kt.length||ar)&&!(mr==="combobox"&&ar===""))},[it,cn,kt.length,ar,mr]);return{allowClear:_t,clearIcon:fe.createElement(Ie,{className:"".concat(Vt,"-clear"),onMouseDown:ft,customizeIcon:It},"\xD7")}},rt=fe.createContext(null);function Et(){return fe.useContext(rt)}function Oe(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Vt=fe.useState(!1),ft=(0,xe.Z)(Vt,2),kt=ft[0],it=ft[1],ht=fe.useRef(null),cn=function(){window.clearTimeout(ht.current)};fe.useEffect(function(){return cn},[]);var ar=function(It,_t){cn(),ht.current=window.setTimeout(function(){it(It),_t&&_t()},Mt)};return[kt,ar,cn]}function Ae(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Vt=fe.useRef(null),ft=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(ft.current)}},[]);function kt(it){(it||Vt.current===null)&&(Vt.current=it),window.clearTimeout(ft.current),ft.current=window.setTimeout(function(){Vt.current=null},Mt)}return[function(){return Vt.current},kt]}function Ve(Mt,Vt,ft,kt){var it=fe.useRef(null);it.current={open:Vt,triggerOpen:ft,customizedTrigger:kt},fe.useEffect(function(){function ht(cn){var ar;if(!((ar=it.current)!==null&&ar!==void 0&&ar.customizedTrigger)){var mr=cn.target;mr.shadowRoot&&cn.composed&&(mr=cn.composedPath()[0]||mr),it.current.open&&Mt().filter(function(It){return It}).every(function(It){return!It.contains(mr)&&It!==mr})&&it.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ht),function(){return window.removeEventListener("mousedown",ht)}},[])}var Ye=E(10228);function xt(Mt){return Mt&&![Ye.Z.ESC,Ye.Z.SHIFT,Ye.Z.BACKSPACE,Ye.Z.TAB,Ye.Z.WIN_KEY,Ye.Z.ALT,Ye.Z.META,Ye.Z.WIN_KEY_RIGHT,Ye.Z.CTRL,Ye.Z.SEMICOLON,Ye.Z.EQUALS,Ye.Z.CAPS_LOCK,Ye.Z.CONTEXT_MENU,Ye.Z.F1,Ye.Z.F2,Ye.Z.F3,Ye.Z.F4,Ye.Z.F5,Ye.Z.F6,Ye.Z.F7,Ye.Z.F8,Ye.Z.F9,Ye.Z.F10,Ye.Z.F11,Ye.Z.F12].includes(Mt)}var gt=E(26112),lt=E(83836);function Ue(Mt,Vt,ft){var kt=(0,Le.Z)((0,Le.Z)({},Mt),ft?Vt:{});return Object.keys(Vt).forEach(function(it){var ht=Vt[it];typeof ht=="function"&&(kt[it]=function(){for(var cn,ar=arguments.length,mr=new Array(ar),It=0;It<ar;It++)mr[It]=arguments[It];return ht.apply(void 0,mr),(cn=Mt[it])===null||cn===void 0?void 0:cn.call.apply(cn,[Mt].concat(mr))})}),kt}var be=Ue,We=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Be=function(Vt,ft){var kt=Vt.prefixCls,it=Vt.id,ht=Vt.inputElement,cn=Vt.autoFocus,ar=Vt.autoComplete,mr=Vt.editable,It=Vt.activeDescendantId,_t=Vt.value,Tt=Vt.open,Kt=Vt.attrs,Fn=(0,Ee.Z)(Vt,We),Hn=ht||fe.createElement("input",null),Gn=Hn,jn=Gn.ref,hr=Gn.props;return(0,De.Kp)(!("maxLength"in Hn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Hn=fe.cloneElement(Hn,(0,Le.Z)((0,Le.Z)((0,Le.Z)({type:"search"},be(Fn,hr,!0)),{},{id:it,ref:(0,Te.sQ)(ft,jn),autoComplete:ar||"off",autoFocus:cn,className:Ne()("".concat(kt,"-selection-search-input"),hr==null?void 0:hr.className),role:"combobox","aria-expanded":Tt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(it,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(it,"_list"),"aria-activedescendant":Tt?It:void 0},Kt),{},{value:mr?_t:"",readOnly:!mr,unselectable:mr?null:"on",style:(0,Le.Z)((0,Le.Z)({},hr.style),{},{opacity:mr?null:0})})),Hn},de=fe.forwardRef(Be),St=de;function Qe(Mt){return Array.isArray(Mt)?Mt:Mt!==void 0?[Mt]:[]}var ze=typeof window!="undefined"&&window.document&&window.document.documentElement,st=ze;function Se(Mt){return Mt!=null}function ye(Mt){return!Mt&&Mt!==0}function vt(Mt){return["string","number"].includes((0,Ce.Z)(Mt))}function Ht(Mt){var Vt=void 0;return Mt&&(vt(Mt.title)?Vt=Mt.title.toString():vt(Mt.label)&&(Vt=Mt.label.toString())),Vt}function $t(Mt,Vt){st?fe.useLayoutEffect(Mt,Vt):fe.useEffect(Mt,Vt)}function Fe(Mt){var Vt;return(Vt=Mt.key)!==null&&Vt!==void 0?Vt:Mt.value}var pt=function(Vt){Vt.preventDefault(),Vt.stopPropagation()},ut=function(Vt){var ft=Vt.id,kt=Vt.prefixCls,it=Vt.values,ht=Vt.open,cn=Vt.searchValue,ar=Vt.autoClearSearchValue,mr=Vt.inputRef,It=Vt.placeholder,_t=Vt.disabled,Tt=Vt.mode,Kt=Vt.showSearch,Fn=Vt.autoFocus,Hn=Vt.autoComplete,Gn=Vt.activeDescendantId,jn=Vt.tabIndex,hr=Vt.removeIcon,Pr=Vt.maxTagCount,Tr=Vt.maxTagTextLength,Lr=Vt.maxTagPlaceholder,Cr=Lr===void 0?function(Sr){return"+ ".concat(Sr.length," ...")}:Lr,Rr=Vt.tagRender,Xr=Vt.onToggleOpen,oa=Vt.onRemove,ta=Vt.onInputChange,xa=Vt.onInputPaste,Ia=Vt.onInputKeyDown,Ur=Vt.onInputMouseDown,ya=Vt.onInputCompositionStart,Xa=Vt.onInputCompositionEnd,Pa=Vt.onInputBlur,pa=fe.useRef(null),kr=(0,fe.useState)(0),Za=(0,xe.Z)(kr,2),Sa=Za[0],la=Za[1],Kr=(0,fe.useState)(!1),Ya=(0,xe.Z)(Kr,2),Mi=Ya[0],ji=Ya[1],za="".concat(kt,"-selection"),Di=ht||Tt==="multiple"&&ar===!1||Tt==="tags"?cn:"",pi=Tt==="tags"||Tt==="multiple"&&ar===!1||Kt&&(ht||Mi);$t(function(){la(pa.current.scrollWidth)},[Di]);var Wi=function(tr,$r,sa,br,Dr){return fe.createElement("span",{title:Ht(tr),className:Ne()("".concat(za,"-item"),(0,ce.Z)({},"".concat(za,"-item-disabled"),sa))},fe.createElement("span",{className:"".concat(za,"-item-content")},$r),br&&fe.createElement(Ie,{className:"".concat(za,"-item-remove"),onMouseDown:pt,onClick:Dr,customizeIcon:hr},"\xD7"))},Ci=function(tr,$r,sa,br,Dr,jr){var Qr=function($a){pt($a),Xr(!ht)};return fe.createElement("span",{onMouseDown:Qr},Rr({label:$r,value:tr,disabled:sa,closable:br,onClose:Dr,isMaxTag:!!jr}))},ei=function(tr){var $r=tr.disabled,sa=tr.label,br=tr.value,Dr=!_t&&!$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 _a=function(ea){ea&&ea.stopPropagation(),oa(tr)};return typeof Rr=="function"?Ci(br,jr,$r,Dr,_a):Wi(tr,jr,$r,Dr,_a)},Ar=function(tr){if(!it.length)return null;var $r=typeof Cr=="function"?Cr(tr):Cr;return typeof Rr=="function"?Ci(void 0,$r,!1,!1,void 0,!0):Wi({title:$r},$r,!1)},Qn=fe.createElement("div",{className:"".concat(za,"-search"),style:{width:Sa},onFocus:function(){ji(!0)},onBlur:function(){ji(!1)}},fe.createElement(St,{ref:mr,open:ht,prefixCls:kt,id:ft,inputElement:null,disabled:_t,autoFocus:Fn,autoComplete:Hn,editable:pi,activeDescendantId:Gn,value:Di,onKeyDown:Ia,onMouseDown:Ur,onChange:ta,onPaste:xa,onCompositionStart:ya,onCompositionEnd:Xa,onBlur:Pa,tabIndex:jn,attrs:(0,gt.Z)(Vt,!0)}),fe.createElement("span",{ref:pa,className:"".concat(za,"-search-mirror"),"aria-hidden":!0},Di,"\xA0")),xr=fe.createElement(lt.Z,{prefixCls:"".concat(za,"-overflow"),data:it,renderItem:ei,renderRest:Ar,suffix:Qn,itemKey:Fe,maxCount:Pr});return fe.createElement("span",{className:"".concat(za,"-wrap")},xr,!it.length&&!Di&&fe.createElement("span",{className:"".concat(za,"-placeholder")},It))},Yt=ut,bt=function(Vt){var ft=Vt.inputElement,kt=Vt.prefixCls,it=Vt.id,ht=Vt.inputRef,cn=Vt.disabled,ar=Vt.autoFocus,mr=Vt.autoComplete,It=Vt.activeDescendantId,_t=Vt.mode,Tt=Vt.open,Kt=Vt.values,Fn=Vt.placeholder,Hn=Vt.tabIndex,Gn=Vt.showSearch,jn=Vt.searchValue,hr=Vt.activeValue,Pr=Vt.maxLength,Tr=Vt.onInputKeyDown,Lr=Vt.onInputMouseDown,Cr=Vt.onInputChange,Rr=Vt.onInputPaste,Xr=Vt.onInputCompositionStart,oa=Vt.onInputCompositionEnd,ta=Vt.onInputBlur,xa=Vt.title,Ia=fe.useState(!1),Ur=(0,xe.Z)(Ia,2),ya=Ur[0],Xa=Ur[1],Pa=_t==="combobox",pa=Pa||Gn,kr=Kt[0],Za=jn||"";Pa&&hr&&!ya&&(Za=hr),fe.useEffect(function(){Pa&&Xa(!1)},[Pa,hr]);var Sa=_t!=="combobox"&&!Tt&&!Gn?!1:!!Za,la=xa===void 0?Ht(kr):xa,Kr=fe.useMemo(function(){return kr?null:fe.createElement("span",{className:"".concat(kt,"-selection-placeholder"),style:Sa?{visibility:"hidden"}:void 0},Fn)},[kr,Sa,Fn,kt]);return fe.createElement("span",{className:"".concat(kt,"-selection-wrap")},fe.createElement("span",{className:"".concat(kt,"-selection-search")},fe.createElement(St,{ref:ht,prefixCls:kt,id:it,open:Tt,inputElement:ft,disabled:cn,autoFocus:ar,autoComplete:mr,editable:pa,activeDescendantId:It,value:Za,onKeyDown:Tr,onMouseDown:Lr,onChange:function(Mi){Xa(!0),Cr(Mi)},onPaste:Rr,onCompositionStart:Xr,onCompositionEnd:oa,onBlur:ta,tabIndex:Hn,attrs:(0,gt.Z)(Vt,!0),maxLength:Pa?Pr:void 0})),!Pa&&kr?fe.createElement("span",{className:"".concat(kt,"-selection-item"),title:la,style:Sa?{visibility:"hidden"}:void 0},kr.label):null,Kr)},Ct=bt,mt=function(Vt,ft){var kt=(0,fe.useRef)(null),it=(0,fe.useRef)(!1),ht=Vt.prefixCls,cn=Vt.open,ar=Vt.mode,mr=Vt.showSearch,It=Vt.tokenWithEnter,_t=Vt.disabled,Tt=Vt.prefix,Kt=Vt.autoClearSearchValue,Fn=Vt.onSearch,Hn=Vt.onSearchSubmit,Gn=Vt.onToggleOpen,jn=Vt.onInputKeyDown,hr=Vt.onInputBlur,Pr=Vt.domRef;fe.useImperativeHandle(ft,function(){return{focus:function(la){kt.current.focus(la)},blur:function(){kt.current.blur()}}});var Tr=Ae(0),Lr=(0,xe.Z)(Tr,2),Cr=Lr[0],Rr=Lr[1],Xr=function(la){var Kr=la.which,Ya=kt.current instanceof HTMLTextAreaElement;!Ya&&cn&&(Kr===Ye.Z.UP||Kr===Ye.Z.DOWN)&&la.preventDefault(),jn&&jn(la),Kr===Ye.Z.ENTER&&ar==="tags"&&!it.current&&!cn&&(Hn==null||Hn(la.target.value)),!(Ya&&!cn&&~[Ye.Z.UP,Ye.Z.DOWN,Ye.Z.LEFT,Ye.Z.RIGHT].indexOf(Kr))&&xt(Kr)&&Gn(!0)},oa=function(){Rr(!0)},ta=(0,fe.useRef)(null),xa=function(la){Fn(la,!0,it.current)!==!1&&Gn(!0)},Ia=function(){it.current=!0},Ur=function(la){it.current=!1,ar!=="combobox"&&xa(la.target.value)},ya=function(la){var Kr=la.target.value;if(It&&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||""},Pa=function(la){var Kr=la.target;if(Kr!==kt.current){var Ya=document.body.style.msTouchAction!==void 0;Ya?setTimeout(function(){kt.current.focus()}):kt.current.focus()}},pa=function(la){var Kr=Cr();la.target!==kt.current&&!Kr&&!(ar==="combobox"&&_t)&&la.preventDefault(),(ar!=="combobox"&&(!mr||!Kr)||!cn)&&(cn&&Kt!==!1&&Fn("",!0,!1),Gn())},kr={inputRef:kt,onInputKeyDown:Xr,onInputMouseDown:oa,onInputChange:ya,onInputPaste:Xa,onInputCompositionStart:Ia,onInputCompositionEnd:Ur,onInputBlur:hr},Za=ar==="multiple"||ar==="tags"?fe.createElement(Yt,(0,y.Z)({},Vt,kr)):fe.createElement(Ct,(0,y.Z)({},Vt,kr));return fe.createElement("div",{ref:Pr,className:"".concat(ht,"-selector"),onClick:Pa,onMouseDown:pa},Tt&&fe.createElement("div",{className:"".concat(ht,"-prefix")},Tt),Za)},mn=fe.forwardRef(mt),zt=mn,ue=E(65030),ie=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],re=function(Vt){var ft=Vt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ft,adjustY:1},htmlRegion:"scroll"}}},oe=function(Vt,ft){var kt=Vt.prefixCls,it=Vt.disabled,ht=Vt.visible,cn=Vt.children,ar=Vt.popupElement,mr=Vt.animation,It=Vt.transitionName,_t=Vt.dropdownStyle,Tt=Vt.dropdownClassName,Kt=Vt.direction,Fn=Kt===void 0?"ltr":Kt,Hn=Vt.placement,Gn=Vt.builtinPlacements,jn=Vt.dropdownMatchSelectWidth,hr=Vt.dropdownRender,Pr=Vt.dropdownAlign,Tr=Vt.getPopupContainer,Lr=Vt.empty,Cr=Vt.getTriggerDOMNode,Rr=Vt.onPopupVisibleChange,Xr=Vt.onPopupMouseEnter,oa=(0,Ee.Z)(Vt,ie),ta="".concat(kt,"-dropdown"),xa=ar;hr&&(xa=hr(ar));var Ia=fe.useMemo(function(){return Gn||re(jn)},[Gn,jn]),Ur=mr?"".concat(ta,"-").concat(mr):It,ya=typeof jn=="number",Xa=fe.useMemo(function(){return ya?null:jn===!1?"minWidth":"width"},[jn,ya]),Pa=_t;ya&&(Pa=(0,Le.Z)((0,Le.Z)({},Pa),{},{width:jn}));var pa=fe.useRef(null);return fe.useImperativeHandle(ft,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:Hn||(Fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ia,prefixCls:ta,popupTransitionName:Ur,popup:fe.createElement("div",{onMouseEnter:Xr},xa),ref:pa,stretch:Xa,popupAlign:Pr,popupVisible:ht,getPopupContainer:Tr,popupClassName:Ne()(Tt,(0,ce.Z)({},"".concat(ta,"-empty"),Lr)),popupStyle:Pa,getTriggerDOMNode:Cr,onPopupVisibleChange:Rr}),cn)},pe=fe.forwardRef(oe),ae=pe,me=E(66712);function Ze(Mt,Vt){var ft=Mt.key,kt;return"value"in Mt&&(kt=Mt.value),ft!=null?ft:kt!==void 0?kt:"rc-index-key-".concat(Vt)}function Ot(Mt){return typeof Mt!="undefined"&&!Number.isNaN(Mt)}function at(Mt,Vt){var ft=Mt||{},kt=ft.label,it=ft.value,ht=ft.options,cn=ft.groupLabel,ar=kt||(Vt?"children":"label");return{label:ar,value:it||"value",options:ht||"options",groupLabel:cn||ar}}function qe(Mt){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ft=Vt.fieldNames,kt=Vt.childrenAsData,it=[],ht=at(ft,!1),cn=ht.label,ar=ht.value,mr=ht.options,It=ht.groupLabel;function _t(Tt,Kt){Array.isArray(Tt)&&Tt.forEach(function(Fn){if(Kt||!(mr in Fn)){var Hn=Fn[ar];it.push({key:Ze(Fn,it.length),groupOption:Kt,data:Fn,label:Fn[cn],value:Hn})}else{var Gn=Fn[It];Gn===void 0&&kt&&(Gn=Fn.label),it.push({key:Ze(Fn,it.length),group:!0,data:Fn,label:Gn}),_t(Fn[mr],!0)}})}return _t(Mt,!1),it}function yt(Mt){var Vt=(0,Le.Z)({},Mt);return"props"in Vt||Object.defineProperty(Vt,"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`."),Vt}}),Vt}var Ft=function(Vt,ft,kt){if(!ft||!ft.length)return null;var it=!1,ht=function ar(mr,It){var _t=(0,me.Z)(It),Tt=_t[0],Kt=_t.slice(1);if(!Tt)return[mr];var Fn=mr.split(Tt);return it=it||Fn.length>1,Fn.reduce(function(Hn,Gn){return[].concat((0,ve.Z)(Hn),(0,ve.Z)(ar(Gn,Kt)))},[]).filter(Boolean)},cn=ht(Vt,ft);return it?typeof kt!="undefined"?cn.slice(0,kt):cn:null},jt=fe.createContext(null),Xe=jt;function tt(Mt){var Vt=Mt.visible,ft=Mt.values;if(!Vt)return null;var kt=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ft.slice(0,kt).map(function(it){var ht=it.label,cn=it.value;return["number","string"].includes((0,Ce.Z)(ht))?ht:cn}).join(", ")),ft.length>kt?", ...":null)}var Gt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],un=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wn=function(Vt){return Vt==="tags"||Vt==="multiple"},gn=fe.forwardRef(function(Mt,Vt){var ft,kt=Mt.id,it=Mt.prefixCls,ht=Mt.className,cn=Mt.showSearch,ar=Mt.tagRender,mr=Mt.direction,It=Mt.omitDomProps,_t=Mt.displayValues,Tt=Mt.onDisplayValuesChange,Kt=Mt.emptyOptions,Fn=Mt.notFoundContent,Hn=Fn===void 0?"Not Found":Fn,Gn=Mt.onClear,jn=Mt.mode,hr=Mt.disabled,Pr=Mt.loading,Tr=Mt.getInputElement,Lr=Mt.getRawInputElement,Cr=Mt.open,Rr=Mt.defaultOpen,Xr=Mt.onDropdownVisibleChange,oa=Mt.activeValue,ta=Mt.onActiveValueChange,xa=Mt.activeDescendantId,Ia=Mt.searchValue,Ur=Mt.autoClearSearchValue,ya=Mt.onSearch,Xa=Mt.onSearchSplit,Pa=Mt.tokenSeparators,pa=Mt.allowClear,kr=Mt.prefix,Za=Mt.suffixIcon,Sa=Mt.clearIcon,la=Mt.OptionList,Kr=Mt.animation,Ya=Mt.transitionName,Mi=Mt.dropdownStyle,ji=Mt.dropdownClassName,za=Mt.dropdownMatchSelectWidth,Di=Mt.dropdownRender,pi=Mt.dropdownAlign,Wi=Mt.placement,Ci=Mt.builtinPlacements,ei=Mt.getPopupContainer,Ar=Mt.showAction,Qn=Ar===void 0?[]:Ar,xr=Mt.onFocus,Sr=Mt.onBlur,tr=Mt.onKeyUp,$r=Mt.onKeyDown,sa=Mt.onMouseDown,br=(0,Ee.Z)(Mt,Gt),Dr=wn(jn),jr=(cn!==void 0?cn:Dr)||jn==="combobox",Qr=(0,Le.Z)({},br);un.forEach(function(fi){delete Qr[fi]}),It==null||It.forEach(function(fi){delete Qr[fi]});var _a=fe.useState(!1),$a=(0,xe.Z)(_a,2),ea=$a[0],ai=$a[1];fe.useEffect(function(){ai((0,Ke.Z)())},[]);var yi=fe.useRef(null),zi=fe.useRef(null),Ui=fe.useRef(null),Ji=fe.useRef(null),Yi=fe.useRef(null),co=fe.useRef(!1),No=Oe(),$o=(0,xe.Z)(No,3),Wo=$o[0],Da=$o[1],Ii=$o[2];fe.useImperativeHandle(Vt,function(){var fi,si;return{focus:(fi=Ji.current)===null||fi===void 0?void 0:fi.focus,blur:(si=Ji.current)===null||si===void 0?void 0:si.blur,scrollTo:function(Qt){var rn;return(rn=Yi.current)===null||rn===void 0?void 0:rn.scrollTo(Qt)},nativeElement:yi.current||zi.current}});var ri=fe.useMemo(function(){var fi;if(jn!=="combobox")return Ia;var si=(fi=_t[0])===null||fi===void 0?void 0:fi.value;return typeof si=="string"||typeof si=="number"?String(si):""},[Ia,jn,_t]),So=jn==="combobox"&&typeof Tr=="function"&&Tr()||null,di=typeof Lr=="function"&&Lr(),il=(0,Te.x1)(zi,di==null||(ft=di.props)===null||ft===void 0?void 0:ft.ref),$l=fe.useState(!1),Al=(0,xe.Z)($l,2),Vo=Al[0],Yo=Al[1];(0,ct.Z)(function(){Yo(!0)},[]);var no=(0,ke.Z)(!1,{defaultValue:Rr,value:Cr}),Ol=(0,xe.Z)(no,2),Ul=Ol[0],Nl=Ol[1],Io=Vo?Ul:!1,es=!Hn&&Kt;(hr||es&&Io&&jn==="combobox")&&(Io=!1);var as=es?!1:Io,Ni=fe.useCallback(function(fi){var si=fi!==void 0?fi:!Io;hr||(Nl(si),Io!==si&&(Xr==null||Xr(si)))},[hr,Io,Nl,Xr]),Qi=fe.useMemo(function(){return(Pa||[]).some(function(fi){return[`
`,`\r
`].includes(fi)})},[Pa]),Pi=fe.useContext(Xe)||{},hi=Pi.maxCount,Hi=Pi.rawValues,uo=function(si,Bt,Qt){if(!(Dr&&Ot(hi)&&(Hi==null?void 0:Hi.size)>=hi)){var rn=!0,In=si;ta==null||ta(null);var Va=Ft(si,Pa,Ot(hi)?hi-Hi.size:void 0),zr=Qt?null:Va;return jn!=="combobox"&&zr&&(In="",Xa==null||Xa(zr),Ni(!1),rn=!1),ya&&ri!==In&&ya(In,{source:Bt?"typing":"effect"}),rn}},Il=function(si){!si||!si.trim()||ya(si,{source:"submit"})};fe.useEffect(function(){!Io&&!Dr&&jn!=="combobox"&&uo("",!1,!1)},[Io]),fe.useEffect(function(){Ul&&hr&&Nl(!1),hr&&!co.current&&Da(!1)},[hr]);var oo=Ae(),Qo=(0,xe.Z)(oo,2),Jo=Qo[0],vn=Qo[1],yn=fe.useRef(!1),Nn=function(si){var Bt=Jo(),Qt=si.key,rn=Qt==="Enter";if(rn&&(jn!=="combobox"&&si.preventDefault(),Io||Ni(!0)),vn(!!ri),Qt==="Backspace"&&!Bt&&Dr&&!ri&&_t.length){for(var In=(0,ve.Z)(_t),Va=null,zr=In.length-1;zr>=0;zr-=1){var qn=In[zr];if(!qn.disabled){In.splice(zr,1),Va=qn;break}}Va&&Tt(In,{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||!yn.current)){var Wr;rn&&(yn.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 Bt=arguments.length,Qt=new Array(Bt>1?Bt-1:0),rn=1;rn<Bt;rn++)Qt[rn-1]=arguments[rn];if(Io){var In;(In=Yi.current)===null||In===void 0||In.onKeyUp.apply(In,[si].concat(Qt))}si.key==="Enter"&&(yn.current=!1),tr==null||tr.apply(void 0,[si].concat(Qt))},Or=function(si){var Bt=_t.filter(function(Qt){return Qt!==si});Tt(Bt,{type:"remove",values:[si]})},rr=function(){yn.current=!1},ir=fe.useRef(!1),kn=function(){Da(!0),hr||(xr&&!ir.current&&xr.apply(void 0,arguments),Qn.includes("focus")&&Ni(!0)),ir.current=!0},er=function(){co.current=!0,Da(!1,function(){ir.current=!1,co.current=!1,Ni(!1)}),!hr&&(ri&&(jn==="tags"?ya(ri,{source:"submit"}):jn==="multiple"&&ya("",{source:"blur"})),Sr&&Sr.apply(void 0,arguments))},vr=[];fe.useEffect(function(){return function(){vr.forEach(function(fi){return clearTimeout(fi)}),vr.splice(0,vr.length)}},[]);var na=function(si){var Bt,Qt=si.target,rn=(Bt=Ui.current)===null||Bt===void 0?void 0:Bt.getPopupElement();if(rn&&rn.contains(Qt)){var In=setTimeout(function(){var pr=vr.indexOf(In);if(pr!==-1&&vr.splice(pr,1),Ii(),!ea&&!rn.contains(document.activeElement)){var Fr;(Fr=Ji.current)===null||Fr===void 0||Fr.focus()}});vr.push(In)}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))},xi=fe.useState({}),ki=(0,xe.Z)(xi,2),fo=ki[1];function ro(){fo({})}var Ha;di&&(Ha=function(si){Ni(si)}),Ve(function(){var fi;return[yi.current,(fi=Ui.current)===null||fi===void 0?void 0:fi.getPopupElement()]},as,Ni,!!di);var ma=fe.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},Mt),{},{notFoundContent:Hn,open:Io,triggerOpen:as,id:kt,showSearch:jr,multiple:Dr,toggleOpen:Ni})},[Mt,Hn,as,Io,kt,jr,Dr,Ni]),Hr=!!Za||Pr,_i;Hr&&(_i=fe.createElement(Ie,{className:Ne()("".concat(it,"-arrow"),(0,ce.Z)({},"".concat(it,"-arrow-loading"),Pr)),customizeIcon:Za,customizeIconProps:{loading:Pr,searchValue:ri,open:Io,focused:Wo,showSearch:jr}}));var Li=function(){var si;Gn==null||Gn(),(si=Ji.current)===null||si===void 0||si.focus(),Tt([],{type:"clear",values:_t}),uo("",!1,!1)},vo=Pe(it,Li,_t,pa,Sa,hr,ri,jn),_o=vo.allowClear,Ai=vo.clearIcon,go=fe.createElement(la,{ref:Yi}),bi=Ne()(it,ht,(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(it,"-focused"),Wo),"".concat(it,"-multiple"),Dr),"".concat(it,"-single"),!Dr),"".concat(it,"-allow-clear"),pa),"".concat(it,"-show-arrow"),Hr),"".concat(it,"-disabled"),hr),"".concat(it,"-loading"),Pr),"".concat(it,"-open"),Io),"".concat(it,"-customize-input"),So),"".concat(it,"-show-search"),jr)),ga=fe.createElement(ae,{ref:Ui,disabled:hr,prefixCls:it,visible:as,popupElement:go,animation:Kr,transitionName:Ya,dropdownStyle:Mi,dropdownClassName:ji,direction:mr,dropdownMatchSelectWidth:za,dropdownRender:Di,dropdownAlign:pi,placement:Wi,builtinPlacements:Ci,getPopupContainer:ei,empty:Kt,getTriggerDOMNode:function(si){return zi.current||si},onPopupVisibleChange:Ha,onPopupMouseEnter:ro},di?fe.cloneElement(di,{ref:il}):fe.createElement(zt,(0,y.Z)({},Mt,{domRef:zi,prefixCls:it,inputElement:So,ref:Ji,id:kt,prefix:kr,showSearch:jr,autoClearSearchValue:Ur,mode:jn,activeDescendantId:xa,tagRender:ar,values:_t,open:Io,onToggleOpen:Ni,activeValue:oa,searchValue:ri,onSearch:uo,onSearchSubmit:Il,onRemove:Or,tokenWithEnter:Qi,onInputBlur:rr}))),vi;return di?vi=ga:vi=fe.createElement("div",(0,y.Z)({className:bi},Qr,{ref:yi,onMouseDown:na,onKeyDown:Nn,onKeyUp:wr,onFocus:kn,onBlur:er}),fe.createElement(tt,{visible:Wo&&!Io,values:_t}),ga,_i,_o&&Ai),fe.createElement(rt.Provider,{value:ma},vi)}),Rt=gn,Ut=function(){return null};Ut.isSelectOptGroup=!0;var At=Ut,Je=function(){return null};Je.isSelectOption=!0;var Pt=Je,nn=E(80547),pn=E(2738),nt=E(48911);function Nt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var qt=["disabled","title","children","style","className"];function wt(Mt){return typeof Mt=="string"||typeof Mt=="number"}var Wt=function(Vt,ft){var kt=Et(),it=kt.prefixCls,ht=kt.id,cn=kt.open,ar=kt.multiple,mr=kt.mode,It=kt.searchValue,_t=kt.toggleOpen,Tt=kt.notFoundContent,Kt=kt.onPopupScroll,Fn=fe.useContext(Xe),Hn=Fn.maxCount,Gn=Fn.flattenOptions,jn=Fn.onActiveValue,hr=Fn.defaultActiveFirstOption,Pr=Fn.onSelect,Tr=Fn.menuItemSelectedIcon,Lr=Fn.rawValues,Cr=Fn.fieldNames,Rr=Fn.virtual,Xr=Fn.direction,oa=Fn.listHeight,ta=Fn.listItemHeight,xa=Fn.optionRender,Ia="".concat(it,"-item"),Ur=(0,nn.Z)(function(){return Gn},[cn,Gn],function(Ar,Qn){return Qn[0]&&Ar[1]!==Qn[1]}),ya=fe.useRef(null),Xa=fe.useMemo(function(){return ar&&Ot(Hn)&&(Lr==null?void 0:Lr.size)>=Hn},[ar,Hn,Lr==null?void 0:Lr.size]),Pa=function(Qn){Qn.preventDefault()},pa=function(Qn){var xr;(xr=ya.current)===null||xr===void 0||xr.scrollTo(typeof Qn=="number"?{index:Qn}:Qn)},kr=fe.useCallback(function(Ar){return mr==="combobox"?!1:Lr.has(Ar)},[mr,(0,ve.Z)(Lr).toString(),Lr.size]),Za=function(Qn){for(var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Sr=Ur.length,tr=0;tr<Sr;tr+=1){var $r=(Qn+tr*xr+Sr)%Sr,sa=Ur[$r]||{},br=sa.group,Dr=sa.data;if(!br&&!(Dr!=null&&Dr.disabled)&&(kr(Dr.value)||!Xa))return $r}return-1},Sa=fe.useState(function(){return Za(0)}),la=(0,xe.Z)(Sa,2),Kr=la[0],Ya=la[1],Mi=function(Qn){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ya(Qn);var Sr={source:xr?"keyboard":"mouse"},tr=Ur[Qn];if(!tr){jn(null,-1,Sr);return}jn(tr.value,Qn,Sr)};(0,fe.useEffect)(function(){Mi(hr!==!1?Za(0):-1)},[Ur.length,It]);var ji=fe.useCallback(function(Ar){return mr==="combobox"?String(Ar).toLowerCase()===It.toLowerCase():Lr.has(Ar)},[mr,It,(0,ve.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 It?String($r.value).startsWith(It):$r.value===xr});Sr!==-1&&(Mi(Sr),pa(Sr))}});if(cn){var Qn;(Qn=ya.current)===null||Qn===void 0||Qn.scrollTo(void 0)}return function(){return clearTimeout(Ar)}},[cn,It]);var za=function(Qn){Qn!==void 0&&Pr(Qn,{selected:!Lr.has(Qn)}),ar||_t(!1)};if(fe.useImperativeHandle(ft,function(){return{onKeyDown:function(Qn){var xr=Qn.which,Sr=Qn.ctrlKey;switch(xr){case Ye.Z.N:case Ye.Z.P:case Ye.Z.UP:case Ye.Z.DOWN:{var tr=0;if(xr===Ye.Z.UP?tr=-1:xr===Ye.Z.DOWN?tr=1:Nt()&&Sr&&(xr===Ye.Z.N?tr=1:xr===Ye.Z.P&&(tr=-1)),tr!==0){var $r=Za(Kr+tr,tr);pa($r),Mi($r,!0)}break}case Ye.Z.TAB:case Ye.Z.ENTER:{var sa,br=Ur[Kr];br&&!(br!=null&&(sa=br.data)!==null&&sa!==void 0&&sa.disabled)&&!Xa?za(br.value):za(void 0),cn&&Qn.preventDefault();break}case Ye.Z.ESC:_t(!1),cn&&Qn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Qn){pa(Qn)}}}),Ur.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(ht,"_list"),className:"".concat(Ia,"-empty"),onMouseDown:Pa},Tt);var Di=Object.keys(Cr).map(function(Ar){return Cr[Ar]}),pi=function(Qn){return Qn.label};function Wi(Ar,Qn){var xr=Ar.group;return{role:xr?"presentation":"option",id:"".concat(ht,"_list_").concat(Qn)}}var Ci=function(Qn){var xr=Ur[Qn];if(!xr)return null;var Sr=xr.data||{},tr=Sr.value,$r=xr.group,sa=(0,gt.Z)(Sr,!0),br=pi(xr);return xr?fe.createElement("div",(0,y.Z)({"aria-label":typeof br=="string"&&!$r?br:null},sa,{key:Qn},Wi(xr,Qn),{"aria-selected":ji(tr)}),tr):null},ei={role:"listbox",id:"".concat(ht,"_list")};return fe.createElement(fe.Fragment,null,Rr&&fe.createElement("div",(0,y.Z)({},ei,{style:{height:0,width:0,overflow:"hidden"}}),Ci(Kr-1),Ci(Kr),Ci(Kr+1)),fe.createElement(nt.Z,{itemKey:"key",ref:ya,data:Ur,height:oa,itemHeight:ta,fullHeight:!1,onMouseDown:Pa,onScroll:Kt,virtual:Rr,direction:Xr,innerProps:Rr?null:ei},function(Ar,Qn){var xr=Ar.group,Sr=Ar.groupOption,tr=Ar.data,$r=Ar.label,sa=Ar.value,br=tr.key;if(xr){var Dr,jr=(Dr=tr.title)!==null&&Dr!==void 0?Dr:wt($r)?$r.toString():void 0;return fe.createElement("div",{className:Ne()(Ia,"".concat(Ia,"-group"),tr.className),title:jr},$r!==void 0?$r:br)}var Qr=tr.disabled,_a=tr.title,$a=tr.children,ea=tr.style,ai=tr.className,yi=(0,Ee.Z)(tr,qt),zi=(0,pn.Z)(yi,Di),Ui=kr(sa),Ji=Qr||!Ui&&Xa,Yi="".concat(Ia,"-option"),co=Ne()(Ia,Yi,ai,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Yi,"-grouped"),Sr),"".concat(Yi,"-active"),Kr===Qn&&!Ji),"".concat(Yi,"-disabled"),Ji),"".concat(Yi,"-selected"),Ui)),No=pi(Ar),$o=!Tr||typeof Tr=="function"||Ui,Wo=typeof No=="number"?No:No||sa,Da=wt(Wo)?Wo.toString():void 0;return _a!==void 0&&(Da=_a),fe.createElement("div",(0,y.Z)({},(0,gt.Z)(zi),Rr?{}:Wi(Ar,Qn),{"aria-selected":ji(sa),className:co,title:Da,onMouseMove:function(){Kr===Qn||Ji||Mi(Qn)},onClick:function(){Ji||za(sa)},style:ea}),fe.createElement("div",{className:"".concat(Yi,"-content")},typeof xa=="function"?xa(Ar,{index:Qn}):Wo),fe.isValidElement(Tr)||Ui,$o&&fe.createElement(Ie,{className:"".concat(Ia,"-option-state"),customizeIcon:Tr,customizeIconProps:{value:sa,disabled:Ji,isSelected:Ui}},Ui?"\u2713":null))}))},en=fe.forwardRef(Wt),_n=en,Un=function(Mt,Vt){var ft=fe.useRef({values:new Map,options:new Map}),kt=fe.useMemo(function(){var ht=ft.current,cn=ht.values,ar=ht.options,mr=Mt.map(function(Tt){if(Tt.label===void 0){var Kt;return(0,Le.Z)((0,Le.Z)({},Tt),{},{label:(Kt=cn.get(Tt.value))===null||Kt===void 0?void 0:Kt.label})}return Tt}),It=new Map,_t=new Map;return mr.forEach(function(Tt){It.set(Tt.value,Tt),_t.set(Tt.value,Vt.get(Tt.value)||ar.get(Tt.value))}),ft.current.values=It,ft.current.options=_t,mr},[Mt,Vt]),it=fe.useCallback(function(ht){return Vt.get(ht)||ft.current.options.get(ht)},[Vt]);return[kt,it]};function On(Mt,Vt){return Qe(Mt).join("").toUpperCase().includes(Vt)}var Vn=function(Mt,Vt,ft,kt,it){return fe.useMemo(function(){if(!ft||kt===!1)return Mt;var ht=Vt.options,cn=Vt.label,ar=Vt.value,mr=[],It=typeof kt=="function",_t=ft.toUpperCase(),Tt=It?kt:function(Fn,Hn){return it?On(Hn[it],_t):Hn[ht]?On(Hn[cn!=="children"?cn:"label"],_t):On(Hn[ar],_t)},Kt=It?function(Fn){return yt(Fn)}:function(Fn){return Fn};return Mt.forEach(function(Fn){if(Fn[ht]){var Hn=Tt(ft,Kt(Fn));if(Hn)mr.push(Fn);else{var Gn=Fn[ht].filter(function(jn){return Tt(ft,Kt(jn))});Gn.length&&mr.push((0,Le.Z)((0,Le.Z)({},Fn),{},(0,ce.Z)({},ht,Gn)))}return}Tt(ft,Kt(Fn))&&mr.push(Fn)}),mr},[Mt,kt,it,ft,Vt])},Zt=E(6551),Xt=E(11592),an=["children","value"],xn=["children"];function ln(Mt){var Vt=Mt,ft=Vt.key,kt=Vt.props,it=kt.children,ht=kt.value,cn=(0,Ee.Z)(kt,an);return(0,Le.Z)({key:ft,value:ht!==void 0?ht:ft,children:it},cn)}function Pn(Mt){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xt.Z)(Mt).map(function(ft,kt){if(!fe.isValidElement(ft)||!ft.type)return null;var it=ft,ht=it.type.isSelectOptGroup,cn=it.key,ar=it.props,mr=ar.children,It=(0,Ee.Z)(ar,xn);return Vt||!ht?ln(ft):(0,Le.Z)((0,Le.Z)({key:"__RC_SELECT_GRP__".concat(cn===null?kt:cn,"__"),label:cn},It),{},{options:Pn(mr)})}).filter(function(ft){return ft})}var Sn=function(Vt,ft,kt,it,ht){return fe.useMemo(function(){var cn=Vt,ar=!Vt;ar&&(cn=Pn(ft));var mr=new Map,It=new Map,_t=function(Fn,Hn,Gn){Gn&&typeof Gn=="string"&&Fn.set(Hn[Gn],Hn)},Tt=function Kt(Fn){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gn=0;Gn<Fn.length;Gn+=1){var jn=Fn[Gn];!jn[kt.options]||Hn?(mr.set(jn[kt.value],jn),_t(It,jn,kt.label),_t(It,jn,it),_t(It,jn,ht)):Kt(jn[kt.options],!0)}};return Tt(cn),{options:cn,valueOptions:mr,labelOptions:It}},[Vt,ft,kt,it,ht])},Rn=Sn;function Er(Mt){var Vt=fe.useRef();Vt.current=Mt;var ft=fe.useCallback(function(){return Vt.current.apply(Vt,arguments)},[]);return ft}function Jn(Mt){var Vt=Mt.mode,ft=Mt.options,kt=Mt.children,it=Mt.backfill,ht=Mt.allowClear,cn=Mt.placeholder,ar=Mt.getInputElement,mr=Mt.showSearch,It=Mt.onSearch,_t=Mt.defaultOpen,Tt=Mt.autoFocus,Kt=Mt.labelInValue,Fn=Mt.value,Hn=Mt.inputValue,Gn=Mt.optionLabelProp,jn=isMultiple(Vt),hr=mr!==void 0?mr:jn||Vt==="combobox",Pr=ft||convertChildrenToData(kt);if(warning(Vt!=="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."),Vt==="tags"||Vt==="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(Vt!=="combobox"||!Gn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Vt==="combobox"||!it,"`backfill` only works with `combobox` mode."),warning(Vt==="combobox"||!ar,"`getInputElement` only work with `combobox` mode."),noteOnce(Vt!=="combobox"||!ar||!ht||!cn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),It&&!hr&&Vt!=="combobox"&&Vt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!_t||Tt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Fn!=null){var Lr=toArray(Fn);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(!jn||Array.isArray(Fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(kt){var Cr=null;toNodeArray(kt).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(Hn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function dr(Mt,Vt){if(Mt){var ft=function kt(it){for(var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn=0;cn<it.length;cn++){var ar=it[cn];if(ar[Vt==null?void 0:Vt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ht&&Array.isArray(ar[Vt==null?void 0:Vt.options])&&kt(ar[Vt==null?void 0:Vt.options],!0))break}};ft(Mt)}}var yr=null,gr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Vr=["inputValue"];function Zr(Mt){return!Mt||(0,Ce.Z)(Mt)!=="object"}var Dn=fe.forwardRef(function(Mt,Vt){var ft=Mt.id,kt=Mt.mode,it=Mt.prefixCls,ht=it===void 0?"rc-select":it,cn=Mt.backfill,ar=Mt.fieldNames,mr=Mt.inputValue,It=Mt.searchValue,_t=Mt.onSearch,Tt=Mt.autoClearSearchValue,Kt=Tt===void 0?!0:Tt,Fn=Mt.onSelect,Hn=Mt.onDeselect,Gn=Mt.dropdownMatchSelectWidth,jn=Gn===void 0?!0:Gn,hr=Mt.filterOption,Pr=Mt.filterSort,Tr=Mt.optionFilterProp,Lr=Mt.optionLabelProp,Cr=Mt.options,Rr=Mt.optionRender,Xr=Mt.children,oa=Mt.defaultActiveFirstOption,ta=Mt.menuItemSelectedIcon,xa=Mt.virtual,Ia=Mt.direction,Ur=Mt.listHeight,ya=Ur===void 0?200:Ur,Xa=Mt.listItemHeight,Pa=Xa===void 0?20:Xa,pa=Mt.labelRender,kr=Mt.value,Za=Mt.defaultValue,Sa=Mt.labelInValue,la=Mt.onChange,Kr=Mt.maxCount,Ya=(0,Ee.Z)(Mt,gr),Mi=(0,Zt.ZP)(ft),ji=wn(kt),za=!!(!Cr&&Xr),Di=fe.useMemo(function(){return hr===void 0&&kt==="combobox"?!1:hr},[hr,kt]),pi=fe.useMemo(function(){return at(ar,za)},[JSON.stringify(ar),za]),Wi=(0,ke.Z)("",{value:It!==void 0?It:mr,postState:function(Qi){return Qi||""}}),Ci=(0,xe.Z)(Wi,2),ei=Ci[0],Ar=Ci[1],Qn=Rn(Cr,Xr,pi,Tr,Lr),xr=Qn.valueOptions,Sr=Qn.labelOptions,tr=Qn.options,$r=fe.useCallback(function(Ni){var Qi=Qe(Ni);return Qi.map(function(Pi){var hi,Hi,uo,Il,oo;if(Zr(Pi))hi=Pi;else{var Qo;uo=Pi.key,Hi=Pi.label,hi=(Qo=Pi.value)!==null&&Qo!==void 0?Qo:uo}var Jo=xr.get(hi);if(Jo){var vn;if(Hi===void 0&&(Hi=Jo==null?void 0:Jo[Lr||pi.label]),uo===void 0&&(uo=(vn=Jo==null?void 0:Jo.key)!==null&&vn!==void 0?vn:hi),Il=Jo==null?void 0:Jo.disabled,oo=Jo==null?void 0:Jo.title,0)var yn}return{label:Hi,value:hi,key:uo,disabled:Il,title:oo}})},[pi,Lr,xr]),sa=(0,ke.Z)(Za,{value:kr}),br=(0,xe.Z)(sa,2),Dr=br[0],jr=br[1],Qr=fe.useMemo(function(){var Ni,Qi=ji&&Dr===null?[]:Dr,Pi=$r(Qi);return kt==="combobox"&&ye((Ni=Pi[0])===null||Ni===void 0?void 0:Ni.value)?[]:Pi},[Dr,$r,kt,ji]),_a=Un(Qr,xr),$a=(0,xe.Z)(_a,2),ea=$a[0],ai=$a[1],yi=fe.useMemo(function(){if(!kt&&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,Le.Z)((0,Le.Z)({},Qi),{},{label:(Pi=typeof pa=="function"?pa(Qi):Qi.label)!==null&&Pi!==void 0?Pi:Qi.value})})},[kt,ea,pa]),zi=fe.useMemo(function(){return new Set(ea.map(function(Ni){return Ni.value}))},[ea]);fe.useEffect(function(){if(kt==="combobox"){var Ni,Qi=(Ni=ea[0])===null||Ni===void 0?void 0:Ni.value;Ar(Se(Qi)?String(Qi):"")}},[ea]);var Ui=Er(function(Ni,Qi){var Pi=Qi!=null?Qi:Ni;return(0,ce.Z)((0,ce.Z)({},pi.value,Ni),pi.label,Pi)}),Ji=fe.useMemo(function(){if(kt!=="tags")return tr;var Ni=(0,ve.Z)(tr),Qi=function(hi){return xr.has(hi)};return(0,ve.Z)(ea).sort(function(Pi,hi){return Pi.value<hi.value?-1:1}).forEach(function(Pi){var hi=Pi.value;Qi(hi)||Ni.push(Ui(hi,Pi.label))}),Ni},[Ui,tr,xr,ea,kt]),Yi=Vn(Ji,pi,ei,Di,Tr),co=fe.useMemo(function(){return kt!=="tags"||!ei||Yi.some(function(Ni){return Ni[Tr||"value"]===ei})||Yi.some(function(Ni){return Ni[pi.value]===ei})?Yi:[Ui(ei)].concat((0,ve.Z)(Yi))},[Ui,Tr,kt,Yi,ei,pi]),No=function Ni(Qi){var Pi=(0,ve.Z)(Qi).sort(function(hi,Hi){return Pr(hi,Hi,{searchValue:ei})});return Pi.map(function(hi){return Array.isArray(hi.options)?(0,Le.Z)((0,Le.Z)({},hi),{},{options:hi.options.length>0?Ni(hi.options):hi.options}):hi})},$o=fe.useMemo(function(){return Pr?No(co):co},[co,Pr,ei]),Wo=fe.useMemo(function(){return qe($o,{fieldNames:pi,childrenAsData:za})},[$o,pi,za]),Da=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 hi=Sa?Pi:Pi.map(function(uo){return uo.value}),Hi=Pi.map(function(uo){return yt(ai(uo.value))});la(ji?hi:hi[0],ji?Hi:Hi[0])}},Ii=fe.useState(null),ri=(0,xe.Z)(Ii,2),So=ri[0],di=ri[1],il=fe.useState(0),$l=(0,xe.Z)(il,2),Al=$l[0],Vo=$l[1],Yo=oa!==void 0?oa:kt!=="combobox",no=fe.useCallback(function(Ni,Qi){var Pi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hi=Pi.source,Hi=hi===void 0?"keyboard":hi;Vo(Qi),cn&&kt==="combobox"&&Ni!==null&&Hi==="keyboard"&&di(String(Ni))},[cn,kt]),Ol=function(Qi,Pi,hi){var Hi=function(){var Or,rr=ai(Qi);return[Sa?{label:rr==null?void 0:rr[pi.label],value:Qi,key:(Or=rr==null?void 0:rr.key)!==null&&Or!==void 0?Or:Qi}:Qi,yt(rr)]};if(Pi&&Fn){var uo=Hi(),Il=(0,xe.Z)(uo,2),oo=Il[0],Qo=Il[1];Fn(oo,Qo)}else if(!Pi&&Hn&&hi!=="clear"){var Jo=Hi(),vn=(0,xe.Z)(Jo,2),yn=vn[0],Nn=vn[1];Hn(yn,Nn)}},Ul=Er(function(Ni,Qi){var Pi,hi=ji?Qi.selected:!0;hi?Pi=ji?[].concat((0,ve.Z)(ea),[Ni]):[Ni]:Pi=ea.filter(function(Hi){return Hi.value!==Ni}),Da(Pi),Ol(Ni,hi),kt==="combobox"?di(""):(!wn||Kt)&&(Ar(""),di(""))}),Nl=function(Qi,Pi){Da(Qi);var hi=Pi.type,Hi=Pi.values;(hi==="remove"||hi==="clear")&&Hi.forEach(function(uo){Ol(uo.value,!1,hi)})},Io=function(Qi,Pi){if(Ar(Qi),di(null),Pi.source==="submit"){var hi=(Qi||"").trim();if(hi){var Hi=Array.from(new Set([].concat((0,ve.Z)(zi),[hi])));Da(Hi),Ol(hi,!0),Ar("")}return}Pi.source!=="blur"&&(kt==="combobox"&&Da(Qi),_t==null||_t(Qi))},es=function(Qi){var Pi=Qi;kt!=="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 hi=Array.from(new Set([].concat((0,ve.Z)(zi),(0,ve.Z)(Pi))));Da(hi),hi.forEach(function(Hi){Ol(Hi,!0)})},as=fe.useMemo(function(){var Ni=xa!==!1&&jn!==!1;return(0,Le.Z)((0,Le.Z)({},Qn),{},{flattenOptions:Wo,onActiveValue:no,defaultActiveFirstOption:Yo,onSelect:Ul,menuItemSelectedIcon:ta,rawValues:zi,fieldNames:pi,virtual:Ni,direction:Ia,listHeight:ya,listItemHeight:Pa,childrenAsData:za,maxCount:Kr,optionRender:Rr})},[Kr,Qn,Wo,no,Yo,Ul,ta,zi,pi,xa,jn,Ia,ya,Pa,za,Rr]);return fe.createElement(Xe.Provider,{value:as},fe.createElement(Rt,(0,y.Z)({},Ya,{id:Mi,prefixCls:ht,ref:Vt,omitDomProps:Vr,mode:kt,displayValues:yi,onDisplayValuesChange:Nl,direction:Ia,searchValue:ei,onSearch:Io,autoClearSearchValue:Kt,onSearchSplit:es,dropdownMatchSelectWidth:jn,OptionList:_n,emptyOptions:!Wo.length,activeValue:So,activeDescendantId:"".concat(Mi,"_list_").concat(Al)})))}),Zn=Dn;Zn.Option=Pt,Zn.OptGroup=At;var fr=Zn,ur=fr},22711:function(Mn,Jt,E){"use strict";E.r(Jt),E.d(Jt,{ResizableTextArea:function(){return be},default:function(){return St}});var y=E(54476),ve=E(20068),ce=E(33885),Le=E(94480),xe=E(42978),Ee=E(75931),Ce=E(92310),ke=E.n(Ce),De=E(36901),fe=E(66003),je=E(30292),Ne=E(18929),ct=E(59301),Ke=E(76190),Te=E(29301),we=E(34280),Ie=E(16089),Pe=`
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;
`,rt=["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"],Et={},Oe;function Ae(Qe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=Qe.getAttribute("id")||Qe.getAttribute("data-reactid")||Qe.getAttribute("name");if(ze&&Et[st])return Et[st];var Se=window.getComputedStyle(Qe),ye=Se.getPropertyValue("box-sizing")||Se.getPropertyValue("-moz-box-sizing")||Se.getPropertyValue("-webkit-box-sizing"),vt=parseFloat(Se.getPropertyValue("padding-bottom"))+parseFloat(Se.getPropertyValue("padding-top")),Ht=parseFloat(Se.getPropertyValue("border-bottom-width"))+parseFloat(Se.getPropertyValue("border-top-width")),$t=rt.map(function(pt){return"".concat(pt,":").concat(Se.getPropertyValue(pt))}).join(";"),Fe={sizingStyle:$t,paddingSize:vt,borderSize:Ht,boxSizing:ye};return ze&&st&&(Et[st]=Fe),Fe}function Ve(Qe){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Oe||(Oe=document.createElement("textarea"),Oe.setAttribute("tab-index","-1"),Oe.setAttribute("aria-hidden","true"),Oe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Oe)),Qe.getAttribute("wrap")?Oe.setAttribute("wrap",Qe.getAttribute("wrap")):Oe.removeAttribute("wrap");var ye=Ae(Qe,ze),vt=ye.paddingSize,Ht=ye.borderSize,$t=ye.boxSizing,Fe=ye.sizingStyle;Oe.setAttribute("style","".concat(Fe,";").concat(Pe)),Oe.value=Qe.value||Qe.placeholder||"";var pt=void 0,ut=void 0,Yt,bt=Oe.scrollHeight;if($t==="border-box"?bt+=Ht:$t==="content-box"&&(bt-=vt),st!==null||Se!==null){Oe.value=" ";var Ct=Oe.scrollHeight-vt;st!==null&&(pt=Ct*st,$t==="border-box"&&(pt=pt+vt+Ht),bt=Math.max(pt,bt)),Se!==null&&(ut=Ct*Se,$t==="border-box"&&(ut=ut+vt+Ht),Yt=bt>ut?"":"hidden",bt=Math.min(ut,bt))}var mt={height:bt,overflowY:Yt,resize:"none"};return pt&&(mt.minHeight=pt),ut&&(mt.maxHeight=ut),mt}var Ye=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],xt=0,gt=1,lt=2,Ue=ct.forwardRef(function(Qe,ze){var st=Qe,Se=st.prefixCls,ye=st.defaultValue,vt=st.value,Ht=st.autoSize,$t=st.onResize,Fe=st.className,pt=st.style,ut=st.disabled,Yt=st.onChange,bt=st.onInternalAutoSize,Ct=(0,Ee.Z)(st,Ye),mt=(0,Ne.Z)(ye,{value:vt,postState:function(Pt){return Pt!=null?Pt:""}}),mn=(0,xe.Z)(mt,2),zt=mn[0],ue=mn[1],ie=function(Pt){ue(Pt.target.value),Yt==null||Yt(Pt)},re=ct.useRef();ct.useImperativeHandle(ze,function(){return{textArea:re.current}});var oe=ct.useMemo(function(){return Ht&&(0,Ke.Z)(Ht)==="object"?[Ht.minRows,Ht.maxRows]:[]},[Ht]),pe=(0,xe.Z)(oe,2),ae=pe[0],me=pe[1],Ze=!!Ht,Ot=function(){try{if(document.activeElement===re.current){var Pt=re.current,nn=Pt.selectionStart,pn=Pt.selectionEnd,nt=Pt.scrollTop;re.current.setSelectionRange(nn,pn),re.current.scrollTop=nt}}catch(Nt){}},at=ct.useState(lt),qe=(0,xe.Z)(at,2),yt=qe[0],Ft=qe[1],jt=ct.useState(),Xe=(0,xe.Z)(jt,2),tt=Xe[0],Gt=Xe[1],un=function(){Ft(xt)};(0,we.Z)(function(){Ze&&un()},[vt,ae,me,Ze]),(0,we.Z)(function(){if(yt===xt)Ft(gt);else if(yt===gt){var Je=Ve(re.current,!1,ae,me);Ft(lt),Gt(Je)}else Ot()},[yt]);var wn=ct.useRef(),gn=function(){Ie.Z.cancel(wn.current)},Rt=function(Pt){yt===lt&&($t==null||$t(Pt),Ht&&(gn(),wn.current=(0,Ie.Z)(function(){un()})))};ct.useEffect(function(){return gn},[]);var Ut=Ze?tt:null,At=(0,ce.Z)((0,ce.Z)({},pt),Ut);return(yt===xt||yt===gt)&&(At.overflowY="hidden",At.overflowX="hidden"),ct.createElement(Te.Z,{onResize:Rt,disabled:!(Ht||$t)},ct.createElement("textarea",(0,y.Z)({},Ct,{ref:re,style:At,className:ke()(Se,Fe,(0,ve.Z)({},"".concat(Se,"-disabled"),ut)),disabled:ut,value:zt,onChange:ie})))}),be=Ue,We=["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"],Be=ct.forwardRef(function(Qe,ze){var st,Se=Qe.defaultValue,ye=Qe.value,vt=Qe.onFocus,Ht=Qe.onBlur,$t=Qe.onChange,Fe=Qe.allowClear,pt=Qe.maxLength,ut=Qe.onCompositionStart,Yt=Qe.onCompositionEnd,bt=Qe.suffix,Ct=Qe.prefixCls,mt=Ct===void 0?"rc-textarea":Ct,mn=Qe.showCount,zt=Qe.count,ue=Qe.className,ie=Qe.style,re=Qe.disabled,oe=Qe.hidden,pe=Qe.classNames,ae=Qe.styles,me=Qe.onResize,Ze=Qe.onClear,Ot=Qe.onPressEnter,at=Qe.readOnly,qe=Qe.autoSize,yt=Qe.onKeyDown,Ft=(0,Ee.Z)(Qe,We),jt=(0,Ne.Z)(Se,{value:ye,defaultValue:Se}),Xe=(0,xe.Z)(jt,2),tt=Xe[0],Gt=Xe[1],un=tt==null?"":String(tt),wn=ct.useState(!1),gn=(0,xe.Z)(wn,2),Rt=gn[0],Ut=gn[1],At=ct.useRef(!1),Je=ct.useState(null),Pt=(0,xe.Z)(Je,2),nn=Pt[0],pn=Pt[1],nt=(0,ct.useRef)(null),Nt=(0,ct.useRef)(null),qt=function(){var Zn;return(Zn=Nt.current)===null||Zn===void 0?void 0:Zn.textArea},wt=function(){qt().focus()};(0,ct.useImperativeHandle)(ze,function(){var Dn;return{resizableTextArea:Nt.current,focus:wt,blur:function(){qt().blur()},nativeElement:((Dn=nt.current)===null||Dn===void 0?void 0:Dn.nativeElement)||qt()}}),(0,ct.useEffect)(function(){Ut(function(Dn){return!re&&Dn})},[re]);var Wt=ct.useState(null),en=(0,xe.Z)(Wt,2),_n=en[0],Un=en[1];ct.useEffect(function(){if(_n){var Dn;(Dn=qt()).setSelectionRange.apply(Dn,(0,Le.Z)(_n))}},[_n]);var On=(0,fe.Z)(zt,mn),Vn=(st=On.max)!==null&&st!==void 0?st:pt,Zt=Number(Vn)>0,Xt=On.strategy(un),an=!!Vn&&Xt>Vn,xn=function(Zn,fr){var ur=fr;!At.current&&On.exceedFormatter&&On.max&&On.strategy(fr)>On.max&&(ur=On.exceedFormatter(fr,{max:On.max}),fr!==ur&&Un([qt().selectionStart||0,qt().selectionEnd||0])),Gt(ur),(0,je.rJ)(Zn.currentTarget,Zn,$t,ur)},ln=function(Zn){At.current=!0,ut==null||ut(Zn)},Pn=function(Zn){At.current=!1,xn(Zn,Zn.currentTarget.value),Yt==null||Yt(Zn)},Sn=function(Zn){xn(Zn,Zn.target.value)},Rn=function(Zn){Zn.key==="Enter"&&Ot&&Ot(Zn),yt==null||yt(Zn)},Er=function(Zn){Ut(!0),vt==null||vt(Zn)},Jn=function(Zn){Ut(!1),Ht==null||Ht(Zn)},dr=function(Zn){Gt(""),wt(),(0,je.rJ)(qt(),Zn,$t)},yr=bt,gr;On.show&&(On.showFormatter?gr=On.showFormatter({value:un,count:Xt,maxLength:Vn}):gr="".concat(Xt).concat(Zt?" / ".concat(Vn):""),yr=ct.createElement(ct.Fragment,null,yr,ct.createElement("span",{className:ke()("".concat(mt,"-data-count"),pe==null?void 0:pe.count),style:ae==null?void 0:ae.count},gr)));var Vr=function(Zn){var fr;me==null||me(Zn),(fr=qt())!==null&&fr!==void 0&&fr.style.height&&pn(!0)},Zr=!qe&&!mn&&!Fe;return ct.createElement(De.BaseInput,{ref:nt,value:un,allowClear:Fe,handleReset:dr,suffix:yr,prefixCls:mt,classNames:(0,ce.Z)((0,ce.Z)({},pe),{},{affixWrapper:ke()(pe==null?void 0:pe.affixWrapper,(0,ve.Z)((0,ve.Z)({},"".concat(mt,"-show-count"),mn),"".concat(mt,"-textarea-allow-clear"),Fe))}),disabled:re,focused:Rt,className:ke()(ue,an&&"".concat(mt,"-out-of-range")),style:(0,ce.Z)((0,ce.Z)({},ie),nn&&!Zr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gr=="string"?gr:void 0}},hidden:oe,readOnly:at,onClear:Ze},ct.createElement(be,(0,y.Z)({},Ft,{autoSize:qe,maxLength:pt,onKeyDown:Rn,onChange:Sn,onFocus:Er,onBlur:Jn,onCompositionStart:ln,onCompositionEnd:Pn,className:ke()(pe==null?void 0:pe.textarea),style:(0,ce.Z)((0,ce.Z)({},ae==null?void 0:ae.textarea),{},{resize:ie==null?void 0:ie.resize}),disabled:re,prefixCls:mt,onResize:Vr,ref:Nt,readOnly:at})))}),de=Be,St=de},639:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return Et}});var y=E(54476),ve=E(20068),ce=E(33885),Le=E(42978),xe=E(75931),Ee=E(59301),Ce=E(92310),ke=E.n(Ce),De=E(26112),fe=E(30699),je=function(Ae){for(var Ve=Ae.prefixCls,Ye=Ae.level,xt=Ae.isStart,gt=Ae.isEnd,lt="".concat(Ve,"-indent-unit"),Ue=[],be=0;be<Ye;be+=1)Ue.push(Ee.createElement("span",{key:be,className:ke()(lt,(0,ve.Z)((0,ve.Z)({},"".concat(lt,"-start"),xt[be]),"".concat(lt,"-end"),gt[be]))}));return Ee.createElement("span",{"aria-hidden":"true",className:"".concat(Ve,"-indent")},Ue)},Ne=Ee.memo(je),ct=E(65065),Ke=E(34061),Te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],we="open",Ie="close",Pe="---",rt=function(Ae){var Ve,Ye,xt,gt=Ae.eventKey,lt=Ae.className,Ue=Ae.style,be=Ae.dragOver,We=Ae.dragOverGapTop,Be=Ae.dragOverGapBottom,de=Ae.isLeaf,St=Ae.isStart,Qe=Ae.isEnd,ze=Ae.expanded,st=Ae.selected,Se=Ae.checked,ye=Ae.halfChecked,vt=Ae.loading,Ht=Ae.domRef,$t=Ae.active,Fe=Ae.data,pt=Ae.onMouseMove,ut=Ae.selectable,Yt=(0,xe.Z)(Ae,Te),bt=Ee.useContext(fe.k),Ct=Ee.useContext(fe.y),mt=Ee.useRef(null),mn=Ee.useState(!1),zt=(0,Le.Z)(mn,2),ue=zt[0],ie=zt[1],re=!!(bt.disabled||Ae.disabled||(Ve=Ct.nodeDisabled)!==null&&Ve!==void 0&&Ve.call(Ct,Fe)),oe=Ee.useMemo(function(){return!bt.checkable||Ae.checkable===!1?!1:bt.checkable},[bt.checkable,Ae.checkable]),pe=function(Xt){re||bt.onNodeSelect(Xt,(0,Ke.F)(Ae))},ae=function(Xt){re||!oe||Ae.disableCheckbox||bt.onNodeCheck(Xt,(0,Ke.F)(Ae),!Se)},me=Ee.useMemo(function(){return typeof ut=="boolean"?ut:bt.selectable},[ut,bt.selectable]),Ze=function(Xt){bt.onNodeClick(Xt,(0,Ke.F)(Ae)),me?pe(Xt):ae(Xt)},Ot=function(Xt){bt.onNodeDoubleClick(Xt,(0,Ke.F)(Ae))},at=function(Xt){bt.onNodeMouseEnter(Xt,(0,Ke.F)(Ae))},qe=function(Xt){bt.onNodeMouseLeave(Xt,(0,Ke.F)(Ae))},yt=function(Xt){bt.onNodeContextMenu(Xt,(0,Ke.F)(Ae))},Ft=Ee.useMemo(function(){return!!(bt.draggable&&(!bt.draggable.nodeDraggable||bt.draggable.nodeDraggable(Fe)))},[bt.draggable,Fe]),jt=function(Xt){Xt.stopPropagation(),ie(!0),bt.onNodeDragStart(Xt,Ae);try{Xt.dataTransfer.setData("text/plain","")}catch(an){}},Xe=function(Xt){Xt.preventDefault(),Xt.stopPropagation(),bt.onNodeDragEnter(Xt,Ae)},tt=function(Xt){Xt.preventDefault(),Xt.stopPropagation(),bt.onNodeDragOver(Xt,Ae)},Gt=function(Xt){Xt.stopPropagation(),bt.onNodeDragLeave(Xt,Ae)},un=function(Xt){Xt.stopPropagation(),ie(!1),bt.onNodeDragEnd(Xt,Ae)},wn=function(Xt){Xt.preventDefault(),Xt.stopPropagation(),ie(!1),bt.onNodeDrop(Xt,Ae)},gn=function(Xt){vt||bt.onNodeExpand(Xt,(0,Ke.F)(Ae))},Rt=Ee.useMemo(function(){var Zt=(0,ct.Z)(bt.keyEntities,gt)||{},Xt=Zt.children;return!!(Xt||[]).length},[bt.keyEntities,gt]),Ut=Ee.useMemo(function(){return de===!1?!1:de||!bt.loadData&&!Rt||bt.loadData&&Ae.loaded&&!Rt},[de,bt.loadData,Rt,Ae.loaded]);Ee.useEffect(function(){vt||typeof bt.loadData=="function"&&ze&&!Ut&&!Ae.loaded&&bt.onNodeLoad((0,Ke.F)(Ae))},[vt,bt.loadData,bt.onNodeLoad,ze,Ut,Ae]);var At=Ee.useMemo(function(){var Zt;return(Zt=bt.draggable)!==null&&Zt!==void 0&&Zt.icon?Ee.createElement("span",{className:"".concat(bt.prefixCls,"-draggable-icon")},bt.draggable.icon):null},[bt.draggable]),Je=function(Xt){var an=Ae.switcherIcon||bt.switcherIcon;return typeof an=="function"?an((0,ce.Z)((0,ce.Z)({},Ae),{},{isLeaf:Xt})):an},Pt=function(){if(Ut){var Xt=Je(!0);return Xt!==!1?Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-switcher"),"".concat(bt.prefixCls,"-switcher-noop"))},Xt):null}var an=Je(!1);return an!==!1?Ee.createElement("span",{onClick:gn,className:ke()("".concat(bt.prefixCls,"-switcher"),"".concat(bt.prefixCls,"-switcher_").concat(ze?we:Ie))},an):null},nn=Ee.useMemo(function(){if(!oe)return null;var Zt=typeof oe!="boolean"?oe:null;return Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-checkbox"),(0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(bt.prefixCls,"-checkbox-checked"),Se),"".concat(bt.prefixCls,"-checkbox-indeterminate"),!Se&&ye),"".concat(bt.prefixCls,"-checkbox-disabled"),re||Ae.disableCheckbox)),onClick:ae,role:"checkbox","aria-checked":ye?"mixed":Se,"aria-disabled":re||Ae.disableCheckbox,"aria-label":"Select ".concat(typeof Ae.title=="string"?Ae.title:"tree node")},Zt)},[oe,Se,ye,re,Ae.disableCheckbox,Ae.title]),pn=Ee.useMemo(function(){return Ut?null:ze?we:Ie},[Ut,ze]),nt=Ee.useMemo(function(){return Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-iconEle"),"".concat(bt.prefixCls,"-icon__").concat(pn||"docu"),(0,ve.Z)({},"".concat(bt.prefixCls,"-icon_loading"),vt))})},[bt.prefixCls,pn,vt]),Nt=Ee.useMemo(function(){var Zt=!!bt.draggable,Xt=!Ae.disabled&&Zt&&bt.dragOverNodeKey===gt;return Xt?bt.dropIndicatorRender({dropPosition:bt.dropPosition,dropLevelOffset:bt.dropLevelOffset,indent:bt.indent,prefixCls:bt.prefixCls,direction:bt.direction}):null},[bt.dropPosition,bt.dropLevelOffset,bt.indent,bt.prefixCls,bt.direction,bt.draggable,bt.dragOverNodeKey,bt.dropIndicatorRender]),qt=Ee.useMemo(function(){var Zt=Ae.title,Xt=Zt===void 0?Pe:Zt,an="".concat(bt.prefixCls,"-node-content-wrapper"),xn;if(bt.showIcon){var ln=Ae.icon||bt.icon;xn=ln?Ee.createElement("span",{className:ke()("".concat(bt.prefixCls,"-iconEle"),"".concat(bt.prefixCls,"-icon__customize"))},typeof ln=="function"?ln(Ae):ln):nt}else bt.loadData&&vt&&(xn=nt);var Pn;return typeof Xt=="function"?Pn=Xt(Fe):bt.titleRender?Pn=bt.titleRender(Fe):Pn=Xt,Ee.createElement("span",{ref:mt,title:typeof Xt=="string"?Xt:"",className:ke()(an,"".concat(an,"-").concat(pn||"normal"),(0,ve.Z)({},"".concat(bt.prefixCls,"-node-selected"),!re&&(st||ue))),onMouseEnter:at,onMouseLeave:qe,onContextMenu:yt,onClick:Ze,onDoubleClick:Ot},xn,Ee.createElement("span",{className:"".concat(bt.prefixCls,"-title")},Pn),Nt)},[bt.prefixCls,bt.showIcon,Ae,bt.icon,nt,bt.titleRender,Fe,pn,at,qe,yt,Ze,Ot]),wt=(0,De.Z)(Yt,{aria:!0,data:!0}),Wt=(0,ct.Z)(bt.keyEntities,gt)||{},en=Wt.level,_n=Qe[Qe.length-1],Un=!re&&Ft,On=bt.draggingNodeKey===gt,Vn=ut!==void 0?{"aria-selected":!!ut}:void 0;return Ee.createElement("div",(0,y.Z)({ref:Ht,role:"treeitem","aria-expanded":de?void 0:ze,className:ke()(lt,"".concat(bt.prefixCls,"-treenode"),(xt={},(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)(xt,"".concat(bt.prefixCls,"-treenode-disabled"),re),"".concat(bt.prefixCls,"-treenode-switcher-").concat(ze?"open":"close"),!de),"".concat(bt.prefixCls,"-treenode-checkbox-checked"),Se),"".concat(bt.prefixCls,"-treenode-checkbox-indeterminate"),ye),"".concat(bt.prefixCls,"-treenode-selected"),st),"".concat(bt.prefixCls,"-treenode-loading"),vt),"".concat(bt.prefixCls,"-treenode-active"),$t),"".concat(bt.prefixCls,"-treenode-leaf-last"),_n),"".concat(bt.prefixCls,"-treenode-draggable"),Ft),"dragging",On),(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)(xt,"drop-target",bt.dropTargetKey===gt),"drop-container",bt.dropContainerKey===gt),"drag-over",!re&&be),"drag-over-gap-top",!re&&We),"drag-over-gap-bottom",!re&&Be),"filter-node",(Ye=bt.filterTreeNode)===null||Ye===void 0?void 0:Ye.call(bt,(0,Ke.F)(Ae))),"".concat(bt.prefixCls,"-treenode-leaf"),Ut))),style:Ue,draggable:Un,onDragStart:Un?jt:void 0,onDragEnter:Ft?Xe:void 0,onDragOver:Ft?tt:void 0,onDragLeave:Ft?Gt:void 0,onDrop:Ft?wn:void 0,onDragEnd:Ft?un:void 0,onMouseMove:pt},Vn,wt),Ee.createElement(Ne,{prefixCls:bt.prefixCls,level:en,isStart:St,isEnd:Qe}),At,Pt(),nn,qt)};rt.isTreeNode=1;var Et=rt},30699:function(Mn,Jt,E){"use strict";E.d(Jt,{k:function(){return ve},y:function(){return ce}});var y=E(59301),ve=y.createContext(null),ce=y.createContext({})},3741:function(Mn,Jt,E){"use strict";E.d(Jt,{OF:function(){return gt.Z},y6:function(){return Ie.y},ZP:function(){return re}});var y=E(54476),ve=E(76190),ce=E(33885),Le=E(94480),xe=E(67732),Ee=E(83652),Ce=E(31226),ke=E(42403),De=E(158),fe=E(20068),je=E(92310),Ne=E.n(je),ct=E(10228),Ke=E(26112),Te=E(48736),we=E(59301),Ie=E(30699),Pe=function(pe){var ae=pe.dropPosition,me=pe.dropLevelOffset,Ze=pe.indent,Ot={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ae){case-1:Ot.top=0,Ot.left=-me*Ze;break;case 1:Ot.bottom=0,Ot.left=-me*Ze;break;case 0:Ot.bottom=0,Ot.left=Ze;break}return we.createElement("div",{style:Ot})},rt=Pe;function Et(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var Oe=E(42978),Ae=E(75931),Ve=E(34280),Ye=E(48911),xt=E(77900),gt=E(639);function lt(oe,pe){var ae=we.useState(!1),me=(0,Oe.Z)(ae,2),Ze=me[0],Ot=me[1];(0,Ve.Z)(function(){if(Ze)return oe(),function(){pe()}},[Ze]),(0,Ve.Z)(function(){return Ot(!0),function(){Ot(!1)}},[])}var Ue=lt,be=E(34061),We=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Be=we.forwardRef(function(oe,pe){var ae=oe.className,me=oe.style,Ze=oe.motion,Ot=oe.motionNodes,at=oe.motionType,qe=oe.onMotionStart,yt=oe.onMotionEnd,Ft=oe.active,jt=oe.treeNodeRequiredProps,Xe=(0,Ae.Z)(oe,We),tt=we.useState(!0),Gt=(0,Oe.Z)(tt,2),un=Gt[0],wn=Gt[1],gn=we.useContext(Ie.k),Rt=gn.prefixCls,Ut=Ot&&at!=="hide";(0,Ve.Z)(function(){Ot&&Ut!==un&&wn(Ut)},[Ot]);var At=function(){Ot&&qe()},Je=we.useRef(!1),Pt=function(){Ot&&!Je.current&&(Je.current=!0,yt())};Ue(At,Pt);var nn=function(nt){Ut===nt&&Pt()};return Ot?we.createElement(xt.default,(0,y.Z)({ref:pe,visible:un},Ze,{motionAppear:at==="show",onVisibleChanged:nn}),function(pn,nt){var Nt=pn.className,qt=pn.style;return we.createElement("div",{ref:nt,className:Ne()("".concat(Rt,"-treenode-motion"),Nt),style:qt},Ot.map(function(wt){var Wt=Object.assign({},(Et(wt.data),wt.data)),en=wt.title,_n=wt.key,Un=wt.isStart,On=wt.isEnd;delete Wt.children;var Vn=(0,be.H8)(_n,jt);return we.createElement(gt.Z,(0,y.Z)({},Wt,Vn,{title:en,active:Ft,data:wt.data,key:_n,isStart:Un,isEnd:On}))}))}):we.createElement(gt.Z,(0,y.Z)({domRef:pe,className:ae,style:me},Xe,{active:Ft}))}),de=Be;function St(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ae=oe.length,me=pe.length;if(Math.abs(ae-me)!==1)return{add:!1,key:null};function Ze(Ot,at){var qe=new Map;Ot.forEach(function(Ft){qe.set(Ft,!0)});var yt=at.filter(function(Ft){return!qe.has(Ft)});return yt.length===1?yt[0]:null}return ae<me?{add:!0,key:Ze(oe,pe)}:{add:!1,key:Ze(pe,oe)}}function Qe(oe,pe,ae){var me=oe.findIndex(function(qe){return qe.key===ae}),Ze=oe[me+1],Ot=pe.findIndex(function(qe){return qe.key===ae});if(Ze){var at=pe.findIndex(function(qe){return qe.key===Ze.key});return pe.slice(Ot+1,at)}return pe.slice(Ot+1)}var ze=["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"],st={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Se=function(){},ye="RC_TREE_MOTION_".concat(Math.random()),vt={key:ye},Ht={key:ye,level:0,index:0,pos:"0",node:vt,nodes:[vt]},$t={parent:null,children:[],pos:Ht.pos,data:vt,title:null,key:ye,isStart:[],isEnd:[]};function Fe(oe,pe,ae,me){return pe===!1||!ae?oe:oe.slice(0,Math.ceil(ae/me)+1)}function pt(oe){var pe=oe.key,ae=oe.pos;return(0,be.km)(pe,ae)}function ut(oe){for(var pe=String(oe.data.key),ae=oe;ae.parent;)ae=ae.parent,pe="".concat(ae.data.key," > ").concat(pe);return pe}var Yt=we.forwardRef(function(oe,pe){var ae=oe.prefixCls,me=oe.data,Ze=oe.selectable,Ot=oe.checkable,at=oe.expandedKeys,qe=oe.selectedKeys,yt=oe.checkedKeys,Ft=oe.loadedKeys,jt=oe.loadingKeys,Xe=oe.halfCheckedKeys,tt=oe.keyEntities,Gt=oe.disabled,un=oe.dragging,wn=oe.dragOverNodeKey,gn=oe.dropPosition,Rt=oe.motion,Ut=oe.height,At=oe.itemHeight,Je=oe.virtual,Pt=oe.scrollWidth,nn=oe.focusable,pn=oe.activeItem,nt=oe.focused,Nt=oe.tabIndex,qt=oe.onKeyDown,wt=oe.onFocus,Wt=oe.onBlur,en=oe.onActiveChange,_n=oe.onListChangeStart,Un=oe.onListChangeEnd,On=(0,Ae.Z)(oe,ze),Vn=we.useRef(null),Zt=we.useRef(null);we.useImperativeHandle(pe,function(){return{scrollTo:function(ar){Vn.current.scrollTo(ar)},getIndentWidth:function(){return Zt.current.offsetWidth}}});var Xt=we.useState(at),an=(0,Oe.Z)(Xt,2),xn=an[0],ln=an[1],Pn=we.useState(me),Sn=(0,Oe.Z)(Pn,2),Rn=Sn[0],Er=Sn[1],Jn=we.useState(me),dr=(0,Oe.Z)(Jn,2),yr=dr[0],gr=dr[1],Vr=we.useState([]),Zr=(0,Oe.Z)(Vr,2),Dn=Zr[0],Zn=Zr[1],fr=we.useState(null),ur=(0,Oe.Z)(fr,2),Mt=ur[0],Vt=ur[1],ft=we.useRef(me);ft.current=me;function kt(){var cn=ft.current;Er(cn),gr(cn),Zn([]),Vt(null),Un()}(0,Ve.Z)(function(){ln(at);var cn=St(xn,at);if(cn.key!==null)if(cn.add){var ar=Rn.findIndex(function(Fn){var Hn=Fn.key;return Hn===cn.key}),mr=Fe(Qe(Rn,me,cn.key),Je,Ut,At),It=Rn.slice();It.splice(ar+1,0,$t),gr(It),Zn(mr),Vt("show")}else{var _t=me.findIndex(function(Fn){var Hn=Fn.key;return Hn===cn.key}),Tt=Fe(Qe(me,Rn,cn.key),Je,Ut,At),Kt=me.slice();Kt.splice(_t+1,0,$t),gr(Kt),Zn(Tt),Vt("hide")}else Rn!==me&&(Er(me),gr(me))},[at,me]),we.useEffect(function(){un||kt()},[un]);var it=Rt?yr:me,ht={expandedKeys:at,selectedKeys:qe,loadedKeys:Ft,loadingKeys:jt,checkedKeys:yt,halfCheckedKeys:Xe,dragOverNodeKey:wn,dropPosition:gn,keyEntities:tt};return we.createElement(we.Fragment,null,nt&&pn&&we.createElement("span",{style:st,"aria-live":"assertive"},ut(pn)),we.createElement("div",null,we.createElement("input",{style:st,disabled:nn===!1||Gt,tabIndex:nn!==!1?Nt:null,onKeyDown:qt,onFocus:wt,onBlur:Wt,value:"",onChange:Se,"aria-label":"for screen reader"})),we.createElement("div",{className:"".concat(ae,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},we.createElement("div",{className:"".concat(ae,"-indent")},we.createElement("div",{ref:Zt,className:"".concat(ae,"-indent-unit")}))),we.createElement(Ye.Z,(0,y.Z)({},On,{data:it,itemKey:pt,height:Ut,fullHeight:!1,virtual:Je,itemHeight:At,scrollWidth:Pt,prefixCls:"".concat(ae,"-list"),ref:Vn,role:"tree",onVisibleChange:function(ar){ar.every(function(mr){return pt(mr)!==ye})&&kt()}}),function(cn){var ar=cn.pos,mr=Object.assign({},(Et(cn.data),cn.data)),It=cn.title,_t=cn.key,Tt=cn.isStart,Kt=cn.isEnd,Fn=(0,be.km)(_t,ar);delete mr.key,delete mr.children;var Hn=(0,be.H8)(Fn,ht);return we.createElement(de,(0,y.Z)({},mr,Hn,{title:It,active:!!pn&&_t===pn.key,pos:ar,data:cn.data,isStart:Tt,isEnd:Kt,motion:Rt,motionNodes:_t===ye?Dn:null,motionType:Mt,onMotionStart:_n,onMotionEnd:kt,treeNodeRequiredProps:ht,onMouseMove:function(){en(null)}}))}))}),bt=Yt,Ct=E(82661),mt=E(34643),mn=E(65065),zt=10,ue=function(oe){(0,ke.Z)(ae,oe);var pe=(0,De.Z)(ae);function ae(){var me;(0,xe.Z)(this,ae);for(var Ze=arguments.length,Ot=new Array(Ze),at=0;at<Ze;at++)Ot[at]=arguments[at];return me=pe.call.apply(pe,[this].concat(Ot)),(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,be.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(qe,yt){var Ft=me.state,jt=Ft.expandedKeys,Xe=Ft.keyEntities,tt=me.props.onDragStart,Gt=yt.eventKey;me.dragNodeProps=yt,me.dragStartMousePosition={x:qe.clientX,y:qe.clientY};var un=(0,Ct._5)(jt,Gt);me.setState({draggingNodeKey:Gt,dragChildrenKeys:(0,Ct.wA)(Gt,Xe),indent:me.listRef.current.getIndentWidth()}),me.setExpandedKeys(un),window.addEventListener("dragend",me.onWindowDragEnd),tt==null||tt({event:qe,node:(0,be.F)(yt)})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragEnter",function(qe,yt){var Ft=me.state,jt=Ft.expandedKeys,Xe=Ft.keyEntities,tt=Ft.dragChildrenKeys,Gt=Ft.flattenNodes,un=Ft.indent,wn=me.props,gn=wn.onDragEnter,Rt=wn.onExpand,Ut=wn.allowDrop,At=wn.direction,Je=yt.pos,Pt=yt.eventKey;if(me.currentMouseOverDroppableNodeKey!==Pt&&(me.currentMouseOverDroppableNodeKey=Pt),!me.dragNodeProps){me.resetDragState();return}var nn=(0,Ct.OM)(qe,me.dragNodeProps,yt,un,me.dragStartMousePosition,Ut,Gt,Xe,jt,At),pn=nn.dropPosition,nt=nn.dropLevelOffset,Nt=nn.dropTargetKey,qt=nn.dropContainerKey,wt=nn.dropTargetPos,Wt=nn.dropAllowed,en=nn.dragOverNodeKey;if(tt.includes(Nt)||!Wt){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(_n){clearTimeout(me.delayedDragEnterLogic[_n])}),me.dragNodeProps.eventKey!==yt.eventKey&&(qe.persist(),me.delayedDragEnterLogic[Je]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var _n=(0,Le.Z)(jt),Un=(0,mn.Z)(Xe,yt.eventKey);Un&&(Un.children||[]).length&&(_n=(0,Ct.L0)(jt,yt.eventKey)),me.props.hasOwnProperty("expandedKeys")||me.setExpandedKeys(_n),Rt==null||Rt(_n,{node:(0,be.F)(yt),expanded:!0,nativeEvent:qe.nativeEvent})}},800)),me.dragNodeProps.eventKey===Nt&&nt===0){me.resetDragState();return}me.setState({dragOverNodeKey:en,dropPosition:pn,dropLevelOffset:nt,dropTargetKey:Nt,dropContainerKey:qt,dropTargetPos:wt,dropAllowed:Wt}),gn==null||gn({event:qe,node:(0,be.F)(yt),expandedKeys:jt})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragOver",function(qe,yt){var Ft=me.state,jt=Ft.dragChildrenKeys,Xe=Ft.flattenNodes,tt=Ft.keyEntities,Gt=Ft.expandedKeys,un=Ft.indent,wn=me.props,gn=wn.onDragOver,Rt=wn.allowDrop,Ut=wn.direction;if(me.dragNodeProps){var At=(0,Ct.OM)(qe,me.dragNodeProps,yt,un,me.dragStartMousePosition,Rt,Xe,tt,Gt,Ut),Je=At.dropPosition,Pt=At.dropLevelOffset,nn=At.dropTargetKey,pn=At.dropContainerKey,nt=At.dropTargetPos,Nt=At.dropAllowed,qt=At.dragOverNodeKey;jt.includes(nn)||!Nt||(me.dragNodeProps.eventKey===nn&&Pt===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():Je===me.state.dropPosition&&Pt===me.state.dropLevelOffset&&nn===me.state.dropTargetKey&&pn===me.state.dropContainerKey&&nt===me.state.dropTargetPos&&Nt===me.state.dropAllowed&&qt===me.state.dragOverNodeKey||me.setState({dropPosition:Je,dropLevelOffset:Pt,dropTargetKey:nn,dropContainerKey:pn,dropTargetPos:nt,dropAllowed:Nt,dragOverNodeKey:qt}),gn==null||gn({event:qe,node:(0,be.F)(yt)}))}}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragLeave",function(qe,yt){me.currentMouseOverDroppableNodeKey===yt.eventKey&&!qe.currentTarget.contains(qe.relatedTarget)&&(me.resetDragState(),me.currentMouseOverDroppableNodeKey=null);var Ft=me.props.onDragLeave;Ft==null||Ft({event:qe,node:(0,be.F)(yt)})}),(0,fe.Z)((0,Ce.Z)(me),"onWindowDragEnd",function(qe){me.onNodeDragEnd(qe,null,!0),window.removeEventListener("dragend",me.onWindowDragEnd)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDragEnd",function(qe,yt){var Ft=me.props.onDragEnd;me.setState({dragOverNodeKey:null}),me.cleanDragState(),Ft==null||Ft({event:qe,node:(0,be.F)(yt)}),me.dragNodeProps=null,window.removeEventListener("dragend",me.onWindowDragEnd)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDrop",function(qe,yt){var Ft,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Xe=me.state,tt=Xe.dragChildrenKeys,Gt=Xe.dropPosition,un=Xe.dropTargetKey,wn=Xe.dropTargetPos,gn=Xe.dropAllowed;if(gn){var Rt=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),un!==null){var Ut=(0,ce.Z)((0,ce.Z)({},(0,be.H8)(un,me.getTreeNodeRequiredProps())),{},{active:((Ft=me.getActiveItem())===null||Ft===void 0?void 0:Ft.key)===un,data:(0,mn.Z)(me.state.keyEntities,un).node}),At=tt.includes(un);(0,Te.ZP)(!At,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Je=(0,Ct.yx)(wn),Pt={event:qe,node:(0,be.F)(Ut),dragNode:me.dragNodeProps?(0,be.F)(me.dragNodeProps):null,dragNodesKeys:[me.dragNodeProps.eventKey].concat(tt),dropToGap:Gt!==0,dropPosition:Gt+Number(Je[Je.length-1])};jt||Rt==null||Rt(Pt),me.dragNodeProps=null}}}),(0,fe.Z)((0,Ce.Z)(me),"cleanDragState",function(){var qe=me.state.draggingNodeKey;qe!==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(qe,yt){var Ft=me.state,jt=Ft.expandedKeys,Xe=Ft.flattenNodes,tt=yt.expanded,Gt=yt.key,un=yt.isLeaf;if(!(un||qe.shiftKey||qe.metaKey||qe.ctrlKey)){var wn=Xe.filter(function(Rt){return Rt.key===Gt})[0],gn=(0,be.F)((0,ce.Z)((0,ce.Z)({},(0,be.H8)(Gt,me.getTreeNodeRequiredProps())),{},{data:wn.data}));me.setExpandedKeys(tt?(0,Ct._5)(jt,Gt):(0,Ct.L0)(jt,Gt)),me.onNodeExpand(qe,gn)}}),(0,fe.Z)((0,Ce.Z)(me),"onNodeClick",function(qe,yt){var Ft=me.props,jt=Ft.onClick,Xe=Ft.expandAction;Xe==="click"&&me.triggerExpandActionExpand(qe,yt),jt==null||jt(qe,yt)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeDoubleClick",function(qe,yt){var Ft=me.props,jt=Ft.onDoubleClick,Xe=Ft.expandAction;Xe==="doubleClick"&&me.triggerExpandActionExpand(qe,yt),jt==null||jt(qe,yt)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeSelect",function(qe,yt){var Ft=me.state.selectedKeys,jt=me.state,Xe=jt.keyEntities,tt=jt.fieldNames,Gt=me.props,un=Gt.onSelect,wn=Gt.multiple,gn=yt.selected,Rt=yt[tt.key],Ut=!gn;Ut?wn?Ft=(0,Ct.L0)(Ft,Rt):Ft=[Rt]:Ft=(0,Ct._5)(Ft,Rt);var At=Ft.map(function(Je){var Pt=(0,mn.Z)(Xe,Je);return Pt?Pt.node:null}).filter(Boolean);me.setUncontrolledState({selectedKeys:Ft}),un==null||un(Ft,{event:"select",selected:Ut,node:yt,selectedNodes:At,nativeEvent:qe.nativeEvent})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeCheck",function(qe,yt,Ft){var jt=me.state,Xe=jt.keyEntities,tt=jt.checkedKeys,Gt=jt.halfCheckedKeys,un=me.props,wn=un.checkStrictly,gn=un.onCheck,Rt=yt.key,Ut,At={event:"check",node:yt,checked:Ft,nativeEvent:qe.nativeEvent};if(wn){var Je=Ft?(0,Ct.L0)(tt,Rt):(0,Ct._5)(tt,Rt),Pt=(0,Ct._5)(Gt,Rt);Ut={checked:Je,halfChecked:Pt},At.checkedNodes=Je.map(function(wt){return(0,mn.Z)(Xe,wt)}).filter(Boolean).map(function(wt){return wt.node}),me.setUncontrolledState({checkedKeys:Je})}else{var nn=(0,mt.S)([].concat((0,Le.Z)(tt),[Rt]),!0,Xe),pn=nn.checkedKeys,nt=nn.halfCheckedKeys;if(!Ft){var Nt=new Set(pn);Nt.delete(Rt);var qt=(0,mt.S)(Array.from(Nt),{checked:!1,halfCheckedKeys:nt},Xe);pn=qt.checkedKeys,nt=qt.halfCheckedKeys}Ut=pn,At.checkedNodes=[],At.checkedNodesPositions=[],At.halfCheckedKeys=nt,pn.forEach(function(wt){var Wt=(0,mn.Z)(Xe,wt);if(Wt){var en=Wt.node,_n=Wt.pos;At.checkedNodes.push(en),At.checkedNodesPositions.push({node:en,pos:_n})}}),me.setUncontrolledState({checkedKeys:pn},!1,{halfCheckedKeys:nt})}gn==null||gn(Ut,At)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeLoad",function(qe){var yt,Ft=qe.key,jt=me.state.keyEntities,Xe=(0,mn.Z)(jt,Ft);if(!(Xe!=null&&(yt=Xe.children)!==null&&yt!==void 0&&yt.length)){var tt=new Promise(function(Gt,un){me.setState(function(wn){var gn=wn.loadedKeys,Rt=gn===void 0?[]:gn,Ut=wn.loadingKeys,At=Ut===void 0?[]:Ut,Je=me.props,Pt=Je.loadData,nn=Je.onLoad;if(!Pt||Rt.includes(Ft)||At.includes(Ft))return null;var pn=Pt(qe);return pn.then(function(){var nt=me.state.loadedKeys,Nt=(0,Ct.L0)(nt,Ft);nn==null||nn(Nt,{event:"load",node:qe}),me.setUncontrolledState({loadedKeys:Nt}),me.setState(function(qt){return{loadingKeys:(0,Ct._5)(qt.loadingKeys,Ft)}}),Gt()}).catch(function(nt){if(me.setState(function(qt){return{loadingKeys:(0,Ct._5)(qt.loadingKeys,Ft)}}),me.loadingRetryTimes[Ft]=(me.loadingRetryTimes[Ft]||0)+1,me.loadingRetryTimes[Ft]>=zt){var Nt=me.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),me.setUncontrolledState({loadedKeys:(0,Ct.L0)(Nt,Ft)}),Gt()}un(nt)}),{loadingKeys:(0,Ct.L0)(At,Ft)}})});return tt.catch(function(){}),tt}}),(0,fe.Z)((0,Ce.Z)(me),"onNodeMouseEnter",function(qe,yt){var Ft=me.props.onMouseEnter;Ft==null||Ft({event:qe,node:yt})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeMouseLeave",function(qe,yt){var Ft=me.props.onMouseLeave;Ft==null||Ft({event:qe,node:yt})}),(0,fe.Z)((0,Ce.Z)(me),"onNodeContextMenu",function(qe,yt){var Ft=me.props.onRightClick;Ft&&(qe.preventDefault(),Ft({event:qe,node:yt}))}),(0,fe.Z)((0,Ce.Z)(me),"onFocus",function(){var qe=me.props.onFocus;me.setState({focused:!0});for(var yt=arguments.length,Ft=new Array(yt),jt=0;jt<yt;jt++)Ft[jt]=arguments[jt];qe==null||qe.apply(void 0,Ft)}),(0,fe.Z)((0,Ce.Z)(me),"onBlur",function(){var qe=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null);for(var yt=arguments.length,Ft=new Array(yt),jt=0;jt<yt;jt++)Ft[jt]=arguments[jt];qe==null||qe.apply(void 0,Ft)}),(0,fe.Z)((0,Ce.Z)(me),"getTreeNodeRequiredProps",function(){var qe=me.state,yt=qe.expandedKeys,Ft=qe.selectedKeys,jt=qe.loadedKeys,Xe=qe.loadingKeys,tt=qe.checkedKeys,Gt=qe.halfCheckedKeys,un=qe.dragOverNodeKey,wn=qe.dropPosition,gn=qe.keyEntities;return{expandedKeys:yt||[],selectedKeys:Ft||[],loadedKeys:jt||[],loadingKeys:Xe||[],checkedKeys:tt||[],halfCheckedKeys:Gt||[],dragOverNodeKey:un,dropPosition:wn,keyEntities:gn}}),(0,fe.Z)((0,Ce.Z)(me),"setExpandedKeys",function(qe){var yt=me.state,Ft=yt.treeData,jt=yt.fieldNames,Xe=(0,be.oH)(Ft,qe,jt);me.setUncontrolledState({expandedKeys:qe,flattenNodes:Xe},!0)}),(0,fe.Z)((0,Ce.Z)(me),"onNodeExpand",function(qe,yt){var Ft=me.state.expandedKeys,jt=me.state,Xe=jt.listChanging,tt=jt.fieldNames,Gt=me.props,un=Gt.onExpand,wn=Gt.loadData,gn=yt.expanded,Rt=yt[tt.key];if(!Xe){var Ut=Ft.includes(Rt),At=!gn;if((0,Te.ZP)(gn&&Ut||!gn&&!Ut,"Expand state not sync with index check"),Ft=At?(0,Ct.L0)(Ft,Rt):(0,Ct._5)(Ft,Rt),me.setExpandedKeys(Ft),un==null||un(Ft,{node:yt,expanded:At,nativeEvent:qe.nativeEvent}),At&&wn){var Je=me.onNodeLoad(yt);Je&&Je.then(function(){var Pt=(0,be.oH)(me.state.treeData,Ft,tt);me.setUncontrolledState({flattenNodes:Pt})}).catch(function(){var Pt=me.state.expandedKeys,nn=(0,Ct._5)(Pt,Rt);me.setExpandedKeys(nn)})}}}),(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(qe){var yt=me.state.activeKey,Ft=me.props,jt=Ft.onActiveChange,Xe=Ft.itemScrollOffset,tt=Xe===void 0?0:Xe;yt!==qe&&(me.setState({activeKey:qe}),qe!==null&&me.scrollTo({key:qe,offset:tt}),jt==null||jt(qe))}),(0,fe.Z)((0,Ce.Z)(me),"getActiveItem",function(){var qe=me.state,yt=qe.activeKey,Ft=qe.flattenNodes;return yt===null?null:Ft.find(function(jt){var Xe=jt.key;return Xe===yt})||null}),(0,fe.Z)((0,Ce.Z)(me),"offsetActiveKey",function(qe){var yt=me.state,Ft=yt.flattenNodes,jt=yt.activeKey,Xe=Ft.findIndex(function(un){var wn=un.key;return wn===jt});Xe===-1&&qe<0&&(Xe=Ft.length),Xe=(Xe+qe+Ft.length)%Ft.length;var tt=Ft[Xe];if(tt){var Gt=tt.key;me.onActiveChange(Gt)}else me.onActiveChange(null)}),(0,fe.Z)((0,Ce.Z)(me),"onKeyDown",function(qe){var yt=me.state,Ft=yt.activeKey,jt=yt.expandedKeys,Xe=yt.checkedKeys,tt=yt.fieldNames,Gt=me.props,un=Gt.onKeyDown,wn=Gt.checkable,gn=Gt.selectable;switch(qe.which){case ct.Z.UP:{me.offsetActiveKey(-1),qe.preventDefault();break}case ct.Z.DOWN:{me.offsetActiveKey(1),qe.preventDefault();break}}var Rt=me.getActiveItem();if(Rt&&Rt.data){var Ut=me.getTreeNodeRequiredProps(),At=Rt.data.isLeaf===!1||!!(Rt.data[tt.children]||[]).length,Je=(0,be.F)((0,ce.Z)((0,ce.Z)({},(0,be.H8)(Ft,Ut)),{},{data:Rt.data,active:!0}));switch(qe.which){case ct.Z.LEFT:{At&&jt.includes(Ft)?me.onNodeExpand({},Je):Rt.parent&&me.onActiveChange(Rt.parent.key),qe.preventDefault();break}case ct.Z.RIGHT:{At&&!jt.includes(Ft)?me.onNodeExpand({},Je):Rt.children&&Rt.children.length&&me.onActiveChange(Rt.children[0].key),qe.preventDefault();break}case ct.Z.ENTER:case ct.Z.SPACE:{wn&&!Je.disabled&&Je.checkable!==!1&&!Je.disableCheckbox?me.onNodeCheck({},Je,!Xe.includes(Ft)):!wn&&gn&&!Je.disabled&&Je.selectable!==!1&&me.onNodeSelect({},Je);break}}}un==null||un(qe)}),(0,fe.Z)((0,Ce.Z)(me),"setUncontrolledState",function(qe){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!me.destroyed){var jt=!1,Xe=!0,tt={};Object.keys(qe).forEach(function(Gt){if(me.props.hasOwnProperty(Gt)){Xe=!1;return}jt=!0,tt[Gt]=qe[Gt]}),jt&&(!yt||Xe)&&me.setState((0,ce.Z)((0,ce.Z)({},tt),Ft))}}),(0,fe.Z)((0,Ce.Z)(me),"scrollTo",function(qe){me.listRef.current.scrollTo(qe)}),me}return(0,Ee.Z)(ae,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ze=this.props,Ot=Ze.activeKey,at=Ze.itemScrollOffset,qe=at===void 0?0:at;Ot!==void 0&&Ot!==this.state.activeKey&&(this.setState({activeKey:Ot}),Ot!==null&&this.scrollTo({key:Ot,offset:qe}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Ze=this.state,Ot=Ze.focused,at=Ze.flattenNodes,qe=Ze.keyEntities,yt=Ze.draggingNodeKey,Ft=Ze.activeKey,jt=Ze.dropLevelOffset,Xe=Ze.dropContainerKey,tt=Ze.dropTargetKey,Gt=Ze.dropPosition,un=Ze.dragOverNodeKey,wn=Ze.indent,gn=this.props,Rt=gn.prefixCls,Ut=gn.className,At=gn.style,Je=gn.showLine,Pt=gn.focusable,nn=gn.tabIndex,pn=nn===void 0?0:nn,nt=gn.selectable,Nt=gn.showIcon,qt=gn.icon,wt=gn.switcherIcon,Wt=gn.draggable,en=gn.checkable,_n=gn.checkStrictly,Un=gn.disabled,On=gn.motion,Vn=gn.loadData,Zt=gn.filterTreeNode,Xt=gn.height,an=gn.itemHeight,xn=gn.scrollWidth,ln=gn.virtual,Pn=gn.titleRender,Sn=gn.dropIndicatorRender,Rn=gn.onContextMenu,Er=gn.onScroll,Jn=gn.direction,dr=gn.rootClassName,yr=gn.rootStyle,gr=(0,Ke.Z)(this.props,{aria:!0,data:!0}),Vr;Wt&&((0,ve.Z)(Wt)==="object"?Vr=Wt:typeof Wt=="function"?Vr={nodeDraggable:Wt}:Vr={});var Zr={prefixCls:Rt,selectable:nt,showIcon:Nt,icon:qt,switcherIcon:wt,draggable:Vr,draggingNodeKey:yt,checkable:en,checkStrictly:_n,disabled:Un,keyEntities:qe,dropLevelOffset:jt,dropContainerKey:Xe,dropTargetKey:tt,dropPosition:Gt,dragOverNodeKey:un,indent:wn,direction:Jn,dropIndicatorRender:Sn,loadData:Vn,filterTreeNode:Zt,titleRender:Pn,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(Ie.k.Provider,{value:Zr},we.createElement("div",{className:Ne()(Rt,Ut,dr,(0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Rt,"-show-line"),Je),"".concat(Rt,"-focused"),Ot),"".concat(Rt,"-active-focused"),Ft!==null)),style:yr},we.createElement(bt,(0,y.Z)({ref:this.listRef,prefixCls:Rt,style:At,data:at,disabled:Un,selectable:nt,checkable:!!en,motion:On,dragging:yt!==null,height:Xt,itemHeight:an,virtual:ln,focusable:Pt,focused:Ot,tabIndex:pn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Rn,onScroll:Er,scrollWidth:xn},this.getTreeNodeRequiredProps(),gr))))}}],[{key:"getDerivedStateFromProps",value:function(Ze,Ot){var at=Ot.prevProps,qe={prevProps:Ze};function yt(pn){return!at&&Ze.hasOwnProperty(pn)||at&&at[pn]!==Ze[pn]}var Ft,jt=Ot.fieldNames;if(yt("fieldNames")&&(jt=(0,be.w$)(Ze.fieldNames),qe.fieldNames=jt),yt("treeData")?Ft=Ze.treeData:yt("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ft=(0,be.zn)(Ze.children)),Ft){qe.treeData=Ft;var Xe=(0,be.I8)(Ft,{fieldNames:jt});qe.keyEntities=(0,ce.Z)((0,fe.Z)({},ye,Ht),Xe.keyEntities)}var tt=qe.keyEntities||Ot.keyEntities;if(yt("expandedKeys")||at&&yt("autoExpandParent"))qe.expandedKeys=Ze.autoExpandParent||!at&&Ze.defaultExpandParent?(0,Ct.r7)(Ze.expandedKeys,tt):Ze.expandedKeys;else if(!at&&Ze.defaultExpandAll){var Gt=(0,ce.Z)({},tt);delete Gt[ye];var un=[];Object.keys(Gt).forEach(function(pn){var nt=Gt[pn];nt.children&&nt.children.length&&un.push(nt.key)}),qe.expandedKeys=un}else!at&&Ze.defaultExpandedKeys&&(qe.expandedKeys=Ze.autoExpandParent||Ze.defaultExpandParent?(0,Ct.r7)(Ze.defaultExpandedKeys,tt):Ze.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,Ft||qe.expandedKeys){var wn=(0,be.oH)(Ft||Ot.treeData,qe.expandedKeys||Ot.expandedKeys,jt);qe.flattenNodes=wn}if(Ze.selectable&&(yt("selectedKeys")?qe.selectedKeys=(0,Ct.BT)(Ze.selectedKeys,Ze):!at&&Ze.defaultSelectedKeys&&(qe.selectedKeys=(0,Ct.BT)(Ze.defaultSelectedKeys,Ze))),Ze.checkable){var gn;if(yt("checkedKeys")?gn=(0,Ct.E6)(Ze.checkedKeys)||{}:!at&&Ze.defaultCheckedKeys?gn=(0,Ct.E6)(Ze.defaultCheckedKeys)||{}:Ft&&(gn=(0,Ct.E6)(Ze.checkedKeys)||{checkedKeys:Ot.checkedKeys,halfCheckedKeys:Ot.halfCheckedKeys}),gn){var Rt=gn,Ut=Rt.checkedKeys,At=Ut===void 0?[]:Ut,Je=Rt.halfCheckedKeys,Pt=Je===void 0?[]:Je;if(!Ze.checkStrictly){var nn=(0,mt.S)(At,!0,tt);At=nn.checkedKeys,Pt=nn.halfCheckedKeys}qe.checkedKeys=At,qe.halfCheckedKeys=Pt}}return yt("loadedKeys")&&(qe.loadedKeys=Ze.loadedKeys),qe}}]),ae}(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:rt,allowDrop:function(){return!0},expandAction:!1}),(0,fe.Z)(ue,"TreeNode",gt.Z);var ie=ue,re=ie},82661:function(Mn,Jt,E){"use strict";E.d(Jt,{BT:function(){return we},E6:function(){return rt},L0:function(){return fe},OM:function(){return Te},_5:function(){return De},r7:function(){return Et},wA:function(){return Ne},yx:function(){return je}});var y=E(94480),ve=E(76190),ce=E(48736),Le=E(59301),xe=E(639),Ee=E(65065),Ce=E(34061),ke=null;function De(Oe,Ae){if(!Oe)return[];var Ve=Oe.slice(),Ye=Ve.indexOf(Ae);return Ye>=0&&Ve.splice(Ye,1),Ve}function fe(Oe,Ae){var Ve=(Oe||[]).slice();return Ve.indexOf(Ae)===-1&&Ve.push(Ae),Ve}function je(Oe){return Oe.split("-")}function Ne(Oe,Ae){var Ve=[],Ye=(0,Ee.Z)(Ae,Oe);function xt(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];gt.forEach(function(lt){var Ue=lt.key,be=lt.children;Ve.push(Ue),xt(be)})}return xt(Ye.children),Ve}function ct(Oe){if(Oe.parent){var Ae=je(Oe.pos);return Number(Ae[Ae.length-1])===Oe.parent.children.length-1}return!1}function Ke(Oe){var Ae=je(Oe.pos);return Number(Ae[Ae.length-1])===0}function Te(Oe,Ae,Ve,Ye,xt,gt,lt,Ue,be,We){var Be,de=Oe.clientX,St=Oe.clientY,Qe=Oe.target.getBoundingClientRect(),ze=Qe.top,st=Qe.height,Se=(We==="rtl"?-1:1)*(((xt==null?void 0:xt.x)||0)-de),ye=(Se-12)/Ye,vt=be.filter(function(re){var oe;return(oe=Ue[re])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),Ht=(0,Ee.Z)(Ue,Ve.eventKey);if(St<ze+st/2){var $t=lt.findIndex(function(re){return re.key===Ht.key}),Fe=$t<=0?0:$t-1,pt=lt[Fe].key;Ht=(0,Ee.Z)(Ue,pt)}var ut=Ht.key,Yt=Ht,bt=Ht.key,Ct=0,mt=0;if(!vt.includes(ut))for(var mn=0;mn<ye&&ct(Ht);mn+=1)Ht=Ht.parent,mt+=1;var zt=Ae.data,ue=Ht.node,ie=!0;return Ke(Ht)&&Ht.level===0&&St<ze+st/2&&gt({dragNode:zt,dropNode:ue,dropPosition:-1})&&Ht.key===Ve.eventKey?Ct=-1:(Yt.children||[]).length&&vt.includes(bt)?gt({dragNode:zt,dropNode:ue,dropPosition:0})?Ct=0:ie=!1:mt===0?ye>-1.5?gt({dragNode:zt,dropNode:ue,dropPosition:1})?Ct=1:ie=!1:gt({dragNode:zt,dropNode:ue,dropPosition:0})?Ct=0:gt({dragNode:zt,dropNode:ue,dropPosition:1})?Ct=1:ie=!1:gt({dragNode:zt,dropNode:ue,dropPosition:1})?Ct=1:ie=!1,{dropPosition:Ct,dropLevelOffset:mt,dropTargetKey:Ht.key,dropTargetPos:Ht.pos,dragOverNodeKey:bt,dropContainerKey:Ct===0?null:((Be=Ht.parent)===null||Be===void 0?void 0:Be.key)||null,dropAllowed:ie}}function we(Oe,Ae){if(Oe){var Ve=Ae.multiple;return Ve?Oe.slice():Oe.length?[Oe[0]]:Oe}}var Ie=function(Ae){return Ae};function Pe(Oe,Ae){if(!Oe)return[];var Ve=Ae||{},Ye=Ve.processProps,xt=Ye===void 0?Ie:Ye,gt=Array.isArray(Oe)?Oe:[Oe];return gt.map(function(lt){var Ue=lt.children,be=_objectWithoutProperties(lt,ke),We=Pe(Ue,Ae);return React.createElement(TreeNode,_extends({key:be.key},xt(be)),We)})}function rt(Oe){if(!Oe)return null;var Ae;if(Array.isArray(Oe))Ae={checkedKeys:Oe,halfCheckedKeys:void 0};else if((0,ve.Z)(Oe)==="object")Ae={checkedKeys:Oe.checked||void 0,halfCheckedKeys:Oe.halfChecked||void 0};else return(0,ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ae}function Et(Oe,Ae){var Ve=new Set;function Ye(xt){if(!Ve.has(xt)){var gt=(0,Ee.Z)(Ae,xt);if(gt){Ve.add(xt);var lt=gt.parent,Ue=gt.node;Ue.disabled||lt&&Ye(lt.key)}}}return(Oe||[]).forEach(function(xt){Ye(xt)}),(0,y.Z)(Ve)}},34643:function(Mn,Jt,E){"use strict";E.d(Jt,{S:function(){return Ce}});var y=E(48736),ve=E(65065);function ce(ke,De){var fe=new Set;return ke.forEach(function(je){De.has(je)||fe.add(je)}),fe}function Le(ke){var De=ke||{},fe=De.disabled,je=De.disableCheckbox,Ne=De.checkable;return!!(fe||je)||Ne===!1}function xe(ke,De,fe,je){for(var Ne=new Set(ke),ct=new Set,Ke=0;Ke<=fe;Ke+=1){var Te=De.get(Ke)||new Set;Te.forEach(function(rt){var Et=rt.key,Oe=rt.node,Ae=rt.children,Ve=Ae===void 0?[]:Ae;Ne.has(Et)&&!je(Oe)&&Ve.filter(function(Ye){return!je(Ye.node)}).forEach(function(Ye){Ne.add(Ye.key)})})}for(var we=new Set,Ie=fe;Ie>=0;Ie-=1){var Pe=De.get(Ie)||new Set;Pe.forEach(function(rt){var Et=rt.parent,Oe=rt.node;if(!(je(Oe)||!rt.parent||we.has(rt.parent.key))){if(je(rt.parent.node)){we.add(Et.key);return}var Ae=!0,Ve=!1;(Et.children||[]).filter(function(Ye){return!je(Ye.node)}).forEach(function(Ye){var xt=Ye.key,gt=Ne.has(xt);Ae&&!gt&&(Ae=!1),!Ve&&(gt||ct.has(xt))&&(Ve=!0)}),Ae&&Ne.add(Et.key),Ve&&ct.add(Et.key),we.add(Et.key)}})}return{checkedKeys:Array.from(Ne),halfCheckedKeys:Array.from(ce(ct,Ne))}}function Ee(ke,De,fe,je,Ne){for(var ct=new Set(ke),Ke=new Set(De),Te=0;Te<=je;Te+=1){var we=fe.get(Te)||new Set;we.forEach(function(Et){var Oe=Et.key,Ae=Et.node,Ve=Et.children,Ye=Ve===void 0?[]:Ve;!ct.has(Oe)&&!Ke.has(Oe)&&!Ne(Ae)&&Ye.filter(function(xt){return!Ne(xt.node)}).forEach(function(xt){ct.delete(xt.key)})})}Ke=new Set;for(var Ie=new Set,Pe=je;Pe>=0;Pe-=1){var rt=fe.get(Pe)||new Set;rt.forEach(function(Et){var Oe=Et.parent,Ae=Et.node;if(!(Ne(Ae)||!Et.parent||Ie.has(Et.parent.key))){if(Ne(Et.parent.node)){Ie.add(Oe.key);return}var Ve=!0,Ye=!1;(Oe.children||[]).filter(function(xt){return!Ne(xt.node)}).forEach(function(xt){var gt=xt.key,lt=ct.has(gt);Ve&&!lt&&(Ve=!1),!Ye&&(lt||Ke.has(gt))&&(Ye=!0)}),Ve||ct.delete(Oe.key),Ye&&Ke.add(Oe.key),Ie.add(Oe.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(ce(Ke,ct))}}function Ce(ke,De,fe,je){var Ne=[],ct;je?ct=je:ct=Le;var Ke=new Set(ke.filter(function(Pe){var rt=!!(0,ve.Z)(fe,Pe);return rt||Ne.push(Pe),rt})),Te=new Map,we=0;Object.keys(fe).forEach(function(Pe){var rt=fe[Pe],Et=rt.level,Oe=Te.get(Et);Oe||(Oe=new Set,Te.set(Et,Oe)),Oe.add(rt),we=Math.max(we,Et)}),(0,y.ZP)(!Ne.length,"Tree missing follow keys: ".concat(Ne.slice(0,100).map(function(Pe){return"'".concat(Pe,"'")}).join(", ")));var Ie;return De===!0?Ie=xe(Ke,Te,we,ct):Ie=Ee(Ke,De.halfCheckedKeys,Te,we,ct),Ie}},65065:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return y}});function y(ve,ce){return ve[ce]}},34061:function(Mn,Jt,E){"use strict";E.d(Jt,{F:function(){return Et},H8:function(){return rt},I8:function(){return Pe},km:function(){return Ne},oH:function(){return we},w$:function(){return ct},zn:function(){return Te}});var y=E(76190),ve=E(94480),ce=E(33885),Le=E(75931),xe=E(11592),Ee=E(2738),Ce=E(48736),ke=E(65065),De=["children"];function fe(Oe,Ae){return"".concat(Oe,"-").concat(Ae)}function je(Oe){return Oe&&Oe.type&&Oe.type.isTreeNode}function Ne(Oe,Ae){return Oe!=null?Oe:Ae}function ct(Oe){var Ae=Oe||{},Ve=Ae.title,Ye=Ae._title,xt=Ae.key,gt=Ae.children,lt=Ve||"title";return{title:lt,_title:Ye||[lt],key:xt||"key",children:gt||"children"}}function Ke(Oe,Ae){var Ve=new Map;function Ye(xt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(xt||[]).forEach(function(lt){var Ue=lt[Ae.key],be=lt[Ae.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(gt).concat(Ue,"]"));var We=String(Ue);warning(!Ve.has(We)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(We)),Ve.set(We,!0),Ye(be,"".concat(gt).concat(We," > "))})}Ye(Oe)}function Te(Oe){function Ae(Ve){var Ye=(0,xe.Z)(Ve);return Ye.map(function(xt){if(!je(xt))return(0,Ce.ZP)(!xt,"Tree/TreeNode can only accept TreeNode as children."),null;var gt=xt.key,lt=xt.props,Ue=lt.children,be=(0,Le.Z)(lt,De),We=(0,ce.Z)({key:gt},be),Be=Ae(Ue);return Be.length&&(We.children=Be),We}).filter(function(xt){return xt})}return Ae(Oe)}function we(Oe,Ae,Ve){var Ye=ct(Ve),xt=Ye._title,gt=Ye.key,lt=Ye.children,Ue=new Set(Ae===!0?[]:Ae),be=[];function We(Be){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Be.map(function(St,Qe){for(var ze=fe(de?de.pos:"0",Qe),st=Ne(St[gt],ze),Se,ye=0;ye<xt.length;ye+=1){var vt=xt[ye];if(St[vt]!==void 0){Se=St[vt];break}}var Ht=Object.assign((0,Ee.Z)(St,[].concat((0,ve.Z)(xt),[gt,lt])),{title:Se,key:st,parent:de,pos:ze,children:null,data:St,isStart:[].concat((0,ve.Z)(de?de.isStart:[]),[Qe===0]),isEnd:[].concat((0,ve.Z)(de?de.isEnd:[]),[Qe===Be.length-1])});return be.push(Ht),Ae===!0||Ue.has(st)?Ht.children=We(St[lt]||[],Ht):Ht.children=[],Ht})}return We(Oe),be}function Ie(Oe,Ae,Ve){var Ye={};(0,y.Z)(Ve)==="object"?Ye=Ve:Ye={externalGetKey:Ve},Ye=Ye||{};var xt=Ye,gt=xt.childrenPropName,lt=xt.externalGetKey,Ue=xt.fieldNames,be=ct(Ue),We=be.key,Be=be.children,de=gt||Be,St;lt?typeof lt=="string"?St=function(st){return st[lt]}:typeof lt=="function"&&(St=function(st){return lt(st)}):St=function(st,Se){return Ne(st[We],Se)};function Qe(ze,st,Se,ye){var vt=ze?ze[de]:Oe,Ht=ze?fe(Se.pos,st):"0",$t=ze?[].concat((0,ve.Z)(ye),[ze]):[];if(ze){var Fe=St(ze,Ht),pt={node:ze,index:st,pos:Ht,key:Fe,parentPos:Se.node?Se.pos:null,level:Se.level+1,nodes:$t};Ae(pt)}vt&&vt.forEach(function(ut,Yt){Qe(ut,Yt,{node:ze,pos:Ht,level:Se?Se.level+1:-1},$t)})}Qe(null)}function Pe(Oe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ve=Ae.initWrapper,Ye=Ae.processEntity,xt=Ae.onProcessFinished,gt=Ae.externalGetKey,lt=Ae.childrenPropName,Ue=Ae.fieldNames,be=arguments.length>2?arguments[2]:void 0,We=gt||be,Be={},de={},St={posEntities:Be,keyEntities:de};return Ve&&(St=Ve(St)||St),Ie(Oe,function(Qe){var ze=Qe.node,st=Qe.index,Se=Qe.pos,ye=Qe.key,vt=Qe.parentPos,Ht=Qe.level,$t=Qe.nodes,Fe={node:ze,nodes:$t,index:st,key:ye,pos:Se,level:Ht},pt=Ne(ye,Se);Be[Se]=Fe,de[pt]=Fe,Fe.parent=Be[vt],Fe.parent&&(Fe.parent.children=Fe.parent.children||[],Fe.parent.children.push(Fe)),Ye&&Ye(Fe,St)},{externalGetKey:We,childrenPropName:lt,fieldNames:Ue}),xt&&xt(St),St}function rt(Oe,Ae){var Ve=Ae.expandedKeys,Ye=Ae.selectedKeys,xt=Ae.loadedKeys,gt=Ae.loadingKeys,lt=Ae.checkedKeys,Ue=Ae.halfCheckedKeys,be=Ae.dragOverNodeKey,We=Ae.dropPosition,Be=Ae.keyEntities,de=(0,ke.Z)(Be,Oe),St={eventKey:Oe,expanded:Ve.indexOf(Oe)!==-1,selected:Ye.indexOf(Oe)!==-1,loaded:xt.indexOf(Oe)!==-1,loading:gt.indexOf(Oe)!==-1,checked:lt.indexOf(Oe)!==-1,halfChecked:Ue.indexOf(Oe)!==-1,pos:String(de?de.pos:""),dragOver:be===Oe&&We===0,dragOverGapTop:be===Oe&&We===-1,dragOverGapBottom:be===Oe&&We===1};return St}function Et(Oe){var Ae=Oe.data,Ve=Oe.expanded,Ye=Oe.selected,xt=Oe.checked,gt=Oe.loaded,lt=Oe.loading,Ue=Oe.halfChecked,be=Oe.dragOver,We=Oe.dragOverGapTop,Be=Oe.dragOverGapBottom,de=Oe.pos,St=Oe.active,Qe=Oe.eventKey,ze=(0,ce.Z)((0,ce.Z)({},Ae),{},{expanded:Ve,selected:Ye,checked:xt,loaded:gt,loading:lt,halfChecked:Ue,dragOver:be,dragOverGapTop:We,dragOverGapBottom:Be,pos:de,active:St,key:Qe});return"props"in ze||Object.defineProperty(ze,"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`."),Oe}}),ze}},8224:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ve}});var y=E(4676);function ve(ce,Le,xe,Ee){var Ce=y.unstable_batchedUpdates?function(De){y.unstable_batchedUpdates(xe,De)}:xe;return ce!=null&&ce.addEventListener&&ce.addEventListener(Le,Ce,Ee),{remove:function(){ce!=null&&ce.removeEventListener&&ce.removeEventListener(Le,Ce,Ee)}}}},24514:function(Mn,Jt,E){"use strict";E.d(Jt,{G:function(){return Le}});var y=E(47273),ve=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(!ve(Ee))return!1;var ke=document.createElement("div"),De=ke.style[Ee];return ke.style[Ee]=Ce,ke.style[Ee]!==De};function Le(xe,Ee){return!Array.isArray(xe)&&Ee!==void 0?ce(xe,Ee):ve(xe)}},48911:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return zt}});var y=E(54476),ve=E(76190),ce=E(33885),Le=E(20068),xe=E(42978),Ee=E(75931),Ce=E(92310),ke=E.n(Ce),De=E(29301),fe=E(70425),je=E(34280),Ne=E(59301),ct=E(4676),Ke=Ne.forwardRef(function(ue,ie){var re=ue.height,oe=ue.offsetY,pe=ue.offsetX,ae=ue.children,me=ue.prefixCls,Ze=ue.onInnerResize,Ot=ue.innerProps,at=ue.rtl,qe=ue.extra,yt={},Ft={display:"flex",flexDirection:"column"};return oe!==void 0&&(yt={height:re,position:"relative",overflow:"hidden"},Ft=(0,ce.Z)((0,ce.Z)({},Ft),{},(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({transform:"translateY(".concat(oe,"px)")},at?"marginRight":"marginLeft",-pe),"position","absolute"),"left",0),"right",0),"top",0))),Ne.createElement("div",{style:yt},Ne.createElement(De.Z,{onResize:function(Xe){var tt=Xe.offsetHeight;tt&&Ze&&Ze()}},Ne.createElement("div",(0,y.Z)({style:Ft,className:ke()((0,Le.Z)({},"".concat(me,"-holder-inner"),me)),ref:ie},Ot),ae,qe)))});Ke.displayName="Filler";var Te=Ke;function we(ue){var ie=ue.children,re=ue.setRef,oe=Ne.useCallback(function(pe){re(pe)},[]);return Ne.cloneElement(ie,{ref:oe})}function Ie(ue,ie,re,oe,pe,ae,me,Ze){var Ot=Ze.getKey;return ue.slice(ie,re+1).map(function(at,qe){var yt=ie+qe,Ft=me(at,yt,{style:{width:oe},offsetX:pe}),jt=Ot(at);return Ne.createElement(we,{key:jt,setRef:function(tt){return ae(at,tt)}},Ft)})}function Pe(ue,ie,re,oe){var pe=re-ue,ae=ie-re,me=Math.min(pe,ae)*2;if(oe<=me){var Ze=Math.floor(oe/2);return oe%2?re+Ze+1:re-Ze}return pe>ae?re-(oe-ae):re+(oe-pe)}function rt(ue,ie,re){var oe=ue.length,pe=ie.length,ae,me;if(oe===0&&pe===0)return null;oe<pe?(ae=ue,me=ie):(ae=ie,me=ue);var Ze={__EMPTY_ITEM__:!0};function Ot(Xe){return Xe!==void 0?re(Xe):Ze}for(var at=null,qe=Math.abs(oe-pe)!==1,yt=0;yt<me.length;yt+=1){var Ft=Ot(ae[yt]),jt=Ot(me[yt]);if(Ft!==jt){at=yt,qe=qe||Ft!==Ot(me[yt+1]);break}}return at===null?null:{index:at,multiple:qe}}function Et(ue,ie,re){var oe=Ne.useState(ue),pe=(0,xe.Z)(oe,2),ae=pe[0],me=pe[1],Ze=Ne.useState(null),Ot=(0,xe.Z)(Ze,2),at=Ot[0],qe=Ot[1];return Ne.useEffect(function(){var yt=rt(ae||[],ue||[],ie);(yt==null?void 0:yt.index)!==void 0&&(re==null||re(yt.index),qe(ue[yt.index])),me(ue)},[ue]),[at]}var Oe=E(16089),Ae=(typeof navigator=="undefined"?"undefined":(0,ve.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ve=Ae,Ye=function(ue,ie,re,oe){var pe=(0,Ne.useRef)(!1),ae=(0,Ne.useRef)(null);function me(){clearTimeout(ae.current),pe.current=!0,ae.current=setTimeout(function(){pe.current=!1},50)}var Ze=(0,Ne.useRef)({top:ue,bottom:ie,left:re,right:oe});return Ze.current.top=ue,Ze.current.bottom=ie,Ze.current.left=re,Ze.current.right=oe,function(Ot,at){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,yt=Ot?at<0&&Ze.current.left||at>0&&Ze.current.right:at<0&&Ze.current.top||at>0&&Ze.current.bottom;return qe&&yt?(clearTimeout(ae.current),pe.current=!1):(!yt||pe.current)&&me(),!pe.current&&yt}};function xt(ue,ie,re,oe,pe,ae,me){var Ze=(0,Ne.useRef)(0),Ot=(0,Ne.useRef)(null),at=(0,Ne.useRef)(null),qe=(0,Ne.useRef)(!1),yt=Ye(ie,re,oe,pe);function Ft(wn,gn){if(Oe.Z.cancel(Ot.current),!yt(!1,gn)){var Rt=wn;if(!Rt._virtualHandled)Rt._virtualHandled=!0;else return;Ze.current+=gn,at.current=gn,Ve||Rt.preventDefault(),Ot.current=(0,Oe.Z)(function(){var Ut=qe.current?10:1;me(Ze.current*Ut,!1),Ze.current=0})}}function jt(wn,gn){me(gn,!0),Ve||wn.preventDefault()}var Xe=(0,Ne.useRef)(null),tt=(0,Ne.useRef)(null);function Gt(wn){if(ue){Oe.Z.cancel(tt.current),tt.current=(0,Oe.Z)(function(){Xe.current=null},2);var gn=wn.deltaX,Rt=wn.deltaY,Ut=wn.shiftKey,At=gn,Je=Rt;(Xe.current==="sx"||!Xe.current&&Ut&&Rt&&!gn)&&(At=Rt,Je=0,Xe.current="sx");var Pt=Math.abs(At),nn=Math.abs(Je);Xe.current===null&&(Xe.current=ae&&Pt>nn?"x":"y"),Xe.current==="y"?Ft(wn,Je):jt(wn,At)}}function un(wn){ue&&(qe.current=wn.detail===at.current)}return[Gt,un]}function gt(ue,ie,re,oe){var pe=Ne.useMemo(function(){return[new Map,[]]},[ue,re.id,oe]),ae=(0,xe.Z)(pe,2),me=ae[0],Ze=ae[1],Ot=function(qe){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qe,Ft=me.get(qe),jt=me.get(yt);if(Ft===void 0||jt===void 0)for(var Xe=ue.length,tt=Ze.length;tt<Xe;tt+=1){var Gt,un=ue[tt],wn=ie(un);me.set(wn,tt);var gn=(Gt=re.get(wn))!==null&&Gt!==void 0?Gt:oe;if(Ze[tt]=(Ze[tt-1]||0)+gn,wn===qe&&(Ft=tt),wn===yt&&(jt=tt),Ft!==void 0&&jt!==void 0)break}return{top:Ze[Ft-1]||0,bottom:Ze[jt]}};return Ot}var lt=E(67732),Ue=E(83652),be=function(){function ue(){(0,lt.Z)(this,ue),(0,Le.Z)(this,"maps",void 0),(0,Le.Z)(this,"id",0),(0,Le.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ue.Z)(ue,[{key:"set",value:function(re,oe){this.diffRecords.set(re,this.maps[re]),this.maps[re]=oe,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}(),We=be;function Be(ue){var ie=parseFloat(ue);return isNaN(ie)?0:ie}function de(ue,ie,re){var oe=Ne.useState(0),pe=(0,xe.Z)(oe,2),ae=pe[0],me=pe[1],Ze=(0,Ne.useRef)(new Map),Ot=(0,Ne.useRef)(new We),at=(0,Ne.useRef)(0);function qe(){at.current+=1}function yt(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;qe();var Xe=function(){var un=!1;Ze.current.forEach(function(wn,gn){if(wn&&wn.offsetParent){var Rt=wn.offsetHeight,Ut=getComputedStyle(wn),At=Ut.marginTop,Je=Ut.marginBottom,Pt=Be(At),nn=Be(Je),pn=Rt+Pt+nn;Ot.current.get(gn)!==pn&&(Ot.current.set(gn,pn),un=!0)}}),un&&me(function(wn){return wn+1})};if(jt)Xe();else{at.current+=1;var tt=at.current;Promise.resolve().then(function(){tt===at.current&&Xe()})}}function Ft(jt,Xe){var tt=ue(jt),Gt=Ze.current.get(tt);Xe?(Ze.current.set(tt,Xe),yt()):Ze.current.delete(tt),!Gt!=!Xe&&(Xe?ie==null||ie(jt):re==null||re(jt))}return(0,Ne.useEffect)(function(){return qe},[]),[Ft,yt,Ot.current,ae]}var St=14/15;function Qe(ue,ie,re){var oe=(0,Ne.useRef)(!1),pe=(0,Ne.useRef)(0),ae=(0,Ne.useRef)(0),me=(0,Ne.useRef)(null),Ze=(0,Ne.useRef)(null),Ot,at=function(jt){if(oe.current){var Xe=Math.ceil(jt.touches[0].pageX),tt=Math.ceil(jt.touches[0].pageY),Gt=pe.current-Xe,un=ae.current-tt,wn=Math.abs(Gt)>Math.abs(un);wn?pe.current=Xe:ae.current=tt;var gn=re(wn,wn?Gt:un,!1,jt);gn&&jt.preventDefault(),clearInterval(Ze.current),gn&&(Ze.current=setInterval(function(){wn?Gt*=St:un*=St;var Rt=Math.floor(wn?Gt:un);(!re(wn,Rt,!0)||Math.abs(Rt)<=.1)&&clearInterval(Ze.current)},16))}},qe=function(){oe.current=!1,Ot()},yt=function(jt){Ot(),jt.touches.length===1&&!oe.current&&(oe.current=!0,pe.current=Math.ceil(jt.touches[0].pageX),ae.current=Math.ceil(jt.touches[0].pageY),me.current=jt.target,me.current.addEventListener("touchmove",at,{passive:!1}),me.current.addEventListener("touchend",qe,{passive:!0}))};Ot=function(){me.current&&(me.current.removeEventListener("touchmove",at),me.current.removeEventListener("touchend",qe))},(0,je.Z)(function(){return ue&&ie.current.addEventListener("touchstart",yt,{passive:!0}),function(){var Ft;(Ft=ie.current)===null||Ft===void 0||Ft.removeEventListener("touchstart",yt),Ot(),clearInterval(Ze.current)}},[ue])}function ze(ue){return Math.floor(Math.pow(ue,.5))}function st(ue,ie){var re="touches"in ue?ue.touches[0]:ue;return re[ie?"pageX":"pageY"]-window[ie?"scrollX":"scrollY"]}function Se(ue,ie,re){Ne.useEffect(function(){var oe=ie.current;if(ue&&oe){var pe=!1,ae,me,Ze=function(){Oe.Z.cancel(ae)},Ot=function Ft(){Ze(),ae=(0,Oe.Z)(function(){re(me),Ft()})},at=function(){pe=!1,Ze()},qe=function(jt){if(!(jt.target.draggable||jt.button!==0)){var Xe=jt;Xe._virtualHandled||(Xe._virtualHandled=!0,pe=!0)}},yt=function(jt){if(pe){var Xe=st(jt,!1),tt=oe.getBoundingClientRect(),Gt=tt.top,un=tt.bottom;if(Xe<=Gt){var wn=Gt-Xe;me=-ze(wn),Ot()}else if(Xe>=un){var gn=Xe-un;me=ze(gn),Ot()}else Ze()}};return oe.addEventListener("mousedown",qe),oe.ownerDocument.addEventListener("mouseup",at),oe.ownerDocument.addEventListener("mousemove",yt),oe.ownerDocument.addEventListener("dragend",at),function(){oe.removeEventListener("mousedown",qe),oe.ownerDocument.removeEventListener("mouseup",at),oe.ownerDocument.removeEventListener("mousemove",yt),oe.ownerDocument.removeEventListener("dragend",at),Ze()}}},[ue])}var ye=10;function vt(ue,ie,re,oe,pe,ae,me,Ze){var Ot=Ne.useRef(),at=Ne.useState(null),qe=(0,xe.Z)(at,2),yt=qe[0],Ft=qe[1];return(0,je.Z)(function(){if(yt&&yt.times<ye){if(!ue.current){Ft(function(On){return(0,ce.Z)({},On)});return}ae();var jt=yt.targetAlign,Xe=yt.originAlign,tt=yt.index,Gt=yt.offset,un=ue.current.clientHeight,wn=!1,gn=jt,Rt=null;if(un){for(var Ut=jt||Xe,At=0,Je=0,Pt=0,nn=Math.min(ie.length-1,tt),pn=0;pn<=nn;pn+=1){var nt=pe(ie[pn]);Je=At;var Nt=re.get(nt);Pt=Je+(Nt===void 0?oe:Nt),At=Pt}for(var qt=Ut==="top"?Gt:un-Gt,wt=nn;wt>=0;wt-=1){var Wt=pe(ie[wt]),en=re.get(Wt);if(en===void 0){wn=!0;break}if(qt-=en,qt<=0)break}switch(Ut){case"top":Rt=Je-Gt;break;case"bottom":Rt=Pt-un+Gt;break;default:{var _n=ue.current.scrollTop,Un=_n+un;Je<_n?gn="top":Pt>Un&&(gn="bottom")}}Rt!==null&&me(Rt),Rt!==yt.lastTop&&(wn=!0)}wn&&Ft((0,ce.Z)((0,ce.Z)({},yt),{},{times:yt.times+1,targetAlign:gn,lastTop:Rt}))}},[yt,ue.current]),function(jt){if(jt==null){Ze();return}if(Oe.Z.cancel(Ot.current),typeof jt=="number")me(jt);else if(jt&&(0,ve.Z)(jt)==="object"){var Xe,tt=jt.align;"index"in jt?Xe=jt.index:Xe=ie.findIndex(function(wn){return pe(wn)===jt.key});var Gt=jt.offset,un=Gt===void 0?0:Gt;Ft({times:0,index:Xe,offset:un,originAlign:tt})}}}var Ht=Ne.forwardRef(function(ue,ie){var re=ue.prefixCls,oe=ue.rtl,pe=ue.scrollOffset,ae=ue.scrollRange,me=ue.onStartMove,Ze=ue.onStopMove,Ot=ue.onScroll,at=ue.horizontal,qe=ue.spinSize,yt=ue.containerSize,Ft=ue.style,jt=ue.thumbStyle,Xe=ue.showScrollBar,tt=Ne.useState(!1),Gt=(0,xe.Z)(tt,2),un=Gt[0],wn=Gt[1],gn=Ne.useState(null),Rt=(0,xe.Z)(gn,2),Ut=Rt[0],At=Rt[1],Je=Ne.useState(null),Pt=(0,xe.Z)(Je,2),nn=Pt[0],pn=Pt[1],nt=!oe,Nt=Ne.useRef(),qt=Ne.useRef(),wt=Ne.useState(Xe),Wt=(0,xe.Z)(wt,2),en=Wt[0],_n=Wt[1],Un=Ne.useRef(),On=function(){Xe===!0||Xe===!1||(clearTimeout(Un.current),_n(!0),Un.current=setTimeout(function(){_n(!1)},3e3))},Vn=ae-yt||0,Zt=yt-qe||0,Xt=Ne.useMemo(function(){if(pe===0||Vn===0)return 0;var dr=pe/Vn;return dr*Zt},[pe,Vn,Zt]),an=function(yr){yr.stopPropagation(),yr.preventDefault()},xn=Ne.useRef({top:Xt,dragging:un,pageY:Ut,startTop:nn});xn.current={top:Xt,dragging:un,pageY:Ut,startTop:nn};var ln=function(yr){wn(!0),At(st(yr,at)),pn(xn.current.top),me(),yr.stopPropagation(),yr.preventDefault()};Ne.useEffect(function(){var dr=function(Zr){Zr.preventDefault()},yr=Nt.current,gr=qt.current;return yr.addEventListener("touchstart",dr,{passive:!1}),gr.addEventListener("touchstart",ln,{passive:!1}),function(){yr.removeEventListener("touchstart",dr),gr.removeEventListener("touchstart",ln)}},[]);var Pn=Ne.useRef();Pn.current=Vn;var Sn=Ne.useRef();Sn.current=Zt,Ne.useEffect(function(){if(un){var dr,yr=function(Zr){var Dn=xn.current,Zn=Dn.dragging,fr=Dn.pageY,ur=Dn.startTop;Oe.Z.cancel(dr);var Mt=Nt.current.getBoundingClientRect(),Vt=yt/(at?Mt.width:Mt.height);if(Zn){var ft=(st(Zr,at)-fr)*Vt,kt=ur;!nt&&at?kt-=ft:kt+=ft;var it=Pn.current,ht=Sn.current,cn=ht?kt/ht:0,ar=Math.ceil(cn*it);ar=Math.max(ar,0),ar=Math.min(ar,it),dr=(0,Oe.Z)(function(){Ot(ar,at)})}},gr=function(){wn(!1),Ze()};return window.addEventListener("mousemove",yr,{passive:!0}),window.addEventListener("touchmove",yr,{passive:!0}),window.addEventListener("mouseup",gr,{passive:!0}),window.addEventListener("touchend",gr,{passive:!0}),function(){window.removeEventListener("mousemove",yr),window.removeEventListener("touchmove",yr),window.removeEventListener("mouseup",gr),window.removeEventListener("touchend",gr),Oe.Z.cancel(dr)}}},[un]),Ne.useEffect(function(){return On(),function(){clearTimeout(Un.current)}},[pe]),Ne.useImperativeHandle(ie,function(){return{delayHidden:On}});var Rn="".concat(re,"-scrollbar"),Er={position:"absolute",visibility:en?null:"hidden"},Jn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return at?(Object.assign(Er,{height:8,left:0,right:0,bottom:0}),Object.assign(Jn,(0,Le.Z)({height:"100%",width:qe},nt?"left":"right",Xt))):(Object.assign(Er,(0,Le.Z)({width:8,top:0,bottom:0},nt?"right":"left",0)),Object.assign(Jn,{width:"100%",height:qe,top:Xt})),Ne.createElement("div",{ref:Nt,className:ke()(Rn,(0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(Rn,"-horizontal"),at),"".concat(Rn,"-vertical"),!at),"".concat(Rn,"-visible"),en)),style:(0,ce.Z)((0,ce.Z)({},Er),Ft),onMouseDown:an,onMouseMove:On},Ne.createElement("div",{ref:qt,className:ke()("".concat(Rn,"-thumb"),(0,Le.Z)({},"".concat(Rn,"-thumb-moving"),un)),style:(0,ce.Z)((0,ce.Z)({},Jn),jt),onMouseDown:ln}))}),$t=Ht,Fe=20;function pt(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,re=ue/ie*ue;return isNaN(re)&&(re=0),re=Math.max(re,Fe),Math.floor(re)}var ut=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Yt=[],bt={overflowY:"auto",overflowAnchor:"none"};function Ct(ue,ie){var re=ue.prefixCls,oe=re===void 0?"rc-virtual-list":re,pe=ue.className,ae=ue.height,me=ue.itemHeight,Ze=ue.fullHeight,Ot=Ze===void 0?!0:Ze,at=ue.style,qe=ue.data,yt=ue.children,Ft=ue.itemKey,jt=ue.virtual,Xe=ue.direction,tt=ue.scrollWidth,Gt=ue.component,un=Gt===void 0?"div":Gt,wn=ue.onScroll,gn=ue.onVirtualScroll,Rt=ue.onVisibleChange,Ut=ue.innerProps,At=ue.extraRender,Je=ue.styles,Pt=ue.showScrollBar,nn=Pt===void 0?"optional":Pt,pn=(0,Ee.Z)(ue,ut),nt=Ne.useCallback(function(Qn){return typeof Ft=="function"?Ft(Qn):Qn==null?void 0:Qn[Ft]},[Ft]),Nt=de(nt,null,null),qt=(0,xe.Z)(Nt,4),wt=qt[0],Wt=qt[1],en=qt[2],_n=qt[3],Un=!!(jt!==!1&&ae&&me),On=Ne.useMemo(function(){return Object.values(en.maps).reduce(function(Qn,xr){return Qn+xr},0)},[en.id,en.maps]),Vn=Un&&qe&&(Math.max(me*qe.length,On)>ae||!!tt),Zt=Xe==="rtl",Xt=ke()(oe,(0,Le.Z)({},"".concat(oe,"-rtl"),Zt),pe),an=qe||Yt,xn=(0,Ne.useRef)(),ln=(0,Ne.useRef)(),Pn=(0,Ne.useRef)(),Sn=(0,Ne.useState)(0),Rn=(0,xe.Z)(Sn,2),Er=Rn[0],Jn=Rn[1],dr=(0,Ne.useState)(0),yr=(0,xe.Z)(dr,2),gr=yr[0],Vr=yr[1],Zr=(0,Ne.useState)(!1),Dn=(0,xe.Z)(Zr,2),Zn=Dn[0],fr=Dn[1],ur=function(){fr(!0)},Mt=function(){fr(!1)},Vt={getKey:nt};function ft(Qn){Jn(function(xr){var Sr;typeof Qn=="function"?Sr=Qn(xr):Sr=Qn;var tr=oa(Sr);return xn.current.scrollTop=tr,tr})}var kt=(0,Ne.useRef)({start:0,end:an.length}),it=(0,Ne.useRef)(),ht=Et(an,nt),cn=(0,xe.Z)(ht,1),ar=cn[0];it.current=ar;var mr=Ne.useMemo(function(){if(!Un)return{scrollHeight:void 0,start:0,end:an.length-1,offset:void 0};if(!Vn){var Qn;return{scrollHeight:((Qn=ln.current)===null||Qn===void 0?void 0:Qn.offsetHeight)||0,start:0,end:an.length-1,offset:void 0}}for(var xr=0,Sr,tr,$r,sa=an.length,br=0;br<sa;br+=1){var Dr=an[br],jr=nt(Dr),Qr=en.get(jr),_a=xr+(Qr===void 0?me:Qr);_a>=Er&&Sr===void 0&&(Sr=br,tr=xr),_a>Er+ae&&$r===void 0&&($r=br),xr=_a}return Sr===void 0&&(Sr=0,tr=0,$r=Math.ceil(ae/me)),$r===void 0&&($r=an.length-1),$r=Math.min($r+1,an.length-1),{scrollHeight:xr,start:Sr,end:$r,offset:tr}},[Vn,Un,Er,an,_n,ae]),It=mr.scrollHeight,_t=mr.start,Tt=mr.end,Kt=mr.offset;kt.current.start=_t,kt.current.end=Tt,Ne.useLayoutEffect(function(){var Qn=en.getRecord();if(Qn.size===1){var xr=Array.from(Qn.keys())[0],Sr=Qn.get(xr),tr=an[_t];if(tr&&Sr===void 0){var $r=nt(tr);if($r===xr){var sa=en.get(xr),br=sa-me;ft(function(Dr){return Dr+br})}}}en.resetRecord()},[It]);var Fn=Ne.useState({width:0,height:ae}),Hn=(0,xe.Z)(Fn,2),Gn=Hn[0],jn=Hn[1],hr=function(xr){jn({width:xr.offsetWidth,height:xr.offsetHeight})},Pr=(0,Ne.useRef)(),Tr=(0,Ne.useRef)(),Lr=Ne.useMemo(function(){return pt(Gn.width,tt)},[Gn.width,tt]),Cr=Ne.useMemo(function(){return pt(Gn.height,It)},[Gn.height,It]),Rr=It-ae,Xr=(0,Ne.useRef)(Rr);Xr.current=Rr;function oa(Qn){var xr=Qn;return Number.isNaN(Xr.current)||(xr=Math.min(xr,Xr.current)),xr=Math.max(xr,0),xr}var ta=Er<=0,xa=Er>=Rr,Ia=gr<=0,Ur=gr>=tt,ya=Ye(ta,xa,Ia,Ur),Xa=function(){return{x:Zt?-gr:gr,y:Er}},Pa=(0,Ne.useRef)(Xa()),pa=(0,fe.zX)(function(Qn){if(gn){var xr=(0,ce.Z)((0,ce.Z)({},Xa()),Qn);(Pa.current.x!==xr.x||Pa.current.y!==xr.y)&&(gn(xr),Pa.current=xr)}});function kr(Qn,xr){var Sr=Qn;xr?((0,ct.flushSync)(function(){Vr(Sr)}),pa()):ft(Sr)}function Za(Qn){var xr=Qn.currentTarget.scrollTop;xr!==Er&&ft(xr),wn==null||wn(Qn),pa()}var Sa=function(xr){var Sr=xr,tr=tt?tt-Gn.width:0;return Sr=Math.max(Sr,0),Sr=Math.min(Sr,tr),Sr},la=(0,fe.zX)(function(Qn,xr){xr?((0,ct.flushSync)(function(){Vr(function(Sr){var tr=Sr+(Zt?-Qn:Qn);return Sa(tr)})}),pa()):ft(function(Sr){var tr=Sr+Qn;return tr})}),Kr=xt(Un,ta,xa,Ia,Ur,!!tt,la),Ya=(0,xe.Z)(Kr,2),Mi=Ya[0],ji=Ya[1];Qe(Un,xn,function(Qn,xr,Sr,tr){var $r=tr;return ya(Qn,xr,Sr)?!1:!$r||!$r._virtualHandled?($r&&($r._virtualHandled=!0),Mi({preventDefault:function(){},deltaX:Qn?xr:0,deltaY:Qn?0:xr}),!0):!1}),Se(Vn,xn,function(Qn){ft(function(xr){return xr+Qn})}),(0,je.Z)(function(){function Qn(Sr){var tr=ta&&Sr.detail<0,$r=xa&&Sr.detail>0;Un&&!tr&&!$r&&Sr.preventDefault()}var xr=xn.current;return xr.addEventListener("wheel",Mi,{passive:!1}),xr.addEventListener("DOMMouseScroll",ji,{passive:!0}),xr.addEventListener("MozMousePixelScroll",Qn,{passive:!1}),function(){xr.removeEventListener("wheel",Mi),xr.removeEventListener("DOMMouseScroll",ji),xr.removeEventListener("MozMousePixelScroll",Qn)}},[Un,ta,xa]),(0,je.Z)(function(){if(tt){var Qn=Sa(gr);Vr(Qn),pa({x:Qn})}},[Gn.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(xn,an,en,me,nt,function(){return Wt(!0)},ft,za);Ne.useImperativeHandle(ie,function(){return{nativeElement:Pn.current,getScrollInfo:Xa,scrollTo:function(xr){function Sr(tr){return tr&&(0,ve.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,je.Z)(function(){if(Rt){var Qn=an.slice(_t,Tt+1);Rt(Qn,an)}},[_t,Tt,an]);var pi=gt(an,nt,en,me),Wi=At==null?void 0:At({start:_t,end:Tt,virtual:Vn,offsetX:gr,offsetY:Kt,rtl:Zt,getSize:pi}),Ci=Ie(an,_t,Tt,tt,gr,wt,yt,Vt),ei=null;ae&&(ei=(0,ce.Z)((0,Le.Z)({},Ot?"height":"maxHeight",ae),bt),Un&&(ei.overflowY="hidden",tt&&(ei.overflowX="hidden"),Zn&&(ei.pointerEvents="none")));var Ar={};return Zt&&(Ar.dir="rtl"),Ne.createElement("div",(0,y.Z)({ref:Pn,style:(0,ce.Z)((0,ce.Z)({},at),{},{position:"relative"}),className:Xt},Ar,pn),Ne.createElement(De.Z,{onResize:hr},Ne.createElement(un,{className:"".concat(oe,"-holder"),style:ei,ref:xn,onScroll:Za,onMouseEnter:za},Ne.createElement(Te,{prefixCls:oe,height:It,offsetX:gr,offsetY:Kt,scrollWidth:tt,onInnerResize:Wt,ref:ln,innerProps:Ut,rtl:Zt,extra:Wi},Ci))),Vn&&It>ae&&Ne.createElement($t,{ref:Pr,prefixCls:oe,scrollOffset:Er,scrollRange:It,rtl:Zt,onScroll:kr,onStartMove:ur,onStopMove:Mt,spinSize:Cr,containerSize:Gn.height,style:Je==null?void 0:Je.verticalScrollBar,thumbStyle:Je==null?void 0:Je.verticalScrollBarThumb,showScrollBar:nn}),Vn&&tt>Gn.width&&Ne.createElement($t,{ref:Tr,prefixCls:oe,scrollOffset:gr,scrollRange:tt,rtl:Zt,onScroll:kr,onStartMove:ur,onStopMove:Mt,spinSize:Lr,containerSize:Gn.width,horizontal:!0,style:Je==null?void 0:Je.horizontalScrollBar,thumbStyle:Je==null?void 0:Je.horizontalScrollBarThumb,showScrollBar:nn}))}var mt=Ne.forwardRef(Ct);mt.displayName="List";var mn=mt,zt=mn},22061:function(Mn,Jt,E){"use strict";E.d(Jt,{Z5:function(){return Au},_l:function(){return ms},bK:function(){return rs}});var y=E(59301),ve=E(69168),ce=E(54476),Le=E(59781),xe=y.createContext(null),Ee=null;function Ce(te){te()}var ke=Ce,De=function(ne){return ke=ne},fe=function(){return ke};function je(){var te=fe(),ne=null,le=null;return{clear:function(){ne=null,le=null},notify:function(){te(function(){for(var $e=ne;$e;)$e.callback(),$e=$e.next})},get:function(){for(var $e=[],He=ne;He;)$e.push(He),He=He.next;return $e},subscribe:function($e){var He=!0,et=le={callback:$e,next:null,prev:le};return et.prev?et.prev.next=et:ne=et,function(){!He||ne===null||(He=!1,et.next?et.next.prev=et.prev:le=et.prev,et.prev?et.prev.next=et.next:ne=et.next)}}}}var Ne={notify:function(){},get:function(){return[]}};function ct(te,ne){var le,he=Ne;function $e(sn){return tn(),he.subscribe(sn)}function He(){he.notify()}function et(){bn.onStateChange&&bn.onStateChange()}function dt(){return!!le}function tn(){le||(le=ne?ne.addNestedSub(et):te.subscribe(et),he=je())}function Cn(){le&&(le(),le=void 0,he.clear(),he=Ne)}var bn={addNestedSub:$e,notifyNestedSubs:He,handleChangeWrapper:et,isSubscribed:dt,trySubscribe:tn,tryUnsubscribe:Cn,getListeners:function(){return he}};return bn}var Ke=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect;function Te(te){var ne=te.store,le=te.context,he=te.children,$e=(0,y.useMemo)(function(){var dt=ct(ne);return{store:ne,subscription:dt}},[ne]),He=(0,y.useMemo)(function(){return ne.getState()},[ne]);Ke(function(){var dt=$e.subscription;return dt.onStateChange=dt.notifyNestedSubs,dt.trySubscribe(),He!==ne.getState()&&dt.notifyNestedSubs(),function(){dt.tryUnsubscribe(),dt.onStateChange=null}},[$e,He]);var et=le||xe;return y.createElement(et.Provider,{value:$e},he)}var we=Te,Ie=E(85377),Pe=E(94266),rt=E.n(Pe),Et=E(53410),Oe=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Ae=["reactReduxForwardedRef"],Ve=[],Ye=[null,null],xt=function(ne){try{return JSON.stringify(ne)}catch(le){return String(ne)}};function gt(te,ne){var le=te[1];return[ne.payload,le+1]}function lt(te,ne,le){Ke(function(){return te.apply(void 0,ne)},le)}function Ue(te,ne,le,he,$e,He,et){te.current=he,ne.current=$e,le.current=!1,He.current&&(He.current=null,et())}function be(te,ne,le,he,$e,He,et,dt,tn,Cn){if(te){var bn=!1,sn=null,fn=function(){if(!bn){var va=ne.getState(),Na,ka;try{Na=he(va,$e.current)}catch(oi){ka=oi,sn=oi}ka||(sn=null),Na===He.current?et.current||tn():(He.current=Na,dt.current=Na,et.current=!0,Cn({type:"STORE_UPDATED",payload:{error:ka}}))}};le.onStateChange=fn,le.trySubscribe(),fn();var An=function(){if(bn=!0,le.tryUnsubscribe(),le.onStateChange=null,sn)throw sn};return An}}var We=function(){return[null,0]};function Be(te,ne){ne===void 0&&(ne={});var le=ne,he=le.getDisplayName,$e=he===void 0?function(ho){return"ConnectAdvanced("+ho+")"}:he,He=le.methodName,et=He===void 0?"connectAdvanced":He,dt=le.renderCountProp,tn=dt===void 0?void 0:dt,Cn=le.shouldHandleStateChanges,bn=Cn===void 0?!0:Cn,sn=le.storeKey,fn=sn===void 0?"store":sn,An=le.withRef,sr=An===void 0?!1:An,va=le.forwardRef,Na=va===void 0?!1:va,ka=le.context,oi=ka===void 0?xe:ka,Fi=(0,Ie.Z)(le,Oe);if(0)var Ti;var xo=oi;return function(Zo){var Hl=Zo.displayName||Zo.name||"Component",Ho=$e(Hl),Vl=(0,ce.Z)({},Fi,{getDisplayName:$e,methodName:et,renderCountProp:tn,shouldHandleStateChanges:bn,storeKey:fn,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,Ie.Z)(vs,Ae);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,Et.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(!bn)return Ye;var yc=ct(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)(gt,Ve,We),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]);lt(Ue,[$c,Vc,Kc,Ju,jc,_c,Ac]),lt(be,[bn,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 bn?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,Na){var su=y.forwardRef(function(Mu,uu){return y.createElement(Zs,(0,ce.Z)({},Mu,{reactReduxForwardedRef:uu}))});return su.displayName=Ho,su.WrappedComponent=Zo,rt()(su,Zo)}return rt()(Zs,Zo)}}function de(te,ne){return te===ne?te!==0||ne!==0||1/te===1/ne:te!==te&&ne!==ne}function St(te,ne){if(de(te,ne))return!0;if(typeof te!="object"||te===null||typeof ne!="object"||ne===null)return!1;var le=Object.keys(te),he=Object.keys(ne);if(le.length!==he.length)return!1;for(var $e=0;$e<le.length;$e++)if(!Object.prototype.hasOwnProperty.call(ne,le[$e])||!de(te[le[$e]],ne[le[$e]]))return!1;return!0}function Qe(te,ne){var le={},he=function(et){var dt=te[et];typeof dt=="function"&&(le[et]=function(){return ne(dt.apply(void 0,arguments))})};for(var $e in te)he($e);return le}function ze(te){return function(le,he){var $e=te(le,he);function He(){return $e}return He.dependsOnOwnProps=!1,He}}function st(te){return te.dependsOnOwnProps!==null&&te.dependsOnOwnProps!==void 0?!!te.dependsOnOwnProps:te.length!==1}function Se(te,ne){return function(he,$e){var He=$e.displayName,et=function(tn,Cn){return et.dependsOnOwnProps?et.mapToProps(tn,Cn):et.mapToProps(tn)};return et.dependsOnOwnProps=!0,et.mapToProps=function(tn,Cn){et.mapToProps=te,et.dependsOnOwnProps=st(te);var bn=et(tn,Cn);return typeof bn=="function"&&(et.mapToProps=bn,et.dependsOnOwnProps=st(bn),bn=et(tn,Cn)),bn},et}}function ye(te){return typeof te=="function"?Se(te,"mapDispatchToProps"):void 0}function vt(te){return te?void 0:ze(function(ne){return{dispatch:ne}})}function Ht(te){return te&&typeof te=="object"?ze(function(ne){return Qe(te,ne)}):void 0}var $t=[ye,vt,Ht];function Fe(te){return typeof te=="function"?Se(te,"mapStateToProps"):void 0}function pt(te){return te?void 0:ze(function(){return{}})}var ut=[Fe,pt];function Yt(te,ne,le){return(0,ce.Z)({},le,te,ne)}function bt(te){return function(le,he){var $e=he.displayName,He=he.pure,et=he.areMergedPropsEqual,dt=!1,tn;return function(bn,sn,fn){var An=te(bn,sn,fn);return dt?(!He||!et(An,tn))&&(tn=An):(dt=!0,tn=An),tn}}}function Ct(te){return typeof te=="function"?bt(te):void 0}function mt(te){return te?void 0:function(){return Yt}}var mn=[Ct,mt],zt=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ue(te,ne,le,he){return function(He,et){return le(te(He,et),ne(he,et),et)}}function ie(te,ne,le,he,$e){var He=$e.areStatesEqual,et=$e.areOwnPropsEqual,dt=$e.areStatePropsEqual,tn=!1,Cn,bn,sn,fn,An;function sr(Fi,Ti){return Cn=Fi,bn=Ti,sn=te(Cn,bn),fn=ne(he,bn),An=le(sn,fn,bn),tn=!0,An}function va(){return sn=te(Cn,bn),ne.dependsOnOwnProps&&(fn=ne(he,bn)),An=le(sn,fn,bn),An}function Na(){return te.dependsOnOwnProps&&(sn=te(Cn,bn)),ne.dependsOnOwnProps&&(fn=ne(he,bn)),An=le(sn,fn,bn),An}function ka(){var Fi=te(Cn,bn),Ti=!dt(Fi,sn);return sn=Fi,Ti&&(An=le(sn,fn,bn)),An}function oi(Fi,Ti){var xo=!et(Ti,bn),ho=!He(Fi,Cn,Ti,bn);return Cn=Fi,bn=Ti,xo&&ho?va():xo?Na():ho?ka():An}return function(Ti,xo){return tn?oi(Ti,xo):sr(Ti,xo)}}function re(te,ne){var le=ne.initMapStateToProps,he=ne.initMapDispatchToProps,$e=ne.initMergeProps,He=(0,Ie.Z)(ne,zt),et=le(te,He),dt=he(te,He),tn=$e(te,He),Cn=He.pure?ie:ue;return Cn(et,dt,tn,te,He)}var oe=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function pe(te,ne,le){for(var he=ne.length-1;he>=0;he--){var $e=ne[he](te);if($e)return $e}return function(He,et){throw new Error("Invalid value of type "+typeof te+" for "+le+" argument when connecting component "+et.wrappedComponentName+".")}}function ae(te,ne){return te===ne}function me(te){var ne=te===void 0?{}:te,le=ne.connectHOC,he=le===void 0?Be:le,$e=ne.mapStateToPropsFactories,He=$e===void 0?ut:$e,et=ne.mapDispatchToPropsFactories,dt=et===void 0?$t:et,tn=ne.mergePropsFactories,Cn=tn===void 0?mn:tn,bn=ne.selectorFactory,sn=bn===void 0?re:bn;return function(An,sr,va,Na){Na===void 0&&(Na={});var ka=Na,oi=ka.pure,Fi=oi===void 0?!0:oi,Ti=ka.areStatesEqual,xo=Ti===void 0?ae:Ti,ho=ka.areOwnPropsEqual,Zo=ho===void 0?St:ho,Hl=ka.areStatePropsEqual,Ho=Hl===void 0?St:Hl,Vl=ka.areMergedPropsEqual,us=Vl===void 0?St:Vl,hs=(0,Ie.Z)(ka,oe),lu=pe(An,He,"mapStateToProps"),qs=pe(sr,dt,"mapDispatchToProps"),Zs=pe(va,Cn,"mergeProps");return he(sn,(0,ce.Z)({methodName:"connect",getDisplayName:function(vs){return"Connect("+vs+")"},shouldHandleStateChanges:!!An,initMapStateToProps:lu,initMapDispatchToProps:qs,initMergeProps:Zs,pure:Fi,areStatesEqual:xo,areOwnPropsEqual:Zo,areStatePropsEqual:Ho,areMergedPropsEqual:us},hs))}}var Ze=me();function Ot(){var te=useContext(ReactReduxContext);return te}function at(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(){var he=ne(),$e=he.store;return $e}}var qe=null;function yt(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultStore:createStoreHook(te);return function(){var he=ne();return he.dispatch}}var Ft=null,jt=function(ne,le){return ne===le};function Xe(te,ne,le,he){var $e=useReducer(function(sr){return sr+1},0),He=$e[1],et=useMemo(function(){return createSubscription(le,he)},[le,he]),dt=useRef(),tn=useRef(),Cn=useRef(),bn=useRef(),sn=le.getState(),fn;try{if(te!==tn.current||sn!==Cn.current||dt.current){var An=te(sn);bn.current===void 0||!ne(An,bn.current)?fn=An:fn=bn.current}else fn=bn.current}catch(sr){throw dt.current&&(sr.message+=`
The error may be correlated with this previous error:
`+dt.current.stack+`
`),sr}return useIsomorphicLayoutEffect(function(){tn.current=te,Cn.current=sn,bn.current=fn,dt.current=void 0}),useIsomorphicLayoutEffect(function(){function sr(){try{var va=le.getState();if(va===Cn.current)return;var Na=tn.current(va);if(ne(Na,bn.current))return;bn.current=Na,Cn.current=va}catch(ka){dt.current=ka}He()}return et.onStateChange=sr,et.trySubscribe(),sr(),function(){return et.tryUnsubscribe()}},[le,et]),fn}function tt(te){te===void 0&&(te=ReactReduxContext);var ne=te===ReactReduxContext?useDefaultReduxContext:function(){return useContext(te)};return function(he,$e){$e===void 0&&($e=jt);var He=ne(),et=He.store,dt=He.subscription,tn=Xe(he,$e,et,dt);return useDebugValue(tn),tn}}var Gt=null,un=E(4676);De(un.unstable_batchedUpdates);function wn(te,ne){if(te.length!==ne.length)return!1;for(var le=0;le<te.length;le++)if(te[le]!==ne[le])return!1;return!0}function gn(te,ne){var le=(0,y.useState)(function(){return{inputs:ne,result:te()}})[0],he=(0,y.useRef)(!0),$e=(0,y.useRef)(le),He=he.current||!!(ne&&$e.current.inputs&&wn(ne,$e.current.inputs)),et=He?$e.current:{inputs:ne,result:te()};return(0,y.useEffect)(function(){he.current=!1,$e.current=et},[et]),et.result}function Rt(te,ne){return gn(function(){return te},ne)}var Ut=gn,At=Rt,Je=!0,Pt="Invariant failed";function nn(te,ne){if(!te){if(Je)throw new Error(Pt);var le=typeof ne=="function"?ne():ne,he=le?"".concat(Pt,": ").concat(le):Pt;throw new Error(he)}}var pn=function(ne){var le=ne.top,he=ne.right,$e=ne.bottom,He=ne.left,et=he-He,dt=$e-le,tn={top:le,right:he,bottom:$e,left:He,width:et,height:dt,x:He,y:le,center:{x:(he+He)/2,y:($e+le)/2}};return tn},nt=function(ne,le){return{top:ne.top-le.top,left:ne.left-le.left,bottom:ne.bottom+le.bottom,right:ne.right+le.right}},Nt=function(ne,le){return{top:ne.top+le.top,left:ne.left+le.left,bottom:ne.bottom-le.bottom,right:ne.right-le.right}},qt=function(ne,le){return{top:ne.top+le.y,left:ne.left+le.x,bottom:ne.bottom+le.y,right:ne.right+le.x}},wt={top:0,right:0,bottom:0,left:0},Wt=function(ne){var le=ne.borderBox,he=ne.margin,$e=he===void 0?wt:he,He=ne.border,et=He===void 0?wt:He,dt=ne.padding,tn=dt===void 0?wt:dt,Cn=pn(nt(le,$e)),bn=pn(Nt(le,et)),sn=pn(Nt(bn,tn));return{marginBox:Cn,borderBox:pn(le),paddingBox:bn,contentBox:sn,margin:$e,border:et,padding:tn}},en=function(ne){var le=ne.slice(0,-2),he=ne.slice(-2);if(he!=="px")return 0;var $e=Number(le);return isNaN($e)&&nn(!1),$e},_n=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Un=function(ne,le){var he=ne.borderBox,$e=ne.border,He=ne.margin,et=ne.padding,dt=qt(he,le);return Wt({borderBox:dt,border:$e,margin:He,padding:et})},On=function(ne,le){return le===void 0&&(le=_n()),Un(ne,le)},Vn=function(ne,le){var he={top:en(le.marginTop),right:en(le.marginRight),bottom:en(le.marginBottom),left:en(le.marginLeft)},$e={top:en(le.paddingTop),right:en(le.paddingRight),bottom:en(le.paddingBottom),left:en(le.paddingLeft)},He={top:en(le.borderTopWidth),right:en(le.borderRightWidth),bottom:en(le.borderBottomWidth),left:en(le.borderLeftWidth)};return Wt({borderBox:ne,margin:he,padding:$e,border:He})},Zt=function(ne){var le=ne.getBoundingClientRect(),he=window.getComputedStyle(ne);return Vn(le,he)},Xt=Number.isNaN||function(ne){return typeof ne=="number"&&ne!==ne};function an(te,ne){return!!(te===ne||Xt(te)&&Xt(ne))}function xn(te,ne){if(te.length!==ne.length)return!1;for(var le=0;le<te.length;le++)if(!an(te[le],ne[le]))return!1;return!0}function ln(te,ne){ne===void 0&&(ne=xn);var le,he=[],$e,He=!1;function et(){for(var dt=[],tn=0;tn<arguments.length;tn++)dt[tn]=arguments[tn];return He&&le===this&&ne(dt,he)||($e=te.apply(this,dt),He=!0,le=this,he=dt),$e}return et}var Pn=ln,Sn=function(ne){var le=[],he=null,$e=function(){for(var et=arguments.length,dt=new Array(et),tn=0;tn<et;tn++)dt[tn]=arguments[tn];le=dt,!he&&(he=requestAnimationFrame(function(){he=null,ne.apply(void 0,le)}))};return $e.cancel=function(){he&&(cancelAnimationFrame(he),he=null)},$e},Rn=Sn,Er=!0,Jn=/[ \t]{2,}/g,dr=/^[ \t]*/gm,yr=function(ne){return ne.replace(Jn," ").replace(dr,"").trim()},gr=function(ne){return yr(`
%creact-beautiful-dnd
%c`+yr(ne)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},Vr=function(ne){return[gr(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Zr="__react-beautiful-dnd-disable-dev-warnings";function Dn(te,ne){var le;Er||typeof window!="undefined"&&window[Zr]||(le=console)[te].apply(le,Vr(ne))}var Zn=Dn.bind(null,"warn"),fr=Dn.bind(null,"error");function ur(){}function Mt(te,ne){return(0,ce.Z)({},te,{},ne)}function Vt(te,ne,le){var he=ne.map(function($e){var He=Mt(le,$e.options);return te.addEventListener($e.eventName,$e.fn,He),function(){te.removeEventListener($e.eventName,$e.fn,He)}});return function(){he.forEach(function(He){He()})}}var ft=!0,kt="Invariant failed";function it(te){this.message=te}it.prototype.toString=function(){return this.message};function ht(te,ne){if(!te)throw ft?new it(kt):new it(kt+": "+(ne||""))}var cn=function(te){(0,ve.Z)(ne,te);function ne(){for(var he,$e=arguments.length,He=new Array($e),et=0;et<$e;et++)He[et]=arguments[et];return he=te.call.apply(te,[this].concat(He))||this,he.callbacks=null,he.unbind=ur,he.onWindowError=function(dt){var tn=he.getCallbacks();tn.isDragging()&&tn.tryAbort();var Cn=dt.error;Cn instanceof it&&dt.preventDefault()},he.getCallbacks=function(){if(!he.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return he.callbacks},he.setCallbacks=function(dt){he.callbacks=dt},he}var le=ne.prototype;return le.componentDidMount=function(){this.unbind=Vt(window,[{eventName:"error",fn:this.onWindowError}])},le.componentWillUnmount=function(){this.unbind()},le.componentDidCatch=function($e){if($e instanceof it){this.setState({});return}throw $e},le.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},It=function(ne){return`
You have lifted an item in position `+mr(ne.source.index)+`
`},_t=function(ne,le){var he=ne.droppableId===le.droppableId,$e=mr(ne.index),He=mr(le.index);return he?`
You have moved the item from position `+$e+`
to position `+He+`
`:`
You have moved the item from position `+$e+`
in list `+ne.droppableId+`
to list `+le.droppableId+`
in position `+He+`
`},Tt=function(ne,le,he){var $e=le.droppableId===he.droppableId;return $e?`
The item `+ne+`
has been combined with `+he.draggableId:`
The item `+ne+`
in list `+le.droppableId+`
has been combined with `+he.draggableId+`
in list `+he.droppableId+`
`},Kt=function(ne){var le=ne.destination;if(le)return _t(ne.source,le);var he=ne.combine;return he?Tt(ne.draggableId,ne.source,he):"You are over an area that cannot be dropped on"},Fn=function(ne){return`
The item has returned to its starting position
of `+mr(ne.index)+`
`},Hn=function(ne){if(ne.reason==="CANCEL")return`
Movement cancelled.
`+Fn(ne.source)+`
`;var le=ne.destination,he=ne.combine;return le?`
You have dropped the item.
`+_t(ne.source,le)+`
`:he?`
You have dropped the item.
`+Tt(ne.draggableId,ne.source,he)+`
`:`
The item has been dropped while not over a drop area.
`+Fn(ne.source)+`
`},Gn={dragHandleUsageInstructions:ar,onDragStart:It,onDragUpdate:Kt,onDragEnd:Hn},jn={x:0,y:0},hr=function(ne,le){return{x:ne.x+le.x,y:ne.y+le.y}},Pr=function(ne,le){return{x:ne.x-le.x,y:ne.y-le.y}},Tr=function(ne,le){return ne.x===le.x&&ne.y===le.y},Lr=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},Cr=function(ne,le,he){var $e;return he===void 0&&(he=0),$e={},$e[ne]=le,$e[ne==="x"?"y":"x"]=he,$e},Rr=function(ne,le){return Math.sqrt(Math.pow(le.x-ne.x,2)+Math.pow(le.y-ne.y,2))},Xr=function(ne,le){return Math.min.apply(Math,le.map(function(he){return Rr(ne,he)}))},oa=function(ne){return function(le){return{x:ne(le.x),y:ne(le.y)}}},ta=function(te,ne){var le=pn({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 le.width<=0||le.height<=0?null:le},xa=function(ne,le){return{top:ne.top+le.y,left:ne.left+le.x,bottom:ne.bottom+le.y,right:ne.right+le.x}},Ia=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,le){return le?xa(ne,le.scroll.diff.displacement):ne},Xa=function(ne,le,he){if(he&&he.increasedBy){var $e;return(0,ce.Z)({},ne,($e={},$e[le.end]=ne[le.end]+he.increasedBy[le.line],$e))}return ne},Pa=function(ne,le){return le&&le.shouldClipSubject?ta(le.pageMarginBox,ne):pn(ne)},pa=function(te){var ne=te.page,le=te.withPlaceholder,he=te.axis,$e=te.frame,He=ya(ne.marginBox,$e),et=Xa(He,he,le),dt=Pa(et,$e);return{page:ne,withPlaceholder:le,active:dt}},kr=function(te,ne){te.frame||ht(!1);var le=te.frame,he=Pr(ne,le.scroll.initial),$e=Lr(he),He=(0,ce.Z)({},le,{scroll:{initial:le.scroll.initial,current:ne,diff:{value:he,displacement:$e},max:le.scroll.max}}),et=pa({page:te.subject.page,withPlaceholder:te.subject.withPlaceholder,axis:te.axis,frame:He}),dt=(0,ce.Z)({},te,{frame:He,subject:et});return dt};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 le=0;le<te.length;le++)if(ne(te[le]))return le;return-1}function Kr(te,ne){if(te.find)return te.find(ne);var le=la(te,ne);if(le!==-1)return te[le]}function Ya(te){return Array.prototype.slice.call(te)}var Mi=Pn(function(te){return te.reduce(function(ne,le){return ne[le.descriptor.id]=le,ne},{})}),ji=Pn(function(te){return te.reduce(function(ne,le){return ne[le.descriptor.id]=le,ne},{})}),za=Pn(function(te){return Sa(te)}),Di=Pn(function(te){return Sa(te)}),pi=Pn(function(te,ne){var le=Di(ne).filter(function(he){return te===he.descriptor.droppableId}).sort(function(he,$e){return he.descriptor.index-$e.descriptor.index});return le});function Wi(te){return te.at&&te.at.type==="REORDER"?te.at.destination:null}function Ci(te){return te.at&&te.at.type==="COMBINE"?te.at.combine:null}var ei=Pn(function(te,ne){return ne.filter(function(le){return le.descriptor.id!==te.descriptor.id})}),Ar=function(te){var ne=te.isMovingForward,le=te.draggable,he=te.destination,$e=te.insideDestination,He=te.previousImpact;if(!he.isCombineEnabled)return null;var et=Wi(He);if(!et)return null;function dt(va){var Na={type:"COMBINE",combine:{draggableId:va,droppableId:he.descriptor.id}};return(0,ce.Z)({},He,{at:Na})}var tn=He.displaced.all,Cn=tn.length?tn[0]:null;if(ne)return Cn?dt(Cn):null;var bn=ei(le,$e);if(!Cn){if(!bn.length)return null;var sn=bn[bn.length-1];return dt(sn.descriptor.id)}var fn=la(bn,function(va){return va.descriptor.id===Cn});fn===-1&&ht(!1);var An=fn-1;if(An<0)return null;var sr=bn[An];return dt(sr.descriptor.id)},Qn=function(te,ne){return te.descriptor.droppableId===ne.descriptor.id},xr={point:jn,value:0},Sr={invisible:{},visible:{},all:[]},tr={displaced:Sr,displacedBy:xr,at:null},$r=function(te,ne){return function(le){return te<=le&&le<=ne}},sa=function(te){var ne=$r(te.top,te.bottom),le=$r(te.left,te.right);return function(he){var $e=ne(he.top)&&ne(he.bottom)&&le(he.left)&&le(he.right);if($e)return!0;var He=ne(he.top)||ne(he.bottom),et=le(he.left)||le(he.right),dt=He&&et;if(dt)return!0;var tn=he.top<te.top&&he.bottom>te.bottom,Cn=he.left<te.left&&he.right>te.right,bn=tn&&Cn;if(bn)return!0;var sn=tn&&et||Cn&&He;return sn}},br=function(te){var ne=$r(te.top,te.bottom),le=$r(te.left,te.right);return function(he){var $e=ne(he.top)&&ne(he.bottom)&&le(he.left)&&le(he.right);return $e}},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 le=$r(ne.top,ne.bottom),he=$r(ne.left,ne.right);return function($e){return te===Dr?le($e.top)&&le($e.bottom):he($e.left)&&he($e.right)}}},_a=function(ne,le){var he=le.frame?le.frame.scroll.diff.displacement:jn;return xa(ne,he)},$a=function(ne,le,he){return le.subject.active?he(le.subject.active)(ne):!1},ea=function(ne,le,he){return he(le)(ne)},ai=function(ne){var le=ne.target,he=ne.destination,$e=ne.viewport,He=ne.withDroppableDisplacement,et=ne.isVisibleThroughFrameFn,dt=He?_a(le,he):le;return $a(dt,he,et)&&ea(dt,$e,et)},yi=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:sa}))},zi=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:br}))},Ui=function(ne){return ai((0,ce.Z)({},ne,{isVisibleThroughFrameFn:Qr(ne.destination.axis)}))},Ji=function(ne,le,he){if(typeof he=="boolean")return he;if(!le)return!0;var $e=le.invisible,He=le.visible;if($e[ne])return!1;var et=He[ne];return et?et.shouldAnimate:!0};function Yi(te,ne){var le=te.page.marginBox,he={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return pn(nt(le,he))}function co(te){var ne=te.afterDragging,le=te.destination,he=te.displacedBy,$e=te.viewport,He=te.forceShouldAnimate,et=te.last;return ne.reduce(function(tn,Cn){var bn=Yi(Cn,he),sn=Cn.descriptor.id;tn.all.push(sn);var fn=yi({target:bn,destination:le,viewport:$e,withDroppableDisplacement:!0});if(!fn)return tn.invisible[Cn.descriptor.id]=!0,tn;var An=Ji(sn,et,He),sr={draggableId:sn,shouldAnimate:An};return tn.visible[sn]=sr,tn},{all:[],visible:{},invisible:{}})}function No(te,ne){if(!te.length)return 0;var le=te[te.length-1].descriptor.index;return ne.inHomeList?le:le+1}function $o(te){var ne=te.insideDestination,le=te.inHomeList,he=te.displacedBy,$e=te.destination,He=No(ne,{inHomeList:le});return{displaced:Sr,displacedBy:he,at:{type:"REORDER",destination:{droppableId:$e.descriptor.id,index:He}}}}function Wo(te){var ne=te.draggable,le=te.insideDestination,he=te.destination,$e=te.viewport,He=te.displacedBy,et=te.last,dt=te.index,tn=te.forceShouldAnimate,Cn=Qn(ne,he);if(dt==null)return $o({insideDestination:le,inHomeList:Cn,displacedBy:He,destination:he});var bn=Kr(le,function(va){return va.descriptor.index===dt});if(!bn)return $o({insideDestination:le,inHomeList:Cn,displacedBy:He,destination:he});var sn=ei(ne,le),fn=le.indexOf(bn),An=sn.slice(fn),sr=co({afterDragging:An,destination:he,displacedBy:He,last:et,viewport:$e.frame,forceShouldAnimate:tn});return{displaced:sr,displacedBy:He,at:{type:"REORDER",destination:{droppableId:he.descriptor.id,index:dt}}}}function Da(te,ne){return!!ne.effected[te]}var Ii=function(te){var ne=te.isMovingForward,le=te.destination,he=te.draggables,$e=te.combine,He=te.afterCritical;if(!le.isCombineEnabled)return null;var et=$e.draggableId,dt=he[et],tn=dt.descriptor.index,Cn=Da(et,He);return Cn?ne?tn:tn-1:ne?tn+1:tn},ri=function(te){var ne=te.isMovingForward,le=te.isInHomeList,he=te.insideDestination,$e=te.location;if(!he.length)return null;var He=$e.index,et=ne?He+1:He-1,dt=he[0].descriptor.index,tn=he[he.length-1].descriptor.index,Cn=le?tn:tn+1;return et<dt||et>Cn?null:et},So=function(te){var ne=te.isMovingForward,le=te.isInHomeList,he=te.draggable,$e=te.draggables,He=te.destination,et=te.insideDestination,dt=te.previousImpact,tn=te.viewport,Cn=te.afterCritical,bn=dt.at;if(bn||ht(!1),bn.type==="REORDER"){var sn=ri({isMovingForward:ne,isInHomeList:le,location:bn.destination,insideDestination:et});return sn==null?null:Wo({draggable:he,insideDestination:et,destination:He,viewport:tn,last:dt.displaced,displacedBy:dt.displacedBy,index:sn})}var fn=Ii({isMovingForward:ne,destination:He,displaced:dt.displaced,draggables:$e,combine:bn.combine,afterCritical:Cn});return fn==null?null:Wo({draggable:he,insideDestination:et,destination:He,viewport:tn,last:dt.displaced,displacedBy:dt.displacedBy,index:fn})},di=function(te){var ne=te.displaced,le=te.afterCritical,he=te.combineWith,$e=te.displacedBy,He=!!(ne.visible[he]||ne.invisible[he]);return Da(he,le)?He?jn:Lr($e.point):He?$e.point:jn},il=function(te){var ne=te.afterCritical,le=te.impact,he=te.draggables,$e=Ci(le);$e||ht(!1);var He=$e.draggableId,et=he[He].page.borderBox.center,dt=di({displaced:le.displaced,afterCritical:ne,combineWith:He,displacedBy:le.displacedBy});return hr(et,dt)},$l=function(ne,le){return le.margin[ne.start]+le.borderBox[ne.size]/2},Al=function(ne,le){return le.margin[ne.end]+le.borderBox[ne.size]/2},Vo=function(ne,le,he){return le[ne.crossAxisStart]+he.margin[ne.crossAxisStart]+he.borderBox[ne.crossAxisSize]/2},Yo=function(ne){var le=ne.axis,he=ne.moveRelativeTo,$e=ne.isMoving;return Cr(le.line,he.marginBox[le.end]+$l(le,$e),Vo(le,he.marginBox,$e))},no=function(ne){var le=ne.axis,he=ne.moveRelativeTo,$e=ne.isMoving;return Cr(le.line,he.marginBox[le.start]-Al(le,$e),Vo(le,he.marginBox,$e))},Ol=function(ne){var le=ne.axis,he=ne.moveInto,$e=ne.isMoving;return Cr(le.line,he.contentBox[le.start]+$l(le,$e),Vo(le,he.contentBox,$e))},Ul=function(te){var ne=te.impact,le=te.draggable,he=te.draggables,$e=te.droppable,He=te.afterCritical,et=pi($e.descriptor.id,he),dt=le.page,tn=$e.axis;if(!et.length)return Ol({axis:tn,moveInto:$e.page,isMoving:dt});var Cn=ne.displaced,bn=ne.displacedBy,sn=Cn.all[0];if(sn){var fn=he[sn];if(Da(sn,He))return no({axis:tn,moveRelativeTo:fn.page,isMoving:dt});var An=Un(fn.page,bn.point);return no({axis:tn,moveRelativeTo:An,isMoving:dt})}var sr=et[et.length-1];if(sr.descriptor.id===le.descriptor.id)return dt.borderBox.center;if(Da(sr.descriptor.id,He)){var va=Un(sr.page,Lr(He.displacedBy.point));return Yo({axis:tn,moveRelativeTo:va,isMoving:dt})}return Yo({axis:tn,moveRelativeTo:sr.page,isMoving:dt})},Nl=function(te,ne){var le=te.frame;return le?hr(ne,le.scroll.diff.displacement):ne},Io=function(ne){var le=ne.impact,he=ne.draggable,$e=ne.droppable,He=ne.draggables,et=ne.afterCritical,dt=he.page.borderBox.center,tn=le.at;return!$e||!tn?dt:tn.type==="REORDER"?Ul({impact:le,draggable:he,draggables:He,droppable:$e,afterCritical:et}):il({impact:le,draggables:He,afterCritical:et})},es=function(te){var ne=Io(te),le=te.droppable,he=le?Nl(le,ne):ne;return he},as=function(te,ne){var le=Pr(ne,te.scroll.initial),he=Lr(le),$e=pn({top:ne.y,bottom:ne.y+te.frame.height,left:ne.x,right:ne.x+te.frame.width}),He={frame:$e,scroll:{initial:te.scroll.initial,max:te.scroll.max,current:ne,diff:{value:le,displacement:he}}};return He};function Ni(te,ne){return te.map(function(le){return ne[le]})}function Qi(te,ne){for(var le=0;le<ne.length;le++){var he=ne[le].visible[te];if(he)return he}return null}var Pi=function(te){var ne=te.impact,le=te.viewport,he=te.destination,$e=te.draggables,He=te.maxScrollChange,et=as(le,hr(le.scroll.current,He)),dt=he.frame?kr(he,hr(he.frame.scroll.current,He)):he,tn=ne.displaced,Cn=co({afterDragging:Ni(tn.all,$e),destination:he,displacedBy:ne.displacedBy,viewport:et.frame,last:tn,forceShouldAnimate:!1}),bn=co({afterDragging:Ni(tn.all,$e),destination:dt,displacedBy:ne.displacedBy,viewport:le.frame,last:tn,forceShouldAnimate:!1}),sn={},fn={},An=[tn,Cn,bn];tn.all.forEach(function(va){var Na=Qi(va,An);if(Na){fn[va]=Na;return}sn[va]=!0});var sr=(0,ce.Z)({},ne,{displaced:{all:tn.all,invisible:sn,visible:fn}});return sr},hi=function(te,ne){return hr(te.scroll.diff.displacement,ne)},Hi=function(te){var ne=te.pageBorderBoxCenter,le=te.draggable,he=te.viewport,$e=hi(he,ne),He=Pr($e,le.page.borderBox.center);return hr(le.client.borderBox.center,He)},uo=function(te){var ne=te.draggable,le=te.destination,he=te.newPageBorderBoxCenter,$e=te.viewport,He=te.withDroppableDisplacement,et=te.onlyOnMainAxis,dt=et===void 0?!1:et,tn=Pr(he,ne.page.borderBox.center),Cn=xa(ne.page.borderBox,tn),bn={target:Cn,destination:le,withDroppableDisplacement:He,viewport:$e};return dt?Ui(bn):zi(bn)},Il=function(te){var ne=te.isMovingForward,le=te.draggable,he=te.destination,$e=te.draggables,He=te.previousImpact,et=te.viewport,dt=te.previousPageBorderBoxCenter,tn=te.previousClientSelection,Cn=te.afterCritical;if(!he.isEnabled)return null;var bn=pi(he.descriptor.id,$e),sn=Qn(le,he),fn=Ar({isMovingForward:ne,draggable:le,destination:he,insideDestination:bn,previousImpact:He})||So({isMovingForward:ne,isInHomeList:sn,draggable:le,draggables:$e,destination:he,insideDestination:bn,previousImpact:He,viewport:et,afterCritical:Cn});if(!fn)return null;var An=es({impact:fn,draggable:le,droppable:he,draggables:$e,afterCritical:Cn}),sr=uo({draggable:le,destination:he,newPageBorderBoxCenter:An,viewport:et.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(sr){var va=Hi({pageBorderBoxCenter:An,draggable:le,viewport:et});return{clientSelection:va,impact:fn,scrollJumpRequest:null}}var Na=Pr(An,dt),ka=Pi({impact:fn,viewport:et,destination:he,draggables:$e,maxScrollChange:Na});return{clientSelection:tn,impact:ka,scrollJumpRequest:Na}},oo=function(ne){var le=ne.subject.active;return le||ht(!1),le},Qo=function(te){var ne=te.isMovingForward,le=te.pageBorderBoxCenter,he=te.source,$e=te.droppables,He=te.viewport,et=he.subject.active;if(!et)return null;var dt=he.axis,tn=$r(et[dt.start],et[dt.end]),Cn=za($e).filter(function(sn){return sn!==he}).filter(function(sn){return sn.isEnabled}).filter(function(sn){return!!sn.subject.active}).filter(function(sn){return sa(He.frame)(oo(sn))}).filter(function(sn){var fn=oo(sn);return ne?et[dt.crossAxisEnd]<fn[dt.crossAxisEnd]:fn[dt.crossAxisStart]<et[dt.crossAxisStart]}).filter(function(sn){var fn=oo(sn),An=$r(fn[dt.start],fn[dt.end]);return tn(fn[dt.start])||tn(fn[dt.end])||An(et[dt.start])||An(et[dt.end])}).sort(function(sn,fn){var An=oo(sn)[dt.crossAxisStart],sr=oo(fn)[dt.crossAxisStart];return ne?An-sr:sr-An}).filter(function(sn,fn,An){return oo(sn)[dt.crossAxisStart]===oo(An[0])[dt.crossAxisStart]});if(!Cn.length)return null;if(Cn.length===1)return Cn[0];var bn=Cn.filter(function(sn){var fn=$r(oo(sn)[dt.start],oo(sn)[dt.end]);return fn(le[dt.line])});return bn.length===1?bn[0]:bn.length>1?bn.sort(function(sn,fn){return oo(sn)[dt.start]-oo(fn)[dt.start]})[0]:Cn.sort(function(sn,fn){var An=Xr(le,Ia(oo(sn))),sr=Xr(le,Ia(oo(fn)));return An!==sr?An-sr:oo(sn)[dt.start]-oo(fn)[dt.start]})[0]},Jo=function(ne,le){var he=ne.page.borderBox.center;return Da(ne.descriptor.id,le)?Pr(he,le.displacedBy.point):he},vn=function(ne,le){var he=ne.page.borderBox;return Da(ne.descriptor.id,le)?xa(he,Lr(le.displacedBy.point)):he},yn=function(te){var ne=te.pageBorderBoxCenter,le=te.viewport,he=te.destination,$e=te.insideDestination,He=te.afterCritical,et=$e.filter(function(dt){return zi({target:vn(dt,He),destination:he,viewport:le.frame,withDroppableDisplacement:!0})}).sort(function(dt,tn){var Cn=Rr(ne,Nl(he,Jo(dt,He))),bn=Rr(ne,Nl(he,Jo(tn,He)));return Cn<bn?-1:bn<Cn?1:dt.descriptor.index-tn.descriptor.index});return et[0]||null},Nn=Pn(function(ne,le){var he=le[ne.line];return{value:he,point:Cr(ne.line,he)}}),wr=function(ne,le,he){var $e=ne.axis;if(ne.descriptor.mode==="virtual")return Cr($e.line,le[$e.line]);var He=ne.subject.page.contentBox[$e.size],et=pi(ne.descriptor.id,he),dt=et.reduce(function(bn,sn){return bn+sn.client.marginBox[$e.size]},0),tn=dt+le[$e.line],Cn=tn-He;return Cn<=0?null:Cr($e.line,Cn)},Or=function(ne,le){return(0,ce.Z)({},ne,{scroll:(0,ce.Z)({},ne.scroll,{max:le})})},rr=function(ne,le,he){var $e=ne.frame;Qn(le,ne)&&ht(!1),ne.subject.withPlaceholder&&ht(!1);var He=Nn(ne.axis,le.displaceBy).point,et=wr(ne,He,he),dt={placeholderSize:He,increasedBy:et,oldFrameMaxScroll:ne.frame?ne.frame.scroll.max:null};if(!$e){var tn=pa({page:ne.subject.page,withPlaceholder:dt,axis:ne.axis,frame:ne.frame});return(0,ce.Z)({},ne,{subject:tn})}var Cn=et?hr($e.scroll.max,et):$e.scroll.max,bn=Or($e,Cn),sn=pa({page:ne.subject.page,withPlaceholder:dt,axis:ne.axis,frame:bn});return(0,ce.Z)({},ne,{subject:sn,frame:bn})},ir=function(ne){var le=ne.subject.withPlaceholder;le||ht(!1);var he=ne.frame;if(!he){var $e=pa({page:ne.subject.page,axis:ne.axis,frame:null,withPlaceholder:null});return(0,ce.Z)({},ne,{subject:$e})}var He=le.oldFrameMaxScroll;He||ht(!1);var et=Or(he,He),dt=pa({page:ne.subject.page,axis:ne.axis,frame:et,withPlaceholder:null});return(0,ce.Z)({},ne,{subject:dt,frame:et})},kn=function(te){var ne=te.previousPageBorderBoxCenter,le=te.moveRelativeTo,he=te.insideDestination,$e=te.draggable,He=te.draggables,et=te.destination,dt=te.viewport,tn=te.afterCritical;if(!le){if(he.length)return null;var Cn={displaced:Sr,displacedBy:xr,at:{type:"REORDER",destination:{droppableId:et.descriptor.id,index:0}}},bn=es({impact:Cn,draggable:$e,droppable:et,draggables:He,afterCritical:tn}),sn=Qn($e,et)?et:rr(et,$e,He),fn=uo({draggable:$e,destination:sn,newPageBorderBoxCenter:bn,viewport:dt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return fn?Cn:null}var An=ne[et.axis.line]<=le.page.borderBox.center[et.axis.line],sr=function(){var Na=le.descriptor.index;return le.descriptor.id===$e.descriptor.id||An?Na:Na+1}(),va=Nn(et.axis,$e.displaceBy);return Wo({draggable:$e,insideDestination:he,destination:et,viewport:dt,displacedBy:va,last:Sr,index:sr})},er=function(te){var ne=te.isMovingForward,le=te.previousPageBorderBoxCenter,he=te.draggable,$e=te.isOver,He=te.draggables,et=te.droppables,dt=te.viewport,tn=te.afterCritical,Cn=Qo({isMovingForward:ne,pageBorderBoxCenter:le,source:$e,droppables:et,viewport:dt});if(!Cn)return null;var bn=pi(Cn.descriptor.id,He),sn=yn({pageBorderBoxCenter:le,viewport:dt,destination:Cn,insideDestination:bn,afterCritical:tn}),fn=kn({previousPageBorderBoxCenter:le,destination:Cn,draggable:he,draggables:He,moveRelativeTo:sn,insideDestination:bn,viewport:dt,afterCritical:tn});if(!fn)return null;var An=es({impact:fn,draggable:he,droppable:Cn,draggables:He,afterCritical:tn}),sr=Hi({pageBorderBoxCenter:An,draggable:he,viewport:dt});return{clientSelection:sr,impact:fn,scrollJumpRequest:null}},vr=function(te){var ne=te.at;return ne?ne.type==="REORDER"?ne.destination.droppableId:ne.combine.droppableId:null},na=function(ne,le){var he=vr(ne);return he?le[he]:null},xi=function(te){var ne=te.state,le=te.type,he=na(ne.impact,ne.dimensions.droppables),$e=!!he,He=ne.dimensions.droppables[ne.critical.droppable.id],et=he||He,dt=et.axis.direction,tn=dt==="vertical"&&(le==="MOVE_UP"||le==="MOVE_DOWN")||dt==="horizontal"&&(le==="MOVE_LEFT"||le==="MOVE_RIGHT");if(tn&&!$e)return null;var Cn=le==="MOVE_DOWN"||le==="MOVE_RIGHT",bn=ne.dimensions.draggables[ne.critical.draggable.id],sn=ne.current.page.borderBoxCenter,fn=ne.dimensions,An=fn.draggables,sr=fn.droppables;return tn?Il({isMovingForward:Cn,previousPageBorderBoxCenter:sn,draggable:bn,destination:et,draggables:An,viewport:ne.viewport,previousClientSelection:ne.current.client.selection,previousImpact:ne.impact,afterCritical:ne.afterCritical}):er({isMovingForward:Cn,previousPageBorderBoxCenter:sn,draggable:bn,isOver:et,draggables:An,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),le=$r(te.left,te.right);return function($e){return ne($e.y)&&le($e.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,le=te.draggable,he=te.candidates,$e=le.page.borderBox.center,He=he.map(function(et){var dt=et.axis,tn=Cr(et.axis.line,ne.center[dt.line],et.page.borderBox.center[dt.crossAxisLine]);return{id:et.descriptor.id,distance:Rr($e,tn)}}).sort(function(et,dt){return dt.distance-et.distance});return He[0]?He[0].id:null}function ma(te){var ne=te.pageBorderBox,le=te.draggable,he=te.droppables,$e=za(he).filter(function(He){if(!He.isEnabled)return!1;var et=He.subject.active;if(!et||!ro(ne,et))return!1;if(fo(et)(ne.center))return!0;var dt=He.axis,tn=et.center[dt.crossAxisLine],Cn=ne[dt.crossAxisStart],bn=ne[dt.crossAxisEnd],sn=$r(et[dt.crossAxisStart],et[dt.crossAxisEnd]),fn=sn(Cn),An=sn(bn);return!fn&&!An?!0:fn?Cn<tn:bn>tn});return $e.length?$e.length===1?$e[0].descriptor.id:Ha({pageBorderBox:ne,draggable:le,candidates:$e}):null}var Hr=function(ne,le){return pn(xa(ne,le))},_i=function(te,ne){var le=te.frame;return le?Hr(ne,le.scroll.diff.value):ne};function Li(te){var ne=te.displaced,le=te.id;return!!(ne.visible[le]||ne.invisible[le])}function vo(te){var ne=te.draggable,le=te.closest,he=te.inHomeList;return le?he&&le.descriptor.index>ne.descriptor.index?le.descriptor.index-1:le.descriptor.index:null}var _o=function(te){var ne=te.pageBorderBoxWithDroppableScroll,le=te.draggable,he=te.destination,$e=te.insideDestination,He=te.last,et=te.viewport,dt=te.afterCritical,tn=he.axis,Cn=Nn(he.axis,le.displaceBy),bn=Cn.value,sn=ne[tn.start],fn=ne[tn.end],An=ei(le,$e),sr=Kr(An,function(Na){var ka=Na.descriptor.id,oi=Na.page.borderBox.center[tn.line],Fi=Da(ka,dt),Ti=Li({displaced:He,id:ka});return Fi?Ti?fn<=oi:sn<oi-bn:Ti?fn<=oi+bn:sn<oi}),va=vo({draggable:le,closest:sr,inHomeList:Qn(le,he)});return Wo({draggable:le,insideDestination:$e,destination:he,viewport:et,last:He,displacedBy:Cn,index:va})},Ai=4,go=function(te){var ne=te.draggable,le=te.pageBorderBoxWithDroppableScroll,he=te.previousImpact,$e=te.destination,He=te.insideDestination,et=te.afterCritical;if(!$e.isCombineEnabled)return null;var dt=$e.axis,tn=Nn($e.axis,ne.displaceBy),Cn=tn.value,bn=le[dt.start],sn=le[dt.end],fn=ei(ne,He),An=Kr(fn,function(va){var Na=va.descriptor.id,ka=va.page.borderBox,oi=ka[dt.size],Fi=oi/Ai,Ti=Da(Na,et),xo=Li({displaced:he.displaced,id:Na});return Ti?xo?sn>ka[dt.start]+Fi&&sn<ka[dt.end]-Fi:bn>ka[dt.start]-Cn+Fi&&bn<ka[dt.end]-Cn-Fi:xo?sn>ka[dt.start]+Cn+Fi&&sn<ka[dt.end]+Cn-Fi:bn>ka[dt.start]+Fi&&bn<ka[dt.end]-Fi});if(!An)return null;var sr={displacedBy:tn,displaced:he.displaced,at:{type:"COMBINE",combine:{draggableId:An.descriptor.id,droppableId:$e.descriptor.id}}};return sr},bi=function(te){var ne=te.pageOffset,le=te.draggable,he=te.draggables,$e=te.droppables,He=te.previousImpact,et=te.viewport,dt=te.afterCritical,tn=Hr(le.page.borderBox,ne),Cn=ma({pageBorderBox:tn,draggable:le,droppables:$e});if(!Cn)return tr;var bn=$e[Cn],sn=pi(bn.descriptor.id,he),fn=_i(bn,tn);return go({pageBorderBoxWithDroppableScroll:fn,draggable:le,previousImpact:He,destination:bn,insideDestination:sn,afterCritical:dt})||_o({pageBorderBoxWithDroppableScroll:fn,draggable:le,destination:bn,insideDestination:sn,last:He.displaced,viewport:et,afterCritical:dt})},ga=function(te,ne){var le;return(0,ce.Z)({},te,(le={},le[ne.descriptor.id]=ne,le))},vi=function(ne){var le=ne.previousImpact,he=ne.impact,$e=ne.droppables,He=vr(le),et=vr(he);if(!He||He===et)return $e;var dt=$e[He];if(!dt.subject.withPlaceholder)return $e;var tn=ir(dt);return ga($e,tn)},fi=function(te){var ne=te.draggable,le=te.draggables,he=te.droppables,$e=te.previousImpact,He=te.impact,et=vi({previousImpact:$e,impact:He,droppables:he}),dt=vr(He);if(!dt)return et;var tn=he[dt];if(Qn(ne,tn)||tn.subject.withPlaceholder)return et;var Cn=rr(tn,ne,le);return ga(et,Cn)},si=function(te){var ne=te.state,le=te.clientSelection,he=te.dimensions,$e=te.viewport,He=te.impact,et=te.scrollJumpRequest,dt=$e||ne.viewport,tn=he||ne.dimensions,Cn=le||ne.current.client.selection,bn=Pr(Cn,ne.initial.client.selection),sn={offset:bn,selection:Cn,borderBoxCenter:hr(ne.initial.client.borderBoxCenter,bn)},fn={selection:hr(sn.selection,dt.scroll.current),borderBoxCenter:hr(sn.borderBoxCenter,dt.scroll.current),offset:hr(sn.offset,dt.scroll.diff.value)},An={client:sn,page:fn};if(ne.phase==="COLLECTING")return(0,ce.Z)({phase:"COLLECTING"},ne,{dimensions:tn,viewport:dt,current:An});var sr=tn.draggables[ne.critical.draggable.id],va=He||bi({pageOffset:fn.offset,draggable:sr,draggables:tn.draggables,droppables:tn.droppables,previousImpact:ne.impact,viewport:dt,afterCritical:ne.afterCritical}),Na=fi({draggable:sr,impact:va,previousImpact:ne.impact,draggables:tn.draggables,droppables:tn.droppables}),ka=(0,ce.Z)({},ne,{current:An,dimensions:{draggables:tn.draggables,droppables:Na},impact:va,viewport:dt,scrollJumpRequest:et||null,forceShouldAnimate:et?!1:null});return ka};function Bt(te,ne){return te.map(function(le){return ne[le]})}var Qt=function(te){var ne=te.impact,le=te.viewport,he=te.draggables,$e=te.destination,He=te.forceShouldAnimate,et=ne.displaced,dt=Bt(et.all,he),tn=co({afterDragging:dt,destination:$e,displacedBy:ne.displacedBy,viewport:le.frame,forceShouldAnimate:He,last:et});return(0,ce.Z)({},ne,{displaced:tn})},rn=function(te){var ne=te.impact,le=te.draggable,he=te.droppable,$e=te.draggables,He=te.viewport,et=te.afterCritical,dt=es({impact:ne,draggable:le,draggables:$e,droppable:he,afterCritical:et});return Hi({pageBorderBoxCenter:dt,draggable:le,viewport:He})},In=function(te){var ne=te.state,le=te.dimensions,he=te.viewport;ne.movementMode!=="SNAP"&&ht(!1);var $e=ne.impact,He=he||ne.viewport,et=le||ne.dimensions,dt=et.draggables,tn=et.droppables,Cn=dt[ne.critical.draggable.id],bn=vr($e);bn||ht(!1);var sn=tn[bn],fn=Qt({impact:$e,viewport:He,destination:sn,draggables:dt}),An=rn({impact:fn,draggable:Cn,droppable:sn,draggables:dt,viewport:He,afterCritical:ne.afterCritical});return si({impact:fn,clientSelection:An,state:ne,dimensions:et,viewport:He})},Va=function(te){return{index:te.index,droppableId:te.droppableId}},zr=function(te){var ne=te.draggable,le=te.home,he=te.draggables,$e=te.viewport,He=Nn(le.axis,ne.displaceBy),et=pi(le.descriptor.id,he),dt=et.indexOf(ne);dt===-1&&ht(!1);var tn=et.slice(dt+1),Cn=tn.reduce(function(An,sr){return An[sr.descriptor.id]=!0,An},{}),bn={inVirtualList:le.descriptor.mode==="virtual",displacedBy:He,effected:Cn},sn=co({afterDragging:tn,destination:le,displacedBy:He,last:null,viewport:$e.frame,forceShouldAnimate:!1}),fn={displaced:sn,displacedBy:He,at:{type:"REORDER",destination:Va(ne.descriptor)}};return{impact:fn,afterCritical:bn}},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,le=te.offset,he=te.initialWindowScroll,$e=Un(ne.client,le),He=On($e,he),et=(0,ce.Z)({},ne,{placeholder:(0,ce.Z)({},ne.placeholder,{client:$e}),client:$e,page:He});return et},Wr=function(te){var ne=te.frame;return ne||ht(!1),ne},or=function(te){var ne=te.additions,le=te.updatedDroppables,he=te.viewport,$e=he.scroll.diff.value;return ne.map(function(He){var et=He.descriptor.droppableId,dt=le[et],tn=Wr(dt),Cn=tn.scroll.diff.value,bn=hr($e,Cn),sn=aa({draggable:He,offset:bn,initialWindowScroll:he.scroll.initial});return sn})},ha=function(te){var ne=te.state,le=te.published;pr();var he=le.modified.map(function(Fi){var Ti=ne.dimensions.droppables[Fi.droppableId],xo=kr(Ti,Fi.scroll);return xo}),$e=(0,ce.Z)({},ne.dimensions.droppables,{},Mi(he)),He=ji(or({additions:le.additions,updatedDroppables:$e,viewport:ne.viewport})),et=(0,ce.Z)({},ne.dimensions.draggables,{},He);le.removals.forEach(function(Fi){delete et[Fi]});var dt={droppables:$e,draggables:et},tn=vr(ne.impact),Cn=tn?dt.droppables[tn]:null,bn=dt.draggables[ne.critical.draggable.id],sn=dt.droppables[ne.critical.droppable.id],fn=zr({draggable:bn,home:sn,draggables:et,viewport:ne.viewport}),An=fn.impact,sr=fn.afterCritical,va=Cn&&Cn.isCombineEnabled?ne.impact:An,Na=bi({pageOffset:ne.current.page.offset,draggable:dt.draggables[ne.critical.draggable.id],draggables:dt.draggables,droppables:dt.droppables,previousImpact:va,viewport:ne.viewport,afterCritical:sr});Fr();var ka=(0,ce.Z)({phase:"DRAGGING"},ne,{phase:"DRAGGING",impact:Na,onLiftImpact:An,dimensions:dt,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,le,he){var $e=qn(ne.dimensions,le);return!fa(ne)||he?si({state:ne,dimensions:$e}):In({state:ne,dimensions:$e})};function Fa(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"&&ht(!1);var le=ne.payload,he=le.critical,$e=le.clientSelection,He=le.viewport,et=le.dimensions,dt=le.movementMode,tn=et.draggables[he.draggable.id],Cn=et.droppables[he.droppable.id],bn={selection:$e,borderBoxCenter:tn.client.borderBox.center,offset:jn},sn={client:bn,page:{selection:hr(bn.selection,He.scroll.initial),borderBoxCenter:hr(bn.selection,He.scroll.initial),offset:hr(bn.selection,He.scroll.diff.value)}},fn=za(et.droppables).every(function(Oc){return!Oc.isFixedOnPage}),An=zr({draggable:tn,home:Cn,draggables:et.draggables,viewport:He}),sr=An.impact,va=An.afterCritical,Na={phase:"DRAGGING",isDragging:!0,critical:he,movementMode:dt,dimensions:et,initial:sn,current:sn,isWindowScrollAllowed:fn,impact:sr,afterCritical:va,onLiftImpact:sr,viewport:He,scrollJumpRequest:null,forceShouldAnimate:null};return Na}if(ne.type==="COLLECTION_STARTING"){if(te.phase==="COLLECTING"||te.phase==="DROP_PENDING")return te;te.phase!=="DRAGGING"&&ht(!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"||ht(!1),ha({state:te,published:ne.payload});if(ne.type==="MOVE"){if(te.phase==="DROP_PENDING")return te;ki(te)||ht(!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 Fa(te);ki(te)||ht(!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)||ht(!1);var Hl=ne.payload,Ho=Hl.id,Vl=Hl.isEnabled,us=te.dimensions.droppables[Ho];us||ht(!1),us.isEnabled===Vl&&ht(!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)||ht(!1);var lu=ne.payload,qs=lu.id,Zs=lu.isCombineEnabled,su=te.dimensions.droppables[qs];su||ht(!1),su.isCombineEnabled===Zs&&ht(!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)||ht(!1),te.isWindowScrollAllowed||ht(!1);var Mu=ne.payload.newScroll;if(Tr(te.viewport.scroll.current,Mu))return Fa(te);var uu=as(te.viewport,Mu);return fa(te)?In({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"&&ht(!1);var Ru=xi({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"&&ht(!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"||ht(!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}},Aa=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}},_l=function(){return{type:"MOVE_DOWN",payload:null}},Tl=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(dt){return dt.descriptor.index}),le={},he=1;he<ne.length;he++){var $e=ne[he],He=ne[he-1];$e!==He+1&&(le[$e]=!0)}if(Object.keys(le).length)var et=ne.map(function(dt){var tn=!!le[dt];return tn?"[\u{1F525}"+dt+"]":""+dt}).join(", ")}}function xs(te,ne){if(0)var le}var Fs=function(te){return function(ne){var le=ne.getState,he=ne.dispatch;return function($e){return function(He){if(He.type!=="LIFT"){$e(He);return}var et=He.payload,dt=et.id,tn=et.clientSelection,Cn=et.movementMode,bn=le();bn.phase==="DROP_ANIMATING"&&he(Eo({completed:bn.completed})),le().phase!=="IDLE"&&ht(!1),he(bo()),he(cr({draggableId:dt,movementMode:Cn}));var sn={shouldPublishImmediately:Cn==="SNAP"},fn={draggableId:dt,scrollOptions:sn},An=te.startPublishing(fn),sr=An.critical,va=An.dimensions,Na=An.viewport;xs(sr,va),he(ui({critical:sr,dimensions:va,clientSelection:tn,movementMode:Cn,viewport:Na}))}}}},tu=function(te){return function(){return function(ne){return function(le){le.type==="INITIAL_PUBLISH"&&te.dragging(),le.type==="DROP_ANIMATE"&&te.dropping(le.payload.completed.result.reason),(le.type==="FLUSH"||le.type==="DROP_COMPLETE")&&te.resting(),ne(le)}}}},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 le=ne+"s "+cs.drop;return"transform "+le+", opacity "+le},outOfTheWay:"transform "+Is,placeholder:"height "+Is+", width "+Is+", margin "+Is},Ws=function(ne){return Tr(ne,jn)?null:"translate("+ne.x+"px, "+ne.y+"px)"},Ps={moveTo:Ws,drop:function(ne,le){var he=Ws(ne);return he?le?he+" scale("+Ss.scale.drop+")":he:null}},Rs=js.minDropTime,zs=js.maxDropTime,Us=zs-Rs,Eu=1500,Cu=.6,ec=function(te){var ne=te.current,le=te.destination,he=te.reason,$e=Rr(ne,le);if($e<=0)return Rs;if($e>=Eu)return zs;var He=$e/Eu,et=Rs+Us*He,dt=he==="CANCEL"?et*Cu:et;return Number(dt.toFixed(2))},As=function(te){var ne=te.impact,le=te.draggable,he=te.dimensions,$e=te.viewport,He=te.afterCritical,et=he.draggables,dt=he.droppables,tn=vr(ne),Cn=tn?dt[tn]:null,bn=dt[le.descriptor.droppableId],sn=rn({impact:ne,draggable:le,draggables:et,afterCritical:He,droppable:Cn||bn,viewport:$e}),fn=Pr(sn,le.client.borderBox.center);return fn},ws=function(te){var ne=te.draggables,le=te.reason,he=te.lastImpact,$e=te.home,He=te.viewport,et=te.onLiftImpact;if(!he.at||le!=="DROP"){var dt=Qt({draggables:ne,impact:et,destination:$e,viewport:He,forceShouldAnimate:!0});return{impact:dt,didDropInsideDroppable:!1}}if(he.at.type==="REORDER")return{impact:he,didDropInsideDroppable:!0};var tn=(0,ce.Z)({},he,{displaced:Sr});return{impact:tn,didDropInsideDroppable:!0}},xu=function(te){var ne=te.getState,le=te.dispatch;return function(he){return function($e){if($e.type!=="DROP"){he($e);return}var He=ne(),et=$e.payload.reason;if(He.phase==="COLLECTING"){le($s({reason:et}));return}if(He.phase!=="IDLE"){var dt=He.phase==="DROP_PENDING"&&He.isWaiting;dt&&ht(!1),He.phase==="DRAGGING"||He.phase==="DROP_PENDING"||ht(!1);var tn=He.critical,Cn=He.dimensions,bn=Cn.draggables[He.critical.draggable.id],sn=ws({reason:et,lastImpact:He.impact,afterCritical:He.afterCritical,onLiftImpact:He.onLiftImpact,home:He.dimensions.droppables[He.critical.droppable.id],viewport:He.viewport,draggables:He.dimensions.draggables}),fn=sn.impact,An=sn.didDropInsideDroppable,sr=An?Wi(fn):null,va=An?Ci(fn):null,Na={index:tn.draggable.index,droppableId:tn.droppable.id},ka={draggableId:bn.descriptor.id,type:bn.descriptor.type,source:Na,reason:et,mode:He.movementMode,destination:sr,combine:va},oi=As({impact:fn,draggable:bn,dimensions:Cn,viewport:He.viewport,afterCritical:He.afterCritical}),Fi={critical:He.critical,afterCritical:He.afterCritical,result:ka,impact:fn},Ti=!Tr(He.current.client.offset,oi)||!!ka.combine;if(!Ti){le(Eo({completed:Fi}));return}var xo=ec({current:He.current.client.offset,destination:oi,reason:et}),ho={newHomeClientOffset:oi,dropDuration:xo,completed:Fi};le(Po(ho))}}}},ku=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Lu(te){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(le){le.target!==window&&le.target!==window.document||te()}}}function Wn(te){var ne=te.onWindowScroll;function le(){ne(ku())}var he=Rn(le),$e=Lu(he),He=ur;function et(){return He!==ur}function dt(){et()&&ht(!1),He=Vt(window,[$e])}function tn(){et()||ht(!1),he.cancel(),He(),He=ur}return{start:dt,stop:tn,isActive:et}}var wa=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Vi=function(te){var ne=Wn({onWindowScroll:function(he){te.dispatch(Ko({newScroll:he}))}});return function(le){return function(he){!ne.isActive()&&he.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&wa(he)&&ne.stop(),le(he)}}},Ta=function(te){var ne=!1,le=!1,he=setTimeout(function(){le=!0}),$e=function(et){ne||le||(ne=!0,te(et),clearTimeout(he))};return $e.wasCalled=function(){return ne},$e},Ir=function(){var te=[],ne=function(He){var et=la(te,function(Cn){return Cn.timerId===He});et===-1&&ht(!1);var dt=te.splice(et,1),tn=dt[0];tn.callback()},le=function(He){var et=setTimeout(function(){return ne(et)}),dt={timerId:et,callback:He};te.push(dt)},he=function(){if(te.length){var He=[].concat(te);te.length=0,He.forEach(function(et){clearTimeout(et.timerId),et.callback()})}};return{add:le,flush:he}},Zi=function(ne,le){return ne==null&&le==null?!0:ne==null||le==null?!1:ne.droppableId===le.droppableId&&ne.index===le.index},Ki=function(ne,le){return ne==null&&le==null?!0:ne==null||le==null?!1:ne.draggableId===le.draggableId&&ne.droppableId===le.droppableId},ko=function(ne,le){if(ne===le)return!0;var he=ne.draggable.id===le.draggable.id&&ne.draggable.droppableId===le.draggable.droppableId&&ne.draggable.type===le.draggable.type&&ne.draggable.index===le.draggable.index,$e=ne.droppable.id===le.droppable.id&&ne.droppable.type===le.droppable.type;return he&&$e},Xi=function(ne,le){pr(),le(),Fr()},dl=function(ne,le){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:le}},Ro=function(ne,le,he,$e){if(!ne){he($e(le));return}var He=Ta(he),et={announce:He};ne(le,et),He.wasCalled()||he($e(le))},ys=function(te,ne){var le=Ir(),he=null,$e=function(fn,An){he&&ht(!1),Xi("onBeforeCapture",function(){var sr=te().onBeforeCapture;if(sr){var va={draggableId:fn,mode:An};sr(va)}})},He=function(fn,An){he&&ht(!1),Xi("onBeforeDragStart",function(){var sr=te().onBeforeDragStart;sr&&sr(dl(fn,An))})},et=function(fn,An){he&&ht(!1);var sr=dl(fn,An);he={mode:An,lastCritical:fn,lastLocation:sr.source,lastCombine:null},le.add(function(){Xi("onDragStart",function(){return Ro(te().onDragStart,sr,ne,Gn.onDragStart)})})},dt=function(fn,An){var sr=Wi(An),va=Ci(An);he||ht(!1);var Na=!ko(fn,he.lastCritical);Na&&(he.lastCritical=fn);var ka=!Zi(he.lastLocation,sr);ka&&(he.lastLocation=sr);var oi=!Ki(he.lastCombine,va);if(oi&&(he.lastCombine=va),!(!Na&&!ka&&!oi)){var Fi=(0,ce.Z)({},dl(fn,he.mode),{combine:va,destination:sr});le.add(function(){Xi("onDragUpdate",function(){return Ro(te().onDragUpdate,Fi,ne,Gn.onDragUpdate)})})}},tn=function(){he||ht(!1),le.flush()},Cn=function(fn){he||ht(!1),he=null,Xi("onDragEnd",function(){return Ro(te().onDragEnd,fn,ne,Gn.onDragEnd)})},bn=function(){if(he){var fn=(0,ce.Z)({},dl(he.lastCritical,he.mode),{combine:null,destination:null,reason:"CANCEL"});Cn(fn)}};return{beforeCapture:$e,beforeStart:He,start:et,update:dt,flush:tn,drop:Cn,abort:bn}},Xs=function(te,ne){var le=ys(te,ne);return function(he){return function($e){return function(He){if(He.type==="BEFORE_INITIAL_CAPTURE"){le.beforeCapture(He.payload.draggableId,He.payload.movementMode);return}if(He.type==="INITIAL_PUBLISH"){var et=He.payload.critical;le.beforeStart(et,He.payload.movementMode),$e(He),le.start(et,He.payload.movementMode);return}if(He.type==="DROP_COMPLETE"){var dt=He.payload.completed.result;le.flush(),$e(He),le.drop(dt);return}if($e(He),He.type==="FLUSH"){le.abort();return}var tn=he.getState();tn.phase==="DRAGGING"&&le.update(tn.critical,tn.impact)}}}},ci=function(te){return function(ne){return function(le){if(le.type!=="DROP_ANIMATION_FINISHED"){ne(le);return}var he=te.getState();he.phase!=="DROP_ANIMATING"&&ht(!1),te.dispatch(Eo({completed:he.completed}))}}},bl=function(te){var ne=null,le=null;function he(){le&&(cancelAnimationFrame(le),le=null),ne&&(ne(),ne=null)}return function($e){return function(He){if((He.type==="FLUSH"||He.type==="DROP_COMPLETE"||He.type==="DROP_ANIMATION_FINISHED")&&he(),$e(He),He.type==="DROP_ANIMATE"){var et={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var tn=te.getState();tn.phase==="DROP_ANIMATING"&&te.dispatch(Ms())}};le=requestAnimationFrame(function(){le=null,ne=Vt(window,[et])})}}}},is=function(te){return function(){return function(ne){return function(le){(le.type==="DROP_COMPLETE"||le.type==="FLUSH"||le.type==="DROP_ANIMATE")&&te.stopPublishing(),ne(le)}}}},jl=function(te){var ne=!1;return function(){return function(le){return function(he){if(he.type==="INITIAL_PUBLISH"){ne=!0,te.tryRecordFocus(he.payload.critical.draggable.id),le(he),te.tryRestoreFocusRecorded();return}if(le(he),!!ne){if(he.type==="FLUSH"){ne=!1,te.tryRestoreFocusRecorded();return}if(he.type==="DROP_COMPLETE"){ne=!1;var $e=he.payload.completed.result;$e.combine&&te.tryShiftRecord($e.draggableId,$e.combine.draggableId),te.tryRestoreFocusRecorded()}}}}}},Re=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Me=function(te){return function(ne){return function(le){return function(he){if(Re(he)){te.stop(),le(he);return}if(he.type==="INITIAL_PUBLISH"){le(he);var $e=ne.getState();$e.phase!=="DRAGGING"&&ht(!1),te.start($e);return}le(he),te.scroll(ne.getState())}}}},Dt=function(te){return function(ne){return function(le){if(ne(le),le.type==="PUBLISH_WHILE_DRAGGING"){var he=te.getState();he.phase==="DROP_PENDING"&&(he.isWaiting||te.dispatch(yl({reason:he.reason})))}}}},Lt=Le.qC,on=function(te){var ne=te.dimensionMarshal,le=te.focusMarshal,he=te.styleMarshal,$e=te.getResponders,He=te.announce,et=te.autoScroller;return(0,Le.MT)(ua,Lt((0,Le.md)(tu(he),is(ne),Fs(ne),xu,ci,bl,Dt,Me(et),Vi,jl(le),Xs($e,He))))},hn=function(){return{additions:{},removals:{},modified:{}}};function Tn(te){var ne=te.registry,le=te.callbacks,he=hn(),$e=null,He=function(){$e||(le.collectionStarting(),$e=requestAnimationFrame(function(){$e=null,pr();var bn=he,sn=bn.additions,fn=bn.removals,An=bn.modified,sr=Object.keys(sn).map(function(ka){return ne.draggable.getById(ka).getDimension(jn)}).sort(function(ka,oi){return ka.descriptor.index-oi.descriptor.index}),va=Object.keys(An).map(function(ka){var oi=ne.droppable.getById(ka),Fi=oi.callbacks.getScrollWhileDragging();return{droppableId:ka,scroll:Fi}}),Na={additions:sr,removals:Object.keys(fn),modified:va};he=hn(),Fr(),le.publish(Na)}))},et=function(bn){var sn=bn.descriptor.id;he.additions[sn]=bn,he.modified[bn.descriptor.droppableId]=!0,he.removals[sn]&&delete he.removals[sn],He()},dt=function(bn){var sn=bn.descriptor;he.removals[sn.id]=!0,he.modified[sn.droppableId]=!0,he.additions[sn.id]&&delete he.additions[sn.id],He()},tn=function(){$e&&(cancelAnimationFrame($e),$e=null,he=hn())};return{add:et,remove:dt,stop:tn}}var Bn=function(te){var ne=te.scrollHeight,le=te.scrollWidth,he=te.height,$e=te.width,He=Pr({x:le,y:ne},{x:$e,y:he}),et={x:Math.max(0,He.x),y:Math.max(0,He.y)};return et},$n=function(){var te=document.documentElement;return te||ht(!1),te},Ln=function(){var te=$n(),ne=Bn({scrollHeight:te.scrollHeight,scrollWidth:te.scrollWidth,width:te.clientWidth,height:te.clientHeight});return ne},Br=function(){var te=ku(),ne=Ln(),le=te.y,he=te.x,$e=$n(),He=$e.clientWidth,et=$e.clientHeight,dt=he+He,tn=le+et,Cn=pn({top:le,left:he,right:dt,bottom:tn}),bn={frame:Cn,scroll:{initial:te,current:te,max:ne,diff:{value:jn,displacement:jn}}};return bn},lr=function(te){var ne=te.critical,le=te.scrollOptions,he=te.registry;pr();var $e=Br(),He=$e.scroll.current,et=ne.droppable,dt=he.droppable.getAllByType(et.type).map(function(sn){return sn.callbacks.getDimensionAndWatchScroll(He,le)}),tn=he.draggable.getAllByType(ne.draggable.type).map(function(sn){return sn.getDimension(He)}),Cn={draggables:ji(tn),droppables:Mi(dt)};Fr();var bn={dimensions:Cn,critical:ne,viewport:$e};return bn};function nr(te,ne,le){if(le.descriptor.id===ne.id||le.descriptor.type!==ne.type)return!1;var he=te.droppable.getById(le.descriptor.droppableId);return he.descriptor.mode==="virtual"}var Xn=function(te,ne){var le=null,he=Tn({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:te}),$e=function(An,sr){te.droppable.exists(An)||ht(!1),le&&ne.updateDroppableIsEnabled({id:An,isEnabled:sr})},He=function(An,sr){le&&(te.droppable.exists(An)||ht(!1),ne.updateDroppableIsCombineEnabled({id:An,isCombineEnabled:sr}))},et=function(An,sr){le&&(te.droppable.exists(An)||ht(!1),ne.updateDroppableScroll({id:An,newScroll:sr}))},dt=function(An,sr){le&&te.droppable.getById(An).callbacks.scroll(sr)},tn=function(){if(le){he.stop();var An=le.critical.droppable;te.droppable.getAllByType(An.type).forEach(function(sr){return sr.callbacks.dragStopped()}),le.unsubscribe(),le=null}},Cn=function(An){le||ht(!1);var sr=le.critical.draggable;An.type==="ADDITION"&&nr(te,sr,An.value)&&he.add(An.value),An.type==="REMOVAL"&&nr(te,sr,An.value)&&he.remove(An.value)},bn=function(An){le&&ht(!1);var sr=te.draggable.getById(An.draggableId),va=te.droppable.getById(sr.descriptor.droppableId),Na={draggable:sr.descriptor,droppable:va.descriptor},ka=te.subscribe(Cn);return le={critical:Na,unsubscribe:ka},lr({critical:Na,registry:te,scrollOptions:An.scrollOptions})},sn={updateDroppableIsEnabled:$e,updateDroppableIsCombineEnabled:He,scrollDroppable:dt,updateDroppableScroll:et,startPublishing:bn,stopPublishing:tn};return sn},Kn=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=Pn(function(te){return za(te).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),da=function(ne,le){var he=Kr(_r(le),function($e){return $e.frame||ht(!1),fo($e.frame.pageMarginBox)(ne)});return he},Ea=function(te){var ne=te.center,le=te.destination,he=te.droppables;if(le){var $e=he[le];return $e.frame?$e:null}var He=da(ne,he);return He},Jr={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Oa=function(te,ne){var le=te[ne.size]*Jr.startFromPercentage,he=te[ne.size]*Jr.maxScrollAtPercentage,$e={startScrollingFrom:le,maxScrollValueAt:he};return $e},La=function(te){var ne=te.startOfRange,le=te.endOfRange,he=te.current,$e=le-ne;if($e===0)return 0;var He=he-ne,et=He/$e;return et},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 le=La({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:te}),he=1-le,$e=Jr.maxPixelScroll*Jr.ease(he);return Math.ceil($e)},eo=Jr.durationDampening.accelerateAt,Si=Jr.durationDampening.stopDampeningAt,gi=function(te,ne){var le=ne,he=Si,$e=Date.now(),He=$e-le;if(He>=Si)return te;if(He<eo)return Qa;var et=La({startOfRange:eo,endOfRange:he,current:He}),dt=te*Jr.ease(et);return Math.ceil(dt)},$i=function(te){var ne=te.distanceToEdge,le=te.thresholds,he=te.dragStartTime,$e=te.shouldUseTimeDampening,He=Ga(ne,le);return He===0?0:$e?Math.max(gi(He,he),Qa):He},qa=function(te){var ne=te.container,le=te.distanceToEdges,he=te.dragStartTime,$e=te.axis,He=te.shouldUseTimeDampening,et=Oa(ne,$e),dt=le[$e.end]<le[$e.start];return dt?$i({distanceToEdge:le[$e.end],thresholds:et,dragStartTime:he,shouldUseTimeDampening:He}):-1*$i({distanceToEdge:le[$e.start],thresholds:et,dragStartTime:he,shouldUseTimeDampening:He})},ti=function(te){var ne=te.container,le=te.subject,he=te.proposedScroll,$e=le.height>ne.height,He=le.width>ne.width;return!He&&!$e?he:He&&$e?null:{x:He?0:he.x,y:$e?0:he.y}},Ra=oa(function(te){return te===0?0:te}),Ca=function(te){var ne=te.dragStartTime,le=te.container,he=te.subject,$e=te.center,He=te.shouldUseTimeDampening,et={top:$e.y-le.top,right:le.right-$e.x,bottom:le.bottom-$e.y,left:$e.x-le.left},dt=qa({container:le,distanceToEdges:et,dragStartTime:ne,axis:Dr,shouldUseTimeDampening:He}),tn=qa({container:le,distanceToEdges:et,dragStartTime:ne,axis:jr,shouldUseTimeDampening:He}),Cn=Ra({x:tn,y:dt});if(Tr(Cn,jn))return null;var bn=ti({container:le,subject:he,proposedScroll:Cn});return bn?Tr(bn,jn)?null:bn:null},Ja=oa(function(te){return te===0?0:te>0?1:-1}),ni=function(){var te=function(le,he){return le<0?le:le>he?le-he:0};return function(ne){var le=ne.current,he=ne.max,$e=ne.change,He=hr(le,$e),et={x:te(He.x,he.x),y:te(He.y,he.y)};return Tr(et,jn)?null:et}}(),wi=function(ne){var le=ne.max,he=ne.current,$e=ne.change,He={x:Math.max(he.x,le.x),y:Math.max(he.y,le.y)},et=Ja($e),dt=ni({max:He,current:he,change:et});return!dt||et.x!==0&&dt.x===0||et.y!==0&&dt.y===0},Ma=function(ne,le){return wi({current:ne.scroll.current,max:ne.scroll.max,change:le})},lo=function(ne,le){if(!Ma(ne,le))return null;var he=ne.scroll.max,$e=ne.scroll.current;return ni({current:$e,max:he,change:le})},so=function(ne,le){var he=ne.frame;return he?wi({current:he.scroll.current,max:he.scroll.max,change:le}):!1},pl=function(ne,le){var he=ne.frame;return!he||!so(ne,le)?null:ni({current:he.scroll.current,max:he.scroll.max,change:le})},ul=function(te){var ne=te.viewport,le=te.subject,he=te.center,$e=te.dragStartTime,He=te.shouldUseTimeDampening,et=Ca({dragStartTime:$e,container:ne.frame,subject:le,center:he,shouldUseTimeDampening:He});return et&&Ma(ne,et)?et:null},el=function(te){var ne=te.droppable,le=te.subject,he=te.center,$e=te.dragStartTime,He=te.shouldUseTimeDampening,et=ne.frame;if(!et)return null;var dt=Ca({dragStartTime:$e,container:et.pageMarginBox,subject:le,center:he,shouldUseTimeDampening:He});return dt&&so(ne,dt)?dt:null},ol=function(te){var ne=te.state,le=te.dragStartTime,he=te.shouldUseTimeDampening,$e=te.scrollWindow,He=te.scrollDroppable,et=ne.current.page.borderBoxCenter,dt=ne.dimensions.draggables[ne.critical.draggable.id],tn=dt.page.marginBox;if(ne.isWindowScrollAllowed){var Cn=ne.viewport,bn=ul({dragStartTime:le,viewport:Cn,subject:tn,center:et,shouldUseTimeDampening:he});if(bn){$e(bn);return}}var sn=Ea({center:et,destination:vr(ne.impact),droppables:ne.dimensions.droppables});if(sn){var fn=el({dragStartTime:le,droppable:sn,subject:tn,center:et,shouldUseTimeDampening:he});fn&&He(sn.descriptor.id,fn)}},El=function(te){var ne=te.scrollWindow,le=te.scrollDroppable,he=Rn(ne),$e=Rn(le),He=null,et=function(bn){He||ht(!1);var sn=He,fn=sn.shouldUseTimeDampening,An=sn.dragStartTime;ol({state:bn,scrollWindow:he,scrollDroppable:$e,dragStartTime:An,shouldUseTimeDampening:fn})},dt=function(bn){pr(),He&&ht(!1);var sn=Date.now(),fn=!1,An=function(){fn=!0};ol({state:bn,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:An,scrollDroppable:An}),He={dragStartTime:sn,shouldUseTimeDampening:fn},Fr(),fn&&et(bn)},tn=function(){He&&(he.cancel(),$e.cancel(),He=null)};return{start:dt,stop:tn,scroll:et}},mo=function(te){var ne=te.move,le=te.scrollDroppable,he=te.scrollWindow,$e=function(Cn,bn){var sn=hr(Cn.current.client.selection,bn);ne({client:sn})},He=function(Cn,bn){if(!so(Cn,bn))return bn;var sn=pl(Cn,bn);if(!sn)return le(Cn.descriptor.id,bn),null;var fn=Pr(bn,sn);le(Cn.descriptor.id,fn);var An=Pr(bn,fn);return An},et=function(Cn,bn,sn){if(!Cn||!Ma(bn,sn))return sn;var fn=lo(bn,sn);if(!fn)return he(sn),null;var An=Pr(sn,fn);he(An);var sr=Pr(sn,An);return sr},dt=function(Cn){var bn=Cn.scrollJumpRequest;if(bn){var sn=vr(Cn.impact);sn||ht(!1);var fn=He(Cn.dimensions.droppables[sn],bn);if(fn){var An=Cn.viewport,sr=et(Cn.isWindowScrollAllowed,An,fn);sr&&$e(Cn,sr)}}};return dt},yo=function(te){var ne=te.scrollDroppable,le=te.scrollWindow,he=te.move,$e=El({scrollWindow:le,scrollDroppable:ne}),He=mo({move:he,scrollWindow:le,scrollDroppable:ne}),et=function(Cn){if(Cn.phase==="DRAGGING"){if(Cn.movementMode==="FLUID"){$e.scroll(Cn);return}Cn.scrollJumpRequest&&He(Cn)}},dt={scroll:et,start:$e.start,stop:$e.stop};return dt},ll="data-rbd",cl=function(){var te=ll+"-drag-handle";return{base:te,draggableId:te+"-draggable-id",contextId:te+"-context-id"}}(),mi=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(le){return"["+le+'="'+ne+'"]'}},po=function(ne,le){return ne.map(function(he){var $e=he.styles[le];return $e?he.selector+" { "+$e+" }":""}).join(" ")},To="pointer-events: none;",sl=function(te){var ne=Ua(te),le=function(){var dt=`
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:dt,dragging:To,dropAnimating:dt}}}(),he=function(){var dt=`
transition: `+gs.outOfTheWay+`;
`;return{selector:ne(mi.contextId),styles:{dragging:dt,dropAnimating:dt,userCancel:dt}}}(),$e={selector:ne(qi.contextId),styles:{always:"overflow-anchor: none;"}},He={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},et=[he,le,$e,He];return{always:po(et,"always"),resting:po(et,"resting"),dragging:po(et,"dragging"),dropAnimating:po(et,"dropAnimating"),userCancel:po(et,"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||ht(!1),ne},Bl=function(ne){var le=document.createElement("style");return ne&&le.setAttribute("nonce",ne),le.type="text/css",le};function Bi(te,ne){var le=Ut(function(){return sl(te)},[te]),he=(0,y.useRef)(null),$e=(0,y.useRef)(null),He=At(Pn(function(sn){var fn=$e.current;fn||ht(!1),fn.textContent=sn}),[]),et=At(function(sn){var fn=he.current;fn||ht(!1),fn.textContent=sn},[]);Co(function(){!he.current&&!$e.current||ht(!1);var sn=Bl(ne),fn=Bl(ne);return he.current=sn,$e.current=fn,sn.setAttribute(ll+"-always",te),fn.setAttribute(ll+"-dynamic",te),hl().appendChild(sn),hl().appendChild(fn),et(le.always),He(le.resting),function(){var An=function(va){var Na=va.current;Na||ht(!1),hl().removeChild(Na),va.current=null};An(he),An($e)}},[ne,et,He,le.always,le.resting,te]);var dt=At(function(){return He(le.dragging)},[He,le.dragging]),tn=At(function(sn){if(sn==="DROP"){He(le.dropAnimating);return}He(le.userCancel)},[He,le.dropAnimating,le.userCancel]),Cn=At(function(){$e.current&&He(le.resting)},[He,le.resting]),bn=Ut(function(){return{dragging:dt,dropping:tn,resting:Cn}},[dt,tn,Cn]);return bn}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 le="["+cl.contextId+'="'+te+'"]',he=Ya(document.querySelectorAll(le));if(!he.length)return null;var $e=Kr(he,function(He){return He.getAttribute(cl.draggableId)===ne});return!$e||!Do($e)?null:$e}function jo(te){var ne=(0,y.useRef)({}),le=(0,y.useRef)(null),he=(0,y.useRef)(null),$e=(0,y.useRef)(!1),He=At(function(fn,An){var sr={id:fn,focus:An};return ne.current[fn]=sr,function(){var Na=ne.current,ka=Na[fn];ka!==sr&&delete Na[fn]}},[]),et=At(function(fn){var An=zo(te,fn);An&&An!==document.activeElement&&An.focus()},[te]),dt=At(function(fn,An){le.current===fn&&(le.current=An)},[]),tn=At(function(){he.current||$e.current&&(he.current=requestAnimationFrame(function(){he.current=null;var fn=le.current;fn&&et(fn)}))},[et]),Cn=At(function(fn){le.current=null;var An=document.activeElement;An&&An.getAttribute(cl.draggableId)===fn&&(le.current=fn)},[]);Co(function(){return $e.current=!0,function(){$e.current=!1;var fn=he.current;fn&&cancelAnimationFrame(fn)}},[]);var bn=Ut(function(){return{register:He,tryRecordFocus:Cn,tryRestoreFocusRecorded:tn,tryShiftRecord:dt}},[He,Cn,tn,dt]);return bn}function Ml(){var te={draggables:{},droppables:{}},ne=[];function le(sn){return ne.push(sn),function(){var An=ne.indexOf(sn);An!==-1&&ne.splice(An,1)}}function he(sn){ne.length&&ne.forEach(function(fn){return fn(sn)})}function $e(sn){return te.draggables[sn]||null}function He(sn){var fn=$e(sn);return fn||ht(!1),fn}var et={register:function(fn){te.draggables[fn.descriptor.id]=fn,he({type:"ADDITION",value:fn})},update:function(fn,An){var sr=te.draggables[An.descriptor.id];sr&&sr.uniqueId===fn.uniqueId&&(delete te.draggables[An.descriptor.id],te.draggables[fn.descriptor.id]=fn)},unregister:function(fn){var An=fn.descriptor.id,sr=$e(An);sr&&fn.uniqueId===sr.uniqueId&&(delete te.draggables[An],he({type:"REMOVAL",value:fn}))},getById:He,findById:$e,exists:function(fn){return!!$e(fn)},getAllByType:function(fn){return Sa(te.draggables).filter(function(An){return An.descriptor.type===fn})}};function dt(sn){return te.droppables[sn]||null}function tn(sn){var fn=dt(sn);return fn||ht(!1),fn}var Cn={register:function(fn){te.droppables[fn.descriptor.id]=fn},unregister:function(fn){var An=dt(fn.descriptor.id);An&&fn.uniqueId===An.uniqueId&&delete te.droppables[fn.descriptor.id]},getById:tn,findById:dt,exists:function(fn){return!!dt(fn)},getAllByType:function(fn){return Sa(te.droppables).filter(function(An){return An.descriptor.type===fn})}};function bn(){te.draggables={},te.droppables={},ne.length=0}return{draggable:et,droppable:Cn,subscribe:le,clean:bn}}function Cl(){var te=Ut(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||ht(!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=Ut(function(){return Xo(te)},[te]),le=(0,y.useRef)(null);(0,y.useEffect)(function(){var He=document.createElement("div");return le.current=He,He.id=ne,He.setAttribute("aria-live","assertive"),He.setAttribute("aria-atomic","true"),(0,ce.Z)(He.style,Ao),Go().appendChild(He),function(){setTimeout(function(){var tn=Go();tn.contains(He)&&tn.removeChild(He),He===le.current&&(le.current=null)})}},[ne]);var he=At(function($e){var He=le.current;if(He){He.textContent=$e;return}},[]);return he}var Dl=0,vl={separator:"::"};function Oo(){Dl=0}function nl(te,ne){return ne===void 0&&(ne=vl),Ut(function(){return""+te+ne.separator+Dl++},[ne.separator,te])}function Lo(te){var ne=te.contextId,le=te.uniqueId;return"rbd-hidden-text-"+ne+"-"+le}function Kl(te){var ne=te.contextId,le=te.text,he=nl("hidden-text",{separator:"-"}),$e=Ut(function(){return Lo({contextId:ne,uniqueId:he})},[he,ne]);return(0,y.useEffect)(function(){var et=document.createElement("div");return et.id=$e,et.textContent=le,et.style.display="none",Go().appendChild(et),function(){var tn=Go();tn.contains(et)&&tn.removeChild(et)}},[$e,le]),$e}var gl=y.createContext(null),ts={react:"^16.8.5","react-dom":"^16.8.5"},os=/(\d+)\.(\d+)\.(\d+)/,Bs=function(ne){var le=os.exec(ne);le==null&&ht(!1);var he=Number(le[1]),$e=Number(le[2]),He=Number(le[3]);return{major:he,minor:$e,patch:He,raw:ne}},rl=function(ne,le){return le.major>ne.major?!0:le.major<ne.major?!1:le.minor>ne.minor?!0:le.minor<ne.minor?!1:le.patch>=ne.patch},fu=function(te,ne){var le=Bs(te),he=Bs(ne);rl(le,he)},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 le(et){return et===te}function he(et){te&&ht(!1);var dt={abandon:et};return te=dt,dt}function $e(){te||ht(!1),te=null}function He(){te&&(te.abandon(),$e())}return{isClaimed:ne,isActive:le,claim:he,release:$e,tryAbandon:He}}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],le=Kr(ne,function(he){return"on"+he in document});return le||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,le=te.completed,he=te.getPhase,$e=te.setPhase;return[{eventName:"mousemove",fn:function(et){var dt=et.button,tn=et.clientX,Cn=et.clientY;if(dt===Bu){var bn={x:tn,y:Cn},sn=he();if(sn.type==="DRAGGING"){et.preventDefault(),sn.actions.move(bn);return}sn.type!=="PENDING"&&ht(!1);var fn=sn.point;if(Ys(fn,bn)){et.preventDefault();var An=sn.actions.fluidLift(bn);$e({type:"DRAGGING",actions:An})}}}},{eventName:"mouseup",fn:function(et){var dt=he();if(dt.type!=="DRAGGING"){ne();return}et.preventDefault(),dt.actions.drop({shouldBlockNextClick:!0}),le()}},{eventName:"mousedown",fn:function(et){he().type==="DRAGGING"&&et.preventDefault(),ne()}},{eventName:"keydown",fn:function(et){var dt=he();if(dt.type==="PENDING"){ne();return}if(et.keyCode===nu){et.preventDefault(),ne();return}Gl(et)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){he().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(et){var dt=he();if(dt.type==="IDLE"&&ht(!1),dt.actions.shouldRespectForcePress()){ne();return}et.preventDefault()}},{eventName:ks,fn:ne}]}function $u(te){var ne=(0,y.useRef)(pu),le=(0,y.useRef)(ur),he=Ut(function(){return{eventName:"mousedown",fn:function(sn){if(!sn.defaultPrevented&&sn.button===Bu&&!(sn.ctrlKey||sn.metaKey||sn.shiftKey||sn.altKey)){var fn=te.findClosestDraggableId(sn);if(fn){var An=te.tryGetLock(fn,et,{sourceEvent:sn});if(An){sn.preventDefault();var sr={x:sn.clientX,y:sn.clientY};le.current(),Cn(An,sr)}}}}}},[te]),$e=Ut(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(sn){if(!sn.defaultPrevented){var fn=te.findClosestDraggableId(sn);if(fn){var An=te.findOptionsForDraggable(fn);An&&(An.shouldRespectForcePress||te.canGetLock(fn)&&sn.preventDefault())}}}}},[te]),He=At(function(){var sn={passive:!1,capture:!0};le.current=Vt(window,[$e,he],sn)},[$e,he]),et=At(function(){var bn=ne.current;bn.type!=="IDLE"&&(ne.current=pu,le.current(),He())},[He]),dt=At(function(){var bn=ne.current;et(),bn.type==="DRAGGING"&&bn.actions.cancel({shouldBlockNextClick:!0}),bn.type==="PENDING"&&bn.actions.abort()},[et]),tn=At(function(){var sn={capture:!0,passive:!1},fn=Qs({cancel:dt,completed:et,getPhase:function(){return ne.current},setPhase:function(sr){ne.current=sr}});le.current=Vt(window,fn,sn)},[dt,et]),Cn=At(function(sn,fn){ne.current.type!=="IDLE"&&ht(!1),ne.current={type:"PENDING",point:fn,actions:sn},tn()},[tn]);Co(function(){return He(),function(){le.current()}},[He])}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 le(){ne(),te.cancel()}function he(){ne(),te.drop()}return[{eventName:"keydown",fn:function(He){if(He.keyCode===nu){He.preventDefault(),le();return}if(He.keyCode===mu){He.preventDefault(),he();return}if(He.keyCode===zl){He.preventDefault(),te.moveDown();return}if(He.keyCode===fl){He.preventDefault(),te.moveUp();return}if(He.keyCode===xl){He.preventDefault(),te.moveRight();return}if(He.keyCode===wo){He.preventDefault(),te.moveLeft();return}if(tc[He.keyCode]){He.preventDefault();return}Gl(He)}},{eventName:"mousedown",fn:le},{eventName:"mouseup",fn:le},{eventName:"click",fn:le},{eventName:"touchstart",fn:le},{eventName:"resize",fn:le},{eventName:"wheel",fn:le,options:{passive:!0}},{eventName:ks,fn:le}]}function Wu(te){var ne=(0,y.useRef)(ju),le=Ut(function(){return{eventName:"keydown",fn:function(He){if(He.defaultPrevented||He.keyCode!==mu)return;var et=te.findClosestDraggableId(He);if(!et)return;var dt=te.tryGetLock(et,bn,{sourceEvent:He});if(!dt)return;He.preventDefault();var tn=!0,Cn=dt.snapLift();ne.current();function bn(){tn||ht(!1),tn=!1,ne.current(),he()}ne.current=Vt(window,Vs(Cn,bn),{capture:!0,passive:!1})}}},[te]),he=At(function(){var He={passive:!1,capture:!0};ne.current=Vt(window,[le],He)},[le]);Co(function(){return he(),function(){ne.current()}},[he])}var zu={type:"IDLE"},Hu=120,hu=.15;function sc(te){var ne=te.cancel,le=te.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function($e){$e.preventDefault()}},{eventName:"keydown",fn:function($e){if(le().type!=="DRAGGING"){ne();return}$e.keyCode===nu&&$e.preventDefault(),ne()}},{eventName:ks,fn:ne}]}function uc(te){var ne=te.cancel,le=te.completed,he=te.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(He){var et=he();if(et.type!=="DRAGGING"){ne();return}et.hasMoved=!0;var dt=He.touches[0],tn=dt.clientX,Cn=dt.clientY,bn={x:tn,y:Cn};He.preventDefault(),et.actions.move(bn)}},{eventName:"touchend",fn:function(He){var et=he();if(et.type!=="DRAGGING"){ne();return}He.preventDefault(),et.actions.drop({shouldBlockNextClick:!0}),le()}},{eventName:"touchcancel",fn:function(He){if(he().type!=="DRAGGING"){ne();return}He.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(He){var et=he();et.type==="IDLE"&&ht(!1);var dt=He.touches[0];if(dt){var tn=dt.force>=hu;if(tn){var Cn=et.actions.shouldRespectForcePress();if(et.type==="PENDING"){Cn&&ne();return}if(Cn){if(et.hasMoved){He.preventDefault();return}ne();return}He.preventDefault()}}}},{eventName:ks,fn:ne}]}function vu(te){var ne=(0,y.useRef)(zu),le=(0,y.useRef)(ur),he=At(function(){return ne.current},[]),$e=At(function(An){ne.current=An},[]),He=Ut(function(){return{eventName:"touchstart",fn:function(An){if(!An.defaultPrevented){var sr=te.findClosestDraggableId(An);if(sr){var va=te.tryGetLock(sr,dt,{sourceEvent:An});if(va){var Na=An.touches[0],ka=Na.clientX,oi=Na.clientY,Fi={x:ka,y:oi};le.current(),sn(va,Fi)}}}}}},[te]),et=At(function(){var An={capture:!0,passive:!1};le.current=Vt(window,[He],An)},[He]),dt=At(function(){var fn=ne.current;fn.type!=="IDLE"&&(fn.type==="PENDING"&&clearTimeout(fn.longPressTimerId),$e(zu),le.current(),et())},[et,$e]),tn=At(function(){var fn=ne.current;dt(),fn.type==="DRAGGING"&&fn.actions.cancel({shouldBlockNextClick:!0}),fn.type==="PENDING"&&fn.actions.abort()},[dt]),Cn=At(function(){var An={capture:!0,passive:!1},sr={cancel:tn,completed:dt,getPhase:he},va=Vt(window,uc(sr),An),Na=Vt(window,sc(sr),An);le.current=function(){va(),Na()}},[tn,he,dt]),bn=At(function(){var An=he();An.type!=="PENDING"&&ht(!1);var sr=An.actions.fluidLift(An.point);$e({type:"DRAGGING",actions:sr,hasMoved:!1})},[he,$e]),sn=At(function(An,sr){he().type!=="IDLE"&&ht(!1);var va=setTimeout(bn,Hu);$e({type:"PENDING",point:sr,actions:An,longPressTimerId:va}),Cn()},[Cn,he,$e,bn]);Co(function(){return et(),function(){le.current();var sr=he();sr.type==="PENDING"&&(clearTimeout(sr.longPressTimerId),$e(zu))}},[he,et,$e]),Co(function(){var An=Vt(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return An},[])}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 le=!!gu[ne.tagName.toLowerCase()];if(le)return!0;var he=ne.getAttribute("contenteditable");return he==="true"||he===""?!0:ne===te?!1:Du(te,ne.parentElement)}function yu(te,ne){var le=ne.target;return Do(le)?Du(te,le):!1}var Ku=function(te){return pn(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"],le=Kr(ne,function(he){return he in Element.prototype});return le||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 le=ne.target;if(!nc(le))return null;var he=Iu(te),$e=cc(le,he);return!$e||!Do($e)?null:$e}function au(te,ne){var le=Js(te,ne);return le?le.getAttribute(cl.draggableId):null}function Uu(te,ne){var le="["+mi.contextId+'="'+te+'"]',he=Ya(document.querySelectorAll(le)),$e=Kr(he,function(He){return He.getAttribute(mi.id)===ne});return!$e||!Do($e)?null:$e}function Xu(te){te.preventDefault()}function Pu(te){var ne=te.expected,le=te.phase,he=te.isLockActive,$e=te.shouldWarn;return!(!he()||ne!==le)}function Fo(te){var ne=te.lockAPI,le=te.store,he=te.registry,$e=te.draggableId;if(ne.isClaimed())return!1;var He=he.draggable.findById($e);return!(!He||!He.options.isEnabled||!Kn(le.getState(),$e))}function Mo(te){var ne=te.lockAPI,le=te.contextId,he=te.store,$e=te.registry,He=te.draggableId,et=te.forceSensorStop,dt=te.sourceEvent,tn=Fo({lockAPI:ne,store:he,registry:$e,draggableId:He});if(!tn)return null;var Cn=$e.draggable.getById(He),bn=Uu(le,Cn.descriptor.id);if(!bn||dt&&!Cn.options.canDragInteractiveElements&&yu(bn,dt))return null;var sn=ne.claim(et||ur),fn="PRE_DRAG";function An(){return Cn.options.shouldRespectForcePress}function sr(){return ne.isActive(sn)}function va(ho,Zo){Pu({expected:ho,phase:fn,isLockActive:sr,shouldWarn:!0})&&he.dispatch(Zo())}var Na=va.bind(null,"DRAGGING");function ka(ho){function Zo(){ne.release(),fn="COMPLETED"}fn!=="PRE_DRAG"&&(Zo(),fn!=="PRE_DRAG"&&ht(!1)),he.dispatch(Yr(ho.liftActionArgs)),fn="DRAGGING";function Hl(Ho,Vl){if(Vl===void 0&&(Vl={shouldBlockNextClick:!1}),ho.cleanup(),Vl.shouldBlockNextClick){var us=Vt(window,[{eventName:"click",fn:Xu,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(us)}Zo(),he.dispatch(yl({reason:Ho}))}return(0,ce.Z)({isActive:function(){return Pu({expected:"DRAGGING",phase:fn,isLockActive:sr,shouldWarn:!1})},shouldRespectForcePress:An,drop:function(Vl){return Hl("DROP",Vl)},cancel:function(Vl){return Hl("CANCEL",Vl)}},ho.actions)}function oi(ho){var Zo=Rn(function(Ho){Na(function(){return qo({client:Ho})})}),Hl=ka({liftActionArgs:{id:He,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 Na(Oi)},moveRight:function(){return Na(Tl)},moveDown:function(){return Na(_l)},moveLeft:function(){return Na(Gr)}};return ka({liftActionArgs:{id:He,clientSelection:Ku(bn),movementMode:"SNAP"},cleanup:ur,actions:ho})}function Ti(){var ho=Pu({expected:"PRE_DRAG",phase:fn,isLockActive:sr,shouldWarn:!0});ho&&ne.release()}var xo={isActive:function(){return Pu({expected:"PRE_DRAG",phase:fn,isLockActive:sr,shouldWarn:!1})},shouldRespectForcePress:An,fluidLift:oi,snapLift:Fi,abort:Ti};return xo}var Ql=[$u,Wu,vu];function ds(te){var ne=te.contextId,le=te.store,he=te.registry,$e=te.customSensors,He=te.enableDefaultSensors,et=[].concat(He?Ql:[],$e||[]),dt=(0,y.useState)(function(){return Hs()})[0],tn=At(function(oi,Fi){oi.isDragging&&!Fi.isDragging&&dt.tryAbandon()},[dt]);Co(function(){var oi=le.getState(),Fi=le.subscribe(function(){var Ti=le.getState();tn(oi,Ti),oi=Ti});return Fi},[dt,le,tn]),Co(function(){return dt.tryAbandon},[dt.tryAbandon]);var Cn=At(function(ka){return Fo({lockAPI:dt,registry:he,store:le,draggableId:ka})},[dt,he,le]),bn=At(function(ka,oi,Fi){return Mo({lockAPI:dt,registry:he,contextId:ne,store:le,draggableId:ka,forceSensorStop:oi,sourceEvent:Fi&&Fi.sourceEvent?Fi.sourceEvent:null})},[ne,dt,he,le]),sn=At(function(ka){return au(ne,ka)},[ne]),fn=At(function(ka){var oi=he.draggable.findById(ka);return oi?oi.options:null},[he.draggable]),An=At(function(){dt.isClaimed()&&(dt.tryAbandon(),le.getState().phase!=="IDLE"&&le.dispatch(bo()))},[dt,le]),sr=At(dt.isClaimed,[dt]),va=Ut(function(){return{canGetLock:Cn,tryGetLock:bn,findClosestDraggableId:sn,findOptionsForDraggable:fn,tryReleaseLock:An,isLockClaimed:sr}},[Cn,bn,sn,fn,An,sr]);Vu(et);for(var Na=0;Na<et.length;Na++)et[Na](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||ht(!1),te.current}function Ks(te){var ne=te.contextId,le=te.setCallbacks,he=te.sensors,$e=te.nonce,He=te.dragHandleUsageInstructions,et=(0,y.useRef)(null);al();var dt=ss(te),tn=At(function(){return Jl(dt.current)},[dt]),Cn=tl(ne),bn=Kl({contextId:ne,text:He}),sn=Bi(ne,$e),fn=At(function(Ho){_s(et).dispatch(Ho)},[]),An=Ut(function(){return(0,Le.DE)({publishWhileDragging:ba,updateDroppableScroll:ra,updateDroppableIsEnabled:Aa,updateDroppableIsCombineEnabled:ao,collectionStarting:ca},fn)},[fn]),sr=Cl(),va=Ut(function(){return Xn(sr,An)},[sr,An]),Na=Ut(function(){return yo((0,ce.Z)({scrollWindow:ia,scrollDroppable:va.scrollDroppable},(0,Le.DE)({move:qo},fn)))},[va.scrollDroppable,fn]),ka=jo(ne),oi=Ut(function(){return on({announce:Cn,autoScroller:Na,dimensionMarshal:va,focusMarshal:ka,getResponders:tn,styleMarshal:sn})},[Cn,Na,va,ka,tn,sn]);et.current=oi;var Fi=At(function(){var Ho=_s(et),Vl=Ho.getState();Vl.phase!=="IDLE"&&Ho.dispatch(bo())},[]),Ti=At(function(){var Ho=_s(et).getState();return Ho.isDragging||Ho.phase==="DROP_ANIMATING"},[]),xo=Ut(function(){return{isDragging:Ti,tryAbort:Fi}},[Ti,Fi]);le(xo);var ho=At(function(Ho){return Kn(_s(et).getState(),Ho)},[]),Zo=At(function(){return ki(_s(et).getState())},[]),Hl=Ut(function(){return{marshal:va,focus:ka,contextId:ne,canLift:ho,isMovementAllowed:Zo,dragHandleUsageInstructionsId:bn,registry:sr}},[ne,va,bn,ka,ho,Zo,sr]);return ds({contextId:ne,store:oi,registry:sr,customSensors:he,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 Ut(function(){return""+Ts++},[])}function Tc(){iu(),Oo()}function Au(te){var ne=Yu(),le=te.dragHandleUsageInstructions||Gn.dragHandleUsageInstructions;return y.createElement(cn,null,function(he){return y.createElement(Ks,{nonce:te.nonce,contextId:ne,setCallbacks:he,dragHandleUsageInstructions:le,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(le){return ne===le}},ac=rc("scroll"),Mc=rc("auto"),Rc=rc("visible"),bc=function(ne,le){return le(ne.overflowX)||le(ne.overflowY)},wl=function(ne,le){return le(ne.overflowX)&&le(ne.overflowY)},Ec=function(ne){var le=window.getComputedStyle(ne),he={overflowX:le.overflowX,overflowY:le.overflowY};return bc(he,ac)||bc(he,Mc)},dc=function(){return!1;var ne,le,he,$e},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 le=window.getComputedStyle(ne);return le.position==="fixed"?!0:te(ne.parentElement)},Cc=function(te){var ne=Ou(te),le=fc(te);return{closestScrollable:ne,isFixedOnPage:le}},xc=function(te){var ne=te.descriptor,le=te.isEnabled,he=te.isCombineEnabled,$e=te.isFixedOnPage,He=te.direction,et=te.client,dt=te.page,tn=te.closest,Cn=function(){if(!tn)return null;var An=tn.scrollSize,sr=tn.client,va=Bn({scrollHeight:An.scrollHeight,scrollWidth:An.scrollWidth,height:sr.paddingBox.height,width:sr.paddingBox.width});return{pageMarginBox:tn.page.marginBox,frameClient:sr,scrollSize:An,shouldClipSubject:tn.shouldClipSubject,scroll:{initial:tn.scroll,current:tn.scroll,max:va,diff:{value:jn,displacement:jn}}}}(),bn=He==="vertical"?Dr:jr,sn=pa({page:dt,withPlaceholder:null,axis:bn,frame:Cn}),fn={descriptor:ne,isCombineEnabled:he,isFixedOnPage:$e,axis:bn,isEnabled:le,client:et,page:dt,frame:Cn,subject:sn};return fn},Sc=function(ne,le){var he=Zt(ne);if(!le||ne!==le)return he;var $e=he.paddingBox.top-le.scrollTop,He=he.paddingBox.left-le.scrollLeft,et=$e+le.scrollHeight,dt=He+le.scrollWidth,tn={top:$e,right:dt,bottom:et,left:He},Cn=nt(tn,he.border),bn=Wt({borderBox:Cn,margin:he.margin,border:he.border,padding:he.padding});return bn},wc=function(te){var ne=te.ref,le=te.descriptor,he=te.env,$e=te.windowScroll,He=te.direction,et=te.isDropDisabled,dt=te.isCombineEnabled,tn=te.shouldClipSubject,Cn=he.closestScrollable,bn=Sc(ne,Cn),sn=On(bn,$e),fn=function(){if(!Cn)return null;var sr=Zt(Cn),va={scrollHeight:Cn.scrollHeight,scrollWidth:Cn.scrollWidth};return{client:sr,page:On(sr,$e),scroll:Nu(Cn),scrollSize:va,shouldClipSubject:tn}}(),An=xc({descriptor:le,isEnabled:!et,isCombineEnabled:dt,isFixedOnPage:he.isFixedOnPage,direction:He,client:bn,page:sn,closest:fn});return An},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||ht(!1),ne}var Uo=function(ne){return ne&&ne.env.closestScrollable||null};function Dc(te){var ne=(0,y.useRef)(null),le=Qu(gl),he=nl("droppable"),$e=le.registry,He=le.marshal,et=ss(te),dt=Ut(function(){return{id:te.droppableId,type:te.type,mode:te.mode}},[te.droppableId,te.mode,te.type]),tn=(0,y.useRef)(dt),Cn=Ut(function(){return Pn(function(Ti,xo){ne.current||ht(!1);var ho={x:Ti,y:xo};He.updateDroppableScroll(dt.id,ho)})},[dt.id,He]),bn=At(function(){var Ti=ne.current;return!Ti||!Ti.env.closestScrollable?jn:Nu(Ti.env.closestScrollable)},[]),sn=At(function(){var Ti=bn();Cn(Ti.x,Ti.y)},[bn,Cn]),fn=Ut(function(){return Rn(sn)},[sn]),An=At(function(){var Ti=ne.current,xo=Uo(Ti);Ti&&xo||ht(!1);var ho=Ti.scrollOptions;if(ho.shouldPublishImmediately){sn();return}fn()},[fn,sn]),sr=At(function(Ti,xo){ne.current&&ht(!1);var ho=et.current,Zo=ho.getDroppableRef();Zo||ht(!1);var Hl=Cc(Zo),Ho={ref:Zo,descriptor:dt,env:Hl,scrollOptions:xo};ne.current=Ho;var Vl=wc({ref:Zo,descriptor:dt,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,le.contextId),us.addEventListener("scroll",An,ic(Ho.scrollOptions))),Vl},[le.contextId,dt,An,et]),va=At(function(){var Ti=ne.current,xo=Uo(Ti);return Ti&&xo||ht(!1),Nu(xo)},[]),Na=At(function(){var Ti=ne.current;Ti||ht(!1);var xo=Uo(Ti);ne.current=null,xo&&(fn.cancel(),xo.removeAttribute(li.contextId),xo.removeEventListener("scroll",An,ic(Ti.scrollOptions)))},[An,fn]),ka=At(function(Ti){var xo=ne.current;xo||ht(!1);var ho=Uo(xo);ho||ht(!1),ho.scrollTop+=Ti.y,ho.scrollLeft+=Ti.x},[]),oi=Ut(function(){return{getDimensionAndWatchScroll:sr,getScrollWhileDragging:va,dragStopped:Na,scroll:ka}},[Na,sr,va,ka]),Fi=Ut(function(){return{uniqueId:he,descriptor:dt,callbacks:oi}},[oi,dt,he]);Co(function(){return tn.current=Fi.descriptor,$e.droppable.register(Fi),function(){ne.current&&Na(),$e.droppable.unregister(Fi)}},[oi,dt,Na,Fi,He,$e.droppable]),Co(function(){ne.current&&He.updateDroppableIsEnabled(tn.current.id,!te.isDropDisabled)},[te.isDropDisabled,He]),Co(function(){ne.current&&He.updateDroppableIsCombineEnabled(tn.current.id,te.isCombineEnabled)},[te.isCombineEnabled,He])}function mc(){}var bu={width:0,height:0,margin:Ur},Lc=function(ne){var le=ne.isAnimatingOpenOnMount,he=ne.placeholder,$e=ne.animate;return le||$e==="close"?bu:{height:he.client.borderBox.height,width:he.client.borderBox.width,margin:he.client.margin}},oc=function(ne){var le=ne.isAnimatingOpenOnMount,he=ne.placeholder,$e=ne.animate,He=Lc({isAnimatingOpenOnMount:le,placeholder:he,animate:$e});return{display:he.display,boxSizing:"border-box",width:He.width,height:He.height,marginTop:He.margin.top,marginRight:He.margin.right,marginBottom:He.margin.bottom,marginLeft:He.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:$e!=="none"?gs.placeholder:null}};function Zc(te){var ne=(0,y.useRef)(null),le=At(function(){ne.current&&(clearTimeout(ne.current),ne.current=null)},[]),he=te.animate,$e=te.onTransitionEnd,He=te.onClose,et=te.contextId,dt=(0,y.useState)(te.animate==="open"),tn=dt[0],Cn=dt[1];(0,y.useEffect)(function(){return tn?he!=="open"?(le(),Cn(!1),mc):ne.current?mc:(ne.current=setTimeout(function(){ne.current=null,Cn(!1)}),le):mc},[he,tn,le]);var bn=At(function(fn){fn.propertyName==="height"&&($e(),he==="close"&&He())},[he,He,$e]),sn=oc({isAnimatingOpenOnMount:tn,animate:te.animate,placeholder:te.placeholder});return y.createElement(te.placeholder.tagName,{style:sn,"data-rbd-placeholder-context-id":et,onTransitionEnd:bn,ref:te.innerRef})}var Rl=y.memo(Zc),pc=y.createContext(null);function Fc(te){te&&Do(te)||ht(!1)}function hc(te){return typeof te=="boolean"}function _u(te,ne){ne.forEach(function(le){return le(te)})}var a=[function(ne){var le=ne.props;le.droppableId||ht(!1),typeof le.droppableId!="string"&&ht(!1)},function(ne){var le=ne.props;hc(le.isDropDisabled)||ht(!1),hc(le.isCombineEnabled)||ht(!1),hc(le.ignoreContainerClipping)||ht(!1)},function(ne){var le=ne.getDroppableRef;Fc(le())}],b=[function(ne){var le=ne.props,he=ne.getPlaceholderRef;if(le.placeholder)var $e=he()}],z=[function(ne){var le=ne.props;le.renderClone||ht(!1)},function(ne){var le=ne.getPlaceholderRef;le()&&ht(!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,ve.Z)(ne,te);function ne(){for(var he,$e=arguments.length,He=new Array($e),et=0;et<$e;et++)He[et]=arguments[et];return he=te.call.apply(te,[this].concat(He))||this,he.state={isVisible:!!he.props.on,data:he.props.on,animate:he.props.shouldAnimate&&he.props.on?"open":"none"},he.onClose=function(){he.state.animate==="close"&&he.setState({isVisible:!1})},he}ne.getDerivedStateFromProps=function($e,He){return $e.shouldAnimate?$e.on?{isVisible:!0,data:$e.on,animate:"open"}:He.isVisible?{isVisible:!0,data:He.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!$e.on,data:$e.on,animate:"none"}};var le=ne.prototype;return le.render=function(){if(!this.state.isVisible)return null;var $e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children($e)},ne}(y.PureComponent),se={dragging:5e3,dropAnimating:4500},ge=function(ne,le){return le?gs.drop(le.duration):ne?gs.snap:gs.fluid},_e=function(ne,le){return ne?le?Ss.opacity.drop:Ss.opacity.combining:null},Ge=function(ne){return ne.forceShouldAnimate!=null?ne.forceShouldAnimate:ne.mode==="SNAP"};function ot(te){var ne=te.dimension,le=ne.client,he=te.offset,$e=te.combineWith,He=te.dropping,et=!!$e,dt=Ge(te),tn=!!He,Cn=tn?Ps.drop(he,et):Ps.moveTo(he),bn={position:"fixed",top:le.marginBox.top,left:le.marginBox.left,boxSizing:"border-box",width:le.borderBox.width,height:le.borderBox.height,transition:ge(dt,He),transform:Cn,opacity:_e(et,tn),zIndex:tn?se.dropAnimating:se.dragging,pointerEvents:"none"};return bn}function dn(te){return{transform:Ps.moveTo(te.offset),transition:te.shouldAnimateDisplacement?null:"none"}}function En(te){return te.type==="DRAGGING"?ot(te):dn(te)}function Yn(te,ne,le){le===void 0&&(le=jn);var he=window.getComputedStyle(ne),$e=ne.getBoundingClientRect(),He=Vn($e,he),et=On(He,le),dt={client:He,tagName:ne.tagName.toLowerCase(),display:he.display},tn={x:He.marginBox.width,y:He.marginBox.height},Cn={descriptor:te,placeholder:dt,displaceBy:tn,client:He,page:et};return Cn}function zn(te){var ne=nl("draggable"),le=te.descriptor,he=te.registry,$e=te.getDraggableRef,He=te.canDragInteractiveElements,et=te.shouldRespectForcePress,dt=te.isEnabled,tn=Ut(function(){return{canDragInteractiveElements:He,shouldRespectForcePress:et,isEnabled:dt}},[He,dt,et]),Cn=At(function(An){var sr=$e();return sr||ht(!1),Yn(le,sr,An)},[le,$e]),bn=Ut(function(){return{uniqueId:ne,descriptor:le,options:tn,getDimension:Cn}},[le,Cn,tn,ne]),sn=(0,y.useRef)(bn),fn=(0,y.useRef)(!0);Co(function(){return he.draggable.register(sn.current),function(){return he.draggable.unregister(sn.current)}},[he.draggable]),Co(function(){if(fn.current){fn.current=!1;return}var An=sn.current;sn.current=bn,he.draggable.update(bn,An)},[bn,he.draggable])}function Mr(te,ne,le){Wl(function(){function he(He){return"Draggable[id: "+He+"]: "}var $e=te.draggableId;$e||ht(!1),typeof $e!="string"&&ht(!1),Za(te.index)||ht(!1),te.mapped.type!=="DRAGGING"&&(Fc(le()),te.isEnabled&&(zo(ne,$e)||ht(!1)))})}function qr(te){}function Ba(te){te.preventDefault()}function Ka(te){var ne=(0,y.useRef)(null),le=At(function(Ho){ne.current=Ho},[]),he=At(function(){return ne.current},[]),$e=Qu(gl),He=$e.contextId,et=$e.dragHandleUsageInstructionsId,dt=$e.registry,tn=Qu(pc),Cn=tn.type,bn=tn.droppableId,sn=Ut(function(){return{id:te.draggableId,index:te.index,type:Cn,droppableId:bn}},[te.draggableId,te.index,Cn,bn]),fn=te.children,An=te.draggableId,sr=te.isEnabled,va=te.shouldRespectForcePress,Na=te.canDragInteractiveElements,ka=te.isClone,oi=te.mapped,Fi=te.dropAnimationFinished;if(Mr(te,He,he),qr(ka),!ka){var Ti=Ut(function(){return{descriptor:sn,registry:dt,getDraggableRef:he,canDragInteractiveElements:Na,shouldRespectForcePress:va,isEnabled:sr}},[sn,dt,he,Na,va,sr]);zn(Ti)}var xo=Ut(function(){return sr?{tabIndex:0,role:"button","aria-describedby":et,"data-rbd-drag-handle-draggable-id":An,"data-rbd-drag-handle-context-id":He,draggable:!1,onDragStart:Ba}:null},[He,et,An,sr]),ho=At(function(Ho){oi.type==="DRAGGING"&&oi.dropping&&Ho.propertyName==="transform"&&Fi()},[Fi,oi]),Zo=Ut(function(){var Ho=En(oi),Vl=oi.type==="DRAGGING"&&oi.dropping?ho:null,us={innerRef:le,draggableProps:{"data-rbd-draggable-context-id":He,"data-rbd-draggable-id":An,style:Ho,onTransitionEnd:Vl},dragHandleProps:xo};return us},[He,xo,An,oi,ho,le]),Hl=Ut(function(){return{draggableId:sn.id,type:sn.type,source:{index:sn.index,droppableId:sn.droppableId}}},[sn.droppableId,sn.id,sn.index,sn.type]);return fn(Zo,oi.snapshot,Hl)}var ii=function(te,ne){return te===ne},Wa=function(te){var ne=te.combine,le=te.destination;return le?le.droppableId:ne?ne.droppableId:null},Ei=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=Pn(function($e,He){return{x:$e,y:He}}),ne=Pn(function($e,He,et,dt,tn){return{isDragging:!0,isClone:He,isDropAnimating:!!tn,dropAnimation:tn,mode:$e,draggingOver:et,combineWith:dt,combineTargetFor:null}}),le=Pn(function($e,He,et,dt,tn,Cn,bn){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:tn,combineWith:Cn,mode:He,offset:$e,dimension:et,forceShouldAnimate:bn,snapshot:ne(He,dt,tn,Cn,null)}}}),he=function(He,et){if(He.isDragging){if(He.critical.draggable.id!==et.draggableId)return null;var dt=He.current.client.offset,tn=He.dimensions.draggables[et.draggableId],Cn=vr(He.impact),bn=to(He.impact),sn=He.forceShouldAnimate;return le(te(dt.x,dt.y),He.movementMode,tn,et.isClone,Cn,bn,sn)}if(He.phase==="DROP_ANIMATING"){var fn=He.completed;if(fn.result.draggableId!==et.draggableId)return null;var An=et.isClone,sr=He.dimensions.draggables[et.draggableId],va=fn.result,Na=va.mode,ka=Wa(va),oi=Ei(va),Fi=He.dropDuration,Ti={duration:Fi,curve:cs.drop,moveTo:He.newHomeClientOffset,opacity:oi?Ss.opacity.drop:null,scale:oi?Ss.scale.drop:null};return{mapped:{type:"DRAGGING",offset:He.newHomeClientOffset,dimension:sr,dropping:Ti,draggingOver:ka,combineWith:oi,mode:Na,forceShouldAnimate:null,snapshot:ne(Na,An,ka,oi,Ti)}}}return null};return he}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:jn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bo(null)}};function ql(){var te=Pn(function(et,dt){return{x:et,y:dt}}),ne=Pn(Bo),le=Pn(function(et,dt,tn){return dt===void 0&&(dt=null),{mapped:{type:"SECONDARY",offset:et,combineTargetFor:dt,shouldAnimateDisplacement:tn,snapshot:ne(dt)}}}),he=function(dt){return dt?le(jn,dt,!0):null},$e=function(dt,tn,Cn,bn){var sn=Cn.displaced.visible[dt],fn=!!(bn.inVirtualList&&bn.effected[dt]),An=Ci(Cn),sr=An&&An.draggableId===dt?tn:null;if(!sn){if(!fn)return he(sr);if(Cn.displaced.invisible[dt])return null;var va=Lr(bn.displacedBy.point),Na=te(va.x,va.y);return le(Na,sr,!0)}if(fn)return he(sr);var ka=Cn.displacedBy.point,oi=te(ka.x,ka.y);return le(oi,sr,sn.shouldAnimate)},He=function(dt,tn){if(dt.isDragging)return dt.critical.draggable.id===tn.draggableId?null:$e(tn.draggableId,dt.critical.draggable.id,dt.impact,dt.afterCritical);if(dt.phase==="DROP_ANIMATING"){var Cn=dt.completed;return Cn.result.draggableId===tn.draggableId?null:$e(tn.draggableId,Cn.result.draggableId,Cn.impact,Cn.afterCritical)}return null};return He}var Fl=function(){var ne=Gi(),le=ql(),he=function(He,et){return ne(He,et)||le(He,et)||ml};return he},Cs={dropAnimationFinished:Ms},fs=Ze(Fl,Cs,null,{context:Yl,pure:!0,areStatePropsEqual:ii})(Ka);function kl(te){var ne=Qu(pc),le=ne.isUsingCloneFor;return le===te.draggableId&&!te.isClone?null:y.createElement(fs,te)}function ms(te){var ne=typeof te.isDragDisabled=="boolean"?!te.isDragDisabled:!0,le=!!te.disableInteractiveElementBlocking,he=!!te.shouldRespectForcePress;return y.createElement(kl,(0,ce.Z)({},te,{isClone:!1,isEnabled:ne,canDragInteractiveElements:le,shouldRespectForcePress:he}))}function ns(te){var ne=(0,y.useContext)(gl);ne||ht(!1);var le=ne.contextId,he=ne.isMovementAllowed,$e=(0,y.useRef)(null),He=(0,y.useRef)(null),et=te.children,dt=te.droppableId,tn=te.type,Cn=te.mode,bn=te.direction,sn=te.ignoreContainerClipping,fn=te.isDropDisabled,An=te.isCombineEnabled,sr=te.snapshot,va=te.useClone,Na=te.updateViewportMaxScroll,ka=te.getContainerForClone,oi=At(function(){return $e.current},[]),Fi=At(function(hs){$e.current=hs},[]),Ti=At(function(){return He.current},[]),xo=At(function(hs){He.current=hs},[]);x({props:te,getDroppableRef:oi,getPlaceholderRef:Ti});var ho=At(function(){he()&&Na({maxScroll:Ln()})},[he,Na]);Dc({droppableId:dt,type:tn,mode:Cn,direction:bn,isDropDisabled:fn,isCombineEnabled:An,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:le,onTransitionEnd:ho})}),Hl=Ut(function(){return{innerRef:Fi,placeholder:Zo,droppableProps:{"data-rbd-droppable-id":dt,"data-rbd-droppable-context-id":le}}},[le,dt,Zo,Fi]),Ho=va?va.dragging.draggableId:null,Vl=Ut(function(){return{droppableId:dt,type:tn,isUsingCloneFor:Ho}},[dt,Ho,tn]);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 un.createPortal(qs,ka())}return y.createElement(pc.Provider,{value:Vl},et(Hl,sr),us())}var Ll=function(ne,le){return ne===le.droppable.type},Zl=function(ne,le){return le.draggables[ne.draggable.id]},Pl=function(){var ne={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},le=(0,ce.Z)({},ne,{shouldAnimatePlaceholder:!1}),he=Pn(function(et){return{draggableId:et.id,type:et.type,source:{index:et.index,droppableId:et.droppableId}}}),$e=Pn(function(et,dt,tn,Cn,bn,sn){var fn=bn.descriptor.id,An=bn.descriptor.droppableId===et;if(An){var sr=sn?{render:sn,dragging:he(bn.descriptor)}:null,va={isDraggingOver:tn,draggingOverWith:tn?fn:null,draggingFromThisWith:fn,isUsingPlaceholder:!0};return{placeholder:bn.placeholder,shouldAnimatePlaceholder:!1,snapshot:va,useClone:sr}}if(!dt)return le;if(!Cn)return ne;var Na={isDraggingOver:tn,draggingOverWith:fn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:bn.placeholder,shouldAnimatePlaceholder:!0,snapshot:Na,useClone:null}}),He=function(dt,tn){var Cn=tn.droppableId,bn=tn.type,sn=!tn.isDropDisabled,fn=tn.renderClone;if(dt.isDragging){var An=dt.critical;if(!Ll(bn,An))return le;var sr=Zl(An,dt.dimensions),va=vr(dt.impact)===Cn;return $e(Cn,sn,va,va,sr,fn)}if(dt.phase==="DROP_ANIMATING"){var Na=dt.completed;if(!Ll(bn,Na.critical))return le;var ka=Zl(Na.critical,dt.dimensions);return $e(Cn,sn,Wa(Na.result)===Cn,vr(Na.impact)===Cn,ka,fn)}if(dt.phase==="IDLE"&&dt.completed&&!dt.shouldFlush){var oi=dt.completed;if(!Ll(bn,oi.critical))return le;var Fi=vr(oi.impact)===Cn,Ti=!!(oi.impact.at&&oi.impact.at.type==="COMBINE"),xo=oi.critical.droppable.id===Cn;return Fi?Ti?ne:le:xo?ne:le}return le};return He},ps={updateViewportMaxScroll:Xl};function Tu(){return document.body||ht(!1),document.body}var ou={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Tu},rs=Ze(Pl,ps,null,{context:Yl,pure:!0,areStatePropsEqual:ii})(ns);rs.defaultProps=ou},38486:function(Mn,Jt){"use strict";var E;var y=60103,ve=60106,ce=60107,Le=60108,xe=60114,Ee=60109,Ce=60110,ke=60112,De=60113,fe=60120,je=60115,Ne=60116,ct=60121,Ke=60122,Te=60117,we=60129,Ie=60131;if(typeof Symbol=="function"&&Symbol.for){var Pe=Symbol.for;y=Pe("react.element"),ve=Pe("react.portal"),ce=Pe("react.fragment"),Le=Pe("react.strict_mode"),xe=Pe("react.profiler"),Ee=Pe("react.provider"),Ce=Pe("react.context"),ke=Pe("react.forward_ref"),De=Pe("react.suspense"),fe=Pe("react.suspense_list"),je=Pe("react.memo"),Ne=Pe("react.lazy"),ct=Pe("react.block"),Ke=Pe("react.server.block"),Te=Pe("react.fundamental"),we=Pe("react.debug_trace_mode"),Ie=Pe("react.legacy_hidden")}function rt(We){if(typeof We=="object"&&We!==null){var Be=We.$$typeof;switch(Be){case y:switch(We=We.type,We){case ce:case xe:case Le:case De:case fe:return We;default:switch(We=We&&We.$$typeof,We){case Ce:case ke:case Ne:case je:case Ee:return We;default:return Be}}case ve:return Be}}}var Et=Ee,Oe=y,Ae=ke,Ve=ce,Ye=Ne,xt=je,gt=ve,lt=xe,Ue=Le,be=De;E=Ce,E=Et,E=Oe,E=Ae,E=Ve,E=Ye,E=xt,E=gt,E=lt,E=Ue,E=be,E=function(){return!1},E=function(){return!1},Jt.isContextConsumer=function(We){return rt(We)===Ce},E=function(We){return rt(We)===Ee},E=function(We){return typeof We=="object"&&We!==null&&We.$$typeof===y},E=function(We){return rt(We)===ke},E=function(We){return rt(We)===ce},E=function(We){return rt(We)===Ne},E=function(We){return rt(We)===je},E=function(We){return rt(We)===ve},E=function(We){return rt(We)===xe},E=function(We){return rt(We)===Le},E=function(We){return rt(We)===De},E=function(We){return typeof We=="string"||typeof We=="function"||We===ce||We===xe||We===we||We===Le||We===De||We===fe||We===Ie||typeof We=="object"&&We!==null&&(We.$$typeof===Ne||We.$$typeof===je||We.$$typeof===Ee||We.$$typeof===Ce||We.$$typeof===ke||We.$$typeof===Te||We.$$typeof===ct||We[0]===Ke)},E=rt},53410:function(Mn,Jt,E){"use strict";Mn.exports=E(38486)},93314:function(Mn){"use strict";Mn.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(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},31328:function(Mn){"use strict";Mn.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"},69168:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ve}});var y=E(18773);function ve(ce,Le){ce.prototype=Object.create(Le.prototype),ce.prototype.constructor=ce,(0,y.Z)(ce,Le)}},16722:function(Mn,Jt,E){"use strict";E.d(Jt,{Z:function(){return ke}});const y=De=>typeof De=="object"&&De!=null&&De.nodeType===1,ve=(De,fe)=>(!fe||De!=="hidden")&&De!=="visible"&&De!=="clip",ce=(De,fe)=>{if(De.clientHeight<De.scrollHeight||De.clientWidth<De.scrollWidth){const je=getComputedStyle(De,null);return ve(je.overflowY,fe)||ve(je.overflowX,fe)||(Ne=>{const ct=(Ke=>{if(!Ke.ownerDocument||!Ke.ownerDocument.defaultView)return null;try{return Ke.ownerDocument.defaultView.frameElement}catch(Te){return null}})(Ne);return!!ct&&(ct.clientHeight<Ne.scrollHeight||ct.clientWidth<Ne.scrollWidth)})(De)}return!1},Le=(De,fe,je,Ne,ct,Ke,Te,we)=>Ke<De&&Te>fe||Ke>De&&Te<fe?0:Ke<=De&&we<=je||Te>=fe&&we>=je?Ke-De-Ne:Te>fe&&we<je||Ke<De&&we>je?Te-fe+ct:0,xe=De=>{const fe=De.parentElement;return fe==null?De.getRootNode().host||null:fe},Ee=(De,fe)=>{var je,Ne,ct,Ke;if(typeof document=="undefined")return[];const{scrollMode:Te,block:we,inline:Ie,boundary:Pe,skipOverflowHiddenElements:rt}=fe,Et=typeof Pe=="function"?Pe:$t=>$t!==Pe;if(!y(De))throw new TypeError("Invalid target");const Oe=document.scrollingElement||document.documentElement,Ae=[];let Ve=De;for(;y(Ve)&&Et(Ve);){if(Ve=xe(Ve),Ve===Oe){Ae.push(Ve);break}Ve!=null&&Ve===document.body&&ce(Ve)&&!ce(document.documentElement)||Ve!=null&&ce(Ve,rt)&&Ae.push(Ve)}const Ye=(Ne=(je=window.visualViewport)==null?void 0:je.width)!=null?Ne:innerWidth,xt=(Ke=(ct=window.visualViewport)==null?void 0:ct.height)!=null?Ke:innerHeight,{scrollX:gt,scrollY:lt}=window,{height:Ue,width:be,top:We,right:Be,bottom:de,left:St}=De.getBoundingClientRect(),{top:Qe,right:ze,bottom:st,left:Se}=($t=>{const Fe=window.getComputedStyle($t);return{top:parseFloat(Fe.scrollMarginTop)||0,right:parseFloat(Fe.scrollMarginRight)||0,bottom:parseFloat(Fe.scrollMarginBottom)||0,left:parseFloat(Fe.scrollMarginLeft)||0}})(De);let ye=we==="start"||we==="nearest"?We-Qe:we==="end"?de+st:We+Ue/2-Qe+st,vt=Ie==="center"?St+be/2-Se+ze:Ie==="end"?Be+ze:St-Se;const Ht=[];for(let $t=0;$t<Ae.length;$t++){const Fe=Ae[$t],{height:pt,width:ut,top:Yt,right:bt,bottom:Ct,left:mt}=Fe.getBoundingClientRect();if(Te==="if-needed"&&We>=0&&St>=0&&de<=xt&&Be<=Ye&&(Fe===Oe&&!ce(Fe)||We>=Yt&&de<=Ct&&St>=mt&&Be<=bt))return Ht;const mn=getComputedStyle(Fe),zt=parseInt(mn.borderLeftWidth,10),ue=parseInt(mn.borderTopWidth,10),ie=parseInt(mn.borderRightWidth,10),re=parseInt(mn.borderBottomWidth,10);let oe=0,pe=0;const ae="offsetWidth"in Fe?Fe.offsetWidth-Fe.clientWidth-zt-ie:0,me="offsetHeight"in Fe?Fe.offsetHeight-Fe.clientHeight-ue-re:0,Ze="offsetWidth"in Fe?Fe.offsetWidth===0?0:ut/Fe.offsetWidth:0,Ot="offsetHeight"in Fe?Fe.offsetHeight===0?0:pt/Fe.offsetHeight:0;if(Oe===Fe)oe=we==="start"?ye:we==="end"?ye-xt:we==="nearest"?Le(lt,lt+xt,xt,ue,re,lt+ye,lt+ye+Ue,Ue):ye-xt/2,pe=Ie==="start"?vt:Ie==="center"?vt-Ye/2:Ie==="end"?vt-Ye:Le(gt,gt+Ye,Ye,zt,ie,gt+vt,gt+vt+be,be),oe=Math.max(0,oe+lt),pe=Math.max(0,pe+gt);else{oe=we==="start"?ye-Yt-ue:we==="end"?ye-Ct+re+me:we==="nearest"?Le(Yt,Ct,pt,ue,re+me,ye,ye+Ue,Ue):ye-(Yt+pt/2)+me/2,pe=Ie==="start"?vt-mt-zt:Ie==="center"?vt-(mt+ut/2)+ae/2:Ie==="end"?vt-bt+ie+ae:Le(mt,bt,ut,zt,ie+ae,vt,vt+be,be);const{scrollLeft:at,scrollTop:qe}=Fe;oe=Ot===0?0:Math.max(0,Math.min(qe+oe/Ot,Fe.scrollHeight-pt/Ot+me)),pe=Ze===0?0:Math.max(0,Math.min(at+pe/Ze,Fe.scrollWidth-ut/Ze+ae)),ye+=qe-oe,vt+=at-pe}Ht.push({el:Fe,top:oe,left:pe})}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||!(ct=>{let Ke=ct;for(;Ke&&Ke.parentNode;){if(Ke.parentNode===document)return!0;Ke=Ke.parentNode instanceof ShadowRoot?Ke.parentNode.host:Ke.parentNode}return!1})(De))return;const je=(ct=>{const Ke=window.getComputedStyle(ct);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(De);if((ct=>typeof ct=="object"&&typeof ct.behavior=="function")(fe))return fe.behavior(Ee(De,fe));const Ne=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:ct,top:Ke,left:Te}of Ee(De,Ce(fe))){const we=Ke-je.top+je.bottom,Ie=Te-je.left+je.right;ct.scroll({top:we,left:Ie,behavior:Ne})}}}}]);