|
|
(self.webpackChunk=self.webpackChunk||[]).push([[1461],{89489:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},59477:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},40001:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},26227:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},49198:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},41464:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},73331:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},15277:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},52671:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},8657:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},56082:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},33853:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},15075:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},43531:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},61485:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},47472:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},87395:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(54476),je=ee(59301),fe={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"},Ge=fe,Oe=ee(7657),ye=function(ue,tt){return je.createElement(Oe.Z,(0,b.Z)({},ue,{ref:tt,icon:Ge}))},De=je.forwardRef(ye),Ze=De},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(yn,Qt){"use strict";Qt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},58e3:function(yn,Qt){"use strict";Qt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},93510: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 yn={},Qt="5.0",ee={},b=null,je=!1,fe=!1,Ge=null,Oe=!1,ye=null,De=null,Ze=0;Ze<arguments.length;Ze++){var Ce=arguments[Ze];if(Ce!==null)switch(typeof Ce){case"number":Qt=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Qt=Ce:Ge=Ce;break;case"object":typeof Ce.is3D!="undefined"?b=Ce:ee=Ce;break;case"boolean":je=Ce,fe=!0;break}}b===null&&(b={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!fe&&(je=!0)),Ge!==null&&ee.id===void 0&&(ee.id=Ge);var ue="",tt="",ke=!1,Lt=null,at=null,$e=null,Me=!1,Ie=null,Xe=null,pt=null,Rt=null,Ve=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var Te=function(be){return parseFloat(be)>4?parseFloat(be):5};yn.setHTML5Codebase=function(be,Ye){De=be,ht(be,Ye)},yn.setJavaCodebase=yn.setJavaCodebaseVersion=yn.isCompiledInstalled=yn.setPreCompiledScriptPath=yn.setPreCompiledResourcePath=function(){},yn.setHTML5CodebaseVersion=function(be,Ye){var et=parseFloat(be);if(et!==NaN&&et<5){console.log("The GeoGebra HTML5 codebase version "+et+" is deprecated. Using version latest instead.");return}ye=be,me(be,Ye)},yn.getHTML5CodebaseVersion=function(){return at},yn.getParameters=function(){return ee},yn.setFontsCSSURL=function(be){Rt=be},yn.setGiacJSURL=function(be){},yn.setJNLPFile=function(be){ue=be},yn.setJNLPBaseDir=function(be){},yn.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",et=ee.id,_t,rt=!1,Ft=0;Ft<arguments.length;Ft++){var qe=arguments[Ft];typeof qe=="string"?(qe=qe.toLowerCase(),qe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=qe:et=arguments[Ft]):typeof qe=="boolean"?rt=qe:qe instanceof HTMLElement&&(_t=qe)}Jt();function Jt(){if(!Oe){setTimeout(Jt,200);return}Ye=Xt(Ye);var Dt=_t||document.getElementById(et);if(!Dt){console.log("possibly bug on ajax loading? ");return}if(yn.removeExistingApplet(Dt,!1),ee.width===void 0&&Dt.clientWidth&&(ee.width=Dt.clientWidth),ee.height===void 0&&Dt.clientHeight&&(ee.height=Dt.clientHeight),!(ee.width&&ee.height)&&Ye==="html5"&&(delete ee.width,delete ee.height),Lt=Ye,Ye==="screenshot")Je(Dt,ee);else{var ae=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?ae=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(ae=(!nt()||be())&&Qe()),ae?(Lt="screenshot",Mt(Dt,ee,rt,Ye)):st(Dt,ee,rt)}}};function nt(){try{return window.self!==window.top}catch(be){return!0}}function Qe(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}yn.getViews=function(){return b},yn.isJavaInstalled=function(){return!1};var zt=function(be){var Ye=function(Ft){var qe=JSON.parse(Ft),Jt=function(ne){return ne.type=="G"||ne.type=="E"},Dt=qe.elements?qe.elements.filter(Jt)[0]:qe;if(!Dt||!Dt.url){et();return}ee.fileName=Dt.url,St(Dt.settings||{}),b.is3D=!0;var ae="https://www.geogebra.org/images/";yn.setPreviewImage(Ie||Dt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),be()},et=function(){ee.onError&&ee.onError(),Ut("Error: Fetching material (id "+ee.material_id+") failed.",ee)},_t=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",rt="/materials/"+ee.material_id+"?scope=basic";it("https://"+_t+"/api/proxy.php?path="+encodeURIComponent(rt),Ye,et)};function St(be){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(et){be[et]=!!be[et]}),Ye.forEach(function(et){ee[et]===void 0&&be[et]!==void 0&&(ee[et]=be[et])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function it(be,Ye,et){var _t=new XMLHttpRequest;_t.open("GET",be),_t.onload=function(){Ye(_t.responseText)},_t.onerror=et,_t.send()}yn.isHTML5Installed=function(){return!0},yn.getLoadedAppletType=function(){return Lt},yn.setPreviewImage=function(be,Ye,et){Ie=be,Xe=Ye,pt=et},yn.removeExistingApplet=function(be,Ye){var et;typeof be=="string"&&(be=document.getElementById(be)),Lt=null;var _t=null;for(et=0;et<be.childNodes.length;et++){var rt=be.childNodes[et],Ft=rt.className;Ft==="applet_screenshot"?Ye?(rt.style.display="block",Lt="screenshot"):rt.style.display="none":Ft!=="applet_scaler prerender"&&(be.removeChild(rt),_t=Ft&&Ft.indexOf("appletParameters")!=-1?rt.id:null,et--)}var qe=ee.id!==void 0?ee.id:_t,Jt=window[qe];Jt&&typeof Jt.getBase64=="function"&&(Jt.remove(),window[qe]=null)},yn.refreshHitPoints=function(){if(Te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=yn.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},yn.startAnimation=function(){var be=yn.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},yn.stopAnimation=function(){var be=yn.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},yn.getAppletObject=function(){var be=ee.id!==void 0?ee.id:"ggbApplet";return window[be]},yn.resize=function(){};var ut=function(be,Ye,et){var _t=document.createElement("param");_t.setAttribute("name",Ye),_t.setAttribute("value",et),be.appendChild(_t)},Se=function(be){return be&&be!=="false"},st=function(be,Ye,et){Te(at)<=4.2&&(et=!0);var _t=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==at||ggbHTML5LoadedCodebaseIsWebSimple&&!Me)&&(_t=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var rt=document.createElement("div");rt.classList.add("appletParameters","notranslate");var Ft=Ye.width,qe=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(Te(at)<=4.4)Se(Ye.showToolBar)&&(Ye.height-=7),Se(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Se(Ye.showToolBar)&&(Ye.width=605,Ft=605);else{var Jt=100;(Se(Ye.showToolBar)||Se(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),Jt=Se(Ye.showMenuBar)?245:155),Ft<Jt&&(Ye.width=Jt,Ft=Jt)}rt.style.border="none",rt.style.display="inline-block";for(var Dt in Ye)Ye.hasOwnProperty(Dt)&&Dt!=="appletOnLoad"&&rt.setAttribute("data-param-"+Dt,Ye[Dt]);Rt&&rt.setAttribute("data-param-fontscssurl",Rt),yn.resize=function(){GGBAppletUtils.responsiveResize(be,Ye)},window.addEventListener("resize",function(_e){yn.resize()});var ae=typeof Ye.appletOnLoad=="function"?Ye.appletOnLoad:function(){};if(!et&&Ye.width!==void 0){Ye.hasOwnProperty("showSplash")||rt.setAttribute("data-param-showSplash","false");var ne=be.querySelector(".applet_scaler.prerender"),te=ne!==null;if(te)var oe=ne.querySelector(".ggb_preview");else{var oe=Pt(Ft,qe,Ye.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=Ft+"px",ne.style.height=qe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Te(at)>=5?(Ye.appletOnLoad=function(_e){var gt=be.querySelector(".ggb_preview");gt&>.parentNode.removeChild(gt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(_e)},te||ne.appendChild(oe)):rt.appendChild(oe),ne.appendChild(rt),te||be.appendChild(ne),setTimeout(function(){yn.resize()},1)}else{var ce=document.createElement("div");ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.appendChild(rt),be.appendChild(ce),Ye.appletOnLoad=function(_e){yn.resize(),ae(_e)}}function re(_e,gt){gt&&typeof gt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(_e,gt.appletOnLoad):renderGGBElement(_e),Ut("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",gt)}function le(_e,gt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:_e,params:gt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(we){re(we.article,we.params)}),html5AppletsToProcess=null)},Te(at)<5&&(_e.className+=" geogebraweb")):re(_e,gt)}if(_t){scriptLoadStarted=!0;for(var ge=0;ge<rt.childNodes.length;ge++){var vt=rt.childNodes[ge].tagName;vt==="TABLE"&&(rt.removeChild(rt.childNodes[ge]),ge--)}if(ggbHTML5LoadedScript!==null){var Re=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Re!=null&&Re.parentNode.removeChild(Re)}var Ae=document.createElement("script"),Ke=function(){le(rt,Ye)};Ae.src=tt+$e,ggbHTML5LoadedCodebaseIsWebSimple=Me,ggbHTML5LoadedCodebaseVersion=at,ggbHTML5LoadedScript=Ae.src,Ut("GeoGebra HTML5 codebase loaded: '"+tt+"'.",Ye),!De&&(!ye||ye=="5.0")?(Me?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ke()):tt.requirejs?__webpack_require__.e(3861).then(function(){var _e=[__webpack_require__(40341)];Ke.apply(null,_e)}.bind(this)).catch(__webpack_require__.oe):(Ae.onload=Ke,be.appendChild(Ae))}else le(rt,Ye);Ye.height=qe,Ye.width=Ft},Je=function(be,Ye,et){var _t=Pt(Ye.width,Ye.height,Ye.borderColor,et),rt=document.createElement("div");rt.style.position="relative",rt.style.display="block",rt.style.width=Ye.width+"px",rt.style.height=Ye.height+"px",rt.className="applet_screenshot applet_scaler"+(et?" applet_screenshot_play":""),rt.appendChild(_t);var Ft=GGBAppletUtils.getScale(Ye,be,et);et?(be.appendChild(We()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(rt,"66%"),be.appendChild(rt),Ft!==1&&!isNaN(Ft)&&(GGBAppletUtils.scaleElement(rt,Ft),rt.style.width=Ye.width+"px",rt.style.height=Ye.height+"px",rt.parentNode.style.width=Ye.width*Ft+"px",rt.parentNode.style.height=Ye.height*Ft+"px"),yn.resize=function(){de(be,_t,rt,et)},window.addEventListener("resize",function(qe){yn.resize()}),yn.resize()};function de(be,Ye,et,_t){if(be.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var rt=GGBAppletUtils.getScale(ee,be,_t);et.parentNode!==null&&(!isNaN(rt)&&rt!==1?(GGBAppletUtils.scaleElement(et,rt),et.parentNode.style.width=ee.width*rt+"px",et.parentNode.style.height=ee.height*rt+"px"):(GGBAppletUtils.scaleElement(et,1),et.parentNode.style.width=ee.width+"px",et.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}yn.onExitFullscreen=function(be,Ye){Ye.appendChild(be)};var Mt=function(be,Ye,et,_t){Je(be,Ye,!0);for(var rt=function(){var Jt=[];for(qe=0;qe<be.childNodes.length;qe++)Jt.push(be.childNodes[qe]);if(window.GGBT_wsf_view){var Dt=window.GGBT_wsf_view.renderFullScreen(be,Ye.id),ae=document.getElementById("fullscreencontainer"),ne=jQuery(be).find(".fullscreencontent");ne.length>0?(Dt.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ae).append(ne),window.dispatchEvent(new Event("resize"))):st(Dt,Ye,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Lt=_t,st(be,Ye,!1);if(!window.GGBT_wsf_view)for(qe=0;qe<Jt.length;qe++)be.removeChild(Jt[qe])},Ft=be.getElementsByClassName("ggb_preview_play"),qe=0;qe<Ft.length;qe++)Ft[qe].addEventListener("click",rt,!1),Ft[qe].addEventListener("ontouchstart",rt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),Qe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},We=function(){var be=document.createElement("div");if(be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ye='.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");}',et=document.createElement("style");et.styleSheet?et.styleSheet.cssText=Ye:et.appendChild(document.createTextNode(Ye)),document.getElementsByTagName("head")[0].appendChild(et)}return be},Pt=function(be,Ye,et,_t){var rt=document.createElement("div");rt.className="ggb_preview",rt.style.position="absolute",rt.style.zIndex="90",rt.style.width=be-2+"px",rt.style.height=Ye-2+"px",rt.style.top="0px",rt.style.left="0px",rt.style.overflow="hidden",rt.style.backgroundColor="white";var Ft="lightgrey";et!==void 0&&(et==="none"?Ft="transparent":Ft=et),rt.style.border="1px solid "+Ft;var qe=document.createElement("img");if(qe.style.position="relative",qe.style.zIndex="1000",qe.style.top="-1px",qe.style.left="-1px",Ie!==null&&qe.setAttribute("src",Ie),qe.style.opacity=.7,Xe!==null){var Jt,Dt,ae;if(!_t){Jt=document.createElement("img"),Jt.style.position="absolute",Jt.style.zIndex="1001",Jt.style.opacity=1,qe.style.opacity=.3,Dt=360,Dt>be/4*3&&(Dt=be/4*3),ae=Dt/5.8,Jt.setAttribute("src",Xe),Jt.setAttribute("width",Dt),Jt.setAttribute("height",ae);var ne=(be-Dt)/2,te=(Ye-ae)/2;Jt.style.left=ne+"px",Jt.style.top=te+"px",rt.appendChild(Jt)}}return rt.appendChild(qe),rt},Xt=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},Be=["web","webSimple","web3d","tablet","tablet3d","phone"],me=function(be,Ye){if(at=be,Ye){ht(at,!0);return}var et=!je;if(et){var _t=Te(at);!isNaN(_t)&&_t<4.4&&(et=!1)}var rt,Ft;window.location.protocol.substr(0,4)==="http"?rt=window.location.protocol:rt="http:";var qe=at.indexOf("//");qe>0?Ft=at:qe===0?Ft=rt+at:Ft="https://www.geogebra.org/apps/5.2.814.0/";for(var Jt in Be)if(at.slice(Be[Jt].length*-1)===Be[Jt]||at.slice((Be[Jt].length+1)*-1)===Be[Jt]+"/"){ht(Ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&et&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Se(ee.showToolBar)&&!Se(ee.showMenuBar)&&!Se(ee.showAlgebraInput)&&!Se(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Ft+="webSimple/":Ft+="web3d/",ht(Ft,!1)},ht=function(be,Ye){if(be.requirejs){tt=be;return}be.slice(-1)!=="/"&&(be+="/"),tt=be,Ye===null&&(Ye=be.indexOf("http")===-1),ke=Ye,$e="web.nocache.js",Me=!1;var et=tt.split("/");et.length>1&&(!Ye&&et[et.length-2]==="webSimple"?($e="webSimple.nocache.js",Me=!0):Be.indexOf(et[et.length-2])>=0&&($e=et[et.length-2]+".nocache.js")),et=be.split("/"),at=et[et.length-3],at.substr(0,4)==="test"?at=at.substr(4,1)+"."+at.substr(5,1):(at.substr(0,3)==="war"||at.substr(0,4)==="beta")&&(at="5.0");var _t=parseFloat(at);_t!==NaN&&_t<5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_t+" is deprecated. Using version latest instead."),me("5.0",Ye))},Ut=function(be,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(be)};ee.material_id!==void 0?zt(Bt):Bt();function Bt(){var be=Qt;ye!==null?be=ye:parseFloat(be)<5&&(be="5.0"),me(be,!1),De!==null&&ht(De,ke),Oe=!0}return yn},GGBAppletUtils=function(){"use strict";function yn(){return window.GGBT_wsf_edit!==void 0}function Qt(Oe,ye){ye!=1?(Oe.style.transformOrigin="0% 0% 0px",Oe.style.webkitTransformOrigin="0% 0% 0px",Oe.style.transform="scale("+ye+","+ye+")",Oe.style.webkitTransform="scale("+ye+","+ye+")",Oe.style.maxWidth="initial",Oe.querySelector(".ggb_preview")!==null&&(Oe.querySelector(".ggb_preview").style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Oe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Oe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Oe.style.transform="none",Oe.style.webkitTransform="none")}function ee(Oe,ye,De,Ze,Ce,ue){var tt=null;if(ue!=null&&ue!="")for(var ke=Oe.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+ue+" ")>-1){tt=ke;break}else ke=ke.parentNode;var Lt=0,at=0,$e=0,Me=0,Ie=0,Xe=0,pt=0;if(tt)Lt=tt.offsetWidth,at=Math.max(Ze?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Lt=Math.min(window.innerWidth,document.documentElement.clientWidth),at=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=Lt):(Lt=window.innerWidth,at=window.innerHeight,$e=window.innerWidth),Oe){var Rt=Oe.getBoundingClientRect();Rt.left>0&&Rt.left<=Lt&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(Ie=Lt-Rt.width-Rt.left,Xe=$e<=480?10:30):(Xe=Rt.left,Ie=$e<=480?10:30),Me=Xe+Ie)}if(Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ve=Oe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me=0,pt=40)}}return Oe&&((De===void 0||!De)&&ye>0&&ye+Me<Lt?Lt=ye:Lt-=Me,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De===void 0||!De)&&(at-=pt)),{width:Lt,height:at}}function b(Oe,ye,De,Ze,Ce){if(Oe.isScreenshoGenerator)return 1;var ue=Ze!==void 0&&Ze,tt=Oe.noScaleMargin!=null&&Oe.noScaleMargin,ke=function(Ve){return Ve&&Ve!=="false"},Lt=ke(Oe.autoHeight),at=ee(ye,Oe.width,De,Lt,ue&&window.GGBT_wsf_view||tt,Ce),$e=parseInt(at.width),Me=Oe.width,Ie=Oe.height;if(Me===void 0){var Xe=ye.querySelector(".appletParameters");Xe&&(Me=Xe.offsetWidth,Ie=Xe.offsetHeight)}var pt=$e/Me,Rt=ue?1:at.height/Ie;return De!==void 0&&!De&&(pt=Math.min(1,pt),Rt=Math.min(1,Rt)),Math.min(pt,Rt)}function je(Oe,ye,De){var Ze=1,Ce,ue=!1;if(Oe.hasOwnProperty("allowUpscale")&&(ue=Oe.allowUpscale),Oe.hasOwnProperty("scale")&&(Ze=parseFloat(Oe.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(ue=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(Oe.hasOwnProperty("disableAutoScale")&&Oe.disableAutoScale))Ce=b(Oe,ye,ue,De,Oe.scaleContainerClass);else return Ze;return ue&&(!Oe.hasOwnProperty("scale")||Ze===1)?Ce:Math.min(Ze,Ce)}function fe(Oe){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),De=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=Oe.getBoundingClientRect(),Ce=(ye-Ze.width)/2,ue=(De-Ze.height)/2;ue<0&&(ue=0),Oe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?Oe.style.left="40px":Oe.style.left=Ce+"px",Oe.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?Oe.style.top="40px":Oe.style.top=ue+"px",Oe.style.left=Ce+"px")}function Ge(Oe,ye){var De=Oe.querySelector(".appletParameters");if(De){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==De.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Oe)}if(De.parentElement&&/fullscreen/.test(De.parentElement.className))return;var Ze=je(ye,Oe);yn()&&De.setAttribute("data-param-scale",Ze);for(var Ce=null,ue=0;ue<Oe.childNodes.length;ue++)if(Oe.childNodes[ue].className!==void 0&&Oe.childNodes[ue].className.match(/^applet_scaler/)){Ce=Oe.childNodes[ue];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var tt=ye.id!==void 0?ye.id:"ggbApplet",ke=window[tt];(ke==null||!ke.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Ce.parentNode.style.width=ye.width*Ze+"px",Ce.parentNode.style.height=ye.height*Ze+"px",Qt(Ce,Ze)):(Qt(Ce,1),Ce.parentNode.style.width=ye.width+"px",Ce.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&fe(Oe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(De).parents(".content-added-content"))}}return{responsiveResize:Ge,isFlexibleWorksheetEditor:yn,positionCenter:fe,getScale:je,scaleElement:Qt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var yn=n.location.search;return yn.indexOf(J)!=-1||yn.indexOf(K)!=-1}function q(yn,Qt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(yn){var Qt=s[L].bindings;s[L].bindings=function(){for(var ee=Qt?Qt():{},b=yn[webModule.__softPermutationId],je=O;je<b.length;je++){var fe=b[je];ee[fe[O]]=fe[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var yn=o.createElement(Q);if(yn.id=L,yn.style.cssText=R+S,yn.tabIndex=-1,o.body.appendChild(yn),t=yn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Qt=document.compatMode==U?V:W;t.write(Qt+X),t.close()}}}function w(yn){function Qt(b){function je(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var fe=je();if(fe){b();return}function Ge(){if(!fe){if(!je())return;fe=!0,b(),o.removeEventListener&&o.removeEventListener(Z,Ge,!1),Oe&&clearInterval(Oe)}}o.addEventListener&&o.addEventListener(Z,Ge,!1);var Oe=setInterval(function(){Ge()},$)}function ee(b){var je=u(),fe=je.body,Ge=je.createElement(_);Ge.language=ab,Ge.crossOrigin=W,Ge.src=b,webModule.__errFn&&(Ge.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),fe.appendChild(Ge)}Qt(function(){ee(yn)})}webModule.__startLoadingFragment=function(yn){return C(yn)},webModule.__installRunAsyncCode=function(yn){var Qt=u(),ee=Qt.body,b=Qt.createElement(_);b.language=ab,b.text=yn,ee.appendChild(b),ee.removeChild(b)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(yn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(yn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(yn){var Qt=c[yn];return Qt==null?null:Qt},r=d,webModule.__errFn=e}function B(){function yn(Oe){var ye=Oe.lastIndexOf(rb);ye==-1&&(ye=Oe.length);var De=Oe.indexOf(sb);De==-1&&(De=Oe.length);var Ze=Oe.lastIndexOf(tb,Math.min(De,ye));return Ze>=O?Oe.substring(O,Ze+P):W}function Qt(Oe){if(!Oe.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=Oe+vb,Oe=yn(ye.src)}return Oe}function ee(){var Oe=__gwt_getMetaProperty(wb);return Oe!=null?Oe:W}function b(){for(var Oe=o.getElementsByTagName(_),ye=O;ye<Oe.length;++ye)if(Oe[ye].src.indexOf(xb)!=-1)return yn(Oe[ye].src);return W}function je(){var Oe=o.getElementsByTagName(yb);return Oe.length>O?Oe[Oe.length-P].href:W}function fe(){var Oe=o.location;return Oe.href==Oe.protocol+zb+Oe.host+Oe.pathname+Oe.search+Oe.hash}var Ge=ee();return Ge==W&&(Ge=b()),Ge==W&&(Ge=je()),Ge==W&&fe()&&(Ge=yn(o.location.href)),Ge=Qt(Ge),Ge}function C(yn){return yn.match(/^\//)||yn.match(/^[a-zA-Z]+:\/\//)?yn:webModule.__moduleBase+yn}function D(){var yn=[],Qt=O,ee=[],b=[];function je(Oe){var ye=b[Oe](),De=ee[Oe];if(ye in De)return ye;var Ze=[];for(var Ce in De)Ze[De[Ce]]=Ce;throw r&&r(Oe,Ze,ye),null}if(__gwt_isKnownPropertyValue=function(Oe,ye){return ye in ee[Oe]},webModule.__getPropMap=function(){var Oe={};for(var ye in ee)ee.hasOwnProperty(ye)&&(Oe[ye]=je(ye));return Oe},webModule.__computePropValue=je,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var fe;try{fe=Cb;var Ge=fe.indexOf(Db);Ge!=-1&&(Qt=parseInt(fe.substring(Ge+P),$),fe=fe.substring(O,Ge))}catch(Oe){}return webModule.__softPermutationId=Qt,C(fe+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})()},28735:function(yn,Qt,ee){"use strict";ee.d(Qt,{Ax:function(){return Ge},Ds:function(){return Oe},KI:function(){return De},SI:function(){return fe},f1:function(){return je}});var b=ee(74128);function je(Ze){let Ce=!0;if(Ze.length>0){for(let ue=0;ue<Ze.length;ue++)if(Ze[ue].compile_success==0||!Ze[ue].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function fe(Ze,Ce=""){let ue=[];for(let tt=0;tt<Ze.length;tt++){let ke=Ze[tt],Lt=Ce?`${Ce}/${ke.name}`:`${ke.name}`;ue.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:Lt})}return ue}function Ge(Ze,Ce,ue){for(let tt=0;tt<Ze.length;tt++){let ke=Ze[tt];if(ke.key===Ce){ke.children=ue;break}ke.children&&Ge(ke.children,Ce,ue)}return Ze}function Oe(Ze,Ce,ue){let tt;return function(){let ke=this,Lt=arguments,at=function(){tt=null,ue||Ze.apply(ke,Lt)},$e=ue&&!tt;clearTimeout(tt),tt=setTimeout(at,Ce),$e&&Ze.apply(ke,Lt)}}const ye=!0,De=b.Z.API_SERVER},96935:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return at}});var b=ee(7939),je=ee(59301),fe=Object.defineProperty,Ge=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ce=($e,Me,Ie)=>Me in $e?fe($e,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):$e[Me]=Ie,ue=($e,Me)=>{for(var Ie in Me||(Me={}))De.call(Me,Ie)&&Ce($e,Ie,Me[Ie]);if(ye)for(var Ie of ye(Me))Ze.call(Me,Ie)&&Ce($e,Ie,Me[Ie]);return $e},tt=($e,Me)=>Ge($e,Oe(Me)),ke=($e,Me)=>{var Ie={};for(var Xe in $e)De.call($e,Xe)&&Me.indexOf(Xe)<0&&(Ie[Xe]=$e[Xe]);if($e!=null&&ye)for(var Xe of ye($e))Me.indexOf(Xe)<0&&Ze.call($e,Xe)&&(Ie[Xe]=$e[Xe]);return Ie},Lt=($e,Me,Ie)=>new Promise((Xe,pt)=>{var Rt=nt=>{try{Te(Ie.next(nt))}catch(Qe){pt(Qe)}},Ve=nt=>{try{Te(Ie.throw(nt))}catch(Qe){pt(Qe)}},Te=nt=>nt.done?Xe(nt.value):Promise.resolve(nt.value).then(Rt,Ve);Te((Ie=Ie.apply($e,Me)).next())});const at=$e=>{var Me=$e,{children:Ie}=Me,Xe=ke(Me,["children"]);const[pt,Rt]=(0,je.useState)(!1);return je.createElement(b.ZP,tt(ue({},Xe),{loading:pt,onClick:Ve=>Lt(void 0,null,function*(){try{Rt(!0),yield Xe.onClick(Ve),Rt(!1)}catch(Te){console.error(Te),Rt(!1)}})}),Ie)}},71067:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Lt}});var b=ee(59301),je=ee(6767),fe=ee(37568),Ge={codeBox:"codeBox___WpkVl"},Oe=ee(92310),ye=ee.n(Oe),De=Object.defineProperty,Ze=(at,$e,Me)=>$e in at?De(at,$e,{enumerable:!0,configurable:!0,writable:!0,value:Me}):at[$e]=Me,Ce=(at,$e,Me)=>Ze(at,typeof $e!="symbol"?$e+"":$e,Me),ue=(at,$e,Me)=>new Promise((Ie,Xe)=>{var pt=Te=>{try{Ve(Me.next(Te))}catch(nt){Xe(nt)}},Rt=Te=>{try{Ve(Me.throw(Te))}catch(nt){Xe(nt)}},Ve=Te=>Te.done?Ie(Te.value):Promise.resolve(Te.value).then(pt,Rt);Ve((Me=Me.apply(at,$e)).next())});class tt extends b.Component{constructor($e){super($e),Ce(this,"canvas"),Ce(this,"randomNum",(Me,Ie)=>Math.floor(Math.random()*(Ie-Me)+Me)),Ce(this,"drawPic",()=>{this.randomCode()}),Ce(this,"reloadPic",()=>{this.drawPic()}),Ce(this,"changeCode",Me=>{console.log(Me.target.value,222),this.setState({value:Me.target.value,showError:!1})}),Ce(this,"onVerify",()=>{let Me;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Me=!0,je.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Me=!0,je.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Me=!1),this.setState({showError:Me}),Me}),this.canvas=b.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($e,Me){const Ie=this.randomNum($e,Me),Xe=this.randomNum($e,Me),pt=this.randomNum($e,Me);return`rgb(${Ie}, ${Xe}, ${pt})`}drawText($e,Me,Ie){$e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Xe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);$e.font=Xe+"px SimHei";const pt=10,Rt=(this.state.contentWidth-40)/(this.state.code.length-1);let Ve=pt;Ie>0&&(Ve=pt+Ie*Rt);let Te=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Xe>40&&(Te=40);const nt=this.randomNum(-10,10);$e.translate(Ve,Te),$e.rotate(nt*Math.PI/180),$e.fillText(Me,0,0),$e.rotate(-nt*Math.PI/180),$e.translate(-Ve,-Te)}drawLine($e){for(let Me=0;Me<1;Me++)$e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),$e.beginPath(),$e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),$e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),$e.stroke()}drawDot($e){for(let Me=0;Me<100;Me++)$e.fillStyle=this.randomColor(0,255),$e.beginPath(),$e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),$e.fill()}randomCode(){let $e="";const Me="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Ie=0;Ie<this.state.codeLength;Ie++){const Xe=Math.floor(Math.random()*57);$e+=Me[Xe]}this.setState({code:$e},()=>{const Xe=this.canvas.current.getContext("2d");Xe.textBaseline="bottom",Xe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Xe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let pt=0;pt<this.state.code.length;pt++)this.drawText(Xe,this.state.code[pt],pt);this.drawLine(Xe),this.drawDot(Xe)})}render(){const{className:$e,width:Me=300}=this.props;return b.createElement("div",{className:ye()(Ge.codeBox,$e),style:{width:Me}},b.createElement("aside",null,b.createElement(fe.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),b.createElement("div",null,b.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),b.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const ke=(at,$e)=>{let Me;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,$e),React.createElement(tt,{ref:Ie=>Me=Ie})),onOk:()=>ue(void 0,null,function*(){if(Me.onVerify())return Promise.reject();at()})})};var Lt=tt},16750:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return tt}});var b=ee(59301),je={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},fe=ee(92310),Ge=ee.n(fe),Oe=ee(29787),ye=ee(2859),De=ee(38147),Ze=ee(65862),Ce=(ke,Lt,at)=>new Promise(($e,Me)=>{var Ie=Rt=>{try{pt(at.next(Rt))}catch(Ve){Me(Ve)}},Xe=Rt=>{try{pt(at.throw(Rt))}catch(Ve){Me(Ve)}},pt=Rt=>Rt.done?$e(Rt.value):Promise.resolve(Rt.value).then(Ie,Xe);pt((at=at.apply(ke,Lt)).next())}),tt=({data:ke,className:Lt,fullWidth:at,style:$e={},onClose:Me,onOk:Ie,showFullTools:Xe,noAssociationId:pt})=>{const Rt=(0,b.useRef)(null),Ve=(0,b.useRef)(null),Te=(0,b.useRef)(null),nt=(0,b.useRef)(null),[Qe,zt]=(0,b.useState)(!1),[St,it]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>(Te.current||(Te.current=document.createElement("style"),document.head.appendChild(Te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),Te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&ut()):(document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)),()=>{document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)}),[ke==null?void 0:ke.visible]);const ut=()=>Ce(void 0,null,function*(){zt(!0),it("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,Ze.ZJ)(ke==null?void 0:ke.src);Rt.current.src="",Rt.current.src=de,Rt.current.onload=function(){Je()},zt(!1),it("")}),Se=de=>Ce(void 0,null,function*(){zt(!0),it("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Mt=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:de.dataUrl}});Mt!=null&&Mt.id&&!pt?(yield(0,De.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Mt==null?void 0:Mt.id,settings:JSON.stringify(de.state)}})).status===0&&Ie():Mt!=null&&Mt.id&&Ie(Mt),zt(!1),it("")}),st=()=>{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(We=>{const Pt=document.querySelector(We.name);Pt&&Pt.setAttribute("title",We.title)})},Je=()=>{Ve.current=new ye.hP(Rt.current),Ve.current.targetRoot=nt.current,Ve.current.addEventListener("render",Se),Ve.current.addEventListener("beforeclose",Me),Xe&&(Ve.current.availableMarkerTypes=Ve.current.ALL_MARKER_TYPES,Ve.current.uiStyleSettings.redoButtonVisible=!0,Ve.current.uiStyleSettings.notesButtonVisible=!0,Ve.current.uiStyleSettings.zoomButtonVisible=!0,Ve.current.uiStyleSettings.zoomOutButtonVisible=!0,Ve.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ve.current.uiStyleSettings,Ve.current.show(),ke!=null&&ke.snapshotData&&Ve.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),st()},300)};return b.createElement(b.Fragment,null,(ke==null?void 0:ke.visible)&&b.createElement(Oe.Z,{spinning:Qe,tip:St,style:{position:"absolute",width:"100vw"}},b.createElement("div",{ref:nt,className:Ge()(je.imageDimensions,Lt,at?je.fullWidth:""),style:$e},b.createElement("img",{className:je.img,ref:Rt}))))}},99298:function(yn,Qt,ee){"use strict";var b=ee(59301),je=ee(77019),fe=ee(5269),Ge=ee(31691),Oe=ee(7939),ye=ee(95097),De=ee(96408),Ze=ee(48136),Ce=ee(59301);const ue=(0,b.forwardRef)(({callback:tt,showSaveButton:ke,value:Lt=""},at)=>{const $e=(0,b.useRef)(),Me=[{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}`}]}]}],Xe=Ve=>{$e.current.setValue($e.current.getValue()+" "+Ve.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(je.Z,{className:De.Z.lists,gutter:[10,10]},Me.map((Ve,Te)=>Ce.createElement(fe.Z,{flex:"110px",className:De.Z.item},Ce.createElement("div",null,Ce.createElement(ye.Z,{value:`$$${Ve.value}$$`}),Ve.name),Ce.createElement("div",{className:De.Z.children},Ve.children.map((nt,Qe)=>Ce.createElement("div",{key:Qe},Ce.createElement("h1",null,nt.name),Ce.createElement(je.Z,{gutter:[10,10]},nt.data.map((zt,St)=>Ce.createElement(fe.Z,{key:St,onClick:()=>Xe(zt),className:De.Z.diamond},Ce.createElement(ye.Z,{value:"`$$"+zt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(je.Z,{className:De.Z.lists,gutter:[10,10]},Ie.map((Ve,Te)=>Ce.createElement(fe.Z,{flex:"110px",className:De.Z.item},Ce.createElement("div",null,Ce.createElement(ye.Z,{value:"`$$"+Ve.value+"$$`"}),Ve.name),Ce.createElement("div",{className:De.Z.children},Ve.children.map((nt,Qe)=>Ce.createElement("div",{key:Qe},nt.name&&Ce.createElement("h1",null,nt.name),Ce.createElement(je.Z,{gutter:[10,10]},nt.data.map((zt,St)=>Ce.createElement(fe.Z,{key:St,onClick:()=>Xe(zt),className:De.Z.diamond},Ce.createElement(ye.Z,{value:"`$$"+zt.value+"$$`"}))))))))))}],Rt=()=>{var Ve=document.createElement("div");Ve.innerHTML=$e.current.getValue();var Te=Ve.innerText;return tt&&tt(Te),Te};return(0,b.useImperativeHandle)(at,()=>({getData:Rt})),Ce.createElement("div",{className:De.Z.mathWrap},Ce.createElement(Ge.default,{defaultActiveKey:"1",items:pt}),Ce.createElement("math-field",{locale:"zh_cn",className:De.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:$e,style:{width:800,marginTop:30,fontSize:18}},Lt||""),ke&&Ce.createElement("div",{className:De.Z.button},Ce.createElement(Oe.ZP,{size:"large",onClick:Rt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Qt.Z=ue},2524:function(yn,Qt,ee){"use strict";var b=ee(59301),je=ee(93314),fe=ee(7939),Ge=Object.defineProperty,Oe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ue=(at,$e,Me)=>$e in at?Ge(at,$e,{enumerable:!0,configurable:!0,writable:!0,value:Me}):at[$e]=Me,tt=(at,$e)=>{for(var Me in $e||($e={}))Ze.call($e,Me)&&ue(at,Me,$e[Me]);if(De)for(var Me of De($e))Ce.call($e,Me)&&ue(at,Me,$e[Me]);return at},ke=(at,$e)=>Oe(at,ye($e));const Lt=({img:at,buttonProps:$e={},styles:Me={},customText:Ie,ButtonText:Xe,ButtonClick:pt,Buttonclass:Rt,ButtonTwo:Ve,imgStyles:Te,loading:nt=!1,className:Qe=""})=>b.createElement("section",{className:`tc animated fadeIn ${Qe}`,style:tt({color:"#999",margin:"100px auto",visibility:nt?"hidden":"visible"},Me)},b.createElement("img",{src:at||je,style:ke(tt({},Te),{pointerEvents:"none",userSelect:"none"})}),b.createElement("p",{className:"mt20 font14"},Ie||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Xe&&b.createElement(fe.ZP,tt({className:Rt,onClick:pt},$e),Xe),Ve&&Ve);Qt.Z=Lt},52918:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Rt}});var b=ee(59301),je={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},fe=ee(7939),Ge=ee(70557),Oe=ee(50258),ye=ee(25399),De=ee(65862),Ze=ee(87513),Ce=ee(2524),ue=ee(74128),tt=ee(7310),ke=ee(59301),Lt=Object.defineProperty,at=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ie=(Ve,Te,nt)=>Te in Ve?Lt(Ve,Te,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ve[Te]=nt,Xe=(Ve,Te)=>{for(var nt in Te||(Te={}))$e.call(Te,nt)&&Ie(Ve,nt,Te[nt]);if(at)for(var nt of at(Te))Me.call(Te,nt)&&Ie(Ve,nt,Te[nt]);return Ve},pt=(Ve,Te,nt)=>new Promise((Qe,zt)=>{var St=Se=>{try{ut(nt.next(Se))}catch(st){zt(st)}},it=Se=>{try{ut(nt.throw(Se))}catch(st){zt(st)}},ut=Se=>Se.done?Qe(Se.value):Promise.resolve(Se.value).then(St,it);ut((nt=nt.apply(Ve,Te)).next())}),Rt=({editOffice:Ve="view",data:Te,issaver:nt,onSaver:Qe,theme:zt,type:St,filename:it,monacoEditor:ut,className:Se,style:st,close:Je,onClose:de,hasMask:Mt,disabledDownload:We,onImgDimensions:Pt,showNodata:Xt,recordInfo:Be})=>{const[me,ht]=(0,b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ut,Bt]=(0,b.useState)(""),[be,Ye]=(0,b.useState)(),et=window.ENV==="build"?"/react/build":"",_t=location.host.startsWith("localhost")?ue.Z.PROXY_SERVER:ue.Z.API_SERVER,Ft=10*(1024*1024),qe=(0,b.useRef)();Te!=null&&Te.startsWith("/api")&&St!=="txt"&&(Te=ue.Z.API_SERVER+Te);const Jt=oe=>oe.substring(oe.lastIndexOf("/")+1).split(".").pop();it&&ut&&(ut.filename=it),(0,b.useEffect)(()=>{var oe,ce;const re=(ce=(oe=document.cookie)==null?void 0:oe.replace(/\s/g,""))==null?void 0:ce.split(";");re==null||re.map(le=>{let ge=le.split("=");ge[0]==="_educoder_session"&&Bt(ge[1])})},[]),(0,b.useEffect)(()=>{St==="office"&&(Te.indexOf("bigfilescdn.")>-1||Te.indexOf("bigfiles1")>-1?Ye({url:Te,fileType:Jt(Te),model:Te.indexOf("model=edit")?"edit":"view"}):Te.indexOf("coze")>-1?Ye({url:Te,fileType:"doc",model:"view"}):ae())},[St,Te]);function Dt(oe){return pt(this,null,function*(){oe.data.type==="pdfdata"&&(Qe(oe.data.data),window.removeEventListener("message",Dt,!1)),console.log("mess---:",oe.data)})}const ae=()=>pt(void 0,null,function*(){console.log("data:",Te);let oe=Te;Te.startsWith("http")||(oe=location.origin+oe);let ce=new URL(oe).pathname.split("/").pop();const re=yield(0,Ze.gJ)({attachment_id:ce});re.url=_t+re.url,Ye(re)}),ne=()=>{if(Te.startsWith("http")||Te.startsWith("blob:")){te();return}(0,De.Sv)(it||"educoder",Te,it)},te=()=>{Be&&(0,tt.fc)({id:Be==null?void 0:Be.id,watch_type:1,course_id:Be==null?void 0:Be.course_id}),(0,De.Nd)(it||"educoder",decodeURIComponent(Te))};return ke.createElement("div",{style:Xe({},st||{}),className:`${Mt&&je.bgBlack} ${St?je.wrp:"hide"}`},Je&&ke.createElement("div",{className:je.close,ref:qe},!!Pt&&ke.createElement(ye.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>qe.current},ke.createElement("span",{onClick:()=>{de(),Pt()}},ke.createElement("i",{className:"icon-yulanpizhu"}))),!We&&ke.createElement(ye.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>qe.current},ke.createElement("span",{onClick:te},ke.createElement("i",{className:"icon-quxiaozhiding"}))),nt&&ke.createElement(ye.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>qe.current},ke.createElement("span",{className:"",onClick:()=>{const oe=document.getElementById("pdfiframe");window.addEventListener("message",Dt,!1),setTimeout(()=>{oe.contentWindow.postMessage("getData","*")},300)}},ke.createElement("i",{className:"icon-baocun"}))),ke.createElement(ye.Z,{title:"\u5173\u95ED",getPopupContainer:()=>qe.current},ke.createElement("span",{className:"",onClick:()=>{de()}},ke.createElement("i",{className:"icon-guanbi1"})))),ke.createElement("div",{className:`${je[Se]} ${Se} ${je.monaco} ${St==="txt"?"show":"hide"}`},St==="txt"&&ke.createElement(ke.Fragment,null,ke.createElement(Oe.ZP,Xe({},ut)))),St==="audio"&&ke.createElement("audio",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Te}`,autoPlay:!0}),St==="video"&&ke.createElement(ke.Fragment,null,(Te==null?void 0:Te.indexOf("http"))>-1?ke.createElement("video",{controls:!0,src:`${Te}`,autoPlay:!0}):ke.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Te}`,autoPlay:!0})),St==="office"&&be&&ke.createElement("iframe",{src:`${et}/office.html?key=${be.key}&url=${btoa(be.url)}&callbackUrl=${_t+(be.callbackUrl||"")}&fileType=${be.fileType}&title=${be.title||""}&model=${Ve}&officeServer=${ue.Z.ONLYOFFICE}&disabledDownload=${!!We}`}),St==="html"&&ke.createElement("iframe",{src:Te+"&disposition=inline"}),St==="pdf"&&ke.createElement("iframe",{id:"pdfiframe",src:`${et}/js/pdf/index.html?filename=${it||"educoder.pdf"}&url=${encodeURIComponent(Te)}&disabledDownload=${!!We}&model=${Ve}`}),St==="image"&&ke.createElement("img",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Te}`}),(St==="other"||St==="download")&&ke.createElement(ke.Fragment,null,Xt?ke.createElement(Ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ke.createElement(fe.ZP,{icon:ke.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:We},"\u4E0B\u8F7D")}):ke.createElement(fe.ZP,{type:"primary",size:"middle",onClick:ne,disabled:We},ke.createElement(Ge.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),St==="flowChart"&&ke.createElement("div",{className:"embed"},ke.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Te||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},3969:function(yn,Qt,ee){"use strict";ee.d(Qt,{h:function(){return $e},x:function(){return Me}});var b=ee(25374),je=ee(58e3),fe=ee(95097),Ge=ee(59301),Oe=Object.defineProperty,ye=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,tt=(Ie,Xe,pt)=>Xe in Ie?Oe(Ie,Xe,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Ie[Xe]=pt,ke=(Ie,Xe)=>{for(var pt in Xe||(Xe={}))Ce.call(Xe,pt)&&tt(Ie,pt,Xe[pt]);if(Ze)for(var pt of Ze(Xe))ue.call(Xe,pt)&&tt(Ie,pt,Xe[pt]);return Ie},Lt=(Ie,Xe)=>ye(Ie,De(Xe)),at=(Ie,Xe)=>{var pt={};for(var Rt in Ie)Ce.call(Ie,Rt)&&Xe.indexOf(Rt)<0&&(pt[Rt]=Ie[Rt]);if(Ie!=null&&Ze)for(var Rt of Ze(Ie))Xe.indexOf(Rt)<0&&ue.call(Ie,Rt)&&(pt[Rt]=Ie[Rt]);return pt};const $e=Ie=>{var Xe=Ie,{value:pt,onChange:Rt,scrollId:Ve}=Xe,Te=at(Xe,["value","onChange","scrollId"]);return Ge.createElement("div",{id:Ve||""},Ge.createElement(b.Z,Lt(ke({},Te),{defaultValue:pt,onChange:(nt,Qe)=>{Qe!=null&&Qe.length?Rt(nt,Qe):Rt(nt)}})))},Me=({value:Ie,onChange:Xe,placeholder:pt,height:Rt=140,isEdit:Ve,miniToolbar:Te,watch:nt=!0})=>Ve?Ge.createElement(b.Z,{watch:nt,isFocus:!0,height:Rt||void 0,placeholder:pt,defaultValue:Ie,onChange:Xe,miniToolbar:Te}):Ge.createElement("div",{style:{cursor:"pointer"}},Ie?Ge.createElement(fe.Z,{className:je.Z.inputBorder,value:Ie}):Ge.createElement("div",{className:`${je.Z.inputBorder} ${je.Z.placeholder} inputBorderError`},pt))},95097:function(yn,Qt,ee){"use strict";ee.d(Qt,{z:function(){return ut},Z:function(){return Se}});var b=ee(59301),je=ee(48850),fe=ee(49142),Ge=ee(64018),Oe=ee(16471),ye=ee(74128),De=ee(65862),Ze=ee(15342),Ce=ee(44104),ue=ee(7939),tt=ee(1012),ke=ee(52918),Lt=ee(59301),$e=({html:st})=>{const Je=(0,b.useRef)(null),de=(0,b.useRef)(null),Mt=`.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,b.useEffect)(()=>{const We=Je.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=st,We.appendChild(de.current);const Pt=document.createElement("style");return Pt.textContent=Mt,We.appendChild(Pt),()=>{We.innerHTML=""}},[]),(0,b.useEffect)(()=>{de.current&&(de.current.innerHTML=st)},[st]),Lt.createElement("div",{ref:Je})};function Me(st){const Je=["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(${Je.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return st.replace(de,"").trim()}var Ie={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Xe=Object.defineProperty,pt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Te=(st,Je,de)=>Je in st?Xe(st,Je,{enumerable:!0,configurable:!0,writable:!0,value:de}):st[Je]=de,nt=(st,Je)=>{for(var de in Je||(Je={}))Rt.call(Je,de)&&Te(st,de,Je[de]);if(pt)for(var de of pt(Je))Ve.call(Je,de)&&Te(st,de,Je[de]);return st};const Qe="@\u2581\u2581@",zt="@\u2581@",St=/<pre[^>]*>/g;function it(st){let Je=document.createElement("div");return Je.innerHTML=st,Je.childNodes.length===0?"":Je.childNodes[0].nodeValue}const ut=(st,Je)=>{st=st||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Mt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,We=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Je?st.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(Xt,Be,me,ht,Ut,Bt,be)=>{const Ye=Be||ht||Bt,et=me||Ut||be||"?";return ye.Z.API_SERVER+"/api/attachments/"+Ye+et+"&t="+(0,De.Jn)(Ye,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(st=st.replace(Pt,(Xt,Be,me,ht,Ut,Bt,be)=>{const Ye=Be||ht||Bt,et=me||Ut||be||"?";return ye.Z.API_SERVER+"/attachments/download/"+Ye+et+"&t="+(0,De.Jn)(Ye,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replace(de,(Xt,Be,me,ht,Ut,Bt,be)=>{const Ye=Be||ht||Bt,et=me||Ut||be||"?";return ye.Z.API_SERVER+"/api/attachments/"+Ye+et+"&t="+(0,De.Jn)(Ye,Date.now())+(Xt.indexOf(")")>-1?")":"&")}).replace(Mt,(Xt,Be,me,ht,Ut)=>{const Bt=Be||ht,be=me||Ut||"";return'"'+ye.Z.API_SERVER+"/api/attachments/"+Bt+be+Bt+be+"&t="+(0,De.Jn)(Bt,Date.now())}).replace(We,(Xt,Be,me,ht,Ut)=>{const Bt=Be||ht,be=me||Ut||"";return"("+ye.Z.API_SERVER+"/files/uploads/"+Bt+be+Bt+be+"&t="+(0,De.Jn)(Bt,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,`
|
|
|
`),st)};var Se=({value:st="",edit:Je=!1,className:de,showTextOnly:Mt,showLines:We,style:Pt={},stylesPrev:Xt={},highlightKeywords:Be,showProgramFill:me,isProgramFill:ht,disabledFill:Ut=!1,programFillValue:Bt,openEditor:be=()=>{},onFillChange:Ye=rt=>{},onFillBlur:et=()=>{},onFillFocus:_t=()=>{}})=>{let rt=Me(String(st||""));const Ft=(0,b.useRef)(),qe=(0,b.useRef)(),[Jt,Dt]=(0,b.useState)(""),[ae,ne]=(0,b.useState)("office"),[te,oe]=(0,b.useState)([]),ce=(0,b.useRef)("a"+(0,tt.Z)()),re={},le=Ot=>/<style[\s\S]*?>/i.test(Ot||""),ge=(Ot,nn,Wt)=>{const He=document.createElement(Ot===zt?"input":"textarea");He.style.width="100%",He.style.height=Ot===zt?"40px":"151px",He.rows=5,He.spellcheck=!1,He.name="edu-program-fill",He.placeholder="\u8BF7\u8F93\u5165",He.dataset.id=nn;const mt=Object.keys(re).length;return re[mt]=He,`<span class="edu-program-fill-wrap ${Ot===zt?"":"show"}" style="width:${Ot===zt?"600px":"100%"}" title=${Wt||""}><span>${He.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function vt(Ot){return Ot=Ot.replace(/!\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(/\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ot=Ot.replace(/<embed.*?>/g,""),Ot=Ot.replace(/<img.*?>/g,""),Ot=Ot.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ot=Ot.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ot=Ot.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ot=Ot.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ot}const Re=Ot=>!Mt&&le(rt)?Ot:Ot.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(nn,Wt){let He=Wt.replace(/(\n|\r)/g,"").split("}"),mt=[];return He.map(ot=>{ot!=""&&mt.push(`.${ce.current} ${ot}`)}),`<style>${mt.join("}")}</style>`}),Ae=(0,b.useMemo)(()=>{try{const He=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ot=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Tt=/\(\/attachments\/download\//g;rt=rt.replace(Tt,"("+ye.Z.API_SERVER+"/attachments/download/").replace(He,"("+ye.Z.API_SERVER+"/api/attachments/").replace(mt,'"'+ye.Z.API_SERVER+"/api/attachments/").replace(ot,'"'+ye.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,`
|
|
|
`),Ft.current.style.display="none"}catch(He){}if(me){let He=-1;return rt=rt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(mt,ot,Tt){var Ne;return++He,ge(mt,He,(Ne=Bt==null?void 0:Bt[He])==null?void 0:Ne.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Re(rt||"")}</pre>`}let Ot=Re(rt);Ot=(0,fe.ZP)(Ot);const nn=(0,fe.ez)();rt.match(/\[TOC\]/)&&(Ot=Ot.replace("<p>[TOC]</p>",(0,fe.Qv)()),(0,fe.Iy)()),Ot=Ot.replace(/(__special_katext_id_\d+__)/g,(He,mt)=>{const{type:ot,expression:Tt}=nn[mt];return(0,Ze.renderToString)(it(Tt)||"",{displayMode:ot==="block",throwOnError:!1,output:"html"})}),Ot=Ot.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,fe.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=Ot,Mt)return Wt.innerText;if(Be){const He=Be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return we(Wt,He),Wt.innerHTML}return setTimeout(()=>Ht(),500),Wt.innerHTML},[rt,Be]);(0,b.useEffect)(()=>{Pe.current&&Pe.current.querySelectorAll(["input","textarea"]).forEach(nn=>{nn.oninput=Ke,nn.onblur=_e,nn.onfocus=gt})},[te]),(0,b.useEffect)(()=>{var Ot,nn,Wt,He,mt;if(Bt!=null&&Bt.length)try{const ot=Pe.current.querySelectorAll(".edu-program-fill-score"),Tt=Pe.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ne,dt]of Tt.entries())dt.value=((Ot=Bt==null?void 0:Bt[Ne])==null?void 0:Ot.value)||"",((nn=Bt==null?void 0:Bt[Ne])==null?void 0:nn.type)==="warning"?dt.className="program-fill-warning":((Wt=Bt==null?void 0:Bt[Ne])==null?void 0:Wt.type)==="success"?dt.className="program-fill-success":dt.className="";for(const[Ne,dt]of ot.entries())dt.innerHTML=(He=Bt==null?void 0:Bt[Ne])!=null&&He.score?`${(mt=Bt==null?void 0:Bt[Ne])==null?void 0:mt.score}\u5206`:"";oe(Bt)}catch(ot){console.log(ot,"error")}},[Bt]);const Ke=Ot=>{te[Ot.target.dataset.id]=te[Ot.target.dataset.id]||{},te[Ot.target.dataset.id].value=Ot.target.value,oe([...te]),Ye(te,Ot.target.dataset.id)},_e=Ot=>{te[Ot.target.dataset.id]=te[Ot.target.dataset.id]||{},te[Ot.target.dataset.id].value=Ot.target.value,oe([...te]),et(te,Ot.target.dataset.id)},gt=Ot=>{te[Ot.target.dataset.id]=te[Ot.target.dataset.id]||{},te[Ot.target.dataset.id].value=Ot.target.value,oe([...te]),_t(te,Ot.target.dataset.id)};function we(Ot,nn){return Ot.childNodes.forEach(Wt=>{var He;if(Wt.childNodes.length>0)we(Wt,nn);else if(Wt.nodeName!=="IMG")if(Wt.innerHTML)Wt.innerHTML=(He=Wt.innerHTML)==null?void 0:He.replace(new RegExp(nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const mt=document.createElement("span");mt.innerHTML=Wt.textContent.replace(new RegExp(nn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Wt.replaceWith(mt)}})}const Pe=(0,b.useRef)();fe.jb.WebkitLineClamp=We,We&&(Pt=nt(nt({},Pt),fe.jb));function Zt(Ot){let nn=Ot.target;if(nn.tagName.toUpperCase()==="A"){let Wt=nn.getAttribute("href");if(Wt.indexOf("office")>-1)Ot.preventDefault(),Dt(Wt),ne("office");else if(Wt.indexOf("application/pdf")>-1)Ot.preventDefault(),Dt(Wt),ne("pdf");else if(Wt.indexOf("text/html")>-1)Ot.preventDefault(),Dt(Wt),ne("html");else if(Wt.startsWith("#")){Ot.preventDefault();let He=document.getElementById(Wt.replace("#",""));He&&He.scrollIntoView(!0)}}}const Ht=()=>{var Ot;const nn=(Ot=Pe.current)==null?void 0:Ot.querySelectorAll("video");nn==null||nn.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(Oe.ZP.isSupported()){var He=new Oe.ZP;He.loadSource(Wt.src),He.attachMedia(Wt)}}})};(0,b.useEffect)(()=>{if(Pe.current&&Ae&&Ae.match(St)&&window.PR.prettyPrint(),Pe.current)return Pe.current.addEventListener("click",Zt),()=>{var Ot;(Ot=Pe.current)==null||Ot.removeEventListener("click",Zt),(0,fe.AL)(),(0,fe.Iy)()}},[Ae,Pe.current,Zt]);const rn=Ot=>{Ot.target.nodeName==="IMG"&&Ot.target.className.indexOf("draw-flowchart")>-1?(Ft.current.style.zIndex=1,Ft.current.style.display="flex",Ft.current.style.width=Ot.target.clientWidth+"px",Ft.current.style.height=Ot.target.clientHeight+"px",Ft.current.style.top=Ot.target.offsetTop+"px",Ft.current.style.left=Ot.target.offsetLeft+"px",Ot.target.id&&(qe.current=Ot.target.id)):Ft.current.style.display="none"},Yt=()=>{Ft.current.style.display="none"};return(0,b.useEffect)(()=>{var Ot;const nn=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(Ot=Pe.current)==null||Ot.addEventListener("copy",nn),()=>{var Wt;(Wt=Pe.current)==null||Wt.removeEventListener("copy",nn)}},[Pe.current]),b.createElement("div",{style:{position:"relative"},onMouseLeave:Yt},Mt&&b.createElement("div",{ref:Pe,className:`${Ie.mdBody} `},Ae),!Mt&&!le(Ae)&&b.createElement("div",{ref:Pe,style:nt({},Pt),onMouseOver:rn,className:`${de||""} ${Ut?"disabled-fill":""} markdown-body ${Ie.mdBody} ${ce.current}`,dangerouslySetInnerHTML:{__html:Ae}}),!Mt&&le(Ae)&&b.createElement($e,{html:Ae}),b.createElement("div",{ref:Ft,className:`${Ie.button} ${Je?"":Ie.previewFlowChart}`},b.createElement(Ce.Z,null,b.createElement(ue.ZP,{onClick:()=>{Je?be(qe.current):(Dt(qe.current),ne("flowChart"))}},Je?"\u7F16\u8F91":"\u9884\u89C8"))),b.createElement(ke.Z,{close:!0,data:Jt,type:Jt!=null&&Jt.length?ae:"",style:nt({},Xt),onClose:()=>Dt("")}))}},85533:function(yn,Qt,ee){"use strict";ee.d(Qt,{h:function(){return Ve}});var b=ee(59301),je=ee(82326),fe=ee(28284),Ge=ee(7939),Oe=ee(89780),ye=ee.n(Oe),De=ee(45559),Ze=ee(42313),Ce=Object.defineProperty,ue=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,$e=(Te,nt,Qe)=>nt in Te?Ce(Te,nt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Te[nt]=Qe,Me=(Te,nt)=>{for(var Qe in nt||(nt={}))Lt.call(nt,Qe)&&$e(Te,Qe,nt[Qe]);if(ke)for(var Qe of ke(nt))at.call(nt,Qe)&&$e(Te,Qe,nt[Qe]);return Te},Ie=(Te,nt)=>ue(Te,tt(nt));const Xe=je.default.Option,pt={labelCol:{span:4},wrapperCol:{span:20}},Rt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Qt.Z=({callback:Te,onCancel:nt})=>{const[Qe,zt]=(0,b.useState)("python");function St(ut){zt(Rt[ut][1])}function it(ut){Te(ut)}return b.createElement(fe.default,Ie(Me({},pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:it,style:{width:500}}),b.createElement(fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(je.default,{getPopupContainer:ut=>ut.parentNode,onChange:St},Object.keys(Rt).map(ut=>b.createElement(Xe,{key:ut,value:ut},Rt[ut][0])))),b.createElement(fe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(Ve,{mode:Qe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ge.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))};function Ve({value:Te,onChange:nt,mode:Qe,options:zt={}}){const St=(0,b.useRef)(),[it,ut]=(0,b.useState)();return(0,b.useEffect)(()=>{if(it){let Se=function(st){const Je=st.getValue();nt&&nt(Je)};return it.on("change",Se),()=>{it.off("change",Se)}}},[it,nt]),(0,b.useEffect)(()=>{it&&it.setOption("mode",Qe)},[it,Qe]),(0,b.useEffect)(()=>{it&&(Te!==it.getValue()||Te==="")&&setTimeout(()=>{it.setValue(Te||"")},300)},[it,Te]),(0,b.useEffect)(()=>{if(St.current&&!it){const Se=ye().fromTextArea(St.current,Me({mode:Qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},zt));ut(Se)}},[St.current,it]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:St}))}},25374:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Rn}});var b=ee(59301),je=ee(65582),fe=ee(89780),Ge=ee.n(fe),Oe=ee(76374),ye=ee(45559),De=ee(6313),Ze=ee(25717),Ce=ee(99498),ue=ee(25419),tt=ee(67549),ke=ee(95097),Lt=({value:vn="",className:tn,showTextOnly:en,showLines:cn,style:En={}})=>{const $n=(0,b.useMemo)(()=>"",[vn]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:$n}}))},at=Object.defineProperty,$e=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Rt=(vn,tn,en)=>tn in vn?at(vn,tn,{enumerable:!0,configurable:!0,writable:!0,value:en}):vn[tn]=en,Ve=(vn,tn)=>{for(var en in tn||(tn={}))Xe.call(tn,en)&&Rt(vn,en,tn[en]);if(Ie)for(var en of Ie(tn))pt.call(tn,en)&&Rt(vn,en,tn[en]);return vn},Te=(vn,tn)=>$e(vn,Me(tn));let nt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Qe({onActionCallback:vn,title:tn,icon:en,actionName:cn,className:En="",children:$n}){function Zn(){vn(cn)}return b.createElement("a",{title:tn,className:En,onClick:Zn},b.createElement("i",{className:`${en}`}),$n)}var zt=({watch:vn,showNullButton:tn,showNullProgramButton:en,onActionCallback:cn,fullScreen:En,insertTemp:$n,hidetoolBar:Zn,extraUse:Nn})=>{const Fn=[...nt,{title:`${vn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${vn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return b.createElement("ul",{className:"markdown-toolbar-container"},!Zn&&Fn.map((qn,er)=>b.createElement("li",{key:er},qn.actionName?b.createElement(Qe,Te(Ve({},qn),{onActionCallback:cn})):b.createElement("span",{className:"v-line"}))),tn?b.createElement("li",null,b.createElement(Qe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:cn},b.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,en?b.createElement(b.Fragment,null,b.createElement("li",null,b.createElement(Qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:cn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),b.createElement("li",null,b.createElement(Qe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:cn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,$n&&b.createElement("li",null,b.createElement(Qe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${$n}`,onActionCallback:cn},b.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&b.createElement("li",null,Nn),b.createElement("li",{className:"btn-full-screen"},b.createElement(Qe,{icon:`${En?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:En?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:cn})))},St=ee(57261),it=ee(28284),ut=ee(37568),Se=ee(7939),st=Object.defineProperty,Je=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Xt=(vn,tn,en)=>tn in vn?st(vn,tn,{enumerable:!0,configurable:!0,writable:!0,value:en}):vn[tn]=en,Be=(vn,tn)=>{for(var en in tn||(tn={}))We.call(tn,en)&&Xt(vn,en,tn[en]);if(Mt)for(var en of Mt(tn))Pt.call(tn,en)&&Xt(vn,en,tn[en]);return vn},me=(vn,tn)=>Je(vn,de(tn));const ht={labelCol:{span:4},wrapperCol:{span:20}};var Ut=({callback:vn,onCancel:tn})=>{function en(cn){vn(cn)}return b.createElement(it.default,me(Be({},ht),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:en,style:{width:500}}),b.createElement(it.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(ut.default,null)),b.createElement(it.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(ut.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Se.ZP,{type:"ghost",onClick:tn},"\u53D6\u6D88")))},Bt=ee(85533),be=ee(45053),Ye=ee(62957),et=ee(77019),_t=ee(16750),rt=ee(59301),Ft=({callback:vn,onCancel:tn})=>{const en=document.createElement("canvas"),cn=en.getContext("2d");en.width=1e3,en.height=800,cn.fillStyle="#ffffff",cn.fillRect(0,0,en.width,en.height);const En=en.toDataURL("image/png");return rt.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},rt.createElement(et.Z,{style:{height:"100vh"}},rt.createElement(_t.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:En,visible:!0,title:String(Date.now())},onOk:$n=>{vn({src:$n.url})},onClose:tn})))},qe=ee(36207),Jt=ee(5269),Dt=ee(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=ee(59301),oe=(0,b.forwardRef)(({onCancel:vn,editImgId:tn,callback:en},cn)=>{let En=(0,b.useRef)(),$n=(0,b.useRef)(),Zn=(0,b.useRef)(),Nn=(0,b.useRef)(!1);const Fn=(0,b.useRef)(!1);console.log("ref:",cn);const[qn,er]=(0,b.useState)(0),[on,xn]=(0,b.useState)("100vh");return(0,b.useEffect)(()=>{er(1)},[]),(0,b.useImperativeHandle)(cn,()=>({setHeight:xn})),ne.createElement("div",{ref:Fn,className:"body-overflow-initial"},ne.createElement(qe.Z,{width:"100vw",height:on,footer:null,closable:!0,placement:"bottom",open:!!qn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Un=>{en({src:`/api/attachments/${Un}`,id:Un})})},title:ne.createElement(et.Z,{align:"middle"},ne.createElement(Jt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(Jt.Z,{onClick:()=>{xn(on==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(Jt.Z,{onClick:()=>{window.saveDrawData(Un=>{if(Un===null){Dt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Dt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),en({src:`/api/attachments/${Un}`,id:Un,disabledClose:!0})})}},ne.createElement(Se.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${tn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:$n})))}),ce=ee(74128),re=ee(47889),le=ee(4875);const ge=re.ZP.Group,vt={margin:"0 8px"};var Re=({callback:vn,onCancel:tn})=>{function en(cn){vn(cn)}return b.createElement(it.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:en},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:vt},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:vt},"\u884C\u6570"),b.createElement(it.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(le.Z,null)),b.createElement("span",{style:vt},"\u5217\u6570"),b.createElement(it.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(le.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:vt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(it.default.Item,{name:"align"},b.createElement(ge,null,b.createElement(re.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(re.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(re.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(re.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Se.ZP,{type:"ghost",onClick:tn},"\u53D6\u6D88")))},Ae=ee(58755),Ke=ee(93510),_e=ee.n(Ke),we=(0,b.forwardRef)(({use3d:vn,width:tn,height:en,callback:cn,showSaveButton:En},$n)=>{const Zn=(0,b.useRef)(),Nn=(0,b.useRef)(),[Fn,qn]=(0,b.useState)(!1),er=(0,b.useRef)({id:Zn,appName:"graphing",width:tn||1e3,height:en||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Nn.current=new(_e())(er.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const on=()=>{var xn=window.ggbApplet.getPNGBase64(1,!0,72);return cn&&cn(xn),xn};return(0,b.useEffect)(()=>{er.current.appName=Fn?"3D":"graphing",Nn.current.inject("applet_container")},[Fn]),(0,b.useEffect)(()=>{qn(vn)},[vn]),(0,b.useImperativeHandle)($n,()=>({getImgData:on})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Zn}),b.createElement(et.Z,{align:"middle"},b.createElement(Jt.Z,{flex:1},b.createElement(Ae.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Fn,onChange:xn=>qn(xn)})),b.createElement(Jt.Z,null,b.createElement(Se.ZP,{size:"large",onClick:on,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Pe=ee(99298);const Zt="link",Ht="upload-image",rn="add-flowchart",Yt="draw-image",Ot="add-flowchart",nn="code-block",Wt="add-table",He="------------",mt={default:He,left:`:${He}`,center:`:${He}:`,right:`${He}:`};var ot=ee(31103),Tt=ee(65862);function Ne(){}let dt=0;const wt=1e4,Kt="\u2581",sn="@\u2581\u2581@",bn="@\u2581@",An=`
|
|
|
**\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`,zn=["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 pn(vn){return/^\d+$/.test(vn)?`${vn}px`:vn}const un=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Sn={[un+"-B"]:"bold",[un+"-I"]:"italic"},Mn={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[nn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ht]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[rn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Rn=({defaultValue:vn="",onChange:tn,width:en="100%",height:cn=400,miniToolbar:En=!1,isFocus:$n=!1,watch:Zn,insertTemp:Nn,mode:Fn="markdown",id:qn="markdown-editor-id",showResizeBar:er=!1,noStorage:on=!1,showNullButton:xn=!1,showNullProgramButton:Un=!1,hidetoolBar:Gn=!1,fullScreen:ct=!1,onBlur:yt,onCMBeforeChange:Fe,onFullScreen:lt,className:ze="",disablePaste:xt=!1,disabled:Ee=!1,disabledFill:It=!1,placeholder:kt="",values:Vt="",extraUse:bt,onAddBlank:Ct})=>{const[Et,$t]=(0,b.useState)(null),[Pn,wn]=(0,b.useState)(vn),[Dn,nr]=(0,b.useState)(Zn),[sr,fr]=(0,b.useState)(ct),[Qn,_n]=(0,b.useState)(""),[Jn,ur]=(0,b.useState)(0),[Er,Cr]=(0,b.useState)(cn),[wr,Yn]=(0,b.useState)(!1),[yr,mr]=(0,b.useState)(0),[Vr,Yr]=(0,b.useState)(0),Ur=(0,b.useRef)(),Gr=(0,b.useRef)(),oi=(0,b.useRef)(),Zr=(0,b.useRef)(),Jr=(0,b.useRef)(),Or=(0,b.useRef)(),ti=(0,je.useDispatch)();(0,b.useEffect)(()=>{const Hn=window.scrollY||window.pageYOffset;wn(Vt),Et==null||Et.setValue(Vt),window.scrollTo(0,Hn)},[Vt]),(0,b.useEffect)(()=>{lt==null||lt(sr)},[sr]),(0,b.useEffect)(()=>{if(Ur.current){let Hn=function(Xn,rr){var Qr;if(xt){rr.preventDefault();return}const Ei=rr.clipboardData;if(Ei){const pi=Ei.types.toString(),Bi=Ei.items;if(pi==="Files"||Ei.types.indexOf("Files")>-1){if(rr.preventDefault(),Fn=="stex")return;try{let Ii=Bi[1];((Qr=Bi[0])==null?void 0:Qr.kind)==="file"&&(Ii=Bi[0]);const Pi=Ii.getAsFile(),$i=Pi.name.split(".").pop();(0,be.I)(Pi,Ni=>{var Ai,lo,xo;Ni.id?((Ai=Pi==null?void 0:Pi.type)==null?void 0:Ai.indexOf("image"))>-1?Bn.replaceSelection(`<img width="100%" src="/api/attachments/${Ni.id}?type=${Ni.content_type})" alt="" />`):((lo=Pi==null?void 0:Pi.type)==null?void 0:lo.indexOf("video"))>-1?Bn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ni.id}"></video>`):((xo=Pi==null?void 0:Pi.type)==null?void 0:xo.indexOf("pdf"))>-1?Bn.replaceSelection(`<a href="/api/attachments/${Ni.id}?type=${Pi.type}&disposition=inline" target="_blank">${Pi.name}</a>`):zn.includes($i)?Bn.replaceSelection(`<a href="/api/attachments/${Ni.id}?type=office&disposition=inline" target="_blank">${Pi.name}</a>`):Bn.replaceSelection(`[${Pi.name}](/api/attachments/${Ni.id}?type=${Ni.content_type})`):(Ni==null?void 0:Ni.status)===401&&(document.location.href="/user/login")})}catch(Ii){Dt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bn=Ge().fromTextArea(Ur.current,{mode:Fn,lineNumbers:!En,lineWrapping:!0,value:vn,autoCloseTags:!0,autoCloseBrackets:!0});return Bn.on("keyup",function(Xn,rr){rr.keyCode===8&&(Xn.getValue()==""?Bn.setOption("placeholder",kt):Bn.setOption("placeholder",null))}),Bn.on("keydown",function(Xn,rr){if(rr.keyCode===8){var Qr=Fi(Xn);Qr&&rr.preventDefault()}}),$n&&Bn.focus(),Bn.on("paste",Hn),Ee&&Bn.on("beforeChange",function(Xn,rr){(rr.origin==="paste"||rr.origin==="+input")&&rr.cancel()}),$t(Bn),()=>{Bn.off("paste",Hn)}}},[]);const ci=(0,b.useCallback)(()=>{if(Gr.current)try{}catch(Hn){console.log(Hn,"---- to set md editor body height")}},[Er,Gr,sr]);(0,b.useEffect)(()=>{function Hn(){let Bn=new Oe.Z(Xn=>{for(let rr of Xn)(rr.target.offsetHeight>0||rr.target.offsetWidth>0)&&(ci(),Et.setSize("100%","100%"),Et.refresh())});return Bn.observe(Ur.current.parentElement),Bn}if(Et){const Bn=Hn();return()=>{var Xn,rr;(Xn=Ur.current)!=null&&Xn.parentElement&&Bn.unobserve((rr=Ur.current)==null?void 0:rr.parentElement)}}},[Et,ci]),(0,b.useEffect)(()=>{if(Et){let Hn=[];for(const[Bn,Xn]of Object.entries(Sn)){let rr={[Bn]:()=>{vi(Xn)}};Hn.push(rr),Et.addKeyMap(rr)}return()=>{for(let Bn of Hn)Et.removeKeyMap(Bn)}}},[Et]),(0,b.useEffect)(()=>{ct!==sr&&fr(ct)},[ct]),(0,ot.Z)(()=>{if(!on&&Jn>0){let Hn=new Date().getTime(),Bn=window.sessionStorage.getItem(qn);Hn>=Jn+wt&&(!Bn||Bn!==Pn)&&(window.sessionStorage.setItem(qn,Pn),Yn(!0))}},wt),(0,b.useEffect)(()=>{nr(Zn)},[Et,Zn]),(0,b.useEffect)(()=>{Et&&$n&&Et.focus()},[Et,$n]),(0,b.useEffect)(()=>{if(Dn&&Et){let Hn=function(Xn){let rr=Xn.target;if(Zr.current){let Qr=rr.scrollTop/rr.scrollHeight;Zr.current.scrollTop=Zr.current.scrollHeight*Qr}};const Bn=Et.getScrollerElement();return Bn.addEventListener("scroll",Hn),()=>{Bn.removeEventListener("scroll",Hn)}}},[Et,Dn]),(0,b.useEffect)(()=>{if(Et&&Fe){let Hn=function(Bn,Xn){Fe(Bn,Xn)};return Et.on("beforeChange",Hn),()=>{Et.off("beforeChange",Hn)}}},[Et,Fe]),(0,b.useEffect)(()=>{if(Et&&yt){let Hn=function(){yt(Et.getValue())};return Et.on("blur",Hn),()=>{Et.off("blur",Hn)}}},[Et,yt]);function Fi(Hn,Bn){var Xn=Hn.getDoc(),rr=Xn.getCursor(),Qr=Xn.getLine(rr.line),Ei=Qr.charAt(rr.ch-1),pi=Qr.lastIndexOf("@\u2581@",rr.ch),Bi=Qr.lastIndexOf("@\u2581\u2581@",rr.ch),Ii=pi>Bi?pi:Bi,Pi=pi>Bi?3:4;if(sn.indexOf(Ei)===-1)return null;if(console.log("change1:",Bn,Hn,Qr,rr,Ii,pi,Bi,Ei),Ii>=0&&rr.ch-Ii<5){var $i=Ii+Pi;return Xn.replaceRange("",{line:rr.line,ch:Ii},{line:rr.line,ch:$i}),{line:rr.line,ch:$i}}return null}(0,b.useEffect)(()=>{if(Et){let Hn=function(Bn,Xn){const rr=Bn.getValue();wn(rr),ur(new Date().getTime()),Bn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),tn&&(Un?tn(rr,jn(rr)):tn(rr))};return Et.on("change",Hn),()=>{Et.off("change",Hn)}}},[Et,tn]),(0,b.useEffect)(()=>{if(Et)if(vn==null)Et.setValue(""),wn("");else{const Hn=window.scrollY||window.pageYOffset;vn!==Et.getValue()&&(Et.setValue(vn),wn(vn),Et.setCursor(Ee?1:Et.lineCount(),0),window.scrollTo(0,Hn))}},[Et,vn]);const vi=(0,b.useCallback)(Hn=>{const Bn=Et.getCursor(),Xn=Et.getSelection();let rr=Xn.split(`
|
|
|
`);switch(Hn){case"bold":return Et.replaceSelection("**"+Xn+"**"),Xn===""&&Et.setCursor(Bn.line,Bn.ch+2),Et.focus();case"italic":return Et.replaceSelection("*"+Xn+"*"),Xn===""&&Et.setCursor(Bn.line,Bn.ch+1),Et.focus();case"code":return Et.replaceSelection("`"+Xn+"`"),Xn===""&&Et.setCursor(Bn.line,Bn.ch+1),Et.focus();case"inline-latex":return(0,Tt.Ye)(ti)?void 0:(_n("inline-latex"),Et.focus());case"latex":return Et.replaceSelection("```latex\n"+Xn+"\n```"),Et.setCursor(Bn.line+1,Xn.length+1),Et.focus();case"line-break":return Et.replaceSelection(`<br/>
|
|
|
`),Et.focus();case"list-ul":return Xn===""?Et.replaceSelection("- "+Xn):Et.replaceSelection(rr.map(Qr=>Qr===""?"":`- ${Qr}`).join(`
|
|
|
`)),Et.focus();case"list-ol":return Xn===""?Et.replaceSelection("1. "+Xn):Et.replaceSelection(rr.map((Qr,Ei)=>Qr===""?"":`${Ei+1}. ${Qr}`).join(`
|
|
|
`)),Et.focus();case"add-null-ch":Ct==null||Ct();return;case"add-signal":return Xn===""&&Et.setCursor(Bn.line,Bn.ch),Et.replaceSelection(bn),Et.focus();case"add-multiple":return Xn===""&&Et.setCursor(Bn.line,Bn.ch),Et.replaceSelection(sn),Et.focus();case"inster-template-1":return Xn===""&&Et.setCursor(Bn.line,Bn.ch),Et.replaceSelection(An),Et.focus();case"eraser":return Et.setValue(""),Et.focus();case"trigger-watch":return nr(!Dn),Et.focus();case"trigger-full-screen":return fr(!sr),Et.focus();case Zt:_n(Zt);return;case nn:_n(nn);return;case Ht:_n(Ht);return;case Yt:_n(Yt);return;case"maths-latex":if((0,Tt.Ye)(ti))return;_n("maths-latex");return;case rn:Jr.current="",sessionStorage.removeItem("file_id"),_n(rn);return;case Wt:_n(Wt);return;default:throw new Error}},[Et,Dn,sr]),xi=(0,b.useCallback)((Hn,Bn)=>{var Xn,rr,Qr,Ei,pi,Bi;Hn!=null&&Hn.disabledClose||_n("");const{src:Ii,alt:Pi,id:$i}=Hn||{};switch(Qn){case Zt:const{title:Do,link:To}=Hn;return Et.replaceSelection(`[${Do}](${To})`),Et.focus();case nn:const{language:Co,content:qr}=Hn;return Et.replaceSelection(["```"+Co,qr,"```"].join(`
|
|
|
`)),Et.focus();case"maths-latex":for(var Ni=atob(Hn),Ai=new Uint8Array(Ni.length),lo=0;lo<Ni.length;lo++)Ai[lo]=Ni.charCodeAt(lo);var xo=new Blob([Ai],{type:"image/png"});(0,be.I)(xo,gi=>{gi.id?Et.replaceSelection(``):(gi==null?void 0:gi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Tt.Ye)(ti))return;Et.replaceSelection("`$$"+Hn+"$$`");break;case Ot:if(!$i)return;Et.getValue().indexOf(Ii)===-1?Et.replaceSelection(`<center><img id="${$i}" width="80%" src="${Ii}" class="draw-flowchart" alt="${Pi||""}" /></center>`):document.getElementById($i).src=ce.Z.API_SERVER+Ii+"?t="+Date.now();break;case Ht:case Yt:const Hr=Bn,Ji=(Qr=(rr=(Xn=Hr==null?void 0:Hr.name)==null?void 0:Xn.split("."))==null?void 0:rr.pop)==null?void 0:Qr.call(rr);return((Ei=Hr==null?void 0:Hr.type)==null?void 0:Ei.indexOf("image"))>-1||!(Hr!=null&&Hr.type)?Hr!=null&&Hr.align||Hr!=null&&Hr.width?Et.replaceSelection(`<p style="text-align:${Hr.align||"initial"}"><img width="${Hr.width?Hr.width+"%":"initial"}" src="${Ii}" alt="${Pi||""}" /></p>`):Et.replaceSelection(`<img width="100%" src="${Ii}" alt="${Pi||""}" />`):((pi=Hr==null?void 0:Hr.type)==null?void 0:pi.indexOf("video"))>-1?Et.replaceSelection(`<video width="100%" controls src="${Ii}"></video>`):((Bi=Hr==null?void 0:Hr.type)==null?void 0:Bi.indexOf("pdf"))>-1?Et.replaceSelection(`<a href="${Ii}?type=${Hr.type}&disposition=inline" target="_blank">${Hr.name}</a>`):zn.includes(Ji)?Et.replaceSelection(`<a href="${Ii}?type=office&disposition=inline" target="_blank">${Hr.name}</a>`):Et.replaceSelection(`[${Hr.name}](${Ii})`),Et.focus();case Wt:const{row:qi,col:ai,align:Wi}=Hn;let Yi=`
|
|
|
`;for(let gi=0;gi<qi;gi++){let Zi=[],Mi=[];for(let Zo=0;Zo<ai;Zo++)gi===1&&Mi.push(mt[Wi]),Zi.push(" ");gi===1&&(Yi+=`| ${Mi.join(" | ")} |
|
|
|
`),Yi+=`| ${Zi.join(ai===1?"":" | ")} |
|
|
|
`}return Et.replaceSelection(Yi+`
|
|
|
`),Et.focus();default:throw new Error}},[Et,Qn]),hi=(0,b.useMemo)(()=>{switch(Qn){case Zt:return b.createElement(Ut,{callback:xi,onCancel:bi});case nn:return b.createElement(Bt.Z,{callback:xi,onCancel:bi});case Ht:return b.createElement(be.Z,{callback:xi,onCancel:bi});case rn:return b.createElement(oe,{editImgId:Jr.current,callback:xi,onCancel:bi});case Wt:return b.createElement(Re,{callback:xi,onCancel:bi});case"maths-latex":return b.createElement(we,{showSaveButton:!0,callback:xi});case"inline-latex":return b.createElement(Pe.Z,{showSaveButton:!0,callback:xi});default:return null}},[Qn]);function bi(){_n("")}(0,b.useEffect)(()=>{if(oi.current){let Hn=function(pi){Qr=!0,Ei=pi.pageY},Bn=function(){Qr=!1},Xn=function(pi){if(Qr){let Bi=pi.pageY-Ei;Bi<0&&(Bi=0),Bi>300&&(Bi=300);let Ii=cn+Bi+"px";Cr(Ii)}},rr=oi.current,Qr=!1,Ei=0;return rr.addEventListener("mousedown",Hn),document.addEventListener("mousemove",Xn),document.addEventListener("mouseup",Bn),()=>{rr.removeEventListener("mousedown",Hn),document.removeEventListener("mousemove",Xn),document.removeEventListener("mouseup",Bn)}}},[Et,oi]),(0,b.useEffect)(()=>{Cr(cn)},[cn]);const Rr=pn(en),kr=pn(Er),cr={width:Rr,height:kr},On=(0,b.useMemo)(()=>{if(Jn){let Hn=new Date(Jn),Bn=Hn.getHours(),Xn=Hn.getMinutes(),rr=Hn.getSeconds();return Bn=Bn<10?"0"+Bn:Bn,Xn=Xn<10?"0"+Xn:Xn,rr=rr<10?"0"+rr:rr,`${Bn}:${Xn}:${rr}`}return 0},[Jn]),jn=Hn=>{const Bn=[];if(Un){let Xn=-1;Hn=Hn.replace(/(@▁▁@|@▁@)/g,function(rr,Qr,Ei){Bn.push({multiLine:rr!==bn})})}return Bn};function Kn(){window.sessionStorage.removeItem(qn),Yn(!1),ur(0)}function kn(){Yn(!1),ur(0),Et.setValue(window.sessionStorage.getItem(qn))}(0,b.useEffect)(()=>{Mn[Qn]&&Qn!==Yt&&Qn!==rn&&setTimeout(()=>{const Hn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth/2-Hn.offsetWidth/2,Xn=window.innerHeight/2-Hn.offsetHeight/2;mr(Bn),Yr(Xn)},0)},[Qn]);const lr=Hn=>{Hn.preventDefault();const Bn=Hn.clientX-yr,Xn=Hn.clientY-Vr;document.body.onmousemove=rr=>{let Qr=rr.clientX-Bn,Ei=rr.clientY-Xn;const pi=document.getElementsByClassName("markdown-popup-form")[0],Bi=window.innerWidth-pi.offsetWidth,Ii=window.innerHeight-pi.offsetHeight;Qr=Math.max(0,Math.min(Qr,Bi)),Ei=Math.max(0,Math.min(Ei,Ii)),br(rr.clientX,rr.clientY,Bn,Xn)&&(mr(Qr),Yr(Ei))},document.body.onmouseup=function(){document.body.onmousemove=null}},br=(Hn,Bn,Xn,rr)=>{const Qr=document.body.clientHeight,Ei=document.body.clientWidth;return Hn<20&&Xn>Hn||Hn>Ei-20&&Xn<Hn||Bn<20&&rr>Bn||Bn>Qr-20&&rr<Bn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:Gr},b.createElement("div",{className:`markdown-editor-container ${ze} ${Dn?"on-preview":""} ${En?"mini":""} ${sr?"full-screen":""}`,style:cr},b.createElement(zt,{insertTemp:Nn,watch:Dn,fullScreen:sr,showNullButton:xn,showNullProgramButton:Un,onActionCallback:vi,hidetoolBar:Gn,extraUse:bt}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Ur,placeholder:kt})),Dn?b.createElement("div",{ref:Zr,className:"preview-container"},Fn==="stex"&&b.createElement(Lt,{value:Pn}),Fn!=="stex"&&b.createElement(ke.Z,{edit:!0,disabledFill:It,showProgramFill:Un,value:Pn,openEditor:Hn=>{var Bn;Jr.current=Hn,(Bn=Or.current)==null||Bn.setHeight("100vh"),setTimeout(()=>{_n("add-flowchart")},150)}})):null))),er?b.createElement("a",{ref:oi,className:"editor-resize"}):null,Qn===Yt&&b.createElement(Ft,{callback:xi,onCancel:bi}),Qn===rn&&b.createElement(oe,{ref:Or,editImgId:Jr.current,callback:xi,onCancel:bi}),b.createElement(St.Z,null,Mn[Qn]&&Qn!==Yt&&Qn!==rn?b.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yr,top:Vr},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:lr},Mn[Qn]),open:!0,onCancel:bi,footer:null,destroyOnClose:!0,width:Qn===rn?"1200px":null,height:Qn===rn?"80vh":null,className:"markdown-popup-form"},hi):null))}},45053:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return nt},I:function(){return zt}});var b=ee(28284),je=ee(6767),fe=ee(37568),Ge=ee(44104),Oe=ee(4875),ye=ee(47889),De=ee(7939),Ze=ee(28735),Ce=ee(59301),ue=ee(59301),tt=Object.defineProperty,ke=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ie=(St,it,ut)=>it in St?tt(St,it,{enumerable:!0,configurable:!0,writable:!0,value:ut}):St[it]=ut,Xe=(St,it)=>{for(var ut in it||(it={}))$e.call(it,ut)&&Ie(St,ut,it[ut]);if(at)for(var ut of at(it))Me.call(it,ut)&&Ie(St,ut,it[ut]);return St},pt=(St,it)=>ke(St,Lt(it));const{useForm:Rt}=b.default,Ve={width:280,marginRight:10},Te={labelCol:{span:5},wrapperCol:{span:19}};var nt=({callback:St,onCancel:it})=>{const[ut]=Rt();let Se=(0,Ce.useRef)();function st(Mt){Se.current.width=ut.getFieldValue("width"),Se.current.align=ut.getFieldValue("align"),St(Mt,Se.current)}function Je(Mt,We){if(Mt.status===-1){je.ZP.error(Mt.message);return}ut.setFieldsValue({src:`/api/attachments/${Mt.id}`,type:We.type})}function de(Mt){let We=Mt.target.files[0];Se.current=We,zt(We,Je)}return ue.createElement(b.default,pt(Xe({form:ut},Te),{className:"upload-image-panel",onFinish:st,style:{width:470,overflow:"hidden"}}),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ue.createElement("div",{className:"flex-container"},ue.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ue.createElement(fe.default,{style:Ve})),ue.createElement(Qe,{onFileChange:de}))),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ue.createElement(fe.default,{style:{width:264}})),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ue.createElement(Ge.Z,null,ue.createElement(b.default.Item,{name:"width",style:{margin:0}},ue.createElement(Oe.Z,{style:{width:264}})),ue.createElement("span",{className:"ml8"},"%"))),ue.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ue.createElement(ye.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"}]})),ue.createElement("aside",null,ue.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ue.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(De.ZP,{type:"default",onClick:it},"\u53D6\u6D88"))))};function Qe({onFileChange:St}){return ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ue.createElement("input",{type:"file",onChange:St}))}function zt(St,it){if(!St)throw new String("\u6CA1\u6709\u6587\u4EF6");let ut=new FormData;ut.append("editormd-image-file",St),ut.append("file_param_name","editormd-image-file"),ut.append("byxhr","true");var Se=new window.XMLHttpRequest;Se.withCredentials=!0,Se.addEventListener("load",function(st){it(JSON.parse(st.target.responseText),St)},!1),Se.addEventListener("error",function(st){console.error(st)},!1),Se.open("POST",`${Ze.KI}/api/attachments.json`),Se.send(ut)}},57261:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return fe}});var b=ee(59301),je=ee(4676);class fe extends b.Component{constructor(Oe){super(Oe);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:Oe}=this.props;return(0,je.createPortal)(Oe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(yn,Qt,ee){"use strict";ee.d(Qt,{SV:function(){return Ft},ZP:function(){return rt}});var b=ee(59301),je=ee(76374);const fe={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"]},Ge={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"]},Oe={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(`
|
|
|
`)}]},ye={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(`
|
|
|
`)}]},De={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 Ze=ee(53184),Ce=ee.n(Ze),ue=(qe,Jt,Dt)=>new Promise((ae,ne)=>{var te=re=>{try{ce(Dt.next(re))}catch(le){ne(le)}},oe=re=>{try{ce(Dt.throw(re))}catch(le){ne(le)}},ce=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ce((Dt=Dt.apply(qe,Jt)).next())});const tt={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"]}},ke=(qe,Jt,Dt,ae)=>{const ne=Jt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Dt.lineNumber,endColumn:Dt.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:qe.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Lt=(qe,Jt,Dt,ae)=>{qe.languages.registerCompletionItemProvider(Jt,{provideCompletionItems(ne,te){const oe=ne.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},re=ne.getLineContent(te.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...ke(qe,ne,te,ce),...Dt.map(ge=>({label:ge,kind:qe.languages.CompletionItemKind.Keyword,documentation:ge,insertText:ge,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...ae.map(ge=>({label:ge.label,kind:qe.languages.CompletionItemKind.Snippet,documentation:ge.content,insertText:re.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}})};var at=qe=>{tt.languages.forEach(Jt=>{qe.languages.registerDocumentFormattingEditProvider(Jt,{provideDocumentFormattingEdits(Dt){return ue(this,null,function*(){const ae=Ce()(Dt.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:Dt.getFullModelRange(),text:ae}]})}})}),Lt(qe,"java",Ge.keywords,Ge.quickKey),Lt(qe,"cpp",Oe.keywords,Oe.quickKey),Lt(qe,"c",fe.keywords,[]),Lt(qe,"python",ye.keywords,ye.quickKey),Lt(qe,"scala",De.keywords,De.quickKey)};const $e="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Me=Object.defineProperty,Ie=(qe,Jt,Dt)=>Jt in qe?Me(qe,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):qe[Jt]=Dt,Xe=(qe,Jt,Dt)=>Ie(qe,typeof Jt!="symbol"?Jt+"":Jt,Dt);const pt=class Hc{constructor(Jt,Dt,ae){this.placeholder=Jt,this.editor=Dt,this.monaco=ae,Dt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Hc.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)}};Xe(pt,"ID","editor.widget.placeholderHint");var Ve=pt,Te=ee(96236),nt=ee(6767),Qe=ee(25399),zt=ee(89392),St=ee(77254),it=ee(56102),ut=Object.defineProperty,Se=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,We=(qe,Jt,Dt)=>Jt in qe?ut(qe,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):qe[Jt]=Dt,Pt=(qe,Jt)=>{for(var Dt in Jt||(Jt={}))de.call(Jt,Dt)&&We(qe,Dt,Jt[Dt]);if(Je)for(var Dt of Je(Jt))Mt.call(Jt,Dt)&&We(qe,Dt,Jt[Dt]);return qe},Xt=(qe,Jt)=>Se(qe,st(Jt)),Be=(qe,Jt)=>{var Dt={};for(var ae in qe)de.call(qe,ae)&&Jt.indexOf(ae)<0&&(Dt[ae]=qe[ae]);if(qe!=null&&Je)for(var ae of Je(qe))Jt.indexOf(ae)<0&&Mt.call(qe,ae)&&(Dt[ae]=qe[ae]);return Dt},me=(qe,Jt,Dt)=>new Promise((ae,ne)=>{var te=re=>{try{ce(Dt.next(re))}catch(le){ne(le)}},oe=re=>{try{ce(Dt.throw(re))}catch(le){ne(le)}},ce=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ce((Dt=Dt.apply(qe,Jt)).next())});function ht(qe){return/^\d+$/.test(qe)?`${qe}px`:qe}function Ut(){}let Bt=!1;const be={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ye(qe=[]){let Jt=qe;if(Array.isArray(qe)){for(let Dt=0;Dt<qe.length;Dt++){let ae=be[qe[Dt]];if(ae)return ae}return Jt[0]}return be[Jt]||Jt}let et=null;const _t=()=>me(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(qe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",qe)}});var rt=qe=>{var Jt=qe,{width:Dt="100%",height:ae="100%",value:ne,language:te="javascript",style:oe={},options:ce={},overrideServices:re={},theme:le="vs-dark",onEditBlur:ge,isCopy:vt=!1,onSave:Re,autoHeight:Ae=!1,forbidCopy:Ke=!1,forbidCopyTips:_e,onChange:gt=Ut,editorDidMount:we=Ut,onFocus:Pe=Ut,onBreakPoint:Zt=Ut,breakPointValue:Ht=[],filename:rn="educoder.txt",errorLine:Yt,errorContent:Ot="",highlightLine:nn,openBreakPoint:Wt=!1,placeholder:He="",showMiniMap:mt=!0}=Jt,ot=Be(Jt,["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 Tt=(0,b.useRef)(),Ne=(0,b.useRef)({}),dt=(0,b.useRef)(),wt=(0,b.useRef)(),Kt=(0,b.useRef)([]),sn=(0,b.useRef)(!1),bn=(0,b.useRef)(),An=(0,b.useRef)(),zn=(0,b.useRef)(!1),[pn,Tn]=(0,b.useState)(!1);function un(){let on;return Tt.current&&(on=new je.Z(xn=>{for(let Un of xn)(Un.target.offsetHeight>0||Un.target.offsetWidth>0)&&Ne.current.instance.layout()}),on.observe(Tt.current)),on}function Sn(){nt.ZP.warning({content:decodeURIComponent(_e||$e),key:"monaco-editor-tip"})}const Mn=()=>{let on=Ne.current.instance;if(ne!=null&&on&&pn){const xn=on.getModel();xn&&ne!==xn.getValue()&&(Bt=!0,xn.setValue(ne),on.layout(),Bt=!1)}};(0,b.useEffect)(()=>{const on=St.Z.subscribe("formatDocument",xn=>{var Un;let Gn=Ne.current.instance;(Un=Gn==null?void 0:Gn.getAction)==null||Un.call(Gn,"editor.action.formatDocument").run()});return window.updateMonacoValue=xn=>{gt(xn)},on},[]),(0,b.useEffect)(()=>{var on;let xn=Ne.current.instance;wt.current&&clearTimeout(wt.current),wt.current=setTimeout(()=>{Mn()},500),ne&&(ne!=null&&ne.length)&&((on=xn==null?void 0:xn.updateOptions)==null||on.call(xn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,pn,Ne.current]),(0,b.useEffect)(()=>{if(Yt&&Ne.current&&Ne.current.instance){let xn=Ne.current.instance;xn.changeViewZones(function(Un){var Gn=document.createElement("div");Gn.style.padding="10px 20px",Gn.style.width="calc(100% - 20px)",Gn.className="my-error-line-wrp",Gn.innerHTML=Ot,Un.addZone({afterLineNumber:Yt||11,heightInLines:3,domNode:Gn})});var on={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}};xn.addOverlayWidget(on),xn.revealPositionInCenter({lineNumber:20,column:1})}},[Yt,Ne.current,pn]);const Rn=(on="",xn)=>{if(!on||on.trim()==="")return!0;const Gn=Ne.current.instance.getModel().getLineTokens(xn);let ct=!1;for(let yt=0;yt<2;yt++)Gn.getStandardTokenType(yt)===1&&(ct=!0);return ct};(0,b.useEffect)(()=>{var on;const xn=(on=Ne.current)==null?void 0:on.instance;if(xn&&pn&&Ke){const Un=xn.onDidBlurEditorWidget(()=>{zn.current=!1}),Gn=xn.onDidFocusEditorText(()=>{zn.current=!0});return()=>{Un.dispose(),Gn.dispose()}}},[Ne.current,pn,Ke]),(0,b.useEffect)(()=>{var on;if((on=Ne.current)!=null&&on.instance&&pn&&Wt){let xn=Ne.current.instance,Un=xn.getModel();if(!Un)return;(()=>{var bt;let Ct=[],Et=[];const $t=Un.getAllDecorations();for(let wn of $t)wn.options.className==="highlighted-line"&&(Ct.push((bt=wn==null?void 0:wn.range)==null?void 0:bt.startLineNumber),Et.push(wn==null?void 0:wn.id));if(nn===Ct[0])return;Un.deltaDecorations(Et,[]);const Pn=Un.getLineCount();nn&&nn<=Pn&&(xn.deltaDecorations([],[{range:new et.Range(nn,1,nn,Un.getLineMaxColumn(nn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),xn.revealLineInCenter(nn))})();const ct=(bt=!1)=>{var Ct;let Et=[],$t=[];const Pn=Un.getAllDecorations();for(let wn of Pn)wn.options.linesDecorationsClassName==="breakpoints-select"&&(Et.push((Ct=wn==null?void 0:wn.range)==null?void 0:Ct.startLineNumber),$t.push(wn==null?void 0:wn.id));if(bt)return{lines:Et,ids:$t};Zt(Et)},yt=bt=>me(void 0,null,function*(){let Ct={range:new et.Range(bt,1,bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Un.deltaDecorations([],[Ct]),ct()}),Fe=bt=>me(void 0,null,function*(){let Ct=[];const Et=xn.getLineDecorations(bt);for(let $t of Et)$t.options.linesDecorationsClassName==="breakpoints-select"&&Ct.push($t.id);yield Un.deltaDecorations(Ct,[]),ct()}),lt=bt=>{let Ct=xn.getLineDecorations(bt);for(let Et of Ct)if(Et.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,zt.isEqual)(Ht,ct(!0).lines)){Un.deltaDecorations(ct(!0).ids,[]);const bt=Ht.map(Ct=>({range:new et.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Un.deltaDecorations([],bt)}const ze=xn.onDidChangeModelContent(bt=>{let Ct=xn.getPosition();if(Ct){let Et=Ct.lineNumber;clearTimeout(An.current),An.current=setTimeout(()=>{Rn(Un.getLineContent(Et),Et)?Fe(Et):lt(Et)?(Fe(Et),yt(Et)):ct()},100)}}),xt=xn.onMouseDown(bt=>{var Ct,Et,$t;if(bt.target.detail&&(($t=(Et=(Ct=bt.target)==null?void 0:Ct.element)==null?void 0:Et.className)!=null&&$t.includes("line-numbers"))){let Pn=bt.target.position.lineNumber;if(Rn(Un.getLineContent(Pn),Pn))return;lt(Pn)?Fe(Pn):yt(Pn)}}),Ee=bt=>{let Ct={range:new et.Range(bt,1,bt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Kt.current=xn.deltaDecorations(Kt.current,[Ct])},It=()=>{Kt.current=xn.deltaDecorations(Kt.current,[])},kt=xn.onMouseMove(bt=>{var Ct,Et,$t;if(It(),bt.target.detail&&(($t=(Et=(Ct=bt.target)==null?void 0:Ct.element)==null?void 0:Et.className)!=null&&$t.includes("line-numbers"))){let Pn=bt.target.position.lineNumber;if(Rn(Un.getLineContent(Pn),Pn))return;Ee(Pn)}}),Vt=xn.onMouseLeave(()=>{It()});return()=>{ze.dispose(),xt.dispose(),kt.dispose(),Vt.dispose()}}},[Ne.current,pn,Ht,nn,Wt,te]),(0,b.useEffect)(()=>{var on;(on=Ne.current)!=null&&on.instance&&Wt&&Ne.current.instance.setPosition({lineNumber:0,column:0})},[nn]);function vn(){let on=Ne.current.instance;if(on){const xn=on.getSelection(),Un=Ne.current.pastePos||{},Gn=new et.Range(Un.startLineNumber||xn.endLineNumber,Un.startColumn||xn.endColumn,Un.endLineNumber||xn.endLineNumber,Un.endColumn||xn.endColumn);setTimeout(()=>{on.executeEdits("",[{range:Gn,text:""}])},300)}}function tn(on){(window.navigator.platform.match("Mac")?on.metaKey:on.ctrlKey)&&on.keyCode==83&&(on.preventDefault(),Re())}const en=()=>{if(Ae&&Ne.current.instance){const on=Ne.current.instance.getContentHeight();qn(on<ae?ae:on)}else qn(ae)};function cn(on){var xn=document.createEvent("MouseEvents");xn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),on.dispatchEvent(xn)}const En=on=>{if(!zn.current)return;const{keyCode:xn,ctrlKey:Un,metaKey:Gn,target:ct,type:yt}=on;return(yt==="paste"||(xn===67||xn===86)&&(Gn||Un))&&ct.nodeName==="TEXTAREA"&&(Sn(),on.preventDefault()),!1};function $n(on,xn){var Un=window.URL||window.webkitURL||window,Gn=new Blob([xn]),ct=document.createElementNS("http://www.w3.org/1999/xhtml","a");ct.href=Un.createObjectURL(Gn),ct.download=on,cn(ct)}(0,b.useEffect)(()=>{en()},[en]),(0,b.useEffect)(()=>{Tt.current&&!pn&&Promise.all([ee.e(8909),ee.e(2460)]).then(ee.bind(ee,71448)).then(on=>{try{et=on,Ne.current.instance=et.editor.create(Tt.current,{value:ne,language:Ye(te),theme:le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:mt||!1}},re);const xn=Ne.current.instance;let ct=[...Te.BH._menuItems].find(ze=>ze[0]._debugName=="EditorContext")[1],yt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Fe=(ze,xt)=>{var Ee,It;let kt=ze._first;do xt.includes((It=(Ee=kt.element)==null?void 0:Ee.command)==null?void 0:It.id)&&ze._remove(kt);while(kt=kt.next)};if(we(xn,et),setTimeout(()=>{en(),Ne.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{$n(rn||"educoder.txt",xn.getValue())}})},500),Ne.current.subscription=xn.onDidChangeModelContent(ze=>{sn.current?clearTimeout(bn.current):(en(),gt(xn.getValue(),ze)),bn.current=setTimeout(()=>{sn.current=!1},500)}),window.Monaco||at(et,Ye(te)),Ke&&(Fe(ct,yt),Tt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",En),window.removeEventListener("paste",En),window.addEventListener("keydown",En),window.addEventListener("paste",En)),window.Monaco=et,ge&&xn.onDidBlurEditorWidget(()=>{ge(xn.getValue())}),Pe&&xn.onDidFocusEditorText(()=>{Ke&&_t(),Pe(xn.getValue())}),Ke){_t();try{xn.onDidPaste(ze=>{const xt=xn.getSelection(),Ee=Ne.current.pastePos||{},It=new et.Range(Ee.startLineNumber||xt.endLineNumber,Ee.startColumn||xt.endColumn,Ee.endLineNumber||xt.endLineNumber,Ee.endColumn||xt.endColumn);xn.executeEdits("",[{range:ze.range,text:""}])})}catch(ze){}}let lt=un();return He&&typeof He=="string"&&new Ve(He,xn,et),Tn(!0),()=>{const ze=Ne.current.instance;ze.dispose();const xt=ze.getModel();xt&&xt.dispose(),Ne.current.subscription&&Ne.current.subscription.dispose(),lt.unobserve(Tt.current)}}catch(xn){}})},[]),(0,b.useEffect)(()=>{if(Ne.current.instance&&pn)return document.addEventListener("keydown",tn,!1),()=>{document.removeEventListener("keydown",tn)}},[Re,pn]),(0,b.useEffect)(()=>{let on=Ne.current.instance;if(on&&pn){let xn=Ye(te);et.editor.setModelLanguage(on.getModel(),xn)}},[te,pn]),(0,b.useEffect)(()=>{Ne.current.instance&&pn&&et.editor.setTheme(le)},[le,pn]),(0,b.useEffect)(()=>{let on=Ne.current.instance;dt.current=ce,on&&pn&&(on.updateOptions(Pt({},ce)),setTimeout(()=>{on.getModel().updateOptions(Pt({},ce))},200))},[JSON.stringify(ce),pn]),(0,b.useEffect)(()=>{let on=Ne.current.instance;on&&pn&&on.layout()},[Dt,ae,pn]);const[Zn,Nn]=(0,b.useState)(ht(Dt)),[Fn,qn]=(0,b.useState)(ht(ae)),er=Xt(Pt({},oe),{width:Zn,height:Fn,position:"relative"});return b.createElement("div",{className:"my-monaco-editor",ref:Tt,style:er,onFocus:()=>{Ke&&_t()}},vt&&b.createElement(it.CopyToClipboard,{text:ne,onCopy:()=>nt.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement(Qe.Z,{title:"\u590D\u5236\u4EE3\u7801"},b.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},b.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ft({width:qe="100%",height:Jt="100%",original:Dt,modified:ae,language:ne,options:te={}}){const oe=(0,b.useRef)(),[ce,re]=(0,b.useState)(null);function le(Ae){let Ke;return oe.current&&(Ke=new je.Z(_e=>{for(let gt of _e)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&Ae.layout()}),Ke.observe(oe.current)),Ke}(0,b.useEffect)(()=>(oe.current&&Promise.all([ee.e(8909),ee.e(9404)]).then(ee.bind(ee,2550)).then(Ae=>{et=Ae;const Ke=et.editor.createDiffEditor(oe.current,Xt(Pt({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},te),{wordWrap:!0}));re(Ke);let _e=le(Ke);return()=>{Ke.dispose();const gt=Ke.getModel();gt&>.dispose(),_e.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,b.useEffect)(()=>{ce&&ce.setModel({original:et.editor.createModel(Dt,ne),modified:et.editor.createModel(ae,ne)})},[Dt,ae,ne,ce]);const ge=ht(qe),vt=ht(Jt),Re={width:ge,height:vt};return b.createElement("div",{className:"my-diff-editor",ref:oe,style:Re})}},61584:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return tt}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},je=ee(29787),fe=ee(25399),Ge=ee(89787),Oe=ee(92310),ye=ee.n(Oe),De=ee(65862),Ze=ee(2524),Ce=ee(59301),tt=({className:ke,dataSource:Lt=[],col:at=4,right:$e,bottom:Me=23,precision:Ie=0,wrapWidth:Xe=1200,trackEventItems:pt,loading:Rt,onRemove:Ve=()=>{},isCurrent:Te=!0,showProgress:nt=!1,showAlias:Qe=!1,category:zt,hiddenClick:St})=>{const it=Math.floor((Xe-(at-1)*$e)/at),ut=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ce.createElement(je.Z,{spinning:Rt},Ce.createElement("div",{className:ye()(b.list,ke)},!!(Lt!=null&&Lt.length)&&(Lt==null?void 0:Lt.map((Se,st)=>{var Je,de,Mt,We,Pt,Xt,Be,me,ht,Ut,Bt,be,Ye;const{name:et,id:_t,identifier:rt,featured:Ft,school_name:qe,image_url:Jt,excellent:Dt,is_plan:ae}=Se;return Ce.createElement("div",{key:_t,className:Te&&nt?b.wrapisCurrent:b.wrap,style:{width:it,marginRight:(1+st)%at===0?0:$e+Ie,marginBottom:Me}},Ce.createElement("a",{className:b.li,onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),pt&&(0,De.L9)([pt]),(0,De.xg)(`/paths/${rt}`)}},Ce.createElement("div",{className:b.img},Ce.createElement("img",{className:b.cover,src:`${Jt}`}),(Je=Se==null?void 0:Se.subject_tags)==null?void 0:Je.map((ne,te)=>{var oe,ce;if(te===0){const le=(oe=ut.find(ge=>ge.name==ne))==null?void 0:oe.swimg;return Ce.createElement("img",{className:b.sign,src:le,style:{left:"-4px"}})}const re=(ce=ut.find(le=>le.name==ne))==null?void 0:ce.ptimg;return Ce.createElement("img",{className:b.sign,src:re,style:{left:`${48+52*(te-1)+2*te}px`}})}),Ce.createElement("div",{className:b.tagsDom},Ce.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Se==null?void 0:Se.excellent)&&Ce.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"),((de=Se==null?void 0:Se.custom_tags)==null?void 0:de.length)>0&&Ce.createElement(fe.Z,{title:(Pt=(We=Se==null?void 0:Se.custom_tags)==null?void 0:We[((Mt=Se==null?void 0:Se.custom_tags)==null?void 0:Mt.length)-1])==null?void 0:Pt.tag_name},Ce.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Ce.createElement("span",{className:"multi-llipsis1e text-10px"},(me=(Be=Se==null?void 0:Se.custom_tags)==null?void 0:Be[((Xt=Se==null?void 0:Se.custom_tags)==null?void 0:Xt.length)-1])==null?void 0:me.tag_name))))),zt=="hide"&&(Se==null?void 0:Se.studying)&&Te&&Ce.createElement("div",{className:`${b.movebq} user-path-items`,onClick:ne=>{ne.stopPropagation(),Ve(Se)}},Ce.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ce.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(zt)&&Te&&Ce.createElement("div",{className:`${b.hiddenbq} user-path-items`,onClick:ne=>{ne.stopPropagation(),St(Se)}},Ce.createElement("i",{className:`iconfont ${zt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ce.createElement("span",null,zt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ce.createElement("div",{className:b.name},Ce.createElement(fe.Z,{title:Qe&&(Se!=null&&Se.excellent_alias_name)?Ce.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${et}`,Ce.createElement("br",null),Ce.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Se==null?void 0:Se.excellent_alias_name}`)):et},Ce.createElement("span",{className:b.e},Qe&&(Se==null?void 0:Se.excellent_alias_name)||et))),Te&&nt&&((ht=Se==null?void 0:Se.progress)==null?void 0:ht.all_score)!=0&&Ce.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ce.createElement(Ge.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ut=Se==null?void 0:Se.progress)==null?void 0:Ut.my_score)/((Bt=Se==null?void 0:Se.progress)==null?void 0:Bt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(be=Se==null?void 0:Se.progress)==null?void 0:be.my_score,"/",(Ye=Se==null?void 0:Se.progress)==null?void 0:Ye.all_score),(!Te||!nt)&&Ce.createElement(fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${qe}`},Ce.createElement("div",{className:b.unit},Ce.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),qe)),(!Te||!nt)&&Ce.createElement("div",{className:b.tags},Ce.createElement("div",null,Ce.createElement(fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ce.createElement("span",null,Se.stages_count))),Ce.createElement(fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ce.createElement("span",null,Se.members_count)))))))})),!Lt.length&&Ce.createElement(Ze.Z,null)))}},82636:function(yn,Qt,ee){"use strict";ee.d(Qt,{jL:function(){return Oe},w9:function(){return be},QD:function(){return nn},cQ:function(){return We.Z},op:function(){return Pe},O5:function(){return vn},_b:function(){return Ne},t7:function(){return Xe},Gi:function(){return qe},YG:function(){return rt},qp:function(){return tt},vr:function(){return mt},qE:function(){return rn},Je:function(){return Ve},wb:function(){return Mt},cq:function(){return oe},tp:function(){return at}});var b=ee(59301),je={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"},fe="data:image/png;base64,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",Oe=({dataSource:tn=[],img:en,imgWidth:cn=346,title:En,sunTitle:$n,bannerExtraContent:Zn})=>b.createElement("div",{className:je.banner},b.createElement("div",{className:je.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,En),b.createElement("span",null,$n)),tn.length>0&&b.createElement("div",{className:je.btns},tn.map((Nn,Fn)=>b.createElement("div",{key:Fn,onClick:Nn.click},Nn.name,Nn.sign?b.createElement("img",{src:fe,width:39}):null))),Zn),en&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:en,width:cn}))),ye={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"},De=ee(92310),Ze=ee.n(De),Ce=ee(89392),tt=({dataSource:tn=[],value:en,onChange:cn,onTitleChange:En,className:$n,title:Zn,titleWidth:Nn=41,style:Fn={},fontColor:qn="#6A7283",showCount:er})=>{const[on,xn]=(0,b.useState)(1),[Un,Gn]=(0,b.useState)(!1),ct=(0,b.useRef)(null),yt=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Fe;tn.length!==0&&(((Fe=ct==null?void 0:ct.current)==null?void 0:Fe.clientHeight)>97?xn(1):xn(0)),tn.length===0&&xn(0),Gn(!1)},[tn]),b.createElement("div",{className:Ze()(ye.row,$n,"fadeIn","animated"),style:Fn},b.createElement("div",{onClick:(0,Ce.throttle)(()=>En==null?void 0:En(),2e3),style:{width:Nn,marginTop:Un?12:4},className:`${ye.title} ${En?"current":""}`},Zn),b.createElement("div",{className:Un?`${ye.tagsWrap} ${ye.tagsBorderWrap}`:ye.tagsWrap},b.createElement("div",{className:ye.bar,ref:yt,style:on>0?{height:on===1?97:"auto",overflow:on===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:ye.tag,ref:ct},tn==null?void 0:tn.map(Fe=>b.createElement("span",{onClick:()=>cn(Fe.id),key:Fe.id,style:{color:qn},className:en===Fe.id?ye.active:""},b.createElement("span",{title:Fe.name,className:ye.name},Fe.name),!!er&&b.createElement("span",{className:ye.num},Fe.count))))),!!on&&b.createElement(b.Fragment,null,on===1?b.createElement("div",{onClick:()=>{var Fe;xn(2),((Fe=ct==null?void 0:ct.current)==null?void 0:Fe.clientHeight)>245?Gn(!0):Gn(!1)},className:ye.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{yt.current.scrollTop=0,xn(1),Gn(!1)},className:ye.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ke={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"},at=({dataSource:tn=[],value:en,onChange:cn,className:En,style:$n={}})=>b.createElement("div",{style:$n,className:Ze()(ke.tabs,En)},tn.map(Zn=>b.createElement("span",{onClick:()=>cn(Zn.id),className:en===Zn.id?ke.active:"",key:Zn.id},Zn.name))),$e={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Me=ee(37568),Xe=({dataSource:tn=[],value:en="",onChange:cn,onInputChange:En=()=>{},className:$n,style:Zn={},placeholder:Nn,allowClear:Fn=!1})=>{var qn;const[er,on]=(0,b.useState)(""),[xn,Un]=(0,b.useState)("");(0,b.useEffect)(()=>{var yt;let Fe=en;(yt=JSON.stringify(en))!=null&&yt.includes("{")&&(on(en.id),Fe=en.value||"");try{Un(decodeURIComponent(Fe||""))}catch(lt){Un(decodeURIComponent(Fe||""))}},[en]);const Gn=()=>{cn(encodeURIComponent(xn),er||null)},ct=yt=>{yt!==er&&(on(yt),cn(encodeURIComponent(xn),yt))};return b.createElement("div",{className:Ze()($e.input,$n),style:Zn},!!tn.length&&b.createElement("div",{className:$e.dropdown},b.createElement("div",{className:$e.text},(qn=tn.find(yt=>yt.id===er))==null?void 0:qn.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:$e.b1}),b.createElement("b",{className:$e.b2})),b.createElement("div",{className:$e.menu},tn.map((yt,Fe)=>b.createElement("div",{key:Fe,onClick:()=>ct(yt.id)},yt.name)))),b.createElement(Me.default,{onPressEnter:Gn,value:xn,onChange:yt=>{Un(yt.target.value),En(encodeURIComponent(yt.target.value),er||null)},placeholder:Nn,variant:"borderless",allowClear:Fn,onClear:()=>cn("",er||null)}),b.createElement("i",{onClick:Gn,className:"iconfont icon-sousuo9 font14 current"}))},pt={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"},Ve=({value:tn,onChange:en,className:cn,total:En,pageSize:$n,style:Zn={}})=>{const Nn=tn<2,Fn=tn>=Math.ceil(En/$n);return En<=$n?b.createElement(b.Fragment,null):b.createElement("div",{className:Ze()(pt.quickPager,cn),style:Zn},b.createElement("div",{onClick:()=>{Nn||en(tn-1,"prev")},className:Nn?pt.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{Fn||en(tn+1,"next")},className:Fn?pt.disabled:""},"\u4E0B\u4E00\u9875"))},Te={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"},nt=ee(29787),Qe=ee(25399),zt=ee(63139),St=ee(74128),it=ee(65862),ut=ee(96908),Se=ee(57177),st=ee(81378),Je=ee(2524),Mt=({className:tn,dataSource:en=[],col:cn=4,right:En,bottom:$n=23,precision:Zn=0,wrapWidth:Nn=1200,trackEventItems:Fn,loading:qn})=>{const er=Math.floor((Nn-(cn-1)*En)/cn);return b.createElement(nt.Z,{spinning:qn},b.createElement("div",{className:Ze()(Te.list,tn)},!!en.length&&en.map((on,xn)=>{const{name:Un,id:Gn,identifier:ct,power:yt,cover_image_id:Fe,pic:lt}=on;return b.createElement("div",{className:Te.wrap,key:Gn,style:{width:er,marginRight:(1+xn)%cn===0?0:En+Zn,marginBottom:$n}},b.createElement("a",{target:"_blank",href:`/shixuns/${ct}/challenges`,className:Te.li,onClick:ze=>{ze.preventDefault(),Fn&&(0,it.L9)([Fn]),yt&&(0,it.xg)(`/shixuns/${ct}/challenges`)}},b.createElement("div",{className:Te.img},b.createElement("img",{className:Te.cover,src:`${lt}`}),on.is_jupyter&&b.createElement("img",{className:Te.sign,src:ut}),on.is_jupyter_lab&&b.createElement("img",{className:Te.sign,src:Se}),on.is_unity_3d&&b.createElement("img",{className:Te.sign,src:st})),b.createElement("div",{className:Te.name},b.createElement(Qe.Z,{title:Un||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Te.e},Un||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Te.tags},b.createElement(Qe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,on.challenges_count))),!!on.myshixuns_count&&b.createElement(Qe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,on.myshixuns_count))),b.createElement(Qe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,on.level))),b.createElement("div",{className:Te.rate},b.createElement(zt.Z,{allowHalf:!0,disabled:!0,defaultValue:on.score_info}),b.createElement("span",null,"\xA0",on.score_info?`${on.score_info}\u5206`:"5\u5206")))),!yt&&b.createElement("div",{className:Te.lockWrap},b.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!en.length&&b.createElement(Je.Z,null)))},We=ee(61584),Pt={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"},Xt=ee(62957),Be=ee(96599),me="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",ht=ee(59301),Ut=(tn,en,cn)=>new Promise((En,$n)=>{var Zn=qn=>{try{Fn(cn.next(qn))}catch(er){$n(er)}},Nn=qn=>{try{Fn(cn.throw(qn))}catch(er){$n(er)}},Fn=qn=>qn.done?En(qn.value):Promise.resolve(qn.value).then(Zn,Nn);Fn((cn=cn.apply(tn,en)).next())}),be=({className:tn,dataSource:en=[],col:cn=4,right:En,bottom:$n=23,precision:Zn=0,wrapWidth:Nn=1200,trackEventItems:Fn,loading:qn,category:er,hiddenClick:on,handleVery:xn=()=>!0,isCurrent:Un})=>{const[Gn,ct]=Xt.default.useModal(),yt=Math.floor((Nn-(cn-1)*En)/cn),Fe=lt=>Ut(void 0,null,function*(){Gn.confirm({title:"\u7F6E\u9876",width:500,content:ht.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",ht.createElement("span",{className:"c-blue"},"\u201C",lt.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return ht.createElement(nt.Z,{spinning:qn},ct,ht.createElement("div",{className:Ze()(Pt.list,tn)},!!en.length&&en.map((lt,ze)=>{const{subject_identifier:xt,id:Ee,identifier:It,power:kt}=lt,Vt=lt.is_public!=0&<.is_public;return ht.createElement("div",{className:Pt.wrap,key:Ee,style:{width:yt,marginRight:(1+ze)%cn===0?0:En+Zn,marginBottom:$n}},lt.homepage_show&&ht.createElement("div",{className:Pt.btnsTop},ht.createElement(Be.default,{color:"red"},"\u7F6E\u9876")),ht.createElement("a",{className:Pt.li,onClick:bt=>{bt.preventDefault(),xn(lt==null?void 0:lt.first_category_url)&&(Fn&&(0,it.L9)([Fn]),(0,it.xg)(lt.first_category_url))}},ht.createElement("div",{className:Pt.top},ht.createElement(Qe.Z,{title:lt.name},ht.createElement("div",{className:Pt.name},lt.name)),ht.createElement("img",{className:Pt.img,src:St.Z.IMG_SERVER+"/images/"+lt.avatar_url}),ht.createElement("div",{className:Pt.text,title:lt.creator},lt.creator),xt&&ht.createElement("div",{className:Pt.btns},ht.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ht.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Vt&&ht.createElement("div",{className:Pt.sign},"\u516C\u5F00"),Un&&ht.createElement("div",{className:Pt.hidden,onClick:bt=>{bt.stopPropagation(),on(lt)}},ht.createElement("i",{className:`iconfont ${er=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),er=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),ht.createElement("div",{className:Pt.bottom},lt.visits>0&&ht.createElement(Qe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-liulanyan"}),ht.createElement("span",null,lt.visits))),lt.course_members_count>0&&ht.createElement(Qe.Z,{title:"\u6210\u5458",placement:"bottom"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-chengyuan"}),lt.course_members_count)),lt.tasks_count>0&&ht.createElement(Qe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ht.createElement("span",null,ht.createElement("i",{className:"iconfont icon-zuoye"}),lt.tasks_count)),lt.is_end?ht.createElement("div",{style:{color:"#6B758B"}}):ht.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!lt.is_accessible&&ht.createElement("div",{className:Pt.lockWrap},ht.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ht.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!en.length&&ht.createElement(Je.Z,null)))},Ye={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"},et=ee(65582),rt=({dataSource:tn=[],value:en,onChange:cn,className:En,style:$n={},tabBarExtraContent:Zn})=>b.createElement("div",{className:Ze()(Ye.tabs,En),style:$n},b.createElement("div",{className:Ye.tabsWrap},tn.map((Nn,Fn)=>!(Nn!=null&&Nn.hide)&&b.createElement("aside",{className:Ye.tab,onClick:()=>{cn(Nn.id),Nn.link&&et.history.push(Nn.link)},key:Fn},b.createElement("div",{className:en===Nn.id?Ye.active:""},Nn.name),(Nn==null?void 0:Nn.resetCount)==null&&(Nn==null?void 0:Nn.total)!==void 0&&b.createElement("span",null,"\uFF08",Nn==null?void 0:Nn.total,"\uFF09"),(Nn==null?void 0:Nn.resetCount)!==void 0&&(Nn==null?void 0:Nn.total)!==void 0&&b.createElement(Qe.Z,{title:(Nn==null?void 0:Nn.tip)!=null?Nn==null?void 0:Nn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Nn==null?void 0:Nn.resetCount),"/",b.createElement("span",null,Nn==null?void 0:Nn.total),"\uFF09"))))),b.createElement("div",{className:Ye.tabBar},Zn)),qe=({className:tn,style:en={},children:cn})=>b.createElement("div",{className:Ze()(tn),style:en},cn),Jt={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"},Dt=ee(75727),ae=ee(93041);const ne=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var oe=({sortValue:tn,dropValue:en,className:cn,onSort:En,onDrop:$n,dataSource:Zn=ne})=>{var Nn;return b.createElement("div",{className:Ze()(Jt.orderWrap,cn)},b.createElement(Dt.Z,{dropdownRender:()=>b.createElement(ae.default,null,Zn.map((Fn,qn)=>b.createElement(ae.default.Item,{key:qn,onClick:()=>$n(Fn.id)},Fn.name)))},b.createElement("span",{className:Jt.orderTextWrap},(Nn=Zn.find(Fn=>en===Fn.id))==null?void 0:Nn.name)),b.createElement("span",{className:Jt.orderIconWrap},b.createElement("span",{className:Jt.orderAsc},b.createElement("i",{className:tn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Jt.cursorPointer} ${Jt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Jt.cursorPointer}`,onClick:()=>En(tn==="asc"?"desc":"asc")})),b.createElement("span",{className:Jt.orderDesc},b.createElement("i",{className:tn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Jt.cursorPointer} ${Jt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Jt.cursorPointer}`,onClick:()=>En(tn==="asc"?"desc":"asc")}))))},ce={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"},re=ee(7939),le=Object.defineProperty,ge=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Ae=(tn,en,cn)=>en in tn?le(tn,en,{enumerable:!0,configurable:!0,writable:!0,value:cn}):tn[en]=cn,Ke=(tn,en)=>{for(var cn in en||(en={}))vt.call(en,cn)&&Ae(tn,cn,en[cn]);if(ge)for(var cn of ge(en))Re.call(en,cn)&&Ae(tn,cn,en[cn]);return tn},_e=(tn,en)=>{var cn={};for(var En in tn)vt.call(tn,En)&&en.indexOf(En)<0&&(cn[En]=tn[En]);if(tn!=null&&ge)for(var En of ge(tn))en.indexOf(En)<0&&Re.call(tn,En)&&(cn[En]=tn[En]);return cn},gt=(tn,en,cn)=>new Promise((En,$n)=>{var Zn=qn=>{try{Fn(cn.next(qn))}catch(er){$n(er)}},Nn=qn=>{try{Fn(cn.throw(qn))}catch(er){$n(er)}},Fn=qn=>qn.done?En(qn.value):Promise.resolve(qn.value).then(Zn,Nn);Fn((cn=cn.apply(tn,en)).next())}),Pe=tn=>{var en=tn,{className:cn,style:En,children:$n,loading:Zn=!1,openLoading:Nn,onClick:Fn=()=>{},size:qn="middle",shape:er="round"}=en,on=_e(en,["className","style","children","loading","openLoading","onClick","size","shape"]);const[xn,Un]=(0,b.useState)(!1);return b.createElement(re.ZP,Ke({onClick:(0,Ce.throttle)(Gn=>gt(void 0,null,function*(){Nn&&Un(!0);try{yield Fn(Gn)}catch(ct){console.log("error",ct)}Nn&&Un(!1)}),2e3,{leading:!0,trailing:!1}),className:Ze()(ce.btn,ce[`${qn}-${er}`],cn),style:En,size:qn,shape:er,loading:xn||Zn},on),$n)},Zt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},rn=({className:tn,style:en,children:cn=null,onClick:En,title:$n})=>b.createElement("div",{className:Ze()(Zt.head,tn),style:en},b.createElement("span",{className:"primary-hover",onClick:En},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:$n},$n),b.createElement("div",{className:Zt.node},cn)),Yt={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"},nn=({confirmShow:tn=!0,confirmTitle:en,confirmClick:cn,cancelShow:En=!0,cancelTitle:$n,cancelClick:Zn,className:Nn,style:Fn,confirmLoading:qn=!1})=>b.createElement("div",{className:Ze()(Yt.btns,Nn),style:Fn},tn&&b.createElement(re.ZP,{loading:qn,onClick:cn,type:"primary",className:Yt.confirm},en),En&&b.createElement(re.ZP,{onClick:Zn,className:Yt.cancel},$n)),Wt={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"},mt=({className:tn,style:en={},LeftContent:cn,children:En,RightContent:$n})=>b.createElement("div",{className:Ze()(Wt.fixedBottom,tn),style:en},b.createElement("div",{className:Wt.wrap},b.createElement("div",{className:Wt.left},cn),b.createElement("div",{className:Wt.center},En),b.createElement("div",{className:Wt.right},$n))),ot={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"},Ne=({className:tn,style:en={},dataSource:cn=[]})=>b.createElement("div",{className:Ze()(ot.crumbs,tn),style:en},cn.map((En,$n)=>$n<cn.length-1?b.createElement(b.Fragment,{key:$n},En.path||En.onClick?b.createElement("span",{className:ot.hover,onClick:En!=null&&En.onClick?En.onClick:()=>et.history.push(En.path)},En.name):b.createElement("span",null,En.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:$n,style:{color:"#5F6368"}},En.name))),dt=ee(11938),wt=Object.defineProperty,Kt=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,pn=(tn,en,cn)=>en in tn?wt(tn,en,{enumerable:!0,configurable:!0,writable:!0,value:cn}):tn[en]=cn,Tn=(tn,en)=>{for(var cn in en||(en={}))An.call(en,cn)&&pn(tn,cn,en[cn]);if(bn)for(var cn of bn(en))zn.call(en,cn)&&pn(tn,cn,en[cn]);return tn},un=(tn,en)=>Kt(tn,sn(en)),Sn=(tn,en)=>{var cn={};for(var En in tn)An.call(tn,En)&&en.indexOf(En)<0&&(cn[En]=tn[En]);if(tn!=null&&bn)for(var En of bn(tn))en.indexOf(En)<0&&zn.call(tn,En)&&(cn[En]=tn[En]);return cn};const{Countdown:Mn}=dt.default;var vn=tn=>{var en=tn,{onChange:cn}=en,En=Sn(en,["onChange"]);const[$n,Zn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof $n=="number"&&$n>=0&&cn($n)},[$n]);const Nn=Fn=>{const qn=Math.floor(Fn/1e3);Zn(qn)};return b.createElement(Mn,un(Tn({},En),{onChange:Nn}))}},31103:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(59301);function je(fe,Ge){const Oe=(0,b.useRef)();(0,b.useEffect)(()=>{Oe.current=fe}),(0,b.useEffect)(()=>{function ye(){Oe.current()}if(Ge!==null){let De=setInterval(ye,Ge);return()=>clearInterval(De)}},[Ge])}},85434:function(yn,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{default:function(){return me}});var b=ee(59301),je={flex_box_center:"flex_box_center___fl5m6",flex_space_between:"flex_space_between___bly3M",flex_box_vertical_center:"flex_box_vertical_center___xKfVY",flex_box_center_end:"flex_box_center_end___uQRsy",flex_box_column:"flex_box_column___V96Tv",ActvieE3:"ActvieE3___B5egy",Onerow:"Onerow___t6jyJ",body:"body___RTqwS",AddBut:"AddBut___iKjQP",FormDiv:"FormDiv___I9YYs"},fe=ee(65582),Ge=ee(28284),Oe=ee(25399),ye=ee(6767),De=ee(62957),Ze=ee(77019),Ce=ee(5269),ue=ee(70858),tt=ee(31709),ke=ee(7939),Lt=ee(62673),at=ee(37568),$e=ee(82326),Me=ee(94968),Ie=ee(58755),Xe=ee(82636),pt=ee(56102),Rt=ee(2524),Ve=ee(74128),Te=ee(65862),nt=ee(71067),Qe=ee(3969),zt=ee(37090),St=ee(96935),it=Object.defineProperty,ut=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Mt=(ht,Ut,Bt)=>Ut in ht?it(ht,Ut,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):ht[Ut]=Bt,We=(ht,Ut)=>{for(var Bt in Ut||(Ut={}))Je.call(Ut,Bt)&&Mt(ht,Bt,Ut[Bt]);if(st)for(var Bt of st(Ut))de.call(Ut,Bt)&&Mt(ht,Bt,Ut[Bt]);return ht},Pt=(ht,Ut)=>ut(ht,Se(Ut)),Xt=(ht,Ut,Bt)=>new Promise((be,Ye)=>{var et=Ft=>{try{rt(Bt.next(Ft))}catch(qe){Ye(qe)}},_t=Ft=>{try{rt(Bt.throw(Ft))}catch(qe){Ye(qe)}},rt=Ft=>Ft.done?be(Ft.value):Promise.resolve(Ft.value).then(et,_t);rt((Bt=Bt.apply(ht,Ut)).next())});const Be=({graduations:{Tasks:ht,teachers:Ut,students:Bt,forTask:be},loading:Ye,dispatch:et})=>{var _t,rt;const Ft=(0,fe.useParams)(),[qe,Jt]=(0,b.useState)([]),[Dt,ae]=(0,b.useState)([]),[ne,te]=(0,b.useState)(!1),[oe,ce]=(0,b.useState)(!1),[re]=Ge.default.useForm(),[le,ge]=(0,b.useState)({}),[vt,Re]=(0,b.useState)({}),[Ae,Ke]=(0,b.useState)([]),[_e,gt]=(0,b.useState)(!1),we=(0,b.useRef)(null),[Pe,Zt]=(0,b.useState)({keyword:"",page:1,per_page:20,status:null,is_teacher:!0}),Ht=[{id:null,name:"\u5168\u90E8"},{id:1,name:"\u8FBE\u6210\u53CC\u9009"},{id:0,name:"\u672A\u8FBE\u6210\u53CC\u9009"}],rn=[{title:"\u8BFE\u9898\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:ot=>b.createElement(Oe.Z,{placement:"topLeft",title:ot},b.createElement("span",{className:"c-grey-333"},ot))},{title:"\u6307\u5BFC\u8001\u5E08",width:120,ellipsis:!0,dataIndex:"teacher_names",render:ot=>b.createElement(Oe.Z,{placement:"topLeft",title:ot},b.createElement("span",{className:"c-grey-333"},ot))},{title:"\u9009\u9898\u72B6\u6001",width:120,dataIndex:"status",render:ot=>b.createElement(b.Fragment,null,ot==0&&b.createElement("span",{style:{color:"#E30000"}},"\u672A\u8FBE\u6210\u53CC\u9009"),ot==1&&b.createElement("span",null,"\u8FBE\u6210\u53CC\u9009"))},{title:"\u9080\u8BF7\u7801",width:132,dataIndex:"invite_code",render:ot=>b.createElement("span",{className:"c-grey-333"},ot,b.createElement(pt.CopyToClipboard,{text:ot,onCopy:()=>ye.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement("i",{className:"iconfont icon-fuzhi8 font14",style:{color:"#165DFF",marginLeft:"8px",cursor:"pointer"}})))},{title:b.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(ot,Tt)=>b.createElement(b.Fragment,null,b.createElement(St.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>Xt(void 0,null,function*(){var Ne,dt;gt(!1),yield nn(),Tt.teacher_ids=(Ne=Tt.teacher)==null?void 0:Ne.map(wt=>wt.id),Tt.student_id=Tt.student_id?Number(Tt.student_id):"",Ke((dt=Tt==null?void 0:Tt.attachments)==null?void 0:dt.map(wt=>({uid:wt==null?void 0:wt.id,name:(wt==null?void 0:wt.title)+" "+(wt==null?void 0:wt.filesize),status:"done",url:(wt==null?void 0:wt.url)||""}))),ge(Tt),Re(Tt),re.setFieldsValue(Tt)})},"\u7F16\u8F91"),b.createElement("a",{className:je.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{if(Tt.status==1)ye.ZP.warning("\u8BE5\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\u4E0D\u80FD\u5220\u9664");else{const Ne=De.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:b.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Xt(void 0,null,function*(){(yield et({type:"graduations/getDelGraduationsTasks",payload:{id:Ft.id,ids:[Tt.id]}})).status==0&&(ye.ZP.success("\u5220\u9664\u6210\u529F"),Pe.page=1,Zt(We({},Pe))),Ne.destroy()}),onCancel:()=>{Ne.destroy()}})}}},"\u5220\u9664"))}],Yt={multiple:!0,withCredentials:!0,defaultFileList:Ae,onRemove:ot=>{Ke(Ae.filter(Tt=>(ot.uid||ot.response.id)!=Tt.uid))},beforeUpload:ot=>{const Tt=ot.size/1024/1024;return Tt>150||Tt==0?(ye.ZP.error(`${ot.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${Tt==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150MB)"}`),Promise.reject()):!0},action:`${Ve.Z.API_SERVER}/api/attachments.json`,onChange:ot=>{var Tt,Ne,dt,wt,Kt,sn,bn,An;ot.file.status==="done"&&Ke([...Ae,{uid:(Ne=(Tt=ot==null?void 0:ot.file)==null?void 0:Tt.response)==null?void 0:Ne.id,name:((wt=(dt=ot==null?void 0:ot.file)==null?void 0:dt.response)==null?void 0:wt.filename)+" "+(0,Te.RD)((sn=(Kt=ot==null?void 0:ot.file)==null?void 0:Kt.response)==null?void 0:sn.filesize),status:"done",url:((An=(bn=ot==null?void 0:ot.file)==null?void 0:bn.response)==null?void 0:An.url)||""}])}},Ot={selectedRowKeys:[...qe.map(ot=>ot.id),...Dt.map(ot=>ot.id)],onChange:(ot,Tt)=>{const Ne=[],dt=[];Tt.map(wt=>{wt.status==0?dt.push(wt):Ne.push(wt)}),ae(Ne),Jt(dt)}},nn=(ot=!1)=>Xt(void 0,null,function*(){var Tt,Ne;const dt=yield et({type:"graduations/getGraduationsTeachers",payload:{id:Ft.id,page:1,per_page:2e3}});if(et({type:"graduations/getGraduationsStudents",payload:{id:Ft.id,page:1,per_page:2e3}}),et({type:"graduations/getGraduationsDetails",payload:{id:Ft.id}}),ot){const wt=(Ne=(Tt=dt==null?void 0:dt.data)==null?void 0:Tt.filter(Kt=>Kt==null?void 0:Kt.is_creator))==null?void 0:Ne.map(Kt=>Kt.id);re.setFieldsValue({teacher_ids:wt}),ge(Pt(We({},le),{teacher_ids:wt}))}te(!0)}),Wt=()=>Xt(void 0,null,function*(){yield et({type:"graduations/getGraduationsTasks",payload:We({id:Ft.id},Pe)})}),He=ot=>Xt(void 0,null,function*(){ot.attachment_ids=Ae.map(Ne=>Ne.uid);let Tt;_e?Tt=yield(0,zt.jW)(We({graduation_id:Ft.id},ot)):Tt=yield(0,zt.YS)(We({graduation_id:Ft.id,id:le.id},ot)),Tt.status==0&&(ye.ZP.success(_e?"\u521B\u5EFA\u6210\u529F":"\u66F4\u65B0\u6210\u529F"),ge({}),Ke([]),te(!1),re.resetFields(),yield Wt())});(0,b.useEffect)(()=>{Jt([]),ae([]),Wt()},[Pe]),(0,b.useEffect)(()=>{le.base_project&&mt()},[le==null?void 0:le.base_project]);const mt=(ot=1e5)=>{const Tt=document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body");Tt.scrollTop=ot};return b.createElement("section",{className:je.body},b.createElement(Xe.YG,{value:"manage",tabBarExtraContent:b.createElement(Xe.op,{openLoading:!0,onClick:()=>Xt(void 0,null,function*(){gt(!0),yield nn(!0)})},"\u5F55\u5165\u8BFE\u9898"),dataSource:[{id:"manage",name:"\u8BFE\u9898\u7BA1\u7406"}],onChange:ot=>{console.log(ot)}}),b.createElement(Ze.Z,{wrap:!1,align:"middle",justify:"space-between"},b.createElement(Ce.Z,null,b.createElement(Xe.qp,{title:"\u72B6\u6001",className:"mt20",dataSource:Ht,titleWidth:28,value:Pe.status,onChange:ot=>{Pe.status=ot,Pe.page=1,Zt(We({},Pe))}})),b.createElement(Ce.Z,null,b.createElement(Xe.t7,{style:{width:329,height:"38px"},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0/\u6307\u5BFC\u8001\u5E08\u8FDB\u884C\u641C\u7D22",value:Pe.keyword,onChange:ot=>{Pe.keyword=ot,Pe.page=1,Zt(We({},Pe))}}))),qe.length+Dt.length>0&&b.createElement(Ze.Z,{wrap:!1,align:"middle",justify:"space-between",style:{padding:"11px 12px",background:"#F4F7FC",marginBottom:"1px"}},b.createElement(Ce.Z,null,"\u5DF2\u9009\u62E9\xA0",b.createElement("span",{style:{color:"#165DFF"}},qe.length+Dt.length||0),"\xA0\u9879"),b.createElement(Ce.Z,{style:{color:"#E30000",cursor:"pointer"},onClick:()=>{const ot=De.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:b.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Xt(void 0,null,function*(){qe.length>0&&(yield et({type:"graduations/getDelGraduationsTasks",payload:{id:Ft.id,ids:qe.map(Ne=>Ne.id)}})).status==0&&ye.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),Dt.length>0&&(qe.length==0&&ye.ZP.error("\u65E0\u6CD5\u5220\u9664"),ce(!0)),Jt([]),Wt(),ot.destroy()}),onCancel:()=>{ot.destroy()}})}},b.createElement("i",{className:"iconfont icon-piliangshanchu3 mr5"}),"\u6279\u91CF\u5220\u9664")),b.createElement(ue.default,{rowKey:"id",loading:Ye.effects["graduations/getGraduationsTasks"],style:{minHeight:500},locale:{emptyText:b.createElement(Rt.Z,{customText:Pe.status==null&&Pe.keyword==""&&Pe.page==1?"\u60A8\u5F53\u524D\u8FD8\u6CA1\u6709\u5F55\u5165\u8BFE\u9898\uFF0C\u70B9\u51FB\u5B8C\u6210\u8BFE\u9898\u5F55\u5165":"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!",ButtonTwo:Pe.status==null&&Pe.keyword==""&&Pe.page==1?b.createElement(Xe.op,{openLoading:!0,onClick:()=>Xt(void 0,null,function*(){gt(!0),yield nn(!0)})},"\u5F55\u5165\u8BFE\u9898"):b.createElement(b.Fragment,null)})},rowSelection:Ot,columns:rn,dataSource:ht.data,pagination:!1}),ht.count!=0&&b.createElement(Ze.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},b.createElement(Ce.Z,null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},ht.count||0),"\xA0\u6761\u6570\u636E"),b.createElement(Ce.Z,null,b.createElement(tt.Z,{showSizeChanger:!0,showQuickJumper:!0,current:Pe.page,pageSize:Pe.per_page,onShowSizeChange:(ot,Tt)=>{Pe.per_page=Tt,Pe.page=1,Zt(We({},Pe))},onChange:ot=>{Pe.page=ot,Zt(We({},Pe))},total:ht.count}))),b.createElement(De.default,{open:oe,title:"\u63D0\u793A",destroyOnClose:!0,width:1200,footer:b.createElement(ke.ZP,{type:"primary",onClick:()=>{ce(!1),ae([])}},"\u77E5\u9053\u4E86"),onCancel:()=>{ce(!1),ae([])}},b.createElement("span",null,"\u4E0B\u9762",b.createElement("span",{style:{color:"#FA6400"}},Dt.length),"\u4E2A\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\uFF0C\u4E0D\u80FD\u5220\u9664"),b.createElement("div",{className:"mt10",style:{background:"#F6F7F9",padding:"20px 12px"}},Dt.map((ot,Tt)=>b.createElement(Ze.Z,{wrap:!1,align:"middle",key:Tt,style:{color:"#999"}},b.createElement("i",{className:"iconfont icon-guansuo font14"}),b.createElement("div",{className:je.Onerow,style:{marginLeft:"8px"}},b.createElement(Oe.Z,{placement:"topLeft",title:ot.name},ot.name)))))),b.createElement(De.default,{open:ne,title:`${_e?"\u5F55\u5165\u8BFE\u9898":"\u7F16\u8F91\u8BFE\u9898"}`,width:1200,destroyOnClose:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,className:"ant-form-modal-body",afterOpenChange:ot=>{ot&&document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body").scrollTo(0,0)},onCancel:()=>{ge({}),Ke([]),re.resetFields(),te(!1)},onOk:()=>{re.submit()}},b.createElement(Ge.default,{onFinishFailed:ot=>{var Tt;if(!(le!=null&&le.name)||!((Tt=le==null?void 0:le.teacher_ids)!=null&&Tt.length)){mt(0);return}(!(le!=null&&le.description)||le!=null&&le.base_project&&!(le!=null&&le.graduation_stage_id))&&mt()},form:re,initialValues:{},layout:"vertical",className:`${je.FormDiv}`,onValuesChange:(ot,Tt)=>{ge(We(We({},le),ot))},onFinish:ot=>Xt(void 0,null,function*(){!_e&&vt.status==1&&ot.student_id!=vt.student_id?De.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u53D8\u66F4\u6307\u5B9A\u5B66\u751F",content:b.createElement("div",null,b.createElement("p",null,"\u8BE5\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u786E\u8BA4\u53D8\u66F4\u6307\u5B9A\u5B66\u751F\uFF1F\u53D8\u66F4\u540E\u539F\u5B66\u751F\u5728\u8BE5\u8BFE\u9898\u63D0\u4EA4\u7684\u6587\u6863\u5C06\u6E05\u7A7A\u4E14\u65E0\u6CD5\u6062\u590D"),b.createElement("div",null,"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\u786E\u8BA4\u5220\u9664"),b.createElement(nt.Z,{ref:Tt=>we.current=Tt})),onOk:()=>Xt(void 0,null,function*(){if(we.current.onVerify())return Promise.reject();He(ot)})}):He(ot)})},b.createElement(Ge.default.Item,{htmlFor:null,name:"source_is_repeat",valuePropName:"checked"},b.createElement(Lt.default,null,b.createElement("span",{style:{color:"#000"}},"\u8FD1\u4E09\u5E74\u662F\u5426\u91CD\u590D"))),b.createElement(Ge.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u540D\u79F0"),name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0"},{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},b.createElement(at.default,{showCount:!0,maxLength:100,size:"large"})),b.createElement(Ge.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5BFC\u8001\u5E08(\u53EF\u591A\u9009)"),name:"teacher_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},b.createElement($e.default,{size:"large",mode:"multiple",optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"},(_t=Ut==null?void 0:Ut.data)==null?void 0:_t.map((ot,Tt)=>b.createElement($e.default.Option,{key:Tt,value:ot.id},ot.name)))),b.createElement(Ge.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u9002\u5408\u4E13\u4E1A"),name:"major",rules:[{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},b.createElement(at.default,{size:"large",showCount:!0,maxLength:100})),b.createElement(Ge.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5B9A\u5B66\u751F"),name:"student_id"},b.createElement($e.default,{size:"large",showSearch:!0,allowClear:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5B9A\u5B66\u751F"},(rt=Bt==null?void 0:Bt.data)==null?void 0:rt.map((ot,Tt)=>b.createElement($e.default.Option,{key:Tt,value:ot.id},ot.name)))),b.createElement(Ge.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u6765\u6E90"),name:"source",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},b.createElement(at.default,{size:"large",showCount:!0,maxLength:60})),b.createElement(Ge.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u5B66\u79D1\u65B9\u5411"),name:"direction",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},b.createElement(at.default,{size:"large",showCount:!0,maxLength:60})),b.createElement(Ge.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u4ECB\u7ECD"),name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u4ECB\u7ECD"},{type:"string",max:5e3,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},b.createElement(Qe.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",scrollId:"",watch:!0,height:140})),b.createElement(Ge.default.Item,{htmlFor:null,name:"attachment_ids",style:{display:"flex",alignItems:"center"},valuePropName:"fileList",getValueFromEvent:ot=>Array.isArray(ot)?ot:ot==null?void 0:ot.fileList,normalize:ot=>{const Tt="\u3000\u3000";return ot.filter(dt=>{if(dt.url)return!0;const wt=dt.size/1024/1024;return dt.name.indexOf(Tt)===-1&&(dt.name=`${dt.name}${Tt}${(0,Te.RD)(dt.size)}`),!(wt>150||wt==0)})}},b.createElement(Me.default,We({},Yt),b.createElement(Ze.Z,{style:{width:"100%"},wrap:!1,align:"middle"},b.createElement(Ce.Z,null,b.createElement(Xe.op,{style:{borderRadius:"2px"}},b.createElement("i",{className:"iconfont icon-shangchuan3 mr5"}),"\u6587\u4EF6\u4E0A\u4F20")),b.createElement(Ce.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:ot=>{ot.preventDefault(),ot.stopPropagation()}},"\u4E0A\u4F20\u8BFE\u9898\u76F8\u5173\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M")))),b.createElement(Ze.Z,{wrap:!1,align:"middle",className:"mb20"},b.createElement(Ce.Z,null,b.createElement(Ge.default.Item,{htmlFor:null,name:"base_project",valuePropName:"checked",style:{marginBottom:0}},b.createElement(Ie.Z,null))),b.createElement(Ze.Z,{align:"middle",className:"ml10",style:{color:"#000"}},b.createElement(Ce.Z,null,"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),b.createElement(Oe.Z,{placement:"right",style:{width:"500px"},overlayStyle:{maxWidth:600},title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u5173\u8054\u540E\u5C06\u5E94\u7528\u4E8E\u6BD5\u8BBE\u6240\u6709\u9636\u6BB5"},b.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#3061D0"}})))),b.createElement("div",{id:"graduationstageid"},le.base_project&&b.createElement("div",{style:{background:"#F6F7F9",padding:"12px 12px 4px 12px",width:"100%",height:104}},b.createElement("span",{style:{color:"#5F6367"}},"\u5B66\u751F\u9700\u8981\u5B8C\u6210\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"),b.createElement(Ze.Z,{wrap:!1,align:"middle",className:"mt15"},b.createElement(Ce.Z,{style:{width:"632px"}},b.createElement(Ge.default.Item,{name:"graduation_stage_id",htmlFor:null,style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"}]},b.createElement($e.default,null,be==null?void 0:be.map((ot,Tt)=>b.createElement($e.default.Option,{key:Tt,value:ot.id},ot.name))))),b.createElement(Ce.Z,{className:"ml20",style:{color:"#999",fontSize:"12px"}},"\u9009\u62E9\u9636\u6BB5\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u5BF9\u5E94\u9636\u6BB5\u5B8C\u6210\u9879\u76EE\u5173\u8054")))))))};var me=(0,fe.connect)(({graduations:ht,loading:Ut})=>({graduations:ht,loading:Ut}))(Be)},49142:function(yn,Qt,ee){"use strict";ee.d(Qt,{AL:function(){return Ve},Iy:function(){return tt},Qv:function(){return at},ez:function(){return Rt},jb:function(){return ke}});var b=ee(32834),je=ee.n(b),fe=ee(11690),Ge=ee.n(fe);let Oe=1;function ye(St,it){const ut=St.match(/^(\s+)(?:```)/);if(ut===null)return it;const Se=ut[1];return it.split(`
|
|
|
`).map(st=>{const Je=st.match(/^\s+/);if(Je===null)return st;const[de]=Je;return de.length>=Se.length?st.slice(Se.length):st}).join(`
|
|
|
`)}let De=[],Ze=["<ul>"];const Ce=new(je()).Renderer,ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function tt(){De.length=0,Ze=["<ul>"]}const ke={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Lt(St,it,ut,Se){if(it>=St.length||St[it].level<=ut)return it;var st=St[it];Se.push("<li><a href='#"+Oe+st.anchor+"'>"+st.text+"</a>"),it++;var Je=[];return it=Lt(St,it,st.level,Je),Je.length>0&&(Se.push("<ul>"),Je.forEach(function(de){Se.push(de)}),Se.push("</ul>")),Se.push("</li>"),it=Lt(St,it,ut,Se),it}function at(){return Lt(De,0,0,Ze),Ze.push("</ul>"),Ze.join("")}const $e={heading(St){const it=ue.exec(St);if(Oe+=1,it)return{type:"heading",raw:it[0],depth:it[1].length,text:it[2]}},fences(St){const it=this.rules.block.fences.exec(St);if(it){const ut=it[0];let Se=ye(ut,it[3]||"");const st=it[2]?it[2].trim():it[2];if(["latex","katex","math"].indexOf(st)>=0){const Je=Xe(),de=Se;Se=Je,pt[Je]={type:"block",expression:de}}return{type:"code",raw:ut,lang:st,text:Se}}}},Me=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ie=0;const Xe=()=>`__special_katext_id_${Ie++}__`;let pt={};function Rt(){return pt}function Ve(){Ie=0,pt={}}function Te(St){return St=St.replace(Me,(it,ut)=>{const Se=Xe();return pt[Se]={type:"inline",expression:ut},Se}),St}const nt=Ce.listitem;Ce.listitem=function(St){return nt(Te(St))};const Qe=Ce.paragraph;Ce.paragraph=function(St){return Qe(Te(St))};const zt=Ce.tablecell;Ce.tablecell=function(St,it){return zt(Te(St),it)},Ce.code=function(St,it,ut){const Se=(it||"").match(/\S*/)[0];return Se?["latex","katex","math"].indexOf(Se)>=0?`<p class='editormd-tex'>${St}</p>`:`<pre class="prettyprint linenums"><code class="language-${it}">${ut?St:(0,fe.escape)(St,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ut?St:(0,fe.escape)(St,!0))+"</code></pre>"},Ce.heading=function(St,it,ut){let Se=this.options.headerPrefix+ut.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return De.push({anchor:Se,level:it,text:St}),"<h"+it+' id="'+Oe+Se+'">'+St+"</h"+it+">"},je().setOptions({silent:!0,gfm:!0,pedantic:!1}),je().use({tokenizer:$e,renderer:Ce}),Qt.ZP=je()},9981:function(yn,Qt){"use strict";const ee=function(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let je=1;je<arguments.length;je++){const fe=je<0||arguments.length<=je?void 0:arguments[je];fe&&Object.keys(fe).forEach(Ge=>{const Oe=fe[Ge];Oe!==void 0&&(b[Ge]=Oe)})}return b};Qt.Z=ee},86013:function(yn,Qt,ee){"use strict";var b=ee(59301),je=ee(19248);const fe=Ge=>{let Oe;return typeof Ge=="object"&&(Ge!=null&&Ge.clearIcon)?Oe=Ge:Ge&&(Oe={clearIcon:b.createElement(je.Z,null)}),Oe};Qt.Z=fe},97224:function(yn,Qt,ee){"use strict";ee.d(Qt,{F:function(){return b}});function b(fe){return fe!=null&&fe===fe.window}const je=fe=>{var Ge,Oe;if(typeof window=="undefined")return 0;let ye=0;return b(fe)?ye=fe.pageYOffset:fe instanceof Document?ye=fe.documentElement.scrollTop:(fe instanceof HTMLElement||fe)&&(ye=fe.scrollTop),fe&&!b(fe)&&typeof ye!="number"&&(ye=(Oe=((Ge=fe.ownerDocument)!==null&&Ge!==void 0?Ge:fe).documentElement)===null||Oe===void 0?void 0:Oe.scrollTop),ye};Qt.Z=je},83010:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ge}});var b=ee(16089);function je(Oe,ye,De,Ze){const Ce=De-ye;return Oe/=Ze/2,Oe<1?Ce/2*Oe*Oe*Oe+ye:Ce/2*((Oe-=2)*Oe*Oe+2)+ye}var fe=ee(97224);function Ge(Oe){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:De=()=>window,callback:Ze,duration:Ce=450}=ye,ue=De(),tt=(0,fe.Z)(ue),ke=Date.now(),Lt=()=>{const $e=Date.now()-ke,Me=je($e>Ce?Ce:$e,tt,Oe,Ce);(0,fe.F)(ue)?ue.scrollTo(window.pageXOffset,Me):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=Me:ue.scrollTop=Me,$e<Ce?(0,b.Z)(Lt):typeof Ze=="function"&&Ze()};(0,b.Z)(Lt)}},62673:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return St}});var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(16632),Oe=ee(8654),ye=ee(12919),De=ee(63872),Ze=ee(48755),Ce=ee(2171),ue=ee(83397),tt=ee(56553),Lt=b.createContext(null),at=ee(36170),$e=ee(74632),Me=function(it,ut){var Se={};for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&ut.indexOf(st)<0&&(Se[st]=it[st]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,st=Object.getOwnPropertySymbols(it);Je<st.length;Je++)ut.indexOf(st[Je])<0&&Object.prototype.propertyIsEnumerable.call(it,st[Je])&&(Se[st[Je]]=it[st[Je]]);return Se};const Ie=(it,ut)=>{var Se;const{prefixCls:st,className:Je,rootClassName:de,children:Mt,indeterminate:We=!1,style:Pt,onMouseEnter:Xt,onMouseLeave:Be,skipGroup:me=!1,disabled:ht}=it,Ut=Me(it,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Bt,direction:be,checkbox:Ye}=b.useContext(Ze.E_),et=b.useContext(Lt),{isFormItemInput:_t}=b.useContext(tt.aM),rt=b.useContext(Ce.Z),Ft=(Se=(et==null?void 0:et.disabled)||ht)!==null&&Se!==void 0?Se:rt,qe=b.useRef(Ut.value),Jt=b.useRef(null),Dt=(0,Oe.sQ)(ut,Jt);b.useEffect(()=>{et==null||et.registerValue(Ut.value)},[]),b.useEffect(()=>{if(!me)return Ut.value!==qe.current&&(et==null||et.cancelValue(qe.current),et==null||et.registerValue(Ut.value),qe.current=Ut.value),()=>et==null?void 0:et.cancelValue(Ut.value)},[Ut.value]),b.useEffect(()=>{var Ae;!((Ae=Jt.current)===null||Ae===void 0)&&Ae.input&&(Jt.current.input.indeterminate=We)},[We]);const ae=Bt("checkbox",st),ne=(0,ue.Z)(ae),[te,oe,ce]=(0,at.ZP)(ae,ne),re=Object.assign({},Ut);et&&!me&&(re.onChange=function(){Ut.onChange&&Ut.onChange.apply(Ut,arguments),et.toggleOption&&et.toggleOption({label:Mt,value:Ut.value})},re.name=et.name,re.checked=et.value.includes(Ut.value));const le=fe()(`${ae}-wrapper`,{[`${ae}-rtl`]:be==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:Ft,[`${ae}-wrapper-in-form-item`]:_t},Ye==null?void 0:Ye.className,Je,de,ce,ne,oe),ge=fe()({[`${ae}-indeterminate`]:We},De.A,oe),[vt,Re]=(0,$e.Z)(re.onClick);return te(b.createElement(ye.Z,{component:"Checkbox",disabled:Ft},b.createElement("label",{className:le,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Pt),onMouseEnter:Xt,onMouseLeave:Be,onClick:vt},b.createElement(Ge.Z,Object.assign({},re,{onClick:Re,prefixCls:ae,className:ge,disabled:Ft,ref:Dt})),Mt!==void 0&&b.createElement("span",{className:`${ae}-label`},Mt))))};var pt=b.forwardRef(Ie),Rt=ee(94480),Ve=ee(2738),Te=function(it,ut){var Se={};for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&ut.indexOf(st)<0&&(Se[st]=it[st]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,st=Object.getOwnPropertySymbols(it);Je<st.length;Je++)ut.indexOf(st[Je])<0&&Object.prototype.propertyIsEnumerable.call(it,st[Je])&&(Se[st[Je]]=it[st[Je]]);return Se},Qe=b.forwardRef((it,ut)=>{const{defaultValue:Se,children:st,options:Je=[],prefixCls:de,className:Mt,rootClassName:We,style:Pt,onChange:Xt}=it,Be=Te(it,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:me,direction:ht}=b.useContext(Ze.E_),[Ut,Bt]=b.useState(Be.value||Se||[]),[be,Ye]=b.useState([]);b.useEffect(()=>{"value"in Be&&Bt(Be.value||[])},[Be.value]);const et=b.useMemo(()=>Je.map(ge=>typeof ge=="string"||typeof ge=="number"?{label:ge,value:ge}:ge),[Je]),_t=ge=>{Ye(vt=>vt.filter(Re=>Re!==ge))},rt=ge=>{Ye(vt=>[].concat((0,Rt.Z)(vt),[ge]))},Ft=ge=>{const vt=Ut.indexOf(ge.value),Re=(0,Rt.Z)(Ut);vt===-1?Re.push(ge.value):Re.splice(vt,1),"value"in Be||Bt(Re),Xt==null||Xt(Re.filter(Ae=>be.includes(Ae)).sort((Ae,Ke)=>{const _e=et.findIndex(we=>we.value===Ae),gt=et.findIndex(we=>we.value===Ke);return _e-gt}))},qe=me("checkbox",de),Jt=`${qe}-group`,Dt=(0,ue.Z)(qe),[ae,ne,te]=(0,at.ZP)(qe,Dt),oe=(0,Ve.Z)(Be,["value","disabled"]),ce=Je.length?et.map(ge=>b.createElement(pt,{prefixCls:qe,key:ge.value.toString(),disabled:"disabled"in ge?ge.disabled:Be.disabled,value:ge.value,checked:Ut.includes(ge.value),onChange:ge.onChange,className:`${Jt}-item`,style:ge.style,title:ge.title,id:ge.id,required:ge.required},ge.label)):st,re={toggleOption:Ft,value:Ut,disabled:Be.disabled,name:Be.name,registerValue:rt,cancelValue:_t},le=fe()(Jt,{[`${Jt}-rtl`]:ht==="rtl"},Mt,We,te,Dt,ne);return ae(b.createElement("div",Object.assign({className:le,style:Pt},oe,{ref:ut}),b.createElement(Lt.Provider,{value:re},ce)))});const zt=pt;zt.Group=Qe,zt.__ANT_CHECKBOX=!0;var St=zt},36170:function(yn,Qt,ee){"use strict";ee.d(Qt,{C2:function(){return ye}});var b=ee(36237),je=ee(63356),fe=ee(51636),Ge=ee(16931);const Oe=De=>{const{checkboxCls:Ze}=De,Ce=`${Ze}-wrapper`;return[{[`${Ze}-group`]:Object.assign(Object.assign({},(0,je.Wf)(De)),{display:"inline-flex",flexWrap:"wrap",columnGap:De.marginXS,[`> ${De.antCls}-row`]:{flex:1}}),[Ce]:Object.assign(Object.assign({},(0,je.Wf)(De)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ce}`]:{marginInlineStart:0},[`&${Ce}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ze]:Object.assign(Object.assign({},(0,je.Wf)(De)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:De.borderRadiusSM,alignSelf:"center",[`${Ze}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ze}-inner`]:Object.assign({},(0,je.oN)(De))},[`${Ze}-inner`]:{boxSizing:"border-box",display:"block",width:De.checkboxSize,height:De.checkboxSize,direction:"ltr",backgroundColor:De.colorBgContainer,border:`${(0,b.unit)(De.lineWidth)} ${De.lineType} ${De.colorBorder}`,borderRadius:De.borderRadiusSM,borderCollapse:"separate",transition:`all ${De.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:De.calc(De.checkboxSize).div(14).mul(5).equal(),height:De.calc(De.checkboxSize).div(14).mul(8).equal(),border:`${(0,b.unit)(De.lineWidthBold)} solid ${De.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${De.motionDurationFast} ${De.motionEaseInBack}, opacity ${De.motionDurationFast}`}},"& + span":{paddingInlineStart:De.paddingXS,paddingInlineEnd:De.paddingXS}})},{[`
|
|
|
${Ce}:not(${Ce}-disabled),
|
|
|
${Ze}:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{borderColor:De.colorPrimary}},[`${Ce}:not(${Ce}-disabled)`]:{[`&:hover ${Ze}-checked:not(${Ze}-disabled) ${Ze}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ze}-checked:not(${Ze}-disabled):after`]:{borderColor:De.colorPrimaryHover}}},{[`${Ze}-checked`]:{[`${Ze}-inner`]:{backgroundColor:De.colorPrimary,borderColor:De.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${De.motionDurationMid} ${De.motionEaseOutBack} ${De.motionDurationFast}`}}},[`
|
|
|
${Ce}-checked:not(${Ce}-disabled),
|
|
|
${Ze}-checked:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"}}},{[Ze]:{"&-indeterminate":{[`${Ze}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:De.calc(De.fontSizeLG).div(2).equal(),height:De.calc(De.fontSizeLG).div(2).equal(),backgroundColor:De.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ze}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorPrimary} !important`}}}},{[`${Ce}-disabled`]:{cursor:"not-allowed"},[`${Ze}-disabled`]:{[`&, ${Ze}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ze}-inner`]:{background:De.colorBgContainerDisabled,borderColor:De.colorBorder,"&:after":{borderColor:De.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:De.colorTextDisabled},[`&${Ze}-indeterminate ${Ze}-inner::after`]:{background:De.colorTextDisabled}}}]};function ye(De,Ze){const Ce=(0,fe.mergeToken)(Ze,{checkboxCls:`.${De}`,checkboxSize:Ze.controlInteractiveSize});return[Oe(Ce)]}Qt.ZP=(0,Ge.I$)("Checkbox",(De,Ze)=>{let{prefixCls:Ce}=Ze;return[ye(Ce,De)]})},38406:function(yn,Qt,ee){"use strict";var b=ee(59301),je=ee(48755),fe=ee(584);const Ge=Oe=>{const{componentName:ye}=Oe,{getPrefixCls:De}=(0,b.useContext)(je.E_),Ze=De("empty");switch(ye){case"Table":case"List":return b.createElement(fe.Z,{image:fe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return b.createElement(fe.Z,{image:fe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ze}-small`});case"Table.filter":return null;default:return b.createElement(fe.Z,null)}};Qt.Z=Ge},36207:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return vt}});var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(33885),Oe=ee(42978),ye=ee(43403),De=ee(34280),Ze=b.createContext(null),Ce=b.createContext({}),ue=Ze,tt=ee(20068),ke=ee(54476),Lt=ee(77900),at=ee(10228),$e=ee(26112),Me=ee(75931),Ie=ee(8654),Xe=["prefixCls","className","containerRef"],pt=function(Ae){var Ke=Ae.prefixCls,_e=Ae.className,gt=Ae.containerRef,we=(0,Me.Z)(Ae,Xe),Pe=b.useContext(Ce),Zt=Pe.panel,Ht=(0,Ie.x1)(Zt,gt);return b.createElement("div",(0,ke.Z)({className:fe()("".concat(Ke,"-content"),_e),role:"dialog",ref:Ht},(0,$e.Z)(Ae,{aria:!0}),{"aria-modal":"true"},we))},Rt=pt,Ve=ee(48736);function Te(Re){return typeof Re=="string"&&String(Number(Re))===Re?((0,Ve.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Re)):Re}function nt(Re){warning(!("wrapperClassName"in Re),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Re.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Qe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function zt(Re,Ae){var Ke,_e,gt,we=Re.prefixCls,Pe=Re.open,Zt=Re.placement,Ht=Re.inline,rn=Re.push,Yt=Re.forceRender,Ot=Re.autoFocus,nn=Re.keyboard,Wt=Re.classNames,He=Re.rootClassName,mt=Re.rootStyle,ot=Re.zIndex,Tt=Re.className,Ne=Re.id,dt=Re.style,wt=Re.motion,Kt=Re.width,sn=Re.height,bn=Re.children,An=Re.mask,zn=Re.maskClosable,pn=Re.maskMotion,Tn=Re.maskClassName,un=Re.maskStyle,Sn=Re.afterOpenChange,Mn=Re.onClose,Rn=Re.onMouseEnter,vn=Re.onMouseOver,tn=Re.onMouseLeave,en=Re.onClick,cn=Re.onKeyDown,En=Re.onKeyUp,$n=Re.styles,Zn=Re.drawerRender,Nn=b.useRef(),Fn=b.useRef(),qn=b.useRef();b.useImperativeHandle(Ae,function(){return Nn.current});var er=function(Ct){var Et=Ct.keyCode,$t=Ct.shiftKey;switch(Et){case at.Z.TAB:{if(Et===at.Z.TAB){if(!$t&&document.activeElement===qn.current){var Pn;(Pn=Fn.current)===null||Pn===void 0||Pn.focus({preventScroll:!0})}else if($t&&document.activeElement===Fn.current){var wn;(wn=qn.current)===null||wn===void 0||wn.focus({preventScroll:!0})}}break}case at.Z.ESC:{Mn&&nn&&(Ct.stopPropagation(),Mn(Ct));break}}};b.useEffect(function(){if(Pe&&Ot){var bt;(bt=Nn.current)===null||bt===void 0||bt.focus({preventScroll:!0})}},[Pe]);var on=b.useState(!1),xn=(0,Oe.Z)(on,2),Un=xn[0],Gn=xn[1],ct=b.useContext(ue),yt;typeof rn=="boolean"?yt=rn?{}:{distance:0}:yt=rn||{};var Fe=(Ke=(_e=(gt=yt)===null||gt===void 0?void 0:gt.distance)!==null&&_e!==void 0?_e:ct==null?void 0:ct.pushDistance)!==null&&Ke!==void 0?Ke:180,lt=b.useMemo(function(){return{pushDistance:Fe,push:function(){Gn(!0)},pull:function(){Gn(!1)}}},[Fe]);b.useEffect(function(){if(Pe){var bt;ct==null||(bt=ct.push)===null||bt===void 0||bt.call(ct)}else{var Ct;ct==null||(Ct=ct.pull)===null||Ct===void 0||Ct.call(ct)}},[Pe]),b.useEffect(function(){return function(){var bt;ct==null||(bt=ct.pull)===null||bt===void 0||bt.call(ct)}},[]);var ze=An&&b.createElement(Lt.default,(0,ke.Z)({key:"mask"},pn,{visible:Pe}),function(bt,Ct){var Et=bt.className,$t=bt.style;return b.createElement("div",{className:fe()("".concat(we,"-mask"),Et,Wt==null?void 0:Wt.mask,Tn),style:(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},$t),un),$n==null?void 0:$n.mask),onClick:zn&&Pe?Mn:void 0,ref:Ct})}),xt=typeof wt=="function"?wt(Zt):wt,Ee={};if(Un&&Fe)switch(Zt){case"top":Ee.transform="translateY(".concat(Fe,"px)");break;case"bottom":Ee.transform="translateY(".concat(-Fe,"px)");break;case"left":Ee.transform="translateX(".concat(Fe,"px)");break;default:Ee.transform="translateX(".concat(-Fe,"px)");break}Zt==="left"||Zt==="right"?Ee.width=Te(Kt):Ee.height=Te(sn);var It={onMouseEnter:Rn,onMouseOver:vn,onMouseLeave:tn,onClick:en,onKeyDown:cn,onKeyUp:En},kt=b.createElement(Lt.default,(0,ke.Z)({key:"panel"},xt,{visible:Pe,forceRender:Yt,onVisibleChanged:function(Ct){Sn==null||Sn(Ct)},removeOnLeave:!1,leavedClassName:"".concat(we,"-content-wrapper-hidden")}),function(bt,Ct){var Et=bt.className,$t=bt.style,Pn=b.createElement(Rt,(0,ke.Z)({id:Ne,containerRef:Ct,prefixCls:we,className:fe()(Tt,Wt==null?void 0:Wt.content),style:(0,Ge.Z)((0,Ge.Z)({},dt),$n==null?void 0:$n.content)},(0,$e.Z)(Re,{aria:!0}),It),bn);return b.createElement("div",(0,ke.Z)({className:fe()("".concat(we,"-content-wrapper"),Wt==null?void 0:Wt.wrapper,Et),style:(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},Ee),$t),$n==null?void 0:$n.wrapper)},(0,$e.Z)(Re,{data:!0})),Zn?Zn(Pn):Pn)}),Vt=(0,Ge.Z)({},mt);return ot&&(Vt.zIndex=ot),b.createElement(ue.Provider,{value:lt},b.createElement("div",{className:fe()(we,"".concat(we,"-").concat(Zt),He,(0,tt.Z)((0,tt.Z)({},"".concat(we,"-open"),Pe),"".concat(we,"-inline"),Ht)),style:Vt,tabIndex:-1,ref:Nn,onKeyDown:er},ze,b.createElement("div",{tabIndex:0,ref:Fn,style:Qe,"aria-hidden":"true","data-sentinel":"start"}),kt,b.createElement("div",{tabIndex:0,ref:qn,style:Qe,"aria-hidden":"true","data-sentinel":"end"})))}var St=b.forwardRef(zt),it=St,ut=function(Ae){var Ke=Ae.open,_e=Ke===void 0?!1:Ke,gt=Ae.prefixCls,we=gt===void 0?"rc-drawer":gt,Pe=Ae.placement,Zt=Pe===void 0?"right":Pe,Ht=Ae.autoFocus,rn=Ht===void 0?!0:Ht,Yt=Ae.keyboard,Ot=Yt===void 0?!0:Yt,nn=Ae.width,Wt=nn===void 0?378:nn,He=Ae.mask,mt=He===void 0?!0:He,ot=Ae.maskClosable,Tt=ot===void 0?!0:ot,Ne=Ae.getContainer,dt=Ae.forceRender,wt=Ae.afterOpenChange,Kt=Ae.destroyOnClose,sn=Ae.onMouseEnter,bn=Ae.onMouseOver,An=Ae.onMouseLeave,zn=Ae.onClick,pn=Ae.onKeyDown,Tn=Ae.onKeyUp,un=Ae.panelRef,Sn=b.useState(!1),Mn=(0,Oe.Z)(Sn,2),Rn=Mn[0],vn=Mn[1],tn=b.useState(!1),en=(0,Oe.Z)(tn,2),cn=en[0],En=en[1];(0,De.Z)(function(){En(!0)},[]);var $n=cn?_e:!1,Zn=b.useRef(),Nn=b.useRef();(0,De.Z)(function(){$n&&(Nn.current=document.activeElement)},[$n]);var Fn=function(Un){var Gn;if(vn(Un),wt==null||wt(Un),!Un&&Nn.current&&!((Gn=Zn.current)!==null&&Gn!==void 0&&Gn.contains(Nn.current))){var ct;(ct=Nn.current)===null||ct===void 0||ct.focus({preventScroll:!0})}},qn=b.useMemo(function(){return{panel:un}},[un]);if(!dt&&!Rn&&!$n&&Kt)return null;var er={onMouseEnter:sn,onMouseOver:bn,onMouseLeave:An,onClick:zn,onKeyDown:pn,onKeyUp:Tn},on=(0,Ge.Z)((0,Ge.Z)({},Ae),{},{open:$n,prefixCls:we,placement:Zt,autoFocus:rn,keyboard:Ot,width:Wt,mask:mt,maskClosable:Tt,inline:Ne===!1,afterOpenChange:Fn,ref:Zn},er);return b.createElement(Ce.Provider,{value:qn},b.createElement(ye.Z,{open:$n||dt||Rn,autoDestroy:!1,getContainer:Ne,autoLock:mt&&($n||Rn)},b.createElement(it,on)))},Se=ut,st=Se,Je=ee(62487),de=ee(75030),Mt=ee(86641),We=ee(55743),Pt=ee(48755),Xt=ee(91190),Be=ee(78776),me=ee(458),Ut=Re=>{var Ae,Ke;const{prefixCls:_e,title:gt,footer:we,extra:Pe,loading:Zt,onClose:Ht,headerStyle:rn,bodyStyle:Yt,footerStyle:Ot,children:nn,classNames:Wt,styles:He}=Re,mt=(0,Pt.dj)("drawer"),ot=b.useCallback(Kt=>b.createElement("button",{type:"button",onClick:Ht,"aria-label":"Close",className:`${_e}-close`},Kt),[Ht]),[Tt,Ne]=(0,Be.Z)((0,Be.w)(Re),(0,Be.w)(mt),{closable:!0,closeIconRender:ot}),dt=b.useMemo(()=>{var Kt,sn;return!gt&&!Tt?null:b.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Kt=mt.styles)===null||Kt===void 0?void 0:Kt.header),rn),He==null?void 0:He.header),className:fe()(`${_e}-header`,{[`${_e}-header-close-only`]:Tt&&!gt&&!Pe},(sn=mt.classNames)===null||sn===void 0?void 0:sn.header,Wt==null?void 0:Wt.header)},b.createElement("div",{className:`${_e}-header-title`},Ne,gt&&b.createElement("div",{className:`${_e}-title`},gt)),Pe&&b.createElement("div",{className:`${_e}-extra`},Pe))},[Tt,Ne,Pe,rn,_e,gt]),wt=b.useMemo(()=>{var Kt,sn;if(!we)return null;const bn=`${_e}-footer`;return b.createElement("div",{className:fe()(bn,(Kt=mt.classNames)===null||Kt===void 0?void 0:Kt.footer,Wt==null?void 0:Wt.footer),style:Object.assign(Object.assign(Object.assign({},(sn=mt.styles)===null||sn===void 0?void 0:sn.footer),Ot),He==null?void 0:He.footer)},we)},[we,Ot,_e]);return b.createElement(b.Fragment,null,dt,b.createElement("div",{className:fe()(`${_e}-body`,Wt==null?void 0:Wt.body,(Ae=mt.classNames)===null||Ae===void 0?void 0:Ae.body),style:Object.assign(Object.assign(Object.assign({},(Ke=mt.styles)===null||Ke===void 0?void 0:Ke.body),Yt),He==null?void 0:He.body)},Zt?b.createElement(me.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${_e}-body-skeleton`}):nn),wt)},Bt=ee(36237),be=ee(63356),Ye=ee(16931),et=ee(51636);const _t=Re=>{const Ae="100%";return{left:`translateX(-${Ae})`,right:`translateX(${Ae})`,top:`translateY(-${Ae})`,bottom:`translateY(${Ae})`}[Re]},rt=(Re,Ae)=>({"&-enter, &-appear":Object.assign(Object.assign({},Re),{"&-active":Ae}),"&-leave":Object.assign(Object.assign({},Ae),{"&-active":Re})}),Ft=(Re,Ae)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ae}`}}},rt({opacity:Re},{opacity:1})),qe=(Re,Ae)=>[Ft(.7,Ae),rt({transform:_t(Re)},{transform:"none"})];var Dt=Re=>{const{componentCls:Ae,motionDurationSlow:Ke}=Re;return{[Ae]:{[`${Ae}-mask-motion`]:Ft(0,Ke),[`${Ae}-panel-motion`]:["left","right","top","bottom"].reduce((_e,gt)=>Object.assign(Object.assign({},_e),{[`&-${gt}`]:qe(gt,Ke)}),{})}}};const ae=Re=>{const{borderRadiusSM:Ae,componentCls:Ke,zIndexPopup:_e,colorBgMask:gt,colorBgElevated:we,motionDurationSlow:Pe,motionDurationMid:Zt,paddingXS:Ht,padding:rn,paddingLG:Yt,fontSizeLG:Ot,lineHeightLG:nn,lineWidth:Wt,lineType:He,colorSplit:mt,marginXS:ot,colorIcon:Tt,colorIconHover:Ne,colorBgTextHover:dt,colorBgTextActive:wt,colorText:Kt,fontWeightStrong:sn,footerPaddingBlock:bn,footerPaddingInline:An,calc:zn}=Re,pn=`${Ke}-content-wrapper`;return{[Ke]:{position:"fixed",inset:0,zIndex:_e,pointerEvents:"none",color:Kt,"&-pure":{position:"relative",background:we,display:"flex",flexDirection:"column",[`&${Ke}-left`]:{boxShadow:Re.boxShadowDrawerLeft},[`&${Ke}-right`]:{boxShadow:Re.boxShadowDrawerRight},[`&${Ke}-top`]:{boxShadow:Re.boxShadowDrawerUp},[`&${Ke}-bottom`]:{boxShadow:Re.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Ke}-mask`]:{position:"absolute",inset:0,zIndex:_e,background:gt,pointerEvents:"auto"},[pn]:{position:"absolute",zIndex:_e,maxWidth:"100vw",transition:`all ${Pe}`,"&-hidden":{display:"none"}},[`&-left > ${pn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Re.boxShadowDrawerLeft},[`&-right > ${pn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Re.boxShadowDrawerRight},[`&-top > ${pn}`]:{top:0,insetInline:0,boxShadow:Re.boxShadowDrawerUp},[`&-bottom > ${pn}`]:{bottom:0,insetInline:0,boxShadow:Re.boxShadowDrawerDown},[`${Ke}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:we,pointerEvents:"auto"},[`${Ke}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Bt.unit)(rn)} ${(0,Bt.unit)(Yt)}`,fontSize:Ot,lineHeight:nn,borderBottom:`${(0,Bt.unit)(Wt)} ${He} ${mt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Ke}-extra`]:{flex:"none"},[`${Ke}-close`]:Object.assign({display:"inline-flex",width:zn(Ot).add(Ht).equal(),height:zn(Ot).add(Ht).equal(),borderRadius:Ae,justifyContent:"center",alignItems:"center",marginInlineEnd:ot,color:Tt,fontWeight:sn,fontSize:Ot,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Zt}`,textRendering:"auto","&:hover":{color:Ne,backgroundColor:dt,textDecoration:"none"},"&:active":{backgroundColor:wt}},(0,be.Qy)(Re)),[`${Ke}-title`]:{flex:1,margin:0,fontWeight:Re.fontWeightStrong,fontSize:Ot,lineHeight:nn},[`${Ke}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Yt,overflow:"auto",[`${Ke}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Ke}-footer`]:{flexShrink:0,padding:`${(0,Bt.unit)(bn)} ${(0,Bt.unit)(An)}`,borderTop:`${(0,Bt.unit)(Wt)} ${He} ${mt}`},"&-rtl":{direction:"rtl"}}}},ne=Re=>({zIndexPopup:Re.zIndexPopupBase,footerPaddingBlock:Re.paddingXS,footerPaddingInline:Re.padding});var te=(0,Ye.I$)("Drawer",Re=>{const Ae=(0,et.mergeToken)(Re,{});return[ae(Ae),Dt(Ae)]},ne),oe=function(Re,Ae){var Ke={};for(var _e in Re)Object.prototype.hasOwnProperty.call(Re,_e)&&Ae.indexOf(_e)<0&&(Ke[_e]=Re[_e]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,_e=Object.getOwnPropertySymbols(Re);gt<_e.length;gt++)Ae.indexOf(_e[gt])<0&&Object.prototype.propertyIsEnumerable.call(Re,_e[gt])&&(Ke[_e[gt]]=Re[_e[gt]]);return Ke};const ce=null,re={distance:180},le=Re=>{var Ae;const{rootClassName:Ke,width:_e,height:gt,size:we="default",mask:Pe=!0,push:Zt=re,open:Ht,afterOpenChange:rn,onClose:Yt,prefixCls:Ot,getContainer:nn,style:Wt,className:He,visible:mt,afterVisibleChange:ot,maskStyle:Tt,drawerStyle:Ne,contentWrapperStyle:dt}=Re,wt=oe(Re,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Kt,getPrefixCls:sn,direction:bn,className:An,style:zn,classNames:pn,styles:Tn}=(0,Pt.dj)("drawer"),un=sn("drawer",Ot),[Sn,Mn,Rn]=te(un),vn=nn===void 0&&Kt?()=>Kt(document.body):nn,tn=fe()({"no-mask":!Pe,[`${un}-rtl`]:bn==="rtl"},Ke,Mn,Rn),en=b.useMemo(()=>_e!=null?_e:we==="large"?736:378,[_e,we]),cn=b.useMemo(()=>gt!=null?gt:we==="large"?736:378,[gt,we]),En={motionName:(0,Mt.m)(un,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},$n=on=>({motionName:(0,Mt.m)(un,`panel-motion-${on}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Zn=(0,Xt.H)(),[Nn,Fn]=(0,de.Cn)("Drawer",wt.zIndex),{classNames:qn={},styles:er={}}=wt;return Sn(b.createElement(Je.Z,{form:!0,space:!0},b.createElement(We.Z.Provider,{value:Fn},b.createElement(st,Object.assign({prefixCls:un,onClose:Yt,maskMotion:En,motion:$n},wt,{classNames:{mask:fe()(qn.mask,pn.mask),content:fe()(qn.content,pn.content),wrapper:fe()(qn.wrapper,pn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},er.mask),Tt),Tn.mask),content:Object.assign(Object.assign(Object.assign({},er.content),Ne),Tn.content),wrapper:Object.assign(Object.assign(Object.assign({},er.wrapper),dt),Tn.wrapper)},open:Ht!=null?Ht:mt,mask:Pe,push:Zt,width:en,height:cn,style:Object.assign(Object.assign({},zn),Wt),className:fe()(An,He),rootClassName:tn,getContainer:vn,afterOpenChange:rn!=null?rn:ot,panelRef:Zn,zIndex:Nn}),b.createElement(Ut,Object.assign({prefixCls:un},wt,{onClose:Yt}))))))},ge=Re=>{const{prefixCls:Ae,style:Ke,className:_e,placement:gt="right"}=Re,we=oe(Re,["prefixCls","style","className","placement"]),{getPrefixCls:Pe}=b.useContext(Pt.E_),Zt=Pe("drawer",Ae),[Ht,rn,Yt]=te(Zt),Ot=fe()(Zt,`${Zt}-pure`,`${Zt}-${gt}`,rn,Yt,_e);return Ht(b.createElement("div",{className:Ot,style:Ke},b.createElement(Ut,Object.assign({prefixCls:Zt},we))))};le._InternalPanelDoNotUseOrYouWillBeFired=ge;var vt=le},19563:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Bt}});var b=ee(59301),je=ee(33853),fe=ee(38819),Ge=ee(92310),Oe=ee.n(Ge),ye=ee(96478),De=ee(6089),Ze=ee(18929),Ce=ee(2738),ue=ee(75030),ke=be=>typeof be!="object"&&typeof be!="function"||be===null,Lt=ee(52838),at=ee(45915),$e=ee(22703),Me=ee(32383),Ie=ee(55743),Xe=ee(48755),pt=ee(83397),Rt=ee(93041),Ve=ee(78857),Te=ee(57700),nt=ee(36237),Qe=ee(63356),zt=ee(46e3),St=ee(93873),it=ee(34925),ut=ee(37645),Se=ee(36305),st=ee(16931),Je=ee(51636),Mt=be=>{const{componentCls:Ye,menuCls:et,colorError:_t,colorTextLightSolid:rt}=be,Ft=`${et}-item`;return{[`${Ye}, ${Ye}-menu-submenu`]:{[`${et} ${Ft}`]:{[`&${Ft}-danger:not(${Ft}-disabled)`]:{color:_t,"&:hover":{color:rt,backgroundColor:_t}}}}}};const We=be=>{const{componentCls:Ye,menuCls:et,zIndexPopup:_t,dropdownArrowDistance:rt,sizePopupArrow:Ft,antCls:qe,iconCls:Jt,motionDurationMid:Dt,paddingBlock:ae,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:oe,fontSizeIcon:ce,controlPaddingHorizontal:re,colorBgElevated:le}=be;return[{[Ye]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_t,display:"block","&::before":{position:"absolute",insetBlock:be.calc(Ft).div(2).sub(rt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${qe}-btn`]:{[`& > ${Jt}-down, & > ${qe}-btn-icon > ${Jt}-down`]:{fontSize:ce}},[`${Ye}-wrap`]:{position:"relative",[`${qe}-btn > ${Jt}-down`]:{fontSize:ce},[`${Jt}-down::before`]:{transition:`transform ${Dt}`}},[`${Ye}-wrap-open`]:{[`${Jt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${qe}-slide-down-enter${qe}-slide-down-enter-active${Ye}-placement-bottomLeft,
|
|
|
&${qe}-slide-down-appear${qe}-slide-down-appear-active${Ye}-placement-bottomLeft,
|
|
|
&${qe}-slide-down-enter${qe}-slide-down-enter-active${Ye}-placement-bottom,
|
|
|
&${qe}-slide-down-appear${qe}-slide-down-appear-active${Ye}-placement-bottom,
|
|
|
&${qe}-slide-down-enter${qe}-slide-down-enter-active${Ye}-placement-bottomRight,
|
|
|
&${qe}-slide-down-appear${qe}-slide-down-appear-active${Ye}-placement-bottomRight`]:{animationName:zt.fJ},[`&${qe}-slide-up-enter${qe}-slide-up-enter-active${Ye}-placement-topLeft,
|
|
|
&${qe}-slide-up-appear${qe}-slide-up-appear-active${Ye}-placement-topLeft,
|
|
|
&${qe}-slide-up-enter${qe}-slide-up-enter-active${Ye}-placement-top,
|
|
|
&${qe}-slide-up-appear${qe}-slide-up-appear-active${Ye}-placement-top,
|
|
|
&${qe}-slide-up-enter${qe}-slide-up-enter-active${Ye}-placement-topRight,
|
|
|
&${qe}-slide-up-appear${qe}-slide-up-appear-active${Ye}-placement-topRight`]:{animationName:zt.Qt},[`&${qe}-slide-down-leave${qe}-slide-down-leave-active${Ye}-placement-bottomLeft,
|
|
|
&${qe}-slide-down-leave${qe}-slide-down-leave-active${Ye}-placement-bottom,
|
|
|
&${qe}-slide-down-leave${qe}-slide-down-leave-active${Ye}-placement-bottomRight`]:{animationName:zt.Uw},[`&${qe}-slide-up-leave${qe}-slide-up-leave-active${Ye}-placement-topLeft,
|
|
|
&${qe}-slide-up-leave${qe}-slide-up-leave-active${Ye}-placement-top,
|
|
|
&${qe}-slide-up-leave${qe}-slide-up-leave-active${Ye}-placement-topRight`]:{animationName:zt.ly}}},(0,ut.ZP)(be,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ye} ${et}`]:{position:"relative",margin:0},[`${et}-submenu-popup`]:{position:"absolute",zIndex:_t,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ye}, ${Ye}-menu-submenu`]:Object.assign(Object.assign({},(0,Qe.Wf)(be)),{[et]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary},(0,Qe.Qy)(be)),{"&:empty":{padding:0,boxShadow:"none"},[`${et}-item-group-title`]:{padding:`${(0,nt.unit)(ae)} ${(0,nt.unit)(re)}`,color:be.colorTextDescription,transition:`all ${Dt}`},[`${et}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${et}-item-icon`]:{minWidth:ne,marginInlineEnd:be.marginXS,fontSize:be.fontSizeSM},[`${et}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${et}-item-extra`]:{paddingInlineStart:be.padding,marginInlineStart:"auto",fontSize:be.fontSizeSM,color:be.colorTextDescription}},[`${et}-item, ${et}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,nt.unit)(ae)} ${(0,nt.unit)(re)}`,color:be.colorText,fontWeight:"normal",fontSize:ne,lineHeight:be.lineHeight,cursor:"pointer",transition:`all ${Dt}`,borderRadius:be.borderRadiusSM,"&:hover, &-active":{backgroundColor:be.controlItemBgHover}},(0,Qe.Qy)(be)),{"&-selected":{color:be.colorPrimary,backgroundColor:be.controlItemBgActive,"&:hover, &-active":{backgroundColor:be.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,nt.unit)(be.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:be.colorSplit},[`${Ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:be.paddingXS,[`${Ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:be.colorTextDescription,fontSize:ce,fontStyle:"normal"}}}),[`${et}-item-group-list`]:{margin:`0 ${(0,nt.unit)(be.marginXS)}`,padding:0,listStyle:"none"},[`${et}-submenu-title`]:{paddingInlineEnd:be.calc(re).add(be.fontSizeSM).equal()},[`${et}-submenu-vertical`]:{position:"relative"},[`${et}-submenu${et}-submenu-disabled ${Ye}-menu-submenu-title`]:{[`&, ${Ye}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:le,cursor:"not-allowed"}},[`${et}-submenu-selected ${Ye}-menu-submenu-title`]:{color:be.colorPrimary}})})},[(0,zt.oN)(be,"slide-up"),(0,zt.oN)(be,"slide-down"),(0,St.Fm)(be,"move-up"),(0,St.Fm)(be,"move-down"),(0,it._y)(be,"zoom-big")]]},Pt=be=>Object.assign(Object.assign({zIndexPopup:be.zIndexPopupBase+50,paddingBlock:(be.controlHeight-be.fontSize*be.lineHeight)/2},(0,ut.wZ)({contentRadius:be.borderRadiusLG,limitVerticalRadius:!0})),(0,Se.w)(be));var Xt=(0,st.I$)("Dropdown",be=>{const{marginXXS:Ye,sizePopupArrow:et,paddingXXS:_t,componentCls:rt}=be,Ft=(0,Je.mergeToken)(be,{menuCls:`${rt}-menu`,dropdownArrowDistance:be.calc(et).div(2).add(Ye).equal(),dropdownEdgeChildPadding:_t});return[We(Ft),Mt(Ft)]},Pt,{resetStyle:!1});const Be=null,me=be=>{var Ye;const{menu:et,arrow:_t,prefixCls:rt,children:Ft,trigger:qe,disabled:Jt,dropdownRender:Dt,getPopupContainer:ae,overlayClassName:ne,rootClassName:te,overlayStyle:oe,open:ce,onOpenChange:re,visible:le,onVisibleChange:ge,mouseEnterDelay:vt=.15,mouseLeaveDelay:Re=.1,autoAdjustOverflow:Ae=!0,placement:Ke="",overlay:_e,transitionName:gt}=be,{getPopupContainer:we,getPrefixCls:Pe,direction:Zt,dropdown:Ht}=b.useContext(Xe.E_),rn=(0,Me.ln)("Dropdown"),Yt=b.useMemo(()=>{const vn=Pe();return gt!==void 0?gt:Ke.includes("top")?`${vn}-slide-down`:`${vn}-slide-up`},[Pe,Ke,gt]),Ot=b.useMemo(()=>Ke?Ke.includes("Center")?Ke.slice(0,Ke.indexOf("Center")):Ke:Zt==="rtl"?"bottomRight":"bottomLeft",[Ke,Zt]),nn=Pe("dropdown",rt),Wt=(0,pt.Z)(nn),[He,mt,ot]=Xt(nn,Wt),[,Tt]=(0,Te.ZP)(),Ne=b.Children.only(ke(Ft)?b.createElement("span",null,Ft):Ft),dt=(0,$e.Tm)(Ne,{className:Oe()(`${nn}-trigger`,{[`${nn}-rtl`]:Zt==="rtl"},Ne.props.className),disabled:(Ye=Ne.props.disabled)!==null&&Ye!==void 0?Ye:Jt}),wt=Jt?[]:qe,Kt=!!(wt!=null&&wt.includes("contextMenu")),[sn,bn]=(0,Ze.Z)(!1,{value:ce!=null?ce:le}),An=(0,De.Z)(vn=>{re==null||re(vn,{source:"trigger"}),ge==null||ge(vn),bn(vn)}),zn=Oe()(ne,te,mt,ot,Wt,Ht==null?void 0:Ht.className,{[`${nn}-rtl`]:Zt==="rtl"}),pn=(0,Lt.Z)({arrowPointAtCenter:typeof _t=="object"&&_t.pointAtCenter,autoAdjustOverflow:Ae,offset:Tt.marginXXS,arrowWidth:_t?Tt.sizePopupArrow:0,borderRadius:Tt.borderRadius}),Tn=b.useCallback(()=>{et!=null&&et.selectable&&(et!=null&&et.multiple)||(re==null||re(!1,{source:"menu"}),bn(!1))},[et==null?void 0:et.selectable,et==null?void 0:et.multiple]),un=()=>{let vn;return et!=null&&et.items?vn=b.createElement(Rt.default,Object.assign({},et)):typeof _e=="function"?vn=_e():vn=_e,Dt&&(vn=Dt(vn)),vn=b.Children.only(typeof vn=="string"?b.createElement("span",null,vn):vn),b.createElement(Ve.J,{prefixCls:`${nn}-menu`,rootClassName:Oe()(ot,Wt),expandIcon:b.createElement("span",{className:`${nn}-menu-submenu-arrow`},Zt==="rtl"?b.createElement(je.Z,{className:`${nn}-menu-submenu-arrow-icon`}):b.createElement(fe.Z,{className:`${nn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Tn,validator:tn=>{let{mode:en}=tn}},vn)},[Sn,Mn]=(0,ue.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Rn=b.createElement(ye.Z,Object.assign({alignPoint:Kt},(0,Ce.Z)(be,["rootClassName"]),{mouseEnterDelay:vt,mouseLeaveDelay:Re,visible:sn,builtinPlacements:pn,arrow:!!_t,overlayClassName:zn,prefixCls:nn,getPopupContainer:ae||we,transitionName:Yt,trigger:wt,overlay:un,placement:Ot,onVisibleChange:An,overlayStyle:Object.assign(Object.assign(Object.assign({},Ht==null?void 0:Ht.style),oe),{zIndex:Sn})}),dt);return Sn&&(Rn=b.createElement(Ie.Z.Provider,{value:Mn},Rn)),He(Rn)},ht=(0,at.Z)(me,"align",void 0,"dropdown",be=>be),Ut=be=>b.createElement(ht,Object.assign({},be),b.createElement("span",null));me._InternalPanelDoNotUseOrYouWillBeFired=Ut;var Bt=me},75727:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return at}});var b=ee(19563),je=ee(59301),fe=ee(18785),Ge=ee(92310),Oe=ee.n(Ge),ye=ee(7939),De=ee(48755),Ze=ee(44104),Ce=ee(70045),ue=function($e,Me){var Ie={};for(var Xe in $e)Object.prototype.hasOwnProperty.call($e,Xe)&&Me.indexOf(Xe)<0&&(Ie[Xe]=$e[Xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Xe=Object.getOwnPropertySymbols($e);pt<Xe.length;pt++)Me.indexOf(Xe[pt])<0&&Object.prototype.propertyIsEnumerable.call($e,Xe[pt])&&(Ie[Xe[pt]]=$e[Xe[pt]]);return Ie};const tt=$e=>{const{getPopupContainer:Me,getPrefixCls:Ie,direction:Xe}=je.useContext(De.E_),{prefixCls:pt,type:Rt="default",danger:Ve,disabled:Te,loading:nt,onClick:Qe,htmlType:zt,children:St,className:it,menu:ut,arrow:Se,autoFocus:st,overlay:Je,trigger:de,align:Mt,open:We,onOpenChange:Pt,placement:Xt,getPopupContainer:Be,href:me,icon:ht=je.createElement(fe.Z,null),title:Ut,buttonsRender:Bt=vt=>vt,mouseEnterDelay:be,mouseLeaveDelay:Ye,overlayClassName:et,overlayStyle:_t,destroyPopupOnHide:rt,dropdownRender:Ft}=$e,qe=ue($e,["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"]),Jt=Ie("dropdown",pt),Dt=`${Jt}-button`,ae={menu:ut,arrow:Se,autoFocus:st,align:Mt,disabled:Te,trigger:Te?[]:de,onOpenChange:Pt,getPopupContainer:Be||Me,mouseEnterDelay:be,mouseLeaveDelay:Ye,overlayClassName:et,overlayStyle:_t,destroyPopupOnHide:rt,dropdownRender:Ft},{compactSize:ne,compactItemClassnames:te}=(0,Ce.ri)(Jt,Xe),oe=Oe()(Dt,te,it);"overlay"in $e&&(ae.overlay=Je),"open"in $e&&(ae.open=We),"placement"in $e?ae.placement=Xt:ae.placement=Xe==="rtl"?"bottomLeft":"bottomRight";const ce=je.createElement(ye.ZP,{type:Rt,danger:Ve,disabled:Te,loading:nt,onClick:Qe,htmlType:zt,href:me,title:Ut},St),re=je.createElement(ye.ZP,{type:Rt,danger:Ve,icon:ht}),[le,ge]=Bt([ce,re]);return je.createElement(Ze.Z.Compact,Object.assign({className:oe,size:ne,block:!0},qe),le,je.createElement(b.Z,Object.assign({},ae),ge))};tt.__ANT_BUTTON=!0;var ke=tt;const Lt=b.Z;Lt.Button=ke;var at=Lt},584:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Rt}});var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(9017),Oe=ee(17835),ye=ee(57700),Ze=()=>{const[,Ve]=(0,ye.ZP)(),[Te]=(0,Ge.Z)("Empty"),Qe=new Oe.FastColor(Ve.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:Qe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Te==null?void 0:Te.description)||"Empty"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.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"}),b.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)"}),b.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"}),b.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"})),b.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"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ue=()=>{const[,Ve]=(0,ye.ZP)(),[Te]=(0,Ge.Z)("Empty"),{colorFill:nt,colorFillTertiary:Qe,colorFillQuaternary:zt,colorBgContainer:St}=Ve,{borderColor:it,shadowColor:ut,contentColor:Se}=(0,b.useMemo)(()=>({borderColor:new Oe.FastColor(nt).onBackground(St).toHexString(),shadowColor:new Oe.FastColor(Qe).onBackground(St).toHexString(),contentColor:new Oe.FastColor(zt).onBackground(St).toHexString()}),[nt,Qe,zt,St]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Te==null?void 0:Te.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:ut,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:it},b.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"}),b.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:Se}))))},tt=ee(16931),ke=ee(51636);const Lt=Ve=>{const{componentCls:Te,margin:nt,marginXS:Qe,marginXL:zt,fontSize:St,lineHeight:it}=Ve;return{[Te]:{marginInline:Qe,fontSize:St,lineHeight:it,textAlign:"center",[`${Te}-image`]:{height:Ve.emptyImgHeight,marginBottom:Qe,opacity:Ve.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Te}-description`]:{color:Ve.colorTextDescription},[`${Te}-footer`]:{marginTop:nt},"&-normal":{marginBlock:zt,color:Ve.colorTextDescription,[`${Te}-description`]:{color:Ve.colorTextDescription},[`${Te}-image`]:{height:Ve.emptyImgHeightMD}},"&-small":{marginBlock:Qe,color:Ve.colorTextDescription,[`${Te}-image`]:{height:Ve.emptyImgHeightSM}}}}};var at=(0,tt.I$)("Empty",Ve=>{const{componentCls:Te,controlHeightLG:nt,calc:Qe}=Ve,zt=(0,ke.mergeToken)(Ve,{emptyImgCls:`${Te}-img`,emptyImgHeight:Qe(nt).mul(2.5).equal(),emptyImgHeightMD:nt,emptyImgHeightSM:Qe(nt).mul(.875).equal()});return[Lt(zt)]}),$e=ee(48755),Me=function(Ve,Te){var nt={};for(var Qe in Ve)Object.prototype.hasOwnProperty.call(Ve,Qe)&&Te.indexOf(Qe)<0&&(nt[Qe]=Ve[Qe]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Qe=Object.getOwnPropertySymbols(Ve);zt<Qe.length;zt++)Te.indexOf(Qe[zt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Qe[zt])&&(nt[Qe[zt]]=Ve[Qe[zt]]);return nt};const Ie=b.createElement(Ze,null),Xe=b.createElement(ue,null),pt=Ve=>{const{className:Te,rootClassName:nt,prefixCls:Qe,image:zt=Ie,description:St,children:it,imageStyle:ut,style:Se,classNames:st,styles:Je}=Ve,de=Me(Ve,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Mt,direction:We,className:Pt,style:Xt,classNames:Be,styles:me}=(0,$e.dj)("empty"),ht=Mt("empty",Qe),[Ut,Bt,be]=at(ht),[Ye]=(0,Ge.Z)("Empty"),et=typeof St!="undefined"?St:Ye==null?void 0:Ye.description,_t=typeof et=="string"?et:"empty";let rt=null;return typeof zt=="string"?rt=b.createElement("img",{alt:_t,src:zt}):rt=zt,Ut(b.createElement("div",Object.assign({className:fe()(Bt,be,ht,Pt,{[`${ht}-normal`]:zt===Xe,[`${ht}-rtl`]:We==="rtl"},Te,nt,Be.root,st==null?void 0:st.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},me.root),Xt),Je==null?void 0:Je.root),Se)},de),b.createElement("div",{className:fe()(`${ht}-image`,Be.image,st==null?void 0:st.image),style:Object.assign(Object.assign(Object.assign({},ut),me.image),Je==null?void 0:Je.image)},rt),et&&b.createElement("div",{className:fe()(`${ht}-description`,Be.description,st==null?void 0:st.description),style:Object.assign(Object.assign({},me.description),Je==null?void 0:Je.description)},et),it&&b.createElement("div",{className:fe()(`${ht}-footer`,Be.footer,st==null?void 0:st.footer),style:Object.assign(Object.assign({},me.footer),Je==null?void 0:Je.footer)},it)))};pt.PRESENTED_IMAGE_DEFAULT=Ie,pt.PRESENTED_IMAGE_SIMPLE=Xe;var Rt=pt},28284:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return yt}});var b=ee(56553),je=ee(94480),fe=ee(59301),Ge=ee(92310),Oe=ee.n(Ge),ye=ee(77900),De=ee(86641),Ze=ee(83397);function Ce(Fe){const[lt,ze]=fe.useState(Fe);return fe.useEffect(()=>{const xt=setTimeout(()=>{ze(Fe)},Fe.length?0:10);return()=>{clearTimeout(xt)}},[Fe]),lt}var ue=ee(36237),tt=ee(63356),ke=ee(34925),Lt=ee(34961),at=ee(51636),$e=ee(16931),Ie=Fe=>{const{componentCls:lt}=Fe,ze=`${lt}-show-help`,xt=`${lt}-show-help-item`;return{[ze]:{transition:`opacity ${Fe.motionDurationFast} ${Fe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[xt]:{overflow:"hidden",transition:`height ${Fe.motionDurationFast} ${Fe.motionEaseInOut},
|
|
|
opacity ${Fe.motionDurationFast} ${Fe.motionEaseInOut},
|
|
|
transform ${Fe.motionDurationFast} ${Fe.motionEaseInOut} !important`,[`&${xt}-appear, &${xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Xe=Fe=>({legend:{display:"block",width:"100%",marginBottom:Fe.marginLG,padding:0,color:Fe.colorTextDescription,fontSize:Fe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ue.unit)(Fe.lineWidth)} ${Fe.lineType} ${Fe.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,ue.unit)(Fe.controlOutlineWidth)} ${Fe.controlOutline}`},output:{display:"block",paddingTop:15,color:Fe.colorText,fontSize:Fe.fontSize,lineHeight:Fe.lineHeight}}),pt=(Fe,lt)=>{const{formItemCls:ze}=Fe;return{[ze]:{[`${ze}-label > label`]:{height:lt},[`${ze}-control-input`]:{minHeight:lt}}}},Rt=Fe=>{const{componentCls:lt}=Fe;return{[Fe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(Fe)),Xe(Fe)),{[`${lt}-text`]:{display:"inline-block",paddingInlineEnd:Fe.paddingSM},"&-small":Object.assign({},pt(Fe,Fe.controlHeightSM)),"&-large":Object.assign({},pt(Fe,Fe.controlHeightLG))})}},Ve=Fe=>{const{formItemCls:lt,iconCls:ze,rootPrefixCls:xt,antCls:Ee,labelRequiredMarkColor:It,labelColor:kt,labelFontSize:Vt,labelHeight:bt,labelColonMarginInlineStart:Ct,labelColonMarginInlineEnd:Et,itemMarginBottom:$t}=Fe;return{[lt]:Object.assign(Object.assign({},(0,tt.Wf)(Fe)),{marginBottom:$t,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Ee}-row`]:{display:"none"},"&-has-warning":{[`${lt}-split`]:{color:Fe.colorError}},"&-has-error":{[`${lt}-split`]:{color:Fe.colorWarning}},[`${lt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Fe.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:bt,color:kt,fontSize:Vt,[`> ${ze}`]:{fontSize:Fe.fontSize,verticalAlign:"top"},[`&${lt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Fe.marginXXS,color:It,fontSize:Fe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${lt}-required-mark-hidden, &${lt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${lt}-optional`]:{display:"inline-block",marginInlineStart:Fe.marginXXS,color:Fe.colorTextDescription,[`&${lt}-required-mark-hidden`]:{display:"none"}},[`${lt}-tooltip`]:{color:Fe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Fe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ct,marginInlineEnd:Et},[`&${lt}-no-colon::after`]:{content:'"\\a0"'}}},[`${lt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${xt}-col-'"]):not([class*="' ${xt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Fe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[lt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Fe.colorTextDescription,fontSize:Fe.fontSize,lineHeight:Fe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Fe.controlHeightSM,transition:`color ${Fe.motionDurationMid} ${Fe.motionEaseOut}`},"&-explain":{"&-error":{color:Fe.colorError},"&-warning":{color:Fe.colorWarning}}},[`&-with-help ${lt}-explain`]:{height:"auto",opacity:1},[`${lt}-feedback-icon`]:{fontSize:Fe.fontSize,textAlign:"center",visibility:"visible",animationName:ke.kr,animationDuration:Fe.motionDurationMid,animationTimingFunction:Fe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Fe.colorSuccess},"&-error":{color:Fe.colorError},"&-warning":{color:Fe.colorWarning},"&-validating":{color:Fe.colorPrimary}}})}},Te=(Fe,lt)=>{const{formItemCls:ze}=Fe;return{[`${lt}-horizontal`]:{[`${ze}-label`]:{flexGrow:0},[`${ze}-control`]:{flex:"1 1 0",minWidth:0},[`${ze}-label[class$='-24'], ${ze}-label[class*='-24 ']`]:{[`& + ${ze}-control`]:{minWidth:"unset"}}}}},nt=Fe=>{const{componentCls:lt,formItemCls:ze,inlineItemMarginBottom:xt}=Fe;return{[`${lt}-inline`]:{display:"flex",flexWrap:"wrap",[ze]:{flex:"none",marginInlineEnd:Fe.margin,marginBottom:xt,"&-row":{flexWrap:"nowrap"},[`> ${ze}-label,
|
|
|
> ${ze}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ze}-label`]:{flex:"none"},[`${lt}-text`]:{display:"inline-block"},[`${ze}-has-feedback`]:{display:"inline-block"}}}}},Qe=Fe=>({padding:Fe.verticalLabelPadding,margin:Fe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zt=Fe=>{const{componentCls:lt,formItemCls:ze,rootPrefixCls:xt}=Fe;return{[`${ze} ${ze}-label`]:Qe(Fe),[`${lt}:not(${lt}-inline)`]:{[ze]:{flexWrap:"wrap",[`${ze}-label, ${ze}-control`]:{[`&:not([class*=" ${xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},St=Fe=>{const{componentCls:lt,formItemCls:ze,antCls:xt}=Fe;return{[`${lt}-vertical`]:{[`${ze}:not(${ze}-horizontal)`]:{[`${ze}-row`]:{flexDirection:"column"},[`${ze}-label > label`]:{height:"auto"},[`${ze}-control`]:{width:"100%"},[`${ze}-label,
|
|
|
${xt}-col-24${ze}-label,
|
|
|
${xt}-col-xl-24${ze}-label`]:Qe(Fe)}},[`@media (max-width: ${(0,ue.unit)(Fe.screenXSMax)})`]:[zt(Fe),{[lt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${xt}-col-xs-24${ze}-label`]:Qe(Fe)}}}],[`@media (max-width: ${(0,ue.unit)(Fe.screenSMMax)})`]:{[lt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${xt}-col-sm-24${ze}-label`]:Qe(Fe)}}},[`@media (max-width: ${(0,ue.unit)(Fe.screenMDMax)})`]:{[lt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${xt}-col-md-24${ze}-label`]:Qe(Fe)}}},[`@media (max-width: ${(0,ue.unit)(Fe.screenLGMax)})`]:{[lt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${xt}-col-lg-24${ze}-label`]:Qe(Fe)}}}}},it=Fe=>{const{formItemCls:lt,antCls:ze}=Fe;return{[`${lt}-vertical`]:{[`${lt}-row`]:{flexDirection:"column"},[`${lt}-label > label`]:{height:"auto"},[`${lt}-control`]:{width:"100%"}},[`${lt}-vertical ${lt}-label,
|
|
|
${ze}-col-24${lt}-label,
|
|
|
${ze}-col-xl-24${lt}-label`]:Qe(Fe),[`@media (max-width: ${(0,ue.unit)(Fe.screenXSMax)})`]:[zt(Fe),{[lt]:{[`${ze}-col-xs-24${lt}-label`]:Qe(Fe)}}],[`@media (max-width: ${(0,ue.unit)(Fe.screenSMMax)})`]:{[lt]:{[`${ze}-col-sm-24${lt}-label`]:Qe(Fe)}},[`@media (max-width: ${(0,ue.unit)(Fe.screenMDMax)})`]:{[lt]:{[`${ze}-col-md-24${lt}-label`]:Qe(Fe)}},[`@media (max-width: ${(0,ue.unit)(Fe.screenLGMax)})`]:{[lt]:{[`${ze}-col-lg-24${lt}-label`]:Qe(Fe)}}}},ut=Fe=>({labelRequiredMarkColor:Fe.colorError,labelColor:Fe.colorTextHeading,labelFontSize:Fe.fontSize,labelHeight:Fe.controlHeight,labelColonMarginInlineStart:Fe.marginXXS/2,labelColonMarginInlineEnd:Fe.marginXS,itemMarginBottom:Fe.marginLG,verticalLabelPadding:`0 0 ${Fe.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Se=(Fe,lt)=>(0,at.mergeToken)(Fe,{formItemCls:`${Fe.componentCls}-item`,rootPrefixCls:lt});var st=(0,$e.I$)("Form",(Fe,lt)=>{let{rootPrefixCls:ze}=lt;const xt=Se(Fe,ze);return[Rt(xt),Ve(xt),Ie(xt),Te(xt,xt.componentCls),Te(xt,xt.formItemCls),nt(xt),St(xt),it(xt),(0,Lt.Z)(xt),ke.kr]},ut,{order:-1e3});const Je=[];function de(Fe,lt,ze){let xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Fe=="string"?Fe:`${lt}-${xt}`,error:Fe,errorStatus:ze}}var We=Fe=>{let{help:lt,helpStatus:ze,errors:xt=Je,warnings:Ee=Je,className:It,fieldId:kt,onVisibleChanged:Vt}=Fe;const{prefixCls:bt}=fe.useContext(b.Rk),Ct=`${bt}-item-explain`,Et=(0,Ze.Z)(bt),[$t,Pn,wn]=st(bt,Et),Dn=fe.useMemo(()=>(0,De.Z)(bt),[bt]),nr=Ce(xt),sr=Ce(Ee),fr=fe.useMemo(()=>lt!=null?[de(lt,"help",ze)]:[].concat((0,je.Z)(nr.map((Jn,ur)=>de(Jn,"error","error",ur))),(0,je.Z)(sr.map((Jn,ur)=>de(Jn,"warning","warning",ur)))),[lt,ze,nr,sr]),Qn=fe.useMemo(()=>{const Jn={};return fr.forEach(ur=>{let{key:Er}=ur;Jn[Er]=(Jn[Er]||0)+1}),fr.map((ur,Er)=>Object.assign(Object.assign({},ur),{key:Jn[ur.key]>1?`${ur.key}-fallback-${Er}`:ur.key}))},[fr]),_n={};return kt&&(_n.id=`${kt}_help`),$t(fe.createElement(ye.default,{motionDeadline:Dn.motionDeadline,motionName:`${bt}-show-help`,visible:!!Qn.length,onVisibleChanged:Vt},Jn=>{const{className:ur,style:Er}=Jn;return fe.createElement("div",Object.assign({},_n,{className:Oe()(Ct,ur,wn,Et,It,Pn),style:Er}),fe.createElement(ye.CSSMotionList,Object.assign({keys:Qn},(0,De.Z)(bt),{motionName:`${bt}-show-help-item`,component:!1}),Cr=>{const{key:wr,error:Yn,errorStatus:yr,className:mr,style:Vr}=Cr;return fe.createElement("div",{key:wr,className:Oe()(mr,{[`${Ct}-${yr}`]:yr}),style:Vr},Yn)}))}))},Pt=ee(22001),Xt=ee(48755),Be=ee(2171),me=ee(31756),ht=ee(23069),Ut=ee(76846),Bt=ee(16722);const be=["parentNode"],Ye="form_item";function et(Fe){return Fe===void 0||Fe===!1?[]:Array.isArray(Fe)?Fe:[Fe]}function _t(Fe,lt){if(!Fe.length)return;const ze=Fe.join("_");return lt?`${lt}_${ze}`:be.includes(ze)?`${Ye}_${ze}`:ze}function rt(Fe,lt,ze,xt,Ee,It){let kt=xt;return It!==void 0?kt=It:ze.validating?kt="validating":Fe.length?kt="error":lt.length?kt="warning":(ze.touched||Ee&&ze.validated)&&(kt="success"),kt}var Ft=function(Fe,lt){var ze={};for(var xt in Fe)Object.prototype.hasOwnProperty.call(Fe,xt)&<.indexOf(xt)<0&&(ze[xt]=Fe[xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,xt=Object.getOwnPropertySymbols(Fe);Ee<xt.length;Ee++)lt.indexOf(xt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Fe,xt[Ee])&&(ze[xt[Ee]]=Fe[xt[Ee]]);return ze};function qe(Fe){return et(Fe).join("_")}function Jt(Fe,lt){const ze=lt.getFieldInstance(Fe),xt=(0,Ut.bn)(ze);if(xt)return xt;const Ee=_t(et(Fe),lt.__INTERNAL__.name);if(Ee)return document.getElementById(Ee)}function Dt(Fe){const[lt]=(0,Pt.useForm)(),ze=fe.useRef({}),xt=fe.useMemo(()=>Fe!=null?Fe:Object.assign(Object.assign({},lt),{__INTERNAL__:{itemRef:Ee=>It=>{const kt=qe(Ee);It?ze.current[kt]=It:delete ze.current[kt]}},scrollToField:function(Ee){let It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:kt}=It,Vt=Ft(It,["focus"]),bt=Jt(Ee,xt);bt&&((0,Bt.Z)(bt,Object.assign({scrollMode:"if-needed",block:"nearest"},Vt)),kt&&xt.focusField(Ee))},focusField:Ee=>{var It,kt;const Vt=xt.getFieldInstance(Ee);typeof(Vt==null?void 0:Vt.focus)=="function"?Vt.focus():(kt=(It=Jt(Ee,xt))===null||It===void 0?void 0:It.focus)===null||kt===void 0||kt.call(It)},getFieldInstance:Ee=>{const It=qe(Ee);return ze.current[It]}}),[Fe,lt]);return[xt]}var ae=ee(98350),ne=function(Fe,lt){var ze={};for(var xt in Fe)Object.prototype.hasOwnProperty.call(Fe,xt)&<.indexOf(xt)<0&&(ze[xt]=Fe[xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,xt=Object.getOwnPropertySymbols(Fe);Ee<xt.length;Ee++)lt.indexOf(xt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Fe,xt[Ee])&&(ze[xt[Ee]]=Fe[xt[Ee]]);return ze};const te=(Fe,lt)=>{const ze=fe.useContext(Be.Z),{getPrefixCls:xt,direction:Ee,requiredMark:It,colon:kt,scrollToFirstError:Vt,className:bt,style:Ct}=(0,Xt.dj)("form"),{prefixCls:Et,className:$t,rootClassName:Pn,size:wn,disabled:Dn=ze,form:nr,colon:sr,labelAlign:fr,labelWrap:Qn,labelCol:_n,wrapperCol:Jn,hideRequiredMark:ur,layout:Er="horizontal",scrollToFirstError:Cr,requiredMark:wr,onFinishFailed:Yn,name:yr,style:mr,feedbackIcons:Vr,variant:Yr}=Fe,Ur=ne(Fe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Gr=(0,me.Z)(wn),oi=fe.useContext(ae.Z),Zr=fe.useMemo(()=>wr!==void 0?wr:ur?!1:It!==void 0?It:!0,[ur,wr,It]),Jr=sr!=null?sr:kt,Or=xt("form",Et),ti=(0,Ze.Z)(Or),[ci,Fi,vi]=st(Or,ti),xi=Oe()(Or,`${Or}-${Er}`,{[`${Or}-hide-required-mark`]:Zr===!1,[`${Or}-rtl`]:Ee==="rtl",[`${Or}-${Gr}`]:Gr},vi,ti,Fi,bt,$t,Pn),[hi]=Dt(nr),{__INTERNAL__:bi}=hi;bi.name=yr;const Rr=fe.useMemo(()=>({name:yr,labelAlign:fr,labelCol:_n,labelWrap:Qn,wrapperCol:Jn,vertical:Er==="vertical",colon:Jr,requiredMark:Zr,itemRef:bi.itemRef,form:hi,feedbackIcons:Vr}),[yr,fr,_n,Jn,Er,Jr,Zr,hi,Vr]),kr=fe.useRef(null);fe.useImperativeHandle(lt,()=>{var jn;return Object.assign(Object.assign({},hi),{nativeElement:(jn=kr.current)===null||jn===void 0?void 0:jn.nativeElement})});const cr=(jn,Kn)=>{if(jn){let kn={block:"nearest"};typeof jn=="object"&&(kn=Object.assign(Object.assign({},kn),jn)),hi.scrollToField(Kn,kn)}},On=jn=>{if(Yn==null||Yn(jn),jn.errorFields.length){const Kn=jn.errorFields[0].name;if(Cr!==void 0){cr(Cr,Kn);return}Vt!==void 0&&cr(Vt,Kn)}};return ci(fe.createElement(b.pg.Provider,{value:Yr},fe.createElement(Be.n,{disabled:Dn},fe.createElement(ht.Z.Provider,{value:Gr},fe.createElement(b.RV,{validateMessages:oi},fe.createElement(b.q3.Provider,{value:Rr},fe.createElement(Pt.default,Object.assign({id:yr},Ur,{name:yr,onFinishFailed:On,form:hi,ref:kr,style:Object.assign(Object.assign({},Ct),mr),className:xi}))))))))};var ce=fe.forwardRef(te),re=ee(41799),le=ee(8654),ge=ee(22703),vt=ee(32383),Re=ee(11592);function Ae(Fe){if(typeof Fe=="function")return Fe;const lt=(0,Re.Z)(Fe);return lt.length<=1?lt[0]:lt}const Ke=()=>{const{status:Fe,errors:lt=[],warnings:ze=[]}=fe.useContext(b.aM);return{status:Fe,errors:lt,warnings:ze}};Ke.Context=b.aM;var _e=Ke,gt=ee(16089);function we(Fe){const[lt,ze]=fe.useState(Fe),xt=fe.useRef(null),Ee=fe.useRef([]),It=fe.useRef(!1);fe.useEffect(()=>(It.current=!1,()=>{It.current=!0,gt.Z.cancel(xt.current),xt.current=null}),[]);function kt(Vt){It.current||(xt.current===null&&(Ee.current=[],xt.current=(0,gt.Z)(()=>{xt.current=null,ze(bt=>{let Ct=bt;return Ee.current.forEach(Et=>{Ct=Et(Ct)}),Ct})})),Ee.current.push(Vt))}return[lt,kt]}function Pe(){const{itemRef:Fe}=fe.useContext(b.q3),lt=fe.useRef({});function ze(xt,Ee){const It=Ee&&typeof Ee=="object"&&(0,le.C4)(Ee),kt=xt.join("_");return(lt.current.name!==kt||lt.current.originRef!==It)&&(lt.current.name=kt,lt.current.originRef=It,lt.current.ref=(0,le.sQ)(Fe(xt),It)),lt.current.ref}return ze}var Zt=ee(29194),Ht=ee(34280),rn=ee(2738),Yt=ee(65970),Ot=ee(70425),nn=ee(5472);const Wt=Fe=>{const{formItemCls:lt}=Fe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${lt}-control`]:{display:"flex"}}}};var He=(0,$e.bk)(["Form","item-item"],(Fe,lt)=>{let{rootPrefixCls:ze}=lt;const xt=Se(Fe,ze);return[Wt(xt)]}),mt=function(Fe,lt){var ze={};for(var xt in Fe)Object.prototype.hasOwnProperty.call(Fe,xt)&<.indexOf(xt)<0&&(ze[xt]=Fe[xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,xt=Object.getOwnPropertySymbols(Fe);Ee<xt.length;Ee++)lt.indexOf(xt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Fe,xt[Ee])&&(ze[xt[Ee]]=Fe[xt[Ee]]);return ze};const ot=24;var Ne=Fe=>{const{prefixCls:lt,status:ze,labelCol:xt,wrapperCol:Ee,children:It,errors:kt,warnings:Vt,_internalItemRender:bt,extra:Ct,help:Et,fieldId:$t,marginBottom:Pn,onErrorVisibleChanged:wn,label:Dn}=Fe,nr=`${lt}-item`,sr=fe.useContext(b.q3),fr=fe.useMemo(()=>{let Ur=Object.assign({},Ee||sr.wrapperCol||{});return Dn===null&&!xt&&!Ee&&sr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(oi=>{const Zr=oi?[oi]:[],Jr=(0,Ot.U2)(sr.labelCol,Zr),Or=typeof Jr=="object"?Jr:{},ti=(0,Ot.U2)(Ur,Zr),ci=typeof ti=="object"?ti:{};"span"in Or&&!("offset"in ci)&&Or.span<ot&&(Ur=(0,Ot.t8)(Ur,[].concat(Zr,["offset"]),Or.span))}),Ur},[Ee,sr]),Qn=Oe()(`${nr}-control`,fr.className),_n=fe.useMemo(()=>{const{labelCol:Ur,wrapperCol:Gr}=sr;return mt(sr,["labelCol","wrapperCol"])},[sr]),Jn=fe.useRef(null),[ur,Er]=fe.useState(0);(0,Ht.Z)(()=>{Ct&&Jn.current?Er(Jn.current.clientHeight):Er(0)},[Ct]);const Cr=fe.createElement("div",{className:`${nr}-control-input`},fe.createElement("div",{className:`${nr}-control-input-content`},It)),wr=fe.useMemo(()=>({prefixCls:lt,status:ze}),[lt,ze]),Yn=Pn!==null||kt.length||Vt.length?fe.createElement(b.Rk.Provider,{value:wr},fe.createElement(We,{fieldId:$t,errors:kt,warnings:Vt,help:Et,helpStatus:ze,className:`${nr}-explain-connected`,onVisibleChanged:wn})):null,yr={};$t&&(yr.id=`${$t}_extra`);const mr=Ct?fe.createElement("div",Object.assign({},yr,{className:`${nr}-extra`,ref:Jn}),Ct):null,Vr=Yn||mr?fe.createElement("div",{className:`${nr}-additional`,style:Pn?{minHeight:Pn+ur}:{}},Yn,mr):null,Yr=bt&&bt.mark==="pro_table_render"&&bt.render?bt.render(Fe,{input:Cr,errorList:Yn,extra:mr}):fe.createElement(fe.Fragment,null,Cr,Vr);return fe.createElement(b.q3.Provider,{value:_n},fe.createElement(nn.Z,Object.assign({},fr,{className:Qn}),Yr),fe.createElement(He,{prefixCls:lt}))},dt=ee(61485),wt=ee(9017),Kt=ee(85981),sn=ee(25399),bn=function(Fe,lt){var ze={};for(var xt in Fe)Object.prototype.hasOwnProperty.call(Fe,xt)&<.indexOf(xt)<0&&(ze[xt]=Fe[xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,xt=Object.getOwnPropertySymbols(Fe);Ee<xt.length;Ee++)lt.indexOf(xt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Fe,xt[Ee])&&(ze[xt[Ee]]=Fe[xt[Ee]]);return ze};function An(Fe){return Fe?typeof Fe=="object"&&!fe.isValidElement(Fe)?Fe:{title:Fe}:null}var pn=Fe=>{let{prefixCls:lt,label:ze,htmlFor:xt,labelCol:Ee,labelAlign:It,colon:kt,required:Vt,requiredMark:bt,tooltip:Ct,vertical:Et}=Fe;var $t;const[Pn]=(0,wt.Z)("Form"),{labelAlign:wn,labelCol:Dn,labelWrap:nr,colon:sr}=fe.useContext(b.q3);if(!ze)return null;const fr=Ee||Dn||{},Qn=It||wn,_n=`${lt}-item-label`,Jn=Oe()(_n,Qn==="left"&&`${_n}-left`,fr.className,{[`${_n}-wrap`]:!!nr});let ur=ze;const Er=kt===!0||sr!==!1&&kt!==!1;Er&&!Et&&typeof ze=="string"&&ze.trim()&&(ur=ze.replace(/[:|:]\s*$/,""));const wr=An(Ct);if(wr){const{icon:Ur=fe.createElement(dt.Z,null)}=wr,Gr=bn(wr,["icon"]),oi=fe.createElement(sn.Z,Object.assign({},Gr),fe.cloneElement(Ur,{className:`${lt}-item-tooltip`,title:"",onClick:Zr=>{Zr.preventDefault()},tabIndex:null}));ur=fe.createElement(fe.Fragment,null,ur,oi)}const Yn=bt==="optional",yr=typeof bt=="function",mr=bt===!1;yr?ur=bt(ur,{required:!!Vt}):Yn&&!Vt&&(ur=fe.createElement(fe.Fragment,null,ur,fe.createElement("span",{className:`${lt}-item-optional`,title:""},(Pn==null?void 0:Pn.optional)||(($t=Kt.Z.Form)===null||$t===void 0?void 0:$t.optional))));let Vr;mr?Vr="hidden":(Yn||yr)&&(Vr="optional");const Yr=Oe()({[`${lt}-item-required`]:Vt,[`${lt}-item-required-mark-${Vr}`]:Vr,[`${lt}-item-no-colon`]:!Er});return fe.createElement(nn.Z,Object.assign({},fr,{className:Jn}),fe.createElement("label",{htmlFor:xt,className:Yr,title:typeof ze=="string"?ze:""},ur))},Tn=ee(29679),un=ee(19248),Sn=ee(96512),Mn=ee(58617);const Rn={success:Tn.Z,warning:Sn.Z,error:un.Z,validating:Mn.Z};function vn(Fe){let{children:lt,errors:ze,warnings:xt,hasFeedback:Ee,validateStatus:It,prefixCls:kt,meta:Vt,noStyle:bt}=Fe;const Ct=`${kt}-item`,{feedbackIcons:Et}=fe.useContext(b.q3),$t=rt(ze,xt,Vt,null,!!Ee,It),{isFormItemInput:Pn,status:wn,hasFeedback:Dn,feedbackIcon:nr}=fe.useContext(b.aM),sr=fe.useMemo(()=>{var fr;let Qn;if(Ee){const Jn=Ee!==!0&&Ee.icons||Et,ur=$t&&((fr=Jn==null?void 0:Jn({status:$t,errors:ze,warnings:xt}))===null||fr===void 0?void 0:fr[$t]),Er=$t&&Rn[$t];Qn=ur!==!1&&Er?fe.createElement("span",{className:Oe()(`${Ct}-feedback-icon`,`${Ct}-feedback-icon-${$t}`)},ur||fe.createElement(Er,null)):null}const _n={status:$t||"",errors:ze,warnings:xt,hasFeedback:!!Ee,feedbackIcon:Qn,isFormItemInput:!0};return bt&&(_n.status=($t!=null?$t:wn)||"",_n.isFormItemInput=Pn,_n.hasFeedback=!!(Ee!=null?Ee:Dn),_n.feedbackIcon=Ee!==void 0?_n.feedbackIcon:nr),_n},[$t,Ee,bt,Pn,wn]);return fe.createElement(b.aM.Provider,{value:sr},lt)}var tn=function(Fe,lt){var ze={};for(var xt in Fe)Object.prototype.hasOwnProperty.call(Fe,xt)&<.indexOf(xt)<0&&(ze[xt]=Fe[xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,xt=Object.getOwnPropertySymbols(Fe);Ee<xt.length;Ee++)lt.indexOf(xt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Fe,xt[Ee])&&(ze[xt[Ee]]=Fe[xt[Ee]]);return ze};function en(Fe){const{prefixCls:lt,className:ze,rootClassName:xt,style:Ee,help:It,errors:kt,warnings:Vt,validateStatus:bt,meta:Ct,hasFeedback:Et,hidden:$t,children:Pn,fieldId:wn,required:Dn,isRequired:nr,onSubItemMetaChange:sr,layout:fr}=Fe,Qn=tn(Fe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),_n=`${lt}-item`,{requiredMark:Jn,vertical:ur}=fe.useContext(b.q3),Er=ur||fr==="vertical",Cr=fe.useRef(null),wr=Ce(kt),Yn=Ce(Vt),yr=It!=null,mr=!!(yr||kt.length||Vt.length),Vr=!!Cr.current&&(0,Zt.Z)(Cr.current),[Yr,Ur]=fe.useState(null);(0,Ht.Z)(()=>{if(mr&&Cr.current){const Or=getComputedStyle(Cr.current);Ur(parseInt(Or.marginBottom,10))}},[mr,Vr]);const Gr=Or=>{Or||Ur(null)},Zr=function(){let Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ti=Or?wr:Ct.errors,ci=Or?Yn:Ct.warnings;return rt(ti,ci,Ct,"",!!Et,bt)}(),Jr=Oe()(_n,ze,xt,{[`${_n}-with-help`]:yr||wr.length||Yn.length,[`${_n}-has-feedback`]:Zr&&Et,[`${_n}-has-success`]:Zr==="success",[`${_n}-has-warning`]:Zr==="warning",[`${_n}-has-error`]:Zr==="error",[`${_n}-is-validating`]:Zr==="validating",[`${_n}-hidden`]:$t,[`${_n}-${fr}`]:fr});return fe.createElement("div",{className:Jr,style:Ee,ref:Cr},fe.createElement(Yt.Z,Object.assign({className:`${_n}-row`},(0,rn.Z)(Qn,["_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"])),fe.createElement(pn,Object.assign({htmlFor:wn},Fe,{requiredMark:Jn,required:Dn!=null?Dn:nr,prefixCls:lt,vertical:Er})),fe.createElement(Ne,Object.assign({},Fe,Ct,{errors:wr,warnings:Yn,prefixCls:lt,status:Zr,help:It,marginBottom:Yr,onErrorVisibleChanged:Gr}),fe.createElement(b.qI.Provider,{value:sr},fe.createElement(vn,{prefixCls:lt,meta:Ct,errors:Ct.errors,warnings:Ct.warnings,hasFeedback:Et,validateStatus:Zr},Pn)))),!!Yr&&fe.createElement("div",{className:`${_n}-margin-offset`,style:{marginBottom:-Yr}}))}const cn="__SPLIT__",En=null;function $n(Fe,lt){const ze=Object.keys(Fe),xt=Object.keys(lt);return ze.length===xt.length&&ze.every(Ee=>{const It=Fe[Ee],kt=lt[Ee];return It===kt||typeof It=="function"||typeof kt=="function"})}const Zn=fe.memo(Fe=>{let{children:lt}=Fe;return lt},(Fe,lt)=>$n(Fe.control,lt.control)&&Fe.update===lt.update&&Fe.childProps.length===lt.childProps.length&&Fe.childProps.every((ze,xt)=>ze===lt.childProps[xt]));function Nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Fn(Fe){const{name:lt,noStyle:ze,className:xt,dependencies:Ee,prefixCls:It,shouldUpdate:kt,rules:Vt,children:bt,required:Ct,label:Et,messageVariables:$t,trigger:Pn="onChange",validateTrigger:wn,hidden:Dn,help:nr,layout:sr}=Fe,{getPrefixCls:fr}=fe.useContext(Xt.E_),{name:Qn}=fe.useContext(b.q3),_n=Ae(bt),Jn=typeof _n=="function",ur=fe.useContext(b.qI),{validateTrigger:Er}=fe.useContext(Pt.FieldContext),Cr=wn!==void 0?wn:Er,wr=lt!=null,Yn=fr("form",It),yr=(0,Ze.Z)(Yn),[mr,Vr,Yr]=st(Yn,yr),Ur=(0,vt.ln)("Form.Item"),Gr=fe.useContext(Pt.ListContext),oi=fe.useRef(null),[Zr,Jr]=we({}),[Or,ti]=(0,re.Z)(()=>Nn()),ci=kr=>{const cr=Gr==null?void 0:Gr.getKey(kr.name);if(ti(kr.destroy?Nn():kr,!0),ze&&nr!==!1&&ur){let On=kr.name;if(kr.destroy)On=oi.current||On;else if(cr!==void 0){const[jn,Kn]=cr;On=[jn].concat((0,je.Z)(Kn)),oi.current=On}ur(kr,On)}},Fi=(kr,cr)=>{Jr(On=>{const jn=Object.assign({},On),kn=[].concat((0,je.Z)(kr.name.slice(0,-1)),(0,je.Z)(cr)).join(cn);return kr.destroy?delete jn[kn]:jn[kn]=kr,jn})},[vi,xi]=fe.useMemo(()=>{const kr=(0,je.Z)(Or.errors),cr=(0,je.Z)(Or.warnings);return Object.values(Zr).forEach(On=>{kr.push.apply(kr,(0,je.Z)(On.errors||[])),cr.push.apply(cr,(0,je.Z)(On.warnings||[]))}),[kr,cr]},[Zr,Or.errors,Or.warnings]),hi=Pe();function bi(kr,cr,On){return ze&&!Dn?fe.createElement(vn,{prefixCls:Yn,hasFeedback:Fe.hasFeedback,validateStatus:Fe.validateStatus,meta:Or,errors:vi,warnings:xi,noStyle:!0},kr):fe.createElement(en,Object.assign({key:"row"},Fe,{className:Oe()(xt,Yr,yr,Vr),prefixCls:Yn,fieldId:cr,isRequired:On,errors:vi,warnings:xi,meta:Or,onSubItemMetaChange:Fi,layout:sr}),kr)}if(!wr&&!Jn&&!Ee)return mr(bi(_n));let Rr={};return typeof Et=="string"?Rr.label=Et:lt&&(Rr.label=String(lt)),$t&&(Rr=Object.assign(Object.assign({},Rr),$t)),mr(fe.createElement(Pt.Field,Object.assign({},Fe,{messageVariables:Rr,trigger:Pn,validateTrigger:Cr,onMetaChange:ci}),(kr,cr,On)=>{const jn=et(lt).length&&cr?cr.name:[],Kn=_t(jn,Qn),kn=Ct!==void 0?Ct:!!(Vt!=null&&Vt.some(Hn=>{if(Hn&&typeof Hn=="object"&&Hn.required&&!Hn.warningOnly)return!0;if(typeof Hn=="function"){const Bn=Hn(On);return(Bn==null?void 0:Bn.required)&&!(Bn!=null&&Bn.warningOnly)}return!1})),lr=Object.assign({},kr);let br=null;if(Array.isArray(_n)&&wr)br=_n;else if(!(Jn&&(!(kt||Ee)||wr))){if(!(Ee&&!Jn&&!wr))if(fe.isValidElement(_n)){const Hn=Object.assign(Object.assign({},_n.props),lr);if(Hn.id||(Hn.id=Kn),nr||vi.length>0||xi.length>0||Fe.extra){const rr=[];(nr||vi.length>0)&&rr.push(`${Kn}_help`),Fe.extra&&rr.push(`${Kn}_extra`),Hn["aria-describedby"]=rr.join(" ")}vi.length>0&&(Hn["aria-invalid"]="true"),kn&&(Hn["aria-required"]="true"),(0,le.Yr)(_n)&&(Hn.ref=hi(jn,_n)),new Set([].concat((0,je.Z)(et(Pn)),(0,je.Z)(et(Cr)))).forEach(rr=>{Hn[rr]=function(){for(var Qr,Ei,pi,Bi,Ii,Pi=arguments.length,$i=new Array(Pi),Ni=0;Ni<Pi;Ni++)$i[Ni]=arguments[Ni];(pi=lr[rr])===null||pi===void 0||(Qr=pi).call.apply(Qr,[lr].concat($i)),(Ii=(Bi=_n.props)[rr])===null||Ii===void 0||(Ei=Ii).call.apply(Ei,[Bi].concat($i))}});const Xn=[Hn["aria-required"],Hn["aria-invalid"],Hn["aria-describedby"]];br=fe.createElement(Zn,{control:lr,update:_n,childProps:Xn},(0,ge.Tm)(_n,Hn))}else Jn&&(kt||Ee)&&!wr?br=_n(On):br=_n}return bi(br,Kn,kn)}))}const qn=Fn;qn.useStatus=_e;var er=qn,on=function(Fe,lt){var ze={};for(var xt in Fe)Object.prototype.hasOwnProperty.call(Fe,xt)&<.indexOf(xt)<0&&(ze[xt]=Fe[xt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,xt=Object.getOwnPropertySymbols(Fe);Ee<xt.length;Ee++)lt.indexOf(xt[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Fe,xt[Ee])&&(ze[xt[Ee]]=Fe[xt[Ee]]);return ze},Un=Fe=>{var{prefixCls:lt,children:ze}=Fe,xt=on(Fe,["prefixCls","children"]);const{getPrefixCls:Ee}=fe.useContext(Xt.E_),It=Ee("form",lt),kt=fe.useMemo(()=>({prefixCls:It,status:"error"}),[It]);return fe.createElement(Pt.List,Object.assign({},xt),(Vt,bt,Ct)=>fe.createElement(b.Rk.Provider,{value:kt},ze(Vt.map(Et=>Object.assign(Object.assign({},Et),{fieldKey:Et.key})),bt,{errors:Ct.errors,warnings:Ct.warnings})))};function Gn(){const{form:Fe}=fe.useContext(b.q3);return Fe}const ct=ce;ct.Item=er,ct.List=Un,ct.ErrorList=We,ct.useForm=Dt,ct.useFormInstance=Gn,ct.useWatch=Pt.useWatch,ct.Provider=b.RV,ct.create=()=>{};var yt=ct},4875:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Tt}});var b=ee(59301),je=ee(84105),fe=ee(87395),Ge=ee(92310),Oe=ee.n(Ge),ye=ee(54476),De=ee(20068),Ze=ee(76190),Ce=ee(42978),ue=ee(75931),tt=ee(67732),ke=ee(83652);function Lt(){return typeof BigInt=="function"}function at(Ne){return!Ne&&Ne!==0&&!Number.isNaN(Ne)||!String(Ne).trim()}function $e(Ne){var dt=Ne.trim(),wt=dt.startsWith("-");wt&&(dt=dt.slice(1)),dt=dt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),dt.startsWith(".")&&(dt="0".concat(dt));var Kt=dt||"0",sn=Kt.split("."),bn=sn[0]||"0",An=sn[1]||"0";bn==="0"&&An==="0"&&(wt=!1);var zn=wt?"-":"";return{negative:wt,negativeStr:zn,trimStr:Kt,integerStr:bn,decimalStr:An,fullStr:"".concat(zn).concat(Kt)}}function Me(Ne){var dt=String(Ne);return!Number.isNaN(Number(dt))&&dt.includes("e")}function Ie(Ne){var dt=String(Ne);if(Me(Ne)){var wt=Number(dt.slice(dt.indexOf("e-")+2)),Kt=dt.match(/\.(\d+)/);return Kt!=null&&Kt[1]&&(wt+=Kt[1].length),wt}return dt.includes(".")&&pt(dt)?dt.length-dt.indexOf(".")-1:0}function Xe(Ne){var dt=String(Ne);if(Me(Ne)){if(Ne>Number.MAX_SAFE_INTEGER)return String(Lt()?BigInt(Ne).toString():Number.MAX_SAFE_INTEGER);if(Ne<Number.MIN_SAFE_INTEGER)return String(Lt()?BigInt(Ne).toString():Number.MIN_SAFE_INTEGER);dt=Ne.toFixed(Ie(dt))}return $e(dt).fullStr}function pt(Ne){return typeof Ne=="number"?!Number.isNaN(Ne):Ne?/^\s*-?\d+(\.\d+)?\s*$/.test(Ne)||/^\s*-?\d+\.\s*$/.test(Ne)||/^\s*-?\.\d+\s*$/.test(Ne):!1}var Rt=function(){function Ne(dt){if((0,tt.Z)(this,Ne),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"negative",void 0),(0,De.Z)(this,"integer",void 0),(0,De.Z)(this,"decimal",void 0),(0,De.Z)(this,"decimalLen",void 0),(0,De.Z)(this,"empty",void 0),(0,De.Z)(this,"nan",void 0),at(dt)){this.empty=!0;return}if(this.origin=String(dt),dt==="-"||Number.isNaN(dt)){this.nan=!0;return}var wt=dt;if(Me(wt)&&(wt=Number(wt)),wt=typeof wt=="string"?wt:Xe(wt),pt(wt)){var Kt=$e(wt);this.negative=Kt.negative;var sn=Kt.trimStr.split(".");this.integer=BigInt(sn[0]);var bn=sn[1]||"0";this.decimal=BigInt(bn),this.decimalLen=bn.length}else this.nan=!0}return(0,ke.Z)(Ne,[{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(wt){var Kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(wt,"0"));return BigInt(Kt)}},{key:"negate",value:function(){var wt=new Ne(this.toString());return wt.negative=!wt.negative,wt}},{key:"cal",value:function(wt,Kt,sn){var bn=Math.max(this.getDecimalStr().length,wt.getDecimalStr().length),An=this.alignDecimal(bn),zn=wt.alignDecimal(bn),pn=Kt(An,zn).toString(),Tn=sn(bn),un=$e(pn),Sn=un.negativeStr,Mn=un.trimStr,Rn="".concat(Sn).concat(Mn.padStart(Tn+1,"0"));return new Ne("".concat(Rn.slice(0,-Tn),".").concat(Rn.slice(-Tn)))}},{key:"add",value:function(wt){if(this.isInvalidate())return new Ne(wt);var Kt=new Ne(wt);return Kt.isInvalidate()?this:this.cal(Kt,function(sn,bn){return sn+bn},function(sn){return sn})}},{key:"multi",value:function(wt){var Kt=new Ne(wt);return this.isInvalidate()||Kt.isInvalidate()?new Ne(NaN):this.cal(Kt,function(sn,bn){return sn*bn},function(sn){return sn*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(wt){return this.toString()===(wt==null?void 0:wt.toString())}},{key:"lessEquals",value:function(wt){return this.add(wt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return wt?this.isInvalidate()?"":$e("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ne}(),Ve=function(){function Ne(dt){if((0,tt.Z)(this,Ne),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"number",void 0),(0,De.Z)(this,"empty",void 0),at(dt)){this.empty=!0;return}this.origin=String(dt),this.number=Number(dt)}return(0,ke.Z)(Ne,[{key:"negate",value:function(){return new Ne(-this.toNumber())}},{key:"add",value:function(wt){if(this.isInvalidate())return new Ne(wt);var Kt=Number(wt);if(Number.isNaN(Kt))return this;var sn=this.number+Kt;if(sn>Number.MAX_SAFE_INTEGER)return new Ne(Number.MAX_SAFE_INTEGER);if(sn<Number.MIN_SAFE_INTEGER)return new Ne(Number.MIN_SAFE_INTEGER);var bn=Math.max(Ie(this.number),Ie(Kt));return new Ne(sn.toFixed(bn))}},{key:"multi",value:function(wt){var Kt=Number(wt);if(this.isInvalidate()||Number.isNaN(Kt))return new Ne(NaN);var sn=this.number*Kt;if(sn>Number.MAX_SAFE_INTEGER)return new Ne(Number.MAX_SAFE_INTEGER);if(sn<Number.MIN_SAFE_INTEGER)return new Ne(Number.MIN_SAFE_INTEGER);var bn=Math.max(Ie(this.number),Ie(Kt));return new Ne(sn.toFixed(bn))}},{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(wt){return this.toNumber()===(wt==null?void 0:wt.toNumber())}},{key:"lessEquals",value:function(wt){return this.add(wt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return wt?this.isInvalidate()?"":Xe(this.number):this.origin}}]),Ne}();function Te(Ne){return Lt()?new Rt(Ne):new Ve(Ne)}function nt(Ne,dt,wt){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ne==="")return"";var sn=$e(Ne),bn=sn.negativeStr,An=sn.integerStr,zn=sn.decimalStr,pn="".concat(dt).concat(zn),Tn="".concat(bn).concat(An);if(wt>=0){var un=Number(zn[wt]);if(un>=5&&!Kt){var Sn=Te(Ne).add("".concat(bn,"0.").concat("0".repeat(wt)).concat(10-un));return nt(Sn.toString(),dt,wt,Kt)}return wt===0?Tn:"".concat(Tn).concat(dt).concat(zn.padEnd(wt,"0").slice(0,wt))}return pn===".0"?Tn:"".concat(Tn).concat(pn)}var Qe=Te,zt=ee(36901),St=ee(34280);function it(Ne,dt){return typeof Proxy!="undefined"&&Ne?new Proxy(Ne,{get:function(Kt,sn){if(dt[sn])return dt[sn];var bn=Kt[sn];return typeof bn=="function"?bn.bind(Kt):bn}}):Ne}var ut=ee(8654),Se=ee(48736);function st(Ne,dt){var wt=(0,b.useRef)(null);function Kt(){try{var bn=Ne.selectionStart,An=Ne.selectionEnd,zn=Ne.value,pn=zn.substring(0,bn),Tn=zn.substring(An);wt.current={start:bn,end:An,value:zn,beforeTxt:pn,afterTxt:Tn}}catch(un){}}function sn(){if(Ne&&wt.current&&dt)try{var bn=Ne.value,An=wt.current,zn=An.beforeTxt,pn=An.afterTxt,Tn=An.start,un=bn.length;if(bn.startsWith(zn))un=zn.length;else if(bn.endsWith(pn))un=bn.length-wt.current.afterTxt.length;else{var Sn=zn[Tn-1],Mn=bn.indexOf(Sn,Tn-1);Mn!==-1&&(un=Mn+1)}Ne.setSelectionRange(un,un)}catch(Rn){(0,Se.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Rn.message))}}return[Kt,sn]}var Je=ee(49658),de=function(){var dt=(0,b.useState)(!1),wt=(0,Ce.Z)(dt,2),Kt=wt[0],sn=wt[1];return(0,St.Z)(function(){sn((0,Je.Z)())},[]),Kt},Mt=de,We=ee(16089),Pt=200,Xt=600;function Be(Ne){var dt=Ne.prefixCls,wt=Ne.upNode,Kt=Ne.downNode,sn=Ne.upDisabled,bn=Ne.downDisabled,An=Ne.onStep,zn=b.useRef(),pn=b.useRef([]),Tn=b.useRef();Tn.current=An;var un=function(){clearTimeout(zn.current)},Sn=function($n,Zn){$n.preventDefault(),un(),Tn.current(Zn);function Nn(){Tn.current(Zn),zn.current=setTimeout(Nn,Pt)}zn.current=setTimeout(Nn,Xt)};b.useEffect(function(){return function(){un(),pn.current.forEach(function(En){return We.Z.cancel(En)})}},[]);var Mn=Mt();if(Mn)return null;var Rn="".concat(dt,"-handler"),vn=Oe()(Rn,"".concat(Rn,"-up"),(0,De.Z)({},"".concat(Rn,"-up-disabled"),sn)),tn=Oe()(Rn,"".concat(Rn,"-down"),(0,De.Z)({},"".concat(Rn,"-down-disabled"),bn)),en=function(){return pn.current.push((0,We.Z)(un))},cn={unselectable:"on",role:"button",onMouseUp:en,onMouseLeave:en};return b.createElement("div",{className:"".concat(Rn,"-wrap")},b.createElement("span",(0,ye.Z)({},cn,{onMouseDown:function($n){Sn($n,!0)},"aria-label":"Increase Value","aria-disabled":sn,className:vn}),wt||b.createElement("span",{unselectable:"on",className:"".concat(dt,"-handler-up-inner")})),b.createElement("span",(0,ye.Z)({},cn,{onMouseDown:function($n){Sn($n,!1)},"aria-label":"Decrease Value","aria-disabled":bn,className:tn}),Kt||b.createElement("span",{unselectable:"on",className:"".concat(dt,"-handler-down-inner")})))}function me(Ne){var dt=typeof Ne=="number"?Xe(Ne):$e(Ne).fullStr,wt=dt.includes(".");return wt?$e(dt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ne+"0"}var ht=ee(30292),Ut=function(){var Ne=(0,b.useRef)(0),dt=function(){We.Z.cancel(Ne.current)};return(0,b.useEffect)(function(){return dt},[]),function(wt){dt(),Ne.current=(0,We.Z)(function(){wt()})}},Bt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],be=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ye=function(dt,wt){return dt||wt.isEmpty()?wt.toString():wt.toNumber()},et=function(dt){var wt=Qe(dt);return wt.isInvalidate()?null:wt},_t=b.forwardRef(function(Ne,dt){var wt=Ne.prefixCls,Kt=Ne.className,sn=Ne.style,bn=Ne.min,An=Ne.max,zn=Ne.step,pn=zn===void 0?1:zn,Tn=Ne.defaultValue,un=Ne.value,Sn=Ne.disabled,Mn=Ne.readOnly,Rn=Ne.upHandler,vn=Ne.downHandler,tn=Ne.keyboard,en=Ne.changeOnWheel,cn=en===void 0?!1:en,En=Ne.controls,$n=En===void 0?!0:En,Zn=Ne.classNames,Nn=Ne.stringMode,Fn=Ne.parser,qn=Ne.formatter,er=Ne.precision,on=Ne.decimalSeparator,xn=Ne.onChange,Un=Ne.onInput,Gn=Ne.onPressEnter,ct=Ne.onStep,yt=Ne.changeOnBlur,Fe=yt===void 0?!0:yt,lt=Ne.domRef,ze=(0,ue.Z)(Ne,Bt),xt="".concat(wt,"-input"),Ee=b.useRef(null),It=b.useState(!1),kt=(0,Ce.Z)(It,2),Vt=kt[0],bt=kt[1],Ct=b.useRef(!1),Et=b.useRef(!1),$t=b.useRef(!1),Pn=b.useState(function(){return Qe(un!=null?un:Tn)}),wn=(0,Ce.Z)(Pn,2),Dn=wn[0],nr=wn[1];function sr(Kn){un===void 0&&nr(Kn)}var fr=b.useCallback(function(Kn,kn){if(!kn)return er>=0?er:Math.max(Ie(Kn),Ie(pn))},[er,pn]),Qn=b.useCallback(function(Kn){var kn=String(Kn);if(Fn)return Fn(kn);var lr=kn;return on&&(lr=lr.replace(on,".")),lr.replace(/[^\w.-]+/g,"")},[Fn,on]),_n=b.useRef(""),Jn=b.useCallback(function(Kn,kn){if(qn)return qn(Kn,{userTyping:kn,input:String(_n.current)});var lr=typeof Kn=="number"?Xe(Kn):Kn;if(!kn){var br=fr(lr,kn);if(pt(lr)&&(on||br>=0)){var Hn=on||".";lr=nt(lr,Hn,br)}}return lr},[qn,fr,on]),ur=b.useState(function(){var Kn=Tn!=null?Tn:un;return Dn.isInvalidate()&&["string","number"].includes((0,Ze.Z)(Kn))?Number.isNaN(Kn)?"":Kn:Jn(Dn.toString(),!1)}),Er=(0,Ce.Z)(ur,2),Cr=Er[0],wr=Er[1];_n.current=Cr;function Yn(Kn,kn){wr(Jn(Kn.isInvalidate()?Kn.toString(!1):Kn.toString(!kn),kn))}var yr=b.useMemo(function(){return et(An)},[An,er]),mr=b.useMemo(function(){return et(bn)},[bn,er]),Vr=b.useMemo(function(){return!yr||!Dn||Dn.isInvalidate()?!1:yr.lessEquals(Dn)},[yr,Dn]),Yr=b.useMemo(function(){return!mr||!Dn||Dn.isInvalidate()?!1:Dn.lessEquals(mr)},[mr,Dn]),Ur=st(Ee.current,Vt),Gr=(0,Ce.Z)(Ur,2),oi=Gr[0],Zr=Gr[1],Jr=function(kn){return yr&&!kn.lessEquals(yr)?yr:mr&&!mr.lessEquals(kn)?mr:null},Or=function(kn){return!Jr(kn)},ti=function(kn,lr){var br=kn,Hn=Or(br)||br.isEmpty();if(!br.isEmpty()&&!lr&&(br=Jr(br)||br,Hn=!0),!Mn&&!Sn&&Hn){var Bn=br.toString(),Xn=fr(Bn,lr);return Xn>=0&&(br=Qe(nt(Bn,".",Xn)),Or(br)||(br=Qe(nt(Bn,".",Xn,!0)))),br.equals(Dn)||(sr(br),xn==null||xn(br.isEmpty()?null:Ye(Nn,br)),un===void 0&&Yn(br,lr)),br}return Dn},ci=Ut(),Fi=function Kn(kn){if(oi(),_n.current=kn,wr(kn),!Et.current){var lr=Qn(kn),br=Qe(lr);br.isNaN()||ti(br,!0)}Un==null||Un(kn),ci(function(){var Hn=kn;Fn||(Hn=kn.replace(/。/g,".")),Hn!==kn&&Kn(Hn)})},vi=function(){Et.current=!0},xi=function(){Et.current=!1,Fi(Ee.current.value)},hi=function(kn){Fi(kn.target.value)},bi=function(kn){var lr;if(!(kn&&Vr||!kn&&Yr)){Ct.current=!1;var br=Qe($t.current?me(pn):pn);kn||(br=br.negate());var Hn=(Dn||Qe(0)).add(br.toString()),Bn=ti(Hn,!1);ct==null||ct(Ye(Nn,Bn),{offset:$t.current?me(pn):pn,type:kn?"up":"down"}),(lr=Ee.current)===null||lr===void 0||lr.focus()}},Rr=function(kn){var lr=Qe(Qn(Cr)),br;lr.isNaN()?br=ti(Dn,kn):br=ti(lr,kn),un!==void 0?Yn(Dn,!1):br.isNaN()||Yn(br,!1)},kr=function(){Ct.current=!0},cr=function(kn){var lr=kn.key,br=kn.shiftKey;Ct.current=!0,$t.current=br,lr==="Enter"&&(Et.current||(Ct.current=!1),Rr(!1),Gn==null||Gn(kn)),tn!==!1&&!Et.current&&["Up","ArrowUp","Down","ArrowDown"].includes(lr)&&(bi(lr==="Up"||lr==="ArrowUp"),kn.preventDefault())},On=function(){Ct.current=!1,$t.current=!1};b.useEffect(function(){if(cn&&Vt){var Kn=function(br){bi(br.deltaY<0),br.preventDefault()},kn=Ee.current;if(kn)return kn.addEventListener("wheel",Kn,{passive:!1}),function(){return kn.removeEventListener("wheel",Kn)}}});var jn=function(){Fe&&Rr(!1),bt(!1),Ct.current=!1};return(0,St.o)(function(){Dn.isInvalidate()||Yn(Dn,!1)},[er,qn]),(0,St.o)(function(){var Kn=Qe(un);nr(Kn);var kn=Qe(Qn(Cr));(!Kn.equals(kn)||!Ct.current||qn)&&Yn(Kn,Ct.current)},[un]),(0,St.o)(function(){qn&&Zr()},[Cr]),b.createElement("div",{ref:lt,className:Oe()(wt,Kt,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(wt,"-focused"),Vt),"".concat(wt,"-disabled"),Sn),"".concat(wt,"-readonly"),Mn),"".concat(wt,"-not-a-number"),Dn.isNaN()),"".concat(wt,"-out-of-range"),!Dn.isInvalidate()&&!Or(Dn))),style:sn,onFocus:function(){bt(!0)},onBlur:jn,onKeyDown:cr,onKeyUp:On,onCompositionStart:vi,onCompositionEnd:xi,onBeforeInput:kr},$n&&b.createElement(Be,{prefixCls:wt,upNode:Rn,downNode:vn,upDisabled:Vr,downDisabled:Yr,onStep:bi}),b.createElement("div",{className:"".concat(xt,"-wrap")},b.createElement("input",(0,ye.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":bn,"aria-valuemax":An,"aria-valuenow":Dn.isInvalidate()?null:Dn.toString(),step:pn},ze,{ref:(0,ut.sQ)(Ee,dt),className:xt,value:Cr,onChange:hi,disabled:Sn,readOnly:Mn}))))}),rt=b.forwardRef(function(Ne,dt){var wt=Ne.disabled,Kt=Ne.style,sn=Ne.prefixCls,bn=sn===void 0?"rc-input-number":sn,An=Ne.value,zn=Ne.prefix,pn=Ne.suffix,Tn=Ne.addonBefore,un=Ne.addonAfter,Sn=Ne.className,Mn=Ne.classNames,Rn=(0,ue.Z)(Ne,be),vn=b.useRef(null),tn=b.useRef(null),en=b.useRef(null),cn=function($n){en.current&&(0,ht.nH)(en.current,$n)};return b.useImperativeHandle(dt,function(){return it(en.current,{focus:cn,nativeElement:vn.current.nativeElement||tn.current})}),b.createElement(zt.BaseInput,{className:Sn,triggerFocus:cn,prefixCls:bn,value:An,disabled:wt,style:Kt,prefix:zn,suffix:pn,addonAfter:un,addonBefore:Tn,classNames:Mn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:vn},b.createElement(_t,(0,ye.Z)({prefixCls:bn,disabled:wt,ref:en,domRef:tn,className:Mn==null?void 0:Mn.input},Rn)))}),Ft=rt,qe=Ft,Jt=ee(62487),Dt=ee(82855),ae=ee(48755),ne=ee(60840),te=ee(2171),oe=ee(83397),ce=ee(31756),re=ee(56553),le=ee(24971),ge=ee(70045),vt=ee(36237),Re=ee(53075),Ae=ee(64910),Ke=ee(39082),_e=ee(63356),gt=ee(56119),we=ee(16931),Pe=ee(51636),Zt=ee(17835);const Ht=Ne=>{var dt;const wt=(dt=Ne.handleVisible)!==null&&dt!==void 0?dt:"auto",Kt=Ne.controlHeightSM-Ne.lineWidth*2;return Object.assign(Object.assign({},(0,Ae.T)(Ne)),{controlWidth:90,handleWidth:Kt,handleFontSize:Ne.fontSize/2,handleVisible:wt,handleActiveBg:Ne.colorFillAlter,handleBg:Ne.colorBgContainer,filledHandleBg:new Zt.FastColor(Ne.colorFillSecondary).onBackground(Ne.colorBgContainer).toHexString(),handleHoverColor:Ne.colorPrimary,handleBorderColor:Ne.colorBorder,handleOpacity:wt===!0?1:0,handleVisibleWidth:wt===!0?Kt:0})},rn=(Ne,dt)=>{let{componentCls:wt,borderRadiusSM:Kt,borderRadiusLG:sn}=Ne;const bn=dt==="lg"?sn:Kt;return{[`&-${dt}`]:{[`${wt}-handler-wrap`]:{borderStartEndRadius:bn,borderEndEndRadius:bn},[`${wt}-handler-up`]:{borderStartEndRadius:bn},[`${wt}-handler-down`]:{borderEndEndRadius:bn}}}},Yt=Ne=>{const{componentCls:dt,lineWidth:wt,lineType:Kt,borderRadius:sn,inputFontSizeSM:bn,inputFontSizeLG:An,controlHeightLG:zn,controlHeightSM:pn,colorError:Tn,paddingInlineSM:un,paddingBlockSM:Sn,paddingBlockLG:Mn,paddingInlineLG:Rn,colorTextDescription:vn,motionDurationMid:tn,handleHoverColor:en,handleOpacity:cn,paddingInline:En,paddingBlock:$n,handleBg:Zn,handleActiveBg:Nn,colorTextDisabled:Fn,borderRadiusSM:qn,borderRadiusLG:er,controlWidth:on,handleBorderColor:xn,filledHandleBg:Un,lineHeightLG:Gn,calc:ct}=Ne;return[{[dt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Ne)),(0,Re.ik)(Ne)),{display:"inline-block",width:on,margin:0,padding:0,borderRadius:sn}),(0,Ke.qG)(Ne,{[`${dt}-handler-wrap`]:{background:Zn,[`${dt}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(wt)} ${Kt} ${xn}`}}})),(0,Ke.H8)(Ne,{[`${dt}-handler-wrap`]:{background:Un,[`${dt}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(wt)} ${Kt} ${xn}`}},"&:focus-within":{[`${dt}-handler-wrap`]:{background:Zn}}})),(0,Ke.vc)(Ne,{[`${dt}-handler-wrap`]:{background:Zn,[`${dt}-handler-down`]:{borderBlockStart:`${(0,vt.unit)(wt)} ${Kt} ${xn}`}}})),(0,Ke.Mu)(Ne)),{"&-rtl":{direction:"rtl",[`${dt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:An,lineHeight:Gn,borderRadius:er,[`input${dt}-input`]:{height:ct(zn).sub(ct(wt).mul(2)).equal(),padding:`${(0,vt.unit)(Mn)} ${(0,vt.unit)(Rn)}`}},"&-sm":{padding:0,fontSize:bn,borderRadius:qn,[`input${dt}-input`]:{height:ct(pn).sub(ct(wt).mul(2)).equal(),padding:`${(0,vt.unit)(Sn)} ${(0,vt.unit)(un)}`}},"&-out-of-range":{[`${dt}-input-wrap`]:{input:{color:Tn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Ne)),(0,Re.s7)(Ne)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${dt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${dt}-group-addon`]:{borderRadius:er,fontSize:Ne.fontSizeLG}},"&-sm":{[`${dt}-group-addon`]:{borderRadius:qn}}},(0,Ke.ir)(Ne)),(0,Ke.S5)(Ne)),{[`&:not(${dt}-compact-first-item):not(${dt}-compact-last-item)${dt}-compact-item`]:{[`${dt}, ${dt}-group-addon`]:{borderRadius:0}},[`&:not(${dt}-compact-last-item)${dt}-compact-first-item`]:{[`${dt}, ${dt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${dt}-compact-first-item)${dt}-compact-last-item`]:{[`${dt}, ${dt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${dt}-input`]:{cursor:"not-allowed"},[dt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Ne)),{width:"100%",padding:`${(0,vt.unit)($n)} ${(0,vt.unit)(En)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:sn,outline:0,transition:`all ${tn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Re.nz)(Ne.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${dt}-handler-wrap, &-focused ${dt}-handler-wrap`]:{width:Ne.handleWidth,opacity:1}})},{[dt]:Object.assign(Object.assign(Object.assign({[`${dt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ne.handleVisibleWidth,opacity:cn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:sn,borderEndEndRadius:sn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${tn}`,overflow:"hidden",[`${dt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${dt}-handler-up-inner,
|
|
|
${dt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Ne.handleFontSize}}},[`${dt}-handler`]:{height:"50%",overflow:"hidden",color:vn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,vt.unit)(wt)} ${Kt} ${xn}`,transition:`all ${tn} linear`,"&:active":{background:Nn},"&:hover":{height:"60%",[`
|
|
|
${dt}-handler-up-inner,
|
|
|
${dt}-handler-down-inner
|
|
|
`]:{color:en}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,_e.Ro)()),{color:vn,transition:`all ${tn} linear`,userSelect:"none"})},[`${dt}-handler-up`]:{borderStartEndRadius:sn},[`${dt}-handler-down`]:{borderEndEndRadius:sn}},rn(Ne,"lg")),rn(Ne,"sm")),{"&-disabled, &-readonly":{[`${dt}-handler-wrap`]:{display:"none"},[`${dt}-input`]:{color:"inherit"}},[`
|
|
|
${dt}-handler-up-disabled,
|
|
|
${dt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${dt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${dt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Fn}})}]},Ot=Ne=>{const{componentCls:dt,paddingBlock:wt,paddingInline:Kt,inputAffixPadding:sn,controlWidth:bn,borderRadiusLG:An,borderRadiusSM:zn,paddingInlineLG:pn,paddingInlineSM:Tn,paddingBlockLG:un,paddingBlockSM:Sn,motionDurationMid:Mn}=Ne;return{[`${dt}-affix-wrapper`]:Object.assign(Object.assign({[`input${dt}-input`]:{padding:`${(0,vt.unit)(wt)} 0`}},(0,Re.ik)(Ne)),{position:"relative",display:"inline-flex",alignItems:"center",width:bn,padding:0,paddingInlineStart:Kt,"&-lg":{borderRadius:An,paddingInlineStart:pn,[`input${dt}-input`]:{padding:`${(0,vt.unit)(un)} 0`}},"&-sm":{borderRadius:zn,paddingInlineStart:Tn,[`input${dt}-input`]:{padding:`${(0,vt.unit)(Sn)} 0`}},[`&:not(${dt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${dt}-disabled`]:{background:"transparent"},[`> div${dt}`]:{width:"100%",border:"none",outline:"none",[`&${dt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${dt}-handler-wrap`]:{zIndex:2},[dt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:sn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Kt,marginInlineStart:sn,transition:`margin ${Mn}`}},[`&:hover ${dt}-handler-wrap, &-focused ${dt}-handler-wrap`]:{width:Ne.handleWidth,opacity:1},[`&:not(${dt}-affix-wrapper-without-controls):hover ${dt}-suffix`]:{marginInlineEnd:Ne.calc(Ne.handleWidth).add(Kt).equal()}})}};var nn=(0,we.I$)("InputNumber",Ne=>{const dt=(0,Pe.mergeToken)(Ne,(0,Ae.e)(Ne));return[Yt(dt),Ot(dt),(0,gt.c)(dt)]},Ht,{unitless:{handleOpacity:!0}}),Wt=function(Ne,dt){var wt={};for(var Kt in Ne)Object.prototype.hasOwnProperty.call(Ne,Kt)&&dt.indexOf(Kt)<0&&(wt[Kt]=Ne[Kt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sn=0,Kt=Object.getOwnPropertySymbols(Ne);sn<Kt.length;sn++)dt.indexOf(Kt[sn])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Kt[sn])&&(wt[Kt[sn]]=Ne[Kt[sn]]);return wt};const He=b.forwardRef((Ne,dt)=>{const{getPrefixCls:wt,direction:Kt}=b.useContext(ae.E_),sn=b.useRef(null);b.useImperativeHandle(dt,()=>sn.current);const{className:bn,rootClassName:An,size:zn,disabled:pn,prefixCls:Tn,addonBefore:un,addonAfter:Sn,prefix:Mn,suffix:Rn,bordered:vn,readOnly:tn,status:en,controls:cn,variant:En}=Ne,$n=Wt(Ne,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Zn=wt("input-number",Tn),Nn=(0,oe.Z)(Zn),[Fn,qn,er]=nn(Zn,Nn),{compactSize:on,compactItemClassnames:xn}=(0,ge.ri)(Zn,Kt);let Un=b.createElement(fe.Z,{className:`${Zn}-handler-up-inner`}),Gn=b.createElement(je.Z,{className:`${Zn}-handler-down-inner`});const ct=typeof cn=="boolean"?cn:void 0;typeof cn=="object"&&(Un=typeof cn.upIcon=="undefined"?Un:b.createElement("span",{className:`${Zn}-handler-up-inner`},cn.upIcon),Gn=typeof cn.downIcon=="undefined"?Gn:b.createElement("span",{className:`${Zn}-handler-down-inner`},cn.downIcon));const{hasFeedback:yt,status:Fe,isFormItemInput:lt,feedbackIcon:ze}=b.useContext(re.aM),xt=(0,Dt.F)(Fe,en),Ee=(0,ce.Z)(wn=>{var Dn;return(Dn=zn!=null?zn:on)!==null&&Dn!==void 0?Dn:wn}),It=b.useContext(te.Z),kt=pn!=null?pn:It,[Vt,bt]=(0,le.Z)("inputNumber",En,vn),Ct=yt&&b.createElement(b.Fragment,null,ze),Et=Oe()({[`${Zn}-lg`]:Ee==="large",[`${Zn}-sm`]:Ee==="small",[`${Zn}-rtl`]:Kt==="rtl",[`${Zn}-in-form-item`]:lt},qn),$t=`${Zn}-group`,Pn=b.createElement(qe,Object.assign({ref:sn,disabled:kt,className:Oe()(er,Nn,bn,An,xn),upHandler:Un,downHandler:Gn,prefixCls:Zn,readOnly:tn,controls:ct,prefix:Mn,suffix:Ct||Rn,addonBefore:un&&b.createElement(Jt.Z,{form:!0,space:!0},un),addonAfter:Sn&&b.createElement(Jt.Z,{form:!0,space:!0},Sn),classNames:{input:Et,variant:Oe()({[`${Zn}-${Vt}`]:bt},(0,Dt.Z)(Zn,xt,yt)),affixWrapper:Oe()({[`${Zn}-affix-wrapper-sm`]:Ee==="small",[`${Zn}-affix-wrapper-lg`]:Ee==="large",[`${Zn}-affix-wrapper-rtl`]:Kt==="rtl",[`${Zn}-affix-wrapper-without-controls`]:cn===!1||kt},qn),wrapper:Oe()({[`${$t}-rtl`]:Kt==="rtl"},qn),groupWrapper:Oe()({[`${Zn}-group-wrapper-sm`]:Ee==="small",[`${Zn}-group-wrapper-lg`]:Ee==="large",[`${Zn}-group-wrapper-rtl`]:Kt==="rtl",[`${Zn}-group-wrapper-${Vt}`]:bt},(0,Dt.Z)(`${Zn}-group-wrapper`,xt,yt),qn)}},$n));return Fn(Pn)}),mt=He,ot=Ne=>b.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(He,Object.assign({},Ne)));mt._InternalPanelDoNotUseOrYouWillBeFired=ot;var Tt=mt},49397:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ve}});var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(36901),Oe=ee(8654),ye=ee(62487),De=ee(86013),Ze=ee(82855),Ce=ee(48755),ue=ee(2171),tt=ee(83397),ke=ee(31756),Lt=ee(56553),at=ee(24971),$e=ee(70045),Me=ee(23826),Ie=ee(53075);function Xe(Te){return!!(Te.prefix||Te.suffix||Te.allowClear||Te.showCount)}var pt=function(Te,nt){var Qe={};for(var zt in Te)Object.prototype.hasOwnProperty.call(Te,zt)&&nt.indexOf(zt)<0&&(Qe[zt]=Te[zt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,zt=Object.getOwnPropertySymbols(Te);St<zt.length;St++)nt.indexOf(zt[St])<0&&Object.prototype.propertyIsEnumerable.call(Te,zt[St])&&(Qe[zt[St]]=Te[zt[St]]);return Qe},Ve=(0,b.forwardRef)((Te,nt)=>{const{prefixCls:Qe,bordered:zt=!0,status:St,size:it,disabled:ut,onBlur:Se,onFocus:st,suffix:Je,allowClear:de,addonAfter:Mt,addonBefore:We,className:Pt,style:Xt,styles:Be,rootClassName:me,onChange:ht,classNames:Ut,variant:Bt}=Te,be=pt(Te,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ye,direction:et,allowClear:_t,autoComplete:rt,className:Ft,style:qe,classNames:Jt,styles:Dt}=(0,Ce.dj)("input"),ae=Ye("input",Qe),ne=(0,b.useRef)(null),te=(0,tt.Z)(ae),[oe,ce,re]=(0,Ie.TI)(ae,me),[le]=(0,Ie.ZP)(ae,te),{compactSize:ge,compactItemClassnames:vt}=(0,$e.ri)(ae,et),Re=(0,ke.Z)(Tt=>{var Ne;return(Ne=it!=null?it:ge)!==null&&Ne!==void 0?Ne:Tt}),Ae=b.useContext(ue.Z),Ke=ut!=null?ut:Ae,{status:_e,hasFeedback:gt,feedbackIcon:we}=(0,b.useContext)(Lt.aM),Pe=(0,Ze.F)(_e,St),Zt=Xe(Te)||!!gt,Ht=(0,b.useRef)(Zt),rn=(0,Me.Z)(ne,!0),Yt=Tt=>{rn(),Se==null||Se(Tt)},Ot=Tt=>{rn(),st==null||st(Tt)},nn=Tt=>{rn(),ht==null||ht(Tt)},Wt=(gt||Je)&&b.createElement(b.Fragment,null,Je,gt&&we),He=(0,De.Z)(de!=null?de:_t),[mt,ot]=(0,at.Z)("input",Bt,zt);return oe(le(b.createElement(Ge.default,Object.assign({ref:(0,Oe.sQ)(nt,ne),prefixCls:ae,autoComplete:rt},be,{disabled:Ke,onBlur:Yt,onFocus:Ot,style:Object.assign(Object.assign({},qe),Xt),styles:Object.assign(Object.assign({},Dt),Be),suffix:Wt,allowClear:He,className:fe()(Pt,me,re,te,vt,Ft),onChange:nn,addonBefore:We&&b.createElement(ye.Z,{form:!0,space:!0},We),addonAfter:Mt&&b.createElement(ye.Z,{form:!0,space:!0},Mt),classNames:Object.assign(Object.assign(Object.assign({},Ut),Jt),{input:fe()({[`${ae}-sm`]:Re==="small",[`${ae}-lg`]:Re==="large",[`${ae}-rtl`]:et==="rtl"},Ut==null?void 0:Ut.input,Jt.input,ce),variant:fe()({[`${ae}-${mt}`]:ot},(0,Ze.Z)(ae,Pe)),affixWrapper:fe()({[`${ae}-affix-wrapper-sm`]:Re==="small",[`${ae}-affix-wrapper-lg`]:Re==="large",[`${ae}-affix-wrapper-rtl`]:et==="rtl"},ce),wrapper:fe()({[`${ae}-group-rtl`]:et==="rtl"},ce),groupWrapper:fe()({[`${ae}-group-wrapper-sm`]:Re==="small",[`${ae}-group-wrapper-lg`]:Re==="large",[`${ae}-group-wrapper-rtl`]:et==="rtl",[`${ae}-group-wrapper-${mt}`]:ot},(0,Ze.Z)(`${ae}-group-wrapper`,Pe,gt),ce)})}))))})},79809:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return nt}});var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(22711),Oe=ee(86013),ye=ee(82855),De=ee(48755),Ze=ee(2171),Ce=ee(83397),ue=ee(31756),tt=ee(56553),ke=ee(24971),Lt=ee(70045),at=ee(30292),$e=ee(53075),Me=ee(16931),Ie=ee(51636),Xe=ee(64910);const pt=Qe=>{const{componentCls:zt,paddingLG:St}=Qe,it=`${zt}-textarea`;return{[`textarea${zt}`]:{maxWidth:"100%",height:"auto",minHeight:Qe.controlHeight,lineHeight:Qe.lineHeight,verticalAlign:"bottom",transition:`all ${Qe.motionDurationSlow}`,resize:"vertical",[`&${zt}-mouse-active`]:{transition:`all ${Qe.motionDurationSlow}, height 0s, width 0s`}},[`${zt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[it]:{position:"relative","&-show-count":{[`> ${zt}`]:{height:"100%"},[`${zt}-data-count`]:{position:"absolute",bottom:Qe.calc(Qe.fontSize).mul(Qe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Qe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${zt},
|
|
|
&-affix-wrapper${it}-has-feedback ${zt}
|
|
|
`]:{paddingInlineEnd:St},[`&-affix-wrapper${zt}-affix-wrapper`]:{padding:0,[`> textarea${zt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Qe.calc(Qe.controlHeight).sub(Qe.calc(Qe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${zt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${zt}-clear-icon`]:{position:"absolute",insetInlineEnd:Qe.paddingInline,insetBlockStart:Qe.paddingXS},[`${it}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Qe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${zt}-affix-wrapper-sm`]:{[`${zt}-suffix`]:{[`${zt}-clear-icon`]:{insetInlineEnd:Qe.paddingInlineSM}}}}}};var Rt=(0,Me.I$)(["Input","TextArea"],Qe=>{const zt=(0,Ie.mergeToken)(Qe,(0,Xe.e)(Qe));return[pt(zt)]},Xe.T,{resetFont:!1}),Ve=function(Qe,zt){var St={};for(var it in Qe)Object.prototype.hasOwnProperty.call(Qe,it)&&zt.indexOf(it)<0&&(St[it]=Qe[it]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,it=Object.getOwnPropertySymbols(Qe);ut<it.length;ut++)zt.indexOf(it[ut])<0&&Object.prototype.propertyIsEnumerable.call(Qe,it[ut])&&(St[it[ut]]=Qe[it[ut]]);return St},nt=(0,b.forwardRef)((Qe,zt)=>{var St;const{prefixCls:it,bordered:ut=!0,size:Se,disabled:st,status:Je,allowClear:de,classNames:Mt,rootClassName:We,className:Pt,style:Xt,styles:Be,variant:me,showCount:ht,onMouseDown:Ut,onResize:Bt}=Qe,be=Ve(Qe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ye,direction:et,allowClear:_t,autoComplete:rt,className:Ft,style:qe,classNames:Jt,styles:Dt}=(0,De.dj)("textArea"),ae=b.useContext(Ze.Z),ne=st!=null?st:ae,{status:te,hasFeedback:oe,feedbackIcon:ce}=b.useContext(tt.aM),re=(0,ye.F)(te,Je),le=b.useRef(null);b.useImperativeHandle(zt,()=>{var ot;return{resizableTextArea:(ot=le.current)===null||ot===void 0?void 0:ot.resizableTextArea,focus:Tt=>{var Ne,dt;(0,at.nH)((dt=(Ne=le.current)===null||Ne===void 0?void 0:Ne.resizableTextArea)===null||dt===void 0?void 0:dt.textArea,Tt)},blur:()=>{var Tt;return(Tt=le.current)===null||Tt===void 0?void 0:Tt.blur()}}});const ge=Ye("input",it),vt=(0,Ce.Z)(ge),[Re,Ae,Ke]=(0,$e.TI)(ge,We),[_e]=Rt(ge,vt),{compactSize:gt,compactItemClassnames:we}=(0,Lt.ri)(ge,et),Pe=(0,ue.Z)(ot=>{var Tt;return(Tt=Se!=null?Se:gt)!==null&&Tt!==void 0?Tt:ot}),[Zt,Ht]=(0,ke.Z)("textArea",me,ut),rn=(0,Oe.Z)(de!=null?de:_t),[Yt,Ot]=b.useState(!1),[nn,Wt]=b.useState(!1),He=ot=>{Ot(!0),Ut==null||Ut(ot);const Tt=()=>{Ot(!1),document.removeEventListener("mouseup",Tt)};document.addEventListener("mouseup",Tt)},mt=ot=>{var Tt,Ne;if(Bt==null||Bt(ot),Yt&&typeof getComputedStyle=="function"){const dt=(Ne=(Tt=le.current)===null||Tt===void 0?void 0:Tt.nativeElement)===null||Ne===void 0?void 0:Ne.querySelector("textarea");dt&&getComputedStyle(dt).resize==="both"&&Wt(!0)}};return Re(_e(b.createElement(Ge.default,Object.assign({autoComplete:rt},be,{style:Object.assign(Object.assign({},qe),Xt),styles:Object.assign(Object.assign({},Dt),Be),disabled:ne,allowClear:rn,className:fe()(Ke,vt,Pt,We,we,Ft,nn&&`${ge}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Mt),Jt),{textarea:fe()({[`${ge}-sm`]:Pe==="small",[`${ge}-lg`]:Pe==="large"},Ae,Mt==null?void 0:Mt.textarea,Jt.textarea,Yt&&`${ge}-mouse-active`),variant:fe()({[`${ge}-${Zt}`]:Ht},(0,ye.Z)(ge,re)),affixWrapper:fe()(`${ge}-textarea-affix-wrapper`,{[`${ge}-affix-wrapper-rtl`]:et==="rtl",[`${ge}-affix-wrapper-sm`]:Pe==="small",[`${ge}-affix-wrapper-lg`]:Pe==="large",[`${ge}-textarea-show-count`]:ht||((St=Qe.count)===null||St===void 0?void 0:St.show)},Ae)}),prefixCls:ge,suffix:oe&&b.createElement("span",{className:`${ge}-textarea-suffix`},ce),showCount:ht,ref:le,onResize:mt,onMouseDown:He}))))})},23826:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(59301);function je(fe,Ge){const Oe=(0,b.useRef)([]),ye=()=>{Oe.current.push(setTimeout(()=>{var De,Ze,Ce,ue;!((De=fe.current)===null||De===void 0)&&De.input&&((Ze=fe.current)===null||Ze===void 0?void 0:Ze.input.getAttribute("type"))==="password"&&(!((Ce=fe.current)===null||Ce===void 0)&&Ce.input.hasAttribute("value"))&&((ue=fe.current)===null||ue===void 0||ue.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(Ge&&ye(),()=>Oe.current.forEach(De=>{De&&clearTimeout(De)})),[]),ye}},37568:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Jt}});var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(48755),Oe=ee(56553),ye=ee(53075),Ze=Dt=>{const{getPrefixCls:ae,direction:ne}=(0,b.useContext)(Ge.E_),{prefixCls:te,className:oe}=Dt,ce=ae("input-group",te),re=ae("input"),[le,ge,vt]=(0,ye.ZP)(re),Re=fe()(ce,vt,{[`${ce}-lg`]:Dt.size==="large",[`${ce}-sm`]:Dt.size==="small",[`${ce}-compact`]:Dt.compact,[`${ce}-rtl`]:ne==="rtl"},ge,oe),Ae=(0,b.useContext)(Oe.aM),Ke=(0,b.useMemo)(()=>Object.assign(Object.assign({},Ae),{isFormItemInput:!1}),[Ae]);return le(b.createElement("span",{className:Re,style:Dt.style,onMouseEnter:Dt.onMouseEnter,onMouseLeave:Dt.onMouseLeave,onFocus:Dt.onFocus,onBlur:Dt.onBlur},b.createElement(Oe.aM.Provider,{value:Ke},Dt.children)))},Ce=ee(49397),ue=ee(94480),tt=ee(6089),ke=ee(26112),Lt=ee(82855),at=ee(31756),$e=ee(16931),Me=ee(51636),Ie=ee(64910);const Xe=Dt=>{const{componentCls:ae,paddingXS:ne}=Dt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:Dt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:Dt.calc(Dt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:Dt.paddingXS}}}};var pt=(0,$e.I$)(["Input","OTP"],Dt=>{const ae=(0,Me.mergeToken)(Dt,(0,Ie.e)(Dt));return[Xe(ae)]},Ie.T),Rt=ee(16089),Ve=function(Dt,ae){var ne={};for(var te in Dt)Object.prototype.hasOwnProperty.call(Dt,te)&&ae.indexOf(te)<0&&(ne[te]=Dt[te]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Dt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Dt,te[oe])&&(ne[te[oe]]=Dt[te[oe]]);return ne},nt=b.forwardRef((Dt,ae)=>{const{value:ne,onChange:te,onActiveChange:oe,index:ce,mask:re}=Dt,le=Ve(Dt,["value","onChange","onActiveChange","index","mask"]),ge=ne&&typeof re=="string"?re:ne,vt=gt=>{te(ce,gt.target.value)},Re=b.useRef(null);b.useImperativeHandle(ae,()=>Re.current);const Ae=()=>{(0,Rt.Z)(()=>{var gt;const we=(gt=Re.current)===null||gt===void 0?void 0:gt.input;document.activeElement===we&&we&&we.select()})},Ke=gt=>{const{key:we,ctrlKey:Pe,metaKey:Zt}=gt;we==="ArrowLeft"?oe(ce-1):we==="ArrowRight"?oe(ce+1):we==="z"&&(Pe||Zt)&>.preventDefault(),Ae()},_e=gt=>{gt.key==="Backspace"&&!ne&&oe(ce-1),Ae()};return b.createElement(Ce.Z,Object.assign({type:re===!0?"password":"text"},le,{ref:Re,value:ge,onInput:vt,onFocus:Ae,onKeyDown:Ke,onKeyUp:_e,onMouseDown:Ae,onMouseUp:Ae}))}),Qe=function(Dt,ae){var ne={};for(var te in Dt)Object.prototype.hasOwnProperty.call(Dt,te)&&ae.indexOf(te)<0&&(ne[te]=Dt[te]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Dt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Dt,te[oe])&&(ne[te[oe]]=Dt[te[oe]]);return ne};function zt(Dt){return(Dt||"").split("")}const St=Dt=>{const{index:ae,prefixCls:ne,separator:te}=Dt,oe=typeof te=="function"?te(ae):te;return oe?b.createElement("span",{className:`${ne}-separator`},oe):null};var ut=b.forwardRef((Dt,ae)=>{const{prefixCls:ne,length:te=6,size:oe,defaultValue:ce,value:re,onChange:le,formatter:ge,separator:vt,variant:Re,disabled:Ae,status:Ke,autoFocus:_e,mask:gt,type:we,onInput:Pe,inputMode:Zt}=Dt,Ht=Qe(Dt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:rn,direction:Yt}=b.useContext(Ge.E_),Ot=rn("otp",ne),nn=(0,ke.Z)(Ht,{aria:!0,data:!0,attr:!0}),[Wt,He,mt]=pt(Ot),ot=(0,at.Z)(Mn=>oe!=null?oe:Mn),Tt=b.useContext(Oe.aM),Ne=(0,Lt.F)(Tt.status,Ke),dt=b.useMemo(()=>Object.assign(Object.assign({},Tt),{status:Ne,hasFeedback:!1,feedbackIcon:null}),[Tt,Ne]),wt=b.useRef(null),Kt=b.useRef({});b.useImperativeHandle(ae,()=>({focus:()=>{var Mn;(Mn=Kt.current[0])===null||Mn===void 0||Mn.focus()},blur:()=>{var Mn;for(let Rn=0;Rn<te;Rn+=1)(Mn=Kt.current[Rn])===null||Mn===void 0||Mn.blur()},nativeElement:wt.current}));const sn=Mn=>ge?ge(Mn):Mn,[bn,An]=b.useState(()=>zt(sn(ce||"")));b.useEffect(()=>{re!==void 0&&An(zt(re))},[re]);const zn=(0,tt.Z)(Mn=>{An(Mn),Pe&&Pe(Mn),le&&Mn.length===te&&Mn.every(Rn=>Rn)&&Mn.some((Rn,vn)=>bn[vn]!==Rn)&&le(Mn.join(""))}),pn=(0,tt.Z)((Mn,Rn)=>{let vn=(0,ue.Z)(bn);for(let en=0;en<Mn;en+=1)vn[en]||(vn[en]="");Rn.length<=1?vn[Mn]=Rn:vn=vn.slice(0,Mn).concat(zt(Rn)),vn=vn.slice(0,te);for(let en=vn.length-1;en>=0&&!vn[en];en-=1)vn.pop();const tn=sn(vn.map(en=>en||" ").join(""));return vn=zt(tn).map((en,cn)=>en===" "&&!vn[cn]?vn[cn]:en),vn}),Tn=(Mn,Rn)=>{var vn;const tn=pn(Mn,Rn),en=Math.min(Mn+Rn.length,te-1);en!==Mn&&tn[Mn]!==void 0&&((vn=Kt.current[en])===null||vn===void 0||vn.focus()),zn(tn)},un=Mn=>{var Rn;(Rn=Kt.current[Mn])===null||Rn===void 0||Rn.focus()},Sn={variant:Re,disabled:Ae,status:Ne,mask:gt,type:we,inputMode:Zt};return Wt(b.createElement("div",Object.assign({},nn,{ref:wt,className:fe()(Ot,{[`${Ot}-sm`]:ot==="small",[`${Ot}-lg`]:ot==="large",[`${Ot}-rtl`]:Yt==="rtl"},mt,He)}),b.createElement(Oe.aM.Provider,{value:dt},Array.from({length:te}).map((Mn,Rn)=>{const vn=`otp-${Rn}`,tn=bn[Rn]||"";return b.createElement(b.Fragment,{key:vn},b.createElement(nt,Object.assign({ref:en=>{Kt.current[Rn]=en},index:Rn,size:ot,htmlSize:1,className:`${Ot}-input`,onChange:Tn,value:tn,onActiveChange:un,autoFocus:Rn===0&&_e},Sn)),Rn<te-1&&b.createElement(St,{separator:vt,index:Rn,prefixCls:Ot}))}))))}),Se=ee(73331),st=ee(15277),Je=ee(2738),de=ee(8654),Mt=ee(2171),We=ee(23826),Pt=function(Dt,ae){var ne={};for(var te in Dt)Object.prototype.hasOwnProperty.call(Dt,te)&&ae.indexOf(te)<0&&(ne[te]=Dt[te]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Dt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Dt,te[oe])&&(ne[te[oe]]=Dt[te[oe]]);return ne};const Xt=Dt=>Dt?b.createElement(st.Z,null):b.createElement(Se.Z,null),Be={click:"onClick",hover:"onMouseOver"};var ht=b.forwardRef((Dt,ae)=>{const{disabled:ne,action:te="click",visibilityToggle:oe=!0,iconRender:ce=Xt}=Dt,re=b.useContext(Mt.Z),le=ne!=null?ne:re,ge=typeof oe=="object"&&oe.visible!==void 0,[vt,Re]=(0,b.useState)(()=>ge?oe.visible:!1),Ae=(0,b.useRef)(null);b.useEffect(()=>{ge&&Re(oe.visible)},[ge,oe]);const Ke=(0,We.Z)(Ae),_e=()=>{var ot;if(le)return;vt&&Ke();const Tt=!vt;Re(Tt),typeof oe=="object"&&((ot=oe.onVisibleChange)===null||ot===void 0||ot.call(oe,Tt))},gt=ot=>{const Tt=Be[te]||"",Ne=ce(vt),dt={[Tt]:_e,className:`${ot}-icon`,key:"passwordIcon",onMouseDown:wt=>{wt.preventDefault()},onMouseUp:wt=>{wt.preventDefault()}};return b.cloneElement(b.isValidElement(Ne)?Ne:b.createElement("span",null,Ne),dt)},{className:we,prefixCls:Pe,inputPrefixCls:Zt,size:Ht}=Dt,rn=Pt(Dt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Yt}=b.useContext(Ge.E_),Ot=Yt("input",Zt),nn=Yt("input-password",Pe),Wt=oe&>(nn),He=fe()(nn,we,{[`${nn}-${Ht}`]:!!Ht}),mt=Object.assign(Object.assign({},(0,Je.Z)(rn,["suffix","iconRender","visibilityToggle"])),{type:vt?"text":"password",className:He,prefixCls:Ot,suffix:Wt});return Ht&&(mt.size=Ht),b.createElement(Ce.Z,Object.assign({ref:(0,de.sQ)(ae,Ae)},mt))}),Ut=ee(47472),Bt=ee(22703),be=ee(7939),Ye=ee(70045),et=function(Dt,ae){var ne={};for(var te in Dt)Object.prototype.hasOwnProperty.call(Dt,te)&&ae.indexOf(te)<0&&(ne[te]=Dt[te]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Dt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Dt,te[oe])&&(ne[te[oe]]=Dt[te[oe]]);return ne},rt=b.forwardRef((Dt,ae)=>{const{prefixCls:ne,inputPrefixCls:te,className:oe,size:ce,suffix:re,enterButton:le=!1,addonAfter:ge,loading:vt,disabled:Re,onSearch:Ae,onChange:Ke,onCompositionStart:_e,onCompositionEnd:gt}=Dt,we=et(Dt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Pe,direction:Zt}=b.useContext(Ge.E_),Ht=b.useRef(!1),rn=Pe("input-search",ne),Yt=Pe("input",te),{compactSize:Ot}=(0,Ye.ri)(rn,Zt),nn=(0,at.Z)(Tn=>{var un;return(un=ce!=null?ce:Ot)!==null&&un!==void 0?un:Tn}),Wt=b.useRef(null),He=Tn=>{Tn!=null&&Tn.target&&Tn.type==="click"&&Ae&&Ae(Tn.target.value,Tn,{source:"clear"}),Ke==null||Ke(Tn)},mt=Tn=>{var un;document.activeElement===((un=Wt.current)===null||un===void 0?void 0:un.input)&&Tn.preventDefault()},ot=Tn=>{var un,Sn;Ae&&Ae((Sn=(un=Wt.current)===null||un===void 0?void 0:un.input)===null||Sn===void 0?void 0:Sn.value,Tn,{source:"input"})},Tt=Tn=>{Ht.current||vt||ot(Tn)},Ne=typeof le=="boolean"?b.createElement(Ut.Z,null):null,dt=`${rn}-button`;let wt;const Kt=le||{},sn=Kt.type&&Kt.type.__ANT_BUTTON===!0;sn||Kt.type==="button"?wt=(0,Bt.Tm)(Kt,Object.assign({onMouseDown:mt,onClick:Tn=>{var un,Sn;(Sn=(un=Kt==null?void 0:Kt.props)===null||un===void 0?void 0:un.onClick)===null||Sn===void 0||Sn.call(un,Tn),ot(Tn)},key:"enterButton"},sn?{className:dt,size:nn}:{})):wt=b.createElement(be.ZP,{className:dt,type:le?"primary":void 0,size:nn,disabled:Re,key:"enterButton",onMouseDown:mt,onClick:ot,loading:vt,icon:Ne},le),ge&&(wt=[wt,(0,Bt.Tm)(ge,{key:"addonAfter"})]);const bn=fe()(rn,{[`${rn}-rtl`]:Zt==="rtl",[`${rn}-${nn}`]:!!nn,[`${rn}-with-button`]:!!le},oe),An=Object.assign(Object.assign({},we),{className:bn,prefixCls:Yt,type:"search"}),zn=Tn=>{Ht.current=!0,_e==null||_e(Tn)},pn=Tn=>{Ht.current=!1,gt==null||gt(Tn)};return b.createElement(Ce.Z,Object.assign({ref:(0,de.sQ)(Wt,ae),onPressEnter:Tt},An,{size:nn,onCompositionStart:zn,onCompositionEnd:pn,addonAfter:wt,suffix:re,onChange:He,disabled:Re}))}),Ft=ee(79809);const qe=Ce.Z;qe.Group=Ze,qe.Search=rt,qe.TextArea=Ft.Z,qe.Password=ht,qe.OTP=ut;var Jt=qe},24303:function(yn,Qt,ee){"use strict";ee.d(Qt,{D:function(){return Qe},Z:function(){return it}});var b=ee(59301),je=ee(54476),fe={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"},Ge=fe,Oe=ee(7657),ye=function(Se,st){return b.createElement(Oe.Z,(0,je.Z)({},Se,{ref:st,icon:Ge}))},De=b.forwardRef(ye),Ze=De,Ce=ee(33853),ue=ee(38819),tt=ee(92310),ke=ee.n(tt),Lt=ee(2738),at=ee(48755),$e=ee(6989),Me=ee(36237),Ie=ee(48923),Xe=ee(16931);const pt=ut=>{const{componentCls:Se,siderBg:st,motionDurationMid:Je,motionDurationSlow:de,antCls:Mt,triggerHeight:We,triggerColor:Pt,triggerBg:Xt,headerHeight:Be,zeroTriggerWidth:me,zeroTriggerHeight:ht,borderRadiusLG:Ut,lightSiderBg:Bt,lightTriggerColor:be,lightTriggerBg:Ye,bodyBg:et}=ut;return{[Se]:{position:"relative",minWidth:0,background:st,transition:`all ${Je}, background 0s`,"&-has-trigger":{paddingBottom:We},"&-right":{order:1},[`${Se}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Mt}-menu${Mt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Se}-children`]:{overflow:"hidden"},[`${Se}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:We,color:Pt,lineHeight:(0,Me.unit)(We),textAlign:"center",background:Xt,cursor:"pointer",transition:`all ${Je}`},[`${Se}-zero-width-trigger`]:{position:"absolute",top:Be,insetInlineEnd:ut.calc(me).mul(-1).equal(),zIndex:1,width:me,height:ht,color:Pt,fontSize:ut.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:st,borderRadius:`0 ${(0,Me.unit)(Ut)} ${(0,Me.unit)(Ut)} 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:ut.calc(me).mul(-1).equal(),borderRadius:`${(0,Me.unit)(Ut)} 0 0 ${(0,Me.unit)(Ut)}`}},"&-light":{background:Bt,[`${Se}-trigger`]:{color:be,background:Ye},[`${Se}-zero-width-trigger`]:{color:be,background:Ye,border:`1px solid ${et}`,borderInlineStart:0}}}}};var Rt=(0,Xe.I$)(["Layout","Sider"],ut=>[pt(ut)],Ie.eh,{deprecatedTokens:Ie.jn}),Ve=function(ut,Se){var st={};for(var Je in ut)Object.prototype.hasOwnProperty.call(ut,Je)&&Se.indexOf(Je)<0&&(st[Je]=ut[Je]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Je=Object.getOwnPropertySymbols(ut);de<Je.length;de++)Se.indexOf(Je[de])<0&&Object.prototype.propertyIsEnumerable.call(ut,Je[de])&&(st[Je[de]]=ut[Je[de]]);return st};const Te={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},nt=ut=>!Number.isNaN(Number.parseFloat(ut))&&isFinite(ut),Qe=b.createContext({}),zt=(()=>{let ut=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ut+=1,`${Se}${ut}`}})();var it=b.forwardRef((ut,Se)=>{const{prefixCls:st,className:Je,trigger:de,children:Mt,defaultCollapsed:We=!1,theme:Pt="dark",style:Xt={},collapsible:Be=!1,reverseArrow:me=!1,width:ht=200,collapsedWidth:Ut=80,zeroWidthTriggerStyle:Bt,breakpoint:be,onCollapse:Ye,onBreakpoint:et}=ut,_t=Ve(ut,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,b.useContext)($e.V),[Ft,qe]=(0,b.useState)("collapsed"in ut?ut.collapsed:We),[Jt,Dt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in ut&&qe(ut.collapsed)},[ut.collapsed]);const ae=(nn,Wt)=>{"collapsed"in ut||qe(nn),Ye==null||Ye(nn,Wt)},{getPrefixCls:ne,direction:te}=(0,b.useContext)(at.E_),oe=ne("layout-sider",st),[ce,re,le]=Rt(oe),ge=(0,b.useRef)(null);ge.current=nn=>{Dt(nn.matches),et==null||et(nn.matches),Ft!==nn.matches&&ae(nn.matches,"responsive")},(0,b.useEffect)(()=>{function nn(He){return ge.current(He)}let Wt;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&be&&be in Te){Wt=He(`screen and (max-width: ${Te[be]})`);try{Wt.addEventListener("change",nn)}catch(mt){Wt.addListener(nn)}nn(Wt)}}return()=>{try{Wt==null||Wt.removeEventListener("change",nn)}catch(He){Wt==null||Wt.removeListener(nn)}}},[be]),(0,b.useEffect)(()=>{const nn=zt("ant-sider-");return rt.addSider(nn),()=>rt.removeSider(nn)},[]);const vt=()=>{ae(!Ft,"clickTrigger")},Re=(0,Lt.Z)(_t,["collapsed"]),Ae=Ft?Ut:ht,Ke=nt(Ae)?`${Ae}px`:String(Ae),_e=parseFloat(String(Ut||0))===0?b.createElement("span",{onClick:vt,className:ke()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${me?"right":"left"}`),style:Bt},de||b.createElement(Ze,null)):null,gt=te==="rtl"==!me,Zt={expanded:gt?b.createElement(ue.Z,null):b.createElement(Ce.Z,null),collapsed:gt?b.createElement(Ce.Z,null):b.createElement(ue.Z,null)}[Ft?"collapsed":"expanded"],Ht=de!==null?_e||b.createElement("div",{className:`${oe}-trigger`,onClick:vt,style:{width:Ke}},de||Zt):null,rn=Object.assign(Object.assign({},Xt),{flex:`0 0 ${Ke}`,maxWidth:Ke,minWidth:Ke,width:Ke}),Yt=ke()(oe,`${oe}-${Pt}`,{[`${oe}-collapsed`]:!!Ft,[`${oe}-has-trigger`]:Be&&de!==null&&!_e,[`${oe}-below`]:!!Jt,[`${oe}-zero-width`]:parseFloat(Ke)===0},Je,re,le),Ot=b.useMemo(()=>({siderCollapsed:Ft}),[Ft]);return ce(b.createElement(Qe.Provider,{value:Ot},b.createElement("aside",Object.assign({className:Yt},Re,{style:rn,ref:Se}),b.createElement("div",{className:`${oe}-children`},Mt),Be||Jt&&_e?Ht:null)))})},6989:function(yn,Qt,ee){"use strict";ee.d(Qt,{V:function(){return je}});var b=ee(59301);const je=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(yn,Qt,ee){"use strict";ee.d(Qt,{eh:function(){return Ge},jn:function(){return Oe}});var b=ee(36237),je=ee(16931);const fe=ye=>{const{antCls:De,componentCls:Ze,colorText:Ce,footerBg:ue,headerHeight:tt,headerPadding:ke,headerColor:Lt,footerPadding:at,fontSize:$e,bodyBg:Me,headerBg:Ie}=ye;return{[Ze]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Me,"&, *":{boxSizing:"border-box"},[`&${Ze}-has-sider`]:{flexDirection:"row",[`> ${Ze}, > ${Ze}-content`]:{width:0}},[`${Ze}-header, &${Ze}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ze}-header`]:{height:tt,padding:ke,color:Lt,lineHeight:(0,b.unit)(tt),background:Ie,[`${De}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:at,color:Ce,fontSize:$e,background:ue},[`${Ze}-content`]:{flex:"auto",color:Ce,minHeight:0}}},Ge=ye=>{const{colorBgLayout:De,controlHeight:Ze,controlHeightLG:Ce,colorText:ue,controlHeightSM:tt,marginXXS:ke,colorTextLightSolid:Lt,colorBgContainer:at}=ye,$e=Ce*1.25;return{colorBgHeader:"#001529",colorBgBody:De,colorBgTrigger:"#002140",bodyBg:De,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${$e}px`,headerColor:ue,footerPadding:`${tt}px ${$e}px`,footerBg:De,siderBg:"#001529",triggerHeight:Ce+ke*2,triggerBg:"#002140",triggerColor:Lt,zeroTriggerWidth:Ce,zeroTriggerHeight:Ce,lightSiderBg:at,lightTriggerBg:at,lightTriggerColor:ue}},Oe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qt.ZP=(0,je.I$)("Layout",ye=>[fe(ye)],Ge,{deprecatedTokens:Oe})},78857:function(yn,Qt,ee){"use strict";ee.d(Qt,{J:function(){return ye}});var b=ee(59301),je=ee(8654),fe=ee(62487),Ge=function(De,Ze){var Ce={};for(var ue in De)Object.prototype.hasOwnProperty.call(De,ue)&&Ze.indexOf(ue)<0&&(Ce[ue]=De[ue]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ue=Object.getOwnPropertySymbols(De);tt<ue.length;tt++)Ze.indexOf(ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(De,ue[tt])&&(Ce[ue[tt]]=De[ue[tt]]);return Ce};const Oe=b.createContext(null),ye=b.forwardRef((De,Ze)=>{const{children:Ce}=De,ue=Ge(De,["children"]),tt=b.useContext(Oe),ke=b.useMemo(()=>Object.assign(Object.assign({},tt),ue),[tt,ue.prefixCls,ue.mode,ue.selectable,ue.rootClassName]),Lt=(0,je.t4)(Ce),at=(0,je.x1)(Ze,Lt?(0,je.C4)(Ce):null);return b.createElement(Oe.Provider,{value:ke},b.createElement(fe.Z,{space:!0},Lt?b.cloneElement(Ce,{ref:at}):Ce))});Qt.Z=Oe},93041:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ce}});var b=ee(59301),je=ee(28321),fe=ee(24303),Ge=ee(18785),Oe=ee(92310),ye=ee.n(Oe),De=ee(6089),Ze=ee(2738),Ce=ee(86641),ue=ee(22703),tt=ee(48755),ke=ee(83397),at=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$e=function(re,le){var ge={};for(var vt in re)Object.prototype.hasOwnProperty.call(re,vt)&&le.indexOf(vt)<0&&(ge[vt]=re[vt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,vt=Object.getOwnPropertySymbols(re);Re<vt.length;Re++)le.indexOf(vt[Re])<0&&Object.prototype.propertyIsEnumerable.call(re,vt[Re])&&(ge[vt[Re]]=re[vt[Re]]);return ge},Ie=re=>{const{prefixCls:le,className:ge,dashed:vt}=re,Re=$e(re,["prefixCls","className","dashed"]),{getPrefixCls:Ae}=b.useContext(tt.E_),Ke=Ae("menu",le),_e=ye()({[`${Ke}-item-divider-dashed`]:!!vt},ge);return b.createElement(je.iz,Object.assign({className:_e},Re))},Xe=ee(11592),pt=ee(25399),Ve=re=>{var le;const{className:ge,children:vt,icon:Re,title:Ae,danger:Ke,extra:_e}=re,{prefixCls:gt,firstLevel:we,direction:Pe,disableMenuItemTitleTooltip:Zt,inlineCollapsed:Ht}=b.useContext(at),rn=mt=>{const ot=vt==null?void 0:vt[0],Tt=b.createElement("span",{className:ye()(`${gt}-title-content`,{[`${gt}-title-content-with-extra`]:!!_e||_e===0})},vt);return(!Re||b.isValidElement(vt)&&vt.type==="span")&&vt&&mt&&we&&typeof ot=="string"?b.createElement("div",{className:`${gt}-inline-collapsed-noicon`},ot.charAt(0)):Tt},{siderCollapsed:Yt}=b.useContext(fe.D);let Ot=Ae;typeof Ae=="undefined"?Ot=we?vt:"":Ae===!1&&(Ot="");const nn={title:Ot};!Yt&&!Ht&&(nn.title=null,nn.open=!1);const Wt=(0,Xe.Z)(vt).length;let He=b.createElement(je.ck,Object.assign({},(0,Ze.Z)(re,["title","icon","danger"]),{className:ye()({[`${gt}-item-danger`]:Ke,[`${gt}-item-only-child`]:(Re?Wt+1:Wt)===1},ge),title:typeof Ae=="string"?Ae:void 0}),(0,ue.Tm)(Re,{className:ye()(b.isValidElement(Re)?(le=Re.props)===null||le===void 0?void 0:le.className:"",`${gt}-item-icon`)}),rn(Ht));return Zt||(He=b.createElement(pt.Z,Object.assign({},nn,{placement:Pe==="rtl"?"left":"right",classNames:{root:`${gt}-inline-collapsed-tooltip`}}),He)),He},Te=ee(78857),nt=ee(36237),Qe=ee(17835),zt=ee(63356),St=ee(34961),it=ee(46e3),ut=ee(34925),Se=ee(16931),st=ee(51636),de=re=>{const{componentCls:le,motionDurationSlow:ge,horizontalLineHeight:vt,colorSplit:Re,lineWidth:Ae,lineType:Ke,itemPaddingInline:_e}=re;return{[`${le}-horizontal`]:{lineHeight:vt,border:0,borderBottom:`${(0,nt.unit)(Ae)} ${Ke} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:_e},[`> ${le}-item:hover,
|
|
|
> ${le}-item-active,
|
|
|
> ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${ge}`,`background ${ge}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},We=re=>{let{componentCls:le,menuArrowOffset:ge,calc:vt}=re;return{[`${le}-rtl`]:{direction:"rtl"},[`${le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${le}-rtl${le}-vertical,
|
|
|
${le}-submenu-rtl ${le}-vertical`]:{[`${le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,nt.unit)(vt(ge).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,nt.unit)(ge)})`}}}}};const Pt=re=>Object.assign({},(0,zt.oN)(re));var Be=(re,le)=>{const{componentCls:ge,itemColor:vt,itemSelectedColor:Re,subMenuItemSelectedColor:Ae,groupTitleColor:Ke,itemBg:_e,subMenuItemBg:gt,itemSelectedBg:we,activeBarHeight:Pe,activeBarWidth:Zt,activeBarBorderWidth:Ht,motionDurationSlow:rn,motionEaseInOut:Yt,motionEaseOut:Ot,itemPaddingInline:nn,motionDurationMid:Wt,itemHoverColor:He,lineType:mt,colorSplit:ot,itemDisabledColor:Tt,dangerItemColor:Ne,dangerItemHoverColor:dt,dangerItemSelectedColor:wt,dangerItemActiveBg:Kt,dangerItemSelectedBg:sn,popupBg:bn,itemHoverBg:An,itemActiveBg:zn,menuSubMenuBg:pn,horizontalItemSelectedColor:Tn,horizontalItemSelectedBg:un,horizontalItemBorderRadius:Sn,horizontalItemHoverBg:Mn}=re;return{[`${ge}-${le}, ${ge}-${le} > ${ge}`]:{color:vt,background:_e,[`&${ge}-root:focus-visible`]:Object.assign({},Pt(re)),[`${ge}-item`]:{"&-group-title, &-extra":{color:Ke}},[`${ge}-submenu-selected > ${ge}-submenu-title`]:{color:Ae},[`${ge}-item, ${ge}-submenu-title`]:{color:vt,[`&:not(${ge}-item-disabled):focus-visible`]:Object.assign({},Pt(re))},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{color:`${Tt} !important`},[`${ge}-item:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{[`&:hover, > ${ge}-submenu-title:hover`]:{color:He}},[`&:not(${ge}-horizontal)`]:{[`${ge}-item:not(${ge}-item-selected)`]:{"&:hover":{backgroundColor:An},"&:active":{backgroundColor:zn}},[`${ge}-submenu-title`]:{"&:hover":{backgroundColor:An},"&:active":{backgroundColor:zn}}},[`${ge}-item-danger`]:{color:Ne,[`&${ge}-item:hover`]:{[`&:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{color:dt}},[`&${ge}-item:active`]:{background:Kt}},[`${ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ge}-item-selected`]:{color:Re,[`&${ge}-item-danger`]:{color:wt},"a, a:hover":{color:"inherit"}},[`& ${ge}-item-selected`]:{backgroundColor:we,[`&${ge}-item-danger`]:{backgroundColor:sn}},[`&${ge}-submenu > ${ge}`]:{backgroundColor:pn},[`&${ge}-popup > ${ge}`]:{backgroundColor:bn},[`&${ge}-submenu-popup > ${ge}`]:{backgroundColor:bn},[`&${ge}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${ge}-item, > ${ge}-submenu`]:{top:Ht,marginTop:re.calc(Ht).mul(-1).equal(),marginBottom:0,borderRadius:Sn,"&::after":{position:"absolute",insetInline:nn,bottom:0,borderBottom:`${(0,nt.unit)(Pe)} solid transparent`,transition:`border-color ${rn} ${Yt}`,content:'""'},"&:hover, &-active, &-open":{background:Mn,"&::after":{borderBottomWidth:Pe,borderBottomColor:Tn}},"&-selected":{color:Tn,backgroundColor:un,"&:hover":{backgroundColor:un},"&::after":{borderBottomWidth:Pe,borderBottomColor:Tn}}}}),[`&${ge}-root`]:{[`&${ge}-inline, &${ge}-vertical`]:{borderInlineEnd:`${(0,nt.unit)(Ht)} ${mt} ${ot}`}},[`&${ge}-inline`]:{[`${ge}-sub${ge}-inline`]:{background:gt},[`${ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,nt.unit)(Zt)} solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Wt} ${Ot}`,`opacity ${Wt} ${Ot}`].join(","),content:'""'},[`&${ge}-item-danger`]:{"&::after":{borderInlineEndColor:wt}}},[`${ge}-selected, ${ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Wt} ${Yt}`,`opacity ${Wt} ${Yt}`].join(",")}}}}}};const me=re=>{const{componentCls:le,itemHeight:ge,itemMarginInline:vt,padding:Re,menuArrowSize:Ae,marginXS:Ke,itemMarginBlock:_e,itemWidth:gt,itemPaddingInline:we}=re,Pe=re.calc(Ae).add(Re).add(Ke).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:ge,lineHeight:(0,nt.unit)(ge),paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:vt,marginBlock:_e,width:gt},[`> ${le}-item,
|
|
|
> ${le}-submenu > ${le}-submenu-title`]:{height:ge,lineHeight:(0,nt.unit)(ge)},[`${le}-item-group-list ${le}-submenu-title,
|
|
|
${le}-submenu-title`]:{paddingInlineEnd:Pe}}};var Ut=re=>{const{componentCls:le,iconCls:ge,itemHeight:vt,colorTextLightSolid:Re,dropdownWidth:Ae,controlHeightLG:Ke,motionEaseOut:_e,paddingXL:gt,itemMarginInline:we,fontSizeLG:Pe,motionDurationFast:Zt,motionDurationSlow:Ht,paddingXS:rn,boxShadowSecondary:Yt,collapsedWidth:Ot,collapsedIconSize:nn}=re,Wt={height:vt,lineHeight:(0,nt.unit)(vt),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},me(re))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},me(re)),{boxShadow:Yt})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:Ae,maxHeight:`calc(100vh - ${(0,nt.unit)(re.calc(Ke).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${le}-inline`]:{width:"100%",[`&${le}-root`]:{[`${le}-item, ${le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ht}`,`background ${Ht}`,`padding ${Zt} ${_e}`].join(","),[`> ${le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${le}-sub${le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${le}-submenu > ${le}-submenu-title`]:Wt,[`& ${le}-item-group-title`]:{paddingInlineStart:gt}},[`${le}-item`]:Wt}},{[`${le}-inline-collapsed`]:{width:Ot,[`&${le}-root`]:{[`${le}-item, ${le}-submenu ${le}-submenu-title`]:{[`> ${le}-inline-collapsed-noicon`]:{fontSize:Pe,textAlign:"center"}}},[`> ${le}-item,
|
|
|
> ${le}-item-group > ${le}-item-group-list > ${le}-item,
|
|
|
> ${le}-item-group > ${le}-item-group-list > ${le}-submenu > ${le}-submenu-title,
|
|
|
> ${le}-submenu > ${le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,nt.unit)(re.calc(nn).div(2).equal())} - ${(0,nt.unit)(we)})`,textOverflow:"clip",[`
|
|
|
${le}-submenu-arrow,
|
|
|
${le}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${le}-item-icon, ${ge}`]:{margin:0,fontSize:nn,lineHeight:(0,nt.unit)(vt),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${ge}`]:{display:"none"},"a, a:hover":{color:Re}},[`${le}-item-group-title`]:Object.assign(Object.assign({},zt.vS),{paddingInline:rn})}}]};const Bt=re=>{const{componentCls:le,motionDurationSlow:ge,motionDurationMid:vt,motionEaseInOut:Re,motionEaseOut:Ae,iconCls:Ke,iconSize:_e,iconMarginInlineEnd:gt}=re;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ge}`,`background ${ge}`,`padding calc(${ge} + 0.1s) ${Re}`].join(","),[`${le}-item-icon, ${Ke}`]:{minWidth:_e,fontSize:_e,transition:[`font-size ${vt} ${Ae}`,`margin ${ge} ${Re}`,`color ${ge}`].join(","),"+ span":{marginInlineStart:gt,opacity:1,transition:[`opacity ${ge} ${Re}`,`margin ${ge}`,`color ${ge}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,zt.Ro)()),[`&${le}-item-only-child`]:{[`> ${Ke}, > ${le}-item-icon`]:{marginInlineEnd:0}}},[`${le}-item-disabled, ${le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},be=re=>{const{componentCls:le,motionDurationSlow:ge,motionEaseInOut:vt,borderRadius:Re,menuArrowSize:Ae,menuArrowOffset:Ke}=re;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Ae,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ge} ${vt}, opacity ${ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Ae).mul(.6).equal(),height:re.calc(Ae).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${ge} ${vt}`,`transform ${ge} ${vt}`,`top ${ge} ${vt}`,`color ${ge} ${vt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,nt.unit)(re.calc(Ke).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,nt.unit)(Ke)})`}}}}},Ye=re=>{const{antCls:le,componentCls:ge,fontSize:vt,motionDurationSlow:Re,motionDurationMid:Ae,motionEaseInOut:Ke,paddingXS:_e,padding:gt,colorSplit:we,lineWidth:Pe,zIndexPopup:Zt,borderRadiusLG:Ht,subMenuItemBorderRadius:rn,menuArrowSize:Yt,menuArrowOffset:Ot,lineType:nn,groupTitleLineHeight:Wt,groupTitleFontSize:He}=re;return[{"":{[ge]:Object.assign(Object.assign({},(0,zt.dF)()),{"&-hidden":{display:"none"}})},[`${ge}-submenu-hidden`]:{display:"none"}},{[ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(re)),(0,zt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:vt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ge}-item`]:{flex:"none"}},[`${ge}-item, ${ge}-submenu, ${ge}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${ge}-item-group-title`]:{padding:`${(0,nt.unit)(_e)} ${(0,nt.unit)(gt)}`,fontSize:He,lineHeight:Wt,transition:`all ${Re}`},[`&-horizontal ${ge}-submenu`]:{transition:[`border-color ${Re} ${Ke}`,`background ${Re} ${Ke}`].join(",")},[`${ge}-submenu, ${ge}-submenu-inline`]:{transition:[`border-color ${Re} ${Ke}`,`background ${Re} ${Ke}`,`padding ${Ae} ${Ke}`].join(",")},[`${ge}-submenu ${ge}-sub`]:{cursor:"initial",transition:[`background ${Re} ${Ke}`,`padding ${Re} ${Ke}`].join(",")},[`${ge}-title-content`]:{transition:`color ${Re}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ge}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:nn,borderWidth:0,borderTopWidth:Pe,marginBlock:Pe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Bt(re)),{[`${ge}-item-group`]:{[`${ge}-item-group-list`]:{margin:0,padding:0,[`${ge}-item, ${ge}-submenu-title`]:{paddingInline:`${(0,nt.unit)(re.calc(vt).mul(2).equal())} ${(0,nt.unit)(gt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Zt,borderRadius:Ht,boxShadow:"none",transformOrigin:"0 0",[`&${ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ht},Bt(re)),be(re)),{[`${ge}-item, ${ge}-submenu > ${ge}-submenu-title`]:{borderRadius:rn},[`${ge}-submenu-title::after`]:{transition:`transform ${Re} ${Ke}`}})},"\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:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),be(re)),{[`&-inline-collapsed ${ge}-submenu-arrow,
|
|
|
&-inline ${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,nt.unit)(Ot)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,nt.unit)(re.calc(Ot).mul(-1).equal())})`}},[`${ge}-submenu-open${ge}-submenu-inline > ${ge}-submenu-title > ${ge}-submenu-arrow`]:{transform:`translateY(${(0,nt.unit)(re.calc(Yt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,nt.unit)(re.calc(Ot).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,nt.unit)(Ot)})`}}})},{[`${le}-layout-header`]:{[ge]:{lineHeight:"inherit"}}}]},et=re=>{var le,ge,vt;const{colorPrimary:Re,colorError:Ae,colorTextDisabled:Ke,colorErrorBg:_e,colorText:gt,colorTextDescription:we,colorBgContainer:Pe,colorFillAlter:Zt,colorFillContent:Ht,lineWidth:rn,lineWidthBold:Yt,controlItemBgActive:Ot,colorBgTextHover:nn,controlHeightLG:Wt,lineHeight:He,colorBgElevated:mt,marginXXS:ot,padding:Tt,fontSize:Ne,controlHeightSM:dt,fontSizeLG:wt,colorTextLightSolid:Kt,colorErrorHover:sn}=re,bn=(le=re.activeBarWidth)!==null&&le!==void 0?le:0,An=(ge=re.activeBarBorderWidth)!==null&&ge!==void 0?ge:rn,zn=(vt=re.itemMarginInline)!==null&&vt!==void 0?vt:re.marginXXS,pn=new Qe.FastColor(Kt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:gt,itemColor:gt,colorItemTextHover:gt,itemHoverColor:gt,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Re,itemSelectedColor:Re,subMenuItemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:Pe,itemBg:Pe,colorItemBgHover:nn,itemHoverBg:nn,colorItemBgActive:Ht,itemActiveBg:Ot,colorSubItemBg:Zt,subMenuItemBg:Zt,colorItemBgSelected:Ot,itemSelectedBg:Ot,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:bn,colorActiveBarHeight:Yt,activeBarHeight:Yt,colorActiveBarBorderSize:rn,activeBarBorderWidth:An,colorItemTextDisabled:Ke,itemDisabledColor:Ke,colorDangerItemText:Ae,dangerItemColor:Ae,colorDangerItemTextHover:Ae,dangerItemHoverColor:Ae,colorDangerItemTextSelected:Ae,dangerItemSelectedColor:Ae,colorDangerItemBgActive:_e,dangerItemActiveBg:_e,colorDangerItemBgSelected:_e,dangerItemSelectedBg:_e,itemMarginInline:zn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wt,groupTitleLineHeight:He,collapsedWidth:Wt*2,popupBg:mt,itemMarginBlock:ot,itemPaddingInline:Tt,horizontalLineHeight:`${Wt*1.15}px`,iconSize:Ne,iconMarginInlineEnd:dt-Ne,collapsedIconSize:wt,groupTitleFontSize:Ne,darkItemDisabledColor:new Qe.FastColor(Kt).setA(.25).toRgbString(),darkItemColor:pn,darkDangerItemColor:Ae,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kt,darkItemSelectedBg:Re,darkDangerItemSelectedBg:Ae,darkItemHoverBg:"transparent",darkGroupTitleColor:pn,darkItemHoverColor:Kt,darkDangerItemHoverColor:sn,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:Ae,itemWidth:bn?`calc(100% + ${An}px)`:`calc(100% - ${zn*2}px)`}};var _t=function(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Se.I$)("Menu",Re=>{const{colorBgElevated:Ae,controlHeightLG:Ke,fontSize:_e,darkItemColor:gt,darkDangerItemColor:we,darkItemBg:Pe,darkSubMenuItemBg:Zt,darkItemSelectedColor:Ht,darkItemSelectedBg:rn,darkDangerItemSelectedBg:Yt,darkItemHoverBg:Ot,darkGroupTitleColor:nn,darkItemHoverColor:Wt,darkItemDisabledColor:He,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:ot,darkDangerItemActiveBg:Tt,popupBg:Ne,darkPopupBg:dt}=Re,wt=Re.calc(_e).div(7).mul(5).equal(),Kt=(0,st.mergeToken)(Re,{menuArrowSize:wt,menuHorizontalHeight:Re.calc(Ke).mul(1.15).equal(),menuArrowOffset:Re.calc(wt).mul(.25).equal(),menuSubMenuBg:Ae,calc:Re.calc,popupBg:Ne}),sn=(0,st.mergeToken)(Kt,{itemColor:gt,itemHoverColor:Wt,groupTitleColor:nn,itemSelectedColor:Ht,subMenuItemSelectedColor:Ht,itemBg:Pe,popupBg:dt,subMenuItemBg:Zt,itemActiveBg:"transparent",itemSelectedBg:rn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ot,itemDisabledColor:He,dangerItemColor:we,dangerItemHoverColor:mt,dangerItemSelectedColor:ot,dangerItemActiveBg:Tt,dangerItemSelectedBg:Yt,menuSubMenuBg:Zt,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:rn});return[Ye(Kt),de(Kt),Ut(Kt),Be(Kt,"light"),Be(sn,"dark"),We(Kt),(0,St.Z)(Kt),(0,it.oN)(Kt,"slide-up"),(0,it.oN)(Kt,"slide-down"),(0,ut._y)(Kt,"zoom-big")]},et,{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:ge,unitless:{groupTitleLineHeight:!0}})(re,le)},rt=ee(75030),qe=re=>{var le;const{popupClassName:ge,icon:vt,title:Re,theme:Ae}=re,Ke=b.useContext(at),{prefixCls:_e,inlineCollapsed:gt,theme:we}=Ke,Pe=(0,je.Xl)();let Zt;if(!vt)Zt=gt&&!Pe.length&&Re&&typeof Re=="string"?b.createElement("div",{className:`${_e}-inline-collapsed-noicon`},Re.charAt(0)):b.createElement("span",{className:`${_e}-title-content`},Re);else{const Yt=b.isValidElement(Re)&&Re.type==="span";Zt=b.createElement(b.Fragment,null,(0,ue.Tm)(vt,{className:ye()(b.isValidElement(vt)?(le=vt.props)===null||le===void 0?void 0:le.className:"",`${_e}-item-icon`)}),Yt?Re:b.createElement("span",{className:`${_e}-title-content`},Re))}const Ht=b.useMemo(()=>Object.assign(Object.assign({},Ke),{firstLevel:!1}),[Ke]),[rn]=(0,rt.Cn)("Menu");return b.createElement(at.Provider,{value:Ht},b.createElement(je.Wd,Object.assign({},(0,Ze.Z)(re,["icon"]),{title:Zt,popupClassName:ye()(_e,ge,`${_e}-${Ae||we}`),popupStyle:Object.assign({zIndex:rn},re.popupStyle)})))},Jt=function(re,le){var ge={};for(var vt in re)Object.prototype.hasOwnProperty.call(re,vt)&&le.indexOf(vt)<0&&(ge[vt]=re[vt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,vt=Object.getOwnPropertySymbols(re);Re<vt.length;Re++)le.indexOf(vt[Re])<0&&Object.prototype.propertyIsEnumerable.call(re,vt[Re])&&(ge[vt[Re]]=re[vt[Re]]);return ge};function Dt(re){return re===null||re===!1}const ae={item:Ve,submenu:qe,divider:Ie};var te=(0,b.forwardRef)((re,le)=>{var ge;const vt=b.useContext(Te.Z),Re=vt||{},{getPrefixCls:Ae,getPopupContainer:Ke,direction:_e,menu:gt}=b.useContext(tt.E_),we=Ae(),{prefixCls:Pe,className:Zt,style:Ht,theme:rn="light",expandIcon:Yt,_internalDisableMenuItemTitleTooltip:Ot,inlineCollapsed:nn,siderCollapsed:Wt,rootClassName:He,mode:mt,selectable:ot,onClick:Tt,overflowedIndicatorPopupClassName:Ne}=re,dt=Jt(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),wt=(0,Ze.Z)(dt,["collapsedWidth"]);(ge=Re.validator)===null||ge===void 0||ge.call(Re,{mode:mt});const Kt=(0,De.Z)(function(){var en;Tt==null||Tt.apply(void 0,arguments),(en=Re.onClick)===null||en===void 0||en.call(Re)}),sn=Re.mode||mt,bn=ot!=null?ot:Re.selectable,An=nn!=null?nn:Wt,zn={horizontal:{motionName:`${we}-slide-up`},inline:(0,Ce.Z)(we),other:{motionName:`${we}-zoom-big`}},pn=Ae("menu",Pe||Re.prefixCls),Tn=(0,ke.Z)(pn),[un,Sn,Mn]=_t(pn,Tn,!vt),Rn=ye()(`${pn}-${rn}`,gt==null?void 0:gt.className,Zt),vn=b.useMemo(()=>{var en,cn;if(typeof Yt=="function"||Dt(Yt))return Yt||null;if(typeof Re.expandIcon=="function"||Dt(Re.expandIcon))return Re.expandIcon||null;if(typeof(gt==null?void 0:gt.expandIcon)=="function"||Dt(gt==null?void 0:gt.expandIcon))return(gt==null?void 0:gt.expandIcon)||null;const En=(en=Yt!=null?Yt:Re==null?void 0:Re.expandIcon)!==null&&en!==void 0?en:gt==null?void 0:gt.expandIcon;return(0,ue.Tm)(En,{className:ye()(`${pn}-submenu-expand-icon`,b.isValidElement(En)?(cn=En.props)===null||cn===void 0?void 0:cn.className:void 0)})},[Yt,Re==null?void 0:Re.expandIcon,gt==null?void 0:gt.expandIcon,pn]),tn=b.useMemo(()=>({prefixCls:pn,inlineCollapsed:An||!1,direction:_e,firstLevel:!0,theme:rn,mode:sn,disableMenuItemTitleTooltip:Ot}),[pn,An,_e,Ot,rn]);return un(b.createElement(Te.Z.Provider,{value:null},b.createElement(at.Provider,{value:tn},b.createElement(je.ZP,Object.assign({getPopupContainer:Ke,overflowedIndicator:b.createElement(Ge.Z,null),overflowedIndicatorPopupClassName:ye()(pn,`${pn}-${rn}`,Ne),mode:sn,selectable:bn,onClick:Kt},wt,{inlineCollapsed:An,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Ht),className:Rn,prefixCls:pn,direction:_e,defaultMotions:zn,expandIcon:vn,ref:le,rootClassName:ye()(He,Sn,Re.rootClassName,Mn,Tn),_internalComponents:ae})))))});const oe=(0,b.forwardRef)((re,le)=>{const ge=(0,b.useRef)(null),vt=b.useContext(fe.D);return(0,b.useImperativeHandle)(le,()=>({menu:ge.current,focus:Re=>{var Ae;(Ae=ge.current)===null||Ae===void 0||Ae.focus(Re)}})),b.createElement(te,Object.assign({ref:ge},re,vt))});oe.Item=Ve,oe.SubMenu=qe,oe.Divider=Ie,oe.ItemGroup=je.BW;var ce=oe},31709:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return gt}});var b=ee(59301),je=ee(54476),fe={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"},Ge=fe,Oe=ee(7657),ye=function(Pe,Zt){return b.createElement(Oe.Z,(0,je.Z)({},Pe,{ref:Zt,icon:Ge}))},De=b.forwardRef(ye),Ze=De,Ce=ee(49198),ue=ee(33853),tt=ee(38819),ke=ee(92310),Lt=ee.n(ke),at=ee(20068),$e=ee(76190),Me=ee(33885),Ie=ee(42978),Xe=ee(18929),pt=ee(10228),Rt=ee(26112),Ve=ee(48736),Te=ee(17119),nt=[10,20,50,100],Qe=function(Pe){var Zt=Pe.pageSizeOptions,Ht=Zt===void 0?nt:Zt,rn=Pe.locale,Yt=Pe.changeSize,Ot=Pe.pageSize,nn=Pe.goButton,Wt=Pe.quickGo,He=Pe.rootPrefixCls,mt=Pe.disabled,ot=Pe.buildOptionText,Tt=Pe.showSizeChanger,Ne=Pe.sizeChangerRender,dt=b.useState(""),wt=(0,Ie.Z)(dt,2),Kt=wt[0],sn=wt[1],bn=function(){return!Kt||Number.isNaN(Kt)?void 0:Number(Kt)},An=typeof ot=="function"?ot:function(tn){return"".concat(tn," ").concat(rn.items_per_page)},zn=function(en){sn(en.target.value)},pn=function(en){nn||Kt===""||(sn(""),!(en.relatedTarget&&(en.relatedTarget.className.indexOf("".concat(He,"-item-link"))>=0||en.relatedTarget.className.indexOf("".concat(He,"-item"))>=0))&&(Wt==null||Wt(bn())))},Tn=function(en){Kt!==""&&(en.keyCode===pt.Z.ENTER||en.type==="click")&&(sn(""),Wt==null||Wt(bn()))},un=function(){return Ht.some(function(en){return en.toString()===Ot.toString()})?Ht:Ht.concat([Ot]).sort(function(en,cn){var En=Number.isNaN(Number(en))?0:Number(en),$n=Number.isNaN(Number(cn))?0:Number(cn);return En-$n})},Sn="".concat(He,"-options");if(!Tt&&!Wt)return null;var Mn=null,Rn=null,vn=null;return Tt&&Ne&&(Mn=Ne({disabled:mt,size:Ot,onSizeChange:function(en){Yt==null||Yt(Number(en))},"aria-label":rn.page_size,className:"".concat(Sn,"-size-changer"),options:un().map(function(tn){return{label:An(tn),value:tn}})})),Wt&&(nn&&(vn=typeof nn=="boolean"?b.createElement("button",{type:"button",onClick:Tn,onKeyUp:Tn,disabled:mt,className:"".concat(Sn,"-quick-jumper-button")},rn.jump_to_confirm):b.createElement("span",{onClick:Tn,onKeyUp:Tn},nn)),Rn=b.createElement("div",{className:"".concat(Sn,"-quick-jumper")},rn.jump_to,b.createElement("input",{disabled:mt,type:"text",value:Kt,onChange:zn,onKeyUp:Tn,onBlur:pn,"aria-label":rn.page}),rn.page,vn)),b.createElement("li",{className:Sn},Mn,Rn)},zt=Qe,St=function(Pe){var Zt=Pe.rootPrefixCls,Ht=Pe.page,rn=Pe.active,Yt=Pe.className,Ot=Pe.showTitle,nn=Pe.onClick,Wt=Pe.onKeyPress,He=Pe.itemRender,mt="".concat(Zt,"-item"),ot=Lt()(mt,"".concat(mt,"-").concat(Ht),(0,at.Z)((0,at.Z)({},"".concat(mt,"-active"),rn),"".concat(mt,"-disabled"),!Ht),Yt),Tt=function(){nn(Ht)},Ne=function(Kt){Wt(Kt,nn,Ht)},dt=He(Ht,"page",b.createElement("a",{rel:"nofollow"},Ht));return dt?b.createElement("li",{title:Ot?String(Ht):null,className:ot,onClick:Tt,onKeyDown:Ne,tabIndex:0},dt):null},it=St,ut=function(Pe,Zt,Ht){return Ht};function Se(){}function st(we){var Pe=Number(we);return typeof Pe=="number"&&!Number.isNaN(Pe)&&isFinite(Pe)&&Math.floor(Pe)===Pe}function Je(we,Pe,Zt){var Ht=typeof we=="undefined"?Pe:we;return Math.floor((Zt-1)/Ht)+1}var de=function(Pe){var Zt=Pe.prefixCls,Ht=Zt===void 0?"rc-pagination":Zt,rn=Pe.selectPrefixCls,Yt=rn===void 0?"rc-select":rn,Ot=Pe.className,nn=Pe.current,Wt=Pe.defaultCurrent,He=Wt===void 0?1:Wt,mt=Pe.total,ot=mt===void 0?0:mt,Tt=Pe.pageSize,Ne=Pe.defaultPageSize,dt=Ne===void 0?10:Ne,wt=Pe.onChange,Kt=wt===void 0?Se:wt,sn=Pe.hideOnSinglePage,bn=Pe.align,An=Pe.showPrevNextJumpers,zn=An===void 0?!0:An,pn=Pe.showQuickJumper,Tn=Pe.showLessItems,un=Pe.showTitle,Sn=un===void 0?!0:un,Mn=Pe.onShowSizeChange,Rn=Mn===void 0?Se:Mn,vn=Pe.locale,tn=vn===void 0?Te.Z:vn,en=Pe.style,cn=Pe.totalBoundaryShowSizeChanger,En=cn===void 0?50:cn,$n=Pe.disabled,Zn=Pe.simple,Nn=Pe.showTotal,Fn=Pe.showSizeChanger,qn=Fn===void 0?ot>En:Fn,er=Pe.sizeChangerRender,on=Pe.pageSizeOptions,xn=Pe.itemRender,Un=xn===void 0?ut:xn,Gn=Pe.jumpPrevIcon,ct=Pe.jumpNextIcon,yt=Pe.prevIcon,Fe=Pe.nextIcon,lt=b.useRef(null),ze=(0,Xe.Z)(10,{value:Tt,defaultValue:dt}),xt=(0,Ie.Z)(ze,2),Ee=xt[0],It=xt[1],kt=(0,Xe.Z)(1,{value:nn,defaultValue:He,postState:function(Hr){return Math.max(1,Math.min(Hr,Je(void 0,Ee,ot)))}}),Vt=(0,Ie.Z)(kt,2),bt=Vt[0],Ct=Vt[1],Et=b.useState(bt),$t=(0,Ie.Z)(Et,2),Pn=$t[0],wn=$t[1];(0,b.useEffect)(function(){wn(bt)},[bt]);var Dn=Kt!==Se,nr="current"in Pe,sr=Math.max(1,bt-(Tn?3:5)),fr=Math.min(Je(void 0,Ee,ot),bt+(Tn?3:5));function Qn(qr,Hr){var Ji=qr||b.createElement("button",{type:"button","aria-label":Hr,className:"".concat(Ht,"-item-link")});return typeof qr=="function"&&(Ji=b.createElement(qr,(0,Me.Z)({},Pe))),Ji}function _n(qr){var Hr=qr.target.value,Ji=Je(void 0,Ee,ot),qi;return Hr===""?qi=Hr:Number.isNaN(Number(Hr))?qi=Pn:Hr>=Ji?qi=Ji:qi=Number(Hr),qi}function Jn(qr){return st(qr)&&qr!==bt&&st(ot)&&ot>0}var ur=ot>Ee?pn:!1;function Er(qr){(qr.keyCode===pt.Z.UP||qr.keyCode===pt.Z.DOWN)&&qr.preventDefault()}function Cr(qr){var Hr=_n(qr);switch(Hr!==Pn&&wn(Hr),qr.keyCode){case pt.Z.ENTER:yr(Hr);break;case pt.Z.UP:yr(Hr-1);break;case pt.Z.DOWN:yr(Hr+1);break;default:break}}function wr(qr){yr(_n(qr))}function Yn(qr){var Hr=Je(qr,Ee,ot),Ji=bt>Hr&&Hr!==0?Hr:bt;It(qr),wn(Ji),Rn==null||Rn(bt,qr),Ct(Ji),Kt==null||Kt(Ji,qr)}function yr(qr){if(Jn(qr)&&!$n){var Hr=Je(void 0,Ee,ot),Ji=qr;return qr>Hr?Ji=Hr:qr<1&&(Ji=1),Ji!==Pn&&wn(Ji),Ct(Ji),Kt==null||Kt(Ji,Ee),Ji}return bt}var mr=bt>1,Vr=bt<Je(void 0,Ee,ot);function Yr(){mr&&yr(bt-1)}function Ur(){Vr&&yr(bt+1)}function Gr(){yr(sr)}function oi(){yr(fr)}function Zr(qr,Hr){if(qr.key==="Enter"||qr.charCode===pt.Z.ENTER||qr.keyCode===pt.Z.ENTER){for(var Ji=arguments.length,qi=new Array(Ji>2?Ji-2:0),ai=2;ai<Ji;ai++)qi[ai-2]=arguments[ai];Hr.apply(void 0,qi)}}function Jr(qr){Zr(qr,Yr)}function Or(qr){Zr(qr,Ur)}function ti(qr){Zr(qr,Gr)}function ci(qr){Zr(qr,oi)}function Fi(qr){var Hr=Un(qr,"prev",Qn(yt,"prev page"));return b.isValidElement(Hr)?b.cloneElement(Hr,{disabled:!mr}):Hr}function vi(qr){var Hr=Un(qr,"next",Qn(Fe,"next page"));return b.isValidElement(Hr)?b.cloneElement(Hr,{disabled:!Vr}):Hr}function xi(qr){(qr.type==="click"||qr.keyCode===pt.Z.ENTER)&&yr(Pn)}var hi=null,bi=(0,Rt.Z)(Pe,{aria:!0,data:!0}),Rr=Nn&&b.createElement("li",{className:"".concat(Ht,"-total-text")},Nn(ot,[ot===0?0:(bt-1)*Ee+1,bt*Ee>ot?ot:bt*Ee])),kr=null,cr=Je(void 0,Ee,ot);if(sn&&ot<=Ee)return null;var On=[],jn={rootPrefixCls:Ht,onClick:yr,onKeyPress:Zr,showTitle:Sn,itemRender:Un,page:-1},Kn=bt-1>0?bt-1:0,kn=bt+1<cr?bt+1:cr,lr=pn&&pn.goButton,br=(0,$e.Z)(Zn)==="object"?Zn.readOnly:!Zn,Hn=lr,Bn=null;Zn&&(lr&&(typeof lr=="boolean"?Hn=b.createElement("button",{type:"button",onClick:xi,onKeyUp:xi},tn.jump_to_confirm):Hn=b.createElement("span",{onClick:xi,onKeyUp:xi},lr),Hn=b.createElement("li",{title:Sn?"".concat(tn.jump_to).concat(bt,"/").concat(cr):null,className:"".concat(Ht,"-simple-pager")},Hn)),Bn=b.createElement("li",{title:Sn?"".concat(bt,"/").concat(cr):null,className:"".concat(Ht,"-simple-pager")},br?Pn:b.createElement("input",{type:"text","aria-label":tn.jump_to,value:Pn,disabled:$n,onKeyDown:Er,onKeyUp:Cr,onChange:Cr,onBlur:wr,size:3}),b.createElement("span",{className:"".concat(Ht,"-slash")},"/"),cr));var Xn=Tn?1:2;if(cr<=3+Xn*2){cr||On.push(b.createElement(it,(0,je.Z)({},jn,{key:"noPager",page:1,className:"".concat(Ht,"-item-disabled")})));for(var rr=1;rr<=cr;rr+=1)On.push(b.createElement(it,(0,je.Z)({},jn,{key:rr,page:rr,active:bt===rr})))}else{var Qr=Tn?tn.prev_3:tn.prev_5,Ei=Tn?tn.next_3:tn.next_5,pi=Un(sr,"jump-prev",Qn(Gn,"prev page")),Bi=Un(fr,"jump-next",Qn(ct,"next page"));zn&&(hi=pi?b.createElement("li",{title:Sn?Qr:null,key:"prev",onClick:Gr,tabIndex:0,onKeyDown:ti,className:Lt()("".concat(Ht,"-jump-prev"),(0,at.Z)({},"".concat(Ht,"-jump-prev-custom-icon"),!!Gn))},pi):null,kr=Bi?b.createElement("li",{title:Sn?Ei:null,key:"next",onClick:oi,tabIndex:0,onKeyDown:ci,className:Lt()("".concat(Ht,"-jump-next"),(0,at.Z)({},"".concat(Ht,"-jump-next-custom-icon"),!!ct))},Bi):null);var Ii=Math.max(1,bt-Xn),Pi=Math.min(bt+Xn,cr);bt-1<=Xn&&(Pi=1+Xn*2),cr-bt<=Xn&&(Ii=cr-Xn*2);for(var $i=Ii;$i<=Pi;$i+=1)On.push(b.createElement(it,(0,je.Z)({},jn,{key:$i,page:$i,active:bt===$i})));if(bt-1>=Xn*2&&bt!==3&&(On[0]=b.cloneElement(On[0],{className:Lt()("".concat(Ht,"-item-after-jump-prev"),On[0].props.className)}),On.unshift(hi)),cr-bt>=Xn*2&&bt!==cr-2){var Ni=On[On.length-1];On[On.length-1]=b.cloneElement(Ni,{className:Lt()("".concat(Ht,"-item-before-jump-next"),Ni.props.className)}),On.push(kr)}Ii!==1&&On.unshift(b.createElement(it,(0,je.Z)({},jn,{key:1,page:1}))),Pi!==cr&&On.push(b.createElement(it,(0,je.Z)({},jn,{key:cr,page:cr})))}var Ai=Fi(Kn);if(Ai){var lo=!mr||!cr;Ai=b.createElement("li",{title:Sn?tn.prev_page:null,onClick:Yr,tabIndex:lo?null:0,onKeyDown:Jr,className:Lt()("".concat(Ht,"-prev"),(0,at.Z)({},"".concat(Ht,"-disabled"),lo)),"aria-disabled":lo},Ai)}var xo=vi(kn);if(xo){var Do,To;Zn?(Do=!Vr,To=mr?0:null):(Do=!Vr||!cr,To=Do?null:0),xo=b.createElement("li",{title:Sn?tn.next_page:null,onClick:Ur,tabIndex:To,onKeyDown:Or,className:Lt()("".concat(Ht,"-next"),(0,at.Z)({},"".concat(Ht,"-disabled"),Do)),"aria-disabled":Do},xo)}var Co=Lt()(Ht,Ot,(0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},"".concat(Ht,"-start"),bn==="start"),"".concat(Ht,"-center"),bn==="center"),"".concat(Ht,"-end"),bn==="end"),"".concat(Ht,"-simple"),Zn),"".concat(Ht,"-disabled"),$n));return b.createElement("ul",(0,je.Z)({className:Co,style:en,ref:lt},bi),Rr,Ai,Zn?Bn:On,xo,b.createElement(zt,{locale:tn,rootPrefixCls:Ht,disabled:$n,selectPrefixCls:Yt,changeSize:Yn,pageSize:Ee,pageSizeOptions:on,quickGo:ur?yr:null,goButton:Hn,showSizeChanger:qn,sizeChangerRender:er}))},Mt=de,We=ee(61852),Pt=ee(48755),Xt=ee(31756),Be=ee(13783),me=ee(9017),ht=ee(82326),Ut=ee(57700),Bt=ee(36237),be=ee(53075),Ye=ee(64910),et=ee(39082),_t=ee(63356),rt=ee(51636),Ft=ee(16931);const qe=we=>{const{componentCls:Pe}=we;return{[`${Pe}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Pe}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Pe}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}}},[`&${Pe}-disabled`]:{cursor:"not-allowed",[`${Pe}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:we.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:we.colorBorder,backgroundColor:we.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:we.itemActiveBgDisabled},a:{color:we.itemActiveColorDisabled}}},[`${Pe}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Pe}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Pe}-simple-pager`]:{color:we.colorTextDisabled},[`${Pe}-jump-prev, ${Pe}-jump-next`]:{[`${Pe}-item-link-icon`]:{opacity:0},[`${Pe}-item-ellipsis`]:{opacity:1}}},[`&${Pe}-simple`]:{[`${Pe}-prev, ${Pe}-next`]:{[`&${Pe}-disabled ${Pe}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Jt=we=>{const{componentCls:Pe}=we;return{[`&${Pe}-mini ${Pe}-total-text, &${Pe}-mini ${Pe}-simple-pager`]:{height:we.itemSizeSM,lineHeight:(0,Bt.unit)(we.itemSizeSM)},[`&${Pe}-mini ${Pe}-item`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,Bt.unit)(we.calc(we.itemSizeSM).sub(2).equal())},[`&${Pe}-mini ${Pe}-prev, &${Pe}-mini ${Pe}-next`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,Bt.unit)(we.itemSizeSM)},[`&${Pe}-mini:not(${Pe}-disabled)`]:{[`${Pe}-prev, ${Pe}-next`]:{[`&:hover ${Pe}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Pe}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Pe}-disabled:hover ${Pe}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Pe}-mini ${Pe}-prev ${Pe}-item-link,
|
|
|
&${Pe}-mini ${Pe}-next ${Pe}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:we.itemSizeSM,lineHeight:(0,Bt.unit)(we.itemSizeSM)}},[`&${Pe}-mini ${Pe}-jump-prev, &${Pe}-mini ${Pe}-jump-next`]:{height:we.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Bt.unit)(we.itemSizeSM)},[`&${Pe}-mini ${Pe}-options`]:{marginInlineStart:we.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:we.miniOptionsSizeChangerTop},"&-quick-jumper":{height:we.itemSizeSM,lineHeight:(0,Bt.unit)(we.itemSizeSM),input:Object.assign(Object.assign({},(0,be.x0)(we)),{width:we.paginationMiniQuickJumperInputWidth,height:we.controlHeightSM})}}}},Dt=we=>{const{componentCls:Pe}=we;return{[`
|
|
|
&${Pe}-simple ${Pe}-prev,
|
|
|
&${Pe}-simple ${Pe}-next
|
|
|
`]:{height:we.itemSizeSM,lineHeight:(0,Bt.unit)(we.itemSizeSM),verticalAlign:"top",[`${Pe}-item-link`]:{height:we.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive},"&::after":{height:we.itemSizeSM,lineHeight:(0,Bt.unit)(we.itemSizeSM)}}},[`&${Pe}-simple ${Pe}-simple-pager`]:{display:"inline-block",height:we.itemSizeSM,marginInlineEnd:we.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Bt.unit)(we.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:we.itemInputBg,border:`${(0,Bt.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadius,outline:"none",transition:`border-color ${we.motionDurationMid}`,color:"inherit","&:hover":{borderColor:we.colorPrimary},"&:focus":{borderColor:we.colorPrimaryHover,boxShadow:`${(0,Bt.unit)(we.inputOutlineOffset)} 0 ${(0,Bt.unit)(we.controlOutlineWidth)} ${we.controlOutline}`},"&[disabled]":{color:we.colorTextDisabled,backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,cursor:"not-allowed"}}}}},ae=we=>{const{componentCls:Pe}=we;return{[`${Pe}-jump-prev, ${Pe}-jump-next`]:{outline:0,[`${Pe}-item-container`]:{position:"relative",[`${Pe}-item-link-icon`]:{color:we.colorPrimary,fontSize:we.fontSizeSM,opacity:0,transition:`all ${we.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Pe}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:we.colorTextDisabled,letterSpacing:we.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:we.paginationEllipsisTextIndent,opacity:1,transition:`all ${we.motionDurationMid}`}},"&:hover":{[`${Pe}-item-link-icon`]:{opacity:1},[`${Pe}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Pe}-prev,
|
|
|
${Pe}-jump-prev,
|
|
|
${Pe}-jump-next
|
|
|
`]:{marginInlineEnd:we.marginXS},[`
|
|
|
${Pe}-prev,
|
|
|
${Pe}-next,
|
|
|
${Pe}-jump-prev,
|
|
|
${Pe}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,color:we.colorText,fontFamily:we.fontFamily,lineHeight:(0,Bt.unit)(we.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:we.borderRadius,cursor:"pointer",transition:`all ${we.motionDurationMid}`},[`${Pe}-prev, ${Pe}-next`]:{outline:0,button:{color:we.colorText,cursor:"pointer",userSelect:"none"},[`${Pe}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:we.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Bt.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:"none",transition:`all ${we.motionDurationMid}`},[`&:hover ${Pe}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Pe}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Pe}-disabled:hover`]:{[`${Pe}-item-link`]:{backgroundColor:"transparent"}}},[`${Pe}-slash`]:{marginInlineEnd:we.paginationSlashMarginInlineEnd,marginInlineStart:we.paginationSlashMarginInlineStart},[`${Pe}-options`]:{display:"inline-block",marginInlineStart:we.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:we.controlHeight,marginInlineStart:we.marginXS,lineHeight:(0,Bt.unit)(we.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,be.ik)(we)),(0,et.$U)(we,{borderColor:we.colorBorder,hoverBorderColor:we.colorPrimaryHover,activeBorderColor:we.colorPrimary,activeShadow:we.activeShadow})),{"&[disabled]":Object.assign({},(0,et.Xy)(we)),width:we.calc(we.controlHeightLG).mul(1.25).equal(),height:we.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:we.marginXS,marginInlineEnd:we.marginXS})}}}},ne=we=>{const{componentCls:Pe}=we;return{[`${Pe}-item`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,marginInlineEnd:we.marginXS,fontFamily:we.fontFamily,lineHeight:(0,Bt.unit)(we.calc(we.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:we.itemBg,border:`${(0,Bt.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Bt.unit)(we.paginationItemPaddingInline)}`,color:we.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Pe}-item-active)`]:{"&:hover":{transition:`all ${we.motionDurationMid}`,backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive}},"&-active":{fontWeight:we.fontWeightStrong,backgroundColor:we.itemActiveBg,borderColor:we.colorPrimary,a:{color:we.colorPrimary},"&:hover":{borderColor:we.colorPrimaryHover},"&:hover a":{color:we.colorPrimaryHover}}}}},te=we=>{const{componentCls:Pe}=we;return{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_t.Wf)(we)),{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:'""'},[`${Pe}-total-text`]:{display:"inline-block",height:we.itemSize,marginInlineEnd:we.marginXS,lineHeight:(0,Bt.unit)(we.calc(we.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(we)),ae(we)),Dt(we)),Jt(we)),qe(we)),{[`@media only screen and (max-width: ${we.screenLG}px)`]:{[`${Pe}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${we.screenSM}px)`]:{[`${Pe}-options`]:{display:"none"}}}),[`&${we.componentCls}-rtl`]:{direction:"rtl"}}},oe=we=>{const{componentCls:Pe}=we;return{[`${Pe}:not(${Pe}-disabled)`]:{[`${Pe}-item`]:Object.assign({},(0,_t.Qy)(we)),[`${Pe}-jump-prev, ${Pe}-jump-next`]:{"&:focus-visible":Object.assign({[`${Pe}-item-link-icon`]:{opacity:1},[`${Pe}-item-ellipsis`]:{opacity:0}},(0,_t.oN)(we))},[`${Pe}-prev, ${Pe}-next`]:{[`&:focus-visible ${Pe}-item-link`]:Object.assign({},(0,_t.oN)(we))}}}},ce=we=>Object.assign({itemBg:we.colorBgContainer,itemSize:we.controlHeight,itemSizeSM:we.controlHeightSM,itemActiveBg:we.colorBgContainer,itemLinkBg:we.colorBgContainer,itemActiveColorDisabled:we.colorTextDisabled,itemActiveBgDisabled:we.controlItemBgActiveDisabled,itemInputBg:we.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Ye.T)(we)),re=we=>(0,rt.mergeToken)(we,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:we.calc(we.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:we.calc(we.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:we.calc(we.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:we.calc(we.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:we.marginSM,paginationSlashMarginInlineEnd:we.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ye.e)(we));var le=(0,Ft.I$)("Pagination",we=>{const Pe=re(we);return[te(Pe),oe(Pe)]},ce);const ge=we=>{const{componentCls:Pe}=we;return{[`${Pe}${Pe}-bordered${Pe}-disabled:not(${Pe}-mini)`]:{"&, &:hover":{[`${Pe}-item-link`]:{borderColor:we.colorBorder}},"&:focus-visible":{[`${Pe}-item-link`]:{borderColor:we.colorBorder}},[`${Pe}-item, ${Pe}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,[`&:hover:not(${Pe}-item-active)`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,a:{color:we.colorTextDisabled}},[`&${Pe}-item-active`]:{backgroundColor:we.itemActiveBgDisabled}},[`${Pe}-prev, ${Pe}-next`]:{"&:hover button":{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,color:we.colorTextDisabled},[`${Pe}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder}}},[`${Pe}${Pe}-bordered:not(${Pe}-mini)`]:{[`${Pe}-prev, ${Pe}-next`]:{"&:hover button":{borderColor:we.colorPrimaryHover,backgroundColor:we.itemBg},[`${Pe}-item-link`]:{backgroundColor:we.itemLinkBg,borderColor:we.colorBorder},[`&:hover ${Pe}-item-link`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,color:we.colorPrimary},[`&${Pe}-disabled`]:{[`${Pe}-item-link`]:{borderColor:we.colorBorder,color:we.colorTextDisabled}}},[`${Pe}-item`]:{backgroundColor:we.itemBg,border:`${(0,Bt.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,[`&:hover:not(${Pe}-item-active)`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,a:{color:we.colorPrimary}},"&-active":{borderColor:we.colorPrimary}}}}};var vt=(0,Ft.bk)(["Pagination","bordered"],we=>{const Pe=re(we);return[ge(Pe)]},ce);function Re(we){return(0,b.useMemo)(()=>typeof we=="boolean"?[we,{}]:we&&typeof we=="object"?[!0,we]:[void 0,void 0],[we])}var Ae=function(we,Pe){var Zt={};for(var Ht in we)Object.prototype.hasOwnProperty.call(we,Ht)&&Pe.indexOf(Ht)<0&&(Zt[Ht]=we[Ht]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rn=0,Ht=Object.getOwnPropertySymbols(we);rn<Ht.length;rn++)Pe.indexOf(Ht[rn])<0&&Object.prototype.propertyIsEnumerable.call(we,Ht[rn])&&(Zt[Ht[rn]]=we[Ht[rn]]);return Zt},_e=we=>{const{align:Pe,prefixCls:Zt,selectPrefixCls:Ht,className:rn,rootClassName:Yt,style:Ot,size:nn,locale:Wt,responsive:He,showSizeChanger:mt,selectComponentClass:ot,pageSizeOptions:Tt}=we,Ne=Ae(we,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:dt}=(0,Be.Z)(He),[,wt]=(0,Ut.ZP)(),{getPrefixCls:Kt,direction:sn,showSizeChanger:bn,className:An,style:zn}=(0,Pt.dj)("pagination"),pn=Kt("pagination",Zt),[Tn,un,Sn]=le(pn),Mn=(0,Xt.Z)(nn),Rn=Mn==="small"||!!(dt&&!Mn&&He),[vn]=(0,me.Z)("Pagination",We.Z),tn=Object.assign(Object.assign({},vn),Wt),[en,cn]=Re(mt),[En,$n]=Re(bn),Zn=en!=null?en:En,Nn=cn!=null?cn:$n,Fn=ot||ht.default,qn=b.useMemo(()=>Tt?Tt.map(ct=>Number(ct)):void 0,[Tt]),er=ct=>{var yt;const{disabled:Fe,size:lt,onSizeChange:ze,"aria-label":xt,className:Ee,options:It}=ct,{className:kt,onChange:Vt}=Nn||{},bt=(yt=It.find(Ct=>String(Ct.value)===String(lt)))===null||yt===void 0?void 0:yt.value;return b.createElement(Fn,Object.assign({disabled:Fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Ct=>Ct.parentNode,"aria-label":xt,options:It},Nn,{value:bt,onChange:(Ct,Et)=>{ze==null||ze(Ct),Vt==null||Vt(Ct,Et)},size:Rn?"small":"middle",className:Lt()(Ee,kt)}))},on=b.useMemo(()=>{const ct=b.createElement("span",{className:`${pn}-item-ellipsis`},"\u2022\u2022\u2022"),yt=b.createElement("button",{className:`${pn}-item-link`,type:"button",tabIndex:-1},sn==="rtl"?b.createElement(tt.Z,null):b.createElement(ue.Z,null)),Fe=b.createElement("button",{className:`${pn}-item-link`,type:"button",tabIndex:-1},sn==="rtl"?b.createElement(ue.Z,null):b.createElement(tt.Z,null)),lt=b.createElement("a",{className:`${pn}-item-link`},b.createElement("div",{className:`${pn}-item-container`},sn==="rtl"?b.createElement(Ce.Z,{className:`${pn}-item-link-icon`}):b.createElement(Ze,{className:`${pn}-item-link-icon`}),ct)),ze=b.createElement("a",{className:`${pn}-item-link`},b.createElement("div",{className:`${pn}-item-container`},sn==="rtl"?b.createElement(Ze,{className:`${pn}-item-link-icon`}):b.createElement(Ce.Z,{className:`${pn}-item-link-icon`}),ct));return{prevIcon:yt,nextIcon:Fe,jumpPrevIcon:lt,jumpNextIcon:ze}},[sn,pn]),xn=Kt("select",Ht),Un=Lt()({[`${pn}-${Pe}`]:!!Pe,[`${pn}-mini`]:Rn,[`${pn}-rtl`]:sn==="rtl",[`${pn}-bordered`]:wt.wireframe},An,rn,Yt,un,Sn),Gn=Object.assign(Object.assign({},zn),Ot);return Tn(b.createElement(b.Fragment,null,wt.wireframe&&b.createElement(vt,{prefixCls:pn}),b.createElement(Mt,Object.assign({},on,Ne,{style:Gn,prefixCls:pn,selectPrefixCls:xn,className:Un,locale:tn,pageSizeOptions:qn,showSizeChanger:Zn,sizeChangerRender:er}))))},gt=_e},89787:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Wt}});var b=ee(59301),je=ee(17835),fe=ee(29679),Ge=ee(40001),Oe=ee(19248),ye=ee(99267),De=ee(92310),Ze=ee.n(De),Ce=ee(2738),ue=ee(48755),tt=ee(54476),ke=ee(33885),Lt=ee(75931),at={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$e=function(){var mt=(0,b.useRef)([]),ot=(0,b.useRef)(null);return(0,b.useEffect)(function(){var Tt=Date.now(),Ne=!1;mt.current.forEach(function(dt){if(dt){Ne=!0;var wt=dt.style;wt.transitionDuration=".3s, .3s, .3s, .06s",ot.current&&Tt-ot.current<100&&(wt.transitionDuration="0s, 0s")}}),Ne&&(ot.current=Date.now())}),mt.current},Me=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ie=function(mt){var ot=(0,ke.Z)((0,ke.Z)({},at),mt),Tt=ot.className,Ne=ot.percent,dt=ot.prefixCls,wt=ot.strokeColor,Kt=ot.strokeLinecap,sn=ot.strokeWidth,bn=ot.style,An=ot.trailColor,zn=ot.trailWidth,pn=ot.transition,Tn=(0,Lt.Z)(ot,Me);delete Tn.gapPosition;var un=Array.isArray(Ne)?Ne:[Ne],Sn=Array.isArray(wt)?wt:[wt],Mn=$e(),Rn=sn/2,vn=100-sn/2,tn="M ".concat(Kt==="round"?Rn:0,",").concat(Rn,`
|
|
|
L `).concat(Kt==="round"?vn:100,",").concat(Rn),en="0 0 100 ".concat(sn),cn=0;return b.createElement("svg",(0,tt.Z)({className:Ze()("".concat(dt,"-line"),Tt),viewBox:en,preserveAspectRatio:"none",style:bn},Tn),b.createElement("path",{className:"".concat(dt,"-line-trail"),d:tn,strokeLinecap:Kt,stroke:An,strokeWidth:zn||sn,fillOpacity:"0"}),un.map(function(En,$n){var Zn=1;switch(Kt){case"round":Zn=1-sn/100;break;case"square":Zn=1-sn/2/100;break;default:Zn=1;break}var Nn={strokeDasharray:"".concat(En*Zn,"px, 100px"),strokeDashoffset:"-".concat(cn,"px"),transition:pn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Fn=Sn[$n]||Sn[Sn.length-1];return cn+=En,b.createElement("path",{key:$n,className:"".concat(dt,"-line-path"),d:tn,strokeLinecap:Kt,stroke:Fn,strokeWidth:sn,fillOpacity:"0",ref:function(er){Mn[$n]=er},style:Nn})}))},Xe=Ie,pt=ee(76190),Rt=ee(42978),Ve=ee(47273),Te=0,nt=(0,Ve.Z)();function Qe(){var He;return nt?(He=Te,Te+=1):He="TEST_OR_SSR",He}var zt=function(He){var mt=b.useState(),ot=(0,Rt.Z)(mt,2),Tt=ot[0],Ne=ot[1];return b.useEffect(function(){Ne("rc_progress_".concat(Qe()))},[]),He||Tt},St=function(mt){var ot=mt.bg,Tt=mt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:ot}},Tt)};function it(He,mt){return Object.keys(He).map(function(ot){var Tt=parseFloat(ot),Ne="".concat(Math.floor(Tt*mt),"%");return"".concat(He[ot]," ").concat(Ne)})}var ut=b.forwardRef(function(He,mt){var ot=He.prefixCls,Tt=He.color,Ne=He.gradientId,dt=He.radius,wt=He.style,Kt=He.ptg,sn=He.strokeLinecap,bn=He.strokeWidth,An=He.size,zn=He.gapDegree,pn=Tt&&(0,pt.Z)(Tt)==="object",Tn=pn?"#FFF":void 0,un=An/2,Sn=b.createElement("circle",{className:"".concat(ot,"-circle-path"),r:dt,cx:un,cy:un,stroke:Tn,strokeLinecap:sn,strokeWidth:bn,opacity:Kt===0?0:1,style:wt,ref:mt});if(!pn)return Sn;var Mn="".concat(Ne,"-conic"),Rn=zn?"".concat(180+zn/2,"deg"):"0deg",vn=it(Tt,(360-zn)/360),tn=it(Tt,1),en="conic-gradient(from ".concat(Rn,", ").concat(vn.join(", "),")"),cn="linear-gradient(to ".concat(zn?"bottom":"top",", ").concat(tn.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:Mn},Sn),b.createElement("foreignObject",{x:0,y:0,width:An,height:An,mask:"url(#".concat(Mn,")")},b.createElement(St,{bg:cn},b.createElement(St,{bg:en}))))}),Se=ut,st=100,Je=function(mt,ot,Tt,Ne,dt,wt,Kt,sn,bn,An){var zn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,pn=Tt/100*360*((360-wt)/360),Tn=wt===0?0:{bottom:0,top:180,left:90,right:-90}[Kt],un=(100-Ne)/100*ot;bn==="round"&&Ne!==100&&(un+=An/2,un>=ot&&(un=ot-.01));var Sn=st/2;return{stroke:typeof sn=="string"?sn:void 0,strokeDasharray:"".concat(ot,"px ").concat(mt),strokeDashoffset:un+zn,transform:"rotate(".concat(dt+pn+Tn,"deg)"),transformOrigin:"".concat(Sn,"px ").concat(Sn,"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 Mt(He){var mt=He!=null?He:[];return Array.isArray(mt)?mt:[mt]}var We=function(mt){var ot=(0,ke.Z)((0,ke.Z)({},at),mt),Tt=ot.id,Ne=ot.prefixCls,dt=ot.steps,wt=ot.strokeWidth,Kt=ot.trailWidth,sn=ot.gapDegree,bn=sn===void 0?0:sn,An=ot.gapPosition,zn=ot.trailColor,pn=ot.strokeLinecap,Tn=ot.style,un=ot.className,Sn=ot.strokeColor,Mn=ot.percent,Rn=(0,Lt.Z)(ot,de),vn=st/2,tn=zt(Tt),en="".concat(tn,"-gradient"),cn=vn-wt/2,En=Math.PI*2*cn,$n=bn>0?90+bn/2:-90,Zn=En*((360-bn)/360),Nn=(0,pt.Z)(dt)==="object"?dt:{count:dt,gap:2},Fn=Nn.count,qn=Nn.gap,er=Mt(Mn),on=Mt(Sn),xn=on.find(function(ze){return ze&&(0,pt.Z)(ze)==="object"}),Un=xn&&(0,pt.Z)(xn)==="object",Gn=Un?"butt":pn,ct=Je(En,Zn,0,100,$n,bn,An,zn,Gn,wt),yt=$e(),Fe=function(){var xt=0;return er.map(function(Ee,It){var kt=on[It]||on[on.length-1],Vt=Je(En,Zn,xt,Ee,$n,bn,An,kt,Gn,wt);return xt+=Ee,b.createElement(Se,{key:It,color:kt,ptg:Ee,radius:cn,prefixCls:Ne,gradientId:en,style:Vt,strokeLinecap:Gn,strokeWidth:wt,gapDegree:bn,ref:function(Ct){yt[It]=Ct},size:st})}).reverse()},lt=function(){var xt=Math.round(Fn*(er[0]/100)),Ee=100/Fn,It=0;return new Array(Fn).fill(null).map(function(kt,Vt){var bt=Vt<=xt-1?on[0]:zn,Ct=bt&&(0,pt.Z)(bt)==="object"?"url(#".concat(en,")"):void 0,Et=Je(En,Zn,It,Ee,$n,bn,An,bt,"butt",wt,qn);return It+=(Zn-Et.strokeDashoffset+qn)*100/Zn,b.createElement("circle",{key:Vt,className:"".concat(Ne,"-circle-path"),r:cn,cx:vn,cy:vn,stroke:Ct,strokeWidth:wt,opacity:1,style:Et,ref:function(Pn){yt[Vt]=Pn}})})};return b.createElement("svg",(0,tt.Z)({className:Ze()("".concat(Ne,"-circle"),un),viewBox:"0 0 ".concat(st," ").concat(st),style:Tn,id:Tt,role:"presentation"},Rn),!Fn&&b.createElement("circle",{className:"".concat(Ne,"-circle-trail"),r:cn,cx:vn,cy:vn,stroke:zn,strokeLinecap:Gn,strokeWidth:Kt||wt,style:ct}),Fn?lt():Fe())},Pt=We,Xt={Line:Xe,Circle:Pt},Be=ee(25399),me=ee(68361);function ht(He){return!He||He<0?0:He>100?100:He}function Ut(He){let{success:mt,successPercent:ot}=He,Tt=ot;return mt&&"progress"in mt&&(Tt=mt.progress),mt&&"percent"in mt&&(Tt=mt.percent),Tt}const Bt=He=>{let{percent:mt,success:ot,successPercent:Tt}=He;const Ne=ht(Ut({success:ot,successPercent:Tt}));return[Ne,ht(ht(mt)-Ne)]},be=He=>{let{success:mt={},strokeColor:ot}=He;const{strokeColor:Tt}=mt;return[Tt||me.presetPrimaryColors.green,ot||null]},Ye=(He,mt,ot)=>{var Tt,Ne,dt,wt;let Kt=-1,sn=-1;if(mt==="step"){const bn=ot.steps,An=ot.strokeWidth;typeof He=="string"||typeof He=="undefined"?(Kt=He==="small"?2:14,sn=An!=null?An:8):typeof He=="number"?[Kt,sn]=[He,He]:[Kt=14,sn=8]=Array.isArray(He)?He:[He.width,He.height],Kt*=bn}else if(mt==="line"){const bn=ot==null?void 0:ot.strokeWidth;typeof He=="string"||typeof He=="undefined"?sn=bn||(He==="small"?6:8):typeof He=="number"?[Kt,sn]=[He,He]:[Kt=-1,sn=8]=Array.isArray(He)?He:[He.width,He.height]}else(mt==="circle"||mt==="dashboard")&&(typeof He=="string"||typeof He=="undefined"?[Kt,sn]=He==="small"?[60,60]:[120,120]:typeof He=="number"?[Kt,sn]=[He,He]:Array.isArray(He)&&(Kt=(Ne=(Tt=He[0])!==null&&Tt!==void 0?Tt:He[1])!==null&&Ne!==void 0?Ne:120,sn=(wt=(dt=He[0])!==null&&dt!==void 0?dt:He[1])!==null&&wt!==void 0?wt:120));return[Kt,sn]},et=3,_t=He=>et/He*100;var Ft=He=>{const{prefixCls:mt,trailColor:ot=null,strokeLinecap:Tt="round",gapPosition:Ne,gapDegree:dt,width:wt=120,type:Kt,children:sn,success:bn,size:An=wt,steps:zn}=He,[pn,Tn]=Ye(An,"circle");let{strokeWidth:un}=He;un===void 0&&(un=Math.max(_t(pn),6));const Sn={width:pn,height:Tn,fontSize:pn*.15+6},Mn=b.useMemo(()=>{if(dt||dt===0)return dt;if(Kt==="dashboard")return 75},[dt,Kt]),Rn=Bt(He),vn=Ne||Kt==="dashboard"&&"bottom"||void 0,tn=Object.prototype.toString.call(He.strokeColor)==="[object Object]",en=be({success:bn,strokeColor:He.strokeColor}),cn=Ze()(`${mt}-inner`,{[`${mt}-circle-gradient`]:tn}),En=b.createElement(Pt,{steps:zn,percent:zn?Rn[1]:Rn,strokeWidth:un,trailWidth:un,strokeColor:zn?en[1]:en,strokeLinecap:Tt,trailColor:ot,prefixCls:mt,gapDegree:Mn,gapPosition:vn}),$n=pn<=20,Zn=b.createElement("div",{className:cn,style:Sn},En,!$n&&sn);return $n?b.createElement(Be.Z,{title:sn},Zn):Zn},qe=ee(36237),Jt=ee(63356),Dt=ee(16931),ae=ee(51636);const ne="--progress-line-stroke-color",te="--progress-percent",oe=He=>{const mt=He?"100%":"-100%";return new qe.Keyframes(`antProgress${He?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${mt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${mt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ce=He=>{const{componentCls:mt,iconCls:ot}=He;return{[mt]:Object.assign(Object.assign({},(0,Jt.Wf)(He)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:He.fontSize},[`${mt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${mt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:He.remainingColor,borderRadius:He.lineBorderRadius},[`${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:He.defaultColor}},[`${mt}-success-bg, ${mt}-bg`]:{position:"relative",background:He.defaultColor,borderRadius:He.lineBorderRadius,transition:`all ${He.motionDurationSlow} ${He.motionEaseInOutCirc}`},[`${mt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${mt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:He.marginXXS}},[`${mt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${te}) * 100%)`,display:"block"},[`&${mt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${mt}-text-inner`]:{color:He.colorWhite,[`&${mt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${mt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:He.colorSuccess},[`${mt}-text`]:{display:"inline-block",marginInlineStart:He.marginXS,color:He.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ot]:{fontSize:He.fontSize},[`&${mt}-text-outer`]:{width:"max-content"},[`&${mt}-text-outer${mt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:He.marginXS}},[`${mt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,qe.unit)(He.paddingXXS)}`,[`&${mt}-text-start`]:{justifyContent:"start"},[`&${mt}-text-end`]:{justifyContent:"end"}},[`&${mt}-status-active`]:{[`${mt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:He.colorBgContainer,borderRadius:He.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:He.progressActiveMotionDuration,animationTimingFunction:He.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${mt}-rtl${mt}-status-active`]:{[`${mt}-bg::before`]:{animationName:oe(!0)}},[`&${mt}-status-exception`]:{[`${mt}-bg`]:{backgroundColor:He.colorError},[`${mt}-text`]:{color:He.colorError}},[`&${mt}-status-exception ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:He.colorError}},[`&${mt}-status-success`]:{[`${mt}-bg`]:{backgroundColor:He.colorSuccess},[`${mt}-text`]:{color:He.colorSuccess}},[`&${mt}-status-success ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:He.colorSuccess}}})}},re=He=>{const{componentCls:mt,iconCls:ot}=He;return{[mt]:{[`${mt}-circle-trail`]:{stroke:He.remainingColor},[`&${mt}-circle ${mt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${mt}-circle ${mt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:He.circleTextColor,fontSize:He.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ot]:{fontSize:He.circleIconFontSize}},[`${mt}-circle&-status-exception`]:{[`${mt}-text`]:{color:He.colorError}},[`${mt}-circle&-status-success`]:{[`${mt}-text`]:{color:He.colorSuccess}}},[`${mt}-inline-circle`]:{lineHeight:1,[`${mt}-inner`]:{verticalAlign:"bottom"}}}},le=He=>{const{componentCls:mt}=He;return{[mt]:{[`${mt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:He.progressStepMinWidth,marginInlineEnd:He.progressStepMarginInlineEnd,backgroundColor:He.remainingColor,transition:`all ${He.motionDurationSlow}`,"&-active":{backgroundColor:He.defaultColor}}}}}},ge=He=>{const{componentCls:mt,iconCls:ot}=He;return{[mt]:{[`${mt}-small&-line, ${mt}-small&-line ${mt}-text ${ot}`]:{fontSize:He.fontSizeSM}}}},vt=He=>({circleTextColor:He.colorText,defaultColor:He.colorInfo,remainingColor:He.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${He.fontSize/He.fontSizeSM}em`});var Re=(0,Dt.I$)("Progress",He=>{const mt=He.calc(He.marginXXS).div(2).equal(),ot=(0,ae.mergeToken)(He,{progressStepMarginInlineEnd:mt,progressStepMinWidth:mt,progressActiveMotionDuration:"2.4s"});return[ce(ot),re(ot),le(ot),ge(ot)]},vt),Ae=function(He,mt){var ot={};for(var Tt in He)Object.prototype.hasOwnProperty.call(He,Tt)&&mt.indexOf(Tt)<0&&(ot[Tt]=He[Tt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Tt=Object.getOwnPropertySymbols(He);Ne<Tt.length;Ne++)mt.indexOf(Tt[Ne])<0&&Object.prototype.propertyIsEnumerable.call(He,Tt[Ne])&&(ot[Tt[Ne]]=He[Tt[Ne]]);return ot};const Ke=He=>{let mt=[];return Object.keys(He).forEach(ot=>{const Tt=parseFloat(ot.replace(/%/g,""));Number.isNaN(Tt)||mt.push({key:Tt,value:He[ot]})}),mt=mt.sort((ot,Tt)=>ot.key-Tt.key),mt.map(ot=>{let{key:Tt,value:Ne}=ot;return`${Ne} ${Tt}%`}).join(", ")},_e=(He,mt)=>{const{from:ot=me.presetPrimaryColors.blue,to:Tt=me.presetPrimaryColors.blue,direction:Ne=mt==="rtl"?"to left":"to right"}=He,dt=Ae(He,["from","to","direction"]);if(Object.keys(dt).length!==0){const Kt=Ke(dt),sn=`linear-gradient(${Ne}, ${Kt})`;return{background:sn,[ne]:sn}}const wt=`linear-gradient(${Ne}, ${ot}, ${Tt})`;return{background:wt,[ne]:wt}};var we=He=>{const{prefixCls:mt,direction:ot,percent:Tt,size:Ne,strokeWidth:dt,strokeColor:wt,strokeLinecap:Kt="round",children:sn,trailColor:bn=null,percentPosition:An,success:zn}=He,{align:pn,type:Tn}=An,un=wt&&typeof wt!="string"?_e(wt,ot):{[ne]:wt,background:wt},Sn=Kt==="square"||Kt==="butt"?0:void 0,Mn=Ne!=null?Ne:[-1,dt||(Ne==="small"?6:8)],[Rn,vn]=Ye(Mn,"line",{strokeWidth:dt}),tn={backgroundColor:bn||void 0,borderRadius:Sn},en=Object.assign(Object.assign({width:`${ht(Tt)}%`,height:vn,borderRadius:Sn},un),{[te]:ht(Tt)/100}),cn=Ut(He),En={width:`${ht(cn)}%`,height:vn,borderRadius:Sn,backgroundColor:zn==null?void 0:zn.strokeColor},$n={width:Rn<0?"100%":Rn},Zn=b.createElement("div",{className:`${mt}-inner`,style:tn},b.createElement("div",{className:Ze()(`${mt}-bg`,`${mt}-bg-${Tn}`),style:en},Tn==="inner"&&sn),cn!==void 0&&b.createElement("div",{className:`${mt}-success-bg`,style:En})),Nn=Tn==="outer"&&pn==="start",Fn=Tn==="outer"&&pn==="end";return Tn==="outer"&&pn==="center"?b.createElement("div",{className:`${mt}-layout-bottom`},Zn,sn):b.createElement("div",{className:`${mt}-outer`,style:$n},Nn&&sn,Zn,Fn&&sn)},Zt=He=>{const{size:mt,steps:ot,rounding:Tt=Math.round,percent:Ne=0,strokeWidth:dt=8,strokeColor:wt,trailColor:Kt=null,prefixCls:sn,children:bn}=He,An=Tt(ot*(Ne/100)),zn=mt==="small"?2:14,pn=mt!=null?mt:[zn,dt],[Tn,un]=Ye(pn,"step",{steps:ot,strokeWidth:dt}),Sn=Tn/ot,Mn=Array.from({length:ot});for(let Rn=0;Rn<ot;Rn++){const vn=Array.isArray(wt)?wt[Rn]:wt;Mn[Rn]=b.createElement("div",{key:Rn,className:Ze()(`${sn}-steps-item`,{[`${sn}-steps-item-active`]:Rn<=An-1}),style:{backgroundColor:Rn<=An-1?vn:Kt,width:Sn,height:un}})}return b.createElement("div",{className:`${sn}-steps-outer`},Mn,bn)},Ht=function(He,mt){var ot={};for(var Tt in He)Object.prototype.hasOwnProperty.call(He,Tt)&&mt.indexOf(Tt)<0&&(ot[Tt]=He[Tt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Tt=Object.getOwnPropertySymbols(He);Ne<Tt.length;Ne++)mt.indexOf(Tt[Ne])<0&&Object.prototype.propertyIsEnumerable.call(He,Tt[Ne])&&(ot[Tt[Ne]]=He[Tt[Ne]]);return ot};const rn=null,Yt=["normal","exception","active","success"];var nn=b.forwardRef((He,mt)=>{const{prefixCls:ot,className:Tt,rootClassName:Ne,steps:dt,strokeColor:wt,percent:Kt=0,size:sn="default",showInfo:bn=!0,type:An="line",status:zn,format:pn,style:Tn,percentPosition:un={}}=He,Sn=Ht(He,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Mn="end",type:Rn="outer"}=un,vn=Array.isArray(wt)?wt[0]:wt,tn=typeof wt=="string"||Array.isArray(wt)?wt:void 0,en=b.useMemo(()=>{if(vn){const Fe=typeof vn=="string"?vn:Object.values(vn)[0];return new je.FastColor(Fe).isLight()}return!1},[wt]),cn=b.useMemo(()=>{var Fe,lt;const ze=Ut(He);return parseInt(ze!==void 0?(Fe=ze!=null?ze:0)===null||Fe===void 0?void 0:Fe.toString():(lt=Kt!=null?Kt:0)===null||lt===void 0?void 0:lt.toString(),10)},[Kt,He.success,He.successPercent]),En=b.useMemo(()=>!Yt.includes(zn)&&cn>=100?"success":zn||"normal",[zn,cn]),{getPrefixCls:$n,direction:Zn,progress:Nn}=b.useContext(ue.E_),Fn=$n("progress",ot),[qn,er,on]=Re(Fn),xn=An==="line",Un=xn&&!dt,Gn=b.useMemo(()=>{if(!bn)return null;const Fe=Ut(He);let lt;const ze=pn||(Ee=>`${Ee}%`),xt=xn&&en&&Rn==="inner";return Rn==="inner"||pn||En!=="exception"&&En!=="success"?lt=ze(ht(Kt),ht(Fe)):En==="exception"?lt=xn?b.createElement(Oe.Z,null):b.createElement(ye.Z,null):En==="success"&&(lt=xn?b.createElement(fe.Z,null):b.createElement(Ge.Z,null)),b.createElement("span",{className:Ze()(`${Fn}-text`,{[`${Fn}-text-bright`]:xt,[`${Fn}-text-${Mn}`]:Un,[`${Fn}-text-${Rn}`]:Un}),title:typeof lt=="string"?lt:void 0},lt)},[bn,Kt,cn,En,An,Fn,pn]);let ct;An==="line"?ct=dt?b.createElement(Zt,Object.assign({},He,{strokeColor:tn,prefixCls:Fn,steps:typeof dt=="object"?dt.count:dt}),Gn):b.createElement(we,Object.assign({},He,{strokeColor:vn,prefixCls:Fn,direction:Zn,percentPosition:{align:Mn,type:Rn}}),Gn):(An==="circle"||An==="dashboard")&&(ct=b.createElement(Ft,Object.assign({},He,{strokeColor:vn,prefixCls:Fn,progressStatus:En}),Gn));const yt=Ze()(Fn,`${Fn}-status-${En}`,{[`${Fn}-${An==="dashboard"&&"circle"||An}`]:An!=="line",[`${Fn}-inline-circle`]:An==="circle"&&Ye(sn,"circle")[0]<=20,[`${Fn}-line`]:Un,[`${Fn}-line-align-${Mn}`]:Un,[`${Fn}-line-position-${Rn}`]:Un,[`${Fn}-steps`]:dt,[`${Fn}-show-info`]:bn,[`${Fn}-${sn}`]:typeof sn=="string",[`${Fn}-rtl`]:Zn==="rtl"},Nn==null?void 0:Nn.className,Tt,Ne,er,on);return qn(b.createElement("div",Object.assign({ref:mt,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Tn),className:yt,role:"progressbar","aria-valuenow":cn,"aria-valuemin":0,"aria-valuemax":100},(0,Ce.Z)(Sn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ct))}),Wt=nn},63139:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Bt}});var b=ee(59301),je=ee(54476),fe={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"},Ge=fe,Oe=ee(7657),ye=function(Ye,et){return b.createElement(Oe.Z,(0,je.Z)({},Ye,{ref:et,icon:Ge}))},De=b.forwardRef(ye),Ze=De,Ce=ee(92310),ue=ee.n(Ce),tt=ee(20068),ke=ee(42978),Lt=ee(75931),at=ee(18929),$e=ee(10228),Me=ee(26112);function Ie(be,Ye){var et=be.disabled,_t=be.prefixCls,rt=be.character,Ft=be.characterRender,qe=be.index,Jt=be.count,Dt=be.value,ae=be.allowHalf,ne=be.focused,te=be.onHover,oe=be.onClick,ce=function(_e){te(_e,qe)},re=function(_e){oe(_e,qe)},le=function(_e){_e.keyCode===$e.Z.ENTER&&oe(_e,qe)},ge=qe+1,vt=new Set([_t]);Dt===0&&qe===0&&ne?vt.add("".concat(_t,"-focused")):ae&&Dt+.5>=ge&&Dt<ge?(vt.add("".concat(_t,"-half")),vt.add("".concat(_t,"-active")),ne&&vt.add("".concat(_t,"-focused"))):(ge<=Dt?vt.add("".concat(_t,"-full")):vt.add("".concat(_t,"-zero")),ge===Dt&&ne&&vt.add("".concat(_t,"-focused")));var Re=typeof rt=="function"?rt(be):rt,Ae=b.createElement("li",{className:ue()(Array.from(vt)),ref:Ye},b.createElement("div",{onClick:et?null:re,onKeyDown:et?null:le,onMouseMove:et?null:ce,role:"radio","aria-checked":Dt>qe?"true":"false","aria-posinset":qe+1,"aria-setsize":Jt,tabIndex:et?-1:0},b.createElement("div",{className:"".concat(_t,"-first")},Re),b.createElement("div",{className:"".concat(_t,"-second")},Re)));return Ft&&(Ae=Ft(Ae,be)),Ae}var Xe=b.forwardRef(Ie);function pt(){var be=b.useRef({});function Ye(_t){return be.current[_t]}function et(_t){return function(rt){be.current[_t]=rt}}return[Ye,et]}function Rt(be){var Ye=be.pageXOffset,et="scrollLeft";if(typeof Ye!="number"){var _t=be.document;Ye=_t.documentElement[et],typeof Ye!="number"&&(Ye=_t.body[et])}return Ye}function Ve(be){var Ye,et,_t=be.ownerDocument,rt=_t.body,Ft=_t&&_t.documentElement,qe=be.getBoundingClientRect();return Ye=qe.left,et=qe.top,Ye-=Ft.clientLeft||rt.clientLeft||0,et-=Ft.clientTop||rt.clientTop||0,{left:Ye,top:et}}function Te(be){var Ye=Ve(be),et=be.ownerDocument,_t=et.defaultView||et.parentWindow;return Ye.left+=Rt(_t),Ye.left}var nt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Qe(be,Ye){var et=be.prefixCls,_t=et===void 0?"rc-rate":et,rt=be.className,Ft=be.defaultValue,qe=be.value,Jt=be.count,Dt=Jt===void 0?5:Jt,ae=be.allowHalf,ne=ae===void 0?!1:ae,te=be.allowClear,oe=te===void 0?!0:te,ce=be.keyboard,re=ce===void 0?!0:ce,le=be.character,ge=le===void 0?"\u2605":le,vt=be.characterRender,Re=be.disabled,Ae=be.direction,Ke=Ae===void 0?"ltr":Ae,_e=be.tabIndex,gt=_e===void 0?0:_e,we=be.autoFocus,Pe=be.onHoverChange,Zt=be.onChange,Ht=be.onFocus,rn=be.onBlur,Yt=be.onKeyDown,Ot=be.onMouseLeave,nn=(0,Lt.Z)(be,nt),Wt=pt(),He=(0,ke.Z)(Wt,2),mt=He[0],ot=He[1],Tt=b.useRef(null),Ne=function(){if(!Re){var Gn;(Gn=Tt.current)===null||Gn===void 0||Gn.focus()}};b.useImperativeHandle(Ye,function(){return{focus:Ne,blur:function(){if(!Re){var Gn;(Gn=Tt.current)===null||Gn===void 0||Gn.blur()}}}});var dt=(0,at.Z)(Ft||0,{value:qe}),wt=(0,ke.Z)(dt,2),Kt=wt[0],sn=wt[1],bn=(0,at.Z)(null),An=(0,ke.Z)(bn,2),zn=An[0],pn=An[1],Tn=function(Gn,ct){var yt=Ke==="rtl",Fe=Gn+1;if(ne){var lt=mt(Gn),ze=Te(lt),xt=lt.clientWidth;(yt&&ct-ze>xt/2||!yt&&ct-ze<xt/2)&&(Fe-=.5)}return Fe},un=function(Gn){sn(Gn),Zt==null||Zt(Gn)},Sn=b.useState(!1),Mn=(0,ke.Z)(Sn,2),Rn=Mn[0],vn=Mn[1],tn=function(){vn(!0),Ht==null||Ht()},en=function(){vn(!1),rn==null||rn()},cn=b.useState(null),En=(0,ke.Z)(cn,2),$n=En[0],Zn=En[1],Nn=function(Gn,ct){var yt=Tn(ct,Gn.pageX);yt!==zn&&(Zn(yt),pn(null)),Pe==null||Pe(yt)},Fn=function(Gn){Re||(Zn(null),pn(null),Pe==null||Pe(void 0)),Gn&&(Ot==null||Ot(Gn))},qn=function(Gn,ct){var yt=Tn(ct,Gn.pageX),Fe=!1;oe&&(Fe=yt===Kt),Fn(),un(Fe?0:yt),pn(Fe?yt:null)},er=function(Gn){var ct=Gn.keyCode,yt=Ke==="rtl",Fe=ne?.5:1;re&&(ct===$e.Z.RIGHT&&Kt<Dt&&!yt?(un(Kt+Fe),Gn.preventDefault()):ct===$e.Z.LEFT&&Kt>0&&!yt||ct===$e.Z.RIGHT&&Kt>0&&yt?(un(Kt-Fe),Gn.preventDefault()):ct===$e.Z.LEFT&&Kt<Dt&&yt&&(un(Kt+Fe),Gn.preventDefault())),Yt==null||Yt(Gn)};b.useEffect(function(){we&&!Re&&Ne()},[]);var on=new Array(Dt).fill(0).map(function(Un,Gn){return b.createElement(Xe,{ref:ot(Gn),index:Gn,count:Dt,disabled:Re,prefixCls:"".concat(_t,"-star"),allowHalf:ne,value:$n===null?Kt:$n,onClick:qn,onHover:Nn,key:Un||Gn,character:ge,characterRender:vt,focused:Rn})}),xn=ue()(_t,rt,(0,tt.Z)((0,tt.Z)({},"".concat(_t,"-disabled"),Re),"".concat(_t,"-rtl"),Ke==="rtl"));return b.createElement("ul",(0,je.Z)({className:xn,onMouseLeave:Fn,tabIndex:Re?-1:gt,onFocus:Re?null:tn,onBlur:Re?null:en,onKeyDown:Re?null:er,ref:Tt},(0,Me.Z)(nn,{aria:!0,data:!0,attr:!0})),on)}var zt=b.forwardRef(Qe),St=zt,it=ee(48755),ut=ee(25399),Se=ee(36237),st=ee(63356),Je=ee(16931),de=ee(51636);const Mt=be=>{const{componentCls:Ye}=be;return{[`${Ye}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:be.marginXS},"> div":{transition:`all ${be.motionDurationMid}, outline 0s`,"&:hover":{transform:be.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Se.unit)(be.lineWidth)} dashed ${be.starColor}`,transform:be.starHoverScale}},"&-first, &-second":{color:be.starBg,transition:`all ${be.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ye}-star-first, &-half ${Ye}-star-second`]:{opacity:1},[`&-half ${Ye}-star-first, &-full ${Ye}-star-second`]:{color:"inherit"}}}},We=be=>({[`&-rtl${be.componentCls}`]:{direction:"rtl"}}),Pt=be=>{const{componentCls:Ye}=be;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,st.Wf)(be)),{display:"inline-block",margin:0,padding:0,color:be.starColor,fontSize:be.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ye} ${Ye}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Mt(be)),We(be))}},Xt=be=>({starColor:be.yellow6,starSize:be.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:be.colorFillContent});var Be=(0,Je.I$)("Rate",be=>{const Ye=(0,de.mergeToken)(be,{});return[Pt(Ye)]},Xt),me=ee(2171),ht=function(be,Ye){var et={};for(var _t in be)Object.prototype.hasOwnProperty.call(be,_t)&&Ye.indexOf(_t)<0&&(et[_t]=be[_t]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,_t=Object.getOwnPropertySymbols(be);rt<_t.length;rt++)Ye.indexOf(_t[rt])<0&&Object.prototype.propertyIsEnumerable.call(be,_t[rt])&&(et[_t[rt]]=be[_t[rt]]);return et},Bt=b.forwardRef((be,Ye)=>{const{prefixCls:et,className:_t,rootClassName:rt,style:Ft,tooltips:qe,character:Jt=b.createElement(Ze,null),disabled:Dt}=be,ae=ht(be,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(_e,gt)=>{let{index:we}=gt;return qe?b.createElement(ut.Z,{title:qe[we]},_e):_e},{getPrefixCls:te,direction:oe,rate:ce}=b.useContext(it.E_),re=te("rate",et),[le,ge,vt]=Be(re),Re=Object.assign(Object.assign({},ce==null?void 0:ce.style),Ft),Ae=b.useContext(me.Z),Ke=Dt!=null?Dt:Ae;return le(b.createElement(St,Object.assign({ref:Ye,character:Jt,characterRender:ne,disabled:Ke},ae,{className:ue()(_t,rt,ge,vt,ce==null?void 0:ce.className),style:Re,prefixCls:re,direction:oe})))})},82326:function(yn,Qt,ee){"use strict";var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(37463),Oe=ee(2738),ye=ee(75030),De=ee(86641),Ze=ee(45915),Ce=ee(82855),ue=ee(48755),tt=ee(38406),ke=ee(2171),Lt=ee(83397),at=ee(31756),$e=ee(56553),Me=ee(24971),Ie=ee(70045),Xe=ee(57700),pt=ee(1722),Rt=ee(90376),Ve=ee(68525),Te=ee(90005),nt=function(ut,Se){var st={};for(var Je in ut)Object.prototype.hasOwnProperty.call(ut,Je)&&Se.indexOf(Je)<0&&(st[Je]=ut[Je]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Je=Object.getOwnPropertySymbols(ut);de<Je.length;de++)Se.indexOf(Je[de])<0&&Object.prototype.propertyIsEnumerable.call(ut,Je[de])&&(st[Je[de]]=ut[Je[de]]);return st};const Qe="SECRET_COMBOBOX_MODE_DO_NOT_USE",zt=(ut,Se)=>{var st;const{prefixCls:Je,bordered:de,className:Mt,rootClassName:We,getPopupContainer:Pt,popupClassName:Xt,dropdownClassName:Be,listHeight:me=256,placement:ht,listItemHeight:Ut,size:Bt,disabled:be,notFoundContent:Ye,status:et,builtinPlacements:_t,dropdownMatchSelectWidth:rt,popupMatchSelectWidth:Ft,direction:qe,style:Jt,allowClear:Dt,variant:ae,dropdownStyle:ne,transitionName:te,tagRender:oe,maxCount:ce,prefix:re}=ut,le=nt(ut,["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:ge,getPrefixCls:vt,renderEmpty:Re,direction:Ae,virtual:Ke,popupMatchSelectWidth:_e,popupOverflow:gt}=b.useContext(ue.E_),we=(0,ue.dj)("select"),[,Pe]=(0,Xe.ZP)(),Zt=Ut!=null?Ut:Pe==null?void 0:Pe.controlHeight,Ht=vt("select",Je),rn=vt(),Yt=qe!=null?qe:Ae,{compactSize:Ot,compactItemClassnames:nn}=(0,Ie.ri)(Ht,Yt),[Wt,He]=(0,Me.Z)("select",ae,de),mt=(0,Lt.Z)(Ht),[ot,Tt,Ne]=(0,Rt.Z)(Ht,mt),dt=b.useMemo(()=>{const{mode:er}=ut;if(er!=="combobox")return er===Qe?"combobox":er},[ut.mode]),wt=dt==="multiple"||dt==="tags",Kt=(0,Te.Z)(ut.suffixIcon,ut.showArrow),sn=(st=Ft!=null?Ft:rt)!==null&&st!==void 0?st:_e,{status:bn,hasFeedback:An,isFormItemInput:zn,feedbackIcon:pn}=b.useContext($e.aM),Tn=(0,Ce.F)(bn,et);let un;Ye!==void 0?un=Ye:dt==="combobox"?un=null:un=(Re==null?void 0:Re("Select"))||b.createElement(tt.Z,{componentName:"Select"});const{suffixIcon:Sn,itemIcon:Mn,removeIcon:Rn,clearIcon:vn}=(0,Ve.Z)(Object.assign(Object.assign({},le),{multiple:wt,hasFeedback:An,feedbackIcon:pn,showSuffixIcon:Kt,prefixCls:Ht,componentName:"Select"})),tn=Dt===!0?{clearIcon:vn}:Dt,en=(0,Oe.Z)(le,["suffixIcon","itemIcon"]),cn=fe()(Xt||Be,{[`${Ht}-dropdown-${Yt}`]:Yt==="rtl"},We,Ne,mt,Tt),En=(0,at.Z)(er=>{var on;return(on=Bt!=null?Bt:Ot)!==null&&on!==void 0?on:er}),$n=b.useContext(ke.Z),Zn=be!=null?be:$n,Nn=fe()({[`${Ht}-lg`]:En==="large",[`${Ht}-sm`]:En==="small",[`${Ht}-rtl`]:Yt==="rtl",[`${Ht}-${Wt}`]:He,[`${Ht}-in-form-item`]:zn},(0,Ce.Z)(Ht,Tn,An),nn,we.className,Mt,We,Ne,mt,Tt),Fn=b.useMemo(()=>ht!==void 0?ht:Yt==="rtl"?"bottomRight":"bottomLeft",[ht,Yt]),[qn]=(0,ye.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return ot(b.createElement(Ge.ZP,Object.assign({ref:Se,virtual:Ke,showSearch:we.showSearch},en,{style:Object.assign(Object.assign({},we.style),Jt),dropdownMatchSelectWidth:sn,transitionName:(0,De.m)(rn,"slide-up",te),builtinPlacements:(0,pt.Z)(_t,gt),listHeight:me,listItemHeight:Zt,mode:dt,prefixCls:Ht,placement:Fn,direction:Yt,prefix:re,suffixIcon:Sn,menuItemSelectedIcon:Mn,removeIcon:Rn,allowClear:tn,notFoundContent:un,className:Nn,getPopupContainer:Pt||ge,dropdownClassName:cn,disabled:Zn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:qn}),maxCount:wt?ce:void 0,tagRender:wt?oe:void 0})))},St=b.forwardRef(zt),it=(0,Ze.Z)(St,"dropdownAlign");St.SECRET_COMBOBOX_MODE_DO_NOT_USE=Qe,St.Option=Ge.Wx,St.OptGroup=Ge.Xo,St._InternalPanelDoNotUseOrYouWillBeFired=it,Qt.default=St},1722:function(yn,Qt){"use strict";const ee=je=>{const Ge={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:je==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Ge),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ge),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ge),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ge),{points:["br","tr"],offset:[0,-4]})}};function b(je,fe){return je||ee(fe)}Qt.Z=b},90376:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Je}});var b=ee(63356),je=ee(56119),fe=ee(16931),Ge=ee(51636),Oe=ee(46e3),ye=ee(93873);const De=de=>{const{optionHeight:Mt,optionFontSize:We,optionLineHeight:Pt,optionPadding:Xt}=de;return{position:"relative",display:"block",minHeight:Mt,padding:Xt,color:de.colorText,fontWeight:"normal",fontSize:We,lineHeight:Pt,boxSizing:"border-box"}};var Ce=de=>{const{antCls:Mt,componentCls:We}=de,Pt=`${We}-item`,Xt=`&${Mt}-slide-up-enter${Mt}-slide-up-enter-active`,Be=`&${Mt}-slide-up-appear${Mt}-slide-up-appear-active`,me=`&${Mt}-slide-up-leave${Mt}-slide-up-leave-active`,ht=`${We}-dropdown-placement-`,Ut=`${Pt}-option-selected`;return[{[`${We}-dropdown`]:Object.assign(Object.assign({},(0,b.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,[`
|
|
|
${Xt}${ht}bottomLeft,
|
|
|
${Be}${ht}bottomLeft
|
|
|
`]:{animationName:Oe.fJ},[`
|
|
|
${Xt}${ht}topLeft,
|
|
|
${Be}${ht}topLeft,
|
|
|
${Xt}${ht}topRight,
|
|
|
${Be}${ht}topRight
|
|
|
`]:{animationName:Oe.Qt},[`${me}${ht}bottomLeft`]:{animationName:Oe.Uw},[`
|
|
|
${me}${ht}topLeft,
|
|
|
${me}${ht}topRight
|
|
|
`]:{animationName:Oe.ly},"&-hidden":{display:"none"},[Pt]:Object.assign(Object.assign({},De(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"},b.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Pt}-option-disabled)`]:{backgroundColor:de.optionActiveBg},[`&-selected:not(${Pt}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${Pt}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${Pt}-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({},De(de)),{color:de.colorTextDisabled})}),[`${Ut}:has(+ ${Ut})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ut}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Oe.oN)(de,"slide-up"),(0,Oe.oN)(de,"slide-down"),(0,ye.Fm)(de,"move-up"),(0,ye.Fm)(de,"move-down")]},ue=ee(26743),tt=ee(36237);function ke(de,Mt){const{componentCls:We,inputPaddingHorizontalBase:Pt,borderRadius:Xt}=de,Be=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),me=Mt?`${We}-${Mt}`:"";return{[`${We}-single${me}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${We}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(de,!0)),{display:"flex",borderRadius:Xt,flex:"1 1 auto",[`${We}-selection-wrap:after`]:{lineHeight:(0,tt.unit)(Be)},[`${We}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${We}-selection-item,
|
|
|
${We}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,tt.unit)(Be),transition:`all ${de.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${We}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${We}-selection-item:empty:after`,`${We}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${We}-show-arrow ${We}-selection-item,
|
|
|
&${We}-show-arrow ${We}-selection-search,
|
|
|
&${We}-show-arrow ${We}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.showArrowPaddingInlineEnd},[`&${We}-open ${We}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${We}-customize-input)`]:{[`${We}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,tt.unit)(Pt)}`,[`${We}-selection-search-input`]:{height:Be,fontSize:de.fontSize},"&:after":{lineHeight:(0,tt.unit)(Be)}}},[`&${We}-customize-input`]:{[`${We}-selector`]:{"&:after":{display:"none"},[`${We}-selection-search`]:{position:"static",width:"100%"},[`${We}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,tt.unit)(Pt)}`,"&:after":{display:"none"}}}}}}}function Lt(de){const{componentCls:Mt}=de,We=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[ke(de),ke((0,Ge.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${Mt}-single${Mt}-sm`]:{[`&:not(${Mt}-customize-input)`]:{[`${Mt}-selector`]:{padding:`0 ${(0,tt.unit)(We)}`},[`&${Mt}-show-arrow ${Mt}-selection-search`]:{insetInlineEnd:de.calc(We).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Mt}-show-arrow ${Mt}-selection-item,
|
|
|
&${Mt}-show-arrow ${Mt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},ke((0,Ge.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const at=de=>{const{fontSize:Mt,lineHeight:We,lineWidth:Pt,controlHeight:Xt,controlHeightSM:Be,controlHeightLG:me,paddingXXS:ht,controlPaddingHorizontal:Ut,zIndexPopupBase:Bt,colorText:be,fontWeightStrong:Ye,controlItemBgActive:et,controlItemBgHover:_t,colorBgContainer:rt,colorFillSecondary:Ft,colorBgContainerDisabled:qe,colorTextDisabled:Jt,colorPrimaryHover:Dt,colorPrimary:ae,controlOutline:ne}=de,te=ht*2,oe=Pt*2,ce=Math.min(Xt-te,Xt-oe),re=Math.min(Be-te,Be-oe),le=Math.min(me-te,me-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(ht/2),zIndexPopup:Bt+50,optionSelectedColor:be,optionSelectedFontWeight:Ye,optionSelectedBg:et,optionActiveBg:_t,optionPadding:`${(Xt-Mt*We)/2}px ${Ut}px`,optionFontSize:Mt,optionLineHeight:We,optionHeight:Xt,selectorBg:rt,clearBg:rt,singleItemHeightLG:me,multipleItemBg:Ft,multipleItemBorderColor:"transparent",multipleItemHeight:ce,multipleItemHeightSM:re,multipleItemHeightLG:le,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:Jt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:Dt,activeBorderColor:ae,activeOutlineColor:ne,selectAffixPadding:ht}},$e=(de,Mt)=>{const{componentCls:We,antCls:Pt,controlOutlineWidth:Xt}=de;return{[`&:not(${We}-customize-input) ${We}-selector`]:{border:`${(0,tt.unit)(de.lineWidth)} ${de.lineType} ${Mt.borderColor}`,background:de.selectorBg},[`&:not(${We}-disabled):not(${We}-customize-input):not(${Pt}-pagination-size-changer)`]:{[`&:hover ${We}-selector`]:{borderColor:Mt.hoverBorderHover},[`${We}-focused& ${We}-selector`]:{borderColor:Mt.activeBorderColor,boxShadow:`0 0 0 ${(0,tt.unit)(Xt)} ${Mt.activeOutlineColor}`,outline:0},[`${We}-prefix`]:{color:Mt.color}}}},Me=(de,Mt)=>({[`&${de.componentCls}-status-${Mt.status}`]:Object.assign({},$e(de,Mt))}),Ie=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},$e(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),Me(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),Me(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,tt.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),Xe=(de,Mt)=>{const{componentCls:We,antCls:Pt}=de;return{[`&:not(${We}-customize-input) ${We}-selector`]:{background:Mt.bg,border:`${(0,tt.unit)(de.lineWidth)} ${de.lineType} transparent`,color:Mt.color},[`&:not(${We}-disabled):not(${We}-customize-input):not(${Pt}-pagination-size-changer)`]:{[`&:hover ${We}-selector`]:{background:Mt.hoverBg},[`${We}-focused& ${We}-selector`]:{background:de.selectorBg,borderColor:Mt.activeBorderColor,outline:0}}}},pt=(de,Mt)=>({[`&${de.componentCls}-status-${Mt.status}`]:Object.assign({},Xe(de,Mt))}),Rt=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Xe(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),pt(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),pt(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,tt.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),Ve=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,tt.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,tt.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}}}}),Te=(de,Mt)=>{const{componentCls:We,antCls:Pt}=de;return{[`&:not(${We}-customize-input) ${We}-selector`]:{borderWidth:`0 0 ${(0,tt.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:Mt.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${We}-disabled):not(${We}-customize-input):not(${Pt}-pagination-size-changer)`]:{[`&:hover ${We}-selector`]:{borderColor:Mt.hoverBorderHover},[`${We}-focused& ${We}-selector`]:{borderColor:Mt.activeBorderColor,outline:0},[`${We}-prefix`]:{color:Mt.color}}}},nt=(de,Mt)=>({[`&${de.componentCls}-status-${Mt.status}`]:Object.assign({},Te(de,Mt))}),Qe=de=>({"&-underlined":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})),nt(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),nt(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,tt.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var St=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ie(de)),Rt(de)),Ve(de)),Qe(de))});const it=de=>{const{componentCls:Mt}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${Mt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Mt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ut=de=>{const{componentCls:Mt}=de;return{[`${Mt}-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"}}}},Se=de=>{const{antCls:Mt,componentCls:We,inputPaddingHorizontalBase:Pt,iconCls:Xt}=de;return{[We]:Object.assign(Object.assign({},(0,b.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${We}-customize-input) ${We}-selector`]:Object.assign(Object.assign({},it(de)),ut(de)),[`${We}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},b.vS),{[`> ${Mt}-typography`]:{display:"inline"}}),[`${We}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${We}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Pt,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`,[Xt]:{verticalAlign:"top",transition:`transform ${de.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${We}-suffix)`]:{pointerEvents:"auto"}},[`${We}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${We}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${We}-prefix`]:{flex:"none",marginInlineEnd:de.selectAffixPadding},[`${We}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Pt,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 ${We}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${We}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${We}-has-feedback`]:{[`${We}-clear`]:{insetInlineEnd:de.calc(Pt).add(de.fontSize).add(de.paddingXS).equal()}}}}}},st=de=>{const{componentCls:Mt}=de;return[{[Mt]:{[`&${Mt}-in-form-item`]:{width:"100%"}}},Se(de),Lt(de),(0,ue.ZP)(de),Ce(de),{[`${Mt}-rtl`]:{direction:"rtl"}},(0,je.c)(de,{borderElCls:`${Mt}-selector`,focusElCls:`${Mt}-focused`})]};var Je=(0,fe.I$)("Select",(de,Mt)=>{let{rootPrefixCls:We}=Mt;const Pt=(0,Ge.mergeToken)(de,{rootPrefixCls:We,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[st(Pt),St(Pt)]},at,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(yn,Qt,ee){"use strict";ee.d(Qt,{_z:function(){return ye},gp:function(){return Ge}});var b=ee(36237),je=ee(63356),fe=ee(51636);const Ge=ue=>{const{multipleSelectItemHeight:tt,paddingXXS:ke,lineWidth:Lt,INTERNAL_FIXED_ITEM_MARGIN:at}=ue,$e=ue.max(ue.calc(ke).sub(Lt).equal(),0),Me=ue.max(ue.calc($e).sub(at).equal(),0);return{basePadding:$e,containerPadding:Me,itemHeight:(0,b.unit)(tt),itemLineHeight:(0,b.unit)(ue.calc(tt).sub(ue.calc(ue.lineWidth).mul(2)).equal())}},Oe=ue=>{const{multipleSelectItemHeight:tt,selectHeight:ke,lineWidth:Lt}=ue;return ue.calc(ke).sub(tt).div(2).sub(Lt).equal()},ye=ue=>{const{componentCls:tt,iconCls:ke,borderRadiusSM:Lt,motionDurationSlow:at,paddingXS:$e,multipleItemColorDisabled:Me,multipleItemBorderColorDisabled:Ie,colorIcon:Xe,colorIconHover:pt,INTERNAL_FIXED_ITEM_MARGIN:Rt}=ue;return{[`${tt}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${tt}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Rt,borderRadius:Lt,cursor:"default",transition:`font-size ${at}, line-height ${at}, height ${at}`,marginInlineEnd:ue.calc(Rt).mul(2).equal(),paddingInlineStart:$e,paddingInlineEnd:ue.calc($e).div(2).equal(),[`${tt}-disabled&`]:{color:Me,borderColor:Ie,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ue.calc($e).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,je.Ro)()),{display:"inline-flex",alignItems:"center",color:Xe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ke}`]:{verticalAlign:"-0.2em"},"&:hover":{color:pt}})}}}},De=(ue,tt)=>{const{componentCls:ke,INTERNAL_FIXED_ITEM_MARGIN:Lt}=ue,at=`${ke}-selection-overflow`,$e=ue.multipleSelectItemHeight,Me=Oe(ue),Ie=tt?`${ke}-${tt}`:"",Xe=Ge(ue);return{[`${ke}-multiple${Ie}`]:Object.assign(Object.assign({},ye(ue)),{[`${ke}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Xe.basePadding,paddingBlock:Xe.containerPadding,borderRadius:ue.borderRadius,[`${ke}-disabled&`]:{background:ue.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,b.unit)(Lt)} 0`,lineHeight:(0,b.unit)($e),visibility:"hidden",content:'"\\a0"'}},[`${ke}-selection-item`]:{height:Xe.itemHeight,lineHeight:(0,b.unit)(Xe.itemLineHeight)},[`${ke}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,b.unit)($e),marginBlock:Lt}},[`${ke}-prefix`]:{marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(Xe.basePadding).equal()},[`${at}-item + ${at}-item,
|
|
|
${ke}-prefix + ${ke}-selection-wrap
|
|
|
`]:{[`${ke}-selection-search`]:{marginInlineStart:0},[`${ke}-selection-placeholder`]:{insetInlineStart:0}},[`${at}-item-suffix`]:{minHeight:Xe.itemHeight,marginBlock:Lt},[`${ke}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(Me).equal(),"\n &-input,\n &-mirror\n ":{height:$e,fontFamily:ue.fontFamily,lineHeight:(0,b.unit)($e),transition:`all ${ue.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ke}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(Xe.basePadding).equal(),insetInlineEnd:ue.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ue.motionDurationSlow}`}})}};function Ze(ue,tt){const{componentCls:ke}=ue,Lt=tt?`${ke}-${tt}`:"",at={[`${ke}-multiple${Lt}`]:{fontSize:ue.fontSize,[`${ke}-selector`]:{[`${ke}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${ke}-show-arrow ${ke}-selector,
|
|
|
&${ke}-allow-clear ${ke}-selector
|
|
|
`]:{paddingInlineEnd:ue.calc(ue.fontSizeIcon).add(ue.controlPaddingHorizontal).equal()}}};return[De(ue,tt),at]}const Ce=ue=>{const{componentCls:tt}=ue,ke=(0,fe.mergeToken)(ue,{selectHeight:ue.controlHeightSM,multipleSelectItemHeight:ue.multipleItemHeightSM,borderRadius:ue.borderRadiusSM,borderRadiusSM:ue.borderRadiusXS}),Lt=(0,fe.mergeToken)(ue,{fontSize:ue.fontSizeLG,selectHeight:ue.controlHeightLG,multipleSelectItemHeight:ue.multipleItemHeightLG,borderRadius:ue.borderRadiusLG,borderRadiusSM:ue.borderRadius});return[Ze(ue),Ze(ke,"sm"),{[`${tt}-multiple${tt}-sm`]:{[`${tt}-selection-placeholder`]:{insetInline:ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal()},[`${tt}-selection-search`]:{marginInlineStart:2}}},Ze(Lt,"lg")]};Qt.ZP=Ce},68525:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(59301),je=ee(40001),fe=ee(19248),Ge=ee(99267),Oe=ee(84105),ye=ee(58617),De=ee(47472);function Ze(Ce){let{suffixIcon:ue,clearIcon:tt,menuItemSelectedIcon:ke,removeIcon:Lt,loading:at,multiple:$e,hasFeedback:Me,prefixCls:Ie,showSuffixIcon:Xe,feedbackIcon:pt,showArrow:Rt,componentName:Ve}=Ce;const Te=tt!=null?tt:b.createElement(fe.Z,null),nt=it=>ue===null&&!Me&&!Rt?null:b.createElement(b.Fragment,null,Xe!==!1&&it,Me&&pt);let Qe=null;if(ue!==void 0)Qe=nt(ue);else if(at)Qe=nt(b.createElement(ye.Z,{spin:!0}));else{const it=`${Ie}-suffix`;Qe=ut=>{let{open:Se,showSearch:st}=ut;return nt(Se&&st?b.createElement(De.Z,{className:it}):b.createElement(Oe.Z,{className:it}))}}let zt=null;ke!==void 0?zt=ke:$e?zt=b.createElement(je.Z,null):zt=null;let St=null;return Lt!==void 0?St=Lt:St=b.createElement(Ge.Z,null),{clearIcon:Te,suffixIcon:Qe,itemIcon:zt,removeIcon:St}}},90005:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(je,fe){return fe!==void 0?fe:je!==null}},11938:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ut}});var b=ee(59301),je=ee(40192),fe=ee(22703),Ge=ee(92310),Oe=ee.n(Ge),ye=ee(26112),De=ee(48755),Ze=ee(458),ue=Se=>{const{value:st,formatter:Je,precision:de,decimalSeparator:Mt,groupSeparator:We="",prefixCls:Pt}=Se;let Xt;if(typeof Je=="function")Xt=Je(st);else{const Be=String(st),me=Be.match(/^(-?)(\d*)(\.(\d+))?$/);if(!me||Be==="-")Xt=Be;else{const ht=me[1];let Ut=me[2]||"0",Bt=me[4]||"";Ut=Ut.replace(/\B(?=(\d{3})+(?!\d))/g,We),typeof de=="number"&&(Bt=Bt.padEnd(de,"0").slice(0,de>0?de:0)),Bt&&(Bt=`${Mt}${Bt}`),Xt=[b.createElement("span",{key:"int",className:`${Pt}-content-value-int`},ht,Ut),Bt&&b.createElement("span",{key:"decimal",className:`${Pt}-content-value-decimal`},Bt)]}}return b.createElement("span",{className:`${Pt}-content-value`},Xt)},tt=ee(63356),ke=ee(16931),Lt=ee(51636);const at=Se=>{const{componentCls:st,marginXXS:Je,padding:de,colorTextDescription:Mt,titleFontSize:We,colorTextHeading:Pt,contentFontSize:Xt,fontFamily:Be}=Se;return{[st]:Object.assign(Object.assign({},(0,tt.Wf)(Se)),{[`${st}-title`]:{marginBottom:Je,color:Mt,fontSize:We},[`${st}-skeleton`]:{paddingTop:de},[`${st}-content`]:{color:Pt,fontSize:Xt,fontFamily:Be,[`${st}-content-value`]:{display:"inline-block",direction:"ltr"},[`${st}-content-prefix, ${st}-content-suffix`]:{display:"inline-block"},[`${st}-content-prefix`]:{marginInlineEnd:Je},[`${st}-content-suffix`]:{marginInlineStart:Je}}})}},$e=Se=>{const{fontSizeHeading3:st,fontSize:Je}=Se;return{titleFontSize:Je,contentFontSize:st}};var Me=(0,ke.I$)("Statistic",Se=>{const st=(0,Lt.mergeToken)(Se,{});return[at(st)]},$e),Ie=function(Se,st){var Je={};for(var de in Se)Object.prototype.hasOwnProperty.call(Se,de)&&st.indexOf(de)<0&&(Je[de]=Se[de]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,de=Object.getOwnPropertySymbols(Se);Mt<de.length;Mt++)st.indexOf(de[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Se,de[Mt])&&(Je[de[Mt]]=Se[de[Mt]]);return Je},pt=Se=>{const{prefixCls:st,className:Je,rootClassName:de,style:Mt,valueStyle:We,value:Pt=0,title:Xt,valueRender:Be,prefix:me,suffix:ht,loading:Ut=!1,formatter:Bt,precision:be,decimalSeparator:Ye=".",groupSeparator:et=",",onMouseEnter:_t,onMouseLeave:rt}=Se,Ft=Ie(Se,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:qe,direction:Jt,className:Dt,style:ae}=(0,De.dj)("statistic"),ne=qe("statistic",st),[te,oe,ce]=Me(ne),re=b.createElement(ue,{decimalSeparator:Ye,groupSeparator:et,prefixCls:ne,formatter:Bt,precision:be,value:Pt}),le=Oe()(ne,{[`${ne}-rtl`]:Jt==="rtl"},Dt,Je,de,oe,ce),ge=(0,ye.Z)(Ft,{aria:!0,data:!0});return te(b.createElement("div",Object.assign({},ge,{className:le,style:Object.assign(Object.assign({},ae),Mt),onMouseEnter:_t,onMouseLeave:rt}),Xt&&b.createElement("div",{className:`${ne}-title`},Xt),b.createElement(Ze.Z,{paragraph:!1,loading:Ut,className:`${ne}-skeleton`},b.createElement("div",{style:We,className:`${ne}-content`},me&&b.createElement("span",{className:`${ne}-content-prefix`},me),Be?Be(re):re,ht&&b.createElement("span",{className:`${ne}-content-suffix`},ht)))))};const Rt=[["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 Ve(Se,st){let Je=Se;const de=/\[[^\]]*]/g,Mt=(st.match(de)||[]).map(Be=>Be.slice(1,-1)),We=st.replace(de,"[]"),Pt=Rt.reduce((Be,me)=>{let[ht,Ut]=me;if(Be.includes(ht)){const Bt=Math.floor(Je/Ut);return Je-=Bt*Ut,Be.replace(new RegExp(`${ht}+`,"g"),be=>{const Ye=be.length;return Bt.toString().padStart(Ye,"0")})}return Be},We);let Xt=0;return Pt.replace(de,()=>{const Be=Mt[Xt];return Xt+=1,Be})}function Te(Se,st){const{format:Je=""}=st,de=new Date(Se).getTime(),Mt=Date.now(),We=Math.max(de-Mt,0);return Ve(We,Je)}var nt=function(Se,st){var Je={};for(var de in Se)Object.prototype.hasOwnProperty.call(Se,de)&&st.indexOf(de)<0&&(Je[de]=Se[de]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,de=Object.getOwnPropertySymbols(Se);Mt<de.length;Mt++)st.indexOf(de[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Se,de[Mt])&&(Je[de[Mt]]=Se[de[Mt]]);return Je};const Qe=1e3/30;function zt(Se){return new Date(Se).getTime()}const St=Se=>{const{value:st,format:Je="HH:mm:ss",onChange:de,onFinish:Mt}=Se,We=nt(Se,["value","format","onChange","onFinish"]),Pt=(0,je.Z)(),Xt=b.useRef(null),Be=()=>{Mt==null||Mt(),Xt.current&&(clearInterval(Xt.current),Xt.current=null)},me=()=>{const Bt=zt(st);Bt>=Date.now()&&(Xt.current=setInterval(()=>{Pt(),de==null||de(Bt-Date.now()),Bt<Date.now()&&Be()},Qe))};b.useEffect(()=>(me(),()=>{Xt.current&&(clearInterval(Xt.current),Xt.current=null)}),[st]);const ht=(Bt,be)=>Te(Bt,Object.assign(Object.assign({},be),{format:Je})),Ut=Bt=>(0,fe.Tm)(Bt,{title:void 0});return b.createElement(pt,Object.assign({},We,{value:st,valueRender:Ut,formatter:ht}))};var it=b.memo(St);pt.Countdown=it;var ut=pt},58755:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Mt}});var b=ee(59301),je=ee(58617),fe=ee(92310),Ge=ee.n(fe),Oe=ee(54476),ye=ee(20068),De=ee(42978),Ze=ee(75931),Ce=ee(18929),ue=ee(10228),tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ke=b.forwardRef(function(We,Pt){var Xt,Be=We.prefixCls,me=Be===void 0?"rc-switch":Be,ht=We.className,Ut=We.checked,Bt=We.defaultChecked,be=We.disabled,Ye=We.loadingIcon,et=We.checkedChildren,_t=We.unCheckedChildren,rt=We.onClick,Ft=We.onChange,qe=We.onKeyDown,Jt=(0,Ze.Z)(We,tt),Dt=(0,Ce.Z)(!1,{value:Ut,defaultValue:Bt}),ae=(0,De.Z)(Dt,2),ne=ae[0],te=ae[1];function oe(ge,vt){var Re=ne;return be||(Re=ge,te(Re),Ft==null||Ft(Re,vt)),Re}function ce(ge){ge.which===ue.Z.LEFT?oe(!1,ge):ge.which===ue.Z.RIGHT&&oe(!0,ge),qe==null||qe(ge)}function re(ge){var vt=oe(!ne,ge);rt==null||rt(vt,ge)}var le=Ge()(me,ht,(Xt={},(0,ye.Z)(Xt,"".concat(me,"-checked"),ne),(0,ye.Z)(Xt,"".concat(me,"-disabled"),be),Xt));return b.createElement("button",(0,Oe.Z)({},Jt,{type:"button",role:"switch","aria-checked":ne,disabled:be,className:le,ref:Pt,onKeyDown:ce,onClick:re}),Ye,b.createElement("span",{className:"".concat(me,"-inner")},b.createElement("span",{className:"".concat(me,"-inner-checked")},et),b.createElement("span",{className:"".concat(me,"-inner-unchecked")},_t)))});ke.displayName="Switch";var Lt=ke,at=ee(12919),$e=ee(48755),Me=ee(2171),Ie=ee(31756),Xe=ee(36237),pt=ee(17835),Rt=ee(63356),Ve=ee(16931),Te=ee(51636);const nt=We=>{const{componentCls:Pt,trackHeightSM:Xt,trackPadding:Be,trackMinWidthSM:me,innerMinMarginSM:ht,innerMaxMarginSM:Ut,handleSizeSM:Bt,calc:be}=We,Ye=`${Pt}-inner`,et=(0,Xe.unit)(be(Bt).add(be(Be).mul(2)).equal()),_t=(0,Xe.unit)(be(Ut).mul(2).equal());return{[Pt]:{[`&${Pt}-small`]:{minWidth:me,height:Xt,lineHeight:(0,Xe.unit)(Xt),[`${Pt}-inner`]:{paddingInlineStart:Ut,paddingInlineEnd:ht,[`${Ye}-checked, ${Ye}-unchecked`]:{minHeight:Xt},[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${et} - ${_t})`,marginInlineEnd:`calc(100% - ${et} + ${_t})`},[`${Ye}-unchecked`]:{marginTop:be(Xt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Pt}-handle`]:{width:Bt,height:Bt},[`${Pt}-loading-icon`]:{top:be(be(Bt).sub(We.switchLoadingIconSize)).div(2).equal(),fontSize:We.switchLoadingIconSize},[`&${Pt}-checked`]:{[`${Pt}-inner`]:{paddingInlineStart:ht,paddingInlineEnd:Ut,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${et} + ${_t})`,marginInlineEnd:`calc(-100% + ${et} - ${_t})`}},[`${Pt}-handle`]:{insetInlineStart:`calc(100% - ${(0,Xe.unit)(be(Bt).add(Be).equal())})`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:be(We.marginXXS).div(2).equal(),marginInlineEnd:be(We.marginXXS).mul(-1).div(2).equal()}},[`&${Pt}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:be(We.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:be(We.marginXXS).div(2).equal()}}}}}}},Qe=We=>{const{componentCls:Pt,handleSize:Xt,calc:Be}=We;return{[Pt]:{[`${Pt}-loading-icon${We.iconCls}`]:{position:"relative",top:Be(Be(Xt).sub(We.fontSize)).div(2).equal(),color:We.switchLoadingIconColor,verticalAlign:"top"},[`&${Pt}-checked ${Pt}-loading-icon`]:{color:We.switchColor}}}},zt=We=>{const{componentCls:Pt,trackPadding:Xt,handleBg:Be,handleShadow:me,handleSize:ht,calc:Ut}=We,Bt=`${Pt}-handle`;return{[Pt]:{[Bt]:{position:"absolute",top:Xt,insetInlineStart:Xt,width:ht,height:ht,transition:`all ${We.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Be,borderRadius:Ut(ht).div(2).equal(),boxShadow:me,transition:`all ${We.switchDuration} ease-in-out`,content:'""'}},[`&${Pt}-checked ${Bt}`]:{insetInlineStart:`calc(100% - ${(0,Xe.unit)(Ut(ht).add(Xt).equal())})`},[`&:not(${Pt}-disabled):active`]:{[`${Bt}::before`]:{insetInlineEnd:We.switchHandleActiveInset,insetInlineStart:0},[`&${Pt}-checked ${Bt}::before`]:{insetInlineEnd:0,insetInlineStart:We.switchHandleActiveInset}}}}},St=We=>{const{componentCls:Pt,trackHeight:Xt,trackPadding:Be,innerMinMargin:me,innerMaxMargin:ht,handleSize:Ut,calc:Bt}=We,be=`${Pt}-inner`,Ye=(0,Xe.unit)(Bt(Ut).add(Bt(Be).mul(2)).equal()),et=(0,Xe.unit)(Bt(ht).mul(2).equal());return{[Pt]:{[be]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:ht,paddingInlineEnd:me,transition:`padding-inline-start ${We.switchDuration} ease-in-out, padding-inline-end ${We.switchDuration} ease-in-out`,[`${be}-checked, ${be}-unchecked`]:{display:"block",color:We.colorTextLightSolid,fontSize:We.fontSizeSM,transition:`margin-inline-start ${We.switchDuration} ease-in-out, margin-inline-end ${We.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Xt},[`${be}-checked`]:{marginInlineStart:`calc(-100% + ${Ye} - ${et})`,marginInlineEnd:`calc(100% - ${Ye} + ${et})`},[`${be}-unchecked`]:{marginTop:Bt(Xt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Pt}-checked ${be}`]:{paddingInlineStart:me,paddingInlineEnd:ht,[`${be}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${be}-unchecked`]:{marginInlineStart:`calc(100% - ${Ye} + ${et})`,marginInlineEnd:`calc(-100% + ${Ye} - ${et})`}},[`&:not(${Pt}-disabled):active`]:{[`&:not(${Pt}-checked) ${be}`]:{[`${be}-unchecked`]:{marginInlineStart:Bt(Be).mul(2).equal(),marginInlineEnd:Bt(Be).mul(-1).mul(2).equal()}},[`&${Pt}-checked ${be}`]:{[`${be}-checked`]:{marginInlineStart:Bt(Be).mul(-1).mul(2).equal(),marginInlineEnd:Bt(Be).mul(2).equal()}}}}}},it=We=>{const{componentCls:Pt,trackHeight:Xt,trackMinWidth:Be}=We;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(We)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Be,height:Xt,lineHeight:(0,Xe.unit)(Xt),verticalAlign:"middle",background:We.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${We.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Pt}-disabled)`]:{background:We.colorTextTertiary}}),(0,Rt.Qy)(We)),{[`&${Pt}-checked`]:{background:We.switchColor,[`&:hover:not(${Pt}-disabled)`]:{background:We.colorPrimaryHover}},[`&${Pt}-loading, &${Pt}-disabled`]:{cursor:"not-allowed",opacity:We.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Pt}-rtl`]:{direction:"rtl"}})}},ut=We=>{const{fontSize:Pt,lineHeight:Xt,controlHeight:Be,colorWhite:me}=We,ht=Pt*Xt,Ut=Be/2,Bt=2,be=ht-Bt*2,Ye=Ut-Bt*2;return{trackHeight:ht,trackHeightSM:Ut,trackMinWidth:be*2+Bt*4,trackMinWidthSM:Ye*2+Bt*2,trackPadding:Bt,handleBg:me,handleSize:be,handleSizeSM:Ye,handleShadow:`0 2px 4px 0 ${new pt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:be/2,innerMaxMargin:be+Bt+Bt*2,innerMinMarginSM:Ye/2,innerMaxMarginSM:Ye+Bt+Bt*2}};var Se=(0,Ve.I$)("Switch",We=>{const Pt=(0,Te.mergeToken)(We,{switchDuration:We.motionDurationMid,switchColor:We.colorPrimary,switchDisabledOpacity:We.opacityLoading,switchLoadingIconSize:We.calc(We.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${We.opacityLoading})`,switchHandleActiveInset:"-30%"});return[it(Pt),St(Pt),zt(Pt),Qe(Pt),nt(Pt)]},ut),st=function(We,Pt){var Xt={};for(var Be in We)Object.prototype.hasOwnProperty.call(We,Be)&&Pt.indexOf(Be)<0&&(Xt[Be]=We[Be]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Be=Object.getOwnPropertySymbols(We);me<Be.length;me++)Pt.indexOf(Be[me])<0&&Object.prototype.propertyIsEnumerable.call(We,Be[me])&&(Xt[Be[me]]=We[Be[me]]);return Xt};const de=b.forwardRef((We,Pt)=>{const{prefixCls:Xt,size:Be,disabled:me,loading:ht,className:Ut,rootClassName:Bt,style:be,checked:Ye,value:et,defaultChecked:_t,defaultValue:rt,onChange:Ft}=We,qe=st(We,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Jt,Dt]=(0,Ce.Z)(!1,{value:Ye!=null?Ye:et,defaultValue:_t!=null?_t:rt}),{getPrefixCls:ae,direction:ne,switch:te}=b.useContext($e.E_),oe=b.useContext(Me.Z),ce=(me!=null?me:oe)||ht,re=ae("switch",Xt),le=b.createElement("div",{className:`${re}-handle`},ht&&b.createElement(je.Z,{className:`${re}-loading-icon`})),[ge,vt,Re]=Se(re),Ae=(0,Ie.Z)(Be),Ke=Ge()(te==null?void 0:te.className,{[`${re}-small`]:Ae==="small",[`${re}-loading`]:ht,[`${re}-rtl`]:ne==="rtl"},Ut,Bt,vt,Re),_e=Object.assign(Object.assign({},te==null?void 0:te.style),be),gt=function(){Dt(arguments.length<=0?void 0:arguments[0]),Ft==null||Ft.apply(void 0,arguments)};return ge(b.createElement(at.Z,{component:"Switch"},b.createElement(Lt,Object.assign({},qe,{checked:Jt,onChange:gt,prefixCls:re,className:Ke,style:_e,disabled:ce,ref:Pt,loadingIcon:le}))))});de.__ANT_SWITCH=!0;var Mt=de},70858:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return mc}});var b=ee(59301),je={},fe="rc-table-internal-hook",Ge=ee(42978),Oe=ee(6089),ye=ee(34280),De=ee(13697),Ze=ee(4676);function Ce(ve){var pe=b.createContext(void 0),Ue=function(Nt){var jt=Nt.value,an=Nt.children,qt=b.useRef(jt);qt.current=jt;var dn=b.useState(function(){return{getValue:function(){return qt.current},listeners:new Set}}),ln=(0,Ge.Z)(dn,1),Ln=ln[0];return(0,ye.Z)(function(){(0,Ze.unstable_batchedUpdates)(function(){Ln.listeners.forEach(function(In){In(jt)})})},[jt]),b.createElement(pe.Provider,{value:Ln},an)};return{Context:pe,Provider:Ue,defaultValue:ve}}function ue(ve,pe){var Ue=(0,Oe.Z)(typeof pe=="function"?pe:function(In){if(pe===void 0)return In;if(!Array.isArray(pe))return In[pe];var Cn={};return pe.forEach(function(mn){Cn[mn]=In[mn]}),Cn}),ft=b.useContext(ve==null?void 0:ve.Context),Nt=ft||{},jt=Nt.listeners,an=Nt.getValue,qt=b.useRef();qt.current=Ue(ft?an():ve==null?void 0:ve.defaultValue);var dn=b.useState({}),ln=(0,Ge.Z)(dn,2),Ln=ln[1];return(0,ye.Z)(function(){if(!ft)return;function In(Cn){var mn=Ue(Cn);(0,De.Z)(qt.current,mn,!0)||Ln({})}return jt.add(In),function(){jt.delete(In)}},[ft]),qt.current}var tt=ee(54476),ke=ee(8654);function Lt(){var ve=b.createContext(null);function pe(){return b.useContext(ve)}function Ue(Nt,jt){var an=(0,ke.Yr)(Nt),qt=function(ln,Ln){var In=an?{ref:Ln}:{},Cn=b.useRef(0),mn=b.useRef(ln),hn=pe();return hn!==null?b.createElement(Nt,(0,tt.Z)({},ln,In)):((!jt||jt(mn.current,ln))&&(Cn.current+=1),mn.current=ln,b.createElement(ve.Provider,{value:Cn.current},b.createElement(Nt,(0,tt.Z)({},ln,In))))};return an?b.forwardRef(qt):qt}function ft(Nt,jt){var an=(0,ke.Yr)(Nt),qt=function(ln,Ln){var In=an?{ref:Ln}:{};return pe(),b.createElement(Nt,(0,tt.Z)({},ln,In))};return an?b.memo(b.forwardRef(qt),jt):b.memo(qt,jt)}return{makeImmutable:Ue,responseImmutable:ft,useImmutableMark:pe}}var at=Lt(),$e=at.makeImmutable,Me=at.responseImmutable,Ie=at.useImmutableMark,Xe=Lt(),pt=Xe.makeImmutable,Rt=Xe.responseImmutable,Ve=Xe.useImmutableMark,Te=Ce(),nt=Te;function Qe(ve,pe){var Ue=React.useRef(0);Ue.current+=1;var ft=React.useRef(ve),Nt=[];Object.keys(ve||{}).map(function(an){var qt;(ve==null?void 0:ve[an])!==((qt=ft.current)===null||qt===void 0?void 0:qt[an])&&Nt.push(an)}),ft.current=ve;var jt=React.useRef([]);return Nt.length&&(jt.current=Nt),React.useDebugValue(Ue.current),React.useDebugValue(jt.current.join(", ")),pe&&console.log("".concat(pe,":"),Ue.current,jt.current),Ue.current}var zt=null,St=null,it=ee(76190),ut=ee(33885),Se=ee(20068),st=ee(92310),Je=ee.n(st),de=ee(80547),Mt=ee(97938),We=ee(48736),Pt=b.createContext({renderWithProps:!1}),Xt=Pt,Be="RC_TABLE_KEY";function me(ve){return ve==null?[]:Array.isArray(ve)?ve:[ve]}function ht(ve){var pe=[],Ue={};return ve.forEach(function(ft){for(var Nt=ft||{},jt=Nt.key,an=Nt.dataIndex,qt=jt||me(an).join("-")||Be;Ue[qt];)qt="".concat(qt,"_next");Ue[qt]=!0,pe.push(qt)}),pe}function Ut(ve){return ve!=null}function Bt(ve){return typeof ve=="number"&&!Number.isNaN(ve)}function be(ve){return ve&&(0,it.Z)(ve)==="object"&&!Array.isArray(ve)&&!b.isValidElement(ve)}function Ye(ve,pe,Ue,ft,Nt,jt){var an=b.useContext(Xt),qt=Ve(),dn=(0,de.Z)(function(){if(Ut(ft))return[ft];var ln=pe==null||pe===""?[]:Array.isArray(pe)?pe:[pe],Ln=(0,Mt.Z)(ve,ln),In=Ln,Cn=void 0;if(Nt){var mn=Nt(Ln,ve,Ue);be(mn)?(In=mn.children,Cn=mn.props,an.renderWithProps=!0):In=mn}return[In,Cn]},[qt,ve,ft,pe,Nt,Ue],function(ln,Ln){if(jt){var In=(0,Ge.Z)(ln,2),Cn=In[1],mn=(0,Ge.Z)(Ln,2),hn=mn[1];return jt(hn,Cn)}return an.renderWithProps?!0:!(0,De.Z)(ln,Ln,!0)});return dn}function et(ve,pe,Ue,ft){var Nt=ve+pe-1;return ve<=ft&&Nt>=Ue}function _t(ve,pe){return ue(nt,function(Ue){var ft=et(ve,pe||1,Ue.hoverStartRow,Ue.hoverEndRow);return[ft,Ue.onHover]})}var rt=ee(70425),Ft=function(pe){var Ue=pe.ellipsis,ft=pe.rowType,Nt=pe.children,jt,an=Ue===!0?{showTitle:!0}:Ue;return an&&(an.showTitle||ft==="header")&&(typeof Nt=="string"||typeof Nt=="number"?jt=Nt.toString():b.isValidElement(Nt)&&typeof Nt.props.children=="string"&&(jt=Nt.props.children)),jt};function qe(ve){var pe,Ue,ft,Nt,jt,an,qt,dn,ln=ve.component,Ln=ve.children,In=ve.ellipsis,Cn=ve.scope,mn=ve.prefixCls,hn=ve.className,ir=ve.align,Wn=ve.record,or=ve.render,dr=ve.dataIndex,ar=ve.renderIndex,vr=ve.shouldCellUpdate,Sr=ve.index,Br=ve.rowType,Dr=ve.colSpan,mi=ve.rowSpan,Xr=ve.fixLeft,zr=ve.fixRight,ii=ve.firstFixLeft,Nr=ve.lastFixLeft,Ar=ve.firstFixRight,gr=ve.lastFixRight,hr=ve.appendNode,Mr=ve.additionalProps,Lr=Mr===void 0?{}:Mr,_r=ve.isSticky,xr="".concat(mn,"-cell"),wi=ue(nt,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Oi=wi.supportSticky,yo=wi.allColumnsFixedLeft,fo=wi.rowHoverable,ro=Ye(Wn,dr,ar,Ln,or,vr),ho=(0,Ge.Z)(ro,2),So=ho[0],Di=ho[1],Ti={},wo=typeof Xr=="number"&&Oi,Ao=typeof zr=="number"&&Oi;wo&&(Ti.position="sticky",Ti.left=Xr),Ao&&(Ti.position="sticky",Ti.right=zr);var jr=(pe=(Ue=(ft=Di==null?void 0:Di.colSpan)!==null&&ft!==void 0?ft:Lr.colSpan)!==null&&Ue!==void 0?Ue:Dr)!==null&&pe!==void 0?pe:1,di=(Nt=(jt=(an=Di==null?void 0:Di.rowSpan)!==null&&an!==void 0?an:Lr.rowSpan)!==null&&jt!==void 0?jt:mi)!==null&&Nt!==void 0?Nt:1,$r=_t(Sr,di),Tr=(0,Ge.Z)($r,2),Li=Tr[0],Ui=Tr[1],co=(0,rt.zX)(function(eo){var Qi;Wn&&Ui(Sr,Sr+di-1),Lr==null||(Qi=Lr.onMouseEnter)===null||Qi===void 0||Qi.call(Lr,eo)}),to=(0,rt.zX)(function(eo){var Qi;Wn&&Ui(-1,-1),Lr==null||(Qi=Lr.onMouseLeave)===null||Qi===void 0||Qi.call(Lr,eo)});if(jr===0||di===0)return null;var Eo=(qt=Lr.title)!==null&&qt!==void 0?qt:Ft({rowType:Br,ellipsis:In,children:So}),Ro=Je()(xr,hn,(dn={},(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)(dn,"".concat(xr,"-fix-left"),wo&&Oi),"".concat(xr,"-fix-left-first"),ii&&Oi),"".concat(xr,"-fix-left-last"),Nr&&Oi),"".concat(xr,"-fix-left-all"),Nr&&yo&&Oi),"".concat(xr,"-fix-right"),Ao&&Oi),"".concat(xr,"-fix-right-first"),Ar&&Oi),"".concat(xr,"-fix-right-last"),gr&&Oi),"".concat(xr,"-ellipsis"),In),"".concat(xr,"-with-append"),hr),"".concat(xr,"-fix-sticky"),(wo||Ao)&&_r&&Oi),(0,Se.Z)(dn,"".concat(xr,"-row-hover"),!Di&&Li)),Lr.className,Di==null?void 0:Di.className),Kr={};ir&&(Kr.textAlign=ir);var ei=(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Di==null?void 0:Di.style),Ti),Kr),Lr.style),Xi=So;return(0,it.Z)(Xi)==="object"&&!Array.isArray(Xi)&&!b.isValidElement(Xi)&&(Xi=null),In&&(Nr||Ar)&&(Xi=b.createElement("span",{className:"".concat(xr,"-content")},Xi)),b.createElement(ln,(0,tt.Z)({},Di,Lr,{className:Ro,style:ei,title:Eo,scope:Cn,onMouseEnter:fo?co:void 0,onMouseLeave:fo?to:void 0,colSpan:jr!==1?jr:null,rowSpan:di!==1?di:null}),hr,Xi)}var Jt=b.memo(qe);function Dt(ve,pe,Ue,ft,Nt){var jt=Ue[ve]||{},an=Ue[pe]||{},qt,dn;jt.fixed==="left"?qt=ft.left[Nt==="rtl"?pe:ve]:an.fixed==="right"&&(dn=ft.right[Nt==="rtl"?ve:pe]);var ln=!1,Ln=!1,In=!1,Cn=!1,mn=Ue[pe+1],hn=Ue[ve-1],ir=mn&&!mn.fixed||hn&&!hn.fixed||Ue.every(function(vr){return vr.fixed==="left"});if(Nt==="rtl"){if(qt!==void 0){var Wn=hn&&hn.fixed==="left";Cn=!Wn&&ir}else if(dn!==void 0){var or=mn&&mn.fixed==="right";In=!or&&ir}}else if(qt!==void 0){var dr=mn&&mn.fixed==="left";ln=!dr&&ir}else if(dn!==void 0){var ar=hn&&hn.fixed==="right";Ln=!ar&&ir}return{fixLeft:qt,fixRight:dn,lastFixLeft:ln,firstFixRight:Ln,lastFixRight:In,firstFixLeft:Cn,isSticky:ft.isSticky}}var ae=b.createContext({}),ne=ae;function te(ve){var pe=ve.className,Ue=ve.index,ft=ve.children,Nt=ve.colSpan,jt=Nt===void 0?1:Nt,an=ve.rowSpan,qt=ve.align,dn=ue(nt,["prefixCls","direction"]),ln=dn.prefixCls,Ln=dn.direction,In=b.useContext(ne),Cn=In.scrollColumnIndex,mn=In.stickyOffsets,hn=In.flattenColumns,ir=Ue+jt-1,Wn=ir+1===Cn?jt+1:jt,or=Dt(Ue,Ue+Wn-1,hn,mn,Ln);return b.createElement(Jt,(0,tt.Z)({className:pe,index:Ue,component:"td",prefixCls:ln,record:null,dataIndex:null,align:qt,colSpan:Wn,rowSpan:an,render:function(){return ft}},or))}var oe=ee(75931),ce=["children"];function re(ve){var pe=ve.children,Ue=(0,oe.Z)(ve,ce);return b.createElement("tr",Ue,pe)}function le(ve){var pe=ve.children;return pe}le.Row=re,le.Cell=te;var ge=le;function vt(ve){var pe=ve.children,Ue=ve.stickyOffsets,ft=ve.flattenColumns,Nt=ue(nt,"prefixCls"),jt=ft.length-1,an=ft[jt],qt=b.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:ft,scrollColumnIndex:an!=null&&an.scrollbar?jt:null}},[an,ft,jt,Ue]);return b.createElement(ne.Provider,{value:qt},b.createElement("tfoot",{className:"".concat(Nt,"-summary")},pe))}var Re=Rt(vt),Ae=ge,Ke=ee(29301),_e=ee(3465),gt=ee(75152),we=ee(26112);function Pe(ve,pe,Ue,ft,Nt,jt,an){ve.push({record:pe,indent:Ue,index:an});var qt=jt(pe),dn=Nt==null?void 0:Nt.has(qt);if(pe&&Array.isArray(pe[ft])&&dn)for(var ln=0;ln<pe[ft].length;ln+=1)Pe(ve,pe[ft][ln],Ue+1,ft,Nt,jt,ln)}function Zt(ve,pe,Ue,ft){var Nt=b.useMemo(function(){if(Ue!=null&&Ue.size){for(var jt=[],an=0;an<(ve==null?void 0:ve.length);an+=1){var qt=ve[an];Pe(jt,qt,0,pe,Ue,ft,an)}return jt}return ve==null?void 0:ve.map(function(dn,ln){return{record:dn,indent:0,index:ln}})},[ve,pe,Ue,ft]);return Nt}function Ht(ve,pe,Ue,ft){var Nt=ue(nt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),jt=Nt.flattenColumns,an=Nt.expandableType,qt=Nt.expandedKeys,dn=Nt.childrenColumnName,ln=Nt.onTriggerExpand,Ln=Nt.rowExpandable,In=Nt.onRow,Cn=Nt.expandRowByClick,mn=Nt.rowClassName,hn=an==="nest",ir=an==="row"&&(!Ln||Ln(ve)),Wn=ir||hn,or=qt&&qt.has(pe),dr=dn&&ve&&ve[dn],ar=(0,rt.zX)(ln),vr=In==null?void 0:In(ve,Ue),Sr=vr==null?void 0:vr.onClick,Br=function(zr){Cn&&Wn&&ln(ve,zr);for(var ii=arguments.length,Nr=new Array(ii>1?ii-1:0),Ar=1;Ar<ii;Ar++)Nr[Ar-1]=arguments[Ar];Sr==null||Sr.apply(void 0,[zr].concat(Nr))},Dr;typeof mn=="string"?Dr=mn:typeof mn=="function"&&(Dr=mn(ve,Ue,ft));var mi=ht(jt);return(0,ut.Z)((0,ut.Z)({},Nt),{},{columnsKey:mi,nestExpandable:hn,expanded:or,hasNestChildren:dr,record:ve,onTriggerExpand:ar,rowSupportExpand:ir,expandable:Wn,rowProps:(0,ut.Z)((0,ut.Z)({},vr),{},{className:Je()(Dr,vr==null?void 0:vr.className),onClick:Br})})}function rn(ve){var pe=ve.prefixCls,Ue=ve.children,ft=ve.component,Nt=ve.cellComponent,jt=ve.className,an=ve.expanded,qt=ve.colSpan,dn=ve.isEmpty,ln=ue(nt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ln=ln.scrollbarSize,In=ln.fixHeader,Cn=ln.fixColumn,mn=ln.componentWidth,hn=ln.horizonScroll,ir=Ue;return(dn?hn&&mn:Cn)&&(ir=b.createElement("div",{style:{width:mn-(In&&!dn?Ln:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(pe,"-expanded-row-fixed")},ir)),b.createElement(ft,{className:jt,style:{display:an?null:"none"}},b.createElement(Jt,{component:Nt,prefixCls:pe,colSpan:qt},ir))}var Yt=rn;function Ot(ve){var pe=ve.prefixCls,Ue=ve.record,ft=ve.onExpand,Nt=ve.expanded,jt=ve.expandable,an="".concat(pe,"-row-expand-icon");if(!jt)return b.createElement("span",{className:Je()(an,"".concat(pe,"-row-spaced"))});var qt=function(ln){ft(Ue,ln),ln.stopPropagation()};return b.createElement("span",{className:Je()(an,(0,Se.Z)((0,Se.Z)({},"".concat(pe,"-row-expanded"),Nt),"".concat(pe,"-row-collapsed"),!Nt)),onClick:qt})}function nn(ve,pe,Ue){var ft=[];function Nt(jt){(jt||[]).forEach(function(an,qt){ft.push(pe(an,qt)),Nt(an[Ue])})}return Nt(ve),ft}function Wt(ve,pe,Ue,ft){return typeof ve=="string"?ve:typeof ve=="function"?ve(pe,Ue,ft):""}function He(ve,pe,Ue,ft,Nt){var jt=ve.record,an=ve.prefixCls,qt=ve.columnsKey,dn=ve.fixedInfoList,ln=ve.expandIconColumnIndex,Ln=ve.nestExpandable,In=ve.indentSize,Cn=ve.expandIcon,mn=ve.expanded,hn=ve.hasNestChildren,ir=ve.onTriggerExpand,Wn=qt[Ue],or=dn[Ue],dr;Ue===(ln||0)&&Ln&&(dr=b.createElement(b.Fragment,null,b.createElement("span",{style:{paddingLeft:"".concat(In*ft,"px")},className:"".concat(an,"-row-indent indent-level-").concat(ft)}),Cn({prefixCls:an,expanded:mn,expandable:hn,record:jt,onExpand:ir})));var ar;return pe.onCell&&(ar=pe.onCell(jt,Nt)),{key:Wn,fixedInfo:or,appendCellNode:dr,additionalCellProps:ar||{}}}function mt(ve){var pe=ve.className,Ue=ve.style,ft=ve.record,Nt=ve.index,jt=ve.renderIndex,an=ve.rowKey,qt=ve.indent,dn=qt===void 0?0:qt,ln=ve.rowComponent,Ln=ve.cellComponent,In=ve.scopeCellComponent,Cn=Ht(ft,an,Nt,dn),mn=Cn.prefixCls,hn=Cn.flattenColumns,ir=Cn.expandedRowClassName,Wn=Cn.expandedRowRender,or=Cn.rowProps,dr=Cn.expanded,ar=Cn.rowSupportExpand,vr=b.useRef(!1);vr.current||(vr.current=dr);var Sr=Wt(ir,ft,Nt,dn),Br=b.createElement(ln,(0,tt.Z)({},or,{"data-row-key":an,className:Je()(pe,"".concat(mn,"-row"),"".concat(mn,"-row-level-").concat(dn),or==null?void 0:or.className,(0,Se.Z)({},Sr,dn>=1)),style:(0,ut.Z)((0,ut.Z)({},Ue),or==null?void 0:or.style)}),hn.map(function(Xr,zr){var ii=Xr.render,Nr=Xr.dataIndex,Ar=Xr.className,gr=He(Cn,Xr,zr,dn,Nt),hr=gr.key,Mr=gr.fixedInfo,Lr=gr.appendCellNode,_r=gr.additionalCellProps;return b.createElement(Jt,(0,tt.Z)({className:Ar,ellipsis:Xr.ellipsis,align:Xr.align,scope:Xr.rowScope,component:Xr.rowScope?In:Ln,prefixCls:mn,key:hr,record:ft,index:Nt,renderIndex:jt,dataIndex:Nr,render:ii,shouldCellUpdate:Xr.shouldCellUpdate},Mr,{appendNode:Lr,additionalProps:_r}))})),Dr;if(ar&&(vr.current||dr)){var mi=Wn(ft,Nt,dn+1,dr);Dr=b.createElement(Yt,{expanded:dr,className:Je()("".concat(mn,"-expanded-row"),"".concat(mn,"-expanded-row-level-").concat(dn+1),Sr),prefixCls:mn,component:ln,cellComponent:Ln,colSpan:hn.length,isEmpty:!1},mi)}return b.createElement(b.Fragment,null,Br,Dr)}var ot=Rt(mt);function Tt(ve){var pe=ve.columnKey,Ue=ve.onColumnResize,ft=b.useRef();return(0,ye.Z)(function(){ft.current&&Ue(pe,ft.current.offsetWidth)},[]),b.createElement(Ke.Z,{data:pe},b.createElement("td",{ref:ft,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ne=ee(29194);function dt(ve){var pe=ve.prefixCls,Ue=ve.columnsKey,ft=ve.onColumnResize,Nt=b.useRef(null);return b.createElement("tr",{"aria-hidden":"true",className:"".concat(pe,"-measure-row"),style:{height:0,fontSize:0},ref:Nt},b.createElement(Ke.Z.Collection,{onBatchResize:function(an){(0,Ne.Z)(Nt.current)&&an.forEach(function(qt){var dn=qt.data,ln=qt.size;ft(dn,ln.offsetWidth)})}},Ue.map(function(jt){return b.createElement(Tt,{key:jt,columnKey:jt,onColumnResize:ft})})))}function wt(ve){var pe=ve.data,Ue=ve.measureColumnWidth,ft=ue(nt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Nt=ft.prefixCls,jt=ft.getComponent,an=ft.onColumnResize,qt=ft.flattenColumns,dn=ft.getRowKey,ln=ft.expandedKeys,Ln=ft.childrenColumnName,In=ft.emptyNode,Cn=Zt(pe,Ln,ln,dn),mn=b.useRef({renderWithProps:!1}),hn=jt(["body","wrapper"],"tbody"),ir=jt(["body","row"],"tr"),Wn=jt(["body","cell"],"td"),or=jt(["body","cell"],"th"),dr;pe.length?dr=Cn.map(function(vr,Sr){var Br=vr.record,Dr=vr.indent,mi=vr.index,Xr=dn(Br,Sr);return b.createElement(ot,{key:Xr,rowKey:Xr,record:Br,index:Sr,renderIndex:mi,rowComponent:ir,cellComponent:Wn,scopeCellComponent:or,indent:Dr})}):dr=b.createElement(Yt,{expanded:!0,className:"".concat(Nt,"-placeholder"),prefixCls:Nt,component:ir,cellComponent:Wn,colSpan:qt.length,isEmpty:!0},In);var ar=ht(qt);return b.createElement(Xt.Provider,{value:mn.current},b.createElement(hn,{className:"".concat(Nt,"-tbody")},Ue&&b.createElement(dt,{prefixCls:Nt,columnsKey:ar,onColumnResize:an}),dr))}var Kt=Rt(wt),sn=["expandable"],bn="RC_TABLE_INTERNAL_COL_DEFINE";function An(ve){var pe=ve.expandable,Ue=(0,oe.Z)(ve,sn),ft;return"expandable"in ve?ft=(0,ut.Z)((0,ut.Z)({},Ue),pe):ft=Ue,ft.showExpandColumn===!1&&(ft.expandIconColumnIndex=-1),ft}var zn=["columnType"];function pn(ve){for(var pe=ve.colWidths,Ue=ve.columns,ft=ve.columCount,Nt=ue(nt,["tableLayout"]),jt=Nt.tableLayout,an=[],qt=ft||Ue.length,dn=!1,ln=qt-1;ln>=0;ln-=1){var Ln=pe[ln],In=Ue&&Ue[ln],Cn=void 0,mn=void 0;if(In&&(Cn=In[bn],jt==="auto"&&(mn=In.minWidth)),Ln||mn||Cn||dn){var hn=Cn||{},ir=hn.columnType,Wn=(0,oe.Z)(hn,zn);an.unshift(b.createElement("col",(0,tt.Z)({key:ln,style:{width:Ln,minWidth:mn}},Wn))),dn=!0}}return b.createElement("colgroup",null,an)}var Tn=pn,un=ee(94480),Sn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Mn(ve,pe){return(0,b.useMemo)(function(){for(var Ue=[],ft=0;ft<pe;ft+=1){var Nt=ve[ft];if(Nt!==void 0)Ue[ft]=Nt;else return null}return Ue},[ve.join("_"),pe])}var Rn=b.forwardRef(function(ve,pe){var Ue=ve.className,ft=ve.noData,Nt=ve.columns,jt=ve.flattenColumns,an=ve.colWidths,qt=ve.columCount,dn=ve.stickyOffsets,ln=ve.direction,Ln=ve.fixHeader,In=ve.stickyTopOffset,Cn=ve.stickyBottomOffset,mn=ve.stickyClassName,hn=ve.onScroll,ir=ve.maxContentScroll,Wn=ve.children,or=(0,oe.Z)(ve,Sn),dr=ue(nt,["prefixCls","scrollbarSize","isSticky","getComponent"]),ar=dr.prefixCls,vr=dr.scrollbarSize,Sr=dr.isSticky,Br=dr.getComponent,Dr=Br(["header","table"],"table"),mi=Sr&&!Ln?0:vr,Xr=b.useRef(null),zr=b.useCallback(function(_r){(0,ke.mH)(pe,_r),(0,ke.mH)(Xr,_r)},[]);b.useEffect(function(){var _r;function xr(wi){var Oi=wi,yo=Oi.currentTarget,fo=Oi.deltaX;fo&&(hn({currentTarget:yo,scrollLeft:yo.scrollLeft+fo}),wi.preventDefault())}return(_r=Xr.current)===null||_r===void 0||_r.addEventListener("wheel",xr,{passive:!1}),function(){var wi;(wi=Xr.current)===null||wi===void 0||wi.removeEventListener("wheel",xr)}},[]);var ii=b.useMemo(function(){return jt.every(function(_r){return _r.width})},[jt]),Nr=jt[jt.length-1],Ar={fixed:Nr?Nr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ar,"-cell-scrollbar")}}},gr=(0,b.useMemo)(function(){return mi?[].concat((0,un.Z)(Nt),[Ar]):Nt},[mi,Nt]),hr=(0,b.useMemo)(function(){return mi?[].concat((0,un.Z)(jt),[Ar]):jt},[mi,jt]),Mr=(0,b.useMemo)(function(){var _r=dn.right,xr=dn.left;return(0,ut.Z)((0,ut.Z)({},dn),{},{left:ln==="rtl"?[].concat((0,un.Z)(xr.map(function(wi){return wi+mi})),[0]):xr,right:ln==="rtl"?_r:[].concat((0,un.Z)(_r.map(function(wi){return wi+mi})),[0]),isSticky:Sr})},[mi,dn,Sr]),Lr=Mn(an,qt);return b.createElement("div",{style:(0,ut.Z)({overflow:"hidden"},Sr?{top:In,bottom:Cn}:{}),ref:zr,className:Je()(Ue,(0,Se.Z)({},mn,!!mn))},b.createElement(Dr,{style:{tableLayout:"fixed",visibility:ft||Lr?null:"hidden"}},(!ft||!ir||ii)&&b.createElement(Tn,{colWidths:Lr?[].concat((0,un.Z)(Lr),[mi]):[],columCount:qt+1,columns:hr}),Wn((0,ut.Z)((0,ut.Z)({},or),{},{stickyOffsets:Mr,columns:gr,flattenColumns:hr}))))}),vn=b.memo(Rn),tn=function(pe){var Ue=pe.cells,ft=pe.stickyOffsets,Nt=pe.flattenColumns,jt=pe.rowComponent,an=pe.cellComponent,qt=pe.onHeaderRow,dn=pe.index,ln=ue(nt,["prefixCls","direction"]),Ln=ln.prefixCls,In=ln.direction,Cn;qt&&(Cn=qt(Ue.map(function(hn){return hn.column}),dn));var mn=ht(Ue.map(function(hn){return hn.column}));return b.createElement(jt,Cn,Ue.map(function(hn,ir){var Wn=hn.column,or=Dt(hn.colStart,hn.colEnd,Nt,ft,In),dr;return Wn&&Wn.onHeaderCell&&(dr=hn.column.onHeaderCell(Wn)),b.createElement(Jt,(0,tt.Z)({},hn,{scope:Wn.title?hn.colSpan>1?"colgroup":"col":null,ellipsis:Wn.ellipsis,align:Wn.align,component:an,prefixCls:Ln,key:mn[ir]},or,{additionalProps:dr,rowType:"header"}))}))},en=tn;function cn(ve){var pe=[];function Ue(an,qt){var dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;pe[dn]=pe[dn]||[];var ln=qt,Ln=an.filter(Boolean).map(function(In){var Cn={key:In.key,className:In.className||"",children:In.title,column:In,colStart:ln},mn=1,hn=In.children;return hn&&hn.length>0&&(mn=Ue(hn,ln,dn+1).reduce(function(ir,Wn){return ir+Wn},0),Cn.hasSubColumns=!0),"colSpan"in In&&(mn=In.colSpan),"rowSpan"in In&&(Cn.rowSpan=In.rowSpan),Cn.colSpan=mn,Cn.colEnd=Cn.colStart+mn-1,pe[dn].push(Cn),ln+=mn,mn});return Ln}Ue(ve,0);for(var ft=pe.length,Nt=function(qt){pe[qt].forEach(function(dn){!("rowSpan"in dn)&&!dn.hasSubColumns&&(dn.rowSpan=ft-qt)})},jt=0;jt<ft;jt+=1)Nt(jt);return pe}var En=function(pe){var Ue=pe.stickyOffsets,ft=pe.columns,Nt=pe.flattenColumns,jt=pe.onHeaderRow,an=ue(nt,["prefixCls","getComponent"]),qt=an.prefixCls,dn=an.getComponent,ln=b.useMemo(function(){return cn(ft)},[ft]),Ln=dn(["header","wrapper"],"thead"),In=dn(["header","row"],"tr"),Cn=dn(["header","cell"],"th");return b.createElement(Ln,{className:"".concat(qt,"-thead")},ln.map(function(mn,hn){var ir=b.createElement(en,{key:hn,flattenColumns:Nt,cells:mn,stickyOffsets:Ue,rowComponent:In,cellComponent:Cn,onHeaderRow:jt,index:hn});return ir}))},$n=Rt(En),Zn=ee(11592);function Nn(ve){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof pe=="number"?pe:pe.endsWith("%")?ve*parseFloat(pe)/100:null}function Fn(ve,pe,Ue){return b.useMemo(function(){if(pe&&pe>0){var ft=0,Nt=0;ve.forEach(function(Cn){var mn=Nn(pe,Cn.width);mn?ft+=mn:Nt+=1});var jt=Math.max(pe,Ue),an=Math.max(jt-ft,Nt),qt=Nt,dn=an/Nt,ln=0,Ln=ve.map(function(Cn){var mn=(0,ut.Z)({},Cn),hn=Nn(pe,mn.width);if(hn)mn.width=hn;else{var ir=Math.floor(dn);mn.width=qt===1?an:ir,an-=ir,qt-=1}return ln+=mn.width,mn});if(ln<jt){var In=jt/ln;an=jt,Ln.forEach(function(Cn,mn){var hn=Math.floor(Cn.width*In);Cn.width=mn===Ln.length-1?an:hn,an-=hn})}return[Ln,Math.max(ln,jt)]}return[ve,pe]},[ve,pe,Ue])}var qn=["children"],er=["fixed"];function on(ve){return(0,Zn.Z)(ve).filter(function(pe){return b.isValidElement(pe)}).map(function(pe){var Ue=pe.key,ft=pe.props,Nt=ft.children,jt=(0,oe.Z)(ft,qn),an=(0,ut.Z)({key:Ue},jt);return Nt&&(an.children=on(Nt)),an})}function xn(ve){return ve.filter(function(pe){return pe&&(0,it.Z)(pe)==="object"&&!pe.hidden}).map(function(pe){var Ue=pe.children;return Ue&&Ue.length>0?(0,ut.Z)((0,ut.Z)({},pe),{},{children:xn(Ue)}):pe})}function Un(ve){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ve.filter(function(Ue){return Ue&&(0,it.Z)(Ue)==="object"}).reduce(function(Ue,ft,Nt){var jt=ft.fixed,an=jt===!0?"left":jt,qt="".concat(pe,"-").concat(Nt),dn=ft.children;return dn&&dn.length>0?[].concat((0,un.Z)(Ue),(0,un.Z)(Un(dn,qt).map(function(ln){return(0,ut.Z)({fixed:an},ln)}))):[].concat((0,un.Z)(Ue),[(0,ut.Z)((0,ut.Z)({key:qt},ft),{},{fixed:an})])},[])}function Gn(ve){return ve.map(function(pe){var Ue=pe.fixed,ft=(0,oe.Z)(pe,er),Nt=Ue;return Ue==="left"?Nt="right":Ue==="right"&&(Nt="left"),(0,ut.Z)({fixed:Nt},ft)})}function ct(ve,pe){var Ue=ve.prefixCls,ft=ve.columns,Nt=ve.children,jt=ve.expandable,an=ve.expandedKeys,qt=ve.columnTitle,dn=ve.getRowKey,ln=ve.onTriggerExpand,Ln=ve.expandIcon,In=ve.rowExpandable,Cn=ve.expandIconColumnIndex,mn=ve.direction,hn=ve.expandRowByClick,ir=ve.columnWidth,Wn=ve.fixed,or=ve.scrollWidth,dr=ve.clientWidth,ar=b.useMemo(function(){var Nr=ft||on(Nt)||[];return xn(Nr.slice())},[ft,Nt]),vr=b.useMemo(function(){if(jt){var Nr=ar.slice();if(!Nr.includes(je)){var Ar=Cn||0;Ar>=0&&(Ar||Wn==="left"||!Wn)&&Nr.splice(Ar,0,je),Wn==="right"&&Nr.splice(ar.length,0,je)}var gr=Nr.indexOf(je);Nr=Nr.filter(function(_r,xr){return _r!==je||xr===gr});var hr=ar[gr],Mr;Wn?Mr=Wn:Mr=hr?hr.fixed:null;var Lr=(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},bn,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",qt),"fixed",Mr),"className","".concat(Ue,"-row-expand-icon-cell")),"width",ir),"render",function(xr,wi,Oi){var yo=dn(wi,Oi),fo=an.has(yo),ro=In?In(wi):!0,ho=Ln({prefixCls:Ue,expanded:fo,expandable:ro,record:wi,onExpand:ln});return hn?b.createElement("span",{onClick:function(Di){return Di.stopPropagation()}},ho):ho});return Nr.map(function(_r){return _r===je?Lr:_r})}return ar.filter(function(_r){return _r!==je})},[jt,ar,dn,an,Ln,mn]),Sr=b.useMemo(function(){var Nr=vr;return pe&&(Nr=pe(Nr)),Nr.length||(Nr=[{render:function(){return null}}]),Nr},[pe,vr,mn]),Br=b.useMemo(function(){return mn==="rtl"?Gn(Un(Sr)):Un(Sr)},[Sr,mn,or]),Dr=b.useMemo(function(){for(var Nr=-1,Ar=Br.length-1;Ar>=0;Ar-=1){var gr=Br[Ar].fixed;if(gr==="left"||gr===!0){Nr=Ar;break}}if(Nr>=0)for(var hr=0;hr<=Nr;hr+=1){var Mr=Br[hr].fixed;if(Mr!=="left"&&Mr!==!0)return!0}var Lr=Br.findIndex(function(wi){var Oi=wi.fixed;return Oi==="right"});if(Lr>=0)for(var _r=Lr;_r<Br.length;_r+=1){var xr=Br[_r].fixed;if(xr!=="right")return!0}return!1},[Br]),mi=Fn(Br,or,dr),Xr=(0,Ge.Z)(mi,2),zr=Xr[0],ii=Xr[1];return[Sr,zr,ii,Dr]}var yt=ct;function Fe(ve,pe,Ue){var ft=An(ve),Nt=ft.expandIcon,jt=ft.expandedRowKeys,an=ft.defaultExpandedRowKeys,qt=ft.defaultExpandAllRows,dn=ft.expandedRowRender,ln=ft.onExpand,Ln=ft.onExpandedRowsChange,In=ft.childrenColumnName,Cn=Nt||Ot,mn=In||"children",hn=b.useMemo(function(){return dn?"row":ve.expandable&&ve.internalHooks===fe&&ve.expandable.__PARENT_RENDER_ICON__||pe.some(function(Sr){return Sr&&(0,it.Z)(Sr)==="object"&&Sr[mn]})?"nest":!1},[!!dn,pe]),ir=b.useState(function(){return an||(qt?nn(pe,Ue,mn):[])}),Wn=(0,Ge.Z)(ir,2),or=Wn[0],dr=Wn[1],ar=b.useMemo(function(){return new Set(jt||or||[])},[jt,or]),vr=b.useCallback(function(Sr){var Br=Ue(Sr,pe.indexOf(Sr)),Dr,mi=ar.has(Br);mi?(ar.delete(Br),Dr=(0,un.Z)(ar)):Dr=[].concat((0,un.Z)(ar),[Br]),dr(Dr),ln&&ln(!mi,Sr),Ln&&Ln(Dr)},[Ue,ar,pe,ln,Ln]);return[ft,hn,ar,Cn,mn,vr]}function lt(ve,pe,Ue){var ft=ve.map(function(Nt,jt){return Dt(jt,jt,ve,pe,Ue)});return(0,de.Z)(function(){return ft},[ft],function(Nt,jt){return!(0,De.Z)(Nt,jt)})}function ze(ve){var pe=(0,b.useRef)(ve),Ue=(0,b.useState)({}),ft=(0,Ge.Z)(Ue,2),Nt=ft[1],jt=(0,b.useRef)(null),an=(0,b.useRef)([]);function qt(dn){an.current.push(dn);var ln=Promise.resolve();jt.current=ln,ln.then(function(){if(jt.current===ln){var Ln=an.current,In=pe.current;an.current=[],Ln.forEach(function(Cn){pe.current=Cn(pe.current)}),jt.current=null,In!==pe.current&&Nt({})}})}return(0,b.useEffect)(function(){return function(){jt.current=null}},[]),[pe.current,qt]}function xt(ve){var pe=(0,b.useRef)(ve||null),Ue=(0,b.useRef)();function ft(){window.clearTimeout(Ue.current)}function Nt(an){pe.current=an,ft(),Ue.current=window.setTimeout(function(){pe.current=null,Ue.current=void 0},100)}function jt(){return pe.current}return(0,b.useEffect)(function(){return ft},[]),[Nt,jt]}function Ee(){var ve=b.useState(-1),pe=(0,Ge.Z)(ve,2),Ue=pe[0],ft=pe[1],Nt=b.useState(-1),jt=(0,Ge.Z)(Nt,2),an=jt[0],qt=jt[1],dn=b.useCallback(function(ln,Ln){ft(ln),qt(Ln)},[]);return[Ue,an,dn]}var It=ee(47273),kt=(0,It.Z)()?window:null;function Vt(ve,pe){var Ue=(0,it.Z)(ve)==="object"?ve:{},ft=Ue.offsetHeader,Nt=ft===void 0?0:ft,jt=Ue.offsetSummary,an=jt===void 0?0:jt,qt=Ue.offsetScroll,dn=qt===void 0?0:qt,ln=Ue.getContainer,Ln=ln===void 0?function(){return kt}:ln,In=Ln()||kt,Cn=!!ve;return b.useMemo(function(){return{isSticky:Cn,stickyClassName:Cn?"".concat(pe,"-sticky-holder"):"",offsetHeader:Nt,offsetSummary:an,offsetScroll:dn,container:In}},[Cn,dn,Nt,an,pe,In])}function bt(ve,pe,Ue){var ft=(0,b.useMemo)(function(){var Nt=pe.length,jt=function(ln,Ln,In){for(var Cn=[],mn=0,hn=ln;hn!==Ln;hn+=In)Cn.push(mn),pe[hn].fixed&&(mn+=ve[hn]||0);return Cn},an=jt(0,Nt,1),qt=jt(Nt-1,-1,-1).reverse();return Ue==="rtl"?{left:qt,right:an}:{left:an,right:qt}},[ve,pe,Ue]);return ft}var Ct=bt;function Et(ve){var pe=ve.className,Ue=ve.children;return b.createElement("div",{className:pe},Ue)}var $t=Et,Pn=ee(8224),wn=ee(16089),Dn=ee(76846);function nr(ve){var pe=(0,Dn.bn)(ve),Ue=pe.getBoundingClientRect(),ft=document.documentElement;return{left:Ue.left+(window.pageXOffset||ft.scrollLeft)-(ft.clientLeft||document.body.clientLeft||0),top:Ue.top+(window.pageYOffset||ft.scrollTop)-(ft.clientTop||document.body.clientTop||0)}}var sr=function(pe,Ue){var ft,Nt,jt=pe.scrollBodyRef,an=pe.onScroll,qt=pe.offsetScroll,dn=pe.container,ln=pe.direction,Ln=ue(nt,"prefixCls"),In=((ft=jt.current)===null||ft===void 0?void 0:ft.scrollWidth)||0,Cn=((Nt=jt.current)===null||Nt===void 0?void 0:Nt.clientWidth)||0,mn=In&&Cn*(Cn/In),hn=b.useRef(),ir=ze({scrollLeft:0,isHiddenScrollBar:!0}),Wn=(0,Ge.Z)(ir,2),or=Wn[0],dr=Wn[1],ar=b.useRef({delta:0,x:0}),vr=b.useState(!1),Sr=(0,Ge.Z)(vr,2),Br=Sr[0],Dr=Sr[1],mi=b.useRef(null);b.useEffect(function(){return function(){wn.Z.cancel(mi.current)}},[]);var Xr=function(){Dr(!1)},zr=function(hr){hr.persist(),ar.current.delta=hr.pageX-or.scrollLeft,ar.current.x=0,Dr(!0),hr.preventDefault()},ii=function(hr){var Mr,Lr=hr||((Mr=window)===null||Mr===void 0?void 0:Mr.event),_r=Lr.buttons;if(!Br||_r===0){Br&&Dr(!1);return}var xr=ar.current.x+hr.pageX-ar.current.x-ar.current.delta,wi=ln==="rtl";xr=Math.max(wi?mn-Cn:0,Math.min(wi?0:Cn-mn,xr));var Oi=!wi||Math.abs(xr)+Math.abs(mn)<Cn;Oi&&(an({scrollLeft:xr/Cn*(In+2)}),ar.current.x=hr.pageX)},Nr=function(){wn.Z.cancel(mi.current),mi.current=(0,wn.Z)(function(){if(jt.current){var hr=nr(jt.current).top,Mr=hr+jt.current.offsetHeight,Lr=dn===window?document.documentElement.scrollTop+window.innerHeight:nr(dn).top+dn.clientHeight;Mr-(0,gt.Z)()<=Lr||hr>=Lr-qt?dr(function(_r){return(0,ut.Z)((0,ut.Z)({},_r),{},{isHiddenScrollBar:!0})}):dr(function(_r){return(0,ut.Z)((0,ut.Z)({},_r),{},{isHiddenScrollBar:!1})})}})},Ar=function(hr){dr(function(Mr){return(0,ut.Z)((0,ut.Z)({},Mr),{},{scrollLeft:hr/In*Cn||0})})};return b.useImperativeHandle(Ue,function(){return{setScrollLeft:Ar,checkScrollBarVisible:Nr}}),b.useEffect(function(){var gr=(0,Pn.Z)(document.body,"mouseup",Xr,!1),hr=(0,Pn.Z)(document.body,"mousemove",ii,!1);return Nr(),function(){gr.remove(),hr.remove()}},[mn,Br]),b.useEffect(function(){if(jt.current){for(var gr=[],hr=(0,Dn.bn)(jt.current);hr;)gr.push(hr),hr=hr.parentElement;return gr.forEach(function(Mr){return Mr.addEventListener("scroll",Nr,!1)}),window.addEventListener("resize",Nr,!1),window.addEventListener("scroll",Nr,!1),dn.addEventListener("scroll",Nr,!1),function(){gr.forEach(function(Mr){return Mr.removeEventListener("scroll",Nr)}),window.removeEventListener("resize",Nr),window.removeEventListener("scroll",Nr),dn.removeEventListener("scroll",Nr)}}},[dn]),b.useEffect(function(){or.isHiddenScrollBar||dr(function(gr){var hr=jt.current;return hr?(0,ut.Z)((0,ut.Z)({},gr),{},{scrollLeft:hr.scrollLeft/hr.scrollWidth*hr.clientWidth}):gr})},[or.isHiddenScrollBar]),In<=Cn||!mn||or.isHiddenScrollBar?null:b.createElement("div",{style:{height:(0,gt.Z)(),width:Cn,bottom:qt},className:"".concat(Ln,"-sticky-scroll")},b.createElement("div",{onMouseDown:zr,ref:hn,className:Je()("".concat(Ln,"-sticky-scroll-bar"),(0,Se.Z)({},"".concat(Ln,"-sticky-scroll-bar-active"),Br)),style:{width:"".concat(mn,"px"),transform:"translate3d(".concat(or.scrollLeft,"px, 0, 0)")}}))},fr=b.forwardRef(sr);function Qn(ve){return null}var _n=Qn;function Jn(ve){return null}var ur=Jn,Er="rc-table",Cr=[],wr={};function Yn(){return"No Data"}function yr(ve,pe){var Ue=(0,ut.Z)({rowKey:"key",prefixCls:Er,emptyText:Yn},ve),ft=Ue.prefixCls,Nt=Ue.className,jt=Ue.rowClassName,an=Ue.style,qt=Ue.data,dn=Ue.rowKey,ln=Ue.scroll,Ln=Ue.tableLayout,In=Ue.direction,Cn=Ue.title,mn=Ue.footer,hn=Ue.summary,ir=Ue.caption,Wn=Ue.id,or=Ue.showHeader,dr=Ue.components,ar=Ue.emptyText,vr=Ue.onRow,Sr=Ue.onHeaderRow,Br=Ue.onScroll,Dr=Ue.internalHooks,mi=Ue.transformColumns,Xr=Ue.internalRefs,zr=Ue.tailor,ii=Ue.getContainerWidth,Nr=Ue.sticky,Ar=Ue.rowHoverable,gr=Ar===void 0?!0:Ar,hr=qt||Cr,Mr=!!hr.length,Lr=Dr===fe,_r=b.useCallback(function(ji,Gi){return(0,Mt.Z)(dr,ji)||Gi},[dr]),xr=b.useMemo(function(){return typeof dn=="function"?dn:function(ji){var Gi=ji&&ji[dn];return Gi}},[dn]),wi=_r(["body"]),Oi=Ee(),yo=(0,Ge.Z)(Oi,3),fo=yo[0],ro=yo[1],ho=yo[2],So=Fe(Ue,hr,xr),Di=(0,Ge.Z)(So,6),Ti=Di[0],wo=Di[1],Ao=Di[2],jr=Di[3],di=Di[4],$r=Di[5],Tr=ln==null?void 0:ln.x,Li=b.useState(0),Ui=(0,Ge.Z)(Li,2),co=Ui[0],to=Ui[1],Eo=yt((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ue),Ti),{},{expandable:!!Ti.expandedRowRender,columnTitle:Ti.columnTitle,expandedKeys:Ao,getRowKey:xr,onTriggerExpand:$r,expandIcon:jr,expandIconColumnIndex:Ti.expandIconColumnIndex,direction:In,scrollWidth:Lr&&zr&&typeof Tr=="number"?Tr:null,clientWidth:co}),Lr?mi:null),Ro=(0,Ge.Z)(Eo,4),Kr=Ro[0],ei=Ro[1],Xi=Ro[2],eo=Ro[3],Qi=Xi!=null?Xi:Tr,zo=b.useMemo(function(){return{columns:Kr,flattenColumns:ei}},[Kr,ei]),Io=b.useRef(),va=b.useRef(),po=b.useRef(),zi=b.useRef();b.useImperativeHandle(pe,function(){return{nativeElement:Io.current,scrollTo:function(Gi){var ta;if(po.current instanceof HTMLElement){var Ia=Gi.index,na=Gi.top,Ml=Gi.key;if(Bt(na)){var sl;(sl=po.current)===null||sl===void 0||sl.scrollTo({top:na})}else{var Ja,Bl=Ml!=null?Ml:xr(hr[Ia]);(Ja=po.current.querySelector('[data-row-key="'.concat(Bl,'"]')))===null||Ja===void 0||Ja.scrollIntoView()}}else(ta=po.current)!==null&&ta!==void 0&&ta.scrollTo&&po.current.scrollTo(Gi)}}});var no=b.useRef(),io=b.useState(!1),Fo=(0,Ge.Z)(io,2),bo=Fo[0],Hi=Fo[1],mo=b.useState(!1),_i=(0,Ge.Z)(mo,2),Jo=_i[0],ko=_i[1],ua=b.useState(new Map),ga=(0,Ge.Z)(ua,2),Ga=ga[0],oo=ga[1],Wl=ht(ei),da=Wl.map(function(ji){return Ga.get(ji)}),Aa=b.useMemo(function(){return da},[da.join("_")]),wa=Ct(Aa,ei,In),ya=ln&&Ut(ln.y),ao=ln&&Ut(Qi)||!!Ti.fixed,Ea=ao&&ei.some(function(ji){var Gi=ji.fixed;return Gi}),al=b.useRef(),Xa=Vt(Nr,ft),_a=Xa.isSticky,is=Xa.offsetHeader,os=Xa.offsetSummary,as=Xa.offsetScroll,ls=Xa.stickyClassName,Is=Xa.container,yi=b.useMemo(function(){return hn==null?void 0:hn(hr)},[hn,hr]),ki=(ya||_a)&&b.isValidElement(yi)&&yi.type===ge&&yi.props.fixed,vo,Po,Go;ya&&(Po={overflowY:Mr?"scroll":"auto",maxHeight:ln.y}),ao&&(vo={overflowX:"auto"},ya||(Po={overflowY:"hidden"}),Go={width:Qi===!0?"auto":Qi,minWidth:"100%"});var Ho=b.useCallback(function(ji,Gi){oo(function(ta){if(ta.get(ji)!==Gi){var Ia=new Map(ta);return Ia.set(ji,Gi),Ia}return ta})},[]),$a=xt(null),ea=(0,Ge.Z)($a,2),Dl=ea[0],Ps=ea[1];function Kl(ji,Gi){Gi&&(typeof Gi=="function"?Gi(ji):Gi.scrollLeft!==ji&&(Gi.scrollLeft=ji,Gi.scrollLeft!==ji&&setTimeout(function(){Gi.scrollLeft=ji},0)))}var vl=(0,Oe.Z)(function(ji){var Gi=ji.currentTarget,ta=ji.scrollLeft,Ia=In==="rtl",na=typeof ta=="number"?ta:Gi.scrollLeft,Ml=Gi||wr;if(!Ps()||Ps()===Ml){var sl;Dl(Ml),Kl(na,va.current),Kl(na,po.current),Kl(na,no.current),Kl(na,(sl=al.current)===null||sl===void 0?void 0:sl.setScrollLeft)}var Ja=Gi||va.current;if(Ja){var Bl=Lr&&zr&&typeof Qi=="number"?Qi:Ja.scrollWidth,$s=Ja.clientWidth;if(Bl===$s){Hi(!1),ko(!1);return}Ia?(Hi(-na<Bl-$s),ko(-na>0)):(Hi(na>0),ko(na<Bl-$s))}}),ss=(0,Oe.Z)(function(ji){vl(ji),Br==null||Br(ji)}),gl=function(){if(ao&&po.current){var Gi;vl({currentTarget:(0,Dn.bn)(po.current),scrollLeft:(Gi=po.current)===null||Gi===void 0?void 0:Gi.scrollLeft})}else Hi(!1),ko(!1)},Os=function(Gi){var ta,Ia=Gi.width;(ta=al.current)===null||ta===void 0||ta.checkScrollBarVisible();var na=Io.current?Io.current.offsetWidth:Ia;Lr&&ii&&Io.current&&(na=ii(Io.current,na)||na),na!==co&&(gl(),to(na))},cs=b.useRef(!1);b.useEffect(function(){cs.current&&gl()},[ao,qt,Kr.length]),b.useEffect(function(){cs.current=!0},[]);var Ds=b.useState(0),Qs=(0,Ge.Z)(Ds,2),ll=Qs[0],Ts=Qs[1],vc=b.useState(!0),Ms=(0,Ge.Z)(vc,2),Vl=Ms[0],gc=Ms[1];(0,ye.Z)(function(){(!zr||!Lr)&&(po.current instanceof Element?Ts((0,gt.o)(po.current).width):Ts((0,gt.o)(zi.current).width)),gc((0,_e.G)("position","sticky"))},[]),b.useEffect(function(){Lr&&Xr&&(Xr.body.current=po.current)});var yc=b.useCallback(function(ji){return b.createElement(b.Fragment,null,b.createElement($n,ji),ki==="top"&&b.createElement(Re,ji,yi))},[ki,yi]),Ul=b.useCallback(function(ji){return b.createElement(Re,ji,yi)},[yi]),Bs=_r(["table"],"table"),Gl=b.useMemo(function(){return Ln||(Ea?Qi==="max-content"?"auto":"fixed":ya||_a||ei.some(function(ji){var Gi=ji.ellipsis;return Gi})?"fixed":"auto")},[ya,Ea,ei,Ln,_a]),Ns,Xl={colWidths:Aa,columCount:ei.length,stickyOffsets:wa,onHeaderRow:Sr,fixHeader:ya,scroll:ln},As=b.useMemo(function(){return Mr?null:typeof ar=="function"?ar():ar},[Mr,ar]),Js=b.createElement(Kt,{data:hr,measureColumnWidth:ya||ao||_a}),ks=b.createElement(Tn,{colWidths:ei.map(function(ji){var Gi=ji.width;return Gi}),columns:ei}),Ls=ir!=null?b.createElement("caption",{className:"".concat(ft,"-caption")},ir):void 0,bc=(0,we.Z)(Ue,{data:!0}),us=(0,we.Z)(Ue,{aria:!0});if(ya||_a){var yl;typeof wi=="function"?(yl=wi(hr,{scrollbarSize:ll,ref:po,onScroll:vl}),Xl.colWidths=ei.map(function(ji,Gi){var ta=ji.width,Ia=Gi===ei.length-1?ta-ll:ta;return typeof Ia=="number"&&!Number.isNaN(Ia)?Ia:0})):yl=b.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},vo),Po),onScroll:ss,ref:po,className:Je()("".concat(ft,"-body"))},b.createElement(Bs,(0,tt.Z)({style:(0,ut.Z)((0,ut.Z)({},Go),{},{tableLayout:Gl})},us),Ls,ks,Js,!ki&&yi&&b.createElement(Re,{stickyOffsets:wa,flattenColumns:ei},yi)));var Tl=(0,ut.Z)((0,ut.Z)((0,ut.Z)({noData:!hr.length,maxContentScroll:ao&&Qi==="max-content"},Xl),zo),{},{direction:In,stickyClassName:ls,onScroll:vl});Ns=b.createElement(b.Fragment,null,or!==!1&&b.createElement(vn,(0,tt.Z)({},Tl,{stickyTopOffset:is,className:"".concat(ft,"-header"),ref:va}),yc),yl,ki&&ki!=="top"&&b.createElement(vn,(0,tt.Z)({},Tl,{stickyBottomOffset:os,className:"".concat(ft,"-summary"),ref:no}),Ul),_a&&po.current&&po.current instanceof Element&&b.createElement(fr,{ref:al,offsetScroll:as,scrollBodyRef:po,onScroll:vl,container:Is,direction:In}))}else Ns=b.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},vo),Po),className:Je()("".concat(ft,"-content")),onScroll:vl,ref:po},b.createElement(Bs,(0,tt.Z)({style:(0,ut.Z)((0,ut.Z)({},Go),{},{tableLayout:Gl})},us),Ls,ks,or!==!1&&b.createElement($n,(0,tt.Z)({},Xl,zo)),Js,yi&&b.createElement(Re,{stickyOffsets:wa,flattenColumns:ei},yi)));var Rs=b.createElement("div",(0,tt.Z)({className:Je()(ft,Nt,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(ft,"-rtl"),In==="rtl"),"".concat(ft,"-ping-left"),bo),"".concat(ft,"-ping-right"),Jo),"".concat(ft,"-layout-fixed"),Ln==="fixed"),"".concat(ft,"-fixed-header"),ya),"".concat(ft,"-fixed-column"),Ea),"".concat(ft,"-fixed-column-gapped"),Ea&&eo),"".concat(ft,"-scroll-horizontal"),ao),"".concat(ft,"-has-fix-left"),ei[0]&&ei[0].fixed),"".concat(ft,"-has-fix-right"),ei[ei.length-1]&&ei[ei.length-1].fixed==="right")),style:an,id:Wn,ref:Io},bc),Cn&&b.createElement($t,{className:"".concat(ft,"-title")},Cn(hr)),b.createElement("div",{ref:zi,className:"".concat(ft,"-container")},Ns),mn&&b.createElement($t,{className:"".concat(ft,"-footer")},mn(hr)));ao&&(Rs=b.createElement(Ke.Z,{onResize:Os},Rs));var Fs=lt(ei,wa,In),xc=b.useMemo(function(){return{scrollX:Qi,prefixCls:ft,getComponent:_r,scrollbarSize:ll,direction:In,fixedInfoList:Fs,isSticky:_a,supportSticky:Vl,componentWidth:co,fixHeader:ya,fixColumn:Ea,horizonScroll:ao,tableLayout:Gl,rowClassName:jt,expandedRowClassName:Ti.expandedRowClassName,expandIcon:jr,expandableType:wo,expandRowByClick:Ti.expandRowByClick,expandedRowRender:Ti.expandedRowRender,onTriggerExpand:$r,expandIconColumnIndex:Ti.expandIconColumnIndex,indentSize:Ti.indentSize,allColumnsFixedLeft:ei.every(function(ji){return ji.fixed==="left"}),emptyNode:As,columns:Kr,flattenColumns:ei,onColumnResize:Ho,hoverStartRow:fo,hoverEndRow:ro,onHover:ho,rowExpandable:Ti.rowExpandable,onRow:vr,getRowKey:xr,expandedKeys:Ao,childrenColumnName:di,rowHoverable:gr}},[Qi,ft,_r,ll,In,Fs,_a,Vl,co,ya,Ea,ao,Gl,jt,Ti.expandedRowClassName,jr,wo,Ti.expandRowByClick,Ti.expandedRowRender,$r,Ti.expandIconColumnIndex,Ti.indentSize,As,Kr,ei,Ho,fo,ro,ho,Ti.rowExpandable,vr,xr,Ao,di,gr]);return b.createElement(nt.Provider,{value:xc},Rs)}var mr=b.forwardRef(yr);function Vr(ve){return pt(mr,ve)}var Yr=Vr();Yr.EXPAND_COLUMN=je,Yr.INTERNAL_HOOKS=fe,Yr.Column=_n,Yr.ColumnGroup=ur,Yr.Summary=Ae;var Ur=Yr,Gr=ee(48911),oi=Ce(null),Zr=Ce(null);function Jr(ve,pe,Ue){var ft=pe||1;return Ue[ve+ft]-(Ue[ve]||0)}function Or(ve){var pe=ve.rowInfo,Ue=ve.column,ft=ve.colIndex,Nt=ve.indent,jt=ve.index,an=ve.component,qt=ve.renderIndex,dn=ve.record,ln=ve.style,Ln=ve.className,In=ve.inverse,Cn=ve.getHeight,mn=Ue.render,hn=Ue.dataIndex,ir=Ue.className,Wn=Ue.width,or=ue(Zr,["columnsOffset"]),dr=or.columnsOffset,ar=He(pe,Ue,ft,Nt,jt),vr=ar.key,Sr=ar.fixedInfo,Br=ar.appendCellNode,Dr=ar.additionalCellProps,mi=Dr.style,Xr=Dr.colSpan,zr=Xr===void 0?1:Xr,ii=Dr.rowSpan,Nr=ii===void 0?1:ii,Ar=ft-1,gr=Jr(Ar,zr,dr),hr=zr>1?Wn-gr:0,Mr=(0,ut.Z)((0,ut.Z)((0,ut.Z)({},mi),ln),{},{flex:"0 0 ".concat(gr,"px"),width:"".concat(gr,"px"),marginRight:hr,pointerEvents:"auto"}),Lr=b.useMemo(function(){return In?Nr<=1:zr===0||Nr===0||Nr>1},[Nr,zr,In]);Lr?Mr.visibility="hidden":In&&(Mr.height=Cn==null?void 0:Cn(Nr));var _r=Lr?function(){return null}:mn,xr={};return(Nr===0||zr===0)&&(xr.rowSpan=1,xr.colSpan=1),b.createElement(Jt,(0,tt.Z)({className:Je()(ir,Ln),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:an,prefixCls:pe.prefixCls,key:vr,record:dn,index:jt,renderIndex:qt,dataIndex:hn,render:_r,shouldCellUpdate:Ue.shouldCellUpdate},Sr,{appendNode:Br,additionalProps:(0,ut.Z)((0,ut.Z)({},Dr),{},{style:Mr},xr)}))}var ti=Or,ci=["data","index","className","rowKey","style","extra","getHeight"],Fi=b.forwardRef(function(ve,pe){var Ue=ve.data,ft=ve.index,Nt=ve.className,jt=ve.rowKey,an=ve.style,qt=ve.extra,dn=ve.getHeight,ln=(0,oe.Z)(ve,ci),Ln=Ue.record,In=Ue.indent,Cn=Ue.index,mn=ue(nt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),hn=mn.scrollX,ir=mn.flattenColumns,Wn=mn.prefixCls,or=mn.fixColumn,dr=mn.componentWidth,ar=ue(oi,["getComponent"]),vr=ar.getComponent,Sr=Ht(Ln,jt,ft,In),Br=vr(["body","row"],"div"),Dr=vr(["body","cell"],"div"),mi=Sr.rowSupportExpand,Xr=Sr.expanded,zr=Sr.rowProps,ii=Sr.expandedRowRender,Nr=Sr.expandedRowClassName,Ar;if(mi&&Xr){var gr=ii(Ln,ft,In+1,Xr),hr=Wt(Nr,Ln,ft,In),Mr={};or&&(Mr={style:(0,Se.Z)({},"--virtual-width","".concat(dr,"px"))});var Lr="".concat(Wn,"-expanded-row-cell");Ar=b.createElement(Br,{className:Je()("".concat(Wn,"-expanded-row"),"".concat(Wn,"-expanded-row-level-").concat(In+1),hr)},b.createElement(Jt,{component:Dr,prefixCls:Wn,className:Je()(Lr,(0,Se.Z)({},"".concat(Lr,"-fixed"),or)),additionalProps:Mr},gr))}var _r=(0,ut.Z)((0,ut.Z)({},an),{},{width:hn});qt&&(_r.position="absolute",_r.pointerEvents="none");var xr=b.createElement(Br,(0,tt.Z)({},zr,ln,{"data-row-key":jt,ref:mi?null:pe,className:Je()(Nt,"".concat(Wn,"-row"),zr==null?void 0:zr.className,(0,Se.Z)({},"".concat(Wn,"-row-extra"),qt)),style:(0,ut.Z)((0,ut.Z)({},_r),zr==null?void 0:zr.style)}),ir.map(function(wi,Oi){return b.createElement(ti,{key:Oi,component:Dr,rowInfo:Sr,column:wi,colIndex:Oi,indent:In,index:ft,renderIndex:Cn,record:Ln,inverse:qt,getHeight:dn})}));return mi?b.createElement("div",{ref:pe},xr,Ar):xr}),vi=Rt(Fi),xi=vi,hi=b.forwardRef(function(ve,pe){var Ue=ve.data,ft=ve.onScroll,Nt=ue(nt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),jt=Nt.flattenColumns,an=Nt.onColumnResize,qt=Nt.getRowKey,dn=Nt.expandedKeys,ln=Nt.prefixCls,Ln=Nt.childrenColumnName,In=Nt.scrollX,Cn=Nt.direction,mn=ue(oi),hn=mn.sticky,ir=mn.scrollY,Wn=mn.listItemHeight,or=mn.getComponent,dr=mn.onScroll,ar=b.useRef(),vr=Zt(Ue,Ln,dn,qt),Sr=b.useMemo(function(){var Ar=0;return jt.map(function(gr){var hr=gr.width,Mr=gr.key;return Ar+=hr,[Mr,hr,Ar]})},[jt]),Br=b.useMemo(function(){return Sr.map(function(Ar){return Ar[2]})},[Sr]);b.useEffect(function(){Sr.forEach(function(Ar){var gr=(0,Ge.Z)(Ar,2),hr=gr[0],Mr=gr[1];an(hr,Mr)})},[Sr]),b.useImperativeHandle(pe,function(){var Ar,gr={scrollTo:function(Mr){var Lr;(Lr=ar.current)===null||Lr===void 0||Lr.scrollTo(Mr)},nativeElement:(Ar=ar.current)===null||Ar===void 0?void 0:Ar.nativeElement};return Object.defineProperty(gr,"scrollLeft",{get:function(){var Mr;return((Mr=ar.current)===null||Mr===void 0?void 0:Mr.getScrollInfo().x)||0},set:function(Mr){var Lr;(Lr=ar.current)===null||Lr===void 0||Lr.scrollTo({left:Mr})}}),gr});var Dr=function(gr,hr){var Mr,Lr=(Mr=vr[hr])===null||Mr===void 0?void 0:Mr.record,_r=gr.onCell;if(_r){var xr,wi=_r(Lr,hr);return(xr=wi==null?void 0:wi.rowSpan)!==null&&xr!==void 0?xr:1}return 1},mi=function(gr){var hr=gr.start,Mr=gr.end,Lr=gr.getSize,_r=gr.offsetY;if(Mr<0)return null;for(var xr=jt.filter(function(jr){return Dr(jr,hr)===0}),wi=hr,Oi=function(di){if(xr=xr.filter(function($r){return Dr($r,di)===0}),!xr.length)return wi=di,1},yo=hr;yo>=0&&!Oi(yo);yo-=1);for(var fo=jt.filter(function(jr){return Dr(jr,Mr)!==1}),ro=Mr,ho=function(di){if(fo=fo.filter(function($r){return Dr($r,di)!==1}),!fo.length)return ro=Math.max(di-1,Mr),1},So=Mr;So<vr.length&&!ho(So);So+=1);for(var Di=[],Ti=function(di){var $r=vr[di];if(!$r)return 1;jt.some(function(Tr){return Dr(Tr,di)>1})&&Di.push(di)},wo=wi;wo<=ro;wo+=1)Ti(wo);var Ao=Di.map(function(jr){var di=vr[jr],$r=qt(di.record,jr),Tr=function(co){var to=jr+co-1,Eo=qt(vr[to].record,to),Ro=Lr($r,Eo);return Ro.bottom-Ro.top},Li=Lr($r);return b.createElement(xi,{key:jr,data:di,rowKey:$r,index:jr,style:{top:-_r+Li.top},extra:!0,getHeight:Tr})});return Ao},Xr=b.useMemo(function(){return{columnsOffset:Br}},[Br]),zr="".concat(ln,"-tbody"),ii=or(["body","wrapper"]),Nr={};return hn&&(Nr.position="sticky",Nr.bottom=0,(0,it.Z)(hn)==="object"&&hn.offsetScroll&&(Nr.bottom=hn.offsetScroll)),b.createElement(Zr.Provider,{value:Xr},b.createElement(Gr.Z,{fullHeight:!1,ref:ar,prefixCls:"".concat(zr,"-virtual"),styles:{horizontalScrollBar:Nr},className:zr,height:ir,itemHeight:Wn||24,data:vr,itemKey:function(gr){return qt(gr.record)},component:ii,scrollWidth:In,direction:Cn,onVirtualScroll:function(gr){var hr,Mr=gr.x;ft({currentTarget:(hr=ar.current)===null||hr===void 0?void 0:hr.nativeElement,scrollLeft:Mr})},onScroll:dr,extraRender:mi},function(Ar,gr,hr){var Mr=qt(Ar.record,gr);return b.createElement(xi,{data:Ar,rowKey:Mr,index:gr,style:hr.style})}))}),bi=Rt(hi),Rr=bi,kr=function(pe,Ue){var ft=Ue.ref,Nt=Ue.onScroll;return b.createElement(Rr,{ref:ft,data:pe,onScroll:Nt})};function cr(ve,pe){var Ue=ve.data,ft=ve.columns,Nt=ve.scroll,jt=ve.sticky,an=ve.prefixCls,qt=an===void 0?Er:an,dn=ve.className,ln=ve.listItemHeight,Ln=ve.components,In=ve.onScroll,Cn=Nt||{},mn=Cn.x,hn=Cn.y;typeof mn!="number"&&(mn=1),typeof hn!="number"&&(hn=500);var ir=(0,rt.zX)(function(dr,ar){return(0,Mt.Z)(Ln,dr)||ar}),Wn=(0,rt.zX)(In),or=b.useMemo(function(){return{sticky:jt,scrollY:hn,listItemHeight:ln,getComponent:ir,onScroll:Wn}},[jt,hn,ln,ir,Wn]);return b.createElement(oi.Provider,{value:or},b.createElement(Ur,(0,tt.Z)({},ve,{className:Je()(dn,"".concat(qt,"-virtual")),scroll:(0,ut.Z)((0,ut.Z)({},Nt),{},{x:mn}),components:(0,ut.Z)((0,ut.Z)({},Ln),{},{body:Ue!=null&&Ue.length?kr:void 0}),columns:ft,internalHooks:fe,tailor:!0,ref:pe})))}var On=b.forwardRef(cr);function jn(ve){return pt(On,ve)}var Kn=jn(),kn=null,br=ve=>null,Bn=ve=>null,Xn=ee(84105),rr=ee(82661),Qr=ee(34643),Ei=ee(34061),pi=ee(18929);function Bi(ve){const[pe,Ue]=(0,b.useState)(null);return[(0,b.useCallback)((jt,an,qt)=>{const dn=pe!=null?pe:jt,ln=Math.min(dn||0,jt),Ln=Math.max(dn||0,jt),In=an.slice(ln,Ln+1).map(hn=>ve(hn)),Cn=In.some(hn=>!qt.has(hn)),mn=[];return In.forEach(hn=>{Cn?(qt.has(hn)||mn.push(hn),qt.add(hn)):(qt.delete(hn),mn.push(hn))}),Ue(Cn?Ln:null),mn},[pe]),jt=>{Ue(jt)}]}var Ii=ee(32383),Pi=ee(62673),$i=ee(75727),Ni=ee(47889);const Ai={},lo="SELECT_ALL",xo="SELECT_INVERT",Do="SELECT_NONE",To=[],Co=(ve,pe)=>{let Ue=[];return(pe||[]).forEach(ft=>{Ue.push(ft),ft&&typeof ft=="object"&&ve in ft&&(Ue=[].concat((0,un.Z)(Ue),(0,un.Z)(Co(ve,ft[ve]))))}),Ue};var Hr=(ve,pe)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:ft,defaultSelectedRowKeys:Nt,getCheckboxProps:jt,onChange:an,onSelect:qt,onSelectAll:dn,onSelectInvert:ln,onSelectNone:Ln,onSelectMultiple:In,columnWidth:Cn,type:mn,selections:hn,fixed:ir,renderCell:Wn,hideSelectAll:or,checkStrictly:dr=!0}=pe||{},{prefixCls:ar,data:vr,pageData:Sr,getRecordByKey:Br,getRowKey:Dr,expandType:mi,childrenColumnName:Xr,locale:zr,getPopupContainer:ii}=ve,Nr=(0,Ii.ln)("Table"),[Ar,gr]=Bi(jr=>jr),[hr,Mr]=(0,pi.Z)(ft||Nt||To,{value:ft}),Lr=b.useRef(new Map),_r=(0,b.useCallback)(jr=>{if(Ue){const di=new Map;jr.forEach($r=>{let Tr=Br($r);!Tr&&Lr.current.has($r)&&(Tr=Lr.current.get($r)),di.set($r,Tr)}),Lr.current=di}},[Br,Ue]);b.useEffect(()=>{_r(hr)},[hr]);const xr=(0,b.useMemo)(()=>Co(Xr,Sr),[Xr,Sr]),{keyEntities:wi}=(0,b.useMemo)(()=>{if(dr)return{keyEntities:null};let jr=vr;if(Ue){const di=new Set(xr.map((Tr,Li)=>Dr(Tr,Li))),$r=Array.from(Lr.current).reduce((Tr,Li)=>{let[Ui,co]=Li;return di.has(Ui)?Tr:Tr.concat(co)},[]);jr=[].concat((0,un.Z)(jr),(0,un.Z)($r))}return(0,Ei.I8)(jr,{externalGetKey:Dr,childrenPropName:Xr})},[vr,Dr,dr,Xr,Ue,xr]),Oi=(0,b.useMemo)(()=>{const jr=new Map;return xr.forEach((di,$r)=>{const Tr=Dr(di,$r),Li=(jt?jt(di):null)||{};jr.set(Tr,Li)}),jr},[xr,Dr,jt]),yo=(0,b.useCallback)(jr=>{const di=Dr(jr);let $r;return Oi.has(di)?$r=Oi.get(Dr(jr)):$r=jt?jt(jr):void 0,!!($r!=null&&$r.disabled)},[Oi,Dr]),[fo,ro]=(0,b.useMemo)(()=>{if(dr)return[hr||[],[]];const{checkedKeys:jr,halfCheckedKeys:di}=(0,Qr.S)(hr,!0,wi,yo);return[jr||[],di]},[hr,dr,wi,yo]),ho=(0,b.useMemo)(()=>{const jr=mn==="radio"?fo.slice(0,1):fo;return new Set(jr)},[fo,mn]),So=(0,b.useMemo)(()=>mn==="radio"?new Set:new Set(ro),[ro,mn]);b.useEffect(()=>{pe||Mr(To)},[!!pe]);const Di=(0,b.useCallback)((jr,di)=>{let $r,Tr;_r(jr),Ue?($r=jr,Tr=jr.map(Li=>Lr.current.get(Li))):($r=[],Tr=[],jr.forEach(Li=>{const Ui=Br(Li);Ui!==void 0&&($r.push(Li),Tr.push(Ui))})),Mr($r),an==null||an($r,Tr,{type:di})},[Mr,Br,an,Ue]),Ti=(0,b.useCallback)((jr,di,$r,Tr)=>{if(qt){const Li=$r.map(Ui=>Br(Ui));qt(Br(jr),di,Li,Tr)}Di($r,"single")},[qt,Br,Di]),wo=(0,b.useMemo)(()=>!hn||or?null:(hn===!0?[lo,xo,Do]:hn).map(di=>di===lo?{key:"all",text:zr.selectionAll,onSelect(){Di(vr.map(($r,Tr)=>Dr($r,Tr)).filter($r=>{const Tr=Oi.get($r);return!(Tr!=null&&Tr.disabled)||ho.has($r)}),"all")}}:di===xo?{key:"invert",text:zr.selectInvert,onSelect(){const $r=new Set(ho);Sr.forEach((Li,Ui)=>{const co=Dr(Li,Ui),to=Oi.get(co);to!=null&&to.disabled||($r.has(co)?$r.delete(co):$r.add(co))});const Tr=Array.from($r);ln&&(Nr.deprecated(!1,"onSelectInvert","onChange"),ln(Tr)),Di(Tr,"invert")}}:di===Do?{key:"none",text:zr.selectNone,onSelect(){Ln==null||Ln(),Di(Array.from(ho).filter($r=>{const Tr=Oi.get($r);return Tr==null?void 0:Tr.disabled}),"none")}}:di).map(di=>Object.assign(Object.assign({},di),{onSelect:function(){for(var $r,Tr,Li=arguments.length,Ui=new Array(Li),co=0;co<Li;co++)Ui[co]=arguments[co];(Tr=di.onSelect)===null||Tr===void 0||($r=Tr).call.apply($r,[di].concat(Ui)),gr(null)}})),[hn,ho,Sr,Dr,ln,Di]);return[(0,b.useCallback)(jr=>{var di;if(!pe)return jr.filter(zi=>zi!==Ai);let $r=(0,un.Z)(jr);const Tr=new Set(ho),Li=xr.map(Dr).filter(zi=>!Oi.get(zi).disabled),Ui=Li.every(zi=>Tr.has(zi)),co=Li.some(zi=>Tr.has(zi)),to=()=>{const zi=[];Ui?Li.forEach(io=>{Tr.delete(io),zi.push(io)}):Li.forEach(io=>{Tr.has(io)||(Tr.add(io),zi.push(io))});const no=Array.from(Tr);dn==null||dn(!Ui,no.map(io=>Br(io)),zi.map(io=>Br(io))),Di(no,"all"),gr(null)};let Eo,Ro;if(mn!=="radio"){let zi;if(wo){const Hi={getPopupContainer:ii,items:wo.map((mo,_i)=>{const{key:Jo,text:ko,onSelect:ua}=mo;return{key:Jo!=null?Jo:_i,onClick:()=>{ua==null||ua(Li)},label:ko}})};zi=b.createElement("div",{className:`${ar}-selection-extra`},b.createElement($i.Z,{menu:Hi,getPopupContainer:ii},b.createElement("span",null,b.createElement(Xn.Z,null))))}const no=xr.map((Hi,mo)=>{const _i=Dr(Hi,mo),Jo=Oi.get(_i)||{};return Object.assign({checked:Tr.has(_i)},Jo)}).filter(Hi=>{let{disabled:mo}=Hi;return mo}),io=!!no.length&&no.length===xr.length,Fo=io&&no.every(Hi=>{let{checked:mo}=Hi;return mo}),bo=io&&no.some(Hi=>{let{checked:mo}=Hi;return mo});Ro=b.createElement(Pi.default,{checked:io?Fo:!!xr.length&&Ui,indeterminate:io?!Fo&&bo:!Ui&&co,onChange:to,disabled:xr.length===0||io,"aria-label":zi?"Custom selection":"Select all",skipGroup:!0}),Eo=!or&&b.createElement("div",{className:`${ar}-selection`},Ro,zi)}let Kr;mn==="radio"?Kr=(zi,no,io)=>{const Fo=Dr(no,io),bo=Tr.has(Fo),Hi=Oi.get(Fo);return{node:b.createElement(Ni.ZP,Object.assign({},Hi,{checked:bo,onClick:mo=>{var _i;mo.stopPropagation(),(_i=Hi==null?void 0:Hi.onClick)===null||_i===void 0||_i.call(Hi,mo)},onChange:mo=>{var _i;Tr.has(Fo)||Ti(Fo,!0,[Fo],mo.nativeEvent),(_i=Hi==null?void 0:Hi.onChange)===null||_i===void 0||_i.call(Hi,mo)}})),checked:bo}}:Kr=(zi,no,io)=>{var Fo;const bo=Dr(no,io),Hi=Tr.has(bo),mo=So.has(bo),_i=Oi.get(bo);let Jo;return mi==="nest"?Jo=mo:Jo=(Fo=_i==null?void 0:_i.indeterminate)!==null&&Fo!==void 0?Fo:mo,{node:b.createElement(Pi.default,Object.assign({},_i,{indeterminate:Jo,checked:Hi,skipGroup:!0,onClick:ko=>{var ua;ko.stopPropagation(),(ua=_i==null?void 0:_i.onClick)===null||ua===void 0||ua.call(_i,ko)},onChange:ko=>{var ua;const{nativeEvent:ga}=ko,{shiftKey:Ga}=ga,oo=Li.findIndex(da=>da===bo),Wl=fo.some(da=>Li.includes(da));if(Ga&&dr&&Wl){const da=Ar(oo,Li,Tr),Aa=Array.from(Tr);In==null||In(!Hi,Aa.map(wa=>Br(wa)),da.map(wa=>Br(wa))),Di(Aa,"multiple")}else{const da=fo;if(dr){const Aa=Hi?(0,rr._5)(da,bo):(0,rr.L0)(da,bo);Ti(bo,!Hi,Aa,ga)}else{const Aa=(0,Qr.S)([].concat((0,un.Z)(da),[bo]),!0,wi,yo),{checkedKeys:wa,halfCheckedKeys:ya}=Aa;let ao=wa;if(Hi){const Ea=new Set(wa);Ea.delete(bo),ao=(0,Qr.S)(Array.from(Ea),{checked:!1,halfCheckedKeys:ya},wi,yo).checkedKeys}Ti(bo,!Hi,ao,ga)}}gr(Hi?null:oo),(ua=_i==null?void 0:_i.onChange)===null||ua===void 0||ua.call(_i,ko)}})),checked:Hi}};const ei=(zi,no,io)=>{const{node:Fo,checked:bo}=Kr(zi,no,io);return Wn?Wn(bo,no,io,Fo):Fo};if(!$r.includes(Ai))if($r.findIndex(zi=>{var no;return((no=zi[bn])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"})===0){const[zi,...no]=$r;$r=[zi,Ai].concat((0,un.Z)(no))}else $r=[Ai].concat((0,un.Z)($r));const Xi=$r.indexOf(Ai);$r=$r.filter((zi,no)=>zi!==Ai||no===Xi);const eo=$r[Xi-1],Qi=$r[Xi+1];let zo=ir;zo===void 0&&((Qi==null?void 0:Qi.fixed)!==void 0?zo=Qi.fixed:(eo==null?void 0:eo.fixed)!==void 0&&(zo=eo.fixed)),zo&&eo&&((di=eo[bn])===null||di===void 0?void 0:di.columnType)==="EXPAND_COLUMN"&&eo.fixed===void 0&&(eo.fixed=zo);const Io=Je()(`${ar}-selection-col`,{[`${ar}-selection-col-with-dropdown`]:hn&&mn==="checkbox"}),va=()=>pe!=null&&pe.columnTitle?typeof pe.columnTitle=="function"?pe.columnTitle(Ro):pe.columnTitle:Eo,po={fixed:zo,width:Cn,className:`${ar}-selection-column`,title:va(),render:ei,onCell:pe.onCell,[bn]:{className:Io}};return $r.map(zi=>zi===Ai?po:zi)},[Dr,xr,pe,fo,ho,So,Cn,wo,mi,Oi,In,Ti,yo]),ho]},Ji=ee(2738);function qi(ve,pe){return ve._antProxy=ve._antProxy||{},Object.keys(pe).forEach(Ue=>{if(!(Ue in ve._antProxy)){const ft=ve[Ue];ve._antProxy[Ue]=ft,ve[Ue]=pe[Ue]}}),ve}function ai(ve,pe){return(0,b.useImperativeHandle)(ve,()=>{const Ue=pe(),{nativeElement:ft}=Ue;return typeof Proxy!="undefined"?new Proxy(ft,{get(Nt,jt){return Ue[jt]?Ue[jt]:Reflect.get(Nt,jt)}}):qi(ft,Ue)})}var Wi=ee(83010),Yi=ee(48755),gi=ee(38406),Zi=ee(83397),Mi=ee(31756),Zo=ee(13783),ha=ee(85981),Wo=ee(31709),Mo=ee(29787),ul=ee(57700);function el(ve){return pe=>{const{prefixCls:Ue,onExpand:ft,record:Nt,expanded:jt,expandable:an}=pe,qt=`${Ue}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:dn=>{ft(Nt,dn),dn.stopPropagation()},className:Je()(qt,{[`${qt}-spaced`]:!an,[`${qt}-expanded`]:an&&jt,[`${qt}-collapsed`]:an&&!jt}),"aria-label":jt?ve.collapse:ve.expand,"aria-expanded":jt})}}var si=el;function Ci(ve){return(Ue,ft)=>{const Nt=Ue.querySelector(`.${ve}-container`);let jt=ft;if(Nt){const an=getComputedStyle(Nt),qt=parseInt(an.borderLeftWidth,10),dn=parseInt(an.borderRightWidth,10);jt=ft-qt-dn}return jt}}const ni=(ve,pe)=>"key"in ve&&ve.key!==void 0&&ve.key!==null?ve.key:ve.dataIndex?Array.isArray(ve.dataIndex)?ve.dataIndex.join("."):ve.dataIndex:pe;function ui(ve,pe){return pe?`${pe}-${ve}`:`${ve}`}const Vi=(ve,pe)=>typeof ve=="function"?ve(pe):ve,so=(ve,pe)=>{const Ue=Vi(ve,pe);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue};var La={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"},oa=La,Yo=ee(7657),Bo=function(pe,Ue){return b.createElement(Yo.Z,(0,tt.Z)({},pe,{ref:Ue,icon:oa}))},Ta=b.forwardRef(Bo),Za=Ta,pa=ee(9981),za=ee(40192);function Ya(ve){const pe=b.useRef(ve),Ue=(0,za.Z)();return[()=>pe.current,ft=>{pe.current=ft,Ue()}]}var Ma=ee(7939),dl=ee(584),ms=ee(93041),Ql=ee(78857),Ha=ee(18287),tl=ee(47472),Ba=ee(49397),Al=ve=>{const{value:pe,filterSearch:Ue,tablePrefixCls:ft,locale:Nt,onChange:jt}=ve;return Ue?b.createElement("div",{className:`${ft}-filter-dropdown-search`},b.createElement(Ba.Z,{prefix:b.createElement(tl.Z,null),placeholder:Nt.filterSearchPlaceholder,onChange:jt,value:pe,htmlSize:1,className:`${ft}-filter-dropdown-search-input`})):null},Jl=ee(10228);const ql=ve=>{const{keyCode:pe}=ve;pe===Jl.Z.ENTER&&ve.stopPropagation()};var kl=b.forwardRef((ve,pe)=>b.createElement("div",{className:ve.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:ql,ref:pe},ve.children));function ja(ve){let pe=[];return(ve||[]).forEach(Ue=>{let{value:ft,children:Nt}=Ue;pe.push(ft),Nt&&(pe=[].concat((0,un.Z)(pe),(0,un.Z)(ja(Nt))))}),pe}function fl(ve){return ve.some(pe=>{let{children:Ue}=pe;return Ue})}function xl(ve,pe){return typeof pe=="string"||typeof pe=="number"?pe==null?void 0:pe.toString().toLowerCase().includes(ve.trim().toLowerCase()):!1}function Ll(ve){let{filters:pe,prefixCls:Ue,filteredKeys:ft,filterMultiple:Nt,searchValue:jt,filterSearch:an}=ve;return pe.map((qt,dn)=>{const ln=String(qt.value);if(qt.children)return{key:ln||dn,label:qt.text,popupClassName:`${Ue}-dropdown-submenu`,children:Ll({filters:qt.children,prefixCls:Ue,filteredKeys:ft,filterMultiple:Nt,searchValue:jt,filterSearch:an})};const Ln=Nt?Pi.default:Ni.ZP,In={key:qt.value!==void 0?ln:dn,label:b.createElement(b.Fragment,null,b.createElement(Ln,{checked:ft.includes(ln)}),b.createElement("span",null,qt.text))};return jt.trim()?typeof an=="function"?an(jt,qt)?In:null:xl(jt,qt.text)?In:null:In})}function hl(ve){return ve||[]}var es=ve=>{var pe,Ue,ft,Nt;const{tablePrefixCls:jt,prefixCls:an,column:qt,dropdownPrefixCls:dn,columnKey:ln,filterOnClose:Ln,filterMultiple:In,filterMode:Cn="menu",filterSearch:mn=!1,filterState:hn,triggerFilter:ir,locale:Wn,children:or,getPopupContainer:dr,rootClassName:ar}=ve,{filterResetToDefaultFilteredValue:vr,defaultFilteredValue:Sr,filterDropdownProps:Br={},filterDropdownOpen:Dr,filterDropdownVisible:mi,onFilterDropdownVisibleChange:Xr,onFilterDropdownOpenChange:zr}=qt,[ii,Nr]=b.useState(!1),Ar=!!(hn&&(!((pe=hn.filteredKeys)===null||pe===void 0)&&pe.length||hn.forceFiltered)),gr=Kr=>{var ei;Nr(Kr),(ei=Br.onOpenChange)===null||ei===void 0||ei.call(Br,Kr),zr==null||zr(Kr),Xr==null||Xr(Kr)},hr=(Nt=(ft=(Ue=Br.open)!==null&&Ue!==void 0?Ue:Dr)!==null&&ft!==void 0?ft:mi)!==null&&Nt!==void 0?Nt:ii,Mr=hn==null?void 0:hn.filteredKeys,[Lr,_r]=Ya(hl(Mr)),xr=Kr=>{let{selectedKeys:ei}=Kr;_r(ei)},wi=(Kr,ei)=>{let{node:Xi,checked:eo}=ei;xr(In?{selectedKeys:Kr}:{selectedKeys:eo&&Xi.key?[Xi.key]:[]})};b.useEffect(()=>{ii&&xr({selectedKeys:hl(Mr)})},[Mr]);const[Oi,yo]=b.useState([]),fo=Kr=>{yo(Kr)},[ro,ho]=b.useState(""),So=Kr=>{const{value:ei}=Kr.target;ho(ei)};b.useEffect(()=>{ii||ho("")},[ii]);const Di=Kr=>{const ei=Kr!=null&&Kr.length?Kr:null;if(ei===null&&(!hn||!hn.filteredKeys)||(0,De.Z)(ei,hn==null?void 0:hn.filteredKeys,!0))return null;ir({column:qt,key:ln,filteredKeys:ei})},Ti=()=>{gr(!1),Di(Lr())},wo=function(){let{confirm:Kr,closeDropdown:ei}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Kr&&Di([]),ei&&gr(!1),ho(""),_r(vr?(Sr||[]).map(Xi=>String(Xi)):[])},Ao=function(){let{closeDropdown:Kr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Kr&&gr(!1),Di(Lr())},jr=(Kr,ei)=>{ei.source==="trigger"&&(Kr&&Mr!==void 0&&_r(hl(Mr)),gr(Kr),!Kr&&!qt.filterDropdown&&Ln&&Ti())},di=Je()({[`${dn}-menu-without-submenu`]:!fl(qt.filters||[])}),$r=Kr=>{if(Kr.target.checked){const ei=ja(qt==null?void 0:qt.filters).map(Xi=>String(Xi));_r(ei)}else _r([])},Tr=Kr=>{let{filters:ei}=Kr;return(ei||[]).map((Xi,eo)=>{const Qi=String(Xi.value),zo={title:Xi.text,key:Xi.value!==void 0?Qi:String(eo)};return Xi.children&&(zo.children=Tr({filters:Xi.children})),zo})},Li=Kr=>{var ei;return Object.assign(Object.assign({},Kr),{text:Kr.title,value:Kr.key,children:((ei=Kr.children)===null||ei===void 0?void 0:ei.map(Xi=>Li(Xi)))||[]})};let Ui;const{direction:co,renderEmpty:to}=b.useContext(Yi.E_);if(typeof qt.filterDropdown=="function")Ui=qt.filterDropdown({prefixCls:`${dn}-custom`,setSelectedKeys:Kr=>xr({selectedKeys:Kr}),selectedKeys:Lr(),confirm:Ao,clearFilters:wo,filters:qt.filters,visible:hr,close:()=>{gr(!1)}});else if(qt.filterDropdown)Ui=qt.filterDropdown;else{const Kr=Lr()||[],ei=()=>{var eo,Qi;const zo=(eo=to==null?void 0:to("Table.filter"))!==null&&eo!==void 0?eo:b.createElement(dl.Z,{image:dl.Z.PRESENTED_IMAGE_SIMPLE,description:Wn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((qt.filters||[]).length===0)return zo;if(Cn==="tree")return b.createElement(b.Fragment,null,b.createElement(Al,{filterSearch:mn,value:ro,onChange:So,tablePrefixCls:jt,locale:Wn}),b.createElement("div",{className:`${jt}-filter-dropdown-tree`},In?b.createElement(Pi.default,{checked:Kr.length===ja(qt.filters).length,indeterminate:Kr.length>0&&Kr.length<ja(qt.filters).length,className:`${jt}-filter-dropdown-checkall`,onChange:$r},(Qi=Wn==null?void 0:Wn.filterCheckall)!==null&&Qi!==void 0?Qi:Wn==null?void 0:Wn.filterCheckAll):null,b.createElement(Ha.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:In,checkStrictly:!In,className:`${dn}-menu`,onCheck:wi,checkedKeys:Kr,selectedKeys:Kr,showIcon:!1,treeData:Tr({filters:qt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ro.trim()?po=>typeof mn=="function"?mn(ro,Li(po)):xl(ro,po.title):void 0})));const Io=Ll({filters:qt.filters||[],filterSearch:mn,prefixCls:an,filteredKeys:Lr(),filterMultiple:In,searchValue:ro}),va=Io.every(po=>po===null);return b.createElement(b.Fragment,null,b.createElement(Al,{filterSearch:mn,value:ro,onChange:So,tablePrefixCls:jt,locale:Wn}),va?zo:b.createElement(ms.default,{selectable:!0,multiple:In,prefixCls:`${dn}-menu`,className:di,onSelect:xr,onDeselect:xr,selectedKeys:Kr,getPopupContainer:dr,openKeys:Oi,onOpenChange:fo,items:Io}))},Xi=()=>vr?(0,De.Z)((Sr||[]).map(eo=>String(eo)),Kr,!0):Kr.length===0;Ui=b.createElement(b.Fragment,null,ei(),b.createElement("div",{className:`${an}-dropdown-btns`},b.createElement(Ma.ZP,{type:"link",size:"small",disabled:Xi(),onClick:()=>wo()},Wn.filterReset),b.createElement(Ma.ZP,{type:"primary",size:"small",onClick:Ti},Wn.filterConfirm)))}qt.filterDropdown&&(Ui=b.createElement(Ql.J,{selectable:void 0},Ui)),Ui=b.createElement(kl,{className:`${an}-dropdown`},Ui);const Eo=()=>{let Kr;return typeof qt.filterIcon=="function"?Kr=qt.filterIcon(Ar):qt.filterIcon?Kr=qt.filterIcon:Kr=b.createElement(Za,null),b.createElement("span",{role:"button",tabIndex:-1,className:Je()(`${an}-trigger`,{active:Ar}),onClick:ei=>{ei.stopPropagation()}},Kr)},Ro=(0,pa.Z)({trigger:["click"],placement:co==="rtl"?"bottomLeft":"bottomRight",children:Eo(),getPopupContainer:dr},Object.assign(Object.assign({},Br),{rootClassName:Je()(ar,Br.rootClassName),open:hr,onOpenChange:jr,dropdownRender:()=>typeof(Br==null?void 0:Br.dropdownRender)=="function"?Br.dropdownRender(Ui):Ui}));return b.createElement("div",{className:`${an}-column`},b.createElement("span",{className:`${jt}-column-title`},or),b.createElement($i.Z,Object.assign({},Ro)))};const nl=(ve,pe,Ue)=>{let ft=[];return(ve||[]).forEach((Nt,jt)=>{var an;const qt=ui(jt,Ue);if(Nt.filters||"filterDropdown"in Nt||"onFilter"in Nt)if("filteredValue"in Nt){let dn=Nt.filteredValue;"filterDropdown"in Nt||(dn=(an=dn==null?void 0:dn.map(String))!==null&&an!==void 0?an:dn),ft.push({column:Nt,key:ni(Nt,qt),filteredKeys:dn,forceFiltered:Nt.filtered})}else ft.push({column:Nt,key:ni(Nt,qt),filteredKeys:pe&&Nt.defaultFilteredValue?Nt.defaultFilteredValue:void 0,forceFiltered:Nt.filtered});"children"in Nt&&(ft=[].concat((0,un.Z)(ft),(0,un.Z)(nl(Nt.children,pe,qt))))}),ft};function aa(ve,pe,Ue,ft,Nt,jt,an,qt,dn){return Ue.map((ln,Ln)=>{const In=ui(Ln,qt),{filterOnClose:Cn=!0,filterMultiple:mn=!0,filterMode:hn,filterSearch:ir}=ln;let Wn=ln;if(Wn.filters||Wn.filterDropdown){const or=ni(Wn,In),dr=ft.find(ar=>{let{key:vr}=ar;return or===vr});Wn=Object.assign(Object.assign({},Wn),{title:ar=>b.createElement(es,{tablePrefixCls:ve,prefixCls:`${ve}-filter`,dropdownPrefixCls:pe,column:Wn,columnKey:or,filterState:dr,filterOnClose:Cn,filterMultiple:mn,filterMode:hn,filterSearch:ir,triggerFilter:jt,locale:Nt,getPopupContainer:an,rootClassName:dn},Vi(ln.title,ar))})}return"children"in Wn&&(Wn=Object.assign(Object.assign({},Wn),{children:aa(ve,pe,Wn.children,ft,Nt,jt,an,In,dn)})),Wn})}const Ki=ve=>{const pe={};return ve.forEach(Ue=>{let{key:ft,filteredKeys:Nt,column:jt}=Ue;const an=ft,{filters:qt,filterDropdown:dn}=jt;if(dn)pe[an]=Nt||null;else if(Array.isArray(Nt)){const ln=ja(qt);pe[an]=ln.filter(Ln=>Nt.includes(String(Ln)))}else pe[an]=null}),pe},Si=(ve,pe,Ue)=>pe.reduce((Nt,jt)=>{const{column:{onFilter:an,filters:qt},filteredKeys:dn}=jt;return an&&dn&&dn.length?Nt.map(ln=>Object.assign({},ln)).filter(ln=>dn.some(Ln=>{const In=ja(qt),Cn=In.findIndex(hn=>String(hn)===String(Ln)),mn=Cn!==-1?In[Cn]:Ln;return ln[Ue]&&(ln[Ue]=Si(ln[Ue],pe,Ue)),an(mn,ln)})):Nt},ve),Ko=ve=>ve.flatMap(pe=>"children"in pe?[pe].concat((0,un.Z)(Ko(pe.children||[]))):[pe]);var No=ve=>{const{prefixCls:pe,dropdownPrefixCls:Ue,mergedColumns:ft,onFilterChange:Nt,getPopupContainer:jt,locale:an,rootClassName:qt}=ve,dn=(0,Ii.ln)("Table"),ln=b.useMemo(()=>Ko(ft||[]),[ft]),[Ln,In]=b.useState(()=>nl(ln,!0)),Cn=b.useMemo(()=>{const Wn=nl(ln,!1);if(Wn.length===0)return Wn;let or=!0,dr=!0;if(Wn.forEach(ar=>{let{filteredKeys:vr}=ar;vr!==void 0?or=!1:dr=!1}),or){const ar=(ln||[]).map((vr,Sr)=>ni(vr,ui(Sr)));return Ln.filter(vr=>{let{key:Sr}=vr;return ar.includes(Sr)}).map(vr=>{const Sr=ln[ar.findIndex(Br=>Br===vr.key)];return Object.assign(Object.assign({},vr),{column:Object.assign(Object.assign({},vr.column),Sr),forceFiltered:Sr.filtered})})}return Wn},[ln,Ln]),mn=b.useMemo(()=>Ki(Cn),[Cn]),hn=Wn=>{const or=Cn.filter(dr=>{let{key:ar}=dr;return ar!==Wn.key});or.push(Wn),In(or),Nt(Ki(or),or)};return[Wn=>aa(pe,Ue,Wn,Cn,an,hn,jt,void 0,qt),Cn,mn]},Ra=(ve,pe,Ue)=>{const ft=b.useRef({});function Nt(jt){var an;if(!ft.current||ft.current.data!==ve||ft.current.childrenColumnName!==pe||ft.current.getRowKey!==Ue){let dn=function(ln){ln.forEach((Ln,In)=>{const Cn=Ue(Ln,In);qt.set(Cn,Ln),Ln&&typeof Ln=="object"&&pe in Ln&&dn(Ln[pe]||[])})};const qt=new Map;dn(ve),ft.current={data:ve,childrenColumnName:pe,kvMap:qt,getRowKey:Ue}}return(an=ft.current.kvMap)===null||an===void 0?void 0:an.get(jt)}return[Nt]},Na=function(ve,pe){var Ue={};for(var ft in ve)Object.prototype.hasOwnProperty.call(ve,ft)&&pe.indexOf(ft)<0&&(Ue[ft]=ve[ft]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,ft=Object.getOwnPropertySymbols(ve);Nt<ft.length;Nt++)pe.indexOf(ft[Nt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ft[Nt])&&(Ue[ft[Nt]]=ve[ft[Nt]]);return Ue};const Wa=10;function xa(ve,pe){const Ue={current:ve.current,pageSize:ve.pageSize};return Object.keys(pe&&typeof pe=="object"?pe:{}).forEach(Nt=>{const jt=ve[Nt];typeof jt!="function"&&(Ue[Nt]=jt)}),Ue}function Ca(ve,pe,Ue){const ft=Ue&&typeof Ue=="object"?Ue:{},{total:Nt=0}=ft,jt=Na(ft,["total"]),[an,qt]=(0,b.useState)(()=>({current:"defaultCurrent"in jt?jt.defaultCurrent:1,pageSize:"defaultPageSize"in jt?jt.defaultPageSize:Wa})),dn=(0,pa.Z)(an,jt,{total:Nt>0?Nt:ve}),ln=Math.ceil((Nt||ve)/dn.pageSize);dn.current>ln&&(dn.current=ln||1);const Ln=(Cn,mn)=>{qt({current:Cn!=null?Cn:1,pageSize:mn||dn.pageSize})},In=(Cn,mn)=>{var hn;Ue&&((hn=Ue.onChange)===null||hn===void 0||hn.call(Ue,Cn,mn)),Ln(Cn,mn),pe(Cn,mn||(dn==null?void 0:dn.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},dn),{onChange:In}),Ln]}var Fa=Ca,rl=ee(89489),gs=ee(59477),ys=ee(25399);const Cl="ascend",Qa="descend",Ka=ve=>typeof ve.sorter=="object"&&typeof ve.sorter.multiple=="number"?ve.sorter.multiple:!1,sa=ve=>typeof ve=="function"?ve:ve&&typeof ve=="object"&&ve.compare?ve.compare:!1,il=(ve,pe)=>pe?ve[ve.indexOf(pe)+1]:ve[0],Va=(ve,pe,Ue)=>{let ft=[];const Nt=(jt,an)=>{ft.push({column:jt,key:ni(jt,an),multiplePriority:Ka(jt),sortOrder:jt.sortOrder})};return(ve||[]).forEach((jt,an)=>{const qt=ui(an,Ue);jt.children?("sortOrder"in jt&&Nt(jt,qt),ft=[].concat((0,un.Z)(ft),(0,un.Z)(Va(jt.children,pe,qt)))):jt.sorter&&("sortOrder"in jt?Nt(jt,qt):pe&&jt.defaultSortOrder&&ft.push({column:jt,key:ni(jt,qt),multiplePriority:Ka(jt),sortOrder:jt.defaultSortOrder}))}),ft},Fl=(ve,pe,Ue,ft,Nt,jt,an,qt)=>(pe||[]).map((ln,Ln)=>{const In=ui(Ln,qt);let Cn=ln;if(Cn.sorter){const mn=Cn.sortDirections||Nt,hn=Cn.showSorterTooltip===void 0?an:Cn.showSorterTooltip,ir=ni(Cn,In),Wn=Ue.find(Xr=>{let{key:zr}=Xr;return zr===ir}),or=Wn?Wn.sortOrder:null,dr=il(mn,or);let ar;if(ln.sortIcon)ar=ln.sortIcon({sortOrder:or});else{const Xr=mn.includes(Cl)&&b.createElement(gs.Z,{className:Je()(`${ve}-column-sorter-up`,{active:or===Cl})}),zr=mn.includes(Qa)&&b.createElement(rl.Z,{className:Je()(`${ve}-column-sorter-down`,{active:or===Qa})});ar=b.createElement("span",{className:Je()(`${ve}-column-sorter`,{[`${ve}-column-sorter-full`]:!!(Xr&&zr)})},b.createElement("span",{className:`${ve}-column-sorter-inner`,"aria-hidden":"true"},Xr,zr))}const{cancelSort:vr,triggerAsc:Sr,triggerDesc:Br}=jt||{};let Dr=vr;dr===Qa?Dr=Br:dr===Cl&&(Dr=Sr);const mi=typeof hn=="object"?Object.assign({title:Dr},hn):{title:Dr};Cn=Object.assign(Object.assign({},Cn),{className:Je()(Cn.className,{[`${ve}-column-sort`]:or}),title:Xr=>{const zr=`${ve}-column-sorters`,ii=b.createElement("span",{className:`${ve}-column-title`},Vi(ln.title,Xr)),Nr=b.createElement("div",{className:zr},ii,ar);return hn?typeof hn!="boolean"&&(hn==null?void 0:hn.target)==="sorter-icon"?b.createElement("div",{className:`${zr} ${ve}-column-sorters-tooltip-target-sorter`},ii,b.createElement(ys.Z,Object.assign({},mi),ar)):b.createElement(ys.Z,Object.assign({},mi),Nr):Nr},onHeaderCell:Xr=>{var zr;const ii=((zr=ln.onHeaderCell)===null||zr===void 0?void 0:zr.call(ln,Xr))||{},Nr=ii.onClick,Ar=ii.onKeyDown;ii.onClick=Mr=>{ft({column:ln,key:ir,sortOrder:dr,multiplePriority:Ka(ln)}),Nr==null||Nr(Mr)},ii.onKeyDown=Mr=>{Mr.keyCode===Jl.Z.ENTER&&(ft({column:ln,key:ir,sortOrder:dr,multiplePriority:Ka(ln)}),Ar==null||Ar(Mr))};const gr=so(ln.title,{}),hr=gr==null?void 0:gr.toString();return or&&(ii["aria-sort"]=or==="ascend"?"ascending":"descending"),ii["aria-label"]=hr||"",ii.className=Je()(ii.className,`${ve}-column-has-sorters`),ii.tabIndex=0,ln.ellipsis&&(ii.title=(gr!=null?gr:"").toString()),ii}})}return"children"in Cn&&(Cn=Object.assign(Object.assign({},Cn),{children:Fl(ve,Cn.children,Ue,ft,Nt,jt,an,In)})),Cn}),Hs=ve=>{const{column:pe,sortOrder:Ue}=ve;return{column:pe,order:Ue,field:pe.dataIndex,columnKey:pe.key}},bs=ve=>{const pe=ve.filter(Ue=>{let{sortOrder:ft}=Ue;return ft}).map(Hs);if(pe.length===0&&ve.length){const Ue=ve.length-1;return Object.assign(Object.assign({},Hs(ve[Ue])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return pe.length<=1?pe[0]||{}:pe},pl=(ve,pe,Ue)=>{const ft=pe.slice().sort((an,qt)=>qt.multiplePriority-an.multiplePriority),Nt=ve.slice(),jt=ft.filter(an=>{let{column:{sorter:qt},sortOrder:dn}=an;return sa(qt)&&dn});return jt.length?Nt.sort((an,qt)=>{for(let dn=0;dn<jt.length;dn+=1){const ln=jt[dn],{column:{sorter:Ln},sortOrder:In}=ln,Cn=sa(Ln);if(Cn&&In){const mn=Cn(an,qt,In);if(mn!==0)return In===Cl?mn:-mn}}return 0}).map(an=>{const qt=an[Ue];return qt?Object.assign(Object.assign({},an),{[Ue]:pl(qt,pe,Ue)}):an}):Nt};var js=ve=>{const{prefixCls:pe,mergedColumns:Ue,sortDirections:ft,tableLocale:Nt,showSorterTooltip:jt,onSorterChange:an}=ve,[qt,dn]=b.useState(Va(Ue,!0)),ln=(ir,Wn)=>{const or=[];return ir.forEach((dr,ar)=>{const vr=ui(ar,Wn);if(or.push(ni(dr,vr)),Array.isArray(dr.children)){const Sr=ln(dr.children,vr);or.push.apply(or,(0,un.Z)(Sr))}}),or},Ln=b.useMemo(()=>{let ir=!0;const Wn=Va(Ue,!1);if(!Wn.length){const vr=ln(Ue);return qt.filter(Sr=>{let{key:Br}=Sr;return vr.includes(Br)})}const or=[];function dr(vr){ir?or.push(vr):or.push(Object.assign(Object.assign({},vr),{sortOrder:null}))}let ar=null;return Wn.forEach(vr=>{ar===null?(dr(vr),vr.sortOrder&&(vr.multiplePriority===!1?ir=!1:ar=!0)):(ar&&vr.multiplePriority!==!1||(ir=!1),dr(vr))}),or},[Ue,qt]),In=b.useMemo(()=>{var ir,Wn;const or=Ln.map(dr=>{let{column:ar,sortOrder:vr}=dr;return{column:ar,order:vr}});return{sortColumns:or,sortColumn:(ir=or[0])===null||ir===void 0?void 0:ir.column,sortOrder:(Wn=or[0])===null||Wn===void 0?void 0:Wn.order}},[Ln]),Cn=ir=>{let Wn;ir.multiplePriority===!1||!Ln.length||Ln[0].multiplePriority===!1?Wn=[ir]:Wn=[].concat((0,un.Z)(Ln.filter(or=>{let{key:dr}=or;return dr!==ir.key})),[ir]),dn(Wn),an(bs(Wn),Wn)};return[ir=>Fl(pe,ir,Ln,Cn,ft,Nt,jt),Ln,In,()=>bs(Ln)]};const $l=(ve,pe)=>ve.map(ft=>{const Nt=Object.assign({},ft);return Nt.title=Vi(ft.title,pe),"children"in Nt&&(Nt.children=$l(Nt.children,pe)),Nt});var xs=ve=>[b.useCallback(Ue=>$l(Ue,ve),[ve])],Ws=Vr((ve,pe)=>{const{_renderTimes:Ue}=ve,{_renderTimes:ft}=pe;return Ue!==ft}),Sl=jn((ve,pe)=>{const{_renderTimes:Ue}=ve,{_renderTimes:ft}=pe;return Ue!==ft}),ri=ee(36237),wl=ee(17835),ol=ee(63356),oc=ee(16931),ac=ee(51636),Cs=ve=>{const{componentCls:pe,lineWidth:Ue,lineType:ft,tableBorderColor:Nt,tableHeaderBg:jt,tablePaddingVertical:an,tablePaddingHorizontal:qt,calc:dn}=ve,ln=`${(0,ri.unit)(Ue)} ${ft} ${Nt}`,Ln=(In,Cn,mn)=>({[`&${pe}-${In}`]:{[`> ${pe}-container`]:{[`> ${pe}-content, > ${pe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${pe}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(dn(Cn).mul(-1).equal())}
|
|
|
${(0,ri.unit)(dn(dn(mn).add(Ue)).mul(-1).equal())}`}}}}}});return{[`${pe}-wrapper`]:{[`${pe}${pe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${pe}-title`]:{border:ln,borderBottom:0},[`> ${pe}-container`]:{borderInlineStart:ln,borderTop:ln,[`
|
|
|
> ${pe}-content,
|
|
|
> ${pe}-header,
|
|
|
> ${pe}-body,
|
|
|
> ${pe}-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 ":{[`> ${pe}-cell-fix-right-first::after`]:{borderInlineEnd:ln}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${pe}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(dn(an).mul(-1).equal())} ${(0,ri.unit)(dn(dn(qt).add(Ue)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ue,bottom:0,borderInlineEnd:ln,content:'""'}}}}}},[`&${pe}-scroll-horizontal`]:{[`> ${pe}-container > ${pe}-body`]:{"> table > tbody":{[`
|
|
|
> tr${pe}-expanded-row,
|
|
|
> tr${pe}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ln("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle)),Ln("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall)),{[`> ${pe}-footer`]:{border:ln,borderTop:0}}),[`${pe}-cell`]:{[`${pe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ri.unit)(Ue)} 0 ${(0,ri.unit)(Ue)} ${jt}`}},[`${pe}-bordered ${pe}-cell-scrollbar`]:{borderInlineEnd:ln}}}},El=ve=>{const{componentCls:pe}=ve;return{[`${pe}-wrapper`]:{[`${pe}-cell-ellipsis`]:Object.assign(Object.assign({},ol.vS),{wordBreak:"keep-all",[`
|
|
|
&${pe}-cell-fix-left-last,
|
|
|
&${pe}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${pe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${pe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},lc=ve=>{const{componentCls:pe}=ve;return{[`${pe}-wrapper`]:{[`${pe}-tbody > tr${pe}-placeholder`]:{textAlign:"center",color:ve.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ve.colorBgContainer}}}}},Us=ve=>{const{componentCls:pe,antCls:Ue,motionDurationSlow:ft,lineWidth:Nt,paddingXS:jt,lineType:an,tableBorderColor:qt,tableExpandIconBg:dn,tableExpandColumnWidth:ln,borderRadius:Ln,tablePaddingVertical:In,tablePaddingHorizontal:Cn,tableExpandedRowBg:mn,paddingXXS:hn,expandIconMarginTop:ir,expandIconSize:Wn,expandIconHalfInner:or,expandIconScale:dr,calc:ar}=ve,vr=`${(0,ri.unit)(Nt)} ${an} ${qt}`,Sr=ar(hn).sub(Nt).equal();return{[`${pe}-wrapper`]:{[`${pe}-expand-icon-col`]:{width:ln},[`${pe}-row-expand-icon-cell`]:{textAlign:"center",[`${pe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${pe}-row-indent`]:{height:1,float:"left"},[`${pe}-row-expand-icon`]:Object.assign(Object.assign({},(0,ol.Nd)(ve)),{position:"relative",float:"left",width:Wn,height:Wn,color:"inherit",lineHeight:(0,ri.unit)(Wn),background:dn,border:vr,borderRadius:Ln,transform:`scale(${dr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${ft} ease-out`,content:'""'},"&::before":{top:or,insetInlineEnd:Sr,insetInlineStart:Sr,height:Nt},"&::after":{top:Sr,bottom:Sr,insetInlineStart:or,width:Nt,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"}}),[`${pe}-row-indent + ${pe}-row-expand-icon`]:{marginTop:ir,marginInlineEnd:jt},[`tr${pe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:mn}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${pe}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ri.unit)(ar(In).mul(-1).equal())} ${(0,ri.unit)(ar(Cn).mul(-1).equal())}`,padding:`${(0,ri.unit)(In)} ${(0,ri.unit)(Cn)}`}}}},Gs=ve=>{const{componentCls:pe,antCls:Ue,iconCls:ft,tableFilterDropdownWidth:Nt,tableFilterDropdownSearchWidth:jt,paddingXXS:an,paddingXS:qt,colorText:dn,lineWidth:ln,lineType:Ln,tableBorderColor:In,headerIconColor:Cn,fontSizeSM:mn,tablePaddingHorizontal:hn,borderRadius:ir,motionDurationSlow:Wn,colorTextDescription:or,colorPrimary:dr,tableHeaderFilterActiveBg:ar,colorTextDisabled:vr,tableFilterDropdownBg:Sr,tableFilterDropdownHeight:Br,controlItemBgHover:Dr,controlItemBgActive:mi,boxShadowSecondary:Xr,filterDropdownMenuBg:zr,calc:ii}=ve,Nr=`${Ue}-dropdown`,Ar=`${pe}-filter-dropdown`,gr=`${Ue}-tree`,hr=`${(0,ri.unit)(ln)} ${Ln} ${In}`;return[{[`${pe}-wrapper`]:{[`${pe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${pe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ii(an).mul(-1).equal(),marginInline:`${(0,ri.unit)(an)} ${(0,ri.unit)(ii(hn).div(2).mul(-1).equal())}`,padding:`0 ${(0,ri.unit)(an)}`,color:Cn,fontSize:mn,borderRadius:ir,cursor:"pointer",transition:`all ${Wn}`,"&:hover":{color:or,background:ar},"&.active":{color:dr}}}},{[`${Ue}-dropdown`]:{[Ar]:Object.assign(Object.assign({},(0,ol.Wf)(ve)),{minWidth:Nt,backgroundColor:Sr,borderRadius:ir,boxShadow:Xr,overflow:"hidden",[`${Nr}-menu`]:{maxHeight:Br,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:zr,"&:empty::after":{display:"block",padding:`${(0,ri.unit)(qt)} 0`,color:vr,fontSize:mn,textAlign:"center",content:'"Not Found"'}},[`${Ar}-tree`]:{paddingBlock:`${(0,ri.unit)(qt)} 0`,paddingInline:qt,[gr]:{padding:0},[`${gr}-treenode ${gr}-node-content-wrapper:hover`]:{backgroundColor:Dr},[`${gr}-treenode-checkbox-checked ${gr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:mi}}},[`${Ar}-search`]:{padding:qt,borderBottom:hr,"&-input":{input:{minWidth:jt},[ft]:{color:vr}}},[`${Ar}-checkall`]:{width:"100%",marginBottom:an,marginInlineStart:an},[`${Ar}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ri.unit)(ii(qt).sub(ln).equal())} ${(0,ri.unit)(qt)}`,overflow:"hidden",borderTop:hr}})}},{[`${Ue}-dropdown ${Ar}, ${Ar}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:qt,color:dn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zl=ve=>{const{componentCls:pe,lineWidth:Ue,colorSplit:ft,motionDurationSlow:Nt,zIndexTableFixed:jt,tableBg:an,zIndexTableSticky:qt,calc:dn}=ve,ln=ft;return{[`${pe}-wrapper`]:{[`
|
|
|
${pe}-cell-fix-left,
|
|
|
${pe}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:jt,background:an},[`
|
|
|
${pe}-cell-fix-left-first::after,
|
|
|
${pe}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:dn(Ue).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Nt}`,content:'""',pointerEvents:"none"},[`${pe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${pe}-cell-fix-right-first::after,
|
|
|
${pe}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:dn(Ue).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Nt}`,content:'""',pointerEvents:"none"},[`${pe}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:dn(qt).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Nt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${pe}-ping-left`]:{[`&:not(${pe}-has-fix-left) ${pe}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${ln}`},[`
|
|
|
${pe}-cell-fix-left-first::after,
|
|
|
${pe}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${ln}`},[`${pe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${pe}-ping-right`]:{[`&:not(${pe}-has-fix-right) ${pe}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${ln}`},[`
|
|
|
${pe}-cell-fix-right-first::after,
|
|
|
${pe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${ln}`}},[`${pe}-fixed-column-gapped`]:{[`
|
|
|
${pe}-cell-fix-left-first::after,
|
|
|
${pe}-cell-fix-left-last::after,
|
|
|
${pe}-cell-fix-right-first::after,
|
|
|
${pe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},zl=ve=>{const{componentCls:pe,antCls:Ue,margin:ft}=ve;return{[`${pe}-wrapper`]:{[`${pe}-pagination${Ue}-pagination`]:{margin:`${(0,ri.unit)(ft)} 0`},[`${pe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ve.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Xs=ve=>{const{componentCls:pe,tableRadius:Ue}=ve;return{[`${pe}-wrapper`]:{[pe]:{[`${pe}-title, ${pe}-header`]:{borderRadius:`${(0,ri.unit)(Ue)} ${(0,ri.unit)(Ue)} 0 0`},[`${pe}-title + ${pe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${pe}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ue,borderStartEndRadius:Ue,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ue},"> *:last-child":{borderStartEndRadius:Ue}}},"&-footer":{borderRadius:`0 0 ${(0,ri.unit)(Ue)} ${(0,ri.unit)(Ue)}`}}}}},_s=ve=>{const{componentCls:pe}=ve;return{[`${pe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${pe}-pagination-left`]:{justifyContent:"flex-end"},[`${pe}-pagination-right`]:{justifyContent:"flex-start"},[`${pe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${pe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${pe}-row-indent`]:{float:"right"}}}}},ml=ve=>{const{componentCls:pe,antCls:Ue,iconCls:ft,fontSizeIcon:Nt,padding:jt,paddingXS:an,headerIconColor:qt,headerIconHoverColor:dn,tableSelectionColumnWidth:ln,tableSelectedRowBg:Ln,tableSelectedRowHoverBg:In,tableRowHoverBg:Cn,tablePaddingHorizontal:mn,calc:hn}=ve;return{[`${pe}-wrapper`]:{[`${pe}-selection-col`]:{width:ln,[`&${pe}-selection-col-with-dropdown`]:{width:hn(ln).add(Nt).add(hn(jt).div(4)).equal()}},[`${pe}-bordered ${pe}-selection-col`]:{width:hn(ln).add(hn(an).mul(2)).equal(),[`&${pe}-selection-col-with-dropdown`]:{width:hn(ln).add(Nt).add(hn(jt).div(4)).add(hn(an).mul(2)).equal()}},[`
|
|
|
table tr th${pe}-selection-column,
|
|
|
table tr td${pe}-selection-column,
|
|
|
${pe}-selection-column
|
|
|
`]:{paddingInlineEnd:ve.paddingXS,paddingInlineStart:ve.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${pe}-selection-column${pe}-cell-fix-left`]:{zIndex:hn(ve.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${pe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${pe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${pe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ri.unit)(hn(mn).div(4).equal()),[ft]:{color:qt,fontSize:Nt,verticalAlign:"baseline","&:hover":{color:dn}}},[`${pe}-tbody`]:{[`${pe}-row`]:{[`&${pe}-row-selected`]:{[`> ${pe}-cell`]:{background:Ln,"&-row-hover":{background:In}}},[`> ${pe}-cell-row-hover`]:{background:Cn}}}}}},cc=ve=>{const{componentCls:pe,tableExpandColumnWidth:Ue,calc:ft}=ve,Nt=(jt,an,qt,dn)=>({[`${pe}${pe}-${jt}`]:{fontSize:dn,[`
|
|
|
${pe}-title,
|
|
|
${pe}-footer,
|
|
|
${pe}-cell,
|
|
|
${pe}-thead > tr > th,
|
|
|
${pe}-tbody > tr > th,
|
|
|
${pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,ri.unit)(an)} ${(0,ri.unit)(qt)}`},[`${pe}-filter-trigger`]:{marginInlineEnd:(0,ri.unit)(ft(qt).div(2).mul(-1).equal())},[`${pe}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(ft(an).mul(-1).equal())} ${(0,ri.unit)(ft(qt).mul(-1).equal())}`},[`${pe}-tbody`]:{[`${pe}-wrapper:only-child ${pe}`]:{marginBlock:(0,ri.unit)(ft(an).mul(-1).equal()),marginInline:`${(0,ri.unit)(ft(Ue).sub(qt).equal())} ${(0,ri.unit)(ft(qt).mul(-1).equal())}`}},[`${pe}-selection-extra`]:{paddingInlineStart:(0,ri.unit)(ft(qt).div(4).equal())}}});return{[`${pe}-wrapper`]:Object.assign(Object.assign({},Nt("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle,ve.tableFontSizeMiddle)),Nt("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall,ve.tableFontSizeSmall))}},uc=ve=>{const{componentCls:pe,marginXXS:Ue,fontSizeIcon:ft,headerIconColor:Nt,headerIconHoverColor:jt}=ve;return{[`${pe}-wrapper`]:{[`${pe}-thead th${pe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ve.motionDurationSlow}, left 0s`,"&:hover":{background:ve.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ve.colorPrimary},[`
|
|
|
&${pe}-cell-fix-left:hover,
|
|
|
&${pe}-cell-fix-right:hover
|
|
|
`]:{background:ve.tableFixedHeaderSortActiveBg}},[`${pe}-thead th${pe}-column-sort`]:{background:ve.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${pe}-column-sort`]:{background:ve.tableBodySortBg},[`${pe}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${pe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${pe}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${pe}-column-sorter`]:{marginInlineStart:Ue,color:Nt,fontSize:0,transition:`color ${ve.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ft,"&.active":{color:ve.colorPrimary}},[`${pe}-column-sorter-up + ${pe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${pe}-column-sorters:hover ${pe}-column-sorter`]:{color:jt}}}},dc=ve=>{const{componentCls:pe,opacityLoading:Ue,tableScrollThumbBg:ft,tableScrollThumbBgHover:Nt,tableScrollThumbSize:jt,tableScrollBg:an,zIndexTableSticky:qt,stickyScrollBarBorderRadius:dn,lineWidth:ln,lineType:Ln,tableBorderColor:In}=ve,Cn=`${(0,ri.unit)(ln)} ${Ln} ${In}`;return{[`${pe}-wrapper`]:{[`${pe}-sticky`]:{"&-holder":{position:"sticky",zIndex:qt,background:ve.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ri.unit)(jt)} !important`,zIndex:qt,display:"flex",alignItems:"center",background:an,borderTop:Cn,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:jt,backgroundColor:ft,borderRadius:dn,transition:`all ${ve.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Nt}}}}}}},ma=ve=>{const{componentCls:pe,lineWidth:Ue,tableBorderColor:ft,calc:Nt}=ve,jt=`${(0,ri.unit)(Ue)} ${ve.lineType} ${ft}`;return{[`${pe}-wrapper`]:{[`${pe}-summary`]:{position:"relative",zIndex:ve.zIndexTableFixed,background:ve.tableBg,"> tr":{"> th, > td":{borderBottom:jt}}},[`div${pe}-summary`]:{boxShadow:`0 ${(0,ri.unit)(Nt(Ue).mul(-1).equal())} 0 ${ft}`}}}},ca=ve=>{const{componentCls:pe,motionDurationMid:Ue,lineWidth:ft,lineType:Nt,tableBorderColor:jt,calc:an}=ve,qt=`${(0,ri.unit)(ft)} ${Nt} ${jt}`,dn=`${pe}-expanded-row-cell`;return{[`${pe}-wrapper`]:{[`${pe}-tbody-virtual`]:{[`${pe}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${pe}-row,
|
|
|
& > div:not(${pe}-row) > ${pe}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${pe}-cell`]:{borderBottom:qt,transition:`background ${Ue}`},[`${pe}-expanded-row`]:{[`${dn}${dn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ri.unit)(ft)})`,borderInlineEnd:"none"}}},[`${pe}-bordered`]:{[`${pe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:qt,position:"absolute"},[`${pe}-cell`]:{borderInlineEnd:qt,[`&${pe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:an(ft).mul(-1).equal(),borderInlineStart:qt}}},[`&${pe}-virtual`]:{[`${pe}-placeholder ${pe}-cell`]:{borderInlineEnd:qt,borderBottom:qt}}}}}};const Uo=ve=>{const{componentCls:pe,fontWeightStrong:Ue,tablePaddingVertical:ft,tablePaddingHorizontal:Nt,tableExpandColumnWidth:jt,lineWidth:an,lineType:qt,tableBorderColor:dn,tableFontSize:ln,tableBg:Ln,tableRadius:In,tableHeaderTextColor:Cn,motionDurationMid:mn,tableHeaderBg:hn,tableHeaderCellSplitColor:ir,tableFooterTextColor:Wn,tableFooterBg:or,calc:dr}=ve,ar=`${(0,ri.unit)(an)} ${qt} ${dn}`;return{[`${pe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ol.dF)()),{[pe]:Object.assign(Object.assign({},(0,ol.Wf)(ve)),{fontSize:ln,background:Ln,borderRadius:`${(0,ri.unit)(In)} ${(0,ri.unit)(In)} 0 0`,scrollbarColor:`${ve.tableScrollThumbBg} ${ve.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ri.unit)(In)} ${(0,ri.unit)(In)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${pe}-cell,
|
|
|
${pe}-thead > tr > th,
|
|
|
${pe}-tbody > tr > th,
|
|
|
${pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,ri.unit)(ft)} ${(0,ri.unit)(Nt)}`,overflowWrap:"break-word"},[`${pe}-title`]:{padding:`${(0,ri.unit)(ft)} ${(0,ri.unit)(Nt)}`},[`${pe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Cn,fontWeight:Ue,textAlign:"start",background:hn,borderBottom:ar,transition:`background ${mn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${pe}-selection-column):not(${pe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ir,transform:"translateY(-50%)",transition:`background-color ${mn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${pe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${mn}, border-color ${mn}`,borderBottom:ar,[`
|
|
|
> ${pe}-wrapper:only-child,
|
|
|
> ${pe}-expanded-row-fixed > ${pe}-wrapper:only-child
|
|
|
`]:{[pe]:{marginBlock:(0,ri.unit)(dr(ft).mul(-1).equal()),marginInline:`${(0,ri.unit)(dr(jt).sub(Nt).equal())}
|
|
|
${(0,ri.unit)(dr(Nt).mul(-1).equal())}`,[`${pe}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Cn,fontWeight:Ue,textAlign:"start",background:hn,borderBottom:ar,transition:`background ${mn} ease`}}},[`${pe}-footer`]:{padding:`${(0,ri.unit)(ft)} ${(0,ri.unit)(Nt)}`,color:Wn,background:or}})}},jl=ve=>{const{colorFillAlter:pe,colorBgContainer:Ue,colorTextHeading:ft,colorFillSecondary:Nt,colorFillContent:jt,controlItemBgActive:an,controlItemBgActiveHover:qt,padding:dn,paddingSM:ln,paddingXS:Ln,colorBorderSecondary:In,borderRadiusLG:Cn,controlHeight:mn,colorTextPlaceholder:hn,fontSize:ir,fontSizeSM:Wn,lineHeight:or,lineWidth:dr,colorIcon:ar,colorIconHover:vr,opacityLoading:Sr,controlInteractiveSize:Br}=ve,Dr=new wl.FastColor(Nt).onBackground(Ue).toHexString(),mi=new wl.FastColor(jt).onBackground(Ue).toHexString(),Xr=new wl.FastColor(pe).onBackground(Ue).toHexString(),zr=new wl.FastColor(ar),ii=new wl.FastColor(vr),Nr=Br/2-dr,Ar=Nr*2+dr*3;return{headerBg:Xr,headerColor:ft,headerSortActiveBg:Dr,headerSortHoverBg:mi,bodySortBg:Xr,rowHoverBg:Xr,rowSelectedBg:an,rowSelectedHoverBg:qt,rowExpandedBg:pe,cellPaddingBlock:dn,cellPaddingInline:dn,cellPaddingBlockMD:ln,cellPaddingInlineMD:Ln,cellPaddingBlockSM:Ln,cellPaddingInlineSM:Ln,borderColor:In,headerBorderRadius:Cn,footerBg:Xr,footerColor:ft,cellFontSize:ir,cellFontSizeMD:ir,cellFontSizeSM:ir,headerSplitColor:In,fixedHeaderSortActiveBg:Dr,headerFilterHoverBg:jt,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:mn,stickyScrollBarBg:hn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(ir*or-dr*3)/2-Math.ceil((Wn*1.4-dr*3)/2),headerIconColor:zr.clone().setA(zr.a*Sr).toRgbString(),headerIconHoverColor:ii.clone().setA(ii.a*Sr).toRgbString(),expandIconHalfInner:Nr,expandIconSize:Ar,expandIconScale:Br/Ar}},Ys=2;var rs=(0,oc.I$)("Table",ve=>{const{colorTextHeading:pe,colorSplit:Ue,colorBgContainer:ft,controlInteractiveSize:Nt,headerBg:jt,headerColor:an,headerSortActiveBg:qt,headerSortHoverBg:dn,bodySortBg:ln,rowHoverBg:Ln,rowSelectedBg:In,rowSelectedHoverBg:Cn,rowExpandedBg:mn,cellPaddingBlock:hn,cellPaddingInline:ir,cellPaddingBlockMD:Wn,cellPaddingInlineMD:or,cellPaddingBlockSM:dr,cellPaddingInlineSM:ar,borderColor:vr,footerBg:Sr,footerColor:Br,headerBorderRadius:Dr,cellFontSize:mi,cellFontSizeMD:Xr,cellFontSizeSM:zr,headerSplitColor:ii,fixedHeaderSortActiveBg:Nr,headerFilterHoverBg:Ar,filterDropdownBg:gr,expandIconBg:hr,selectionColumnWidth:Mr,stickyScrollBarBg:Lr,calc:_r}=ve,xr=(0,ac.mergeToken)(ve,{tableFontSize:mi,tableBg:ft,tableRadius:Dr,tablePaddingVertical:hn,tablePaddingHorizontal:ir,tablePaddingVerticalMiddle:Wn,tablePaddingHorizontalMiddle:or,tablePaddingVerticalSmall:dr,tablePaddingHorizontalSmall:ar,tableBorderColor:vr,tableHeaderTextColor:an,tableHeaderBg:jt,tableFooterTextColor:Br,tableFooterBg:Sr,tableHeaderCellSplitColor:ii,tableHeaderSortBg:qt,tableHeaderSortHoverBg:dn,tableBodySortBg:ln,tableFixedHeaderSortActiveBg:Nr,tableHeaderFilterActiveBg:Ar,tableFilterDropdownBg:gr,tableRowHoverBg:Ln,tableSelectedRowBg:In,tableSelectedRowHoverBg:Cn,zIndexTableFixed:Ys,zIndexTableSticky:_r(Ys).add(1).equal({unit:!1}),tableFontSizeMiddle:Xr,tableFontSizeSmall:zr,tableSelectionColumnWidth:Mr,tableExpandIconBg:hr,tableExpandColumnWidth:_r(Nt).add(_r(ve.padding).mul(2)).equal(),tableExpandedRowBg:mn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Lr,tableScrollThumbBgHover:pe,tableScrollBg:Ue});return[Uo(xr),zl(xr),ma(xr),uc(xr),Gs(xr),Cs(xr),Xs(xr),Us(xr),ma(xr),lc(xr),ml(xr),Zl(xr),dc(xr),El(xr),cc(xr),_s(xr),ca(xr)]},jl,{unitless:{expandIconScale:!0}});const fc=[],hc=(ve,pe)=>{var Ue,ft;const{prefixCls:Nt,className:jt,rootClassName:an,style:qt,size:dn,bordered:ln,dropdownPrefixCls:Ln,dataSource:In,pagination:Cn,rowSelection:mn,rowKey:hn="key",rowClassName:ir,columns:Wn,children:or,childrenColumnName:dr,onChange:ar,getPopupContainer:vr,loading:Sr,expandIcon:Br,expandable:Dr,expandedRowRender:mi,expandIconColumnIndex:Xr,indentSize:zr,scroll:ii,sortDirections:Nr,locale:Ar,showSorterTooltip:gr={target:"full-header"},virtual:hr}=ve,Mr=(0,Ii.ln)("Table"),Lr=b.useMemo(()=>Wn||on(or),[Wn,or]),_r=b.useMemo(()=>Lr.some(yi=>yi.responsive),[Lr]),xr=(0,Zo.Z)(_r),wi=b.useMemo(()=>{const yi=new Set(Object.keys(xr).filter(ki=>xr[ki]));return Lr.filter(ki=>!ki.responsive||ki.responsive.some(vo=>yi.has(vo)))},[Lr,xr]),Oi=(0,Ji.Z)(ve,["className","style","columns"]),{locale:yo=ha.Z,direction:fo,table:ro,renderEmpty:ho,getPrefixCls:So,getPopupContainer:Di}=b.useContext(Yi.E_),Ti=(0,Mi.Z)(dn),wo=Object.assign(Object.assign({},yo.Table),Ar),Ao=In||fc,jr=So("table",Nt),di=So("dropdown",Ln),[,$r]=(0,ul.ZP)(),Tr=(0,Zi.Z)(jr),[Li,Ui,co]=rs(jr,Tr),to=Object.assign(Object.assign({childrenColumnName:dr,expandIconColumnIndex:Xr},Dr),{expandIcon:(Ue=Dr==null?void 0:Dr.expandIcon)!==null&&Ue!==void 0?Ue:(ft=ro==null?void 0:ro.expandable)===null||ft===void 0?void 0:ft.expandIcon}),{childrenColumnName:Eo="children"}=to,Ro=b.useMemo(()=>Ao.some(yi=>yi==null?void 0:yi[Eo])?"nest":mi||Dr!=null&&Dr.expandedRowRender?"row":null,[Ao]),Kr={body:b.useRef(null)},ei=Ci(jr),Xi=b.useRef(null),eo=b.useRef(null);ai(pe,()=>Object.assign(Object.assign({},eo.current),{nativeElement:Xi.current}));const Qi=b.useMemo(()=>typeof hn=="function"?hn:yi=>yi==null?void 0:yi[hn],[hn]),[zo]=Ra(Ao,Eo,Qi),Io={},va=function(yi,ki){let vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Po,Go,Ho,$a;const ea=Object.assign(Object.assign({},Io),yi);vo&&((Po=Io.resetPagination)===null||Po===void 0||Po.call(Io),!((Go=ea.pagination)===null||Go===void 0)&&Go.current&&(ea.pagination.current=1),Cn&&((Ho=Cn.onChange)===null||Ho===void 0||Ho.call(Cn,1,($a=ea.pagination)===null||$a===void 0?void 0:$a.pageSize))),ii&&ii.scrollToFirstRowOnChange!==!1&&Kr.body.current&&(0,Wi.Z)(0,{getContainer:()=>Kr.body.current}),ar==null||ar(ea.pagination,ea.filters,ea.sorter,{currentDataSource:Si(pl(Ao,ea.sorterStates,Eo),ea.filterStates,Eo),action:ki})},po=(yi,ki)=>{va({sorter:yi,sorterStates:ki},"sort",!1)},[zi,no,io,Fo]=js({prefixCls:jr,mergedColumns:wi,onSorterChange:po,sortDirections:Nr||["ascend","descend"],tableLocale:wo,showSorterTooltip:gr}),bo=b.useMemo(()=>pl(Ao,no,Eo),[Ao,no]);Io.sorter=Fo(),Io.sorterStates=no;const Hi=(yi,ki)=>{va({filters:yi,filterStates:ki},"filter",!0)},[mo,_i,Jo]=No({prefixCls:jr,locale:wo,dropdownPrefixCls:di,mergedColumns:wi,onFilterChange:Hi,getPopupContainer:vr||Di,rootClassName:Je()(an,Tr)}),ko=Si(bo,_i,Eo);Io.filters=Jo,Io.filterStates=_i;const ua=b.useMemo(()=>{const yi={};return Object.keys(Jo).forEach(ki=>{Jo[ki]!==null&&(yi[ki]=Jo[ki])}),Object.assign(Object.assign({},io),{filters:yi})},[io,Jo]),[ga]=xs(ua),Ga=(yi,ki)=>{va({pagination:Object.assign(Object.assign({},Io.pagination),{current:yi,pageSize:ki})},"paginate")},[oo,Wl]=Fa(ko.length,Ga,Cn);Io.pagination=Cn===!1?{}:xa(oo,Cn),Io.resetPagination=Wl;const da=b.useMemo(()=>{if(Cn===!1||!oo.pageSize)return ko;const{current:yi=1,total:ki,pageSize:vo=Wa}=oo;return ko.length<ki?ko.length>vo?ko.slice((yi-1)*vo,yi*vo):ko:ko.slice((yi-1)*vo,yi*vo)},[!!Cn,ko,oo==null?void 0:oo.current,oo==null?void 0:oo.pageSize,oo==null?void 0:oo.total]),[Aa,wa]=Hr({prefixCls:jr,data:ko,pageData:da,getRowKey:Qi,getRecordByKey:zo,expandType:Ro,childrenColumnName:Eo,locale:wo,getPopupContainer:vr||Di},mn),ya=(yi,ki,vo)=>{let Po;return typeof ir=="function"?Po=Je()(ir(yi,ki,vo)):Po=Je()(ir),Je()({[`${jr}-row-selected`]:wa.has(Qi(yi,ki))},Po)};to.__PARENT_RENDER_ICON__=to.expandIcon,to.expandIcon=to.expandIcon||Br||si(wo),Ro==="nest"&&to.expandIconColumnIndex===void 0?to.expandIconColumnIndex=mn?1:0:to.expandIconColumnIndex>0&&mn&&(to.expandIconColumnIndex-=1),typeof to.indentSize!="number"&&(to.indentSize=typeof zr=="number"?zr:15);const ao=b.useCallback(yi=>ga(Aa(mo(zi(yi)))),[zi,mo,Aa]);let Ea,al;if(Cn!==!1&&(oo!=null&&oo.total)){let yi;oo.size?yi=oo.size:yi=Ti==="small"||Ti==="middle"?"small":void 0;const ki=Go=>b.createElement(Wo.Z,Object.assign({},oo,{className:Je()(`${jr}-pagination ${jr}-pagination-${Go}`,oo.className),size:yi})),vo=fo==="rtl"?"left":"right",{position:Po}=oo;if(Po!==null&&Array.isArray(Po)){const Go=Po.find(ea=>ea.includes("top")),Ho=Po.find(ea=>ea.includes("bottom")),$a=Po.every(ea=>`${ea}`=="none");!Go&&!Ho&&!$a&&(al=ki(vo)),Go&&(Ea=ki(Go.toLowerCase().replace("top",""))),Ho&&(al=ki(Ho.toLowerCase().replace("bottom","")))}else al=ki(vo)}let Xa;typeof Sr=="boolean"?Xa={spinning:Sr}:typeof Sr=="object"&&(Xa=Object.assign({spinning:!0},Sr));const _a=Je()(co,Tr,`${jr}-wrapper`,ro==null?void 0:ro.className,{[`${jr}-wrapper-rtl`]:fo==="rtl"},jt,an,Ui),is=Object.assign(Object.assign({},ro==null?void 0:ro.style),qt),os=typeof(Ar==null?void 0:Ar.emptyText)!="undefined"?Ar.emptyText:(ho==null?void 0:ho("Table"))||b.createElement(gi.Z,{componentName:"Table"}),as=hr?Sl:Ws,ls={},Is=b.useMemo(()=>{const{fontSize:yi,lineHeight:ki,lineWidth:vo,padding:Po,paddingXS:Go,paddingSM:Ho}=$r,$a=Math.floor(yi*ki);switch(Ti){case"middle":return Ho*2+$a+vo;case"small":return Go*2+$a+vo;default:return Po*2+$a+vo}},[$r,Ti]);return hr&&(ls.listItemHeight=Is),Li(b.createElement("div",{ref:Xi,className:_a,style:is},b.createElement(Mo.Z,Object.assign({spinning:!1},Xa),Ea,b.createElement(as,Object.assign({},ls,Oi,{ref:eo,columns:wi,direction:fo,expandable:to,prefixCls:jr,className:Je()({[`${jr}-middle`]:Ti==="middle",[`${jr}-small`]:Ti==="small",[`${jr}-bordered`]:ln,[`${jr}-empty`]:Ao.length===0},co,Tr,Ui),data:da,rowKey:Qi,rowClassName:ya,emptyText:os,internalHooks:fe,internalRefs:Kr,transformColumns:ao,getContainerWidth:ei})),al)))};var pc=b.forwardRef(hc);const ws=(ve,pe)=>{const Ue=b.useRef(0);return Ue.current+=1,b.createElement(pc,Object.assign({},ve,{ref:pe,_renderTimes:Ue.current}))},Ua=b.forwardRef(ws);Ua.SELECTION_COLUMN=Ai,Ua.EXPAND_COLUMN=je,Ua.SELECTION_ALL=lo,Ua.SELECTION_INVERT=xo,Ua.SELECTION_NONE=Do,Ua.Column=br,Ua.ColumnGroup=Bn,Ua.Summary=Ae;var Es=Ua,mc=Es},96599:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Je}});var b=ee(59301),je=ee(92310),fe=ee.n(je),Ge=ee(2738),Oe=ee(29509),ye=ee(78776),De=ee(22703),Ze=ee(12919),Ce=ee(48755),ue=ee(36237),tt=ee(17835),ke=ee(63356),Lt=ee(51636),at=ee(16931);const $e=de=>{const{paddingXXS:Mt,lineWidth:We,tagPaddingHorizontal:Pt,componentCls:Xt,calc:Be}=de,me=Be(Pt).sub(We).equal(),ht=Be(Mt).sub(We).equal();return{[Xt]:Object.assign(Object.assign({},(0,ke.Wf)(de)),{display:"inline-block",height:"auto",marginInlineEnd:de.marginXS,paddingInline:me,fontSize:de.tagFontSize,lineHeight:de.tagLineHeight,whiteSpace:"nowrap",background:de.defaultBg,border:`${(0,ue.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadiusSM,opacity:1,transition:`all ${de.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Xt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:de.defaultColor},[`${Xt}-close-icon`]:{marginInlineStart:ht,fontSize:de.tagIconSize,color:de.colorTextDescription,cursor:"pointer",transition:`all ${de.motionDurationMid}`,"&:hover":{color:de.colorTextHeading}},[`&${Xt}-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(${Xt}-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:me}}),[`${Xt}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},Me=de=>{const{lineWidth:Mt,fontSizeIcon:We,calc:Pt}=de,Xt=de.fontSizeSM;return(0,Lt.mergeToken)(de,{tagFontSize:Xt,tagLineHeight:(0,ue.unit)(Pt(de.lineHeightSM).mul(Xt).equal()),tagIconSize:Pt(We).sub(Pt(Mt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},Ie=de=>({defaultBg:new tt.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var Xe=(0,at.I$)("Tag",de=>{const Mt=Me(de);return $e(Mt)},Ie),pt=function(de,Mt){var We={};for(var Pt in de)Object.prototype.hasOwnProperty.call(de,Pt)&&Mt.indexOf(Pt)<0&&(We[Pt]=de[Pt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Pt=Object.getOwnPropertySymbols(de);Xt<Pt.length;Xt++)Mt.indexOf(Pt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(de,Pt[Xt])&&(We[Pt[Xt]]=de[Pt[Xt]]);return We},Ve=b.forwardRef((de,Mt)=>{const{prefixCls:We,style:Pt,className:Xt,checked:Be,onChange:me,onClick:ht}=de,Ut=pt(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Bt,tag:be}=b.useContext(Ce.E_),Ye=Jt=>{me==null||me(!Be),ht==null||ht(Jt)},et=Bt("tag",We),[_t,rt,Ft]=Xe(et),qe=fe()(et,`${et}-checkable`,{[`${et}-checkable-checked`]:Be},be==null?void 0:be.className,Xt,rt,Ft);return _t(b.createElement("span",Object.assign({},Ut,{ref:Mt,style:Object.assign(Object.assign({},Pt),be==null?void 0:be.style),className:qe,onClick:Ye})))}),Te=ee(93427);const nt=de=>(0,Te.Z)(de,(Mt,We)=>{let{textColor:Pt,lightBorderColor:Xt,lightColor:Be,darkColor:me}=We;return{[`${de.componentCls}${de.componentCls}-${Mt}`]:{color:Pt,background:Be,borderColor:Xt,"&-inverse":{color:de.colorTextLightSolid,background:me,borderColor:me},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Qe=(0,at.bk)(["Tag","preset"],de=>{const Mt=Me(de);return nt(Mt)},Ie);function zt(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const St=(de,Mt,We)=>{const Pt=zt(We);return{[`${de.componentCls}${de.componentCls}-${Mt}`]:{color:de[`color${We}`],background:de[`color${Pt}Bg`],borderColor:de[`color${Pt}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var it=(0,at.bk)(["Tag","status"],de=>{const Mt=Me(de);return[St(Mt,"success","Success"),St(Mt,"processing","Info"),St(Mt,"error","Error"),St(Mt,"warning","Warning")]},Ie),ut=function(de,Mt){var We={};for(var Pt in de)Object.prototype.hasOwnProperty.call(de,Pt)&&Mt.indexOf(Pt)<0&&(We[Pt]=de[Pt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Pt=Object.getOwnPropertySymbols(de);Xt<Pt.length;Xt++)Mt.indexOf(Pt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(de,Pt[Xt])&&(We[Pt[Xt]]=de[Pt[Xt]]);return We};const st=b.forwardRef((de,Mt)=>{const{prefixCls:We,className:Pt,rootClassName:Xt,style:Be,children:me,icon:ht,color:Ut,onClose:Bt,bordered:be=!0,visible:Ye}=de,et=ut(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:_t,direction:rt,tag:Ft}=b.useContext(Ce.E_),[qe,Jt]=b.useState(!0),Dt=(0,Ge.Z)(et,["closeIcon","closable"]);b.useEffect(()=>{Ye!==void 0&&Jt(Ye)},[Ye]);const ae=(0,Oe.o2)(Ut),ne=(0,Oe.yT)(Ut),te=ae||ne,oe=Object.assign(Object.assign({backgroundColor:Ut&&!te?Ut:void 0},Ft==null?void 0:Ft.style),Be),ce=_t("tag",We),[re,le,ge]=Xe(ce),vt=fe()(ce,Ft==null?void 0:Ft.className,{[`${ce}-${Ut}`]:te,[`${ce}-has-color`]:Ut&&!te,[`${ce}-hidden`]:!qe,[`${ce}-rtl`]:rt==="rtl",[`${ce}-borderless`]:!be},Pt,Xt,le,ge),Re=Pe=>{Pe.stopPropagation(),Bt==null||Bt(Pe),!Pe.defaultPrevented&&Jt(!1)},[,Ae]=(0,ye.Z)((0,ye.w)(de),(0,ye.w)(Ft),{closable:!1,closeIconRender:Pe=>{const Zt=b.createElement("span",{className:`${ce}-close-icon`,onClick:Re},Pe);return(0,De.wm)(Pe,Zt,Ht=>({onClick:rn=>{var Yt;(Yt=Ht==null?void 0:Ht.onClick)===null||Yt===void 0||Yt.call(Ht,rn),Re(rn)},className:fe()(Ht==null?void 0:Ht.className,`${ce}-close-icon`)}))}}),Ke=typeof et.onClick=="function"||me&&me.type==="a",_e=ht||null,gt=_e?b.createElement(b.Fragment,null,_e,me&&b.createElement("span",null,me)):me,we=b.createElement("span",Object.assign({},Dt,{ref:Mt,className:vt,style:oe}),gt,Ae,ae&&b.createElement(Qe,{key:"preset",prefixCls:ce}),ne&&b.createElement(it,{key:"status",prefixCls:ce}));return re(Ke?b.createElement(Ze.Z,{component:"Tag"},we):we)});st.CheckableTag=Ve;var Je=st},18287:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Bt}});var b=ee(3741),je=ee(94480),fe=ee(59301),Ge=ee(52671),Oe=ee(8657),ye=ee(54476),De={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"},Ze=De,Ce=ee(7657),ue=function(Ye,et){return fe.createElement(Ce.Z,(0,ye.Z)({},Ye,{ref:et,icon:Ze}))},tt=fe.forwardRef(ue),ke=tt,Lt=ee(92310),at=ee.n(Lt),$e=ee(82661),Me=ee(34061),Ie=ee(48755),Xe=ee(56082),pt=ee(86641),Rt=ee(57700),Ve=ee(12425);const Te=4;function nt(be){const{dropPosition:Ye,dropLevelOffset:et,prefixCls:_t,indent:rt,direction:Ft="ltr"}=be,qe=Ft==="ltr"?"left":"right",Jt=Ft==="ltr"?"right":"left",Dt={[qe]:-et*rt+Te,[Jt]:0};switch(Ye){case-1:Dt.top=-3;break;case 1:Dt.bottom=-3;break;default:Dt.bottom=-3,Dt[qe]=rt+Te;break}return fe.createElement("div",{style:Dt,className:`${_t}-drop-indicator`})}var Qe=nt,zt=ee(85278),it=fe.forwardRef((be,Ye)=>{var et;const{getPrefixCls:_t,direction:rt,virtual:Ft,tree:qe}=fe.useContext(Ie.E_),{prefixCls:Jt,className:Dt,showIcon:ae=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:oe,blockNode:ce=!1,children:re,checkable:le=!1,selectable:ge=!0,draggable:vt,motion:Re,style:Ae}=be,Ke=_t("tree",Jt),_e=_t(),gt=Re!=null?Re:Object.assign(Object.assign({},(0,pt.Z)(_e)),{motionAppear:!1}),we=Object.assign(Object.assign({},be),{checkable:le,selectable:ge,showIcon:ae,motion:gt,blockNode:ce,showLine:!!ne,dropIndicatorRender:Qe}),[Pe,Zt,Ht]=(0,Ve.ZP)(Ke),[,rn]=(0,Rt.ZP)(),Yt=rn.paddingXS/2+(((et=rn.Tree)===null||et===void 0?void 0:et.titleHeight)||rn.controlHeightSM),Ot=fe.useMemo(()=>{if(!vt)return!1;let Wt={};switch(typeof vt){case"function":Wt.nodeDraggable=vt;break;case"object":Wt=Object.assign({},vt);break;default:break}return Wt.icon!==!1&&(Wt.icon=Wt.icon||fe.createElement(Xe.Z,null)),Wt},[vt]),nn=Wt=>fe.createElement(zt.Z,{prefixCls:Ke,switcherIcon:te,switcherLoadingIcon:oe,treeNodeProps:Wt,showLine:ne});return Pe(fe.createElement(b.ZP,Object.assign({itemHeight:Yt,ref:Ye,virtual:Ft},we,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Ae),prefixCls:Ke,className:at()({[`${Ke}-icon-hide`]:!ae,[`${Ke}-block-node`]:ce,[`${Ke}-unselectable`]:!ge,[`${Ke}-rtl`]:rt==="rtl"},qe==null?void 0:qe.className,Dt,Zt,Ht),direction:rt,checkable:le&&fe.createElement("span",{className:`${Ke}-checkbox-inner`}),selectable:ge,switcherIcon:nn,draggable:Ot}),re))});const ut=0,Se=1,st=2;function Je(be,Ye,et){const{key:_t,children:rt}=et;function Ft(qe){const Jt=qe[_t],Dt=qe[rt];Ye(Jt,qe)!==!1&&Je(Dt||[],Ye,et)}be.forEach(Ft)}function de(be){let{treeData:Ye,expandedKeys:et,startKey:_t,endKey:rt,fieldNames:Ft}=be;const qe=[];let Jt=ut;if(_t&&_t===rt)return[_t];if(!_t||!rt)return[];function Dt(ae){return ae===_t||ae===rt}return Je(Ye,ae=>{if(Jt===st)return!1;if(Dt(ae)){if(qe.push(ae),Jt===ut)Jt=Se;else if(Jt===Se)return Jt=st,!1}else Jt===Se&&qe.push(ae);return et.includes(ae)},(0,Me.w$)(Ft)),qe}function Mt(be,Ye,et){const _t=(0,je.Z)(Ye),rt=[];return Je(be,(Ft,qe)=>{const Jt=_t.indexOf(Ft);return Jt!==-1&&(rt.push(qe),_t.splice(Jt,1)),!!_t.length},(0,Me.w$)(et)),rt}var We=function(be,Ye){var et={};for(var _t in be)Object.prototype.hasOwnProperty.call(be,_t)&&Ye.indexOf(_t)<0&&(et[_t]=be[_t]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,_t=Object.getOwnPropertySymbols(be);rt<_t.length;rt++)Ye.indexOf(_t[rt])<0&&Object.prototype.propertyIsEnumerable.call(be,_t[rt])&&(et[_t[rt]]=be[_t[rt]]);return et};function Pt(be){const{isLeaf:Ye,expanded:et}=be;return Ye?fe.createElement(Ge.Z,null):et?fe.createElement(Oe.Z,null):fe.createElement(ke,null)}function Xt(be){let{treeData:Ye,children:et}=be;return Ye||(0,Me.zn)(et)}const Be=(be,Ye)=>{var{defaultExpandAll:et,defaultExpandParent:_t,defaultExpandedKeys:rt}=be,Ft=We(be,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const qe=fe.useRef(null),Jt=fe.useRef(null),Dt=()=>{const{keyEntities:Pe}=(0,Me.I8)(Xt(Ft));let Zt;return et?Zt=Object.keys(Pe):_t?Zt=(0,$e.r7)(Ft.expandedKeys||rt||[],Pe):Zt=Ft.expandedKeys||rt||[],Zt},[ae,ne]=fe.useState(Ft.selectedKeys||Ft.defaultSelectedKeys||[]),[te,oe]=fe.useState(()=>Dt());fe.useEffect(()=>{"selectedKeys"in Ft&&ne(Ft.selectedKeys)},[Ft.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Ft&&oe(Ft.expandedKeys)},[Ft.expandedKeys]);const ce=(Pe,Zt)=>{var Ht;return"expandedKeys"in Ft||oe(Pe),(Ht=Ft.onExpand)===null||Ht===void 0?void 0:Ht.call(Ft,Pe,Zt)},re=(Pe,Zt)=>{var Ht;const{multiple:rn,fieldNames:Yt}=Ft,{node:Ot,nativeEvent:nn}=Zt,{key:Wt=""}=Ot,He=Xt(Ft),mt=Object.assign(Object.assign({},Zt),{selected:!0}),ot=(nn==null?void 0:nn.ctrlKey)||(nn==null?void 0:nn.metaKey),Tt=nn==null?void 0:nn.shiftKey;let Ne;rn&&ot?(Ne=Pe,qe.current=Wt,Jt.current=Ne,mt.selectedNodes=Mt(He,Ne,Yt)):rn&&Tt?(Ne=Array.from(new Set([].concat((0,je.Z)(Jt.current||[]),(0,je.Z)(de({treeData:He,expandedKeys:te,startKey:Wt,endKey:qe.current,fieldNames:Yt}))))),mt.selectedNodes=Mt(He,Ne,Yt)):(Ne=[Wt],qe.current=Wt,Jt.current=Ne,mt.selectedNodes=Mt(He,Ne,Yt)),(Ht=Ft.onSelect)===null||Ht===void 0||Ht.call(Ft,Ne,mt),"selectedKeys"in Ft||ne(Ne)},{getPrefixCls:le,direction:ge}=fe.useContext(Ie.E_),{prefixCls:vt,className:Re,showIcon:Ae=!0,expandAction:Ke="click"}=Ft,_e=We(Ft,["prefixCls","className","showIcon","expandAction"]),gt=le("tree",vt),we=at()(`${gt}-directory`,{[`${gt}-directory-rtl`]:ge==="rtl"},Re);return fe.createElement(it,Object.assign({icon:Pt,ref:Ye,blockNode:!0},_e,{showIcon:Ae,expandAction:Ke,prefixCls:gt,className:we,expandedKeys:te,selectedKeys:ae,onSelect:re,onExpand:ce}))};var ht=fe.forwardRef(Be);const Ut=it;Ut.DirectoryTree=ht,Ut.TreeNode=b.OF;var Bt=Ut},12425:function(yn,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return $e},Yk:function(){return ke},TM:function(){return Lt}});var b=ee(36237),je=ee(36170),fe=ee(63356),Ge=ee(34961),Oe=ee(51636),ye=ee(16931);const De=Me=>{let{treeCls:Ie,treeNodeCls:Xe,directoryNodeSelectedBg:pt,directoryNodeSelectedColor:Rt,motionDurationMid:Ve,borderRadius:Te,controlItemBgHover:nt}=Me;return{[`${Ie}${Ie}-directory ${Xe}`]:{[`${Ie}-node-content-wrapper`]:{position:"static",[`> *:not(${Ie}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Ve}`,content:'""',borderRadius:Te},"&:hover:before":{background:nt}},[`${Ie}-switcher, ${Ie}-checkbox, ${Ie}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Ie}-switcher, ${Ie}-draggable-icon`]:{color:Rt},[`${Ie}-node-content-wrapper`]:{color:Rt,background:"transparent","&:before, &:hover:before":{background:pt}}}}}},Ze=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ce=(Me,Ie)=>({[`.${Me}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ie.motionDurationSlow}`}}}),ue=(Me,Ie)=>({[`.${Me}-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,b.unit)(Ie.lineWidthBold)} solid ${Ie.colorPrimary}`,borderRadius:"50%",content:'""'}}}),tt=(Me,Ie)=>{const{treeCls:Xe,treeNodeCls:pt,treeNodePadding:Rt,titleHeight:Ve,indentSize:Te,nodeSelectedBg:nt,nodeHoverBg:Qe,colorTextQuaternary:zt,controlItemBgActiveDisabled:St}=Ie;return{[Xe]:Object.assign(Object.assign({},(0,fe.Wf)(Ie)),{background:Ie.colorBgContainer,borderRadius:Ie.borderRadius,transition:`background-color ${Ie.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Xe}-rtl ${Xe}-switcher_close ${Xe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Xe}-active-focused)`]:Object.assign({},(0,fe.oN)(Ie)),[`${Xe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Xe}-block-node`]:{[`${Xe}-list-holder-inner`]:{alignItems:"stretch",[`${Xe}-node-content-wrapper`]:{flex:"auto"},[`${pt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Ie.colorPrimary}`,opacity:0,animationName:Ze,animationDuration:Ie.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Ie.borderRadius}}},[pt]:{display:"flex",alignItems:"flex-start",marginBottom:Rt,lineHeight:(0,b.unit)(Ve),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Rt},[`&-disabled ${Xe}-node-content-wrapper`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Xe}-checkbox-disabled + ${Xe}-node-selected,&${pt}-disabled${pt}-selected ${Xe}-node-content-wrapper`]:{backgroundColor:St},[`${Xe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${pt}-disabled)`]:{[`${Xe}-node-content-wrapper`]:{"&:hover":{color:Ie.nodeHoverColor}}},[`&-active ${Xe}-node-content-wrapper`]:{background:Ie.controlItemBgHover},[`&:not(${pt}-disabled).filter-node ${Xe}-title`]:{color:Ie.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Xe}-draggable-icon`]:{flexShrink:0,width:Ve,textAlign:"center",visibility:"visible",color:zt},[`&${pt}-disabled ${Xe}-draggable-icon`]:{visibility:"hidden"}}},[`${Xe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Te}},[`${Xe}-draggable-icon`]:{visibility:"hidden"},[`${Xe}-switcher, ${Xe}-checkbox`]:{marginInlineEnd:Ie.calc(Ie.calc(Ve).sub(Ie.controlInteractiveSize)).div(2).equal()},[`${Xe}-switcher`]:Object.assign(Object.assign({},Ce(Me,Ie)),{position:"relative",flex:"none",alignSelf:"stretch",width:Ve,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Ie.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Ve,height:Ve,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Ie.borderRadius,transition:`all ${Ie.motionDurationSlow}`},[`&:not(${Xe}-switcher-noop):hover:before`]:{backgroundColor:Ie.colorBgTextHover},[`&_close ${Xe}-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(Ve).div(2).equal(),bottom:Ie.calc(Rt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ie.calc(Ie.calc(Ve).div(2).equal()).mul(.8).equal(),height:Ie.calc(Ve).div(2).equal(),borderBottom:`1px solid ${Ie.colorBorder}`,content:'""'}}}),[`${Xe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Ve,paddingBlock:0,paddingInline:Ie.paddingXS,background:"transparent",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ue(Me,Ie)),{"&:hover":{backgroundColor:Qe},[`&${Xe}-node-selected`]:{color:Ie.nodeSelectedColor,backgroundColor:nt},[`${Xe}-iconEle`]:{display:"inline-block",width:Ve,height:Ve,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Xe}-unselectable ${Xe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${pt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Ie.colorPrimary}`},"&-show-line":{[`${Xe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ie.calc(Ve).div(2).equal(),bottom:Ie.calc(Rt).mul(-1).equal(),borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Xe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${pt}-leaf-last ${Xe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,b.unit)(Ie.calc(Ve).div(2).equal())} !important`}})}},ke=function(Me,Ie){let Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const pt=`.${Me}`,Rt=`${pt}-treenode`,Ve=Ie.calc(Ie.paddingXS).div(2).equal(),Te=(0,Oe.mergeToken)(Ie,{treeCls:pt,treeNodeCls:Rt,treeNodePadding:Ve});return[tt(Me,Te),Xe&&De(Te)].filter(Boolean)},Lt=Me=>{const{controlHeightSM:Ie,controlItemBgHover:Xe,controlItemBgActive:pt}=Me,Rt=Ie;return{titleHeight:Rt,indentSize:Rt,nodeHoverBg:Xe,nodeHoverColor:Me.colorText,nodeSelectedBg:pt,nodeSelectedColor:Me.colorText}},at=Me=>{const{colorTextLightSolid:Ie,colorPrimary:Xe}=Me;return Object.assign(Object.assign({},Lt(Me)),{directoryNodeSelectedColor:Ie,directoryNodeSelectedBg:Xe})};var $e=(0,ye.I$)("Tree",(Me,Ie)=>{let{prefixCls:Xe}=Ie;return[{[Me.componentCls]:(0,je.C2)(`${Xe}-checkbox`,Me)},ke(Xe,Me),(0,Ge.Z)(Me)]},at)},85278:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ie}});var b=ee(59301),je=ee(54476),fe={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"},Ge=fe,Oe=ee(7657),ye=function(pt,Rt){return b.createElement(Oe.Z,(0,je.Z)({},pt,{ref:Rt,icon:Ge}))},De=b.forwardRef(ye),Ze=De,Ce=ee(52671),ue=ee(58617),tt=ee(15075),ke=ee(43531),Lt=ee(92310),at=ee.n(Lt),$e=ee(22703),Ie=Xe=>{const{prefixCls:pt,switcherIcon:Rt,treeNodeProps:Ve,showLine:Te,switcherLoadingIcon:nt}=Xe,{isLeaf:Qe,expanded:zt,loading:St}=Ve;if(St)return b.isValidElement(nt)?nt:b.createElement(ue.Z,{className:`${pt}-switcher-loading-icon`});let it;if(Te&&typeof Te=="object"&&(it=Te.showLeafIcon),Qe){if(!Te)return null;if(typeof it!="boolean"&&it){const st=typeof it=="function"?it(Ve):it,Je=`${pt}-switcher-line-custom-icon`;return b.isValidElement(st)?(0,$e.Tm)(st,{className:at()(st.props.className||"",Je)}):st}return it?b.createElement(Ce.Z,{className:`${pt}-switcher-line-icon`}):b.createElement("span",{className:`${pt}-switcher-leaf-line`})}const ut=`${pt}-switcher-icon`,Se=typeof Rt=="function"?Rt(Ve):Rt;return b.isValidElement(Se)?(0,$e.Tm)(Se,{className:at()(Se.props.className||"",ut)}):Se!==void 0?Se:Te?zt?b.createElement(tt.Z,{className:`${pt}-switcher-line-icon`}):b.createElement(ke.Z,{className:`${pt}-switcher-line-icon`}):b.createElement(Ze,{className:ut})}},94968:function(yn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return xt}});var b=ee(59301),je=ee(94480),fe=ee(4676),Ge=ee(92310),Oe=ee.n(Ge),ye=ee(54476),De=ee(67732),Ze=ee(83652),Ce=ee(31226),ue=ee(42403),tt=ee(158),ke=ee(20068),Lt=ee(33885),at=ee(75931),$e=ee(76190),Me=ee(75044),Ie=ee(3202),Xe=ee(26112),pt=ee(48736),Rt=function(Ee,It){if(Ee&&It){var kt=Array.isArray(It)?It:It.split(","),Vt=Ee.name||"",bt=Ee.type||"",Ct=bt.replace(/\/.*$/,"");return kt.some(function(Et){var $t=Et.trim();if(/^\*(\/\*)?$/.test(Et))return!0;if($t.charAt(0)==="."){var Pn=Vt.toLowerCase(),wn=$t.toLowerCase(),Dn=[wn];return(wn===".jpg"||wn===".jpeg")&&(Dn=[".jpg",".jpeg"]),Dn.some(function(nr){return Pn.endsWith(nr)})}return/\/\*$/.test($t)?Ct===$t.replace(/\/.*$/,""):bt===$t?!0:/^\w+$/.test($t)?((0,pt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat($t,"'.Skip for check.")),!0):!1})}return!0};function Ve(Ee,It){var kt="cannot ".concat(Ee.method," ").concat(Ee.action," ").concat(It.status,"'"),Vt=new Error(kt);return Vt.status=It.status,Vt.method=Ee.method,Vt.url=Ee.action,Vt}function Te(Ee){var It=Ee.responseText||Ee.response;if(!It)return It;try{return JSON.parse(It)}catch(kt){return It}}function nt(Ee){var It=new XMLHttpRequest;Ee.onProgress&&It.upload&&(It.upload.onprogress=function(Ct){Ct.total>0&&(Ct.percent=Ct.loaded/Ct.total*100),Ee.onProgress(Ct)});var kt=new FormData;Ee.data&&Object.keys(Ee.data).forEach(function(bt){var Ct=Ee.data[bt];if(Array.isArray(Ct)){Ct.forEach(function(Et){kt.append("".concat(bt,"[]"),Et)});return}kt.append(bt,Ct)}),Ee.file instanceof Blob?kt.append(Ee.filename,Ee.file,Ee.file.name):kt.append(Ee.filename,Ee.file),It.onerror=function(Ct){Ee.onError(Ct)},It.onload=function(){return It.status<200||It.status>=300?Ee.onError(Ve(Ee,It),Te(It)):Ee.onSuccess(Te(It),It)},It.open(Ee.method,Ee.action,!0),Ee.withCredentials&&"withCredentials"in It&&(It.withCredentials=!0);var Vt=Ee.headers||{};return Vt["X-Requested-With"]!==null&&It.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Vt).forEach(function(bt){Vt[bt]!==null&&It.setRequestHeader(bt,Vt[bt])}),It.send(kt),{abort:function(){It.abort()}}}var Qe=function(){var Ee=(0,Ie.Z)((0,Me.Z)().mark(function It(kt,Vt){var bt,Ct,Et,$t,Pn,wn,Dn,nr;return(0,Me.Z)().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:wn=function(){return wn=(0,Ie.Z)((0,Me.Z)().mark(function _n(Jn){return(0,Me.Z)().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:return Er.abrupt("return",new Promise(function(Cr){Jn.file(function(wr){Vt(wr)?(Jn.fullPath&&!wr.webkitRelativePath&&(Object.defineProperties(wr,{webkitRelativePath:{writable:!0}}),wr.webkitRelativePath=Jn.fullPath.replace(/^\//,""),Object.defineProperties(wr,{webkitRelativePath:{writable:!1}})),Cr(wr)):Cr(null)})}));case 1:case"end":return Er.stop()}},_n)})),wn.apply(this,arguments)},Pn=function(_n){return wn.apply(this,arguments)},$t=function(){return $t=(0,Ie.Z)((0,Me.Z)().mark(function _n(Jn){var ur,Er,Cr,wr,Yn;return(0,Me.Z)().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:ur=Jn.createReader(),Er=[];case 2:return mr.next=5,new Promise(function(Vr){ur.readEntries(Vr,function(){return Vr([])})});case 5:if(Cr=mr.sent,wr=Cr.length,wr){mr.next=9;break}return mr.abrupt("break",12);case 9:for(Yn=0;Yn<wr;Yn++)Er.push(Cr[Yn]);mr.next=2;break;case 12:return mr.abrupt("return",Er);case 13:case"end":return mr.stop()}},_n)})),$t.apply(this,arguments)},Et=function(_n){return $t.apply(this,arguments)},bt=[],Ct=[],kt.forEach(function(Qn){return Ct.push(Qn.webkitGetAsEntry())}),Dn=function(){var Qn=(0,Ie.Z)((0,Me.Z)().mark(function _n(Jn,ur){var Er,Cr;return(0,Me.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(Jn){Yn.next=2;break}return Yn.abrupt("return");case 2:if(Jn.path=ur||"",!Jn.isFile){Yn.next=10;break}return Yn.next=6,Pn(Jn);case 6:Er=Yn.sent,Er&&bt.push(Er),Yn.next=15;break;case 10:if(!Jn.isDirectory){Yn.next=15;break}return Yn.next=13,Et(Jn);case 13:Cr=Yn.sent,Ct.push.apply(Ct,(0,je.Z)(Cr));case 15:case"end":return Yn.stop()}},_n)}));return function(Jn,ur){return Qn.apply(this,arguments)}}(),nr=0;case 9:if(!(nr<Ct.length)){fr.next=15;break}return fr.next=12,Dn(Ct[nr]);case 12:nr++,fr.next=9;break;case 15:return fr.abrupt("return",bt);case 16:case"end":return fr.stop()}},It)}));return function(kt,Vt){return Ee.apply(this,arguments)}}(),zt=Qe,St=+new Date,it=0;function ut(){return"rc-upload-".concat(St,"-").concat(++it)}var Se=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],st=function(Ee){(0,ue.Z)(kt,Ee);var It=(0,tt.Z)(kt);function kt(){var Vt;(0,De.Z)(this,kt);for(var bt=arguments.length,Ct=new Array(bt),Et=0;Et<bt;Et++)Ct[Et]=arguments[Et];return Vt=It.call.apply(It,[this].concat(Ct)),(0,ke.Z)((0,Ce.Z)(Vt),"state",{uid:ut()}),(0,ke.Z)((0,Ce.Z)(Vt),"reqs",{}),(0,ke.Z)((0,Ce.Z)(Vt),"fileInput",void 0),(0,ke.Z)((0,Ce.Z)(Vt),"_isMounted",void 0),(0,ke.Z)((0,Ce.Z)(Vt),"onChange",function($t){var Pn=Vt.props,wn=Pn.accept,Dn=Pn.directory,nr=$t.target.files,sr=(0,je.Z)(nr).filter(function(fr){return!Dn||Rt(fr,wn)});Vt.uploadFiles(sr),Vt.reset()}),(0,ke.Z)((0,Ce.Z)(Vt),"onClick",function($t){var Pn=Vt.fileInput;if(Pn){var wn=$t.target,Dn=Vt.props.onClick;if(wn&&wn.tagName==="BUTTON"){var nr=Pn.parentNode;nr.focus(),wn.blur()}Pn.click(),Dn&&Dn($t)}}),(0,ke.Z)((0,Ce.Z)(Vt),"onKeyDown",function($t){$t.key==="Enter"&&Vt.onClick($t)}),(0,ke.Z)((0,Ce.Z)(Vt),"onFileDrop",function(){var $t=(0,Ie.Z)((0,Me.Z)().mark(function Pn(wn){var Dn,nr,sr;return(0,Me.Z)().wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(Dn=Vt.props.multiple,wn.preventDefault(),wn.type!=="dragover"){Qn.next=4;break}return Qn.abrupt("return");case 4:if(!Vt.props.directory){Qn.next=11;break}return Qn.next=7,zt(Array.prototype.slice.call(wn.dataTransfer.items),function(_n){return Rt(_n,Vt.props.accept)});case 7:nr=Qn.sent,Vt.uploadFiles(nr),Qn.next=14;break;case 11:sr=(0,je.Z)(wn.dataTransfer.files).filter(function(_n){return Rt(_n,Vt.props.accept)}),Dn===!1&&(sr=sr.slice(0,1)),Vt.uploadFiles(sr);case 14:case"end":return Qn.stop()}},Pn)}));return function(Pn){return $t.apply(this,arguments)}}()),(0,ke.Z)((0,Ce.Z)(Vt),"uploadFiles",function($t){var Pn=(0,je.Z)($t),wn=Pn.map(function(Dn){return Dn.uid=ut(),Vt.processFile(Dn,Pn)});Promise.all(wn).then(function(Dn){var nr=Vt.props.onBatchStart;nr==null||nr(Dn.map(function(sr){var fr=sr.origin,Qn=sr.parsedFile;return{file:fr,parsedFile:Qn}})),Dn.filter(function(sr){return sr.parsedFile!==null}).forEach(function(sr){Vt.post(sr)})})}),(0,ke.Z)((0,Ce.Z)(Vt),"processFile",function(){var $t=(0,Ie.Z)((0,Me.Z)().mark(function Pn(wn,Dn){var nr,sr,fr,Qn,_n,Jn,ur,Er,Cr;return(0,Me.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(nr=Vt.props.beforeUpload,sr=wn,!nr){Yn.next=14;break}return Yn.prev=3,Yn.next=6,nr(wn,Dn);case 6:sr=Yn.sent,Yn.next=12;break;case 9:Yn.prev=9,Yn.t0=Yn.catch(3),sr=!1;case 12:if(sr!==!1){Yn.next=14;break}return Yn.abrupt("return",{origin:wn,parsedFile:null,action:null,data:null});case 14:if(fr=Vt.props.action,typeof fr!="function"){Yn.next=21;break}return Yn.next=18,fr(wn);case 18:Qn=Yn.sent,Yn.next=22;break;case 21:Qn=fr;case 22:if(_n=Vt.props.data,typeof _n!="function"){Yn.next=29;break}return Yn.next=26,_n(wn);case 26:Jn=Yn.sent,Yn.next=30;break;case 29:Jn=_n;case 30:return ur=((0,$e.Z)(sr)==="object"||typeof sr=="string")&&sr?sr:wn,ur instanceof File?Er=ur:Er=new File([ur],wn.name,{type:wn.type}),Cr=Er,Cr.uid=wn.uid,Yn.abrupt("return",{origin:wn,data:Jn,parsedFile:Cr,action:Qn});case 35:case"end":return Yn.stop()}},Pn,null,[[3,9]])}));return function(Pn,wn){return $t.apply(this,arguments)}}()),(0,ke.Z)((0,Ce.Z)(Vt),"saveFileInput",function($t){Vt.fileInput=$t}),Vt}return(0,Ze.Z)(kt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(bt){var Ct=this,Et=bt.data,$t=bt.origin,Pn=bt.action,wn=bt.parsedFile;if(this._isMounted){var Dn=this.props,nr=Dn.onStart,sr=Dn.customRequest,fr=Dn.name,Qn=Dn.headers,_n=Dn.withCredentials,Jn=Dn.method,ur=$t.uid,Er=sr||nt,Cr={action:Pn,filename:fr,data:Et,file:wn,headers:Qn,withCredentials:_n,method:Jn||"post",onProgress:function(Yn){var yr=Ct.props.onProgress;yr==null||yr(Yn,wn)},onSuccess:function(Yn,yr){var mr=Ct.props.onSuccess;mr==null||mr(Yn,wn,yr),delete Ct.reqs[ur]},onError:function(Yn,yr){var mr=Ct.props.onError;mr==null||mr(Yn,yr,wn),delete Ct.reqs[ur]}};nr($t),this.reqs[ur]=Er(Cr)}}},{key:"reset",value:function(){this.setState({uid:ut()})}},{key:"abort",value:function(bt){var Ct=this.reqs;if(bt){var Et=bt.uid?bt.uid:bt;Ct[Et]&&Ct[Et].abort&&Ct[Et].abort(),delete Ct[Et]}else Object.keys(Ct).forEach(function($t){Ct[$t]&&Ct[$t].abort&&Ct[$t].abort(),delete Ct[$t]})}},{key:"render",value:function(){var bt=this.props,Ct=bt.component,Et=bt.prefixCls,$t=bt.className,Pn=bt.classNames,wn=Pn===void 0?{}:Pn,Dn=bt.disabled,nr=bt.id,sr=bt.name,fr=bt.style,Qn=bt.styles,_n=Qn===void 0?{}:Qn,Jn=bt.multiple,ur=bt.accept,Er=bt.capture,Cr=bt.children,wr=bt.directory,Yn=bt.openFileDialogOnClick,yr=bt.onMouseEnter,mr=bt.onMouseLeave,Vr=bt.hasControlInside,Yr=(0,at.Z)(bt,Se),Ur=Oe()((0,ke.Z)((0,ke.Z)((0,ke.Z)({},Et,!0),"".concat(Et,"-disabled"),Dn),$t,$t)),Gr=wr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},oi=Dn?{}:{onClick:Yn?this.onClick:function(){},onKeyDown:Yn?this.onKeyDown:function(){},onMouseEnter:yr,onMouseLeave:mr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Vr?void 0:"0"};return b.createElement(Ct,(0,ye.Z)({},oi,{className:Ur,role:Vr?void 0:"button",style:fr}),b.createElement("input",(0,ye.Z)({},(0,Xe.Z)(Yr,{aria:!0,data:!0}),{id:nr,name:sr,disabled:Dn,type:"file",ref:this.saveFileInput,onClick:function(Jr){return Jr.stopPropagation()},key:this.state.uid,style:(0,Lt.Z)({display:"none"},_n.input),className:wn.input,accept:ur},Gr,{multiple:Jn,onChange:this.onChange},Er!=null?{capture:Er}:{})),Cr)}}]),kt}(b.Component),Je=st;function de(){}var Mt=function(Ee){(0,ue.Z)(kt,Ee);var It=(0,tt.Z)(kt);function kt(){var Vt;(0,De.Z)(this,kt);for(var bt=arguments.length,Ct=new Array(bt),Et=0;Et<bt;Et++)Ct[Et]=arguments[Et];return Vt=It.call.apply(It,[this].concat(Ct)),(0,ke.Z)((0,Ce.Z)(Vt),"uploader",void 0),(0,ke.Z)((0,Ce.Z)(Vt),"saveUploader",function($t){Vt.uploader=$t}),Vt}return(0,Ze.Z)(kt,[{key:"abort",value:function(bt){this.uploader.abort(bt)}},{key:"render",value:function(){return b.createElement(Je,(0,ye.Z)({},this.props,{ref:this.saveUploader}))}}]),kt}(b.Component);(0,ke.Z)(Mt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:de,onError:de,onSuccess:de,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var We=Mt,Pt=We,Xt=ee(18929),Be=ee(48755),me=ee(2171),ht=ee(9017),Ut=ee(85981),Bt=ee(63356),be=ee(34961),Ye=ee(16931),et=ee(51636),_t=ee(36237),Ft=Ee=>{const{componentCls:It,iconCls:kt}=Ee;return{[`${It}-wrapper`]:{[`${It}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Ee.colorFillAlter,border:`${(0,_t.unit)(Ee.lineWidth)} dashed ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ee.motionDurationSlow}`,[It]:{padding:Ee.padding},[`${It}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:Ee.borderRadiusLG,"&:focus-visible":{outline:`${(0,_t.unit)(Ee.lineWidthFocus)} solid ${Ee.colorPrimaryBorder}`}},[`${It}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
|
&:not(${It}-disabled):hover,
|
|
|
&-hover:not(${It}-disabled)
|
|
|
`]:{borderColor:Ee.colorPrimaryHover},[`p${It}-drag-icon`]:{marginBottom:Ee.margin,[kt]:{color:Ee.colorPrimary,fontSize:Ee.uploadThumbnailSize}},[`p${It}-text`]:{margin:`0 0 ${(0,_t.unit)(Ee.marginXXS)}`,color:Ee.colorTextHeading,fontSize:Ee.fontSizeLG},[`p${It}-hint`]:{color:Ee.colorTextDescription,fontSize:Ee.fontSize},[`&${It}-disabled`]:{[`p${It}-drag-icon ${kt},
|
|
|
p${It}-text,
|
|
|
p${It}-hint
|
|
|
`]:{color:Ee.colorTextDisabled}}}}}},Jt=Ee=>{const{componentCls:It,iconCls:kt,fontSize:Vt,lineHeight:bt,calc:Ct}=Ee,Et=`${It}-list-item`,$t=`${Et}-actions`,Pn=`${Et}-action`;return{[`${It}-wrapper`]:{[`${It}-list`]:Object.assign(Object.assign({},(0,Bt.dF)()),{lineHeight:Ee.lineHeight,[Et]:{position:"relative",height:Ct(Ee.lineHeight).mul(Vt).equal(),marginTop:Ee.marginXS,fontSize:Vt,display:"flex",alignItems:"center",transition:`background-color ${Ee.motionDurationSlow}`,borderRadius:Ee.borderRadiusSM,"&:hover":{backgroundColor:Ee.controlItemBgHover},[`${Et}-name`]:Object.assign(Object.assign({},Bt.vS),{padding:`0 ${(0,_t.unit)(Ee.paddingXS)}`,lineHeight:bt,flex:"auto",transition:`all ${Ee.motionDurationSlow}`}),[$t]:{whiteSpace:"nowrap",[Pn]:{opacity:0},[kt]:{color:Ee.actionsColor,transition:`all ${Ee.motionDurationSlow}`},[`
|
|
|
${Pn}:focus-visible,
|
|
|
&.picture ${Pn}
|
|
|
`]:{opacity:1}},[`${It}-icon ${kt}`]:{color:Ee.colorTextDescription,fontSize:Vt},[`${Et}-progress`]:{position:"absolute",bottom:Ee.calc(Ee.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Ct(Vt).add(Ee.paddingXS).equal(),fontSize:Vt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Et}:hover ${Pn}`]:{opacity:1},[`${Et}-error`]:{color:Ee.colorError,[`${Et}-name, ${It}-icon ${kt}`]:{color:Ee.colorError},[$t]:{[`${kt}, ${kt}:hover`]:{color:Ee.colorError},[Pn]:{opacity:1}}},[`${It}-list-item-container`]:{transition:`opacity ${Ee.motionDurationSlow}, height ${Ee.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Dt=ee(99495),ne=Ee=>{const{componentCls:It}=Ee,kt=new _t.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:Ee.calc(Ee.marginXS).div(-2).equal()}}),Vt=new _t.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:Ee.calc(Ee.marginXS).div(-2).equal()}}),bt=`${It}-animate-inline`;return[{[`${It}-wrapper`]:{[`${bt}-appear, ${bt}-enter, ${bt}-leave`]:{animationDuration:Ee.motionDurationSlow,animationTimingFunction:Ee.motionEaseInOutCirc,animationFillMode:"forwards"},[`${bt}-appear, ${bt}-enter`]:{animationName:kt},[`${bt}-leave`]:{animationName:Vt}}},{[`${It}-wrapper`]:(0,Dt.J$)(Ee)},kt,Vt]},te=ee(68361);const oe=Ee=>{const{componentCls:It,iconCls:kt,uploadThumbnailSize:Vt,uploadProgressOffset:bt,calc:Ct}=Ee,Et=`${It}-list`,$t=`${Et}-item`;return{[`${It}-wrapper`]:{[`
|
|
|
${Et}${Et}-picture,
|
|
|
${Et}${Et}-picture-card,
|
|
|
${Et}${Et}-picture-circle
|
|
|
`]:{[$t]:{position:"relative",height:Ct(Vt).add(Ct(Ee.lineWidth).mul(2)).add(Ct(Ee.paddingXS).mul(2)).equal(),padding:Ee.paddingXS,border:`${(0,_t.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusLG,"&:hover":{background:"transparent"},[`${$t}-thumbnail`]:Object.assign(Object.assign({},Bt.vS),{width:Vt,height:Vt,lineHeight:(0,_t.unit)(Ct(Vt).add(Ee.paddingSM).equal()),textAlign:"center",flex:"none",[kt]:{fontSize:Ee.fontSizeHeading2,color:Ee.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${$t}-progress`]:{bottom:bt,width:`calc(100% - ${(0,_t.unit)(Ct(Ee.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Ct(Vt).add(Ee.paddingXS).equal()}},[`${$t}-error`]:{borderColor:Ee.colorError,[`${$t}-thumbnail ${kt}`]:{[`svg path[fill='${te.blue[0]}']`]:{fill:Ee.colorErrorBg},[`svg path[fill='${te.blue.primary}']`]:{fill:Ee.colorError}}},[`${$t}-uploading`]:{borderStyle:"dashed",[`${$t}-name`]:{marginBottom:bt}}},[`${Et}${Et}-picture-circle ${$t}`]:{[`&, &::before, ${$t}-thumbnail`]:{borderRadius:"50%"}}}}},ce=Ee=>{const{componentCls:It,iconCls:kt,fontSizeLG:Vt,colorTextLightSolid:bt,calc:Ct}=Ee,Et=`${It}-list`,$t=`${Et}-item`,Pn=Ee.uploadPicCardSize;return{[`
|
|
|
${It}-wrapper${It}-picture-card-wrapper,
|
|
|
${It}-wrapper${It}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Bt.dF)()),{display:"block",[`${It}${It}-select`]:{width:Pn,height:Pn,textAlign:"center",verticalAlign:"top",backgroundColor:Ee.colorFillAlter,border:`${(0,_t.unit)(Ee.lineWidth)} dashed ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ee.motionDurationSlow}`,[`> ${It}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${It}-disabled):hover`]:{borderColor:Ee.colorPrimary}},[`${Et}${Et}-picture-card, ${Et}${Et}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:Ee.marginXS,marginInlineEnd:Ee.marginXS}},"@supports (gap: 1px)":{gap:Ee.marginXS},[`${Et}-item-container`]:{display:"inline-block",width:Pn,height:Pn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[$t]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,_t.unit)(Ct(Ee.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,_t.unit)(Ct(Ee.paddingXS).mul(2).equal())})`,backgroundColor:Ee.colorBgMask,opacity:0,transition:`all ${Ee.motionDurationSlow}`,content:'" "'}},[`${$t}:hover`]:{[`&::before, ${$t}-actions`]:{opacity:1}},[`${$t}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Ee.motionDurationSlow}`,[`
|
|
|
${kt}-eye,
|
|
|
${kt}-download,
|
|
|
${kt}-delete
|
|
|
`]:{zIndex:10,width:Vt,margin:`0 ${(0,_t.unit)(Ee.marginXXS)}`,fontSize:Vt,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,color:bt,"&:hover":{color:bt},svg:{verticalAlign:"baseline"}}},[`${$t}-thumbnail, ${$t}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${$t}-name`]:{display:"none",textAlign:"center"},[`${$t}-file + ${$t}-name`]:{position:"absolute",bottom:Ee.margin,display:"block",width:`calc(100% - ${(0,_t.unit)(Ct(Ee.paddingXS).mul(2).equal())})`},[`${$t}-uploading`]:{[`&${$t}`]:{backgroundColor:Ee.colorFillAlter},[`&::before, ${kt}-eye, ${kt}-download, ${kt}-delete`]:{display:"none"}},[`${$t}-progress`]:{bottom:Ee.marginXL,width:`calc(100% - ${(0,_t.unit)(Ct(Ee.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${It}-wrapper${It}-picture-circle-wrapper`]:{[`${It}${It}-select`]:{borderRadius:"50%"}}}};var le=Ee=>{const{componentCls:It}=Ee;return{[`${It}-rtl`]:{direction:"rtl"}}};const ge=Ee=>{const{componentCls:It,colorTextDisabled:kt}=Ee;return{[`${It}-wrapper`]:Object.assign(Object.assign({},(0,Bt.Wf)(Ee)),{[It]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${It}-select`]:{display:"inline-block"},[`${It}-hidden`]:{display:"none"},[`${It}-disabled`]:{color:kt,cursor:"not-allowed"}})}},vt=Ee=>({actionsColor:Ee.colorTextDescription});var Re=(0,Ye.I$)("Upload",Ee=>{const{fontSizeHeading3:It,fontHeight:kt,lineWidth:Vt,controlHeightLG:bt,calc:Ct}=Ee,Et=(0,et.mergeToken)(Ee,{uploadThumbnailSize:Ct(It).mul(2).equal(),uploadProgressOffset:Ct(Ct(kt).div(2)).add(Vt).equal(),uploadPicCardSize:Ct(bt).mul(2.55).equal()});return[ge(Et),Ft(Et),oe(Et),ce(Et),Jt(Et),ne(Et),le(Et),(0,be.Z)(Et)]},vt),Ae={icon:function(It,kt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:kt}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:It}}]}},name:"file",theme:"twotone"},Ke=Ae,_e=ee(7657),gt=function(It,kt){return b.createElement(_e.Z,(0,ye.Z)({},It,{ref:kt,icon:Ke}))},we=b.forwardRef(gt),Pe=we,Zt=ee(58617),Ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},rn=Ht,Yt=function(It,kt){return b.createElement(_e.Z,(0,ye.Z)({},It,{ref:kt,icon:rn}))},Ot=b.forwardRef(Yt),nn=Ot,Wt={icon:function(It,kt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:It}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:kt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:kt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:kt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:It}}]}},name:"picture",theme:"twotone"},He=Wt,mt=function(It,kt){return b.createElement(_e.Z,(0,ye.Z)({},It,{ref:kt,icon:He}))},ot=b.forwardRef(mt),Tt=ot,Ne=ee(77900),dt=ee(2738),wt=ee(40192),Kt=ee(86641),sn=ee(22703),bn=ee(7939);function An(Ee){return Object.assign(Object.assign({},Ee),{lastModified:Ee.lastModified,lastModifiedDate:Ee.lastModifiedDate,name:Ee.name,size:Ee.size,type:Ee.type,uid:Ee.uid,percent:0,originFileObj:Ee})}function zn(Ee,It){const kt=(0,je.Z)(It),Vt=kt.findIndex(bt=>{let{uid:Ct}=bt;return Ct===Ee.uid});return Vt===-1?kt.push(Ee):kt[Vt]=Ee,kt}function pn(Ee,It){const kt=Ee.uid!==void 0?"uid":"name";return It.filter(Vt=>Vt[kt]===Ee[kt])[0]}function Tn(Ee,It){const kt=Ee.uid!==void 0?"uid":"name",Vt=It.filter(bt=>bt[kt]!==Ee[kt]);return Vt.length===It.length?null:Vt}const un=function(){const It=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Vt=It[It.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Vt)||[""])[0]},Sn=Ee=>Ee.indexOf("image/")===0,Mn=Ee=>{if(Ee.type&&!Ee.thumbUrl)return Sn(Ee.type);const It=Ee.thumbUrl||Ee.url||"",kt=un(It);return/^data:image\//.test(It)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(kt)?!0:!(/^data:/.test(It)||kt)},Rn=200;function vn(Ee){return new Promise(It=>{if(!Ee.type||!Sn(Ee.type)){It("");return}const kt=document.createElement("canvas");kt.width=Rn,kt.height=Rn,kt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Rn}px; height: ${Rn}px; z-index: 9999; display: none;`,document.body.appendChild(kt);const Vt=kt.getContext("2d"),bt=new Image;if(bt.onload=()=>{const{width:Ct,height:Et}=bt;let $t=Rn,Pn=Rn,wn=0,Dn=0;Ct>Et?(Pn=Et*(Rn/Ct),Dn=-(Pn-$t)/2):($t=Ct*(Rn/Et),wn=-($t-Pn)/2),Vt.drawImage(bt,wn,Dn,$t,Pn);const nr=kt.toDataURL();document.body.removeChild(kt),window.URL.revokeObjectURL(bt.src),It(nr)},bt.crossOrigin="anonymous",Ee.type.startsWith("image/svg+xml")){const Ct=new FileReader;Ct.onload=()=>{Ct.result&&typeof Ct.result=="string"&&(bt.src=Ct.result)},Ct.readAsDataURL(Ee)}else if(Ee.type.startsWith("image/gif")){const Ct=new FileReader;Ct.onload=()=>{Ct.result&&It(Ct.result)},Ct.readAsDataURL(Ee)}else bt.src=window.URL.createObjectURL(Ee)})}var tn=ee(26227),en=ee(41464),cn=ee(15277),En=ee(89787),$n=ee(25399),Nn=b.forwardRef((Ee,It)=>{let{prefixCls:kt,className:Vt,style:bt,locale:Ct,listType:Et,file:$t,items:Pn,progress:wn,iconRender:Dn,actionIconRender:nr,itemRender:sr,isImgUrl:fr,showPreviewIcon:Qn,showRemoveIcon:_n,showDownloadIcon:Jn,previewIcon:ur,removeIcon:Er,downloadIcon:Cr,extra:wr,onPreview:Yn,onDownload:yr,onClose:mr}=Ee;var Vr,Yr;const{status:Ur}=$t,[Gr,oi]=b.useState(Ur);b.useEffect(()=>{Ur!=="removed"&&oi(Ur)},[Ur]);const[Zr,Jr]=b.useState(!1);b.useEffect(()=>{const Bn=setTimeout(()=>{Jr(!0)},300);return()=>{clearTimeout(Bn)}},[]);const Or=Dn($t);let ti=b.createElement("div",{className:`${kt}-icon`},Or);if(Et==="picture"||Et==="picture-card"||Et==="picture-circle")if(Gr==="uploading"||!$t.thumbUrl&&!$t.url){const Bn=Oe()(`${kt}-list-item-thumbnail`,{[`${kt}-list-item-file`]:Gr!=="uploading"});ti=b.createElement("div",{className:Bn},Or)}else{const Bn=fr!=null&&fr($t)?b.createElement("img",{src:$t.thumbUrl||$t.url,alt:$t.name,className:`${kt}-list-item-image`,crossOrigin:$t.crossOrigin}):Or,Xn=Oe()(`${kt}-list-item-thumbnail`,{[`${kt}-list-item-file`]:fr&&!fr($t)});ti=b.createElement("a",{className:Xn,onClick:rr=>Yn($t,rr),href:$t.url||$t.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Bn)}const ci=Oe()(`${kt}-list-item`,`${kt}-list-item-${Gr}`),Fi=typeof $t.linkProps=="string"?JSON.parse($t.linkProps):$t.linkProps,vi=(typeof _n=="function"?_n($t):_n)?nr((typeof Er=="function"?Er($t):Er)||b.createElement(tn.Z,null),()=>mr($t),kt,Ct.removeFile,!0):null,xi=(typeof Jn=="function"?Jn($t):Jn)&&Gr==="done"?nr((typeof Cr=="function"?Cr($t):Cr)||b.createElement(en.Z,null),()=>yr($t),kt,Ct.downloadFile):null,hi=Et!=="picture-card"&&Et!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:Oe()(`${kt}-list-item-actions`,{picture:Et==="picture"})},xi,vi),bi=typeof wr=="function"?wr($t):wr,Rr=bi&&b.createElement("span",{className:`${kt}-list-item-extra`},bi),kr=Oe()(`${kt}-list-item-name`),cr=$t.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:kr,title:$t.name},Fi,{href:$t.url,onClick:Bn=>Yn($t,Bn)}),$t.name,Rr):b.createElement("span",{key:"view",className:kr,onClick:Bn=>Yn($t,Bn),title:$t.name},$t.name,Rr),On=(typeof Qn=="function"?Qn($t):Qn)&&($t.url||$t.thumbUrl)?b.createElement("a",{href:$t.url||$t.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Bn=>Yn($t,Bn),title:Ct.previewFile},typeof ur=="function"?ur($t):ur||b.createElement(cn.Z,null)):null,jn=(Et==="picture-card"||Et==="picture-circle")&&Gr!=="uploading"&&b.createElement("span",{className:`${kt}-list-item-actions`},On,Gr==="done"&&xi,vi),{getPrefixCls:Kn}=b.useContext(Be.E_),kn=Kn(),lr=b.createElement("div",{className:ci},ti,cr,hi,jn,Zr&&b.createElement(Ne.default,{motionName:`${kn}-fade`,visible:Gr==="uploading",motionDeadline:2e3},Bn=>{let{className:Xn}=Bn;const rr="percent"in $t?b.createElement(En.Z,Object.assign({},wn,{type:"line",percent:$t.percent,"aria-label":$t["aria-label"],"aria-labelledby":$t["aria-labelledby"]})):null;return b.createElement("div",{className:Oe()(`${kt}-list-item-progress`,Xn)},rr)})),br=$t.response&&typeof $t.response=="string"?$t.response:((Vr=$t.error)===null||Vr===void 0?void 0:Vr.statusText)||((Yr=$t.error)===null||Yr===void 0?void 0:Yr.message)||Ct.uploadError,Hn=Gr==="error"?b.createElement($n.Z,{title:br,getPopupContainer:Bn=>Bn.parentNode},lr):lr;return b.createElement("div",{className:Oe()(`${kt}-list-item-container`,Vt),style:bt,ref:It},sr?sr(Hn,$t,Pn,{download:yr.bind(null,$t),preview:Yn.bind(null,$t),remove:mr.bind(null,$t)}):Hn)});const Fn=(Ee,It)=>{const{listType:kt="text",previewFile:Vt=vn,onPreview:bt,onDownload:Ct,onRemove:Et,locale:$t,iconRender:Pn,isImageUrl:wn=Mn,prefixCls:Dn,items:nr=[],showPreviewIcon:sr=!0,showRemoveIcon:fr=!0,showDownloadIcon:Qn=!1,removeIcon:_n,previewIcon:Jn,downloadIcon:ur,extra:Er,progress:Cr={size:[-1,2],showInfo:!1},appendAction:wr,appendActionVisible:Yn=!0,itemRender:yr,disabled:mr}=Ee,Vr=(0,wt.Z)(),[Yr,Ur]=b.useState(!1),Gr=["picture-card","picture-circle"].includes(kt);b.useEffect(()=>{kt.startsWith("picture")&&(nr||[]).forEach(Rr=>{!(Rr.originFileObj instanceof File||Rr.originFileObj instanceof Blob)||Rr.thumbUrl!==void 0||(Rr.thumbUrl="",Vt==null||Vt(Rr.originFileObj).then(kr=>{Rr.thumbUrl=kr||"",Vr()}))})},[kt,nr,Vt]),b.useEffect(()=>{Ur(!0)},[]);const oi=(Rr,kr)=>{if(bt)return kr==null||kr.preventDefault(),bt(Rr)},Zr=Rr=>{typeof Ct=="function"?Ct(Rr):Rr.url&&window.open(Rr.url)},Jr=Rr=>{Et==null||Et(Rr)},Or=Rr=>{if(Pn)return Pn(Rr,kt);const kr=Rr.status==="uploading";if(kt.startsWith("picture")){const cr=kt==="picture"?b.createElement(Zt.Z,null):$t.uploading,On=wn!=null&&wn(Rr)?b.createElement(Tt,null):b.createElement(Pe,null);return kr?cr:On}return kr?b.createElement(Zt.Z,null):b.createElement(nn,null)},ti=(Rr,kr,cr,On,jn)=>{const Kn={type:"text",size:"small",title:On,onClick:kn=>{var lr,br;kr(),b.isValidElement(Rr)&&((br=(lr=Rr.props).onClick)===null||br===void 0||br.call(lr,kn))},className:`${cr}-list-item-action`};return jn&&(Kn.disabled=mr),b.isValidElement(Rr)?b.createElement(bn.ZP,Object.assign({},Kn,{icon:(0,sn.Tm)(Rr,Object.assign(Object.assign({},Rr.props),{onClick:()=>{}}))})):b.createElement(bn.ZP,Object.assign({},Kn),b.createElement("span",null,Rr))};b.useImperativeHandle(It,()=>({handlePreview:oi,handleDownload:Zr}));const{getPrefixCls:ci}=b.useContext(Be.E_),Fi=ci("upload",Dn),vi=ci(),xi=Oe()(`${Fi}-list`,`${Fi}-list-${kt}`),hi=b.useMemo(()=>(0,dt.Z)((0,Kt.Z)(vi),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[vi]),bi=Object.assign(Object.assign({},Gr?{}:hi),{motionDeadline:2e3,motionName:`${Fi}-${Gr?"animate-inline":"animate"}`,keys:(0,je.Z)(nr.map(Rr=>({key:Rr.uid,file:Rr}))),motionAppear:Yr});return b.createElement("div",{className:xi},b.createElement(Ne.CSSMotionList,Object.assign({},bi,{component:!1}),Rr=>{let{key:kr,file:cr,className:On,style:jn}=Rr;return b.createElement(Nn,{key:kr,locale:$t,prefixCls:Fi,className:On,style:jn,file:cr,items:nr,progress:Cr,listType:kt,isImgUrl:wn,showPreviewIcon:sr,showRemoveIcon:fr,showDownloadIcon:Qn,removeIcon:_n,previewIcon:Jn,downloadIcon:ur,extra:Er,iconRender:Or,actionIconRender:ti,itemRender:yr,onPreview:oi,onDownload:Zr,onClose:Jr})}),wr&&b.createElement(Ne.default,Object.assign({},bi,{visible:Yn,forceRender:!0}),Rr=>{let{className:kr,style:cr}=Rr;return(0,sn.Tm)(wr,On=>({className:Oe()(On.className,kr),style:Object.assign(Object.assign(Object.assign({},cr),{pointerEvents:kr?"none":void 0}),On.style)}))}))};var er=b.forwardRef(Fn),on=function(Ee,It,kt,Vt){function bt(Ct){return Ct instanceof kt?Ct:new kt(function(Et){Et(Ct)})}return new(kt||(kt=Promise))(function(Ct,Et){function $t(Dn){try{wn(Vt.next(Dn))}catch(nr){Et(nr)}}function Pn(Dn){try{wn(Vt.throw(Dn))}catch(nr){Et(nr)}}function wn(Dn){Dn.done?Ct(Dn.value):bt(Dn.value).then($t,Pn)}wn((Vt=Vt.apply(Ee,It||[])).next())})};const xn=`__LIST_IGNORE_${Date.now()}__`,Un=(Ee,It)=>{const{fileList:kt,defaultFileList:Vt,onRemove:bt,showUploadList:Ct=!0,listType:Et="text",onPreview:$t,onDownload:Pn,onChange:wn,onDrop:Dn,previewFile:nr,disabled:sr,locale:fr,iconRender:Qn,isImageUrl:_n,progress:Jn,prefixCls:ur,className:Er,type:Cr="select",children:wr,style:Yn,itemRender:yr,maxCount:mr,data:Vr={},multiple:Yr=!1,hasControlInside:Ur=!0,action:Gr="",accept:oi="",supportServerRender:Zr=!0,rootClassName:Jr}=Ee,Or=b.useContext(me.Z),ti=sr!=null?sr:Or,[ci,Fi]=(0,Xt.Z)(Vt||[],{value:kt,postState:ai=>ai!=null?ai:[]}),[vi,xi]=b.useState("drop"),hi=b.useRef(null),bi=b.useRef(null);b.useMemo(()=>{const ai=Date.now();(kt||[]).forEach((Wi,Yi)=>{!Wi.uid&&!Object.isFrozen(Wi)&&(Wi.uid=`__AUTO__${ai}_${Yi}__`)})},[kt]);const Rr=(ai,Wi,Yi)=>{let gi=(0,je.Z)(Wi),Zi=!1;mr===1?gi=gi.slice(-1):mr&&(Zi=gi.length>mr,gi=gi.slice(0,mr)),(0,fe.flushSync)(()=>{Fi(gi)});const Mi={file:ai,fileList:gi};Yi&&(Mi.event=Yi),(!Zi||ai.status==="removed"||gi.some(Zo=>Zo.uid===ai.uid))&&(0,fe.flushSync)(()=>{wn==null||wn(Mi)})},kr=(ai,Wi)=>on(void 0,void 0,void 0,function*(){const{beforeUpload:Yi,transformFile:gi}=Ee;let Zi=ai;if(Yi){const Mi=yield Yi(ai,Wi);if(Mi===!1)return!1;if(delete ai[xn],Mi===xn)return Object.defineProperty(ai,xn,{value:!0,configurable:!0}),!1;typeof Mi=="object"&&Mi&&(Zi=Mi)}return gi&&(Zi=yield gi(Zi)),Zi}),cr=ai=>{const Wi=ai.filter(Zi=>!Zi.file[xn]);if(!Wi.length)return;const Yi=Wi.map(Zi=>An(Zi.file));let gi=(0,je.Z)(ci);Yi.forEach(Zi=>{gi=zn(Zi,gi)}),Yi.forEach((Zi,Mi)=>{let Zo=Zi;if(Wi[Mi].parsedFile)Zi.status="uploading";else{const{originFileObj:ha}=Zi;let Wo;try{Wo=new File([ha],ha.name,{type:ha.type})}catch(Mo){Wo=new Blob([ha],{type:ha.type}),Wo.name=ha.name,Wo.lastModifiedDate=new Date,Wo.lastModified=new Date().getTime()}Wo.uid=Zi.uid,Zo=Wo}Rr(Zo,gi)})},On=(ai,Wi,Yi)=>{try{typeof ai=="string"&&(ai=JSON.parse(ai))}catch(Mi){}if(!pn(Wi,ci))return;const gi=An(Wi);gi.status="done",gi.percent=100,gi.response=ai,gi.xhr=Yi;const Zi=zn(gi,ci);Rr(gi,Zi)},jn=(ai,Wi)=>{if(!pn(Wi,ci))return;const Yi=An(Wi);Yi.status="uploading",Yi.percent=ai.percent;const gi=zn(Yi,ci);Rr(Yi,gi,ai)},Kn=(ai,Wi,Yi)=>{if(!pn(Yi,ci))return;const gi=An(Yi);gi.error=ai,gi.response=Wi,gi.status="error";const Zi=zn(gi,ci);Rr(gi,Zi)},kn=ai=>{let Wi;Promise.resolve(typeof bt=="function"?bt(ai):bt).then(Yi=>{var gi;if(Yi===!1)return;const Zi=Tn(ai,ci);Zi&&(Wi=Object.assign(Object.assign({},ai),{status:"removed"}),ci==null||ci.forEach(Mi=>{const Zo=Wi.uid!==void 0?"uid":"name";Mi[Zo]===Wi[Zo]&&!Object.isFrozen(Mi)&&(Mi.status="removed")}),(gi=hi.current)===null||gi===void 0||gi.abort(Wi),Rr(Wi,Zi))})},lr=ai=>{xi(ai.type),ai.type==="drop"&&(Dn==null||Dn(ai))};b.useImperativeHandle(It,()=>({onBatchStart:cr,onSuccess:On,onProgress:jn,onError:Kn,fileList:ci,upload:hi.current,nativeElement:bi.current}));const{getPrefixCls:br,direction:Hn,upload:Bn}=b.useContext(Be.E_),Xn=br("upload",ur),rr=Object.assign(Object.assign({onBatchStart:cr,onError:Kn,onProgress:jn,onSuccess:On},Ee),{data:Vr,multiple:Yr,action:Gr,accept:oi,supportServerRender:Zr,prefixCls:Xn,disabled:ti,beforeUpload:kr,onChange:void 0,hasControlInside:Ur});delete rr.className,delete rr.style,(!wr||ti)&&delete rr.id;const Qr=`${Xn}-wrapper`,[Ei,pi,Bi]=Re(Xn,Qr),[Ii]=(0,ht.Z)("Upload",Ut.Z.Upload),{showRemoveIcon:Pi,showPreviewIcon:$i,showDownloadIcon:Ni,removeIcon:Ai,previewIcon:lo,downloadIcon:xo,extra:Do}=typeof Ct=="boolean"?{}:Ct,To=typeof Pi=="undefined"?!ti:Pi,Co=(ai,Wi)=>Ct?b.createElement(er,{prefixCls:Xn,listType:Et,items:ci,previewFile:nr,onPreview:$t,onDownload:Pn,onRemove:kn,showRemoveIcon:To,showPreviewIcon:$i,showDownloadIcon:Ni,removeIcon:Ai,previewIcon:lo,downloadIcon:xo,iconRender:Qn,extra:Do,locale:Object.assign(Object.assign({},Ii),fr),isImageUrl:_n,progress:Jn,appendAction:ai,appendActionVisible:Wi,itemRender:yr,disabled:ti}):ai,qr=Oe()(Qr,Er,Jr,pi,Bi,Bn==null?void 0:Bn.className,{[`${Xn}-rtl`]:Hn==="rtl",[`${Xn}-picture-card-wrapper`]:Et==="picture-card",[`${Xn}-picture-circle-wrapper`]:Et==="picture-circle"}),Hr=Object.assign(Object.assign({},Bn==null?void 0:Bn.style),Yn);if(Cr==="drag"){const ai=Oe()(pi,Xn,`${Xn}-drag`,{[`${Xn}-drag-uploading`]:ci.some(Wi=>Wi.status==="uploading"),[`${Xn}-drag-hover`]:vi==="dragover",[`${Xn}-disabled`]:ti,[`${Xn}-rtl`]:Hn==="rtl"});return Ei(b.createElement("span",{className:qr,ref:bi},b.createElement("div",{className:ai,style:Hr,onDrop:lr,onDragOver:lr,onDragLeave:lr},b.createElement(Pt,Object.assign({},rr,{ref:hi,className:`${Xn}-btn`}),b.createElement("div",{className:`${Xn}-drag-container`},wr))),Co()))}const Ji=Oe()(Xn,`${Xn}-select`,{[`${Xn}-disabled`]:ti,[`${Xn}-hidden`]:!wr}),qi=b.createElement("div",{className:Ji},b.createElement(Pt,Object.assign({},rr,{ref:hi})));return Ei(Et==="picture-card"||Et==="picture-circle"?b.createElement("span",{className:qr,ref:bi},Co(qi,!!wr)):b.createElement("span",{className:qr,ref:bi},qi,Co()))};var ct=b.forwardRef(Un),yt=function(Ee,It){var kt={};for(var Vt in Ee)Object.prototype.hasOwnProperty.call(Ee,Vt)&&It.indexOf(Vt)<0&&(kt[Vt]=Ee[Vt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Vt=Object.getOwnPropertySymbols(Ee);bt<Vt.length;bt++)It.indexOf(Vt[bt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Vt[bt])&&(kt[Vt[bt]]=Ee[Vt[bt]]);return kt},lt=b.forwardRef((Ee,It)=>{var{style:kt,height:Vt,hasControlInside:bt=!1}=Ee,Ct=yt(Ee,["style","height","hasControlInside"]);return b.createElement(ct,Object.assign({ref:It,hasControlInside:bt},Ct,{type:"drag",style:Object.assign(Object.assign({},kt),{height:Vt})}))});const ze=ct;ze.Dragger=lt,ze.LIST_IGNORE=xn;var xt=ze},99498:function(yn,Qt,ee){(function(b){b(ee(89780))})(function(b){b.defineOption("placeholder","",function(Ze,Ce,ue){var tt=ue&&ue!=b.Init;if(Ce&&!tt)Ze.on("blur",Oe),Ze.on("change",ye),Ze.on("swapDoc",ye),b.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){Ge(Ze)}),ye(Ze);else if(!Ce&&tt){Ze.off("blur",Oe),Ze.off("change",ye),Ze.off("swapDoc",ye),b.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),je(Ze);var ke=Ze.getWrapperElement();ke.className=ke.className.replace(" CodeMirror-empty","")}Ce&&!Ze.hasFocus()&&Oe(Ze)});function je(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function fe(Ze){je(Ze);var Ce=Ze.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=Ze.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var ue=Ze.getOption("placeholder");typeof ue=="string"&&(ue=document.createTextNode(ue)),Ce.appendChild(ue),Ze.display.lineSpace.insertBefore(Ce,Ze.display.lineSpace.firstChild)}function Ge(Ze){setTimeout(function(){var Ce=!1,ue=Ze.getInputField();ue.nodeName=="TEXTAREA"?Ce=!ue.value:Ze.lineCount()==1&&(Ce=!/[^\u200b]/.test(ue.querySelector(".CodeMirror-line").textContent)),Ce?fe(Ze):je(Ze)},20)}function Oe(Ze){De(Ze)&&fe(Ze)}function ye(Ze){var Ce=Ze.getWrapperElement(),ue=De(Ze);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(ue?" CodeMirror-empty":""),ue?fe(Ze):je(Ze)}function De(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(yn,Qt,ee){(function(b){b(ee(89780))})(function(b){var je={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},fe=b.Pos;b.defineOption("autoCloseBrackets",!1,function($e,Me,Ie){Ie&&Ie!=b.Init&&($e.removeKeyMap(Oe),$e.state.closeBrackets=null),Me&&(ye(Ge(Me,"pairs")),$e.state.closeBrackets=Me,$e.addKeyMap(Oe))});function Ge($e,Me){return Me=="pairs"&&typeof $e=="string"?$e:typeof $e=="object"&&$e[Me]!=null?$e[Me]:je[Me]}var Oe={Backspace:Ce,Enter:ue};function ye($e){for(var Me=0;Me<$e.length;Me++){var Ie=$e.charAt(Me),Xe="'"+Ie+"'";Oe[Xe]||(Oe[Xe]=De(Ie))}}ye(je.pairs+"`");function De($e){return function(Me){return ke(Me,$e)}}function Ze($e){var Me=$e.state.closeBrackets;if(!Me||Me.override)return Me;var Ie=$e.getModeAt($e.getCursor());return Ie.closeBrackets||Me}function Ce($e){var Me=Ze($e);if(!Me||$e.getOption("disableInput"))return b.Pass;for(var Ie=Ge(Me,"pairs"),Xe=$e.listSelections(),pt=0;pt<Xe.length;pt++){if(!Xe[pt].empty())return b.Pass;var Rt=Lt($e,Xe[pt].head);if(!Rt||Ie.indexOf(Rt)%2!=0)return b.Pass}for(var pt=Xe.length-1;pt>=0;pt--){var Ve=Xe[pt].head;$e.replaceRange("",fe(Ve.line,Ve.ch-1),fe(Ve.line,Ve.ch+1),"+delete")}}function ue($e){var Me=Ze($e),Ie=Me&&Ge(Me,"explode");if(!Ie||$e.getOption("disableInput"))return b.Pass;for(var Xe=$e.listSelections(),pt=0;pt<Xe.length;pt++){if(!Xe[pt].empty())return b.Pass;var Rt=Lt($e,Xe[pt].head);if(!Rt||Ie.indexOf(Rt)%2!=0)return b.Pass}$e.operation(function(){var Ve=$e.lineSeparator()||`
|
|
|
`;$e.replaceSelection(Ve+Ve,null),$e.execCommand("goCharLeft"),Xe=$e.listSelections();for(var Te=0;Te<Xe.length;Te++){var nt=Xe[Te].head.line;$e.indentLine(nt,null,!0),$e.indentLine(nt+1,null,!0)}})}function tt($e){var Me=b.cmpPos($e.anchor,$e.head)>0;return{anchor:new fe($e.anchor.line,$e.anchor.ch+(Me?-1:1)),head:new fe($e.head.line,$e.head.ch+(Me?1:-1))}}function ke($e,Me){var Ie=Ze($e);if(!Ie||$e.getOption("disableInput"))return b.Pass;var Xe=Ge(Ie,"pairs"),pt=Xe.indexOf(Me);if(pt==-1)return b.Pass;for(var Rt=Ge(Ie,"closeBefore"),Ve=Ge(Ie,"triples"),Te=Xe.charAt(pt+1)==Me,nt=$e.listSelections(),Qe=pt%2==0,zt,St=0;St<nt.length;St++){var it=nt[St],ut=it.head,Se,st=$e.getRange(ut,fe(ut.line,ut.ch+1));if(Qe&&!it.empty())Se="surround";else if((Te||!Qe)&&st==Me)Te&&at($e,ut)?Se="both":Ve.indexOf(Me)>=0&&$e.getRange(ut,fe(ut.line,ut.ch+3))==Me+Me+Me?Se="skipThree":Se="skip";else if(Te&&ut.ch>1&&Ve.indexOf(Me)>=0&&$e.getRange(fe(ut.line,ut.ch-2),ut)==Me+Me){if(ut.ch>2&&/\bstring/.test($e.getTokenTypeAt(fe(ut.line,ut.ch-2))))return b.Pass;Se="addFour"}else if(Te){var Je=ut.ch==0?" ":$e.getRange(fe(ut.line,ut.ch-1),ut);if(!b.isWordChar(st)&&Je!=Me&&!b.isWordChar(Je))Se="both";else return b.Pass}else if(Qe&&(st.length===0||/\s/.test(st)||Rt.indexOf(st)>-1))Se="both";else return b.Pass;if(!zt)zt=Se;else if(zt!=Se)return b.Pass}var de=pt%2?Xe.charAt(pt-1):Me,Mt=pt%2?Me:Xe.charAt(pt+1);$e.operation(function(){if(zt=="skip")$e.execCommand("goCharRight");else if(zt=="skipThree")for(var We=0;We<3;We++)$e.execCommand("goCharRight");else if(zt=="surround"){for(var Pt=$e.getSelections(),We=0;We<Pt.length;We++)Pt[We]=de+Pt[We]+Mt;$e.replaceSelections(Pt,"around"),Pt=$e.listSelections().slice();for(var We=0;We<Pt.length;We++)Pt[We]=tt(Pt[We]);$e.setSelections(Pt)}else zt=="both"?($e.replaceSelection(de+Mt,null),$e.triggerElectric(de+Mt),$e.execCommand("goCharLeft")):zt=="addFour"&&($e.replaceSelection(de+de+de+de,"before"),$e.execCommand("goCharRight"))})}function Lt($e,Me){var Ie=$e.getRange(fe(Me.line,Me.ch-1),fe(Me.line,Me.ch+1));return Ie.length==2?Ie:null}function at($e,Me){var Ie=$e.getTokenAt(fe(Me.line,Me.ch+1));return/\bstring/.test(Ie.type)&&Ie.start==Me.ch&&(Me.ch==0||!/\bstring/.test($e.getTokenTypeAt(Me)))}})},6313:function(yn,Qt,ee){(function(b){b(ee(89780),ee(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(Ce,ue,tt){if(tt!=b.Init&&tt&&Ce.removeKeyMap("autoCloseTags"),!!ue){var ke={name:"autoCloseTags"};(typeof ue!="object"||ue.whenClosing!==!1)&&(ke["'/'"]=function(Lt){return ye(Lt)}),(typeof ue!="object"||ue.whenOpening!==!1)&&(ke["'>'"]=function(Lt){return Ge(Lt)}),Ce.addKeyMap(ke)}});var je=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],fe=["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 Ge(Ce){if(Ce.getOption("disableInput"))return b.Pass;for(var ue=Ce.listSelections(),tt=[],ke=Ce.getOption("autoCloseTags"),Lt=0;Lt<ue.length;Lt++){if(!ue[Lt].empty())return b.Pass;var at=ue[Lt].head,$e=Ce.getTokenAt(at),Me=b.innerMode(Ce.getMode(),$e.state),Ie=Me.state,Xe=Me.mode.xmlCurrentTag&&Me.mode.xmlCurrentTag(Ie),pt=Xe&&Xe.name;if(!pt)return b.Pass;var Rt=Me.mode.configuration=="html",Ve=typeof ke=="object"&&ke.dontCloseTags||Rt&&je,Te=typeof ke=="object"&&ke.indentTags||Rt&&fe;$e.end>at.ch&&(pt=pt.slice(0,pt.length-$e.end+at.ch));var nt=pt.toLowerCase();if(!pt||$e.type=="string"&&($e.end!=at.ch||!/[\"\']/.test($e.string.charAt($e.string.length-1))||$e.string.length==1)||$e.type=="tag"&&Xe.close||$e.string.indexOf("/")==at.ch-$e.start-1||Ve&&De(Ve,nt)>-1||Ze(Ce,Me.mode.xmlCurrentContext&&Me.mode.xmlCurrentContext(Ie)||[],pt,at,!0))return b.Pass;var Qe=typeof ke=="object"&&ke.emptyTags;if(Qe&&De(Qe,pt)>-1){tt[Lt]={text:"/>",newPos:b.Pos(at.line,at.ch+2)};continue}var zt=Te&&De(Te,nt)>-1;tt[Lt]={indent:zt,text:">"+(zt?`
|
|
|
|
|
|
`:"")+"</"+pt+">",newPos:zt?b.Pos(at.line+1,0):b.Pos(at.line,at.ch+1)}}for(var St=typeof ke=="object"&&ke.dontIndentOnAutoClose,Lt=ue.length-1;Lt>=0;Lt--){var it=tt[Lt];Ce.replaceRange(it.text,ue[Lt].head,ue[Lt].anchor,"+insert");var ut=Ce.listSelections().slice(0);ut[Lt]={head:it.newPos,anchor:it.newPos},Ce.setSelections(ut),!St&&it.indent&&(Ce.indentLine(it.newPos.line,null,!0),Ce.indentLine(it.newPos.line+1,null,!0))}}function Oe(Ce,ue){for(var tt=Ce.listSelections(),ke=[],Lt=ue?"/":"</",at=Ce.getOption("autoCloseTags"),$e=typeof at=="object"&&at.dontIndentOnSlash,Me=0;Me<tt.length;Me++){if(!tt[Me].empty())return b.Pass;var Ie=tt[Me].head,Xe=Ce.getTokenAt(Ie),pt=b.innerMode(Ce.getMode(),Xe.state),Rt=pt.state;if(ue&&(Xe.type=="string"||Xe.string.charAt(0)!="<"||Xe.start!=Ie.ch-1))return b.Pass;var Ve,Te=pt.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(Te&&pt.mode.name=="javascript")Ve=Lt+"script";else if(Te&&pt.mode.name=="css")Ve=Lt+"style";else{var nt=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(Rt);if(!nt||nt.length&&Ze(Ce,nt,nt[nt.length-1],Ie))return b.Pass;Ve=Lt+nt[nt.length-1]}Ce.getLine(Ie.line).charAt(Xe.end)!=">"&&(Ve+=">"),ke[Me]=Ve}if(Ce.replaceSelections(ke),tt=Ce.listSelections(),!$e)for(var Me=0;Me<tt.length;Me++)(Me==tt.length-1||tt[Me].head.line<tt[Me+1].head.line)&&Ce.indentLine(tt[Me].head.line)}function ye(Ce){return Ce.getOption("disableInput")?b.Pass:Oe(Ce,!0)}b.commands.closeTag=function(Ce){return Oe(Ce)};function De(Ce,ue){if(Ce.indexOf)return Ce.indexOf(ue);for(var tt=0,ke=Ce.length;tt<ke;++tt)if(Ce[tt]==ue)return tt;return-1}function Ze(Ce,ue,tt,ke,Lt){if(!b.scanForClosingTag)return!1;var at=Math.min(Ce.lastLine()+1,ke.line+500),$e=b.scanForClosingTag(Ce,ke,null,at);if(!$e||$e.tag!=tt)return!1;for(var Me=Lt?1:0,Ie=ue.length-1;Ie>=0&&ue[Ie]==tt;Ie--)++Me;ke=$e.to;for(var Ie=1;Ie<Me;Ie++){var Xe=b.scanForClosingTag(Ce,ke,null,at);if(!Xe||Xe.tag!=tt)return!1;ke=Xe.to}return!0}})},32855:function(yn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var je=b.Pos;function fe(Ie,Xe){return Ie.line-Xe.line||Ie.ch-Xe.ch}var Ge="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",Oe=Ge+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ye=new RegExp("<(/?)(["+Ge+"]["+Oe+"]*)","g");function De(Ie,Xe,pt,Rt){this.line=Xe,this.ch=pt,this.cm=Ie,this.text=Ie.getLine(Xe),this.min=Rt?Math.max(Rt.from,Ie.firstLine()):Ie.firstLine(),this.max=Rt?Math.min(Rt.to-1,Ie.lastLine()):Ie.lastLine()}function Ze(Ie,Xe){var pt=Ie.cm.getTokenTypeAt(je(Ie.line,Xe));return pt&&/\btag\b/.test(pt)}function Ce(Ie){if(!(Ie.line>=Ie.max))return Ie.ch=0,Ie.text=Ie.cm.getLine(++Ie.line),!0}function ue(Ie){if(!(Ie.line<=Ie.min))return Ie.text=Ie.cm.getLine(--Ie.line),Ie.ch=Ie.text.length,!0}function tt(Ie){for(;;){var Xe=Ie.text.indexOf(">",Ie.ch);if(Xe==-1){if(Ce(Ie))continue;return}if(!Ze(Ie,Xe+1)){Ie.ch=Xe+1;continue}var pt=Ie.text.lastIndexOf("/",Xe),Rt=pt>-1&&!/\S/.test(Ie.text.slice(pt+1,Xe));return Ie.ch=Xe+1,Rt?"selfClose":"regular"}}function ke(Ie){for(;;){var Xe=Ie.ch?Ie.text.lastIndexOf("<",Ie.ch-1):-1;if(Xe==-1){if(ue(Ie))continue;return}if(!Ze(Ie,Xe+1)){Ie.ch=Xe;continue}ye.lastIndex=Xe,Ie.ch=Xe;var pt=ye.exec(Ie.text);if(pt&&pt.index==Xe)return pt}}function Lt(Ie){for(;;){ye.lastIndex=Ie.ch;var Xe=ye.exec(Ie.text);if(!Xe){if(Ce(Ie))continue;return}if(!Ze(Ie,Xe.index+1)){Ie.ch=Xe.index+1;continue}return Ie.ch=Xe.index+Xe[0].length,Xe}}function at(Ie){for(;;){var Xe=Ie.ch?Ie.text.lastIndexOf(">",Ie.ch-1):-1;if(Xe==-1){if(ue(Ie))continue;return}if(!Ze(Ie,Xe+1)){Ie.ch=Xe;continue}var pt=Ie.text.lastIndexOf("/",Xe),Rt=pt>-1&&!/\S/.test(Ie.text.slice(pt+1,Xe));return Ie.ch=Xe+1,Rt?"selfClose":"regular"}}function $e(Ie,Xe){for(var pt=[];;){var Rt=Lt(Ie),Ve,Te=Ie.line,nt=Ie.ch-(Rt?Rt[0].length:0);if(!Rt||!(Ve=tt(Ie)))return;if(Ve!="selfClose")if(Rt[1]){for(var Qe=pt.length-1;Qe>=0;--Qe)if(pt[Qe]==Rt[2]){pt.length=Qe;break}if(Qe<0&&(!Xe||Xe==Rt[2]))return{tag:Rt[2],from:je(Te,nt),to:je(Ie.line,Ie.ch)}}else pt.push(Rt[2])}}function Me(Ie,Xe){for(var pt=[];;){var Rt=at(Ie);if(!Rt)return;if(Rt=="selfClose"){ke(Ie);continue}var Ve=Ie.line,Te=Ie.ch,nt=ke(Ie);if(!nt)return;if(nt[1])pt.push(nt[2]);else{for(var Qe=pt.length-1;Qe>=0;--Qe)if(pt[Qe]==nt[2]){pt.length=Qe;break}if(Qe<0&&(!Xe||Xe==nt[2]))return{tag:nt[2],from:je(Ie.line,Ie.ch),to:je(Ve,Te)}}}}b.registerHelper("fold","xml",function(Ie,Xe){for(var pt=new De(Ie,Xe.line,0);;){var Rt=Lt(pt);if(!Rt||pt.line!=Xe.line)return;var Ve=tt(pt);if(!Ve)return;if(!Rt[1]&&Ve!="selfClose"){var Te=je(pt.line,pt.ch),nt=$e(pt,Rt[2]);return nt&&fe(nt.from,Te)>0?{from:Te,to:nt.from}:null}}}),b.findMatchingTag=function(Ie,Xe,pt){var Rt=new De(Ie,Xe.line,Xe.ch,pt);if(!(Rt.text.indexOf(">")==-1&&Rt.text.indexOf("<")==-1)){var Ve=tt(Rt),Te=Ve&&je(Rt.line,Rt.ch),nt=Ve&&ke(Rt);if(!(!Ve||!nt||fe(Rt,Xe)>0)){var Qe={from:je(Rt.line,Rt.ch),to:Te,tag:nt[2]};return Ve=="selfClose"?{open:Qe,close:null,at:"open"}:nt[1]?{open:Me(Rt,nt[2]),close:Qe,at:"close"}:(Rt=new De(Ie,Te.line,Te.ch,pt),{open:Qe,close:$e(Rt,nt[2]),at:"open"})}}},b.findEnclosingTag=function(Ie,Xe,pt,Rt){for(var Ve=new De(Ie,Xe.line,Xe.ch,pt);;){var Te=Me(Ve,Rt);if(!Te)break;var nt=new De(Ie,Xe.line,Xe.ch,pt),Qe=$e(nt,Te.tag);if(Qe)return{open:Te,close:Qe}}},b.scanForClosingTag=function(Ie,Xe,pt,Rt){var Ve=new De(Ie,Xe.line,Xe.ch,Rt?{from:0,to:Rt}:null);return $e(Ve,pt)}})},89780:function(yn){(function(Qt,ee){yn.exports=ee()})(this,function(){"use strict";var Qt=navigator.userAgent,ee=navigator.platform,b=/gecko\/\d/i.test(Qt),je=/MSIE \d/.test(Qt),fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qt),Ge=/Edge\/(\d+)/.exec(Qt),Oe=je||fe||Ge,ye=Oe&&(je?document.documentMode||6:+(Ge||fe)[1]),De=!Ge&&/WebKit\//.test(Qt),Ze=De&&/Qt\/\d+\.\d+/.test(Qt),Ce=!Ge&&/Chrome\//.test(Qt),ue=/Opera\//.test(Qt),tt=/Apple Computer/.test(navigator.vendor),ke=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Qt),Lt=/PhantomJS/.test(Qt),at=!Ge&&/AppleWebKit/.test(Qt)&&/Mobile\/\w+/.test(Qt),$e=/Android/.test(Qt),Me=at||$e||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Qt),Ie=at||/Mac/.test(ee),Xe=/\bCrOS\b/.test(Qt),pt=/win/i.test(ee),Rt=ue&&Qt.match(/Version\/(\d*\.\d*)/);Rt&&(Rt=Number(Rt[1])),Rt&&Rt>=15&&(ue=!1,De=!0);var Ve=Ie&&(Ze||ue&&(Rt==null||Rt<12.11)),Te=b||Oe&&ye>=9;function nt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Qe=function(a,y){var E=a.className,x=nt(y).exec(E);if(x){var z=E.slice(x.index+x[0].length);a.className=E.slice(0,x.index)+(z?x[1]+z:"")}};function zt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function St(a,y){return zt(a).appendChild(y)}function it(a,y,E,x){var z=document.createElement(a);if(E&&(z.className=E),x&&(z.style.cssText=x),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie<y.length;++ie)z.appendChild(y[ie]);return z}function ut(a,y,E,x){var z=it(a,y,E,x);return z.setAttribute("role","presentation"),z}var Se;document.createRange?Se=function(a,y,E,x){var z=document.createRange();return z.setEnd(x||a,E),z.setStart(a,y),z}:Se=function(a,y,E){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(z){return x}return x.collapse(!0),x.moveEnd("character",E),x.moveStart("character",y),x};function st(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function Je(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function de(a,y){var E=a.className;nt(y).test(E)||(a.className+=(E?" ":"")+y)}function Mt(a,y){for(var E=a.split(" "),x=0;x<E.length;x++)E[x]&&!nt(E[x]).test(y)&&(y+=" "+E[x]);return y}var We=function(a){a.select()};at?We=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Oe&&(We=function(a){try{a.select()}catch(y){}});function Pt(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Xt(a,y,E){y||(y={});for(var x in a)a.hasOwnProperty(x)&&(E!==!1||!y.hasOwnProperty(x))&&(y[x]=a[x]);return y}function Be(a,y,E,x,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=x||0,se=z||0;;){var he=a.indexOf(" ",ie);if(he<0||he>=y)return se+(y-ie);se+=he-ie,se+=E-se%E,ie=he+1}}var me=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};me.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},me.prototype.set=function(a,y){this.f=y;var E=+new Date+a;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=E)};function ht(a,y){for(var E=0;E<a.length;++E)if(a[E]==y)return E;return-1}var Ut=50,Bt={toString:function(){return"CodeMirror.Pass"}},be={scroll:!1},Ye={origin:"*mouse"},et={origin:"+move"};function _t(a,y,E){for(var x=0,z=0;;){var ie=a.indexOf(" ",x);ie==-1&&(ie=a.length);var se=ie-x;if(ie==a.length||z+se>=y)return x+Math.min(se,y-z);if(z+=ie-x,z+=E-z%E,x=ie+1,z>=y)return x}}var rt=[""];function Ft(a){for(;rt.length<=a;)rt.push(qe(rt)+" ");return rt[a]}function qe(a){return a[a.length-1]}function Jt(a,y){for(var E=[],x=0;x<a.length;x++)E[x]=y(a[x],x);return E}function Dt(a,y,E){for(var x=0,z=E(y);x<a.length&&E(a[x])<=z;)x++;a.splice(x,0,y)}function ae(){}function ne(a,y){var E;return Object.create?E=Object.create(a):(ae.prototype=a,E=new ae),y&&Xt(y,E),E}var te=/[\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()||te.test(a))}function ce(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var le=/[\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 ge(a){return a.charCodeAt(0)>=768&&le.test(a)}function vt(a,y,E){for(;(E<0?y>0:y<a.length)&&ge(a.charAt(y));)y+=E;return y}function Re(a,y,E){for(var x=y>E?-1:1;;){if(y==E)return y;var z=(y+E)/2,ie=x<0?Math.ceil(z):Math.floor(z);if(ie==y)return a(ie)?y:E;a(ie)?E=ie:y=ie+x}}function Ae(a,y,E,x){if(!a)return x(y,E,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var se=a[ie];(se.from<E&&se.to>y||y==E&&se.to==y)&&(x(Math.max(se.from,y),Math.min(se.to,E),se.level==1?"rtl":"ltr",ie),z=!0)}z||x(y,E,"ltr")}var Ke=null;function _e(a,y,E){var x;Ke=null;for(var z=0;z<a.length;++z){var ie=a[z];if(ie.from<y&&ie.to>y)return z;ie.to==y&&(ie.from!=ie.to&&E=="before"?x=z:Ke=z),ie.from==y&&(ie.from!=ie.to&&E!="before"?x=z:Ke=z)}return x!=null?x:Ke}var gt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(Le){return Le<=247?a.charAt(Le):1424<=Le&&Le<=1524?"R":1536<=Le&&Le<=1785?y.charAt(Le-1536):1774<=Le&&Le<=2220?"r":8192<=Le&&Le<=8203?"w":Le==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,se=/[Lb1n]/,he=/[1n]/;function xe(Le,At,Gt){this.level=Le,this.from=At,this.to=Gt}return function(Le,At){var Gt=At=="ltr"?"L":"R";if(Le.length==0||At=="ltr"&&!x.test(Le))return!1;for(var gn=Le.length,fn=[],Vn=0;Vn<gn;++Vn)fn.push(E(Le.charCodeAt(Vn)));for(var tr=0,pr=Gt;tr<gn;++tr){var Ir=fn[tr];Ir=="m"?fn[tr]=pr:pr=Ir}for(var Fr=0,Pr=Gt;Fr<gn;++Fr){var Wr=fn[Fr];Wr=="1"&&Pr=="r"?fn[Fr]="n":ie.test(Wr)&&(Pr=Wr,Wr=="r"&&(fn[Fr]="R"))}for(var fi=1,li=fn[0];fi<gn-1;++fi){var Ri=fn[fi];Ri=="+"&&li=="1"&&fn[fi+1]=="1"?fn[fi]="1":Ri==","&&li==fn[fi+1]&&(li=="1"||li=="n")&&(fn[fi]=li),li=Ri}for(var go=0;go<gn;++go){var ra=fn[go];if(ra==",")fn[go]="N";else if(ra=="%"){var Lo=void 0;for(Lo=go+1;Lo<gn&&fn[Lo]=="%";++Lo);for(var ka=go&&fn[go-1]=="!"||Lo<gn&&fn[Lo]=="1"?"1":"N",Pa=go;Pa<Lo;++Pa)fn[Pa]=ka;go=Lo-1}}for(var Xo=0,Oa=Gt;Xo<gn;++Xo){var fa=fn[Xo];Oa=="L"&&fa=="1"?fn[Xo]="L":ie.test(fa)&&(Oa=fa)}for(var qo=0;qo<gn;++qo)if(z.test(fn[qo])){var _o=void 0;for(_o=qo+1;_o<gn&&z.test(fn[_o]);++_o);for(var $o=(qo?fn[qo-1]:Gt)=="L",Da=(_o<gn?fn[_o]:Gt)=="L",hs=$o==Da?$o?"L":"R":Gt,Nl=qo;Nl<_o;++Nl)fn[Nl]=hs;qo=_o-1}for(var ba=[],cl,ia=0;ia<gn;)if(se.test(fn[ia])){var Ec=ia;for(++ia;ia<gn&&se.test(fn[ia]);++ia);ba.push(new xe(0,Ec,ia))}else{var bl=ia,_l=ba.length,Yl=At=="rtl"?1:0;for(++ia;ia<gn&&fn[ia]!="L";++ia);for(var Sa=bl;Sa<ia;)if(he.test(fn[Sa])){bl<Sa&&(ba.splice(_l,0,new xe(1,bl,Sa)),_l+=Yl);var ps=Sa;for(++Sa;Sa<ia&&he.test(fn[Sa]);++Sa);ba.splice(_l,0,new xe(2,ps,Sa)),_l+=Yl,bl=Sa}else++Sa;bl<ia&&ba.splice(_l,0,new xe(1,bl,ia))}return At=="ltr"&&(ba[0].level==1&&(cl=Le.match(/^\s+/))&&(ba[0].from=cl[0].length,ba.unshift(new xe(0,0,cl[0].length))),qe(ba).level==1&&(cl=Le.match(/\s+$/))&&(qe(ba).to-=cl[0].length,ba.push(new xe(0,gn-cl[0].length,gn)))),At=="rtl"?ba.reverse():ba}}();function we(a,y){var E=a.order;return E==null&&(E=a.order=gt(a.text,y)),E}var Pe=[],Zt=function(a,y,E){if(a.addEventListener)a.addEventListener(y,E,!1);else if(a.attachEvent)a.attachEvent("on"+y,E);else{var x=a._handlers||(a._handlers={});x[y]=(x[y]||Pe).concat(E)}};function Ht(a,y){return a._handlers&&a._handlers[y]||Pe}function rn(a,y,E){if(a.removeEventListener)a.removeEventListener(y,E,!1);else if(a.detachEvent)a.detachEvent("on"+y,E);else{var x=a._handlers,z=x&&x[y];if(z){var ie=ht(z,E);ie>-1&&(x[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function Yt(a,y){var E=Ht(a,y);if(E.length)for(var x=Array.prototype.slice.call(arguments,2),z=0;z<E.length;++z)E[z].apply(null,x)}function Ot(a,y,E){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Yt(a,E||y.type,a,y),Tt(y)||y.codemirrorIgnore}function nn(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var E=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),x=0;x<y.length;++x)ht(E,y[x])==-1&&E.push(y[x])}function Wt(a,y){return Ht(a,y).length>0}function He(a){a.prototype.on=function(y,E){Zt(this,y,E)},a.prototype.off=function(y,E){rn(this,y,E)}}function mt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function ot(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Tt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ne(a){mt(a),ot(a)}function dt(a){return a.target||a.srcElement}function wt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ie&&a.ctrlKey&&y==1&&(y=3),y}var Kt=function(){if(Oe&&ye<9)return!1;var a=it("div");return"draggable"in a||"dragDrop"in a}(),sn;function bn(a){if(sn==null){var y=it("span","\u200B");St(a,it("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(sn=y.offsetWidth<=1&&y.offsetHeight>2&&!(Oe&&ye<8))}var E=sn?it("span","\u200B"):it("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var An;function zn(a){if(An!=null)return An;var y=St(a,document.createTextNode("A\u062EA")),E=Se(y,0,1).getBoundingClientRect(),x=Se(y,1,2).getBoundingClientRect();return zt(a),!E||E.left==E.right?!1:An=x.right-E.right<3}var pn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,E=[],x=a.length;y<=x;){var z=a.indexOf(`
|
|
|
`,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),se=ie.indexOf("\r");se!=-1?(E.push(ie.slice(0,se)),y+=se+1):(E.push(ie),y=z+1)}return E}:function(a){return a.split(/\r\n?|\n/)},Tn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(E){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},un=function(){var a=it("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Sn=null;function Mn(a){if(Sn!=null)return Sn;var y=St(a,it("span","x")),E=y.getBoundingClientRect(),x=Se(y,0,1).getBoundingClientRect();return Sn=Math.abs(E.left-x.left)>1}var Rn={},vn={};function tn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Rn[a]=y}function en(a,y){vn[a]=y}function cn(a){if(typeof a=="string"&&vn.hasOwnProperty(a))a=vn[a];else if(a&&typeof a.name=="string"&&vn.hasOwnProperty(a.name)){var y=vn[a.name];typeof y=="string"&&(y={name:y}),a=ne(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return cn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return cn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function En(a,y){y=cn(y);var E=Rn[y.name];if(!E)return En(a,"text/plain");var x=E(a,y);if($n.hasOwnProperty(y.name)){var z=$n[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(x.hasOwnProperty(ie)&&(x["_"+ie]=x[ie]),x[ie]=z[ie])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var se in y.modeProps)x[se]=y.modeProps[se];return x}var $n={};function Zn(a,y){var E=$n.hasOwnProperty(a)?$n[a]:$n[a]={};Xt(y,E)}function Nn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var E={};for(var x in y){var z=y[x];z instanceof Array&&(z=z.concat([])),E[x]=z}return E}function Fn(a,y){for(var E;a.innerMode&&(E=a.innerMode(y),!(!E||E.mode==a));)y=E.state,a=E.mode;return E||{mode:a,state:y}}function qn(a,y,E){return a.startState?a.startState(y,E):!0}var er=function(a,y,E){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};er.prototype.eol=function(){return this.pos>=this.string.length},er.prototype.sol=function(){return this.pos==this.lineStart},er.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},er.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},er.prototype.eat=function(a){var y=this.string.charAt(this.pos),E;if(typeof a=="string"?E=y==a:E=y&&(a.test?a.test(y):a(y)),E)return++this.pos,y},er.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},er.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},er.prototype.skipToEnd=function(){this.pos=this.string.length},er.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},er.prototype.backUp=function(a){this.pos-=a},er.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Be(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Be(this.string,this.lineStart,this.tabSize):0)},er.prototype.indentation=function(){return Be(this.string,null,this.tabSize)-(this.lineStart?Be(this.string,this.lineStart,this.tabSize):0)},er.prototype.match=function(a,y,E){if(typeof a=="string"){var x=function(se){return E?se.toLowerCase():se},z=this.string.substr(this.pos,a.length);if(x(z)==x(a))return y!==!1&&(this.pos+=a.length),!0}else{var ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},er.prototype.current=function(){return this.string.slice(this.start,this.pos)},er.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},er.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},er.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function on(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var E=a;!E.lines;)for(var x=0;;++x){var z=E.children[x],ie=z.chunkSize();if(y<ie){E=z;break}y-=ie}return E.lines[y]}function xn(a,y,E){var x=[],z=y.line;return a.iter(y.line,E.line+1,function(ie){var se=ie.text;z==E.line&&(se=se.slice(0,E.ch)),z==y.line&&(se=se.slice(y.ch)),x.push(se),++z}),x}function Un(a,y,E){var x=[];return a.iter(y,E,function(z){x.push(z.text)}),x}function Gn(a,y){var E=y-a.height;if(E)for(var x=a;x;x=x.parent)x.height+=E}function ct(a){if(a.parent==null)return null;for(var y=a.parent,E=ht(y.lines,a),x=y.parent;x;y=x,x=x.parent)for(var z=0;x.children[z]!=y;++z)E+=x.children[z].chunkSize();return E+y.first}function yt(a,y){var E=a.first;e:do{for(var x=0;x<a.children.length;++x){var z=a.children[x],ie=z.height;if(y<ie){a=z;continue e}y-=ie,E+=z.chunkSize()}return E}while(!a.lines);for(var se=0;se<a.lines.length;++se){var he=a.lines[se],xe=he.height;if(y<xe)break;y-=xe}return E+se}function Fe(a,y){return y>=a.first&&y<a.first+a.size}function lt(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function ze(a,y,E){if(E===void 0&&(E=null),!(this instanceof ze))return new ze(a,y,E);this.line=a,this.ch=y,this.sticky=E}function xt(a,y){return a.line-y.line||a.ch-y.ch}function Ee(a,y){return a.sticky==y.sticky&&xt(a,y)==0}function It(a){return ze(a.line,a.ch)}function kt(a,y){return xt(a,y)<0?y:a}function Vt(a,y){return xt(a,y)<0?a:y}function bt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Ct(a,y){if(y.line<a.first)return ze(a.first,0);var E=a.first+a.size-1;return y.line>E?ze(E,on(a,E).text.length):Et(y,on(a,y.line).text.length)}function Et(a,y){var E=a.ch;return E==null||E>y?ze(a.line,y):E<0?ze(a.line,0):a}function $t(a,y){for(var E=[],x=0;x<y.length;x++)E[x]=Ct(a,y[x]);return E}var Pn=function(a,y){this.state=a,this.lookAhead=y},wn=function(a,y,E,x){this.state=y,this.doc=a,this.line=E,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};wn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},wn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},wn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wn.fromSaved=function(a,y,E){return y instanceof Pn?new wn(a,Nn(a.mode,y.state),E,y.lookAhead):new wn(a,Nn(a.mode,y),E)},wn.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pn(y,this.maxLookAhead):y};function Dn(a,y,E,x){var z=[a.state.modeGen],ie={};Cr(a,y.text,a.doc.mode,E,function(Le,At){return z.push(Le,At)},ie,x);for(var se=E.state,he=function(Le){E.baseTokens=z;var At=a.state.overlays[Le],Gt=1,gn=0;E.state=!0,Cr(a,y.text,At.mode,E,function(fn,Vn){for(var tr=Gt;gn<fn;){var pr=z[Gt];pr>fn&&z.splice(Gt,1,fn,z[Gt+1],pr),Gt+=2,gn=Math.min(fn,pr)}if(Vn)if(At.opaque)z.splice(tr,Gt-tr,fn,"overlay "+Vn),Gt=tr+2;else for(;tr<Gt;tr+=2){var Ir=z[tr+1];z[tr+1]=(Ir?Ir+" ":"")+"overlay "+Vn}},ie),E.state=se,E.baseTokens=null,E.baseTokenPos=1},xe=0;xe<a.state.overlays.length;++xe)he(xe);return{styles:z,classes:ie.bgClass||ie.textClass?ie:null}}function nr(a,y,E){if(!y.styles||y.styles[0]!=a.state.modeGen){var x=sr(a,ct(y)),z=y.text.length>a.options.maxHighlightLength&&Nn(a.doc.mode,x.state),ie=Dn(a,y,x);z&&(x.state=z),y.stateAfter=x.save(!z),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),E===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function sr(a,y,E){var x=a.doc,z=a.display;if(!x.mode.startState)return new wn(x,!0,y);var ie=wr(a,y,E),se=ie>x.first&&on(x,ie-1).stateAfter,he=se?wn.fromSaved(x,se,ie):new wn(x,qn(x.mode),ie);return x.iter(ie,y,function(xe){fr(a,xe.text,he);var Le=he.line;xe.stateAfter=Le==y-1||Le%5==0||Le>=z.viewFrom&&Le<z.viewTo?he.save():null,he.nextLine()}),E&&(x.modeFrontier=he.line),he}function fr(a,y,E,x){var z=a.doc.mode,ie=new er(y,a.options.tabSize,E);for(ie.start=ie.pos=x||0,y==""&&Qn(z,E.state);!ie.eol();)_n(z,ie,E.state),ie.start=ie.pos}function Qn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var E=Fn(a,y);if(E.mode.blankLine)return E.mode.blankLine(E.state)}}function _n(a,y,E,x){for(var z=0;z<10;z++){x&&(x[0]=Fn(a,E).mode);var ie=a.token(y,E);if(y.pos>y.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var Jn=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function ur(a,y,E,x){var z=a.doc,ie=z.mode,se;y=Ct(z,y);var he=on(z,y.line),xe=sr(a,y.line,E),Le=new er(he.text,a.options.tabSize,xe),At;for(x&&(At=[]);(x||Le.pos<y.ch)&&!Le.eol();)Le.start=Le.pos,se=_n(ie,Le,xe.state),x&&At.push(new Jn(Le,se,Nn(z.mode,xe.state)));return x?At:new Jn(Le,se,xe.state)}function Er(a,y){if(a)for(;;){var E=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!E)break;a=a.slice(0,E.index)+a.slice(E.index+E[0].length);var x=E[1]?"bgClass":"textClass";y[x]==null?y[x]=E[2]:new RegExp("(?:^|\\s)"+E[2]+"(?:$|\\s)").test(y[x])||(y[x]+=" "+E[2])}return a}function Cr(a,y,E,x,z,ie,se){var he=E.flattenSpans;he==null&&(he=a.options.flattenSpans);var xe=0,Le=null,At=new er(y,a.options.tabSize,x),Gt,gn=a.options.addModeClass&&[null];for(y==""&&Er(Qn(E,x.state),ie);!At.eol();){if(At.pos>a.options.maxHighlightLength?(he=!1,se&&fr(a,y,x,At.pos),At.pos=y.length,Gt=null):Gt=Er(_n(E,At,x.state,gn),ie),gn){var fn=gn[0].name;fn&&(Gt="m-"+(Gt?fn+" "+Gt:fn))}if(!he||Le!=Gt){for(;xe<At.start;)xe=Math.min(At.start,xe+5e3),z(xe,Le);Le=Gt}At.start=At.pos}for(;xe<At.pos;){var Vn=Math.min(At.pos,xe+5e3);z(Vn,Le),xe=Vn}}function wr(a,y,E){for(var x,z,ie=a.doc,se=E?-1:y-(a.doc.mode.innerMode?1e3:100),he=y;he>se;--he){if(he<=ie.first)return ie.first;var xe=on(ie,he-1),Le=xe.stateAfter;if(Le&&(!E||he+(Le instanceof Pn?Le.lookAhead:0)<=ie.modeFrontier))return he;var At=Be(xe.text,null,a.options.tabSize);(z==null||x>At)&&(z=he-1,x=At)}return z}function Yn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var E=a.first,x=y-1;x>E;x--){var z=on(a,x).stateAfter;if(z&&(!(z instanceof Pn)||x+z.lookAhead<y)){E=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,E)}}var yr=!1,mr=!1;function Vr(){yr=!0}function Yr(){mr=!0}function Ur(a,y,E){this.marker=a,this.from=y,this.to=E}function Gr(a,y){if(a)for(var E=0;E<a.length;++E){var x=a[E];if(x.marker==y)return x}}function oi(a,y){for(var E,x=0;x<a.length;++x)a[x]!=y&&(E||(E=[])).push(a[x]);return E}function Zr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function Jr(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var ie=a[z],se=ie.marker,he=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);if(he||ie.from==y&&se.type=="bookmark"&&(!E||!ie.marker.insertLeft)){var xe=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);(x||(x=[])).push(new Ur(se,ie.from,xe?null:ie.to))}}return x}function Or(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var ie=a[z],se=ie.marker,he=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);if(he||ie.from==y&&se.type=="bookmark"&&(!E||ie.marker.insertLeft)){var xe=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);(x||(x=[])).push(new Ur(se,xe?null:ie.from-y,ie.to==null?null:ie.to-y))}}return x}function ti(a,y){if(y.full)return null;var E=Fe(a,y.from.line)&&on(a,y.from.line).markedSpans,x=Fe(a,y.to.line)&&on(a,y.to.line).markedSpans;if(!E&&!x)return null;var z=y.from.ch,ie=y.to.ch,se=xt(y.from,y.to)==0,he=Jr(E,z,se),xe=Or(x,ie,se),Le=y.text.length==1,At=qe(y.text).length+(Le?z:0);if(he)for(var Gt=0;Gt<he.length;++Gt){var gn=he[Gt];if(gn.to==null){var fn=Gr(xe,gn.marker);fn?Le&&(gn.to=fn.to==null?null:fn.to+At):gn.to=z}}if(xe)for(var Vn=0;Vn<xe.length;++Vn){var tr=xe[Vn];if(tr.to!=null&&(tr.to+=At),tr.from==null){var pr=Gr(he,tr.marker);pr||(tr.from=At,Le&&(he||(he=[])).push(tr))}else tr.from+=At,Le&&(he||(he=[])).push(tr)}he&&(he=ci(he)),xe&&xe!=he&&(xe=ci(xe));var Ir=[he];if(!Le){var Fr=y.text.length-2,Pr;if(Fr>0&&he)for(var Wr=0;Wr<he.length;++Wr)he[Wr].to==null&&(Pr||(Pr=[])).push(new Ur(he[Wr].marker,null,null));for(var fi=0;fi<Fr;++fi)Ir.push(Pr);Ir.push(xe)}return Ir}function ci(a){for(var y=0;y<a.length;++y){var E=a[y];E.from!=null&&E.from==E.to&&E.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Fi(a,y,E){var x=null;if(a.iter(y.line,E.line+1,function(fn){if(fn.markedSpans)for(var Vn=0;Vn<fn.markedSpans.length;++Vn){var tr=fn.markedSpans[Vn].marker;tr.readOnly&&(!x||ht(x,tr)==-1)&&(x||(x=[])).push(tr)}}),!x)return null;for(var z=[{from:y,to:E}],ie=0;ie<x.length;++ie)for(var se=x[ie],he=se.find(0),xe=0;xe<z.length;++xe){var Le=z[xe];if(!(xt(Le.to,he.from)<0||xt(Le.from,he.to)>0)){var At=[xe,1],Gt=xt(Le.from,he.from),gn=xt(Le.to,he.to);(Gt<0||!se.inclusiveLeft&&!Gt)&&At.push({from:Le.from,to:he.from}),(gn>0||!se.inclusiveRight&&!gn)&&At.push({from:he.to,to:Le.to}),z.splice.apply(z,At),xe+=At.length-3}}return z}function vi(a){var y=a.markedSpans;if(y){for(var E=0;E<y.length;++E)y[E].marker.detachLine(a);a.markedSpans=null}}function xi(a,y){if(y){for(var E=0;E<y.length;++E)y[E].marker.attachLine(a);a.markedSpans=y}}function hi(a){return a.inclusiveLeft?-1:0}function bi(a){return a.inclusiveRight?1:0}function Rr(a,y){var E=a.lines.length-y.lines.length;if(E!=0)return E;var x=a.find(),z=y.find(),ie=xt(x.from,z.from)||hi(a)-hi(y);if(ie)return-ie;var se=xt(x.to,z.to)||bi(a)-bi(y);return se||y.id-a.id}function kr(a,y){var E=mr&&a.markedSpans,x;if(E)for(var z=void 0,ie=0;ie<E.length;++ie)z=E[ie],z.marker.collapsed&&(y?z.from:z.to)==null&&(!x||Rr(x,z.marker)<0)&&(x=z.marker);return x}function cr(a){return kr(a,!0)}function On(a){return kr(a,!1)}function jn(a,y){var E=mr&&a.markedSpans,x;if(E)for(var z=0;z<E.length;++z){var ie=E[z];ie.marker.collapsed&&(ie.from==null||ie.from<y)&&(ie.to==null||ie.to>y)&&(!x||Rr(x,ie.marker)<0)&&(x=ie.marker)}return x}function Kn(a,y,E,x,z){var ie=on(a,y),se=mr&&ie.markedSpans;if(se)for(var he=0;he<se.length;++he){var xe=se[he];if(xe.marker.collapsed){var Le=xe.marker.find(0),At=xt(Le.from,E)||hi(xe.marker)-hi(z),Gt=xt(Le.to,x)||bi(xe.marker)-bi(z);if(!(At>=0&&Gt<=0||At<=0&&Gt>=0)&&(At<=0&&(xe.marker.inclusiveRight&&z.inclusiveLeft?xt(Le.to,E)>=0:xt(Le.to,E)>0)||At>=0&&(xe.marker.inclusiveRight&&z.inclusiveLeft?xt(Le.from,x)<=0:xt(Le.from,x)<0)))return!0}}}function kn(a){for(var y;y=cr(a);)a=y.find(-1,!0).line;return a}function lr(a){for(var y;y=On(a);)a=y.find(1,!0).line;return a}function br(a){for(var y,E;y=On(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function Hn(a,y){var E=on(a,y),x=kn(E);return E==x?y:ct(x)}function Bn(a,y){if(y>a.lastLine())return y;var E=on(a,y),x;if(!Xn(a,E))return y;for(;x=On(E);)E=x.find(1,!0).line;return ct(E)+1}function Xn(a,y){var E=mr&&y.markedSpans;if(E){for(var x=void 0,z=0;z<E.length;++z)if(x=E[z],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&rr(a,y,x))return!0}}}function rr(a,y,E){if(E.to==null){var x=E.marker.find(1,!0);return rr(a,x.line,Gr(x.line.markedSpans,E.marker))}if(E.marker.inclusiveRight&&E.to==y.text.length)return!0;for(var z=void 0,ie=0;ie<y.markedSpans.length;++ie)if(z=y.markedSpans[ie],z.marker.collapsed&&!z.marker.widgetNode&&z.from==E.to&&(z.to==null||z.to!=E.from)&&(z.marker.inclusiveLeft||E.marker.inclusiveRight)&&rr(a,y,z))return!0}function Qr(a){a=kn(a);for(var y=0,E=a.parent,x=0;x<E.lines.length;++x){var z=E.lines[x];if(z==a)break;y+=z.height}for(var ie=E.parent;ie;E=ie,ie=E.parent)for(var se=0;se<ie.children.length;++se){var he=ie.children[se];if(he==E)break;y+=he.height}return y}function Ei(a){if(a.height==0)return 0;for(var y=a.text.length,E,x=a;E=cr(x);){var z=E.find(0,!0);x=z.from.line,y+=z.from.ch-z.to.ch}for(x=a;E=On(x);){var ie=E.find(0,!0);y-=x.text.length-ie.from.ch,x=ie.to.line,y+=x.text.length-ie.to.ch}return y}function pi(a){var y=a.display,E=a.doc;y.maxLine=on(E,E.first),y.maxLineLength=Ei(y.maxLine),y.maxLineChanged=!0,E.iter(function(x){var z=Ei(x);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=x)})}var Bi=function(a,y,E){this.text=a,xi(this,y),this.height=E?E(this):1};Bi.prototype.lineNo=function(){return ct(this)},He(Bi);function Ii(a,y,E,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),vi(a),xi(a,E);var z=x?x(a):1;z!=a.height&&Gn(a,z)}function Pi(a){a.parent=null,vi(a)}var $i={},Ni={};function Ai(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Ni:$i;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function lo(a,y){var E=ut("span",null,null,De?"padding-right: .1px":null),x={pre:ut("pre",[E],"CodeMirror-line"),content:E,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,se=void 0;x.pos=0,x.addToken=Do,zn(a.display.measure)&&(se=we(ie,a.doc.direction))&&(x.addToken=Co(x.addToken,se)),x.map=[];var he=y!=a.display.externalMeasured&&ct(ie);Hr(ie,x,nr(a,ie,he)),ie.styleClasses&&(ie.styleClasses.bgClass&&(x.bgClass=Mt(ie.styleClasses.bgClass,x.bgClass||"")),ie.styleClasses.textClass&&(x.textClass=Mt(ie.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(bn(a.display.measure))),z==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(De){var xe=x.content.lastChild;(/\bcm-tab\b/.test(xe.className)||xe.querySelector&&xe.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return Yt(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Mt(x.pre.className,x.textClass||"")),x}function xo(a){var y=it("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Do(a,y,E,x,z,ie,se){if(y){var he=a.splitSpaces?To(y,a.trailingSpace):y,xe=a.cm.state.specialChars,Le=!1,At;if(!xe.test(y))a.col+=y.length,At=document.createTextNode(he),a.map.push(a.pos,a.pos+y.length,At),Oe&&ye<9&&(Le=!0),a.pos+=y.length;else{At=document.createDocumentFragment();for(var Gt=0;;){xe.lastIndex=Gt;var gn=xe.exec(y),fn=gn?gn.index-Gt:y.length-Gt;if(fn){var Vn=document.createTextNode(he.slice(Gt,Gt+fn));Oe&&ye<9?At.appendChild(it("span",[Vn])):At.appendChild(Vn),a.map.push(a.pos,a.pos+fn,Vn),a.col+=fn,a.pos+=fn}if(!gn)break;Gt+=fn+1;var tr=void 0;if(gn[0]==" "){var pr=a.cm.options.tabSize,Ir=pr-a.col%pr;tr=At.appendChild(it("span",Ft(Ir),"cm-tab")),tr.setAttribute("role","presentation"),tr.setAttribute("cm-text"," "),a.col+=Ir}else gn[0]=="\r"||gn[0]==`
|
|
|
`?(tr=At.appendChild(it("span",gn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tr.setAttribute("cm-text",gn[0]),a.col+=1):(tr=a.cm.options.specialCharPlaceholder(gn[0]),tr.setAttribute("cm-text",gn[0]),Oe&&ye<9?At.appendChild(it("span",[tr])):At.appendChild(tr),a.col+=1);a.map.push(a.pos,a.pos+1,tr),a.pos++}}if(a.trailingSpace=he.charCodeAt(y.length-1)==32,E||x||z||Le||ie||se){var Fr=E||"";x&&(Fr+=x),z&&(Fr+=z);var Pr=it("span",[At],Fr,ie);if(se)for(var Wr in se)se.hasOwnProperty(Wr)&&Wr!="style"&&Wr!="class"&&Pr.setAttribute(Wr,se[Wr]);return a.content.appendChild(Pr)}a.content.appendChild(At)}}function To(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",z=0;z<a.length;z++){var ie=a.charAt(z);ie==" "&&E&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ie="\xA0"),x+=ie,E=ie==" "}return x}function Co(a,y){return function(E,x,z,ie,se,he,xe){z=z?z+" cm-force-border":"cm-force-border";for(var Le=E.pos,At=Le+x.length;;){for(var Gt=void 0,gn=0;gn<y.length&&(Gt=y[gn],!(Gt.to>Le&&Gt.from<=Le));gn++);if(Gt.to>=At)return a(E,x,z,ie,se,he,xe);a(E,x.slice(0,Gt.to-Le),z,ie,null,he,xe),ie=null,x=x.slice(Gt.to-Le),Le=Gt.to}}}function qr(a,y,E,x){var z=!x&&E.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!x&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",E.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Hr(a,y,E){var x=a.markedSpans,z=a.text,ie=0;if(!x){for(var se=1;se<E.length;se+=2)y.addToken(y,z.slice(ie,ie=E[se]),Ai(E[se+1],y.cm.options));return}for(var he=z.length,xe=0,Le=1,At="",Gt,gn,fn=0,Vn,tr,pr,Ir,Fr;;){if(fn==xe){Vn=tr=pr=gn="",Fr=null,Ir=null,fn=1/0;for(var Pr=[],Wr=void 0,fi=0;fi<x.length;++fi){var li=x[fi],Ri=li.marker;if(Ri.type=="bookmark"&&li.from==xe&&Ri.widgetNode)Pr.push(Ri);else if(li.from<=xe&&(li.to==null||li.to>xe||Ri.collapsed&&li.to==xe&&li.from==xe)){if(li.to!=null&&li.to!=xe&&fn>li.to&&(fn=li.to,tr=""),Ri.className&&(Vn+=" "+Ri.className),Ri.css&&(gn=(gn?gn+";":"")+Ri.css),Ri.startStyle&&li.from==xe&&(pr+=" "+Ri.startStyle),Ri.endStyle&&li.to==fn&&(Wr||(Wr=[])).push(Ri.endStyle,li.to),Ri.title&&((Fr||(Fr={})).title=Ri.title),Ri.attributes)for(var go in Ri.attributes)(Fr||(Fr={}))[go]=Ri.attributes[go];Ri.collapsed&&(!Ir||Rr(Ir.marker,Ri)<0)&&(Ir=li)}else li.from>xe&&fn>li.from&&(fn=li.from)}if(Wr)for(var ra=0;ra<Wr.length;ra+=2)Wr[ra+1]==fn&&(tr+=" "+Wr[ra]);if(!Ir||Ir.from==xe)for(var Lo=0;Lo<Pr.length;++Lo)qr(y,0,Pr[Lo]);if(Ir&&(Ir.from||0)==xe){if(qr(y,(Ir.to==null?he+1:Ir.to)-xe,Ir.marker,Ir.from==null),Ir.to==null)return;Ir.to==xe&&(Ir=!1)}}if(xe>=he)break;for(var ka=Math.min(he,fn);;){if(At){var Pa=xe+At.length;if(!Ir){var Xo=Pa>ka?At.slice(0,ka-xe):At;y.addToken(y,Xo,Gt?Gt+Vn:Vn,pr,xe+Xo.length==fn?tr:"",gn,Fr)}if(Pa>=ka){At=At.slice(ka-xe),xe=ka;break}xe=Pa,pr=""}At=z.slice(ie,ie=E[Le++]),Gt=Ai(E[Le++],y.cm.options)}}}function Ji(a,y,E){this.line=y,this.rest=br(y),this.size=this.rest?ct(qe(this.rest))-E+1:1,this.node=this.text=null,this.hidden=Xn(a,y)}function qi(a,y,E){for(var x=[],z,ie=y;ie<E;ie=z){var se=new Ji(a.doc,on(a.doc,ie),ie);z=ie+se.size,x.push(se)}return x}var ai=null;function Wi(a){ai?ai.ops.push(a):a.ownsGroup=ai={ops:[a],delayedCallbacks:[]}}function Yi(a){var y=a.delayedCallbacks,E=0;do{for(;E<y.length;E++)y[E].call(null);for(var x=0;x<a.ops.length;x++){var z=a.ops[x];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(E<y.length)}function gi(a,y){var E=a.ownsGroup;if(E)try{Yi(E)}finally{ai=null,y(E)}}var Zi=null;function Mi(a,y){var E=Ht(a,y);if(E.length){var x=Array.prototype.slice.call(arguments,2),z;ai?z=ai.delayedCallbacks:Zi?z=Zi:(z=Zi=[],setTimeout(Zo,0));for(var ie=function(he){z.push(function(){return E[he].apply(null,x)})},se=0;se<E.length;++se)ie(se)}}function Zo(){var a=Zi;Zi=null;for(var y=0;y<a.length;++y)a[y]()}function ha(a,y,E,x){for(var z=0;z<y.changes.length;z++){var ie=y.changes[z];ie=="text"?el(a,y):ie=="gutter"?Ci(a,y,E,x):ie=="class"?si(a,y):ie=="widget"&&ni(a,y,x)}y.changes=null}function Wo(a){return a.node==a.text&&(a.node=it("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Oe&&ye<8&&(a.node.style.zIndex=2)),a.node}function Mo(a,y){var E=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),y.background)E?y.background.className=E:(y.background.parentNode.removeChild(y.background),y.background=null);else if(E){var x=Wo(y);y.background=x.insertBefore(it("div",null,E),x.firstChild),a.display.input.setUneditable(y.background)}}function ul(a,y){var E=a.display.externalMeasured;return E&&E.line==y.line?(a.display.externalMeasured=null,y.measure=E.measure,E.built):lo(a,y)}function el(a,y){var E=y.text.className,x=ul(a,y);y.text==y.node&&(y.node=x.pre),y.text.parentNode.replaceChild(x.pre,y.text),y.text=x.pre,x.bgClass!=y.bgClass||x.textClass!=y.textClass?(y.bgClass=x.bgClass,y.textClass=x.textClass,si(a,y)):E&&(y.text.className=E)}function si(a,y){Mo(a,y),y.line.wrapClass?Wo(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var E=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=E||""}function Ci(a,y,E,x){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=Wo(y);y.gutterBackground=it("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var se=Wo(y),he=y.gutter=it("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(he),se.insertBefore(he,y.text),y.line.gutterClass&&(he.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=he.appendChild(it("div",lt(a.options,E),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var xe=0;xe<a.display.gutterSpecs.length;++xe){var Le=a.display.gutterSpecs[xe].className,At=ie.hasOwnProperty(Le)&&ie[Le];At&&he.appendChild(it("div",[At],"CodeMirror-gutter-elt","left: "+x.gutterLeft[Le]+"px; width: "+x.gutterWidth[Le]+"px"))}}}function ni(a,y,E){y.alignable&&(y.alignable=null);for(var x=nt("CodeMirror-linewidget"),z=y.node.firstChild,ie=void 0;z;z=ie)ie=z.nextSibling,x.test(z.className)&&y.node.removeChild(z);Vi(a,y,E)}function ui(a,y,E,x){var z=ul(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),si(a,y),Ci(a,y,E,x),Vi(a,y,x),y.node}function Vi(a,y,E){if(so(a,y.line,y,E,!0),y.rest)for(var x=0;x<y.rest.length;x++)so(a,y.rest[x],y,E,!1)}function so(a,y,E,x,z){if(y.widgets)for(var ie=Wo(E),se=0,he=y.widgets;se<he.length;++se){var xe=he[se],Le=it("div",[xe.node],"CodeMirror-linewidget"+(xe.className?" "+xe.className:""));xe.handleMouseEvents||Le.setAttribute("cm-ignore-events","true"),La(xe,Le,E,x),a.display.input.setUneditable(Le),z&&xe.above?ie.insertBefore(Le,E.gutter||E.text):ie.appendChild(Le),Mi(xe,"redraw")}}function La(a,y,E,x){if(a.noHScroll){(E.alignable||(E.alignable=[])).push(y);var z=x.wrapperWidth;y.style.left=x.fixedPos+"px",a.coverGutter||(z-=x.gutterTotalWidth,y.style.paddingLeft=x.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-x.gutterTotalWidth+"px"))}function oa(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!st(document.body,a.node)){var E="position: relative;";a.coverGutter&&(E+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(E+="width: "+y.display.wrapper.clientWidth+"px;"),St(y.display.measure,it("div",[a.node],null,E))}return a.height=a.node.parentNode.offsetHeight}function Yo(a,y){for(var E=dt(y);E!=a.wrapper;E=E.parentNode)if(!E||E.nodeType==1&&E.getAttribute("cm-ignore-events")=="true"||E.parentNode==a.sizer&&E!=a.mover)return!0}function Bo(a){return a.lineSpace.offsetTop}function Ta(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Za(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=St(a.measure,it("pre","x","CodeMirror-line-like")),E=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,x={left:parseInt(E.paddingLeft),right:parseInt(E.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(a.cachedPaddingH=x),x}function pa(a){return Ut-a.display.nativeBarWidth}function za(a){return a.display.scroller.clientWidth-pa(a)-a.display.barWidth}function Ya(a){return a.display.scroller.clientHeight-pa(a)-a.display.barHeight}function Ma(a,y,E){var x=a.options.lineWrapping,z=x&&za(a);if(!y.measure.heights||x&&y.measure.width!=z){var ie=y.measure.heights=[];if(x){y.measure.width=z;for(var se=y.text.firstChild.getClientRects(),he=0;he<se.length-1;he++){var xe=se[he],Le=se[he+1];Math.abs(xe.bottom-Le.bottom)>2&&ie.push((xe.bottom+Le.top)/2-E.top)}}ie.push(E.bottom-E.top)}}function dl(a,y,E){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;x<a.rest.length;x++)if(a.rest[x]==y)return{map:a.measure.maps[x],cache:a.measure.caches[x]};for(var z=0;z<a.rest.length;z++)if(ct(a.rest[z])>E)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function ms(a,y){y=kn(y);var E=ct(y),x=a.display.externalMeasured=new Ji(a.doc,y,E);x.lineN=E;var z=x.built=lo(a,x);return x.text=z.pre,St(a.display.lineMeasure,z.pre),x}function Ql(a,y,E,x){return Ba(a,tl(a,y),E,x)}function Ha(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[Ka(a,y)];var E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size)return E}function tl(a,y){var E=ct(y),x=Ha(a,E);x&&!x.text?x=null:x&&x.changes&&(ha(a,x,E,rl(a)),a.curOp.forceUpdate=!0),x||(x=ms(a,y));var z=dl(x,y,E);return{line:y,view:x,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function Ba(a,y,E,x,z){y.before&&(E=-1);var ie=E+(x||""),se;return y.cache.hasOwnProperty(ie)?se=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Ma(a,y.view,y.rect),y.hasHeights=!0),se=ql(a,y,E,x),se.bogus||(y.cache[ie]=se)),{left:se.left,right:se.right,top:z?se.rtop:se.top,bottom:z?se.rbottom:se.bottom}}var vs={left:0,right:0,top:0,bottom:0};function Al(a,y,E){for(var x,z,ie,se,he,xe,Le=0;Le<a.length;Le+=3)if(he=a[Le],xe=a[Le+1],y<he?(z=0,ie=1,se="left"):y<xe?(z=y-he,ie=z+1):(Le==a.length-3||y==xe&&a[Le+3]>y)&&(ie=xe-he,z=ie-1,y>=xe&&(se="right")),z!=null){if(x=a[Le+2],he==xe&&E==(x.insertLeft?"left":"right")&&(se=E),E=="left"&&z==0)for(;Le&&a[Le-2]==a[Le-3]&&a[Le-1].insertLeft;)x=a[(Le-=3)+2],se="left";if(E=="right"&&z==xe-he)for(;Le<a.length-3&&a[Le+3]==a[Le+4]&&!a[Le+5].insertLeft;)x=a[(Le+=3)+2],se="right";break}return{node:x,start:z,end:ie,collapse:se,coverStart:he,coverEnd:xe}}function Jl(a,y){var E=vs;if(y=="left")for(var x=0;x<a.length&&(E=a[x]).left==E.right;x++);else for(var z=a.length-1;z>=0&&(E=a[z]).left==E.right;z--);return E}function ql(a,y,E,x){var z=Al(y.map,E,x),ie=z.node,se=z.start,he=z.end,xe=z.collapse,Le;if(ie.nodeType==3){for(var At=0;At<4;At++){for(;se&&ge(y.line.text.charAt(z.coverStart+se));)--se;for(;z.coverStart+he<z.coverEnd&&ge(y.line.text.charAt(z.coverStart+he));)++he;if(Oe&&ye<9&&se==0&&he==z.coverEnd-z.coverStart?Le=ie.parentNode.getBoundingClientRect():Le=Jl(Se(ie,se,he).getClientRects(),x),Le.left||Le.right||se==0)break;he=se,se=se-1,xe="right"}Oe&&ye<11&&(Le=zs(a.display.measure,Le))}else{se>0&&(xe=x="right");var Gt;a.options.lineWrapping&&(Gt=ie.getClientRects()).length>1?Le=Gt[x=="right"?Gt.length-1:0]:Le=ie.getBoundingClientRect()}if(Oe&&ye<9&&!se&&(!Le||!Le.left&&!Le.right)){var gn=ie.parentNode.getClientRects()[0];gn?Le={left:gn.left,right:gn.left+Fa(a.display),top:gn.top,bottom:gn.bottom}:Le=vs}for(var fn=Le.top-y.rect.top,Vn=Le.bottom-y.rect.top,tr=(fn+Vn)/2,pr=y.view.measure.heights,Ir=0;Ir<pr.length-1&&!(tr<pr[Ir]);Ir++);var Fr=Ir?pr[Ir-1]:0,Pr=pr[Ir],Wr={left:(xe=="right"?Le.right:Le.left)-y.rect.left,right:(xe=="left"?Le.left:Le.right)-y.rect.left,top:Fr,bottom:Pr};return!Le.left&&!Le.right&&(Wr.bogus=!0),a.options.singleCursorHeightPerLine||(Wr.rtop=fn,Wr.rbottom=Vn),Wr}function zs(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Mn(a))return y;var E=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*E,right:y.right*E,top:y.top*x,bottom:y.bottom*x}}function kl(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function ja(a){a.display.externalMeasure=null,zt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)kl(a.display.view[y])}function fl(a){ja(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function xl(){return Ce&&$e?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ll(){return Ce&&$e?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hl(a){var y=0;if(a.widgets)for(var E=0;E<a.widgets.length;++E)a.widgets[E].above&&(y+=oa(a.widgets[E]));return y}function Rl(a,y,E,x,z){if(!z){var ie=hl(y);E.top+=ie,E.bottom+=ie}if(x=="line")return E;x||(x="local");var se=Qr(y);if(x=="local"?se+=Bo(a.display):se-=a.display.viewOffset,x=="page"||x=="window"){var he=a.display.lineSpace.getBoundingClientRect();se+=he.top+(x=="window"?0:Ll());var xe=he.left+(x=="window"?0:xl());E.left+=xe,E.right+=xe}return E.top+=se,E.bottom+=se,E}function es(a,y,E){if(E=="div")return y;var x=y.left,z=y.top;if(E=="page")x-=xl(),z-=Ll();else if(E=="local"||!E){var ie=a.display.sizer.getBoundingClientRect();x+=ie.left,z+=ie.top}var se=a.display.lineSpace.getBoundingClientRect();return{left:x-se.left,top:z-se.top}}function nl(a,y,E,x,z){return x||(x=on(a.doc,y.line)),Rl(a,x,Ql(a,x,y.ch,z),E)}function aa(a,y,E,x,z,ie){x=x||on(a.doc,y.line),z||(z=tl(a,x));function se(Vn,tr){var pr=Ba(a,z,Vn,tr?"right":"left",ie);return tr?pr.left=pr.right:pr.right=pr.left,Rl(a,x,pr,E)}var he=we(x,a.doc.direction),xe=y.ch,Le=y.sticky;if(xe>=x.text.length?(xe=x.text.length,Le="before"):xe<=0&&(xe=0,Le="after"),!he)return se(Le=="before"?xe-1:xe,Le=="before");function At(Vn,tr,pr){var Ir=he[tr],Fr=Ir.level==1;return se(pr?Vn-1:Vn,Fr!=pr)}var Gt=_e(he,xe,Le),gn=Ke,fn=At(xe,Gt,Le=="before");return gn!=null&&(fn.other=At(xe,gn,Le!="before")),fn}function Ki(a,y){var E=0;y=Ct(a.doc,y),a.options.lineWrapping||(E=Fa(a.display)*y.ch);var x=on(a.doc,y.line),z=Qr(x)+Bo(a.display);return{left:E,right:E,top:z,bottom:z+x.height}}function Si(a,y,E,x,z){var ie=ze(a,y,E);return ie.xRel=z,x&&(ie.outside=x),ie}function Ko(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Si(x.first,0,null,-1,-1);var z=yt(x,E),ie=x.first+x.size-1;if(z>ie)return Si(x.first+x.size-1,on(x,ie).text.length,null,1,1);y<0&&(y=0);for(var se=on(x,z);;){var he=Ra(a,se,z,y,E),xe=jn(se,he.ch+(he.xRel>0||he.outside>0?1:0));if(!xe)return he;var Le=xe.find(1);if(Le.line==z)return Le;se=on(x,z=Le.line)}}function la(a,y,E,x){x-=hl(y);var z=y.text.length,ie=Re(function(se){return Ba(a,E,se-1).bottom<=x},z,0);return z=Re(function(se){return Ba(a,E,se).top>x},ie,z),{begin:ie,end:z}}function No(a,y,E,x){E||(E=tl(a,y));var z=Rl(a,y,Ba(a,E,x),"line").top;return la(a,y,E,z)}function Vo(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function Ra(a,y,E,x,z){z-=Qr(y);var ie=tl(a,y),se=hl(y),he=0,xe=y.text.length,Le=!0,At=we(y,a.doc.direction);if(At){var Gt=(a.options.lineWrapping?Wa:Na)(a,y,E,ie,At,x,z);Le=Gt.level!=1,he=Le?Gt.from:Gt.to-1,xe=Le?Gt.to:Gt.from-1}var gn=null,fn=null,Vn=Re(function(fi){var li=Ba(a,ie,fi);return li.top+=se,li.bottom+=se,Vo(li,x,z,!1)?(li.top<=z&&li.left<=x&&(gn=fi,fn=li),!0):!1},he,xe),tr,pr,Ir=!1;if(fn){var Fr=x-fn.left<fn.right-x,Pr=Fr==Le;Vn=gn+(Pr?0:1),pr=Pr?"after":"before",tr=Fr?fn.left:fn.right}else{!Le&&(Vn==xe||Vn==he)&&Vn++,pr=Vn==0?"after":Vn==y.text.length?"before":Ba(a,ie,Vn-(Le?1:0)).bottom+se<=z==Le?"after":"before";var Wr=aa(a,ze(E,Vn,pr),"line",y,ie);tr=Wr.left,Ir=z<Wr.top?-1:z>=Wr.bottom?1:0}return Vn=vt(y.text,Vn,1),Si(E,Vn,pr,Ir,x-tr)}function Na(a,y,E,x,z,ie,se){var he=Re(function(Gt){var gn=z[Gt],fn=gn.level!=1;return Vo(aa(a,ze(E,fn?gn.to:gn.from,fn?"before":"after"),"line",y,x),ie,se,!0)},0,z.length-1),xe=z[he];if(he>0){var Le=xe.level!=1,At=aa(a,ze(E,Le?xe.from:xe.to,Le?"after":"before"),"line",y,x);Vo(At,ie,se,!0)&&At.top>se&&(xe=z[he-1])}return xe}function Wa(a,y,E,x,z,ie,se){var he=la(a,y,x,se),xe=he.begin,Le=he.end;/\s/.test(y.text.charAt(Le-1))&&Le--;for(var At=null,Gt=null,gn=0;gn<z.length;gn++){var fn=z[gn];if(!(fn.from>=Le||fn.to<=xe)){var Vn=fn.level!=1,tr=Ba(a,x,Vn?Math.min(Le,fn.to)-1:Math.max(xe,fn.from)).right,pr=tr<ie?ie-tr+1e9:tr-ie;(!At||Gt>pr)&&(At=fn,Gt=pr)}}return At||(At=z[z.length-1]),At.from<xe&&(At={from:xe,to:At.to,level:At.level}),At.to>Le&&(At={from:At.from,to:Le,level:At.level}),At}var xa;function Ca(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(xa==null){xa=it("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)xa.appendChild(document.createTextNode("x")),xa.appendChild(it("br"));xa.appendChild(document.createTextNode("x"))}St(a.measure,xa);var E=xa.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),zt(a.measure),E||1}function Fa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=it("span","xxxxxxxxxx"),E=it("pre",[y],"CodeMirror-line-like");St(a.measure,E);var x=y.getBoundingClientRect(),z=(x.right-x.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function rl(a){for(var y=a.display,E={},x={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,se=0;ie;ie=ie.nextSibling,++se){var he=a.display.gutterSpecs[se].className;E[he]=ie.offsetLeft+ie.clientLeft+z,x[he]=ie.clientWidth}return{fixedPos:gs(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:E,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function gs(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function ys(a){var y=Ca(a.display),E=a.options.lineWrapping,x=E&&Math.max(5,a.display.scroller.clientWidth/Fa(a.display)-3);return function(z){if(Xn(a.doc,z))return 0;var ie=0;if(z.widgets)for(var se=0;se<z.widgets.length;se++)z.widgets[se].height&&(ie+=z.widgets[se].height);return E?ie+(Math.ceil(z.text.length/x)||1)*y:ie+y}}function Cl(a){var y=a.doc,E=ys(a);y.iter(function(x){var z=E(x);z!=x.height&&Gn(x,z)})}function Qa(a,y,E,x){var z=a.display;if(!E&&dt(y).getAttribute("cm-not-content")=="true")return null;var ie,se,he=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-he.left,se=y.clientY-he.top}catch(Gt){return null}var xe=Ko(a,ie,se),Le;if(x&&xe.xRel>0&&(Le=on(a.doc,xe.line).text).length==xe.ch){var At=Be(Le,Le.length,a.options.tabSize)-Le.length;xe=ze(xe.line,Math.max(0,Math.round((ie-Za(a.display).left)/Fa(a.display))-At))}return xe}function Ka(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var E=a.display.view,x=0;x<E.length;x++)if(y-=E[x].size,y<0)return x}function sa(a,y,E,x){y==null&&(y=a.doc.first),E==null&&(E=a.doc.first+a.doc.size),x||(x=0);var z=a.display;if(x&&E<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)mr&&Hn(a.doc,y)<z.viewTo&&Va(a);else if(E<=z.viewFrom)mr&&Bn(a.doc,E+x)>z.viewFrom?Va(a):(z.viewFrom+=x,z.viewTo+=x);else if(y<=z.viewFrom&&E>=z.viewTo)Va(a);else if(y<=z.viewFrom){var ie=Fl(a,E,E+x,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=x):Va(a)}else if(E>=z.viewTo){var se=Fl(a,y,y,-1);se?(z.view=z.view.slice(0,se.index),z.viewTo=se.lineN):Va(a)}else{var he=Fl(a,y,y,-1),xe=Fl(a,E,E+x,1);he&&xe?(z.view=z.view.slice(0,he.index).concat(qi(a,he.lineN,xe.lineN)).concat(z.view.slice(xe.index)),z.viewTo+=x):Va(a)}var Le=z.externalMeasured;Le&&(E<Le.lineN?Le.lineN+=x:y<Le.lineN+Le.size&&(z.externalMeasured=null))}function il(a,y,E){a.curOp.viewChanged=!0;var x=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(x.externalMeasured=null),!(y<x.viewFrom||y>=x.viewTo)){var ie=x.view[Ka(a,y)];if(ie.node!=null){var se=ie.changes||(ie.changes=[]);ht(se,E)==-1&&se.push(E)}}}function Va(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Fl(a,y,E,x){var z=Ka(a,y),ie,se=a.display.view;if(!mr||E==a.doc.first+a.doc.size)return{index:z,lineN:E};for(var he=a.display.viewFrom,xe=0;xe<z;xe++)he+=se[xe].size;if(he!=y){if(x>0){if(z==se.length-1)return null;ie=he+se[z].size-y,z++}else ie=he-y;y+=ie,E+=ie}for(;Hn(a.doc,E)!=E;){if(z==(x<0?0:se.length-1))return null;E+=x*se[z-(x<0?1:0)].size,z+=x}return{index:z,lineN:E}}function Hs(a,y,E){var x=a.display,z=x.view;z.length==0||y>=x.viewTo||E<=x.viewFrom?(x.view=qi(a,y,E),x.viewFrom=y):(x.viewFrom>y?x.view=qi(a,y,x.viewFrom).concat(x.view):x.viewFrom<y&&(x.view=x.view.slice(Ka(a,y))),x.viewFrom=y,x.viewTo<E?x.view=x.view.concat(qi(a,x.viewTo,E)):x.viewTo>E&&(x.view=x.view.slice(0,Ka(a,E)))),x.viewTo=E}function bs(a){for(var y=a.display.view,E=0,x=0;x<y.length;x++){var z=y[x];!z.hidden&&(!z.node||z.changes)&&++E}return E}function pl(a){a.display.input.showSelection(a.display.input.prepareSelection())}function rc(a,y){y===void 0&&(y=!0);for(var E=a.doc,x={},z=x.cursors=document.createDocumentFragment(),ie=x.selection=document.createDocumentFragment(),se=0;se<E.sel.ranges.length;se++)if(!(!y&&se==E.sel.primIndex)){var he=E.sel.ranges[se];if(!(he.from().line>=a.display.viewTo||he.to().line<a.display.viewFrom)){var xe=he.empty();(xe||a.options.showCursorWhenSelecting)&&js(a,he.head,z),xe||Pc(a,he,ie)}}return x}function js(a,y,E){var x=aa(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=E.appendChild(it("div","\xA0","CodeMirror-cursor"));if(z.style.left=x.left+"px",z.style.top=x.top+"px",z.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var ie=E.appendChild(it("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=x.other.left+"px",ie.style.top=x.other.top+"px",ie.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function $l(a,y){return a.top-y.top||a.left-y.left}function Pc(a,y,E){var x=a.display,z=a.doc,ie=document.createDocumentFragment(),se=Za(a.display),he=se.left,xe=Math.max(x.sizerWidth,za(a)-x.sizer.offsetLeft)-se.right,Le=z.direction=="ltr";function At(Pr,Wr,fi,li){Wr<0&&(Wr=0),Wr=Math.round(Wr),li=Math.round(li),ie.appendChild(it("div",null,"CodeMirror-selected","position: absolute; left: "+Pr+`px;
|
|
|
top: `+Wr+"px; width: "+(fi==null?xe-Pr:fi)+`px;
|
|
|
height: `+(li-Wr)+"px"))}function Gt(Pr,Wr,fi){var li=on(z,Pr),Ri=li.text.length,go,ra;function Lo(Xo,Oa){return nl(a,ze(Pr,Xo),"div",li,Oa)}function ka(Xo,Oa,fa){var qo=No(a,li,null,Xo),_o=Oa=="ltr"==(fa=="after")?"left":"right",$o=fa=="after"?qo.begin:qo.end-(/\s/.test(li.text.charAt(qo.end-1))?2:1);return Lo($o,_o)[_o]}var Pa=we(li,z.direction);return Ae(Pa,Wr||0,fi==null?Ri:fi,function(Xo,Oa,fa,qo){var _o=fa=="ltr",$o=Lo(Xo,_o?"left":"right"),Da=Lo(Oa-1,_o?"right":"left"),hs=Wr==null&&Xo==0,Nl=fi==null&&Oa==Ri,ba=qo==0,cl=!Pa||qo==Pa.length-1;if(Da.top-$o.top<=3){var ia=(Le?hs:Nl)&&ba,Ec=(Le?Nl:hs)&&cl,bl=ia?he:(_o?$o:Da).left,_l=Ec?xe:(_o?Da:$o).right;At(bl,$o.top,_l-bl,$o.bottom)}else{var Yl,Sa,ps,Ic;_o?(Yl=Le&&hs&&ba?he:$o.left,Sa=Le?xe:ka(Xo,fa,"before"),ps=Le?he:ka(Oa,fa,"after"),Ic=Le&&Nl&&cl?xe:Da.right):(Yl=Le?ka(Xo,fa,"before"):he,Sa=!Le&&hs&&ba?xe:$o.right,ps=!Le&&Nl&&cl?he:Da.left,Ic=Le?ka(Oa,fa,"after"):xe),At(Yl,$o.top,Sa-Yl,$o.bottom),$o.bottom<Da.top&&At(he,$o.bottom,null,Da.top),At(ps,Da.top,Ic-ps,Da.bottom)}(!go||$l($o,go)<0)&&(go=$o),$l(Da,go)<0&&(go=Da),(!ra||$l($o,ra)<0)&&(ra=$o),$l(Da,ra)<0&&(ra=Da)}),{start:go,end:ra}}var gn=y.from(),fn=y.to();if(gn.line==fn.line)Gt(gn.line,gn.ch,fn.ch);else{var Vn=on(z,gn.line),tr=on(z,fn.line),pr=kn(Vn)==kn(tr),Ir=Gt(gn.line,gn.ch,pr?Vn.text.length+1:null).end,Fr=Gt(fn.line,pr?0:null,fn.ch).start;pr&&(Ir.top<Fr.top-2?(At(Ir.right,Ir.top,null,Ir.bottom),At(he,Fr.top,Fr.left,Fr.bottom)):At(Ir.right,Ir.top,Fr.left-Ir.right,Ir.bottom)),Ir.bottom<Fr.top&&At(he,Ir.bottom,null,Fr.top)}E.appendChild(ie)}function xs(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var E=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Sl(a),y.cursorDiv.style.visibility=(E=!E)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function ic(a){a.state.focused||(a.display.input.focus(),Ks(a))}function Ws(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Sl(a))},100)}function Ks(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Yt(a,"focus",a,y),a.state.focused=!0,de(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),De&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),xs(a))}function Sl(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Yt(a,"blur",a,y),a.state.focused=!1,Qe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ri(a){for(var y=a.display,E=y.lineDiv.offsetTop,x=0;x<y.view.length;x++){var z=y.view[x],ie=a.options.lineWrapping,se=void 0,he=0;if(!z.hidden){if(Oe&&ye<8){var xe=z.node.offsetTop+z.node.offsetHeight;se=xe-E,E=xe}else{var Le=z.node.getBoundingClientRect();se=Le.bottom-Le.top,!ie&&z.text.firstChild&&(he=z.text.firstChild.getBoundingClientRect().right-Le.left-1)}var At=z.line.height-se;if((At>.005||At<-.005)&&(Gn(z.line,se),wl(z.line),z.rest))for(var Gt=0;Gt<z.rest.length;Gt++)wl(z.rest[Gt]);if(he>a.display.sizerWidth){var gn=Math.ceil(he/Fa(a.display));gn>a.display.maxLineLength&&(a.display.maxLineLength=gn,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function wl(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var E=a.widgets[y],x=E.node.parentNode;x&&(E.height=x.offsetHeight)}}function ol(a,y,E){var x=E&&E.top!=null?Math.max(0,E.top):a.scroller.scrollTop;x=Math.floor(x-Bo(a));var z=E&&E.bottom!=null?E.bottom:x+a.wrapper.clientHeight,ie=yt(y,x),se=yt(y,z);if(E&&E.ensure){var he=E.ensure.from.line,xe=E.ensure.to.line;he<ie?(ie=he,se=yt(y,Qr(on(y,he))+a.wrapper.clientHeight)):Math.min(xe,y.lastLine())>=se&&(ie=yt(y,Qr(on(y,xe))-a.wrapper.clientHeight),se=xe)}return{from:ie,to:Math.max(se,ie+1)}}function oc(a,y){if(!Ot(a,"scrollCursorIntoView")){var E=a.display,x=E.sizer.getBoundingClientRect(),z=null;if(y.top+x.top<0?z=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!Lt){var ie=it("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-E.viewOffset-Bo(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+pa(a)+E.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(z),a.display.lineSpace.removeChild(ie)}}}function ac(a,y,E,x){x==null&&(x=0);var z;!a.options.lineWrapping&&y==E&&(y=y.ch?ze(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?ze(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var se=!1,he=aa(a,y),xe=!E||E==y?he:aa(a,E);z={left:Math.min(he.left,xe.left),top:Math.min(he.top,xe.top)-x,right:Math.max(he.left,xe.left),bottom:Math.max(he.bottom,xe.bottom)+x};var Le=Cs(a,z),At=a.doc.scrollTop,Gt=a.doc.scrollLeft;if(Le.scrollTop!=null&&(ns(a,Le.scrollTop),Math.abs(a.doc.scrollTop-At)>1&&(se=!0)),Le.scrollLeft!=null&&(Il(a,Le.scrollLeft),Math.abs(a.doc.scrollLeft-Gt)>1&&(se=!0)),!se)break}return z}function Oc(a,y){var E=Cs(a,y);E.scrollTop!=null&&ns(a,E.scrollTop),E.scrollLeft!=null&&Il(a,E.scrollLeft)}function Cs(a,y){var E=a.display,x=Ca(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:E.scroller.scrollTop,ie=Ya(a),se={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var he=a.doc.height+Ta(E),xe=y.top<x,Le=y.bottom>he-x;if(y.top<z)se.scrollTop=xe?0:y.top;else if(y.bottom>z+ie){var At=Math.min(y.top,(Le?he:y.bottom)-ie);At!=z&&(se.scrollTop=At)}var Gt=a.options.fixedGutter?0:E.gutters.offsetWidth,gn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-Gt,fn=za(a)-E.gutters.offsetWidth,Vn=y.right-y.left>fn;return Vn&&(y.right=y.left+fn),y.left<10?se.scrollLeft=0:y.left<gn?se.scrollLeft=Math.max(0,y.left+Gt-(Vn?0:10)):y.right>fn+gn-3&&(se.scrollLeft=y.right+(Vn?0:10)-fn),se}function Vs(a,y){y!=null&&(Ss(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function El(a){Ss(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function ts(a,y,E){(y!=null||E!=null)&&Ss(a),y!=null&&(a.curOp.scrollLeft=y),E!=null&&(a.curOp.scrollTop=E)}function lc(a,y){Ss(a),a.curOp.scrollToPos=y}function Ss(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var E=Ki(a,y.from),x=Ki(a,y.to);Us(a,E,x,y.margin)}}function Us(a,y,E,x){var z=Cs(a,{left:Math.min(y.left,E.left),top:Math.min(y.top,E.top)-x,right:Math.max(y.right,E.right),bottom:Math.max(y.bottom,E.bottom)+x});ts(a,z.scrollLeft,z.scrollTop)}function ns(a,y){Math.abs(a.doc.scrollTop-y)<2||(b||Es(a,{top:y}),Gs(a,y,!0),b&&Es(a),jl(a,100))}function Gs(a,y,E){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!E)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Il(a,y,E,x){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((E?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!x)&&(a.doc.scrollLeft=y,Ue(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function Zl(a){var y=a.display,E=y.gutters.offsetWidth,x=Math.round(a.doc.height+Ta(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?E:0,docHeight:x,scrollHeight:x+pa(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var Pl=function(a,y,E){this.cm=E;var x=this.vert=it("div",[it("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=it("div",[it("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=z.tabIndex=-1,a(x),a(z),Zt(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),Zt(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Oe&&ye<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pl.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,E=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=y?x+"px":"0";var z=a.viewHeight-(y?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=E?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(E?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"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:E?x:0,bottom:y?x:0}},Pl.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pl.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pl.prototype.zeroWidthHack=function(){var a=Ie&&!ke?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new me,this.disableVert=new me},Pl.prototype.enableZeroWidthBar=function(a,y,E){a.style.pointerEvents="auto";function x(){var z=a.getBoundingClientRect(),ie=E=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},Pl.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var zl=function(){};zl.prototype.update=function(){return{bottom:0,right:0}},zl.prototype.setScrollLeft=function(){},zl.prototype.setScrollTop=function(){},zl.prototype.clear=function(){};function Hl(a,y){y||(y=Zl(a));var E=a.display.barWidth,x=a.display.barHeight;Xs(a,y);for(var z=0;z<4&&E!=a.display.barWidth||x!=a.display.barHeight;z++)E!=a.display.barWidth&&a.options.lineWrapping&&ri(a),Xs(a,Zl(a)),E=a.display.barWidth,x=a.display.barHeight}function Xs(a,y){var E=a.display,x=E.scrollbars.update(y);E.sizer.style.paddingRight=(E.barWidth=x.right)+"px",E.sizer.style.paddingBottom=(E.barHeight=x.bottom)+"px",E.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(E.scrollbarFiller.style.display="block",E.scrollbarFiller.style.height=x.bottom+"px",E.scrollbarFiller.style.width=x.right+"px"):E.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(E.gutterFiller.style.display="block",E.gutterFiller.style.height=x.bottom+"px",E.gutterFiller.style.width=y.gutterWidth+"px"):E.gutterFiller.style.display=""}var sc={native:Pl,null:zl};function _s(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Qe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new sc[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Zt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,E){E=="horizontal"?Il(a,y):ns(a,y)},a),a.display.scrollbars.addClass&&de(a.display.wrapper,a.display.scrollbars.addClass)}var Dc=0;function ml(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:++Dc},Wi(a.curOp)}function Ol(a){var y=a.curOp;y&&gi(y,function(E){for(var x=0;x<E.ops.length;x++)E.ops[x].cm.curOp=null;cc(E)})}function cc(a){for(var y=a.ops,E=0;E<y.length;E++)Tc(y[E]);for(var x=0;x<y.length;x++)uc(y[x]);for(var z=0;z<y.length;z++)Mc(y[z]);for(var ie=0;ie<y.length;ie++)dc(y[ie]);for(var se=0;se<y.length;se++)Bc(y[se])}function Tc(a){var y=a.cm,E=y.display;fc(y),a.updateMaxLine&&pi(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<E.viewFrom||a.scrollToPos.to.line>=E.viewTo)||E.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new rs(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function uc(a){a.updatedDisplay=a.mustUpdate&&ws(a.cm,a.update)}function Mc(a){var y=a.cm,E=y.display;a.updatedDisplay&&ri(y),a.barMeasure=Zl(y),E.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Ql(y,E.maxLine,E.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(E.scroller.clientWidth,E.sizer.offsetLeft+a.adjustWidthTo+pa(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,E.sizer.offsetLeft+a.adjustWidthTo-za(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=E.input.prepareSelection())}function dc(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Il(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var E=a.focus&&a.focus==Je();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,E),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Hl(y,a.barMeasure),a.updatedDisplay&&pe(y,a.barMeasure),a.selectionChanged&&xs(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),E&&ic(a.cm)}function Bc(a){var y=a.cm,E=y.display,x=y.doc;if(a.updatedDisplay&&Ua(y,a.update),E.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(E.wheelStartX=E.wheelStartY=null),a.scrollTop!=null&&Gs(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Il(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=ac(y,Ct(x,a.scrollToPos.from),Ct(x,a.scrollToPos.to),a.scrollToPos.margin);oc(y,z)}var ie=a.maybeHiddenMarkers,se=a.maybeUnhiddenMarkers;if(ie)for(var he=0;he<ie.length;++he)ie[he].lines.length||Yt(ie[he],"hide");if(se)for(var xe=0;xe<se.length;++xe)se[xe].lines.length&&Yt(se[xe],"unhide");E.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Yt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function ma(a,y){if(a.curOp)return y();ml(a);try{return y()}finally{Ol(a)}}function Qo(a,y){return function(){if(a.curOp)return y.apply(a,arguments);ml(a);try{return y.apply(a,arguments)}finally{Ol(a)}}}function ca(a){return function(){if(this.curOp)return a.apply(this,arguments);ml(this);try{return a.apply(this,arguments)}finally{Ol(this)}}}function Uo(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);ml(y);try{return a.apply(this,arguments)}finally{Ol(y)}}}function jl(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Pt(Ys,a))}function Ys(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var E=+new Date+a.options.workTime,x=sr(a,y.highlightFrontier),z=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(x.line>=a.display.viewFrom){var se=ie.styles,he=ie.text.length>a.options.maxHighlightLength?Nn(y.mode,x.state):null,xe=Dn(a,ie,x,!0);he&&(x.state=he),ie.styles=xe.styles;var Le=ie.styleClasses,At=xe.classes;At?ie.styleClasses=At:Le&&(ie.styleClasses=null);for(var Gt=!se||se.length!=ie.styles.length||Le!=At&&(!Le||!At||Le.bgClass!=At.bgClass||Le.textClass!=At.textClass),gn=0;!Gt&&gn<se.length;++gn)Gt=se[gn]!=ie.styles[gn];Gt&&z.push(x.line),ie.stateAfter=x.save(),x.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&fr(a,ie.text,x),ie.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>E)return jl(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),z.length&&ma(a,function(){for(var ie=0;ie<z.length;ie++)il(a,z[ie],"text")})}}var rs=function(a,y,E){var x=a.display;this.viewport=y,this.visible=ol(x,a.doc,y),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=za(a),this.force=E,this.dims=rl(a),this.events=[]};rs.prototype.signal=function(a,y){Wt(a,y)&&this.events.push(arguments)},rs.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Yt.apply(null,this.events[a])};function fc(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=pa(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=pa(a)+"px",y.scrollbarsClipped=!0)}function hc(a){if(a.hasFocus())return null;var y=Je();if(!y||!st(a.display.lineDiv,y))return null;var E={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&st(a.display.lineDiv,x.anchorNode)&&(E.anchorNode=x.anchorNode,E.anchorOffset=x.anchorOffset,E.focusNode=x.focusNode,E.focusOffset=x.focusOffset)}return E}function pc(a){if(!(!a||!a.activeElt||a.activeElt==Je())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&st(document.body,a.anchorNode)&&st(document.body,a.focusNode))){var y=window.getSelection(),E=document.createRange();E.setEnd(a.anchorNode,a.anchorOffset),E.collapse(!1),y.removeAllRanges(),y.addRange(E),y.extend(a.focusNode,a.focusOffset)}}function ws(a,y){var E=a.display,x=a.doc;if(y.editorIsHidden)return Va(a),!1;if(!y.force&&y.visible.from>=E.viewFrom&&y.visible.to<=E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo)&&E.renderedView==E.view&&bs(a)==0)return!1;ft(a)&&(Va(a),y.dims=rl(a));var z=x.first+x.size,ie=Math.max(y.visible.from-a.options.viewportMargin,x.first),se=Math.min(z,y.visible.to+a.options.viewportMargin);E.viewFrom<ie&&ie-E.viewFrom<20&&(ie=Math.max(x.first,E.viewFrom)),E.viewTo>se&&E.viewTo-se<20&&(se=Math.min(z,E.viewTo)),mr&&(ie=Hn(a.doc,ie),se=Bn(a.doc,se));var he=ie!=E.viewFrom||se!=E.viewTo||E.lastWrapHeight!=y.wrapperHeight||E.lastWrapWidth!=y.wrapperWidth;Hs(a,ie,se),E.viewOffset=Qr(on(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var xe=bs(a);if(!he&&xe==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var Le=hc(a);return xe>4&&(E.lineDiv.style.display="none"),mc(a,E.updateLineNumbers,y.dims),xe>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,pc(Le),zt(E.cursorDiv),zt(E.selectionDiv),E.gutters.style.height=E.sizer.style.minHeight=0,he&&(E.lastWrapHeight=y.wrapperHeight,E.lastWrapWidth=y.wrapperWidth,jl(a,400)),E.updateLineNumbers=null,!0}function Ua(a,y){for(var E=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==za(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+Ta(a.display)-Ya(a),E.top)}),y.visible=ol(a.display,a.doc,E),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=ol(a.display,a.doc,E));if(!ws(a,y))break;ri(a);var z=Zl(a);pl(a),Hl(a,z),pe(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Es(a,y){var E=new rs(a,y);if(ws(a,E)){ri(a),Ua(a,E);var x=Zl(a);pl(a),Hl(a,x),pe(a,x),E.finish()}}function mc(a,y,E){var x=a.display,z=a.options.lineNumbers,ie=x.lineDiv,se=ie.firstChild;function he(Vn){var tr=Vn.nextSibling;return De&&Ie&&a.display.currentWheelTarget==Vn?Vn.style.display="none":Vn.parentNode.removeChild(Vn),tr}for(var xe=x.view,Le=x.viewFrom,At=0;At<xe.length;At++){var Gt=xe[At];if(!Gt.hidden)if(!Gt.node||Gt.node.parentNode!=ie){var gn=ui(a,Gt,Le,E);ie.insertBefore(gn,se)}else{for(;se!=Gt.node;)se=he(se);var fn=z&&y!=null&&y<=Le&&Gt.lineNumber;Gt.changes&&(ht(Gt.changes,"gutter")>-1&&(fn=!1),ha(a,Gt,Le,E)),fn&&(zt(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(lt(a.options,Le)))),se=Gt.node.nextSibling}Le+=Gt.size}for(;se;)se=he(se)}function ve(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function pe(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+pa(a)+"px"}function Ue(a){var y=a.display,E=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=gs(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ie=x+"px",se=0;se<E.length;se++)if(!E[se].hidden){a.options.fixedGutter&&(E[se].gutter&&(E[se].gutter.style.left=ie),E[se].gutterBackground&&(E[se].gutterBackground.style.left=ie));var he=E[se].alignable;if(he)for(var xe=0;xe<he.length;xe++)he[xe].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=x+z+"px")}}function ft(a){if(!a.options.lineNumbers)return!1;var y=a.doc,E=lt(a.options,y.first+y.size-1),x=a.display;if(E.length!=x.lineNumChars){var z=x.measure.appendChild(it("div",[it("div",E)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,se=z.offsetWidth-ie;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(ie,x.lineGutter.offsetWidth-se)+1,x.lineNumWidth=x.lineNumInnerWidth+se,x.lineNumChars=x.lineNumInnerWidth?E.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",ve(a.display),!0}return!1}function Nt(a,y){for(var E=[],x=!1,z=0;z<a.length;z++){var ie=a[z],se=null;if(typeof ie!="string"&&(se=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)x=!0;else continue;E.push({className:ie,style:se})}return y&&!x&&E.push({className:"CodeMirror-linenumbers",style:null}),E}function jt(a){var y=a.gutters,E=a.gutterSpecs;zt(y),a.lineGutter=null;for(var x=0;x<E.length;++x){var z=E[x],ie=z.className,se=z.style,he=y.appendChild(it("div",null,"CodeMirror-gutter "+ie));se&&(he.style.cssText=se),ie=="CodeMirror-linenumbers"&&(a.lineGutter=he,he.style.width=(a.lineNumWidth||1)+"px")}y.style.display=E.length?"":"none",ve(a)}function an(a){jt(a.display),sa(a),Ue(a)}function qt(a,y,E,x){var z=this;this.input=E,z.scrollbarFiller=it("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=it("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=ut("div",null,"CodeMirror-code"),z.selectionDiv=it("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=it("div",null,"CodeMirror-cursors"),z.measure=it("div",null,"CodeMirror-measure"),z.lineMeasure=it("div",null,"CodeMirror-measure"),z.lineSpace=ut("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=ut("div",[z.lineSpace],"CodeMirror-lines");z.mover=it("div",[ie],null,"position: relative"),z.sizer=it("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=it("div",null,null,"position: absolute; height: "+Ut+"px; width: 1px;"),z.gutters=it("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=it("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=it("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Oe&&ye<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!De&&!(b&&Me)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=Nt(x.gutters,x.lineNumbers),jt(z),E.init(z)}var dn=0,ln=null;Oe?ln=-.53:b?ln=15:Ce?ln=-.7:tt&&(ln=-1/3);function Ln(a){var y=a.wheelDeltaX,E=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),E==null&&a.detail&&a.axis==a.VERTICAL_AXIS?E=a.detail:E==null&&(E=a.wheelDelta),{x:y,y:E}}function In(a){var y=Ln(a);return y.x*=ln,y.y*=ln,y}function Cn(a,y){var E=Ln(y),x=E.x,z=E.y,ie=a.display,se=ie.scroller,he=se.scrollWidth>se.clientWidth,xe=se.scrollHeight>se.clientHeight;if(x&&he||z&&xe){if(z&&Ie&&De){e:for(var Le=y.target,At=ie.view;Le!=se;Le=Le.parentNode)for(var Gt=0;Gt<At.length;Gt++)if(At[Gt].node==Le){a.display.currentWheelTarget=Le;break e}}if(x&&!b&&!ue&&ln!=null){z&&xe&&ns(a,Math.max(0,se.scrollTop+z*ln)),Il(a,Math.max(0,se.scrollLeft+x*ln)),(!z||z&&xe)&&mt(y),ie.wheelStartX=null;return}if(z&&ln!=null){var gn=z*ln,fn=a.doc.scrollTop,Vn=fn+ie.wrapper.clientHeight;gn<0?fn=Math.max(0,fn+gn-50):Vn=Math.min(a.doc.height,Vn+gn+50),Es(a,{top:fn,bottom:Vn})}dn<20&&(ie.wheelStartX==null?(ie.wheelStartX=se.scrollLeft,ie.wheelStartY=se.scrollTop,ie.wheelDX=x,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var tr=se.scrollLeft-ie.wheelStartX,pr=se.scrollTop-ie.wheelStartY,Ir=pr&&ie.wheelDY&&pr/ie.wheelDY||tr&&ie.wheelDX&&tr/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,Ir&&(ln=(ln*dn+Ir)/(dn+1),++dn)}},200)):(ie.wheelDX+=x,ie.wheelDY+=z))}}var mn=function(a,y){this.ranges=a,this.primIndex=y};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var E=this.ranges[y],x=a.ranges[y];if(!Ee(E.anchor,x.anchor)||!Ee(E.head,x.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new hn(It(this.ranges[y].anchor),It(this.ranges[y].head));return new mn(a,this.primIndex)},mn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},mn.prototype.contains=function(a,y){y||(y=a);for(var E=0;E<this.ranges.length;E++){var x=this.ranges[E];if(xt(y,x.from())>=0&&xt(a,x.to())<=0)return E}return-1};var hn=function(a,y){this.anchor=a,this.head=y};hn.prototype.from=function(){return Vt(this.anchor,this.head)},hn.prototype.to=function(){return kt(this.anchor,this.head)},hn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ir(a,y,E){var x=a&&a.options.selectionsMayTouch,z=y[E];y.sort(function(gn,fn){return xt(gn.from(),fn.from())}),E=ht(y,z);for(var ie=1;ie<y.length;ie++){var se=y[ie],he=y[ie-1],xe=xt(he.to(),se.from());if(x&&!se.empty()?xe>0:xe>=0){var Le=Vt(he.from(),se.from()),At=kt(he.to(),se.to()),Gt=he.empty()?se.from()==se.head:he.from()==he.head;ie<=E&&--E,y.splice(--ie,2,new hn(Gt?At:Le,Gt?Le:At))}}return new mn(y,E)}function Wn(a,y){return new mn([new hn(a,y||a)],0)}function or(a){return a.text?ze(a.from.line+a.text.length-1,qe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function dr(a,y){if(xt(a,y.from)<0)return a;if(xt(a,y.to)<=0)return or(y);var E=a.line+y.text.length-(y.to.line-y.from.line)-1,x=a.ch;return a.line==y.to.line&&(x+=or(y).ch-y.to.ch),ze(E,x)}function ar(a,y){for(var E=[],x=0;x<a.sel.ranges.length;x++){var z=a.sel.ranges[x];E.push(new hn(dr(z.anchor,y),dr(z.head,y)))}return ir(a.cm,E,a.sel.primIndex)}function vr(a,y,E){return a.line==y.line?ze(E.line,a.ch-y.ch+E.ch):ze(E.line+(a.line-y.line),a.ch)}function Sr(a,y,E){for(var x=[],z=ze(a.first,0),ie=z,se=0;se<y.length;se++){var he=y[se],xe=vr(he.from,z,ie),Le=vr(or(he),z,ie);if(z=he.to,ie=Le,E=="around"){var At=a.sel.ranges[se],Gt=xt(At.head,At.anchor)<0;x[se]=new hn(Gt?Le:xe,Gt?xe:Le)}else x[se]=new hn(xe,xe)}return new mn(x,a.sel.primIndex)}function Br(a){a.doc.mode=En(a.options,a.doc.modeOption),Dr(a)}function Dr(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,jl(a,100),a.state.modeGen++,a.curOp&&sa(a)}function mi(a,y){return y.from.ch==0&&y.to.ch==0&&qe(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Xr(a,y,E,x){function z(Fr){return E?E[Fr]:null}function ie(Fr,Pr,Wr){Ii(Fr,Pr,Wr,x),Mi(Fr,"change",Fr,y)}function se(Fr,Pr){for(var Wr=[],fi=Fr;fi<Pr;++fi)Wr.push(new Bi(Le[fi],z(fi),x));return Wr}var he=y.from,xe=y.to,Le=y.text,At=on(a,he.line),Gt=on(a,xe.line),gn=qe(Le),fn=z(Le.length-1),Vn=xe.line-he.line;if(y.full)a.insert(0,se(0,Le.length)),a.remove(Le.length,a.size-Le.length);else if(mi(a,y)){var tr=se(0,Le.length-1);ie(Gt,Gt.text,fn),Vn&&a.remove(he.line,Vn),tr.length&&a.insert(he.line,tr)}else if(At==Gt)if(Le.length==1)ie(At,At.text.slice(0,he.ch)+gn+At.text.slice(xe.ch),fn);else{var pr=se(1,Le.length-1);pr.push(new Bi(gn+At.text.slice(xe.ch),fn,x)),ie(At,At.text.slice(0,he.ch)+Le[0],z(0)),a.insert(he.line+1,pr)}else if(Le.length==1)ie(At,At.text.slice(0,he.ch)+Le[0]+Gt.text.slice(xe.ch),z(0)),a.remove(he.line+1,Vn);else{ie(At,At.text.slice(0,he.ch)+Le[0],z(0)),ie(Gt,gn+Gt.text.slice(xe.ch),fn);var Ir=se(1,Le.length-1);Vn>1&&a.remove(he.line+1,Vn-1),a.insert(he.line+1,Ir)}Mi(a,"change",a,y)}function zr(a,y,E){function x(z,ie,se){if(z.linked)for(var he=0;he<z.linked.length;++he){var xe=z.linked[he];if(xe.doc!=ie){var Le=se&&xe.sharedHist;E&&!Le||(y(xe.doc,Le),x(xe.doc,z,Le))}}}x(a,null,!0)}function ii(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Cl(a),Br(a),Nr(a),a.options.lineWrapping||pi(a),a.options.mode=y.modeOption,sa(a)}function Nr(a){(a.doc.direction=="rtl"?de:Qe)(a.display.lineDiv,"CodeMirror-rtl")}function Ar(a){ma(a,function(){Nr(a),sa(a)})}function gr(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 hr(a,y){var E={from:It(y.from),to:or(y),text:xn(a,y.from,y.to)};return yo(a,E,y.from.line,y.to.line+1),zr(a,function(x){return yo(x,E,y.from.line,y.to.line+1)},!0),E}function Mr(a){for(;a.length;){var y=qe(a);if(y.ranges)a.pop();else break}}function Lr(a,y){if(y)return Mr(a.done),qe(a.done);if(a.done.length&&!qe(a.done).ranges)return qe(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),qe(a.done)}function _r(a,y,E,x){var z=a.history;z.undone.length=0;var ie=+new Date,se,he;if((z.lastOp==x||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(se=Lr(z,z.lastOp==x)))he=qe(se.changes),xt(y.from,y.to)==0&&xt(y.from,he.to)==0?he.to=or(y):se.changes.push(hr(a,y));else{var xe=qe(z.done);for((!xe||!xe.ranges)&&Oi(a.sel,z.done),se={changes:[hr(a,y)],generation:z.generation},z.done.push(se);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(E),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=x,z.lastOrigin=z.lastSelOrigin=y.origin,he||Yt(a,"historyAdded")}function xr(a,y,E,x){var z=y.charAt(0);return z=="*"||z=="+"&&E.ranges.length==x.ranges.length&&E.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function wi(a,y,E,x){var z=a.history,ie=x&&x.origin;E==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||xr(a,ie,qe(z.done),y))?z.done[z.done.length-1]=y:Oi(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=E,x&&x.clearRedo!==!1&&Mr(z.undone)}function Oi(a,y){var E=qe(y);E&&E.ranges&&E.equals(a)||y.push(a)}function yo(a,y,E,x){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,E),Math.min(a.first+a.size,x),function(se){se.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=se.markedSpans),++ie})}function fo(a){if(!a)return null;for(var y,E=0;E<a.length;++E)a[E].marker.explicitlyCleared?y||(y=a.slice(0,E)):y&&y.push(a[E]);return y?y.length?y:null:a}function ro(a,y){var E=y["spans_"+a.id];if(!E)return null;for(var x=[],z=0;z<y.text.length;++z)x.push(fo(E[z]));return x}function ho(a,y){var E=ro(a,y),x=ti(a,y);if(!E)return x;if(!x)return E;for(var z=0;z<E.length;++z){var ie=E[z],se=x[z];if(ie&&se)e:for(var he=0;he<se.length;++he){for(var xe=se[he],Le=0;Le<ie.length;++Le)if(ie[Le].marker==xe.marker)continue e;ie.push(xe)}else se&&(E[z]=se)}return E}function So(a,y,E){for(var x=[],z=0;z<a.length;++z){var ie=a[z];if(ie.ranges){x.push(E?mn.prototype.deepCopy.call(ie):ie);continue}var se=ie.changes,he=[];x.push({changes:he});for(var xe=0;xe<se.length;++xe){var Le=se[xe],At=void 0;if(he.push({from:Le.from,to:Le.to,text:Le.text}),y)for(var Gt in Le)(At=Gt.match(/^spans_(\d+)$/))&&ht(y,Number(At[1]))>-1&&(qe(he)[Gt]=Le[Gt],delete Le[Gt])}}return x}function Di(a,y,E,x){if(x){var z=a.anchor;if(E){var ie=xt(y,z)<0;ie!=xt(E,z)<0?(z=y,y=E):ie!=xt(y,E)<0&&(y=E)}return new hn(z,y)}else return new hn(E||y,y)}function Ti(a,y,E,x,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),Tr(a,new mn([Di(a.sel.primary(),y,E,z)],0),x)}function wo(a,y,E){for(var x=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)x[ie]=Di(a.sel.ranges[ie],y[ie],null,z);var se=ir(a.cm,x,a.sel.primIndex);Tr(a,se,E)}function Ao(a,y,E,x){var z=a.sel.ranges.slice(0);z[y]=E,Tr(a,ir(a.cm,z,a.sel.primIndex),x)}function jr(a,y,E,x){Tr(a,Wn(y,E),x)}function di(a,y,E){var x={ranges:y.ranges,update:function(z){this.ranges=[];for(var ie=0;ie<z.length;ie++)this.ranges[ie]=new hn(Ct(a,z[ie].anchor),Ct(a,z[ie].head))},origin:E&&E.origin};return Yt(a,"beforeSelectionChange",a,x),a.cm&&Yt(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=y.ranges?ir(a.cm,x.ranges,x.ranges.length-1):y}function $r(a,y,E){var x=a.history.done,z=qe(x);z&&z.ranges?(x[x.length-1]=y,Li(a,y,E)):Tr(a,y,E)}function Tr(a,y,E){Li(a,y,E),wi(a,a.sel,a.cm?a.cm.curOp.id:NaN,E)}function Li(a,y,E){(Wt(a,"beforeSelectionChange")||a.cm&&Wt(a.cm,"beforeSelectionChange"))&&(y=di(a,y,E));var x=E&&E.bias||(xt(y.primary().head,a.sel.primary().head)<0?-1:1);Ui(a,to(a,y,x,!0)),!(E&&E.scroll===!1)&&a.cm&&El(a.cm)}function Ui(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,nn(a.cm)),Mi(a,"cursorActivity",a))}function co(a){Ui(a,to(a,a.sel,null,!1))}function to(a,y,E,x){for(var z,ie=0;ie<y.ranges.length;ie++){var se=y.ranges[ie],he=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],xe=Ro(a,se.anchor,he&&he.anchor,E,x),Le=Ro(a,se.head,he&&he.head,E,x);(z||xe!=se.anchor||Le!=se.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new hn(xe,Le))}return z?ir(a.cm,z,y.primIndex):y}function Eo(a,y,E,x,z){var ie=on(a,y.line);if(ie.markedSpans)for(var se=0;se<ie.markedSpans.length;++se){var he=ie.markedSpans[se],xe=he.marker,Le="selectLeft"in xe?!xe.selectLeft:xe.inclusiveLeft,At="selectRight"in xe?!xe.selectRight:xe.inclusiveRight;if((he.from==null||(Le?he.from<=y.ch:he.from<y.ch))&&(he.to==null||(At?he.to>=y.ch:he.to>y.ch))){if(z&&(Yt(xe,"beforeCursorEnter"),xe.explicitlyCleared))if(ie.markedSpans){--se;continue}else break;if(!xe.atomic)continue;if(E){var Gt=xe.find(x<0?1:-1),gn=void 0;if((x<0?At:Le)&&(Gt=Kr(a,Gt,-x,Gt&&Gt.line==y.line?ie:null)),Gt&&Gt.line==y.line&&(gn=xt(Gt,E))&&(x<0?gn<0:gn>0))return Eo(a,Gt,y,x,z)}var fn=xe.find(x<0?-1:1);return(x<0?Le:At)&&(fn=Kr(a,fn,x,fn.line==y.line?ie:null)),fn?Eo(a,fn,y,x,z):null}}return y}function Ro(a,y,E,x,z){var ie=x||1,se=Eo(a,y,E,ie,z)||!z&&Eo(a,y,E,ie,!0)||Eo(a,y,E,-ie,z)||!z&&Eo(a,y,E,-ie,!0);return se||(a.cantEdit=!0,ze(a.first,0))}function Kr(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?Ct(a,ze(y.line-1)):null:E>0&&y.ch==(x||on(a,y.line)).text.length?y.line<a.first+a.size-1?ze(y.line+1,0):null:new ze(y.line,y.ch+E)}function ei(a){a.setSelection(ze(a.firstLine(),0),ze(a.lastLine()),be)}function Xi(a,y,E){var x={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return x.canceled=!0}};return E&&(x.update=function(z,ie,se,he){z&&(x.from=Ct(a,z)),ie&&(x.to=Ct(a,ie)),se&&(x.text=se),he!==void 0&&(x.origin=he)}),Yt(a,"beforeChange",a,x),a.cm&&Yt(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 eo(a,y,E){if(a.cm){if(!a.cm.curOp)return Qo(a.cm,eo)(a,y,E);if(a.cm.state.suppressEdits)return}if(!((Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"))&&(y=Xi(a,y,!0),!y))){var x=yr&&!E&&Fi(a,y.from,y.to);if(x)for(var z=x.length-1;z>=0;--z)Qi(a,{from:x[z].from,to:x[z].to,text:z?[""]:y.text,origin:y.origin});else Qi(a,y)}}function Qi(a,y){if(!(y.text.length==1&&y.text[0]==""&&xt(y.from,y.to)==0)){var E=ar(a,y);_r(a,y,E,a.cm?a.cm.curOp.id:NaN),va(a,y,E,ti(a,y));var x=[];zr(a,function(z,ie){!ie&&ht(x,z.history)==-1&&(Fo(z.history,y),x.push(z.history)),va(z,y,null,ti(z,y))})}}function zo(a,y,E){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!E)){for(var z=a.history,ie,se=a.sel,he=y=="undo"?z.done:z.undone,xe=y=="undo"?z.undone:z.done,Le=0;Le<he.length&&(ie=he[Le],!(E?ie.ranges&&!ie.equals(a.sel):!ie.ranges));Le++);if(Le!=he.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=he.pop(),ie.ranges){if(Oi(ie,xe),E&&!ie.equals(a.sel)){Tr(a,ie,{clearRedo:!1});return}se=ie}else if(x){he.push(ie);return}else break;var At=[];Oi(se,xe),xe.push({changes:At,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var Gt=Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"),gn=function(tr){var pr=ie.changes[tr];if(pr.origin=y,Gt&&!Xi(a,pr,!1))return he.length=0,{};At.push(hr(a,pr));var Ir=tr?ar(a,pr):qe(he);va(a,pr,Ir,ho(a,pr)),!tr&&a.cm&&a.cm.scrollIntoView({from:pr.from,to:or(pr)});var Fr=[];zr(a,function(Pr,Wr){!Wr&&ht(Fr,Pr.history)==-1&&(Fo(Pr.history,pr),Fr.push(Pr.history)),va(Pr,pr,null,ho(Pr,pr))})},fn=ie.changes.length-1;fn>=0;--fn){var Vn=gn(fn);if(Vn)return Vn.v}}}}function Io(a,y){if(y!=0&&(a.first+=y,a.sel=new mn(Jt(a.sel.ranges,function(z){return new hn(ze(z.anchor.line+y,z.anchor.ch),ze(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){sa(a.cm,a.first,a.first-y,y);for(var E=a.cm.display,x=E.viewFrom;x<E.viewTo;x++)il(a.cm,x,"gutter")}}function va(a,y,E,x){if(a.cm&&!a.cm.curOp)return Qo(a.cm,va)(a,y,E,x);if(y.to.line<a.first){Io(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var z=y.text.length-1-(a.first-y.from.line);Io(a,z),y={from:ze(a.first,0),to:ze(y.to.line+z,y.to.ch),text:[qe(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:ze(ie,on(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=xn(a,y.from,y.to),E||(E=ar(a,y)),a.cm?po(a.cm,y,x):Xr(a,y,x),Li(a,E,be),a.cantEdit&&Ro(a,ze(a.firstLine(),0))&&(a.cantEdit=!1)}}function po(a,y,E){var x=a.doc,z=a.display,ie=y.from,se=y.to,he=!1,xe=ie.line;a.options.lineWrapping||(xe=ct(kn(on(x,ie.line))),x.iter(xe,se.line+1,function(fn){if(fn==z.maxLine)return he=!0,!0})),x.sel.contains(y.from,y.to)>-1&&nn(a),Xr(x,y,E,ys(a)),a.options.lineWrapping||(x.iter(xe,ie.line+y.text.length,function(fn){var Vn=Ei(fn);Vn>z.maxLineLength&&(z.maxLine=fn,z.maxLineLength=Vn,z.maxLineChanged=!0,he=!1)}),he&&(a.curOp.updateMaxLine=!0)),Yn(x,ie.line),jl(a,400);var Le=y.text.length-(se.line-ie.line)-1;y.full?sa(a):ie.line==se.line&&y.text.length==1&&!mi(a.doc,y)?il(a,ie.line,"text"):sa(a,ie.line,se.line+1,Le);var At=Wt(a,"changes"),Gt=Wt(a,"change");if(Gt||At){var gn={from:ie,to:se,text:y.text,removed:y.removed,origin:y.origin};Gt&&Mi(a,"change",a,gn),At&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(gn)}a.display.selForContextMenu=null}function zi(a,y,E,x,z){var ie;x||(x=E),xt(x,E)<0&&(ie=[x,E],E=ie[0],x=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),eo(a,{from:E,to:x,text:y,origin:z})}function no(a,y,E,x){E<a.line?a.line+=x:y<a.line&&(a.line=y,a.ch=0)}function io(a,y,E,x){for(var z=0;z<a.length;++z){var ie=a[z],se=!0;if(ie.ranges){ie.copied||(ie=a[z]=ie.deepCopy(),ie.copied=!0);for(var he=0;he<ie.ranges.length;he++)no(ie.ranges[he].anchor,y,E,x),no(ie.ranges[he].head,y,E,x);continue}for(var xe=0;xe<ie.changes.length;++xe){var Le=ie.changes[xe];if(E<Le.from.line)Le.from=ze(Le.from.line+x,Le.from.ch),Le.to=ze(Le.to.line+x,Le.to.ch);else if(y<=Le.to.line){se=!1;break}}se||(a.splice(0,z+1),z=0)}}function Fo(a,y){var E=y.from.line,x=y.to.line,z=y.text.length-(x-E)-1;io(a.done,E,x,z),io(a.undone,E,x,z)}function bo(a,y,E,x){var z=y,ie=y;return typeof y=="number"?ie=on(a,bt(a,y)):z=ct(y),z==null?null:(x(ie,z)&&a.cm&&il(a.cm,z,E),ie)}function Hi(a){this.lines=a,this.parent=null;for(var y=0,E=0;E<a.length;++E)a[E].parent=this,y+=a[E].height;this.height=y}Hi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var E=a,x=a+y;E<x;++E){var z=this.lines[E];this.height-=z.height,Pi(z),Mi(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,E){this.height+=E,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var x=0;x<y.length;++x)y[x].parent=this},iterN:function(a,y,E){for(var x=a+y;a<x;++a)if(E(this.lines[a]))return!0}};function mo(a){this.children=a;for(var y=0,E=0,x=0;x<a.length;++x){var z=a[x];y+=z.chunkSize(),E+=z.height,z.parent=this}this.size=y,this.height=E,this.parent=null}mo.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var E=0;E<this.children.length;++E){var x=this.children[E],z=x.chunkSize();if(a<z){var ie=Math.min(y,z-a),se=x.height;if(x.removeInner(a,ie),this.height-=se-x.height,z==ie&&(this.children.splice(E--,1),x.parent=null),(y-=ie)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof Hi))){var he=[];this.collapse(he),this.children=[new Hi(he)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,E){this.size+=y.length,this.height+=E;for(var x=0;x<this.children.length;++x){var z=this.children[x],ie=z.chunkSize();if(a<=ie){if(z.insertInner(a,y,E),z.lines&&z.lines.length>50){for(var se=z.lines.length%25+25,he=se;he<z.lines.length;){var xe=new Hi(z.lines.slice(he,he+=25));z.height-=xe.height,this.children.splice(++x,0,xe),xe.parent=this}z.lines=z.lines.slice(0,se),this.maybeSpill()}break}a-=ie}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),E=new mo(y);if(a.parent){a.size-=E.size,a.height-=E.height;var z=ht(a.parent.children,a);a.parent.children.splice(z+1,0,E)}else{var x=new mo(a.children);x.parent=a,a.children=[x,E],a=x}E.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,E){for(var x=0;x<this.children.length;++x){var z=this.children[x],ie=z.chunkSize();if(a<ie){var se=Math.min(y,ie-a);if(z.iterN(a,se,E))return!0;if((y-=se)==0)break;a=0}else a-=ie}}};var _i=function(a,y,E){if(E)for(var x in E)E.hasOwnProperty(x)&&(this[x]=E[x]);this.doc=a,this.node=y};_i.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,E=this.line,x=ct(E);if(!(x==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(E.widgets=null);var ie=oa(this);Gn(E,Math.max(0,E.height-ie)),a&&(ma(a,function(){Jo(a,E,-ie),il(a,x,"widget")}),Mi(a,"lineWidgetCleared",a,this,x))}},_i.prototype.changed=function(){var a=this,y=this.height,E=this.doc.cm,x=this.line;this.height=null;var z=oa(this)-y;z&&(Xn(this.doc,x)||Gn(x,x.height+z),E&&ma(E,function(){E.curOp.forceUpdate=!0,Jo(E,x,z),Mi(E,"lineWidgetChanged",E,a,ct(x))}))},He(_i);function Jo(a,y,E){Qr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Vs(a,E)}function ko(a,y,E,x){var z=new _i(a,E,x),ie=a.cm;return ie&&z.noHScroll&&(ie.display.alignWidgets=!0),bo(a,y,"widget",function(se){var he=se.widgets||(se.widgets=[]);if(z.insertAt==null?he.push(z):he.splice(Math.min(he.length-1,Math.max(0,z.insertAt)),0,z),z.line=se,ie&&!Xn(a,se)){var xe=Qr(se)<a.scrollTop;Gn(se,se.height+oa(z)),xe&&Vs(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Mi(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:ct(y)),z}var ua=0,ga=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++ua};ga.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&ml(a),Wt(this,"clear")){var E=this.find();E&&Mi(this,"clear",E.from,E.to)}for(var x=null,z=null,ie=0;ie<this.lines.length;++ie){var se=this.lines[ie],he=Gr(se.markedSpans,this);a&&!this.collapsed?il(a,ct(se),"text"):a&&(he.to!=null&&(z=ct(se)),he.from!=null&&(x=ct(se))),se.markedSpans=oi(se.markedSpans,he),he.from==null&&this.collapsed&&!Xn(this.doc,se)&&a&&Gn(se,Ca(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var xe=0;xe<this.lines.length;++xe){var Le=kn(this.lines[xe]),At=Ei(Le);At>a.display.maxLineLength&&(a.display.maxLine=Le,a.display.maxLineLength=At,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&sa(a,x,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&co(a.doc)),a&&Mi(a,"markerCleared",a,this,x,z),y&&Ol(a),this.parent&&this.parent.clear()}},ga.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var E,x,z=0;z<this.lines.length;++z){var ie=this.lines[z],se=Gr(ie.markedSpans,this);if(se.from!=null&&(E=ze(y?ie:ct(ie),se.from),a==-1))return E;if(se.to!=null&&(x=ze(y?ie:ct(ie),se.to),a==1))return x}return E&&{from:E,to:x}},ga.prototype.changed=function(){var a=this,y=this.find(-1,!0),E=this,x=this.doc.cm;!y||!x||ma(x,function(){var z=y.line,ie=ct(y.line),se=Ha(x,ie);if(se&&(kl(se),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!Xn(E.doc,z)&&E.height!=null){var he=E.height;E.height=null;var xe=oa(E)-he;xe&&Gn(z,z.height+xe)}Mi(x,"markerChanged",x,a)})},ga.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||ht(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ga.prototype.detachLine=function(a){if(this.lines.splice(ht(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},He(ga);function Ga(a,y,E,x,z){if(x&&x.shared)return Wl(a,y,E,x,z);if(a.cm&&!a.cm.curOp)return Qo(a.cm,Ga)(a,y,E,x,z);var ie=new ga(a,z),se=xt(y,E);if(x&&Xt(x,ie,!1),se>0||se==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=ut("span",[ie.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Kn(a,y.line,y,E,ie)||y.line!=E.line&&Kn(a,E.line,y,E,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yr()}ie.addToHistory&&_r(a,{from:y,to:E,origin:"markText"},a.sel,NaN);var he=y.line,xe=a.cm,Le;if(a.iter(he,E.line+1,function(Gt){xe&&ie.collapsed&&!xe.options.lineWrapping&&kn(Gt)==xe.display.maxLine&&(Le=!0),ie.collapsed&&he!=y.line&&Gn(Gt,0),Zr(Gt,new Ur(ie,he==y.line?y.ch:null,he==E.line?E.ch:null)),++he}),ie.collapsed&&a.iter(y.line,E.line+1,function(Gt){Xn(a,Gt)&&Gn(Gt,0)}),ie.clearOnEnter&&Zt(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(Vr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++ua,ie.atomic=!0),xe){if(Le&&(xe.curOp.updateMaxLine=!0),ie.collapsed)sa(xe,y.line,E.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var At=y.line;At<=E.line;At++)il(xe,At,"text");ie.atomic&&co(xe.doc),Mi(xe,"markerAdded",xe,ie)}return ie}var oo=function(a,y){this.markers=a,this.primary=y;for(var E=0;E<a.length;++E)a[E].parent=this};oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Mi(this,"clear")}},oo.prototype.find=function(a,y){return this.primary.find(a,y)},He(oo);function Wl(a,y,E,x,z){x=Xt(x),x.shared=!1;var ie=[Ga(a,y,E,x,z)],se=ie[0],he=x.widgetNode;return zr(a,function(xe){he&&(x.widgetNode=he.cloneNode(!0)),ie.push(Ga(xe,Ct(xe,y),Ct(xe,E),x,z));for(var Le=0;Le<xe.linked.length;++Le)if(xe.linked[Le].isParent)return;se=qe(ie)}),new oo(ie,se)}function da(a){return a.findMarks(ze(a.first,0),a.clipPos(ze(a.lastLine())),function(y){return y.parent})}function Aa(a,y){for(var E=0;E<y.length;E++){var x=y[E],z=x.find(),ie=a.clipPos(z.from),se=a.clipPos(z.to);if(xt(ie,se)){var he=Ga(a,ie,se,x.primary,x.primary.type);x.markers.push(he),he.parent=x}}}function wa(a){for(var y=function(x){var z=a[x],ie=[z.primary.doc];zr(z.primary.doc,function(xe){return ie.push(xe)});for(var se=0;se<z.markers.length;se++){var he=z.markers[se];ht(ie,he.doc)==-1&&(he.parent=null,z.markers.splice(se--,1))}},E=0;E<a.length;E++)y(E)}var ya=0,ao=function(a,y,E,x,z){if(!(this instanceof ao))return new ao(a,y,E,x,z);E==null&&(E=0),mo.call(this,[new Hi([new Bi("",null)])]),this.first=E,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=E;var ie=ze(E,0);this.sel=Wn(ie),this.history=new gr(null),this.id=++ya,this.modeOption=y,this.lineSep=x,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Xr(this,{from:ie,to:ie,text:a}),Tr(this,Wn(ie),be)};ao.prototype=ne(mo.prototype,{constructor:ao,iter:function(a,y,E){E?this.iterN(a-this.first,y-a,E):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var E=0,x=0;x<y.length;++x)E+=y[x].height;this.insertInner(a-this.first,y,E)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=Un(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:Uo(function(a){var y=ze(this.first,0),E=this.first+this.size-1;eo(this,{from:y,to:ze(E,on(this,E).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&ts(this.cm,0,0),Tr(this,Wn(y),be)}),replaceRange:function(a,y,E,x){y=Ct(this,y),E=E?Ct(this,E):y,zi(this,a,y,E,x)},getRange:function(a,y,E){var x=xn(this,Ct(this,a),Ct(this,y));return E===!1?x:x.join(E||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Fe(this,a))return on(this,a)},getLineNumber:function(a){return ct(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=on(this,a)),kn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Ct(this,a)},getCursor:function(a){var y=this.sel.primary(),E;return a==null||a=="head"?E=y.head:a=="anchor"?E=y.anchor:a=="end"||a=="to"||a===!1?E=y.to():E=y.from(),E},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Uo(function(a,y,E){jr(this,Ct(this,typeof a=="number"?ze(a,y||0):a),null,E)}),setSelection:Uo(function(a,y,E){jr(this,Ct(this,a),Ct(this,y||a),E)}),extendSelection:Uo(function(a,y,E){Ti(this,Ct(this,a),y&&Ct(this,y),E)}),extendSelections:Uo(function(a,y){wo(this,$t(this,a),y)}),extendSelectionsBy:Uo(function(a,y){var E=Jt(this.sel.ranges,a);wo(this,$t(this,E),y)}),setSelections:Uo(function(a,y,E){if(a.length){for(var x=[],z=0;z<a.length;z++)x[z]=new hn(Ct(this,a[z].anchor),Ct(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Tr(this,ir(this.cm,x,y),E)}}),addSelection:Uo(function(a,y,E){var x=this.sel.ranges.slice(0);x.push(new hn(Ct(this,a),Ct(this,y||a))),Tr(this,ir(this.cm,x,x.length-1),E)}),getSelection:function(a){for(var y=this.sel.ranges,E,x=0;x<y.length;x++){var z=xn(this,y[x].from(),y[x].to());E=E?E.concat(z):z}return a===!1?E:E.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],E=this.sel.ranges,x=0;x<E.length;x++){var z=xn(this,E[x].from(),E[x].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[x]=z}return y},replaceSelection:function(a,y,E){for(var x=[],z=0;z<this.sel.ranges.length;z++)x[z]=a;this.replaceSelections(x,y,E||"+input")},replaceSelections:Uo(function(a,y,E){for(var x=[],z=this.sel,ie=0;ie<z.ranges.length;ie++){var se=z.ranges[ie];x[ie]={from:se.from(),to:se.to(),text:this.splitLines(a[ie]),origin:E}}for(var he=y&&y!="end"&&Sr(this,x,y),xe=x.length-1;xe>=0;xe--)eo(this,x[xe]);he?$r(this,he):this.cm&&El(this.cm)}),undo:Uo(function(){zo(this,"undo")}),redo:Uo(function(){zo(this,"redo")}),undoSelection:Uo(function(){zo(this,"undo",!0)}),redoSelection:Uo(function(){zo(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,E=0,x=0;x<a.done.length;x++)a.done[x].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++E;return{undo:y,redo:E}},clearHistory:function(){var a=this;this.history=new gr(this.history.maxGeneration),zr(this,function(y){return y.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:So(this.history.done),undone:So(this.history.undone)}},setHistory:function(a){var y=this.history=new gr(this.history.maxGeneration);y.done=So(a.done.slice(0),null,!0),y.undone=So(a.undone.slice(0),null,!0)},setGutterMarker:Uo(function(a,y,E){return bo(this,a,"gutter",function(x){var z=x.gutterMarkers||(x.gutterMarkers={});return z[y]=E,!E&&re(z)&&(x.gutterMarkers=null),!0})}),clearGutter:Uo(function(a){var y=this;this.iter(function(E){E.gutterMarkers&&E.gutterMarkers[a]&&bo(y,E,"gutter",function(){return E.gutterMarkers[a]=null,re(E.gutterMarkers)&&(E.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Fe(this,a)||(y=a,a=on(this,a),!a))return null}else if(y=ct(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Uo(function(a,y,E){return bo(this,a,y=="gutter"?"gutter":"class",function(x){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!x[z])x[z]=E;else{if(nt(E).test(x[z]))return!1;x[z]+=" "+E}return!0})}),removeLineClass:Uo(function(a,y,E){return bo(this,a,y=="gutter"?"gutter":"class",function(x){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ie=x[z];if(ie)if(E==null)x[z]=null;else{var se=ie.match(nt(E));if(!se)return!1;var he=se.index+se[0].length;x[z]=ie.slice(0,se.index)+(!se.index||he==ie.length?"":" ")+ie.slice(he)||null}else return!1;return!0})}),addLineWidget:Uo(function(a,y,E){return ko(this,a,y,E)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,E){return Ga(this,Ct(this,a),Ct(this,y),E,E&&E.type||"range")},setBookmark:function(a,y){var E={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Ct(this,a),Ga(this,a,a,E,"bookmark")},findMarksAt:function(a){a=Ct(this,a);var y=[],E=on(this,a.line).markedSpans;if(E)for(var x=0;x<E.length;++x){var z=E[x];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,E){a=Ct(this,a),y=Ct(this,y);var x=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var se=ie.markedSpans;if(se)for(var he=0;he<se.length;he++){var xe=se[he];!(xe.to!=null&&z==a.line&&a.ch>=xe.to||xe.from==null&&z!=a.line||xe.from!=null&&z==y.line&&xe.from>=y.ch)&&(!E||E(xe.marker))&&x.push(xe.marker.parent||xe.marker)}++z}),x},getAllMarks:function(){var a=[];return this.iter(function(y){var E=y.markedSpans;if(E)for(var x=0;x<E.length;++x)E[x].from!=null&&a.push(E[x].marker)}),a},posFromIndex:function(a){var y,E=this.first,x=this.lineSeparator().length;return this.iter(function(z){var ie=z.text.length+x;if(ie>a)return y=a,!0;a-=ie,++E}),Ct(this,ze(E,y))},indexFromPos:function(a){a=Ct(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var E=this.lineSeparator().length;return this.iter(this.first,a.line,function(x){y+=x.text.length+E}),y},copy:function(a){var y=new ao(Un(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,E=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<E&&(E=a.to);var x=new ao(Un(this,y,E),a.mode||this.modeOption,y,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}],Aa(x,da(this)),x},unlinkDoc:function(a){if(a instanceof Oo&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var E=this.linked[y];if(E.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),wa(da(this));break}}if(a.history==this.history){var x=[a.id];zr(a,function(z){return x.push(z.id)},!0),a.history=new gr(null),a.history.done=So(this.history.done,x),a.history.undone=So(this.history.undone,x)}},iterLinkedDocs:function(a){zr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):pn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Uo(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&Ar(this.cm))})}),ao.prototype.eachLine=ao.prototype.iter;var Ea=0;function al(a){var y=this;if(is(y),!(Ot(y,a)||Yo(y.display,a))){mt(a),Oe&&(Ea=+new Date);var E=Qa(y,a,!0),x=a.dataTransfer.files;if(!(!E||y.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var z=x.length,ie=Array(z),se=0,he=function(){++se==z&&Qo(y,function(){E=Ct(y.doc,E);var fn={from:E,to:E,text:y.doc.splitLines(ie.filter(function(Vn){return Vn!=null}).join(y.doc.lineSeparator())),origin:"paste"};eo(y.doc,fn),$r(y.doc,Wn(Ct(y.doc,E),Ct(y.doc,or(fn))))})()},xe=function(fn,Vn){if(y.options.allowDropFileTypes&&ht(y.options.allowDropFileTypes,fn.type)==-1){he();return}var tr=new FileReader;tr.onerror=function(){return he()},tr.onload=function(){var pr=tr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(pr)){he();return}ie[Vn]=pr,he()},tr.readAsText(fn)},Le=0;Le<x.length;Le++)xe(x[Le],Le);else{if(y.state.draggingText&&y.doc.sel.contains(E)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var At=a.dataTransfer.getData("Text");if(At){var Gt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Gt=y.listSelections()),Li(y.doc,Wn(E,E)),Gt)for(var gn=0;gn<Gt.length;++gn)zi(y.doc,"",Gt[gn].anchor,Gt[gn].head,"drag");y.replaceSelection(At,"around","paste"),y.display.input.focus()}}catch(fn){}}}}function Xa(a,y){if(Oe&&(!a.state.draggingText||+new Date-Ea<100)){Ne(y);return}if(!(Ot(a,y)||Yo(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!tt)){var E=it("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ue&&(E.width=E.height=1,a.display.wrapper.appendChild(E),E._top=E.offsetTop),y.dataTransfer.setDragImage(E,0,0),ue&&E.parentNode.removeChild(E)}}function _a(a,y){var E=Qa(a,y);if(E){var x=document.createDocumentFragment();js(a,E,x),a.display.dragCursor||(a.display.dragCursor=it("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),St(a.display.dragCursor,x)}}function is(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function os(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),E=[],x=0;x<y.length;x++){var z=y[x].CodeMirror;z&&E.push(z)}E.length&&E[0].operation(function(){for(var ie=0;ie<E.length;ie++)a(E[ie])})}}var as=!1;function ls(){as||(Is(),as=!0)}function Is(){var a;Zt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,os(yi)},100))}),Zt(window,"blur",function(){return os(Sl)})}function yi(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var ki={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"},vo=0;vo<10;vo++)ki[vo+48]=ki[vo+96]=String(vo);for(var Po=65;Po<=90;Po++)ki[Po]=String.fromCharCode(Po);for(var Go=1;Go<=12;Go++)ki[Go+111]=ki[Go+63235]="F"+Go;var Ho={};Ho.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"},Ho.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"},Ho.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"},Ho.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"]},Ho.default=Ie?Ho.macDefault:Ho.pcDefault;function $a(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var E,x,z,ie,se=0;se<y.length-1;se++){var he=y[se];if(/^(cmd|meta|m)$/i.test(he))ie=!0;else if(/^a(lt)?$/i.test(he))E=!0;else if(/^(c|ctrl|control)$/i.test(he))x=!0;else if(/^s(hift)?$/i.test(he))z=!0;else throw new Error("Unrecognized modifier name: "+he)}return E&&(a="Alt-"+a),x&&(a="Ctrl-"+a),ie&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function ea(a){var y={};for(var E in a)if(a.hasOwnProperty(E)){var x=a[E];if(/^(name|fallthrough|(de|at)tach)$/.test(E))continue;if(x=="..."){delete a[E];continue}for(var z=Jt(E.split(" "),$a),ie=0;ie<z.length;ie++){var se=void 0,he=void 0;ie==z.length-1?(he=z.join(" "),se=x):(he=z.slice(0,ie+1).join(" "),se="...");var xe=y[he];if(!xe)y[he]=se;else if(xe!=se)throw new Error("Inconsistent bindings for "+he)}delete a[E]}for(var Le in y)a[Le]=y[Le];return a}function Dl(a,y,E,x){y=ss(y);var z=y.call?y.call(a,x):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&E(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Dl(a,y.fallthrough,E,x);for(var ie=0;ie<y.fallthrough.length;ie++){var se=Dl(a,y.fallthrough[ie],E,x);if(se)return se}}}function Ps(a){var y=typeof a=="string"?a:ki[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function Kl(a,y,E){var x=a;return y.altKey&&x!="Alt"&&(a="Alt-"+a),(Ve?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(Ve?y.ctrlKey:y.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!E&&y.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function vl(a,y){if(ue&&a.keyCode==34&&a.char)return!1;var E=ki[a.keyCode];return E==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(E=a.code),Kl(E,a,y))}function ss(a){return typeof a=="string"?Ho[a]:a}function gl(a,y){for(var E=a.doc.sel.ranges,x=[],z=0;z<E.length;z++){for(var ie=y(E[z]);x.length&&xt(ie.from,qe(x).to)<=0;){var se=x.pop();if(xt(se.from,ie.from)<0){ie.from=se.from;break}}x.push(ie)}ma(a,function(){for(var he=x.length-1;he>=0;he--)zi(a.doc,"",x[he].from,x[he].to,"+delete");El(a)})}function Os(a,y,E){var x=vt(a.text,y+E,E);return x<0||x>a.text.length?null:x}function cs(a,y,E){var x=Os(a,y.ch,E);return x==null?null:new ze(y.line,x,E<0?"after":"before")}function Ds(a,y,E,x,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=we(E,y.doc.direction);if(ie){var se=z<0?qe(ie):ie[0],he=z<0==(se.level==1),xe=he?"after":"before",Le;if(se.level>0||y.doc.direction=="rtl"){var At=tl(y,E);Le=z<0?E.text.length-1:0;var Gt=Ba(y,At,Le).top;Le=Re(function(gn){return Ba(y,At,gn).top==Gt},z<0==(se.level==1)?se.from:se.to-1,Le),xe=="before"&&(Le=Os(E,Le,1))}else Le=z<0?se.to:se.from;return new ze(x,Le,xe)}}return new ze(x,z<0?E.text.length:0,z<0?"before":"after")}function Qs(a,y,E,x){var z=we(y,a.doc.direction);if(!z)return cs(y,E,x);E.ch>=y.text.length?(E.ch=y.text.length,E.sticky="before"):E.ch<=0&&(E.ch=0,E.sticky="after");var ie=_e(z,E.ch,E.sticky),se=z[ie];if(a.doc.direction=="ltr"&&se.level%2==0&&(x>0?se.to>E.ch:se.from<E.ch))return cs(y,E,x);var he=function(Ir,Fr){return Os(y,Ir instanceof ze?Ir.ch:Ir,Fr)},xe,Le=function(Ir){return a.options.lineWrapping?(xe=xe||tl(a,y),No(a,y,xe,Ir)):{begin:0,end:y.text.length}},At=Le(E.sticky=="before"?he(E,-1):E.ch);if(a.doc.direction=="rtl"||se.level==1){var Gt=se.level==1==x<0,gn=he(E,Gt?1:-1);if(gn!=null&&(Gt?gn<=se.to&&gn<=At.end:gn>=se.from&&gn>=At.begin)){var fn=Gt?"before":"after";return new ze(E.line,gn,fn)}}var Vn=function(Ir,Fr,Pr){for(var Wr=function(go,ra){return ra?new ze(E.line,he(go,1),"before"):new ze(E.line,go,"after")};Ir>=0&&Ir<z.length;Ir+=Fr){var fi=z[Ir],li=Fr>0==(fi.level!=1),Ri=li?Pr.begin:he(Pr.end,-1);if(fi.from<=Ri&&Ri<fi.to||(Ri=li?fi.from:he(fi.to,-1),Pr.begin<=Ri&&Ri<Pr.end))return Wr(Ri,li)}},tr=Vn(ie+x,x,At);if(tr)return tr;var pr=x>0?At.end:he(At.begin,-1);return pr!=null&&!(x>0&&pr==y.text.length)&&(tr=Vn(x>0?0:z.length-1,x,Le(pr)),tr)?tr:null}var ll={selectAll:ei,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),be)},killLine:function(a){return gl(a,function(y){if(y.empty()){var E=on(a.doc,y.head.line).text.length;return y.head.ch==E&&y.head.line<a.lastLine()?{from:y.head,to:ze(y.head.line+1,0)}:{from:y.head,to:ze(y.head.line,E)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return gl(a,function(y){return{from:ze(y.from().line,0),to:Ct(a.doc,ze(y.to().line+1,0))}})},delLineLeft:function(a){return gl(a,function(y){return{from:ze(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return gl(a,function(y){var E=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:E},"div");return{from:x,to:y.from()}})},delWrappedLineRight:function(a){return gl(a,function(y){var E=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:E},"div");return{from:y.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(ze(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ze(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return Ts(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return Ms(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return vc(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:E},"div")},et)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:E},"div")},et)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:E},"div");return x.ch<a.getLine(x.line).search(/\S/)?Ms(a,y.head):x},et)},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 y=[],E=a.listSelections(),x=a.options.tabSize,z=0;z<E.length;z++){var ie=E[z].from(),se=Be(a.getLine(ie.line),ie.ch,x);y.push(Ft(x-se%x))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ma(a,function(){for(var y=a.listSelections(),E=[],x=0;x<y.length;x++)if(y[x].empty()){var z=y[x].head,ie=on(a.doc,z.line).text;if(ie){if(z.ch==ie.length&&(z=new ze(z.line,z.ch-1)),z.ch>0)z=new ze(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),ze(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var se=on(a.doc,z.line-1).text;se&&(z=new ze(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+se.charAt(se.length-1),ze(z.line-1,se.length-1),z,"+transpose"))}}E.push(new hn(z,z))}a.setSelections(E)})},newlineAndIndent:function(a){return ma(a,function(){for(var y=a.listSelections(),E=y.length-1;E>=0;E--)a.replaceRange(a.doc.lineSeparator(),y[E].anchor,y[E].head,"+input");y=a.listSelections();for(var x=0;x<y.length;x++)a.indentLine(y[x].from().line,null,!0);El(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Ts(a,y){var E=on(a.doc,y),x=kn(E);return x!=E&&(y=ct(x)),Ds(!0,a,x,y,1)}function vc(a,y){var E=on(a.doc,y),x=lr(E);return x!=E&&(y=ct(x)),Ds(!0,a,E,y,-1)}function Ms(a,y){var E=Ts(a,y.line),x=on(a.doc,E.line),z=we(x,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(E.ch,x.text.search(/\S/)),se=y.line==E.line&&y.ch<=ie&&y.ch;return ze(E.line,se?0:ie,E.sticky)}return E}function Vl(a,y,E){if(typeof y=="string"&&(y=ll[y],!y))return!1;a.display.input.ensurePolled();var x=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),E&&(a.display.shift=!1),z=y(a)!=Bt}finally{a.display.shift=x,a.state.suppressEdits=!1}return z}function gc(a,y,E){for(var x=0;x<a.state.keyMaps.length;x++){var z=Dl(y,a.state.keyMaps[x],E,a);if(z)return z}return a.options.extraKeys&&Dl(y,a.options.extraKeys,E,a)||Dl(y,a.options.keyMap,E,a)}var yc=new me;function Ul(a,y,E,x){var z=a.state.keySeq;if(z){if(Ps(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:yc.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),Bs(a,z+" "+y,E,x))return!0}return Bs(a,y,E,x)}function Bs(a,y,E,x){var z=gc(a,y,x);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Mi(a,"keyHandled",a,y,E),(z=="handled"||z=="multi")&&(mt(E),xs(a)),!!z}function Gl(a,y){var E=vl(y,!0);return E?y.shiftKey&&!a.state.keySeq?Ul(a,"Shift-"+E,y,function(x){return Vl(a,x,!0)})||Ul(a,E,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return Vl(a,x)}):Ul(a,E,y,function(x){return Vl(a,x)}):!1}function Ns(a,y,E){return Ul(a,"'"+E+"'",y,function(x){return Vl(a,x,!0)})}var Xl=null;function As(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Je(),!Ot(y,a))){Oe&&ye<11&&a.keyCode==27&&(a.returnValue=!1);var E=a.keyCode;y.display.shift=E==16||a.shiftKey;var x=Gl(y,a);ue&&(Xl=x?E:null,!x&&E==88&&!un&&(Ie?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),b&&!Ie&&!x&&E==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Js(y)}}function Js(a){var y=a.display.lineDiv;de(y,"CodeMirror-crosshair");function E(x){(x.keyCode==18||!x.altKey)&&(Qe(y,"CodeMirror-crosshair"),rn(document,"keyup",E),rn(document,"mouseover",E))}Zt(document,"keyup",E),Zt(document,"mouseover",E)}function ks(a){a.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,a)}function Ls(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(Yo(y.display,a)||Ot(y,a)||a.ctrlKey&&!a.altKey||Ie&&a.metaKey)){var E=a.keyCode,x=a.charCode;if(ue&&E==Xl){Xl=null,mt(a);return}if(!(ue&&(!a.which||a.which<10)&&Gl(y,a))){var z=String.fromCharCode(x==null?E:x);z!="\b"&&(Ns(y,a,z)||y.display.input.onKeyPress(a))}}}var bc=400,us=function(a,y,E){this.time=a,this.pos=y,this.button=E};us.prototype.compare=function(a,y,E){return this.time+bc>a&&xt(y,this.pos)==0&&E==this.button};var yl,Tl;function Rs(a,y){var E=+new Date;return Tl&&Tl.compare(E,a,y)?(yl=Tl=null,"triple"):yl&&yl.compare(E,a,y)?(Tl=new us(E,a,y),yl=null,"double"):(yl=new us(E,a,y),Tl=null,"single")}function Fs(a){var y=this,E=y.display;if(!(Ot(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,Yo(E,a)){De||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Ja(y,a)){var x=Qa(y,a),z=wt(a),ie=x?Rs(x,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&xc(y,z,x,ie,a))&&(z==1?x?Gi(y,x,ie,a):dt(a)==E.scroller&&mt(a):z==2?(x&&Ti(y.doc,x),setTimeout(function(){return E.input.focus()},20)):z==3&&(Te?y.display.input.onContextMenu(a):Ws(y)))}}}function xc(a,y,E,x,z){var ie="Click";return x=="double"?ie="Double"+ie:x=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,Ul(a,Kl(ie,z),z,function(se){if(typeof se=="string"&&(se=ll[se]),!se)return!1;var he=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),he=se(a,E)!=Bt}finally{a.state.suppressEdits=!1}return he})}function ji(a,y,E){var x=a.getOption("configureMouse"),z=x?x(a,y,E):{};if(z.unit==null){var ie=Xe?E.shiftKey&&E.metaKey:E.altKey;z.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||E.shiftKey),z.addNew==null&&(z.addNew=Ie?E.metaKey:E.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Ie?E.altKey:E.ctrlKey)),z}function Gi(a,y,E,x){Oe?setTimeout(Pt(ic,a),0):a.curOp.focus=Je();var z=ji(a,E,x),ie=a.doc.sel,se;a.options.dragDrop&&Kt&&!a.isReadOnly()&&E=="single"&&(se=ie.contains(y))>-1&&(xt((se=ie.ranges[se]).from(),y)<0||y.xRel>0)&&(xt(se.to(),y)>0||y.xRel<0)?ta(a,x,y,z):na(a,x,y,z)}function ta(a,y,E,x){var z=a.display,ie=!1,se=Qo(a,function(Le){De&&(z.scroller.draggable=!1),a.state.draggingText=!1,rn(z.wrapper.ownerDocument,"mouseup",se),rn(z.wrapper.ownerDocument,"mousemove",he),rn(z.scroller,"dragstart",xe),rn(z.scroller,"drop",se),ie||(mt(Le),x.addNew||Ti(a.doc,E,null,null,x.extend),De&&!tt||Oe&&ye==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),he=function(Le){ie=ie||Math.abs(y.clientX-Le.clientX)+Math.abs(y.clientY-Le.clientY)>=10},xe=function(){return ie=!0};De&&(z.scroller.draggable=!0),a.state.draggingText=se,se.copy=!x.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Zt(z.wrapper.ownerDocument,"mouseup",se),Zt(z.wrapper.ownerDocument,"mousemove",he),Zt(z.scroller,"dragstart",xe),Zt(z.scroller,"drop",se),Ws(a),setTimeout(function(){return z.input.focus()},20)}function Ia(a,y,E){if(E=="char")return new hn(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new hn(ze(y.line,0),Ct(a.doc,ze(y.line+1,0)));var x=E(a,y);return new hn(x.from,x.to)}function na(a,y,E,x){var z=a.display,ie=a.doc;mt(y);var se,he,xe=ie.sel,Le=xe.ranges;if(x.addNew&&!x.extend?(he=ie.sel.contains(E),he>-1?se=Le[he]:se=new hn(E,E)):(se=ie.sel.primary(),he=ie.sel.primIndex),x.unit=="rectangle")x.addNew||(se=new hn(E,E)),E=Qa(a,y,!0,!0),he=-1;else{var At=Ia(a,E,x.unit);x.extend?se=Di(se,At.anchor,At.head,x.extend):se=At}x.addNew?he==-1?(he=Le.length,Tr(ie,ir(a,Le.concat([se]),he),{scroll:!1,origin:"*mouse"})):Le.length>1&&Le[he].empty()&&x.unit=="char"&&!x.extend?(Tr(ie,ir(a,Le.slice(0,he).concat(Le.slice(he+1)),0),{scroll:!1,origin:"*mouse"}),xe=ie.sel):Ao(ie,he,se,Ye):(he=0,Tr(ie,new mn([se],0),Ye),xe=ie.sel);var Gt=E;function gn(Pr){if(xt(Gt,Pr)!=0)if(Gt=Pr,x.unit=="rectangle"){for(var Wr=[],fi=a.options.tabSize,li=Be(on(ie,E.line).text,E.ch,fi),Ri=Be(on(ie,Pr.line).text,Pr.ch,fi),go=Math.min(li,Ri),ra=Math.max(li,Ri),Lo=Math.min(E.line,Pr.line),ka=Math.min(a.lastLine(),Math.max(E.line,Pr.line));Lo<=ka;Lo++){var Pa=on(ie,Lo).text,Xo=_t(Pa,go,fi);go==ra?Wr.push(new hn(ze(Lo,Xo),ze(Lo,Xo))):Pa.length>Xo&&Wr.push(new hn(ze(Lo,Xo),ze(Lo,_t(Pa,ra,fi))))}Wr.length||Wr.push(new hn(E,E)),Tr(ie,ir(a,xe.ranges.slice(0,he).concat(Wr),he),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Pr)}else{var Oa=se,fa=Ia(a,Pr,x.unit),qo=Oa.anchor,_o;xt(fa.anchor,qo)>0?(_o=fa.head,qo=Vt(Oa.from(),fa.anchor)):(_o=fa.anchor,qo=kt(Oa.to(),fa.head));var $o=xe.ranges.slice(0);$o[he]=Ml(a,new hn(Ct(ie,qo),_o)),Tr(ie,ir(a,$o,he),Ye)}}var fn=z.wrapper.getBoundingClientRect(),Vn=0;function tr(Pr){var Wr=++Vn,fi=Qa(a,Pr,!0,x.unit=="rectangle");if(fi)if(xt(fi,Gt)!=0){a.curOp.focus=Je(),gn(fi);var li=ol(z,ie);(fi.line>=li.to||fi.line<li.from)&&setTimeout(Qo(a,function(){Vn==Wr&&tr(Pr)}),150)}else{var Ri=Pr.clientY<fn.top?-20:Pr.clientY>fn.bottom?20:0;Ri&&setTimeout(Qo(a,function(){Vn==Wr&&(z.scroller.scrollTop+=Ri,tr(Pr))}),50)}}function pr(Pr){a.state.selectingText=!1,Vn=1/0,Pr&&(mt(Pr),z.input.focus()),rn(z.wrapper.ownerDocument,"mousemove",Ir),rn(z.wrapper.ownerDocument,"mouseup",Fr),ie.history.lastSelOrigin=null}var Ir=Qo(a,function(Pr){Pr.buttons===0||!wt(Pr)?pr(Pr):tr(Pr)}),Fr=Qo(a,pr);a.state.selectingText=Fr,Zt(z.wrapper.ownerDocument,"mousemove",Ir),Zt(z.wrapper.ownerDocument,"mouseup",Fr)}function Ml(a,y){var E=y.anchor,x=y.head,z=on(a.doc,E.line);if(xt(E,x)==0&&E.sticky==x.sticky)return y;var ie=we(z);if(!ie)return y;var se=_e(ie,E.ch,E.sticky),he=ie[se];if(he.from!=E.ch&&he.to!=E.ch)return y;var xe=se+(he.from==E.ch==(he.level!=1)?0:1);if(xe==0||xe==ie.length)return y;var Le;if(x.line!=E.line)Le=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var At=_e(ie,x.ch,x.sticky),Gt=At-se||(x.ch-E.ch)*(he.level==1?-1:1);At==xe-1||At==xe?Le=Gt<0:Le=Gt>0}var gn=ie[xe+(Le?-1:0)],fn=Le==(gn.level==1),Vn=fn?gn.from:gn.to,tr=fn?"after":"before";return E.ch==Vn&&E.sticky==tr?y:new hn(new ze(E.line,Vn,tr),x)}function sl(a,y,E,x){var z,ie;if(y.touches)z=y.touches[0].clientX,ie=y.touches[0].clientY;else try{z=y.clientX,ie=y.clientY}catch(gn){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&mt(y);var se=a.display,he=se.lineDiv.getBoundingClientRect();if(ie>he.bottom||!Wt(a,E))return Tt(y);ie-=he.top-se.viewOffset;for(var xe=0;xe<a.display.gutterSpecs.length;++xe){var Le=se.gutters.childNodes[xe];if(Le&&Le.getBoundingClientRect().right>=z){var At=yt(a.doc,ie),Gt=a.display.gutterSpecs[xe];return Yt(a,E,a,At,Gt.className,y),Tt(y)}}}function Ja(a,y){return sl(a,y,"gutterClick",!0)}function Bl(a,y){Yo(a.display,y)||$s(a,y)||Ot(a,y,"contextmenu")||Te||a.display.input.onContextMenu(y)}function $s(a,y){return Wt(a,"gutterContextMenu")?sl(a,y,"gutterContextMenu",!1):!1}function Nc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fl(a)}var ds={toString:function(){return"CodeMirror.Init"}},Ac={},qs={};function jc(a){var y=a.optionHandlers;function E(x,z,ie,se){a.defaults[x]=z,ie&&(y[x]=se?function(he,xe,Le){Le!=ds&&ie(he,xe,Le)}:ie)}a.defineOption=E,a.Init=ds,E("value","",function(x,z){return x.setValue(z)},!0),E("mode",null,function(x,z){x.doc.modeOption=z,Br(x)},!0),E("indentUnit",2,Br,!0),E("indentWithTabs",!1),E("smartIndent",!0),E("tabSize",4,function(x){Dr(x),fl(x),sa(x)},!0),E("lineSeparator",null,function(x,z){if(x.doc.lineSep=z,!!z){var ie=[],se=x.doc.first;x.doc.iter(function(xe){for(var Le=0;;){var At=xe.text.indexOf(z,Le);if(At==-1)break;Le=At+z.length,ie.push(ze(se,At))}se++});for(var he=ie.length-1;he>=0;he--)zi(x.doc,z,ie[he],ze(ie[he].line,ie[he].ch+z.length))}}),E("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,z,ie){x.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ie!=ds&&x.refresh()}),E("specialCharPlaceholder",xo,function(x){return x.refresh()},!0),E("electricChars",!0),E("inputStyle",Me?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),E("spellcheck",!1,function(x,z){return x.getInputField().spellcheck=z},!0),E("autocorrect",!1,function(x,z){return x.getInputField().autocorrect=z},!0),E("autocapitalize",!1,function(x,z){return x.getInputField().autocapitalize=z},!0),E("rtlMoveVisually",!pt),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){Nc(x),an(x)},!0),E("keyMap","default",function(x,z,ie){var se=ss(z),he=ie!=ds&&ss(ie);he&&he.detach&&he.detach(x,se),se.attach&&se.attach(x,he||null)}),E("extraKeys",null),E("configureMouse",null),E("lineWrapping",!1,Kc,!0),E("gutters",[],function(x,z){x.display.gutterSpecs=Nt(z,x.options.lineNumbers),an(x)},!0),E("fixedGutter",!0,function(x,z){x.display.gutters.style.left=z?gs(x.display)+"px":"0",x.refresh()},!0),E("coverGutterNextToScrollbar",!1,function(x){return Hl(x)},!0),E("scrollbarStyle","native",function(x){_s(x),Hl(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),E("lineNumbers",!1,function(x,z){x.display.gutterSpecs=Nt(x.options.gutters,z),an(x)},!0),E("firstLineNumber",1,an,!0),E("lineNumberFormatter",function(x){return x},an,!0),E("showCursorWhenSelecting",!1,pl,!0),E("resetSelectionOnContextMenu",!0),E("lineWiseCopyCut",!0),E("pasteLinesPerSelection",!0),E("selectionsMayTouch",!1),E("readOnly",!1,function(x,z){z=="nocursor"&&(Sl(x),x.display.input.blur()),x.display.input.readOnlyChanged(z)}),E("screenReaderLabel",null,function(x,z){z=z===""?null:z,x.display.input.screenReaderLabelChanged(z)}),E("disableInput",!1,function(x,z){z||x.display.input.reset()},!0),E("dragDrop",!0,Wc),E("allowDropFileTypes",null),E("cursorBlinkRate",530),E("cursorScrollMargin",0),E("cursorHeight",1,pl,!0),E("singleCursorHeightPerLine",!0,pl,!0),E("workTime",100),E("workDelay",100),E("flattenSpans",!0,Dr,!0),E("addModeClass",!1,Dr,!0),E("pollInterval",100),E("undoDepth",200,function(x,z){return x.doc.history.undoDepth=z}),E("historyEventDelay",1250),E("viewportMargin",10,function(x){return x.refresh()},!0),E("maxHighlightLength",1e4,Dr,!0),E("moveInputWithCursor",!0,function(x,z){z||x.display.input.resetPosition()}),E("tabindex",null,function(x,z){return x.display.input.getField().tabIndex=z||""}),E("autofocus",null),E("direction","ltr",function(x,z){return x.doc.setDirection(z)},!0),E("phrases",null)}function Wc(a,y,E){var x=E&&E!=ds;if(!y!=!x){var z=a.display.dragFunctions,ie=y?Zt:rn;ie(a.display.scroller,"dragstart",z.start),ie(a.display.scroller,"dragenter",z.enter),ie(a.display.scroller,"dragover",z.over),ie(a.display.scroller,"dragleave",z.leave),ie(a.display.scroller,"drop",z.drop)}}function Kc(a){a.options.lineWrapping?(de(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Qe(a.display.wrapper,"CodeMirror-wrap"),pi(a)),Cl(a),sa(a),fl(a),setTimeout(function(){return Hl(a)},100)}function Oo(a,y){var E=this;if(!(this instanceof Oo))return new Oo(a,y);this.options=y=y?Xt(y):{},Xt(Ac,y,!1);var x=y.value;typeof x=="string"?x=new ao(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var z=new Oo.inputStyles[y.inputStyle](this),ie=this.display=new qt(a,x,z,y);ie.wrapper.CodeMirror=this,Nc(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_s(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 me,keySeq:null,specialChars:null},y.autofocus&&!Me&&ie.input.focus(),Oe&&ye<11&&setTimeout(function(){return E.display.input.reset(!0)},20),Vc(this),ls(),ml(this),this.curOp.forceUpdate=!0,ii(this,x),y.autofocus&&!Me||this.hasFocus()?setTimeout(function(){E.hasFocus()&&!E.state.focused&&Ks(E)},20):Sl(this);for(var se in qs)qs.hasOwnProperty(se)&&qs[se](this,y[se],ds);ft(this),y.finishInit&&y.finishInit(this);for(var he=0;he<Cc.length;++he)Cc[he](this);Ol(this),De&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Oo.defaults=Ac,Oo.optionHandlers=qs;function Vc(a){var y=a.display;Zt(y.scroller,"mousedown",Qo(a,Fs)),Oe&&ye<11?Zt(y.scroller,"dblclick",Qo(a,function(xe){if(!Ot(a,xe)){var Le=Qa(a,xe);if(!(!Le||Ja(a,xe)||Yo(a.display,xe))){mt(xe);var At=a.findWordAt(Le);Ti(a.doc,At.anchor,At.head)}}})):Zt(y.scroller,"dblclick",function(xe){return Ot(a,xe)||mt(xe)}),Zt(y.scroller,"contextmenu",function(xe){return Bl(a,xe)}),Zt(y.input.getField(),"contextmenu",function(xe){y.scroller.contains(xe.target)||Bl(a,xe)});var E,x={end:0};function z(){y.activeTouch&&(E=setTimeout(function(){return y.activeTouch=null},1e3),x=y.activeTouch,x.end=+new Date)}function ie(xe){if(xe.touches.length!=1)return!1;var Le=xe.touches[0];return Le.radiusX<=1&&Le.radiusY<=1}function se(xe,Le){if(Le.left==null)return!0;var At=Le.left-xe.left,Gt=Le.top-xe.top;return At*At+Gt*Gt>20*20}Zt(y.scroller,"touchstart",function(xe){if(!Ot(a,xe)&&!ie(xe)&&!Ja(a,xe)){y.input.ensurePolled(),clearTimeout(E);var Le=+new Date;y.activeTouch={start:Le,moved:!1,prev:Le-x.end<=300?x:null},xe.touches.length==1&&(y.activeTouch.left=xe.touches[0].pageX,y.activeTouch.top=xe.touches[0].pageY)}}),Zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Zt(y.scroller,"touchend",function(xe){var Le=y.activeTouch;if(Le&&!Yo(y,xe)&&Le.left!=null&&!Le.moved&&new Date-Le.start<300){var At=a.coordsChar(y.activeTouch,"page"),Gt;!Le.prev||se(Le,Le.prev)?Gt=new hn(At,At):!Le.prev.prev||se(Le,Le.prev.prev)?Gt=a.findWordAt(At):Gt=new hn(ze(At.line,0),Ct(a.doc,ze(At.line+1,0))),a.setSelection(Gt.anchor,Gt.head),a.focus(),mt(xe)}z()}),Zt(y.scroller,"touchcancel",z),Zt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ns(a,y.scroller.scrollTop),Il(a,y.scroller.scrollLeft,!0),Yt(a,"scroll",a))}),Zt(y.scroller,"mousewheel",function(xe){return Cn(a,xe)}),Zt(y.scroller,"DOMMouseScroll",function(xe){return Cn(a,xe)}),Zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(xe){Ot(a,xe)||Ne(xe)},over:function(xe){Ot(a,xe)||(_a(a,xe),Ne(xe))},start:function(xe){return Xa(a,xe)},drop:Qo(a,al),leave:function(xe){Ot(a,xe)||is(a)}};var he=y.input.getField();Zt(he,"keyup",function(xe){return ks.call(a,xe)}),Zt(he,"keydown",Qo(a,As)),Zt(he,"keypress",Qo(a,Ls)),Zt(he,"focus",function(xe){return Ks(a,xe)}),Zt(he,"blur",function(xe){return Sl(a,xe)})}var Cc=[];Oo.defineInitHook=function(a){return Cc.push(a)};function Zs(a,y,E,x){var z=a.doc,ie;E==null&&(E="add"),E=="smart"&&(z.mode.indent?ie=sr(a,y).state:E="prev");var se=a.options.tabSize,he=on(z,y),xe=Be(he.text,null,se);he.stateAfter&&(he.stateAfter=null);var Le=he.text.match(/^\s*/)[0],At;if(!x&&!/\S/.test(he.text))At=0,E="not";else if(E=="smart"&&(At=z.mode.indent(ie,he.text.slice(Le.length),he.text),At==Bt||At>150)){if(!x)return;E="prev"}E=="prev"?y>z.first?At=Be(on(z,y-1).text,null,se):At=0:E=="add"?At=xe+a.options.indentUnit:E=="subtract"?At=xe-a.options.indentUnit:typeof E=="number"&&(At=xe+E),At=Math.max(0,At);var Gt="",gn=0;if(a.options.indentWithTabs)for(var fn=Math.floor(At/se);fn;--fn)gn+=se,Gt+=" ";if(gn<At&&(Gt+=Ft(At-gn)),Gt!=Le)return zi(z,Gt,ze(y,0),ze(y,Le.length),"+input"),he.stateAfter=null,!0;for(var Vn=0;Vn<z.sel.ranges.length;Vn++){var tr=z.sel.ranges[Vn];if(tr.head.line==y&&tr.head.ch<Le.length){var pr=ze(y,Le.length);Ao(z,Vn,new hn(pr,pr));break}}}var qa=null;function ec(a){qa=a}function Sc(a,y,E,x,z){var ie=a.doc;a.display.shift=!1,x||(x=ie.sel);var se=+new Date-200,he=z=="paste"||a.state.pasteIncoming>se,xe=pn(y),Le=null;if(he&&x.ranges.length>1)if(qa&&qa.text.join(`
|
|
|
`)==y){if(x.ranges.length%qa.text.length==0){Le=[];for(var At=0;At<qa.text.length;At++)Le.push(ie.splitLines(qa.text[At]))}}else xe.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(Le=Jt(xe,function(Ir){return[Ir]}));for(var Gt=a.curOp.updateInput,gn=x.ranges.length-1;gn>=0;gn--){var fn=x.ranges[gn],Vn=fn.from(),tr=fn.to();fn.empty()&&(E&&E>0?Vn=ze(Vn.line,Vn.ch-E):a.state.overwrite&&!he?tr=ze(tr.line,Math.min(on(ie,tr.line).text.length,tr.ch+qe(xe).length)):he&&qa&&qa.lineWise&&qa.text.join(`
|
|
|
`)==xe.join(`
|
|
|
`)&&(Vn=tr=ze(Vn.line,0)));var pr={from:Vn,to:tr,text:Le?Le[gn%Le.length]:xe,origin:z||(he?"paste":a.state.cutIncoming>se?"cut":"+input")};eo(a.doc,pr),Mi(a,"inputRead",a,pr)}y&&!he&&Lc(a,y),El(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Gt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function kc(a,y){var E=a.clipboardData&&a.clipboardData.getData("Text");if(E)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ma(y,function(){return Sc(y,E,0,null,"paste")}),!0}function Lc(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var E=a.doc.sel,x=E.ranges.length-1;x>=0;x--){var z=E.ranges[x];if(!(z.head.ch>100||x&&E.ranges[x-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),se=!1;if(ie.electricChars){for(var he=0;he<ie.electricChars.length;he++)if(y.indexOf(ie.electricChars.charAt(he))>-1){se=Zs(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(on(a.doc,z.head.line).text.slice(0,z.head.ch))&&(se=Zs(a,z.head.line,"smart"));se&&Mi(a,"electricInput",a,z.head.line)}}}function Rc(a){for(var y=[],E=[],x=0;x<a.doc.sel.ranges.length;x++){var z=a.doc.sel.ranges[x].head.line,ie={anchor:ze(z,0),head:ze(z+1,0)};E.push(ie),y.push(a.getRange(ie.anchor,ie.head))}return{text:y,ranges:E}}function Fc(a,y,E,x){a.setAttribute("autocorrect",E?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function $c(){var a=it("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=it("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return De?a.style.width="1000px":a.setAttribute("wrap","off"),at&&(a.style.border="1px solid black"),Fc(a),y}function Uc(a){var y=a.optionHandlers,E=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,z){var ie=this.options,se=ie[x];ie[x]==z&&x!="mode"||(ie[x]=z,y.hasOwnProperty(x)&&Qo(this,y[x])(this,z,se),Yt(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,z){this.state.keyMaps[z?"push":"unshift"](ss(x))},removeKeyMap:function(x){for(var z=this.state.keyMaps,ie=0;ie<z.length;++ie)if(z[ie]==x||z[ie].name==x)return z.splice(ie,1),!0},addOverlay:ca(function(x,z){var ie=x.token?x:a.getMode(this.options,x);if(ie.startState)throw new Error("Overlays may not be stateful.");Dt(this.state.overlays,{mode:ie,modeSpec:x,opaque:z&&z.opaque,priority:z&&z.priority||0},function(se){return se.priority}),this.state.modeGen++,sa(this)}),removeOverlay:ca(function(x){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var se=z[ie].modeSpec;if(se==x||typeof x=="string"&&se.name==x){z.splice(ie,1),this.state.modeGen++,sa(this);return}}}),indentLine:ca(function(x,z,ie){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Fe(this.doc,x)&&Zs(this,x,z,ie)}),indentSelection:ca(function(x){for(var z=this.doc.sel.ranges,ie=-1,se=0;se<z.length;se++){var he=z[se];if(he.empty())he.head.line>ie&&(Zs(this,he.head.line,x,!0),ie=he.head.line,se==this.doc.sel.primIndex&&El(this));else{var xe=he.from(),Le=he.to(),At=Math.max(ie,xe.line);ie=Math.min(this.lastLine(),Le.line-(Le.ch?0:1))+1;for(var Gt=At;Gt<ie;++Gt)Zs(this,Gt,x);var gn=this.doc.sel.ranges;xe.ch==0&&z.length==gn.length&&gn[se].from().ch>0&&Ao(this.doc,se,new hn(xe,gn[se].to()),be)}}}),getTokenAt:function(x,z){return ur(this,x,z)},getLineTokens:function(x,z){return ur(this,ze(x),z,!0)},getTokenTypeAt:function(x){x=Ct(this.doc,x);var z=nr(this,on(this.doc,x.line)),ie=0,se=(z.length-1)/2,he=x.ch,xe;if(he==0)xe=z[2];else for(;;){var Le=ie+se>>1;if((Le?z[Le*2-1]:0)>=he)se=Le;else if(z[Le*2+1]<he)ie=Le+1;else{xe=z[Le*2+2];break}}var At=xe?xe.indexOf("overlay "):-1;return At<0?xe:At==0?null:xe.slice(0,At-1)},getModeAt:function(x){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(x).state).mode:z},getHelper:function(x,z){return this.getHelpers(x,z)[0]},getHelpers:function(x,z){var ie=[];if(!E.hasOwnProperty(z))return ie;var se=E[z],he=this.getModeAt(x);if(typeof he[z]=="string")se[he[z]]&&ie.push(se[he[z]]);else if(he[z])for(var xe=0;xe<he[z].length;xe++){var Le=se[he[z][xe]];Le&&ie.push(Le)}else he.helperType&&se[he.helperType]?ie.push(se[he.helperType]):se[he.name]&&ie.push(se[he.name]);for(var At=0;At<se._global.length;At++){var Gt=se._global[At];Gt.pred(he,this)&&ht(ie,Gt.val)==-1&&ie.push(Gt.val)}return ie},getStateAfter:function(x,z){var ie=this.doc;return x=bt(ie,x==null?ie.first+ie.size-1:x),sr(this,x+1,z).state},cursorCoords:function(x,z){var ie,se=this.doc.sel.primary();return x==null?ie=se.head:typeof x=="object"?ie=Ct(this.doc,x):ie=x?se.from():se.to(),aa(this,ie,z||"page")},charCoords:function(x,z){return nl(this,Ct(this.doc,x),z||"page")},coordsChar:function(x,z){return x=es(this,x,z||"page"),Ko(this,x.left,x.top)},lineAtHeight:function(x,z){return x=es(this,{top:x,left:0},z||"page").top,yt(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,z,ie){var se=!1,he;if(typeof x=="number"){var xe=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>xe&&(x=xe,se=!0),he=on(this.doc,x)}else he=x;return Rl(this,he,{top:0,left:0},z||"page",ie||se).top+(se?this.doc.height-Qr(he):0)},defaultTextHeight:function(){return Ca(this.display)},defaultCharWidth:function(){return Fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,z,ie,se,he){var xe=this.display;x=aa(this,Ct(this.doc,x));var Le=x.bottom,At=x.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),xe.sizer.appendChild(z),se=="over")Le=x.top;else if(se=="above"||se=="near"){var Gt=Math.max(xe.wrapper.clientHeight,this.doc.height),gn=Math.max(xe.sizer.clientWidth,xe.lineSpace.clientWidth);(se=="above"||x.bottom+z.offsetHeight>Gt)&&x.top>z.offsetHeight?Le=x.top-z.offsetHeight:x.bottom+z.offsetHeight<=Gt&&(Le=x.bottom),At+z.offsetWidth>gn&&(At=gn-z.offsetWidth)}z.style.top=Le+"px",z.style.left=z.style.right="",he=="right"?(At=xe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(he=="left"?At=0:he=="middle"&&(At=(xe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=At+"px"),ie&&Oc(this,{left:At,top:Le,right:At+z.offsetWidth,bottom:Le+z.offsetHeight})},triggerOnKeyDown:ca(As),triggerOnKeyPress:ca(Ls),triggerOnKeyUp:ks,triggerOnMouseDown:ca(Fs),execCommand:function(x){if(ll.hasOwnProperty(x))return ll[x].call(null,this)},triggerElectric:ca(function(x){Lc(this,x)}),findPosH:function(x,z,ie,se){var he=1;z<0&&(he=-1,z=-z);for(var xe=Ct(this.doc,x),Le=0;Le<z&&(xe=wc(this.doc,xe,he,ie,se),!xe.hitSide);++Le);return xe},moveH:ca(function(x,z){var ie=this;this.extendSelectionsBy(function(se){return ie.display.shift||ie.doc.extend||se.empty()?wc(ie.doc,se.head,x,z,ie.options.rtlMoveVisually):x<0?se.from():se.to()},et)}),deleteH:ca(function(x,z){var ie=this.doc.sel,se=this.doc;ie.somethingSelected()?se.replaceSelection("",null,"+delete"):gl(this,function(he){var xe=wc(se,he.head,x,z,!1);return x<0?{from:xe,to:he.head}:{from:he.head,to:xe}})}),findPosV:function(x,z,ie,se){var he=1,xe=se;z<0&&(he=-1,z=-z);for(var Le=Ct(this.doc,x),At=0;At<z;++At){var Gt=aa(this,Le,"div");if(xe==null?xe=Gt.left:Gt.left=xe,Le=Zc(this,Gt,he,ie),Le.hitSide)break}return Le},moveV:ca(function(x,z){var ie=this,se=this.doc,he=[],xe=!this.display.shift&&!se.extend&&se.sel.somethingSelected();if(se.extendSelectionsBy(function(At){if(xe)return x<0?At.from():At.to();var Gt=aa(ie,At.head,"div");At.goalColumn!=null&&(Gt.left=At.goalColumn),he.push(Gt.left);var gn=Zc(ie,Gt,x,z);return z=="page"&&At==se.sel.primary()&&Vs(ie,nl(ie,gn,"div").top-Gt.top),gn},et),he.length)for(var Le=0;Le<se.sel.ranges.length;Le++)se.sel.ranges[Le].goalColumn=he[Le]}),findWordAt:function(x){var z=this.doc,ie=on(z,x.line).text,se=x.ch,he=x.ch;if(ie){var xe=this.getHelper(x,"wordChars");(x.sticky=="before"||he==ie.length)&&se?--se:++he;for(var Le=ie.charAt(se),At=ce(Le,xe)?function(Gt){return ce(Gt,xe)}:/\s/.test(Le)?function(Gt){return/\s/.test(Gt)}:function(Gt){return!/\s/.test(Gt)&&!ce(Gt)};se>0&&At(ie.charAt(se-1));)--se;for(;he<ie.length&&At(ie.charAt(he));)++he}return new hn(ze(x.line,se),ze(x.line,he))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):Qe(this.display.cursorDiv,"CodeMirror-overwrite"),Yt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Je()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ca(function(x,z){ts(this,x,z)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-pa(this)-this.display.barHeight,width:x.scrollWidth-pa(this)-this.display.barWidth,clientHeight:Ya(this),clientWidth:za(this)}},scrollIntoView:ca(function(x,z){x==null?(x={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof x=="number"?x={from:ze(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=z||0,x.from.line!=null?lc(this,x):Us(this,x.from,x.to,x.margin)}),setSize:ca(function(x,z){var ie=this,se=function(xe){return typeof xe=="number"||/^\d+$/.test(String(xe))?xe+"px":xe};x!=null&&(this.display.wrapper.style.width=se(x)),z!=null&&(this.display.wrapper.style.height=se(z)),this.options.lineWrapping&&ja(this);var he=this.display.viewFrom;this.doc.iter(he,this.display.viewTo,function(xe){if(xe.widgets){for(var Le=0;Le<xe.widgets.length;Le++)if(xe.widgets[Le].noHScroll){il(ie,he,"widget");break}}++he}),this.curOp.forceUpdate=!0,Yt(this,"refresh",this)}),operation:function(x){return ma(this,x)},startOperation:function(){return ml(this)},endOperation:function(){return Ol(this)},refresh:ca(function(){var x=this.display.cachedTextHeight;sa(this),this.curOp.forceUpdate=!0,fl(this),ts(this,this.doc.scrollLeft,this.doc.scrollTop),ve(this.display),(x==null||Math.abs(x-Ca(this.display))>.5||this.options.lineWrapping)&&Cl(this),Yt(this,"refresh",this)}),swapDoc:ca(function(x){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),ii(this,x),fl(this),this.display.input.reset(),ts(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Mi(this,"swapDoc",this,z),z}),phrase:function(x){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,x)?z[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}},He(a),a.registerHelper=function(x,z,ie){E.hasOwnProperty(x)||(E[x]=a[x]={_global:[]}),E[x][z]=ie},a.registerGlobalHelper=function(x,z,ie,se){a.registerHelper(x,z,se),E[x]._global.push({pred:ie,val:se})}}function wc(a,y,E,x,z){var ie=y,se=E,he=on(a,y.line),xe=z&&a.direction=="rtl"?-E:E;function Le(){var Fr=y.line+xe;return Fr<a.first||Fr>=a.first+a.size?!1:(y=new ze(Fr,y.ch,y.sticky),he=on(a,Fr))}function At(Fr){var Pr;if(x=="codepoint"){var Wr=he.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(Wr)?Pr=null:Pr=new ze(y.line,Math.max(0,Math.min(he.text.length,y.ch+E*(Wr>=55296&&Wr<56320?2:1))),-E)}else z?Pr=Qs(a.cm,he,y,E):Pr=cs(he,y,E);if(Pr==null)if(!Fr&&Le())y=Ds(z,a.cm,he,y.line,xe);else return!1;else y=Pr;return!0}if(x=="char"||x=="codepoint")At();else if(x=="column")At(!0);else if(x=="word"||x=="group")for(var Gt=null,gn=x=="group",fn=a.cm&&a.cm.getHelper(y,"wordChars"),Vn=!0;!(E<0&&!At(!Vn));Vn=!1){var tr=he.text.charAt(y.ch)||`
|
|
|
`,pr=ce(tr,fn)?"w":gn&&tr==`
|
|
|
`?"n":!gn||/\s/.test(tr)?null:"p";if(gn&&!Vn&&!pr&&(pr="s"),Gt&&Gt!=pr){E<0&&(E=1,At(),y.sticky="after");break}if(pr&&(Gt=pr),E>0&&!At(!Vn))break}var Ir=Ro(a,y,ie,se,!0);return Ee(ie,Ir)&&(Ir.hitSide=!0),Ir}function Zc(a,y,E,x){var z=a.doc,ie=y.left,se;if(x=="page"){var he=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),xe=Math.max(he-.5*Ca(a.display),3);se=(E>0?y.bottom:y.top)+E*xe}else x=="line"&&(se=E>0?y.bottom+3:y.top-3);for(var Le;Le=Ko(a,ie,se),!!Le.outside;){if(E<0?se<=0:se>=z.height){Le.hitSide=!0;break}se+=E*5}return Le}var uo=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new me,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};uo.prototype.init=function(a){var y=this,E=this,x=E.cm,z=E.div=a.lineDiv;Fc(z,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function ie(he){for(var xe=he.target;xe;xe=xe.parentNode){if(xe==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(xe.className))break}return!1}Zt(z,"paste",function(he){!ie(he)||Ot(x,he)||kc(he,x)||ye<=11&&setTimeout(Qo(x,function(){return y.updateFromDOM()}),20)}),Zt(z,"compositionstart",function(he){y.composing={data:he.data,done:!1}}),Zt(z,"compositionupdate",function(he){y.composing||(y.composing={data:he.data,done:!1})}),Zt(z,"compositionend",function(he){y.composing&&(he.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Zt(z,"touchstart",function(){return E.forceCompositionEnd()}),Zt(z,"input",function(){y.composing||y.readFromDOMSoon()});function se(he){if(!(!ie(he)||Ot(x,he))){if(x.somethingSelected())ec({lineWise:!1,text:x.getSelections()}),he.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var xe=Rc(x);ec({lineWise:!0,text:xe.text}),he.type=="cut"&&x.operation(function(){x.setSelections(xe.ranges,0,be),x.replaceSelection("",null,"cut")})}else return;if(he.clipboardData){he.clipboardData.clearData();var Le=qa.text.join(`
|
|
|
`);if(he.clipboardData.setData("Text",Le),he.clipboardData.getData("Text")==Le){he.preventDefault();return}}var At=$c(),Gt=At.firstChild;x.display.lineSpace.insertBefore(At,x.display.lineSpace.firstChild),Gt.value=qa.text.join(`
|
|
|
`);var gn=document.activeElement;We(Gt),setTimeout(function(){x.display.lineSpace.removeChild(At),gn.focus(),gn==z&&E.showPrimarySelection()},50)}}Zt(z,"copy",se),Zt(z,"cut",se)},uo.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},uo.prototype.prepareSelection=function(){var a=rc(this.cm,!1);return a.focus=document.activeElement==this.div,a},uo.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},uo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},uo.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,E=y.doc.sel.primary(),x=E.from(),z=E.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ie=tc(y,a.anchorNode,a.anchorOffset),se=tc(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&se&&!se.bad&&xt(Vt(ie,se),x)==0&&xt(kt(ie,se),z)==0)){var he=y.display.view,xe=x.line>=y.display.viewFrom&&zc(y,x)||{node:he[0].measure.map[2],offset:0},Le=z.line<y.display.viewTo&&zc(y,z);if(!Le){var At=he[he.length-1].measure,Gt=At.maps?At.maps[At.maps.length-1]:At.map;Le={node:Gt[Gt.length-1],offset:Gt[Gt.length-2]-Gt[Gt.length-3]}}if(!xe||!Le){a.removeAllRanges();return}var gn=a.rangeCount&&a.getRangeAt(0),fn;try{fn=Se(xe.node,xe.offset,Le.offset,Le.node)}catch(Vn){}fn&&(!b&&y.state.focused?(a.collapse(xe.node,xe.offset),fn.collapsed||(a.removeAllRanges(),a.addRange(fn))):(a.removeAllRanges(),a.addRange(fn)),gn&&a.anchorNode==null?a.addRange(gn):b&&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){St(this.cm.display.cursorDiv,a.cursors),St(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 y=a.getRangeAt(0).commonAncestorContainer;return st(this.div,y)},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():ma(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},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(),y=this.cm;if($e&&Ce&&this.cm.display.gutterSpecs.length&&Gc(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=tc(y,a.anchorNode,a.anchorOffset),x=tc(y,a.focusNode,a.focusOffset);E&&x&&ma(y,function(){Tr(y.doc,Wn(E,x),be),(E.bad||x.bad)&&(y.curOp.selectionChanged=!0)})}}},uo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,E=a.doc.sel.primary(),x=E.from(),z=E.to();if(x.ch==0&&x.line>a.firstLine()&&(x=ze(x.line-1,on(a.doc,x.line-1).length)),z.ch==on(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=ze(z.line+1,0)),x.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ie,se,he;x.line==y.viewFrom||(ie=Ka(a,x.line))==0?(se=ct(y.view[0].line),he=y.view[0].node):(se=ct(y.view[ie].line),he=y.view[ie-1].node.nextSibling);var xe=Ka(a,z.line),Le,At;if(xe==y.view.length-1?(Le=y.viewTo-1,At=y.lineDiv.lastChild):(Le=ct(y.view[xe+1].line)-1,At=y.view[xe+1].node.previousSibling),!he)return!1;for(var Gt=a.doc.splitLines(Xc(a,he,At,se,Le)),gn=xn(a.doc,ze(se,0),ze(Le,on(a.doc,Le).text.length));Gt.length>1&&gn.length>1;)if(qe(Gt)==qe(gn))Gt.pop(),gn.pop(),Le--;else if(Gt[0]==gn[0])Gt.shift(),gn.shift(),se++;else break;for(var fn=0,Vn=0,tr=Gt[0],pr=gn[0],Ir=Math.min(tr.length,pr.length);fn<Ir&&tr.charCodeAt(fn)==pr.charCodeAt(fn);)++fn;for(var Fr=qe(Gt),Pr=qe(gn),Wr=Math.min(Fr.length-(Gt.length==1?fn:0),Pr.length-(gn.length==1?fn:0));Vn<Wr&&Fr.charCodeAt(Fr.length-Vn-1)==Pr.charCodeAt(Pr.length-Vn-1);)++Vn;if(Gt.length==1&&gn.length==1&&se==x.line)for(;fn&&fn>x.ch&&Fr.charCodeAt(Fr.length-Vn-1)==Pr.charCodeAt(Pr.length-Vn-1);)fn--,Vn++;Gt[Gt.length-1]=Fr.slice(0,Fr.length-Vn).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(fn).replace(/\u200b+$/,"");var fi=ze(se,fn),li=ze(Le,gn.length?qe(gn).length-Vn:0);if(Gt.length>1||Gt[0]||xt(fi,li))return zi(a.doc,Gt,fi,li,"+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())&&ma(this.cm,function(){return sa(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()||Qo(this.cm,Sc)(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 zc(a,y){var E=Ha(a,y.line);if(!E||E.hidden)return null;var x=on(a.doc,y.line),z=dl(E,x,y.line),ie=we(x,a.doc.direction),se="left";if(ie){var he=_e(ie,y.ch);se=he%2?"right":"left"}var xe=Al(z.map,y.ch,se);return xe.offset=xe.collapse=="right"?xe.end:xe.start,xe}function Gc(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function fs(a,y){return y&&(a.bad=!0),a}function Xc(a,y,E,x,z){var ie="",se=!1,he=a.doc.lineSeparator(),xe=!1;function Le(fn){return function(Vn){return Vn.id==fn}}function At(){se&&(ie+=he,xe&&(ie+=he),se=xe=!1)}function Gt(fn){fn&&(At(),ie+=fn)}function gn(fn){if(fn.nodeType==1){var Vn=fn.getAttribute("cm-text");if(Vn){Gt(Vn);return}var tr=fn.getAttribute("cm-marker"),pr;if(tr){var Ir=a.findMarks(ze(x,0),ze(z+1,0),Le(+tr));Ir.length&&(pr=Ir[0].find(0))&&Gt(xn(a.doc,pr.from,pr.to).join(he));return}if(fn.getAttribute("contenteditable")=="false")return;var Fr=/^(pre|div|p|li|table|br)$/i.test(fn.nodeName);if(!/^br$/i.test(fn.nodeName)&&fn.textContent.length==0)return;Fr&&At();for(var Pr=0;Pr<fn.childNodes.length;Pr++)gn(fn.childNodes[Pr]);/^(pre|p)$/i.test(fn.nodeName)&&(xe=!0),Fr&&(se=!0)}else fn.nodeType==3&&Gt(fn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;gn(y),y!=E;)y=y.nextSibling,xe=!1;return ie}function tc(a,y,E){var x;if(y==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[E],!x)return fs(a.clipPos(ze(a.display.viewTo-1)),!0);y=null,E=0}else for(x=y;;x=x.parentNode){if(!x||x==a.display.lineDiv)return null;if(x.parentNode&&x.parentNode==a.display.lineDiv)break}for(var z=0;z<a.display.view.length;z++){var ie=a.display.view[z];if(ie.node==x)return _c(ie,y,E)}}function _c(a,y,E){var x=a.text.firstChild,z=!1;if(!y||!st(x,y))return fs(ze(ct(a.line),0),!0);if(y==x&&(z=!0,y=x.childNodes[E],E=0,!y)){var ie=a.rest?qe(a.rest):a.line;return fs(ze(ct(ie),ie.text.length),z)}var se=y.nodeType==3?y:null,he=y;for(!se&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(se=y.firstChild,E&&(E=se.nodeValue.length));he.parentNode!=x;)he=he.parentNode;var xe=a.measure,Le=xe.maps;function At(pr,Ir,Fr){for(var Pr=-1;Pr<(Le?Le.length:0);Pr++)for(var Wr=Pr<0?xe.map:Le[Pr],fi=0;fi<Wr.length;fi+=3){var li=Wr[fi+2];if(li==pr||li==Ir){var Ri=ct(Pr<0?a.line:a.rest[Pr]),go=Wr[fi]+Fr;return(Fr<0||li!=pr)&&(go=Wr[fi+(Fr?1:0)]),ze(Ri,go)}}}var Gt=At(se,he,E);if(Gt)return fs(Gt,z);for(var gn=he.nextSibling,fn=se?se.nodeValue.length-E:0;gn;gn=gn.nextSibling){if(Gt=At(gn,gn.firstChild,0),Gt)return fs(ze(Gt.line,Gt.ch-fn),z);fn+=gn.textContent.length}for(var Vn=he.previousSibling,tr=E;Vn;Vn=Vn.previousSibling){if(Gt=At(Vn,Vn.firstChild,-1),Gt)return fs(ze(Gt.line,Gt.ch+tr),z);tr+=Vn.textContent.length}}var jo=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new me,this.hasSelection=!1,this.composing=null};jo.prototype.init=function(a){var y=this,E=this,x=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),at&&(z.style.width="0px"),Zt(z,"input",function(){Oe&&ye>=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),Zt(z,"paste",function(se){Ot(x,se)||kc(se,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function ie(se){if(!Ot(x,se)){if(x.somethingSelected())ec({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var he=Rc(x);ec({lineWise:!0,text:he.text}),se.type=="cut"?x.setSelections(he.ranges,null,be):(E.prevInput="",z.value=he.text.join(`
|
|
|
`),We(z))}else return;se.type=="cut"&&(x.state.cutIncoming=+new Date)}}Zt(z,"cut",ie),Zt(z,"copy",ie),Zt(a.scroller,"paste",function(se){if(!(Yo(a,se)||Ot(x,se))){if(!z.dispatchEvent){x.state.pasteIncoming=+new Date,E.focus();return}var he=new Event("paste");he.clipboardData=se.clipboardData,z.dispatchEvent(he)}}),Zt(a.lineSpace,"selectstart",function(se){Yo(a,se)||mt(se)}),Zt(z,"compositionstart",function(){var se=x.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:se,range:x.markText(se,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Zt(z,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},jo.prototype.createField=function(a){this.wrapper=$c(),this.textarea=this.wrapper.firstChild},jo.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},jo.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=rc(a);if(a.options.moveInputWithCursor){var z=aa(a,E.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),se=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+se.top-ie.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+se.left-ie.left))}return x},jo.prototype.showSelection=function(a){var y=this.cm,E=y.display;St(E.cursorDiv,a.cursors),St(E.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},jo.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var E=y.getSelection();this.textarea.value=E,y.state.focused&&We(this.textarea),Oe&&ye>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",Oe&&ye>=9&&(this.hasSelection=null))}},jo.prototype.getField=function(){return this.textarea},jo.prototype.supportsTouch=function(){return!1},jo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Me||Je()!=this.textarea))try{this.textarea.focus()}catch(a){}},jo.prototype.blur=function(){this.textarea.blur()},jo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jo.prototype.receivedFocus=function(){this.slowPoll()},jo.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},jo.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function E(){var x=y.poll();!x&&!a?(a=!0,y.polling.set(60,E)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,E)},jo.prototype.poll=function(){var a=this,y=this.cm,E=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||Tn(E)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=E.value;if(z==x&&!y.somethingSelected())return!1;if(Oe&&ye>=9&&this.hasSelection===z||Ie&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!x&&(x="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var se=0,he=Math.min(x.length,z.length);se<he&&x.charCodeAt(se)==z.charCodeAt(se);)++se;return ma(y,function(){Sc(y,z.slice(se),x.length-se,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
|
|
|
`)>-1?E.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},jo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jo.prototype.onKeyPress=function(){Oe&&ye>=9&&(this.hasSelection=null),this.fastPoll()},jo.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=Qa(E,a),se=x.scroller.scrollTop;if(!ie||ue)return;var he=E.options.resetSelectionOnContextMenu;he&&E.doc.sel.contains(ie)==-1&&Qo(E,Tr)(E.doc,Wn(ie),be);var xe=z.style.cssText,Le=y.wrapper.style.cssText,At=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-At.top-5)+"px; left: "+(a.clientX-At.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Oe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Gt;De&&(Gt=window.scrollY),x.input.focus(),De&&window.scrollTo(null,Gt),x.input.reset(),E.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=fn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function gn(){if(z.selectionStart!=null){var tr=E.somethingSelected(),pr="\u200B"+(tr?z.value:"");z.value="\u21DA",z.value=pr,y.prevInput=tr?"":"\u200B",z.selectionStart=1,z.selectionEnd=pr.length,x.selForContextMenu=E.doc.sel}}function fn(){if(y.contextMenuPending==fn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Le,z.style.cssText=xe,Oe&&ye<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=se),z.selectionStart!=null)){(!Oe||Oe&&ye<9)&&gn();var tr=0,pr=function(){x.selForContextMenu==E.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?Qo(E,ei)(E):tr++<10?x.detectingSelectAll=setTimeout(pr,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(pr,200)}}if(Oe&&ye>=9&&gn(),Te){Ne(a);var Vn=function(){rn(window,"mouseup",Vn),setTimeout(fn,20)};Zt(window,"mouseup",Vn)}else setTimeout(fn,50)},jo.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},jo.prototype.setUneditable=function(){},jo.prototype.needsContentAttribute=!1;function Yc(a,y){if(y=y?Xt(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var E=Je();y.autofocus=E==a||a.getAttribute("autofocus")!=null&&E==document.body}function x(){a.value=he.getValue()}var z;if(a.form&&(Zt(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var se=ie.submit=function(){x(),ie.submit=z,ie.submit(),ie.submit=se}}catch(xe){}}y.finishInit=function(xe){xe.save=x,xe.getTextArea=function(){return a},xe.toTextArea=function(){xe.toTextArea=isNaN,x(),a.parentNode.removeChild(xe.getWrapperElement()),a.style.display="",a.form&&(rn(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var he=Oo(function(xe){return a.parentNode.insertBefore(xe,a.nextSibling)},y);return he}function Qc(a){a.off=rn,a.on=Zt,a.wheelEventPixels=In,a.Doc=ao,a.splitLines=pn,a.countColumn=Be,a.findColumn=_t,a.isWordChar=oe,a.Pass=Bt,a.signal=Yt,a.Line=Bi,a.changeEnd=or,a.scrollbarModel=sc,a.Pos=ze,a.cmpPos=xt,a.modes=Rn,a.mimeModes=vn,a.resolveMode=cn,a.getMode=En,a.modeExtensions=$n,a.extendMode=Zn,a.copyState=Nn,a.startState=qn,a.innerMode=Fn,a.commands=ll,a.keyMap=Ho,a.keyName=vl,a.isModifierKey=Ps,a.lookupKey=Dl,a.normalizeKeyMap=ea,a.StringStream=er,a.SharedTextMarker=oo,a.TextMarker=ga,a.LineWidget=_i,a.e_preventDefault=mt,a.e_stopPropagation=ot,a.e_stop=Ne,a.addClass=de,a.contains=st,a.rmClass=Qe,a.keyNames=ki}jc(Oo),Uc(Oo);var Jc="iter insert remove copy getEditor constructor".split(" ");for(var nc in ao.prototype)ao.prototype.hasOwnProperty(nc)&&ht(Jc,nc)<0&&(Oo.prototype[nc]=function(a){return function(){return a.apply(this.doc,arguments)}}(ao.prototype[nc]));return He(ao),Oo.inputStyles={textarea:jo,contenteditable:uo},Oo.defineMode=function(a){!Oo.defaults.mode&&a!="null"&&(Oo.defaults.mode=a),tn.apply(this,arguments)},Oo.defineMIME=en,Oo.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Oo.defineMIME("text/plain","null"),Oo.defineExtension=function(a,y){Oo.prototype[a]=y},Oo.defineDocExtension=function(a,y){ao.prototype[a]=y},Oo.fromTextArea=Yc,Qc(Oo),Oo.version="5.58.2",Oo})},25419:function(yn,Qt,ee){(function(b){b(ee(89780),ee(15525),ee(98101))})(function(b){"use strict";b.defineMode("markdown",function(je,fe){var Ge=b.getMode(je,"text/html"),Oe=Ge.name=="null";function ye(Be){if(b.findModeByName){var me=b.findModeByName(Be);me&&(Be=me.mime||me.mimes[0])}var ht=b.getMode(je,Be);return ht.name=="null"?null:ht}fe.highlightFormatting===void 0&&(fe.highlightFormatting=!1),fe.maxBlockquoteDepth===void 0&&(fe.maxBlockquoteDepth=0),fe.taskLists===void 0&&(fe.taskLists=!1),fe.strikethrough===void 0&&(fe.strikethrough=!1),fe.emoji===void 0&&(fe.emoji=!1),fe.fencedCodeBlockHighlighting===void 0&&(fe.fencedCodeBlockHighlighting=!0),fe.fencedCodeBlockDefaultMode===void 0&&(fe.fencedCodeBlockDefaultMode="text/plain"),fe.xml===void 0&&(fe.xml=!0),fe.tokenTypeOverrides===void 0&&(fe.tokenTypeOverrides={});var De={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 Ze in De)De.hasOwnProperty(Ze)&&fe.tokenTypeOverrides[Ze]&&(De[Ze]=fe.tokenTypeOverrides[Ze]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,ue=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,ke=fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Lt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,at=/^[^#!\[\]*_\\<>` "'(~:]+/,$e=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Me=/^\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]/,Xe=" ";function pt(Be,me,ht){return me.f=me.inline=ht,ht(Be,me)}function Rt(Be,me,ht){return me.f=me.block=ht,ht(Be,me)}function Ve(Be){return!Be||!/\S/.test(Be.string)}function Te(Be){if(Be.linkTitle=!1,Be.linkHref=!1,Be.linkText=!1,Be.em=!1,Be.strong=!1,Be.strikethrough=!1,Be.quote=0,Be.indentedCode=!1,Be.f==Qe){var me=Oe;if(!me){var ht=b.innerMode(Ge,Be.htmlState);me=ht.mode.name=="xml"&&ht.state.tagStart===null&&!ht.state.context&&ht.state.tokenize.isInText}me&&(Be.f=ut,Be.block=nt,Be.htmlState=null)}return Be.trailingSpace=0,Be.trailingSpaceNewLine=!1,Be.prevLine=Be.thisLine,Be.thisLine={stream:null},null}function nt(Be,me){var ht=Be.column()===me.indentation,Ut=Ve(me.prevLine.stream),Bt=me.indentedCode,be=me.prevLine.hr,Ye=me.list!==!1,et=(me.listStack[me.listStack.length-1]||0)+3;me.indentedCode=!1;var _t=me.indentation;if(me.indentationDiff===null&&(me.indentationDiff=me.indentation,Ye)){for(me.list=null;_t<me.listStack[me.listStack.length-1];)me.listStack.pop(),me.listStack.length?me.indentation=me.listStack[me.listStack.length-1]:me.list=!1;me.list!==!1&&(me.indentationDiff=_t-me.listStack[me.listStack.length-1])}var rt=!Ut&&!be&&!me.prevLine.header&&(!Ye||!Bt)&&!me.prevLine.fencedCodeEnd,Ft=(me.list===!1||be||Ut)&&me.indentation<=et&&Be.match(Ce),qe=null;if(me.indentationDiff>=4&&(Bt||me.prevLine.fencedCodeEnd||me.prevLine.header||Ut))return Be.skipToEnd(),me.indentedCode=!0,De.code;if(Be.eatSpace())return null;if(ht&&me.indentation<=et&&(qe=Be.match(ke))&&qe[1].length<=6)return me.quote=0,me.header=qe[1].length,me.thisLine.header=!0,fe.highlightFormatting&&(me.formatting="header"),me.f=me.inline,St(me);if(me.indentation<=et&&Be.eat(">"))return me.quote=ht?1:me.quote+1,fe.highlightFormatting&&(me.formatting="quote"),Be.eatSpace(),St(me);if(!Ft&&!me.setext&&ht&&me.indentation<=et&&(qe=Be.match(ue))){var Jt=qe[1]?"ol":"ul";return me.indentation=_t+Be.current().length,me.list=!0,me.quote=0,me.listStack.push(me.indentation),me.em=!1,me.strong=!1,me.code=!1,me.strikethrough=!1,fe.taskLists&&Be.match(tt,!1)&&(me.taskList=!0),me.f=me.inline,fe.highlightFormatting&&(me.formatting=["list","list-"+Jt]),St(me)}else{if(ht&&me.indentation<=et&&(qe=Be.match($e,!0)))return me.quote=0,me.fencedEndRE=new RegExp(qe[1]+"+ *$"),me.localMode=fe.fencedCodeBlockHighlighting&&ye(qe[2]||fe.fencedCodeBlockDefaultMode),me.localMode&&(me.localState=b.startState(me.localMode)),me.f=me.block=zt,fe.highlightFormatting&&(me.formatting="code-block"),me.code=-1,St(me);if(me.setext||(!rt||!Ye)&&!me.quote&&me.list===!1&&!me.code&&!Ft&&!Me.test(Be.string)&&(qe=Be.lookAhead(1))&&(qe=qe.match(Lt)))return me.setext?(me.header=me.setext,me.setext=0,Be.skipToEnd(),fe.highlightFormatting&&(me.formatting="header")):(me.header=qe[0].charAt(0)=="="?1:2,me.setext=me.header),me.thisLine.header=!0,me.f=me.inline,St(me);if(Ft)return Be.skipToEnd(),me.hr=!0,me.thisLine.hr=!0,De.hr;if(Be.peek()==="[")return pt(Be,me,Mt)}return pt(Be,me,me.inline)}function Qe(Be,me){var ht=Ge.token(Be,me.htmlState);if(!Oe){var Ut=b.innerMode(Ge,me.htmlState);(Ut.mode.name=="xml"&&Ut.state.tagStart===null&&!Ut.state.context&&Ut.state.tokenize.isInText||me.md_inside&&Be.current().indexOf(">")>-1)&&(me.f=ut,me.block=nt,me.htmlState=null)}return ht}function zt(Be,me){var ht=me.listStack[me.listStack.length-1]||0,Ut=me.indentation<ht,Bt=ht+3;if(me.fencedEndRE&&me.indentation<=Bt&&(Ut||Be.match(me.fencedEndRE))){fe.highlightFormatting&&(me.formatting="code-block");var be;return Ut||(be=St(me)),me.localMode=me.localState=null,me.block=nt,me.f=ut,me.fencedEndRE=null,me.code=0,me.thisLine.fencedCodeEnd=!0,Ut?Rt(Be,me,me.block):be}else return me.localMode?me.localMode.token(Be,me.localState):(Be.skipToEnd(),De.code)}function St(Be){var me=[];if(Be.formatting){me.push(De.formatting),typeof Be.formatting=="string"&&(Be.formatting=[Be.formatting]);for(var ht=0;ht<Be.formatting.length;ht++)me.push(De.formatting+"-"+Be.formatting[ht]),Be.formatting[ht]==="header"&&me.push(De.formatting+"-"+Be.formatting[ht]+"-"+Be.header),Be.formatting[ht]==="quote"&&(!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Be.quote?me.push(De.formatting+"-"+Be.formatting[ht]+"-"+Be.quote):me.push("error"))}if(Be.taskOpen)return me.push("meta"),me.length?me.join(" "):null;if(Be.taskClosed)return me.push("property"),me.length?me.join(" "):null;if(Be.linkHref?me.push(De.linkHref,"url"):(Be.strong&&me.push(De.strong),Be.em&&me.push(De.em),Be.strikethrough&&me.push(De.strikethrough),Be.emoji&&me.push(De.emoji),Be.linkText&&me.push(De.linkText),Be.code&&me.push(De.code),Be.image&&me.push(De.image),Be.imageAltText&&me.push(De.imageAltText,"link"),Be.imageMarker&&me.push(De.imageMarker)),Be.header&&me.push(De.header,De.header+"-"+Be.header),Be.quote&&(me.push(De.quote),!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Be.quote?me.push(De.quote+"-"+Be.quote):me.push(De.quote+"-"+fe.maxBlockquoteDepth)),Be.list!==!1){var Ut=(Be.listStack.length-1)%3;Ut?Ut===1?me.push(De.list2):me.push(De.list3):me.push(De.list1)}return Be.trailingSpaceNewLine?me.push("trailing-space-new-line"):Be.trailingSpace&&me.push("trailing-space-"+(Be.trailingSpace%2?"a":"b")),me.length?me.join(" "):null}function it(Be,me){if(Be.match(at,!0))return St(me)}function ut(Be,me){var ht=me.text(Be,me);if(typeof ht!="undefined")return ht;if(me.list)return me.list=null,St(me);if(me.taskList){var Ut=Be.match(tt,!0)[1]===" ";return Ut?me.taskOpen=!0:me.taskClosed=!0,fe.highlightFormatting&&(me.formatting="task"),me.taskList=!1,St(me)}if(me.taskOpen=!1,me.taskClosed=!1,me.header&&Be.match(/^#+$/,!0))return fe.highlightFormatting&&(me.formatting="header"),St(me);var Bt=Be.next();if(me.linkTitle){me.linkTitle=!1;var be=Bt;Bt==="("&&(be=")"),be=(be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+be+"\\\\]+|\\\\\\\\|\\\\.)"+be;if(Be.match(new RegExp(Ye),!0))return De.linkHref}if(Bt==="`"){var et=me.formatting;fe.highlightFormatting&&(me.formatting="code"),Be.eatWhile("`");var _t=Be.current().length;if(me.code==0&&(!me.quote||_t==1))return me.code=_t,St(me);if(_t==me.code){var rt=St(me);return me.code=0,rt}else return me.formatting=et,St(me)}else if(me.code)return St(me);if(Bt==="\\"&&(Be.next(),fe.highlightFormatting)){var Ft=St(me),qe=De.formatting+"-escape";return Ft?Ft+" "+qe:qe}if(Bt==="!"&&Be.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return me.imageMarker=!0,me.image=!0,fe.highlightFormatting&&(me.formatting="image"),St(me);if(Bt==="["&&me.imageMarker&&Be.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return me.imageMarker=!1,me.imageAltText=!0,fe.highlightFormatting&&(me.formatting="image"),St(me);if(Bt==="]"&&me.imageAltText){fe.highlightFormatting&&(me.formatting="image");var Ft=St(me);return me.imageAltText=!1,me.image=!1,me.inline=me.f=st,Ft}if(Bt==="["&&!me.image)return me.linkText&&Be.match(/^.*?\]/)||(me.linkText=!0,fe.highlightFormatting&&(me.formatting="link")),St(me);if(Bt==="]"&&me.linkText){fe.highlightFormatting&&(me.formatting="link");var Ft=St(me);return me.linkText=!1,me.inline=me.f=Be.match(/\(.*?\)| ?\[.*?\]/,!1)?st:ut,Ft}if(Bt==="<"&&Be.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){me.f=me.inline=Se,fe.highlightFormatting&&(me.formatting="link");var Ft=St(me);return Ft?Ft+=" ":Ft="",Ft+De.linkInline}if(Bt==="<"&&Be.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){me.f=me.inline=Se,fe.highlightFormatting&&(me.formatting="link");var Ft=St(me);return Ft?Ft+=" ":Ft="",Ft+De.linkEmail}if(fe.xml&&Bt==="<"&&Be.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Jt=Be.string.indexOf(">",Be.pos);if(Jt!=-1){var Dt=Be.string.substring(Be.start,Jt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Dt)&&(me.md_inside=!0)}return Be.backUp(1),me.htmlState=b.startState(Ge),Rt(Be,me,Qe)}if(fe.xml&&Bt==="<"&&Be.match(/^\/\w*?>/))return me.md_inside=!1,"tag";if(Bt==="*"||Bt==="_"){for(var ae=1,ne=Be.pos==1?" ":Be.string.charAt(Be.pos-2);ae<3&&Be.eat(Bt);)ae++;var te=Be.peek()||" ",oe=!/\s/.test(te)&&(!Ie.test(te)||/\s/.test(ne)||Ie.test(ne)),ce=!/\s/.test(ne)&&(!Ie.test(ne)||/\s/.test(te)||Ie.test(te)),re=null,le=null;if(ae%2&&(!me.em&&oe&&(Bt==="*"||!ce||Ie.test(ne))?re=!0:me.em==Bt&&ce&&(Bt==="*"||!oe||Ie.test(te))&&(re=!1)),ae>1&&(!me.strong&&oe&&(Bt==="*"||!ce||Ie.test(ne))?le=!0:me.strong==Bt&&ce&&(Bt==="*"||!oe||Ie.test(te))&&(le=!1)),le!=null||re!=null){fe.highlightFormatting&&(me.formatting=re==null?"strong":le==null?"em":"strong em"),re===!0&&(me.em=Bt),le===!0&&(me.strong=Bt);var rt=St(me);return re===!1&&(me.em=!1),le===!1&&(me.strong=!1),rt}}else if(Bt===" "&&(Be.eat("*")||Be.eat("_"))){if(Be.peek()===" ")return St(me);Be.backUp(1)}if(fe.strikethrough){if(Bt==="~"&&Be.eatWhile(Bt)){if(me.strikethrough){fe.highlightFormatting&&(me.formatting="strikethrough");var rt=St(me);return me.strikethrough=!1,rt}else if(Be.match(/^[^\s]/,!1))return me.strikethrough=!0,fe.highlightFormatting&&(me.formatting="strikethrough"),St(me)}else if(Bt===" "&&Be.match(/^~~/,!0)){if(Be.peek()===" ")return St(me);Be.backUp(2)}}if(fe.emoji&&Bt===":"&&Be.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){me.emoji=!0,fe.highlightFormatting&&(me.formatting="emoji");var ge=St(me);return me.emoji=!1,ge}return Bt===" "&&(Be.match(/^ +$/,!1)?me.trailingSpace++:me.trailingSpace&&(me.trailingSpaceNewLine=!0)),St(me)}function Se(Be,me){var ht=Be.next();if(ht===">"){me.f=me.inline=ut,fe.highlightFormatting&&(me.formatting="link");var Ut=St(me);return Ut?Ut+=" ":Ut="",Ut+De.linkInline}return Be.match(/^[^>]+/,!0),De.linkInline}function st(Be,me){if(Be.eatSpace())return null;var ht=Be.next();return ht==="("||ht==="["?(me.f=me.inline=de(ht==="("?")":"]"),fe.highlightFormatting&&(me.formatting="link-string"),me.linkHref=!0,St(me)):"error"}var Je={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(Be){return function(me,ht){var Ut=me.next();if(Ut===Be){ht.f=ht.inline=ut,fe.highlightFormatting&&(ht.formatting="link-string");var Bt=St(ht);return ht.linkHref=!1,Bt}return me.match(Je[Be]),ht.linkHref=!0,St(ht)}}function Mt(Be,me){return Be.match(/^([^\]\\]|\\.)*\]:/,!1)?(me.f=We,Be.next(),fe.highlightFormatting&&(me.formatting="link"),me.linkText=!0,St(me)):pt(Be,me,ut)}function We(Be,me){if(Be.match(/^\]:/,!0)){me.f=me.inline=Pt,fe.highlightFormatting&&(me.formatting="link");var ht=St(me);return me.linkText=!1,ht}return Be.match(/^([^\]\\]|\\.)+/,!0),De.linkText}function Pt(Be,me){return Be.eatSpace()?null:(Be.match(/^[^\s]+/,!0),Be.peek()===void 0?me.linkTitle=!0:Be.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),me.f=me.inline=ut,De.linkHref+" url")}var Xt={startState:function(){return{f:nt,prevLine:{stream:null},thisLine:{stream:null},block:nt,htmlState:null,indentation:0,inline:ut,text:it,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(Be){return{f:Be.f,prevLine:Be.prevLine,thisLine:Be.thisLine,block:Be.block,htmlState:Be.htmlState&&b.copyState(Ge,Be.htmlState),indentation:Be.indentation,localMode:Be.localMode,localState:Be.localMode?b.copyState(Be.localMode,Be.localState):null,inline:Be.inline,text:Be.text,formatting:!1,linkText:Be.linkText,linkTitle:Be.linkTitle,linkHref:Be.linkHref,code:Be.code,em:Be.em,strong:Be.strong,strikethrough:Be.strikethrough,emoji:Be.emoji,header:Be.header,setext:Be.setext,hr:Be.hr,taskList:Be.taskList,list:Be.list,listStack:Be.listStack.slice(0),quote:Be.quote,indentedCode:Be.indentedCode,trailingSpace:Be.trailingSpace,trailingSpaceNewLine:Be.trailingSpaceNewLine,md_inside:Be.md_inside,fencedEndRE:Be.fencedEndRE}},token:function(Be,me){if(me.formatting=!1,Be!=me.thisLine.stream){if(me.header=0,me.hr=!1,Be.match(/^\s*$/,!0))return Te(me),null;if(me.prevLine=me.thisLine,me.thisLine={stream:Be},me.taskList=!1,me.trailingSpace=0,me.trailingSpaceNewLine=!1,!me.localState&&(me.f=me.block,me.f!=Qe)){var ht=Be.match(/^\s*/,!0)[0].replace(/\t/g,Xe).length;if(me.indentation=ht,me.indentationDiff=null,ht>0)return null}}return me.f(Be,me)},innerMode:function(Be){return Be.block==Qe?{state:Be.htmlState,mode:Ge}:Be.localState?{state:Be.localState,mode:Be.localMode}:{state:Be,mode:Xt}},indent:function(Be,me,ht){return Be.block==Qe&&Ge.indent?Ge.indent(Be.htmlState,me,ht):Be.localState&&Be.localMode.indent?Be.localMode.indent(Be.localState,me,ht):b.Pass},blankLine:Te,getType:St,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Xt},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(yn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";b.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 je=0;je<b.modeInfo.length;je++){var fe=b.modeInfo[je];fe.mimes&&(fe.mime=fe.mimes[0])}b.findModeByMIME=function(Ge){Ge=Ge.toLowerCase();for(var Oe=0;Oe<b.modeInfo.length;Oe++){var ye=b.modeInfo[Oe];if(ye.mime==Ge)return ye;if(ye.mimes){for(var De=0;De<ye.mimes.length;De++)if(ye.mimes[De]==Ge)return ye}}if(/\+xml$/.test(Ge))return b.findModeByMIME("application/xml");if(/\+json$/.test(Ge))return b.findModeByMIME("application/json")},b.findModeByExtension=function(Ge){Ge=Ge.toLowerCase();for(var Oe=0;Oe<b.modeInfo.length;Oe++){var ye=b.modeInfo[Oe];if(ye.ext){for(var De=0;De<ye.ext.length;De++)if(ye.ext[De]==Ge)return ye}}},b.findModeByFileName=function(Ge){for(var Oe=0;Oe<b.modeInfo.length;Oe++){var ye=b.modeInfo[Oe];if(ye.file&&ye.file.test(Ge))return ye}var De=Ge.lastIndexOf("."),Ze=De>-1&&Ge.substring(De+1,Ge.length);if(Ze)return b.findModeByExtension(Ze)},b.findModeByName=function(Ge){Ge=Ge.toLowerCase();for(var Oe=0;Oe<b.modeInfo.length;Oe++){var ye=b.modeInfo[Oe];if(ye.name.toLowerCase()==Ge)return ye;if(ye.alias){for(var De=0;De<ye.alias.length;De++)if(ye.alias[De].toLowerCase()==Ge)return ye}}}})},67549:function(yn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";b.defineMode("stex",function(je,fe){"use strict";function Ge(at,$e){at.cmdState.push($e)}function Oe(at){return at.cmdState.length>0?at.cmdState[at.cmdState.length-1]:null}function ye(at){var $e=at.cmdState.pop();$e&&$e.closeBracket()}function De(at){for(var $e=at.cmdState,Me=$e.length-1;Me>=0;Me--){var Ie=$e[Me];if(Ie.name!="DEFAULT")return Ie}return{styleIdentifier:function(){return null}}}function Ze(at,$e,Me){return function(){this.name=at,this.bracketNo=0,this.style=$e,this.styles=Me,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=Ze("importmodule","tag",["string","builtin"]),Ce.documentclass=Ze("documentclass","tag",["","atom"]),Ce.usepackage=Ze("usepackage","tag",["atom"]),Ce.begin=Ze("begin","tag",["atom"]),Ce.end=Ze("end","tag",["atom"]),Ce.label=Ze("label","tag",["atom"]),Ce.ref=Ze("ref","tag",["atom"]),Ce.eqref=Ze("eqref","tag",["atom"]),Ce.cite=Ze("cite","tag",["atom"]),Ce.bibitem=Ze("bibitem","tag",["atom"]),Ce.Bibitem=Ze("Bibitem","tag",["atom"]),Ce.RBibitem=Ze("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ue(at,$e){at.f=$e}function tt(at,$e){var Me;if(at.match(/^\\[a-zA-Z@]+/)){var Ie=at.current().slice(1);return Me=Ce.hasOwnProperty(Ie)?Ce[Ie]:Ce.DEFAULT,Me=new Me,Ge($e,Me),ue($e,Lt),Me.style}if(at.match(/^\\[$&%#{}_]/)||at.match(/^\\[,;!\/\\]/))return"tag";if(at.match("\\["))return ue($e,function(pt,Rt){return ke(pt,Rt,"\\]")}),"keyword";if(at.match("\\("))return ue($e,function(pt,Rt){return ke(pt,Rt,"\\)")}),"keyword";if(at.match("$$"))return ue($e,function(pt,Rt){return ke(pt,Rt,"$$")}),"keyword";if(at.match("$"))return ue($e,function(pt,Rt){return ke(pt,Rt,"$")}),"keyword";var Xe=at.next();if(Xe=="%")return at.skipToEnd(),"comment";if(Xe=="}"||Xe=="]"){if(Me=Oe($e),Me)Me.closeBracket(Xe),ue($e,Lt);else return"error";return"bracket"}else return Xe=="{"||Xe=="["?(Me=Ce.DEFAULT,Me=new Me,Ge($e,Me),"bracket"):/\d/.test(Xe)?(at.eatWhile(/[\w.%]/),"atom"):(at.eatWhile(/[\w\-_]/),Me=De($e),Me.name=="begin"&&(Me.argument=at.current()),Me.styleIdentifier())}function ke(at,$e,Me){if(at.eatSpace())return null;if(Me&&at.match(Me))return ue($e,tt),"keyword";if(at.match(/^\\[a-zA-Z@]+/))return"tag";if(at.match(/^[a-zA-Z]+/))return"variable-2";if(at.match(/^\\[$&%#{}_]/)||at.match(/^\\[,;!\/]/)||at.match(/^[\^_&]/))return"tag";if(at.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(at.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ie=at.next();return Ie=="{"||Ie=="}"||Ie=="["||Ie=="]"||Ie=="("||Ie==")"?"bracket":Ie=="%"?(at.skipToEnd(),"comment"):"error"}function Lt(at,$e){var Me=at.peek(),Ie;return Me=="{"||Me=="["?(Ie=Oe($e),Ie.openBracket(Me),at.eat(Me),ue($e,tt),"bracket"):/[ \t\r]/.test(Me)?(at.eat(Me),null):(ue($e,tt),ye($e),tt(at,$e))}return{startState:function(){var at=fe.inMathMode?function($e,Me){return ke($e,Me)}:tt;return{cmdState:[],f:at}},copyState:function(at){return{cmdState:at.cmdState.slice(),f:at.f}},token:function(at,$e){return $e.f(at,$e)},blankLine:function(at){at.f=tt,at.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(yn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var je={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},fe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};b.defineMode("xml",function(Ge,Oe){var ye=Ge.indentUnit,De={},Ze=Oe.htmlMode?je:fe;for(var Ce in Ze)De[Ce]=Ze[Ce];for(var Ce in Oe)De[Ce]=Oe[Ce];var ue,tt;function ke(Se,st){function Je(We){return st.tokenize=We,We(Se,st)}var de=Se.next();if(de=="<")return Se.eat("!")?Se.eat("[")?Se.match("CDATA[")?Je($e("atom","]]>")):null:Se.match("--")?Je($e("comment","-->")):Se.match("DOCTYPE",!0,!0)?(Se.eatWhile(/[\w\._\-]/),Je(Me(1))):null:Se.eat("?")?(Se.eatWhile(/[\w\._\-]/),st.tokenize=$e("meta","?>"),"meta"):(ue=Se.eat("/")?"closeTag":"openTag",st.tokenize=Lt,"tag bracket");if(de=="&"){var Mt;return Se.eat("#")?Se.eat("x")?Mt=Se.eatWhile(/[a-fA-F\d]/)&&Se.eat(";"):Mt=Se.eatWhile(/[\d]/)&&Se.eat(";"):Mt=Se.eatWhile(/[\w\.\-:]/)&&Se.eat(";"),Mt?"atom":"error"}else return Se.eatWhile(/[^&<]/),null}ke.isInText=!0;function Lt(Se,st){var Je=Se.next();if(Je==">"||Je=="/"&&Se.eat(">"))return st.tokenize=ke,ue=Je==">"?"endTag":"selfcloseTag","tag bracket";if(Je=="=")return ue="equals",null;if(Je=="<"){st.tokenize=ke,st.state=Rt,st.tagName=st.tagStart=null;var de=st.tokenize(Se,st);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(Je)?(st.tokenize=at(Je),st.stringStartCol=Se.column(),st.tokenize(Se,st)):(Se.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function at(Se){var st=function(Je,de){for(;!Je.eol();)if(Je.next()==Se){de.tokenize=Lt;break}return"string"};return st.isInAttribute=!0,st}function $e(Se,st){return function(Je,de){for(;!Je.eol();){if(Je.match(st)){de.tokenize=ke;break}Je.next()}return Se}}function Me(Se){return function(st,Je){for(var de;(de=st.next())!=null;){if(de=="<")return Je.tokenize=Me(Se+1),Je.tokenize(st,Je);if(de==">")if(Se==1){Je.tokenize=ke;break}else return Je.tokenize=Me(Se-1),Je.tokenize(st,Je)}return"meta"}}function Ie(Se,st,Je){this.prev=Se.context,this.tagName=st,this.indent=Se.indented,this.startOfLine=Je,(De.doNotIndent.hasOwnProperty(st)||Se.context&&Se.context.noIndent)&&(this.noIndent=!0)}function Xe(Se){Se.context&&(Se.context=Se.context.prev)}function pt(Se,st){for(var Je;;){if(!Se.context||(Je=Se.context.tagName,!De.contextGrabbers.hasOwnProperty(Je)||!De.contextGrabbers[Je].hasOwnProperty(st)))return;Xe(Se)}}function Rt(Se,st,Je){return Se=="openTag"?(Je.tagStart=st.column(),Ve):Se=="closeTag"?Te:Rt}function Ve(Se,st,Je){return Se=="word"?(Je.tagName=st.current(),tt="tag",zt):De.allowMissingTagName&&Se=="endTag"?(tt="tag bracket",zt(Se,st,Je)):(tt="error",Ve)}function Te(Se,st,Je){if(Se=="word"){var de=st.current();return Je.context&&Je.context.tagName!=de&&De.implicitlyClosed.hasOwnProperty(Je.context.tagName)&&Xe(Je),Je.context&&Je.context.tagName==de||De.matchClosing===!1?(tt="tag",nt):(tt="tag error",Qe)}else return De.allowMissingTagName&&Se=="endTag"?(tt="tag bracket",nt(Se,st,Je)):(tt="error",Qe)}function nt(Se,st,Je){return Se!="endTag"?(tt="error",nt):(Xe(Je),Rt)}function Qe(Se,st,Je){return tt="error",nt(Se,st,Je)}function zt(Se,st,Je){if(Se=="word")return tt="attribute",St;if(Se=="endTag"||Se=="selfcloseTag"){var de=Je.tagName,Mt=Je.tagStart;return Je.tagName=Je.tagStart=null,Se=="selfcloseTag"||De.autoSelfClosers.hasOwnProperty(de)?pt(Je,de):(pt(Je,de),Je.context=new Ie(Je,de,Mt==Je.indented)),Rt}return tt="error",zt}function St(Se,st,Je){return Se=="equals"?it:(De.allowMissing||(tt="error"),zt(Se,st,Je))}function it(Se,st,Je){return Se=="string"?ut:Se=="word"&&De.allowUnquoted?(tt="string",zt):(tt="error",zt(Se,st,Je))}function ut(Se,st,Je){return Se=="string"?ut:zt(Se,st,Je)}return{startState:function(Se){var st={tokenize:ke,state:Rt,indented:Se||0,tagName:null,tagStart:null,context:null};return Se!=null&&(st.baseIndent=Se),st},token:function(Se,st){if(!st.tagName&&Se.sol()&&(st.indented=Se.indentation()),Se.eatSpace())return null;ue=null;var Je=st.tokenize(Se,st);return(Je||ue)&&Je!="comment"&&(tt=null,st.state=st.state(ue||Je,Se,st),tt&&(Je=tt=="error"?Je+" error":tt)),Je},indent:function(Se,st,Je){var de=Se.context;if(Se.tokenize.isInAttribute)return Se.tagStart==Se.indented?Se.stringStartCol+1:Se.indented+ye;if(de&&de.noIndent)return b.Pass;if(Se.tokenize!=Lt&&Se.tokenize!=ke)return Je?Je.match(/^(\s*)/)[0].length:0;if(Se.tagName)return De.multilineTagIndentPastTag!==!1?Se.tagStart+Se.tagName.length+2:Se.tagStart+ye*(De.multilineTagIndentFactor||1);if(De.alignCDATA&&/<!\[CDATA\[/.test(st))return 0;var Mt=st&&/^<(\/)?([\w_:\.-]*)/.exec(st);if(Mt&&Mt[1])for(;de;)if(de.tagName==Mt[2]){de=de.prev;break}else if(De.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(Mt)for(;de;){var We=De.contextGrabbers[de.tagName];if(We&&We.hasOwnProperty(Mt[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+ye:Se.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:De.htmlMode?"html":"xml",helperType:De.htmlMode?"html":"xml",skipAttribute:function(Se){Se.state==it&&(Se.state=zt)},xmlCurrentTag:function(Se){return Se.tagName?{name:Se.tagName,close:Se.type=="closeTag"}:null},xmlCurrentContext:function(Se){for(var st=[],Je=Se.context;Je;Je=Je.prev)Je.tagName&&st.push(Je.tagName);return st.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(yn,Qt,ee){"use strict";ee.d(Qt,{hP:function(){return Dt}});var b=function(ae,ne){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var ce in oe)Object.prototype.hasOwnProperty.call(oe,ce)&&(te[ce]=oe[ce])})(ae,ne)};function je(ae,ne){function te(){this.constructor=ae}b(ae,ne),ae.prototype=ne===null?Object.create(ne):(te.prototype=ne.prototype,new te)}function fe(ae,ne,te,oe){return new(te||(te=Promise))(function(ce,re){function le(Re){try{vt(oe.next(Re))}catch(Ae){re(Ae)}}function ge(Re){try{vt(oe.throw(Re))}catch(Ae){re(Ae)}}function vt(Re){var Ae;Re.done?ce(Re.value):(Ae=Re.value,Ae instanceof te?Ae:new te(function(Ke){Ke(Ae)})).then(le,ge)}vt((oe=oe.apply(ae,ne||[])).next())})}function Ge(ae,ne){var te,oe,ce,re,le={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return re={next:ge(0),throw:ge(1),return:ge(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function ge(vt){return function(Re){return function(Ae){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,oe&&(ce=2&Ae[0]?oe.return:Ae[0]?oe.throw||((ce=oe.return)&&ce.call(oe),0):oe.next)&&!(ce=ce.call(oe,Ae[1])).done)return ce;switch(oe=0,ce&&(Ae=[2&Ae[0],ce.value]),Ae[0]){case 0:case 1:ce=Ae;break;case 4:return le.label++,{value:Ae[1],done:!1};case 5:le.label++,oe=Ae[1],Ae=[0];continue;case 7:Ae=le.ops.pop(),le.trys.pop();continue;default:if(ce=le.trys,!((ce=ce.length>0&&ce[ce.length-1])||Ae[0]!==6&&Ae[0]!==2)){le=0;continue}if(Ae[0]===3&&(!ce||Ae[1]>ce[0]&&Ae[1]<ce[3])){le.label=Ae[1];break}if(Ae[0]===6&&le.label<ce[1]){le.label=ce[1],ce=Ae;break}if(ce&&le.label<ce[2]){le.label=ce[2],le.ops.push(Ae);break}ce[2]&&le.ops.pop(),le.trys.pop();continue}Ae=ne.call(ae,le)}catch(Ke){Ae=[6,Ke],oe=0}finally{te=ce=0}if(5&Ae[0])throw Ae[1];return{value:Ae[0]?Ae[1]:void 0,done:!0}}([vt,Re])}}}function Oe(){for(var ae=0,ne=0,te=arguments.length;ne<te;ne++)ae+=arguments[ne].length;var oe=Array(ae),ce=0;for(ne=0;ne<te;ne++)for(var re=arguments[ne],le=0,ge=re.length;le<ge;le++,ce++)oe[ce]=re[le];return oe}var ye=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ne,te){for(var oe=0,ce=te;oe<ce.length;oe++){var re=ce[oe],le=re[0],ge=re[1];ne.setAttribute(le,ge)}},ae.createRect=function(ne,te,oe){var ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return ce.setAttribute("width",ne.toString()),ce.setAttribute("height",te.toString()),oe&&ae.setAttributes(ce,oe),ce},ae.createLine=function(ne,te,oe,ce,re){var le=document.createElementNS("http://www.w3.org/2000/svg","line");return le.setAttribute("x1",ne.toString()),le.setAttribute("y1",te.toString()),le.setAttribute("x2",oe.toString()),le.setAttribute("y2",ce.toString()),re&&ae.setAttributes(le,re),le},ae.createPolygon=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",ne),te&&ae.setAttributes(oe,te),oe},ae.createCircle=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(ne/2).toString()),oe.setAttribute("cy",(ne/2).toString()),oe.setAttribute("r",ne.toString()),te&&ae.setAttributes(oe,te),oe},ae.createEllipse=function(ne,te,oe){var ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ce.setAttribute("cx",(ne/2).toString()),ce.setAttribute("cy",(te/2).toString()),ce.setAttribute("rx",(ne/2).toString()),ce.setAttribute("ry",(te/2).toString()),oe&&ae.setAttributes(ce,oe),ce},ae.createGroup=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","g");return ne&&ae.setAttributes(te,ne),te},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(ne,te,oe,ce,re,le,ge){var vt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(vt,[["id",ne],["orient",te],["markerWidth",oe.toString()],["markerHeight",ce.toString()],["refX",re.toString()],["refY",le.toString()]]),vt.appendChild(ge),vt},ae.createText=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","text");return te.setAttribute("x","0"),te.setAttribute("y","0"),ne&&ae.setAttributes(te,ne),te},ae.createTSpan=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=ne,te&&ae.setAttributes(oe,te),oe},ae.createImage=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","image");return ne&&ae.setAttributes(te,ne),te},ae.createPoint=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=ne,oe.y=te,oe},ae.createPath=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",ne),te&&ae.setAttributes(oe,te),oe},ae}(),De=function(){function ae(){}return ae.addKey=function(ne){ae.key=ne},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),Ze=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(ne,te,oe){var ce=this;return new Promise(function(re){var le=oe!==void 0?oe:document.createElement("canvas");ne===null&&(ce.markersOnly=!0,ce.naturalSize=!1);var ge=document.createElementNS("http://www.w3.org/2000/svg","svg");ge.setAttribute("xmlns","http://www.w3.org/2000/svg"),ge.setAttribute("width",te.width.baseVal.valueAsString),ge.setAttribute("height",te.height.baseVal.valueAsString),ge.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),ge.innerHTML=te.innerHTML,ce.naturalSize===!0?(ge.width.baseVal.value=ne.naturalWidth,ge.height.baseVal.value=ne.naturalHeight):ce.width!==void 0&&ce.height!==void 0&&(ge.width.baseVal.value=ce.width,ge.height.baseVal.value=ce.height),le.width=ge.width.baseVal.value,le.height=ge.height.baseVal.value;var vt=ge.outerHTML,Re=le.getContext("2d");ce.markersOnly!==!0&&Re.drawImage(ne,0,0,le.width,le.height);var Ae=window.URL,Ke=new Image(le.width,le.height);Ke.setAttribute("crossOrigin","anonymous");var _e=new Blob([vt],{type:"image/svg+xml"}),gt=Ae.createObjectURL(_e);Ke.onload=function(){Re.drawImage(Ke,0,0),Ae.revokeObjectURL(gt);var we=le.toDataURL(ce.imageType,ce.imageQuality);re(we)},Ke.src=gt})},ae}(),Ce=function(){},ue=function(){function ae(ne){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ne+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.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(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(ne){return this.styleSheet===void 0&&this.addStyleSheet(),ne.name=""+this.classNamePrefix+ne.localName,this.classes.push(ne),this.styleSheet.sheet.insertRule("."+ne.name+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length),ne},ae.prototype.addRule=function(ne){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ne),this.styleSheet.sheet.insertRule(ne.selector+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var ne;this.styleSheet=document.createElement("style"),((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).appendChild(this.styleSheet),this.addRule(new tt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ke("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ke("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ae.prototype.removeStyleSheet=function(){var ne;this.styleSheet&&(((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),tt=function(ae,ne){this.selector=ae,this.style=ne},ke=function(ae,ne){this.localName=ae,this.style=ne},Lt=function(){function ae(ne,te,oe,ce,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=te,this.markerItems=oe,this.uiStyleSettings=ce,this.styles=re,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(ne){var te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,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(re){var le=document.createElement("div");le.className=""+te.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",re.typeName),le.innerHTML=re.icon,le.addEventListener("click",function(){te.markerToolbarButtonClicked(le,re)}),te.buttons.push(le),te.markerButtons.push(le)}),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 ce=document.createElement("div");ce.className=this.toolbarBlockStyleClass.name,ce.style.whiteSpace="nowrap",ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ce),this.addActionButton(ce,'<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(ce,'<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()},ae.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},ae.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ne=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var te=0;te<this.markerButtons.length;te++)te<ne||te===ne&&this.markerButtons.length-1===ne?this.markerButtonBlock.appendChild(this.markerButtons[te]):(te===ne&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[te]))}},ae.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")},ae.prototype.resetButtonStyles=function(){var ne=this;this.buttons.forEach(function(te){te.className=te.className.replace(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name,"").trim(),te.className=te.className.replace(ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ne.toolbarActiveButtonStyleColorsClass.name,"").trim(),te.className+=" "+(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(ne,te,oe){var ce=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=te,re.setAttribute("data-action",oe),re.addEventListener("click",function(){ce.actionToolbarButtonClicked(re,oe)}),oe){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(re),this.buttons.push(re)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ke("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 ke("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ke("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ke("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 ke("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ke("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
|
|
|
padding: `+ne+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ke("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ke("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ae.prototype.markerToolbarButtonClicked=function(ne,te){this.setActiveButton(ne),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ne,te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ne){this.resetButtonStyles(),ne.className=ne.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ne.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ne){var te=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ne});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(ne){var te=this;this.currentMarker=ne,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){te.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),at=function(){function ae(ne,te,oe,ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=te,this.uiStyleSettings=oe,this.styles=ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new ke("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 ke("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ke("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ke("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ke("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 ke("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ke("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
padding: `+te+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ke("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ke("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ae.prototype.show=function(ne){var te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolboxStyleClass.name+" "+((te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ne){var te,oe,ce=this;this.panels=ne,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((te=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&te!==void 0?te: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(re){var le;re.uiStyleSettings=ce.uiStyleSettings;var ge=document.createElement("div");ge.className=ce.toolboxButtonStyleClass.name+" "+((le=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:ce.toolboxButtonStyleColorsClass.name),ge.innerHTML=re.icon,ge.title=re.title,ge.addEventListener("click",function(){ce.panelButtonClick(re)}),ce.panelButtons.push(ge),ce.buttonRow.appendChild(ge)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ne){var te=this,oe=-1;if(ne!==this.activePanel){oe=this.panels.indexOf(ne),this.panelRow.innerHTML="";var ce=ne.getUi();ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ce),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=ne}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){te.displayMode==="inline"?te.panelRow.style.display="none":te.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,le){var ge,vt;re.className=te.toolboxButtonStyleClass.name+" "+(le===oe?""+((ge=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ge!==void 0?ge:te.toolboxActiveButtonStyleColorsClass.name):""+((vt=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:te.toolboxButtonStyleColorsClass.name))})},ae}(),$e=function(ae,ne){this.title=ae,this.icon=ne},Me=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<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 le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=oe,le.currentColor=ce,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return je(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ce){var re=te.getColorBox(ce);oe.appendChild(re),te.colorBoxes.push(re)}),oe},ne.prototype.getColorBox=function(te){var oe=this,ce=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-ce,le=document.createElement("div");le.style.display="inline-block",le.style.boxSizing="content-box",le.style.width=re-2+"px",le.style.height=re-2+"px",le.style.padding="1px",le.style.marginRight="2px",le.style.marginBottom="2px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderRadius=(re+2)/2+"px",le.style.borderColor=te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){oe.setCurrentColor(te,le)});var ge=document.createElement("div");return ge.style.display="inline-block",ge.style.width=re-2+"px",ge.style.height=re-2+"px",ge.style.backgroundColor=te,ge.style.borderRadius=re/2+"px",te==="transparent"&&(ge.style.fill=this.uiStyleSettings.toolboxAccentColor,ge.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>`),le.appendChild(ge),le},ne.prototype.setCurrentColor=function(te,oe){var ce=this;this.currentColor=te,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},ne}($e),Ie=function(){function ae(ne,te,oe){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=te,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(ne){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(ne,te){},ae.prototype.dblClick=function(ne,te){},ae.prototype.manipulate=function(ne){},ae.prototype.pointerUp=function(ne){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},ae.prototype.scale=function(ne,te){},ae.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},ae.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ne=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ne.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ne)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Xe=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ne){return this.topLeft.ownsTarget(ne)?this.topLeft:this.topCenter.ownsTarget(ne)?this.topCenter:this.topRight.ownsTarget(ne)?this.topRight:this.centerLeft.ownsTarget(ne)?this.centerLeft:this.centerRight.ownsTarget(ne)?this.centerRight:this.bottomLeft.ownsTarget(ne)?this.bottomLeft:this.bottomCenter.ownsTarget(ne)?this.bottomCenter:this.bottomRight.ownsTarget(ne)?this.bottomRight:void 0},ae}(),pt=function(){function ae(){this.GRIP_SIZE=10,this.visual=ye.createGroup(),this.visual.appendChild(ye.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ye.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},ae}(),Rt=function(){function ae(){}return ae.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},ae.toSVGMatrix=function(ne,te){return ne.a=te.a,ne.b=te.b,ne.c=te.c,ne.d=te.d,ne.e=te.e,ne.f=te.f,ne},ae}(),Ve=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(ye.createTransform()),re.setupControlBox(),re}return je(ne,ae),Object.defineProperty(ne.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"visual",{get:function(){return this._visual},set:function(te){this._visual=te;var oe=ye.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!!(this.controlGrips.findGripByVisual(te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te))},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.left=te.x,this.top=te.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ce=this.unrotatePoint(te);if(this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.offsetX=ce.x-this.left,this.offsetY=ce.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 re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.prototype.pointerUp=function(te){var oe=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(te),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ne.prototype.moveVisual=function(te){this.visual.style.transform="translate("+te.x+"px, "+te.y+"px)"},ne.prototype.manipulate=function(te){var oe=this.unrotatePoint(te);this.state==="creating"?this.resize(te):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(te)},ne.prototype.resize=function(te){var oe=this.manipulationStartLeft,ce=this.manipulationStartWidth,re=this.manipulationStartTop,le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+te.x-this.manipulationStartX,ce=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ce=this.manipulationStartWidth+te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+te.y-this.manipulationStartY,le=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:le=this.manipulationStartHeight+te.y-this.manipulationStartY}ce>=0?(this.left=oe,this.width=ce):(this.left=oe+ce,this.width=-ce),le>=0?(this.top=re,this.height=le):(this.top=re+le,this.height=-le),this.setSize()},ne.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ne.prototype.rotate=function(te){if(Math.abs(te.x-this.centerX)>.1){var oe=Math.sign(te.x-this.centerX);this.rotationAngle=180*Math.atan((te.y-this.centerY)/(te.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},ne.prototype.applyRotation=function(){var te=this.container.transform.baseVal.getItem(0);te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(te,0)},ne.prototype.rotatePoint=function(te){if(this.rotationAngle===0)return te;var oe=this.container.getCTM(),ce=ye.createPoint(te.x,te.y);return{x:(ce=ce.matrixTransform(oe)).x,y:ce.y}},ne.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var oe=this.container.getCTM();oe=oe.inverse();var ce=ye.createPoint(te.x,te.y);return{x:(ce=ce.matrixTransform(oe)).x,y:ce.y}},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=ye.createGroup();var te=ye.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=ye.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=ye.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 Xe,this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){var te=this.controlBox.transform.baseVal.getItem(0);te.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(te,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()},ne.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()},ne.prototype.createGrip=function(){var te=new pt;return te.visual.transform.baseVal.appendItem(ye.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,oe=-te/2,ce=oe,re=(this.width+this.CB_DISTANCE)/2-te/2,le=(this.height+this.CB_DISTANCE)/2-te/2,ge=this.height+this.CB_DISTANCE-te/2,vt=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ce),this.positionGrip(this.controlGrips.topCenter.visual,re,ce),this.positionGrip(this.controlGrips.topRight.visual,vt,ce),this.positionGrip(this.controlGrips.centerLeft.visual,oe,le),this.positionGrip(this.controlGrips.centerRight.visual,vt,le),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,ge),this.positionGrip(this.controlGrips.bottomCenter.visual,re,ge),this.positionGrip(this.controlGrips.bottomRight.visual,vt,ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,ce-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(te,oe,ce){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,ce),te.transform.baseVal.replaceItem(re,0)},ne.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ne.prototype.showControlBox=function(){this.controlBox.style.display=""},ne.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Rt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Rt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;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(Rt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Rt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe);var ce=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:ce.x*te,y:ce.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*te,this.height=this.height*oe,this.adjustControlBox()},ne}(Ie),Te=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=ye.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)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),ye.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&ye.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&ye.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&ye.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&ye.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){var oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.title="Rectangle marker",ne}(Ve),nt=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return le.widths=[],le.widthBoxes=[],le.widths=oe,le.currentWidth=ce,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return je(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ce){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ce===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentWidth(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=ce.toString(),le.style.marginRight="5px",re.appendChild(le);var ge=document.createElement("div");ge.style.minHeight="20px",ge.style.flexGrow="2",ge.style.display="flex",ge.style.alignItems="center";var vt=document.createElement("hr");vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop=ce+"px solid "+te.uiStyleSettings.toolboxColor,vt.style.flexGrow="2",ge.appendChild(vt),re.appendChild(ge),te.widthBoxes.push(re)}),oe},ne.prototype.setCurrentWidth=function(te,oe){var ce=this;this.currentWidth=te,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}($e),Qe=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<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 le.styles=[],le.styleBoxes=[],le.styles=oe,le.currentStyle=ce,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return je(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.styles.length-5+"%",re.style.borderColor=ce===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentStyle(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var ge=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ce!==""?'stroke-dasharray="'+ce+'"':"")+` />
|
|
|
</svg>`;le.innerHTML=ge,re.appendChild(le),te.styleBoxes.push(re)}),oe},ne.prototype.setCurrentStyle=function(te,oe){var ce=this;this.currentStyle=te,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}($e),zt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new Me("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Qe("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return je(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="FrameMarker",ne.title="Frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ne}(Te),St=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"},it=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!(!this.grip1.ownsTarget(te)&&!this.grip2.ownsTarget(te))},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.manipulationStartX=te.x,this.manipulationStartY=te.y,this.state==="new"&&(this.x1=te.x,this.y1=te.y,this.x2=te.x,this.y2=te.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")},ne.prototype.pointerUp=function(te){var oe=this.state;ae.prototype.pointerUp.call(this,te),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(te),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ne.prototype.adjustVisual=function(){},ne.prototype.manipulate=function(te){this.state==="creating"?this.resize(te):this.state==="move"?(this.x1=this.manipulationStartX1+te.x-this.manipulationStartX,this.y1=this.manipulationStartY1+te.y-this.manipulationStartY,this.x2=this.manipulationStartX2+te.x-this.manipulationStartX,this.y2=this.manipulationStartY2+te.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(te)},ne.prototype.resize=function(te){switch(this.activeGrip){case this.grip1:this.x1=te.x,this.y1=te.y;break;case this.grip2:case void 0:this.x2=te.x,this.y2=te.y}this.adjustVisual(),this.adjustControlBox()},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=ye.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){this.positionGrips()},ne.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ne.prototype.createGrip=function(){var te=new pt;return te.visual.transform.baseVal.appendItem(ye.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-te/2,this.y1-te/2),this.positionGrip(this.grip2.visual,this.x2-te/2,this.y2-te/2)},ne.prototype.positionGrip=function(te,oe,ce){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,ce),te.transform.baseVal.replaceItem(re,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.x1=this.x1*te,this.y1=this.y1*oe,this.x2=this.x2*te,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},ne}(Ie),ut=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new Me("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Qe("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorLine&&te!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=ye.createGroup(),this.selectorLine=ye.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ye.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)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ne.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()),ye.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ye.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ye.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},ne.typeName="LineMarker",ne.title="Line marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ne}(it),Se=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<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 le.fonts=[],le.fontBoxes=[],le.fonts=oe,le.currentFont=ce,le.setCurrentFont=le.setCurrentFont.bind(le),le}return je(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ce){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.fonts.length-5+"%",re.style.borderColor=ce===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentFont(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=ce,le.style.overflow="hidden";var ge=document.createElement("div");ge.style.whiteSpace="nowrap",ge.style.overflow="hidden",ge.style.textOverflow="ellipsis",ge.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(ge),re.appendChild(le),te.fontBoxes.push(re)}),oe},ne.prototype.setCurrentFont=function(te,oe){var ce=this;this.currentFont=te,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}($e),st=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=ce.defaultColor,re.fontFamily=ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new Me("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Se("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return je(ne,ae),ne.prototype.ownsTarget=function(te){if(ae.prototype.ownsTarget.call(this,te)||te===this.visual||te===this.textElement||te===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ce){ce===te&&(oe=!0)}),oe},ne.prototype.createVisual=function(){this.visual=ye.createGroup(),this.bgRectangle=ye.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ye.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ye.createTransform()),this.textElement.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.renderText=function(){var te=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){te.textElement.appendChild(ye.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var te=this.textElement.getBBox(),oe=1;if(te.width>0&&te.height>0){var ce=(1*this.width-this.width*this.padding*2/100)/te.width,re=(1*this.height-this.height*this.padding*2/100)/te.height;oe=Math.min(ce,re)}return oe},ne.prototype.getTextPosition=function(te){var oe=this.textElement.getBBox(),ce=0,re=0;return oe.width>0&&oe.height>0&&(ce=(this.width-oe.width*te)/2,re=this.height/2-oe.height*te/2),{x:ce,y:re}},ne.prototype.sizeText=function(){var te=this.textElement.getBBox(),oe=this.getTextScale(),ce=this.getTextPosition(oe);ce.y-=te.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ce.x+"px, "+ce.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ce.x,ce.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ye.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ye.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(te){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,te),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.showTextEditor=function(){var te=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(te.textEditor.style.fontSize);te.textEditor.clientWidth>=Number.parseInt(te.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,te.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 ce=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(ce)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){te.textEditDivClicked(te.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ne.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var te=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ce=this.textElement.getBBox(),re={x:ce.width*te,y:ce.height*te};oe.x-=re.x/2,oe.y-=re.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*te,12)+"px",this.textElement.style.display="none"}},ne.prototype.textEditDivClicked=function(te){this.text=te.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ne.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ne.prototype.dblClick=function(te,oe){ae.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setColor=function(te){this.textElement&&ye.setAttributes(this.textElement,[["fill",te]]),this.color=te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(te)},ne.prototype.setFont=function(te){this.textElement&&ye.setAttributes(this.textElement,[["font-family",te]]),this.fontFamily=te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ne.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ne.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var oe=te;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},ne.typeName="TextMarker",ne.title="Text marker",ne.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>',ne}(Ve),Je=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=ce.defaultColor,re.lineWidth=ce.defaultStrokeWidth,re.pixelRatio=ce.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new Me("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new nt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=ye.createGroup(),this.drawingImage=ye.createImage(),this.visual.appendChild(this.drawingImage);var te=ye.createTransform();this.visual.transform.baseVal.appendItem(te),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,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(te.x,te.y),this.drawing=!0):ae.prototype.pointerDown.call(this,te,oe)},ne.prototype.manipulate=function(te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(te.x,te.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),ye.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ye.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,te)},ne.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)},ne.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ne.prototype.finishCreation=function(){for(var te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ce=oe[0],re=oe[1],le=oe[2],ge=oe[3],vt=!1,Re=0;Re<this.canvasElement.height;Re++)for(var Ae=0;Ae<this.canvasElement.width;Ae++)te.data[Re*this.canvasElement.width*4+4*Ae+3]>0&&(vt=!0,Re<re&&(re=Re),Ae<ce&&(ce=Ae),Re>ge&&(ge=Re),Ae>le&&(le=Ae));if(vt){this.left=ce/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(le-ce)/this.pixelRatio,this.height=(ge-re)/this.pixelRatio;var Ke=document.createElement("canvas");Ke.width=le-ce,Ke.height=ge-re,Ke.getContext("2d").putImageData(this.canvasContext.getImageData(ce,re,le-ce,ge-re),0,0),this.drawingImgUrl=Ke.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){ye.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ye.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ne.prototype.setColor=function(te){this.color=te,this.colorChanged(te)},ne.prototype.setLineWidth=function(te){this.lineWidth=te},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){this.createVisual(),ae.prototype.restoreState.call(this,te),this.drawingImgUrl=te.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setDrawingImage()},ne.typeName="FreehandMarker",ne.title="Freehand marker",ne.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>',ne}(Ve),de=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return je(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ce=function(ge){var vt="both";switch(ge){case 0:vt="both";break;case 1:vt="start";break;case 2:vt="end";break;case 3:vt="none"}var Re=document.createElement("div");if(Re.style.display="flex",Re.style.flexGrow="2",Re.style.alignItems="center",Re.style.justifyContent="space-between",Re.style.padding="5px",Re.style.borderWidth="2px",Re.style.borderStyle="solid",Re.style.borderColor=vt===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Re.addEventListener("click",function(){te.setCurrentType(vt,Re)}),oe.appendChild(Re),vt==="both"||vt==="start"){var Ae=document.createElement("div");Ae.style.display="flex",Ae.style.alignItems="center",Ae.style.minHeight="20px",Ae.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ae.style.marginLeft="5px",Re.appendChild(Ae)}var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.style.flexGrow="2";var _e=document.createElement("hr");if(_e.style.minWidth="20px",_e.style.border="0px",_e.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),_e.style.flexGrow="2",Ke.appendChild(_e),Re.appendChild(Ke),vt==="both"||vt==="end"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,gt.style.marginRight="5px",Re.appendChild(gt)}re.typeBoxes.push(Re)},re=this,le=0;le<4;le++)ce(le);return oe},ne.prototype.setCurrentType=function(te,oe){var ce=this;this.currentType=te,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}($e),Mt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new de("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.arrow1&&te!==this.arrow2)},ne.prototype.getArrowPoints=function(te,oe){var ce=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return te-ce/2+","+(oe+re/2)+" "+te+","+(oe-re/2)+" "+(te+ce/2)+","+(oe+re/2)},ne.prototype.createTips=function(){this.arrow1=ye.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ye.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ye.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.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",ye.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ye.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var te=0;Math.abs(this.x1-this.x2)>.1&&(te=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(te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var ce=this.arrow2.transform.baseVal.getItem(0);ce.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ce,0)}},ne.prototype.setArrowType=function(te){this.arrowType=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},ne.typeName="ArrowMarker",ne.title="Arrow marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ne}(ut),We=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor=ce.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Me("Color",ce.defaultColorSet,ce.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return je(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="CoverMarker",ne.title="Cover marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ne}(Te),Pt=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<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 le.opacities=[],le.opacityBoxes=[],le.opacities=oe,le.currentOpacity=ce,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return je(ne,ae),ne.prototype.getUi=function(){var te=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(ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ce===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentOpacity(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=100*ce+"%",re.appendChild(le),te.opacityBoxes.push(re)}),oe},ne.prototype.setCurrentOpacity=function(te,oe){var ce=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}($e),Xt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=ce.defaultHighlightColor,re.strokeWidth=0,re.opacity=ce.defaultHighlightOpacity,re.fillPanel=new Me("Color",ce.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new Pt("Opacity",ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return je(ne,ae),ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&ye.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="HighlightMarker",ne.title="Highlight marker",ne.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>',ne}(We),Be='<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>',me='<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>',ht=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=ce.defaultStrokeColor,re.bgColor=ce.defaultFillColor,re.fontFamily=ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new Me("Text color",ce.defaultColorSet,re.color,Be),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Me("Fill color",ce.defaultColorSet,re.bgColor,me),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Se("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new pt,re.tipGrip.visual.transform.baseVal.appendItem(ye.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return ae.prototype.ownsTarget.call(this,te)||this.tipGrip.ownsTarget(te)||this.tip===te},ne.prototype.createTip=function(){ye.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ye.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(te,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,te,oe)},ne.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,te);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,te),this.setTipPoints(oe),this.positionTip()}},ne.prototype.manipulate=function(te){if(this.tipMoving){var oe=this.unrotatePoint(te);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,te)},ne.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(ye.setAttributes(this.bgRectangle,[["fill",te]]),ye.setAttributes(this.tip,[["fill",te]])),this.bgColor=te,this.fillColorChanged(te)},ne.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},ne.prototype.setTipPoints=function(te){te===void 0&&(te=!1);var oe=Math.min(this.height/2,15),ce=this.height/5;te&&(this.tipPosition={x:oe+ce/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+ce,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ce,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?re<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ce,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-ce},this.tipBase2Position={x:this.width,y:this.height-oe}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-ce})},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.positionTip()},ne.prototype.positionTip=function(){ye.setAttributes(this.tip,[["points",this.getTipPoints()]]);var te=this.tipGrip.visual.transform.baseVal.getItem(0);te.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(te,0)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},ne.prototype.getState=function(){var te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var oe=te;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,te),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.tipPosition={x:this.tipPosition.x*te,y:this.tipPosition.y*oe},this.positionTip()},ne.typeName="CalloutMarker",ne.title="Callout marker",ne.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>',ne}(st),Ut=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.fillColor=ce.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new Me("Line color",Oe(ce.defaultColorSet,["transparent"]),ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Me("Fill color",Oe(ce.defaultColorSet,["transparent"]),re.fillColor,me),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new nt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Qe("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new Pt("Opacity",ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=ye.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)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),ye.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&ye.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&ye.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&ye.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&ye.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&ye.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){var oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.typeName="EllipseMarker",ne.title="Ellipse marker",ne.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>',ne}(Ve),Bt=function(ae){function ne(te,oe,ce){return ae.call(this,te,oe,ce)||this}return je(ne,ae),Object.defineProperty(ne.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.tip1&&te!==this.tip2)},ne.prototype.createTips=function(){this.tip1=ye.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(ye.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ye.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(ye.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ye.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()]]),ye.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 te=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(te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var ce=this.tip2.transform.baseVal.getItem(0);ce.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ce,0)}},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te),this.createTips(),this.adjustVisual()},ne.typeName="MeasurementMarker",ne.title="Measurement marker",ne.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>',ne}(ut),be=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokePanel.colors=ce.defaultColorSet,re.fillColor="transparent",re}return je(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="EllipseFrameMarker",ne.title="Ellipse frame marker",ne.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>',ne}(Ut),Ye=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(ne){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ne)||(this.undoStack.push(ne),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ne)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var ne=this.undoStack.pop();return ne!==void 0&&this.redoStack.push(ne),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),et=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new Me("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new nt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Qe("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorCurve&&te!==this.visibleCurve&&!this.curveGrip.ownsTarget(te))},ne.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ne.prototype.createVisual=function(){this.visual=ye.createGroup(),this.selectorCurve=ye.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ye.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)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=te.x,this.curveY=te.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ne.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ye.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ye.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ye.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=ye.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ye.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)},ne.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ne.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var te=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-te/2,this.curveY-te/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()))},ne.prototype.manipulate=function(te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+te.y-this.manipulationStartY),ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){this.activeGrip===this.curveGrip&&(this.curveX=te.x,this.curveY=te.y),ae.prototype.resize.call(this,te),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual()},ne.prototype.scale=function(te,oe){this.curveX=this.curveX*te,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,te,oe)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},ne.typeName="CurveMarker",ne.title="Curve marker",ne.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>',ne}(it),_t=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.fillColor=ce.defaultFillColor,re.textColor=ce.defaultStrokeColor,re.fontFamily=ce.defaultFontFamily,re.fontSize=ce.defaultCaptionFontSize,re.captionText=ce.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new Me("Line color",Oe(ce.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Me("Fill color",Oe(ce.defaultColorSet,["transparent"]),re.fillColor,me),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new nt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Qe("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Se("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Me("Text color",ce.defaultColorSet,re.textColor,Be),re.textColorPanel.onColorChanged=re.setTextColor,re}return je(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.frame&&te!==this.captionBg&&te!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=ye.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ye.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ye.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=ye.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()},ne.prototype.setCaptionText=function(te){this.captionText=te,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.sizeCaption=function(){var te=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=te.width+2*this.PADDING,this.captionBoxHeight=te.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ye.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')"]]),ye.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')"]])},ne.prototype.showTextEditor=function(){var te=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"&&te.finishTextEditing(te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){te.finishTextEditing(te.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){te.finishTextEditing(te.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ne.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"))},ne.prototype.finishTextEditing=function(te){this.setCaptionText(te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ne.prototype.setFont=function(te){this.captionElement&&ye.setAttributes(this.captionElement,[["font-family",te]]),this.fontFamily=te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ne.prototype.setTextColor=function(te){this.captionElement&&ye.setAttributes(this.captionElement,[["fill",te]]),this.textColor=te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),ye.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.dblClick=function(te,oe){ae.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&ye.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&ye.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&ye.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&ye.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=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},ae.prototype.getState.call(this));return te.typeName=this.typeName,te},ne.prototype.restoreState=function(te){var oe=te;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(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.typeName="CaptionFrameMarker",ne.title="Caption frame marker",ne.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>',ne}(Ve),rt=function(){function ae(ne,te){te===void 0&&(te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,this.cancelable=te}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Ft=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,!1)||this;return re.dataUrl=oe,re.state=ce,re}return je(ne,ae),ne}(rt),qe=function(ae){function ne(te,oe,ce){ce===void 0&&(ce=!1);var re=ae.call(this,te,ce)||this;return re.marker=oe,re}return je(ne,ae),ne}(rt),Jt=function(){function ae(){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 ae.prototype.addEventListener=function(ne,te){this[ne].push(te)},ae.prototype.removeEventListener=function(ne,te){var oe=this[ne].indexOf(te);oe>-1&&this[ne].splice(oe,1)},ae}(),Dt=function(){function ae(ne){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new St,this._isOpen=!1,this.undoRedoManager=new Ye,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 Jt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new ue(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ne,this.targetRoot=document.body,this.width=ne.clientWidth,this.height=ne.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(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[zt,Je,Mt,st,be,Ut,Xt,ht,Bt,We,ut,et,_t]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[zt,Je,Mt,st,Ut,Xt,ht]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[zt,Je,Mt,st,Xt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ne){var te=this;this._availableMarkerTypes.splice(0),ne.forEach(function(oe){if(typeof oe=="string"){var ce=te.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});ce!==void 0&&te._availableMarkerTypes.push(ce)}else te._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ne){this._zoomLevel=ne,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(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),De.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&Ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ce.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new rt(ne))})},ae.prototype.render=function(){return fe(this,void 0,void 0,function(){var ne;return Ge(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(ne=new Ze).naturalSize=this.renderAtNaturalSize,ne.imageType=this.renderImageType,ne.imageQuality=this.renderImageQuality,ne.markersOnly=this.renderMarkersOnly,ne.width=this.renderWidth,ne.height=this.renderHeight,[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return te.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,te.sent()]}})})},ae.prototype.close=function(ne){var te=this;if(ne===void 0&&(ne=!1),this.isOpen){var oe=!1;ne||this.eventListeners.beforeclose.forEach(function(ce){var re=new rt(te,!0);ce(re),re.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(ce){return ce(new rt(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];(ne=this._availableMarkerTypes).push.apply(ne,te)},ae.prototype.addRenderEventListener=function(ne){this.addEventListener("render",function(te){ne(te.dataUrl,te.state)})},ae.prototype.removeRenderEventListener=function(ne){},ae.prototype.addCloseEventListener=function(ne){this.addEventListener("close",function(){ne()})},ae.prototype.removeCloseEventListener=function(ne){},ae.prototype.setupResizeObserver=function(){var ne=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ne.resize(ne.target.clientWidth,ne.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ne.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var ne=1*this.target.clientWidth/this.target.clientHeight,te=this.editorCanvas.clientWidth/ne>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ne:this.editorCanvas.clientWidth,oe=te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(te,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ne,te){this._isResizing=!0;var oe=ne/this.imageWidth,ce=te/this.imageHeight;this.imageWidth=Math.round(ne),this.imageHeight=Math.round(te),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,ce),this._isResizing=!1},ae.prototype.scaleMarkers=function(ne,te){var oe,ce=this;this._currentMarker&&this._currentMarker instanceof st?this._currentMarker.scale(ne,te):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==ce._currentMarker&&re.scale(ne,te)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.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"},ae.prototype.setTopLeft=function(){var ne=this.editingTarget.getBoundingClientRect(),te=this.editorCanvas.getBoundingClientRect();this.left=ne.left-te.left,this.top=ne.top-te.top},ae.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)},ae.prototype.addDefs=function(){for(var ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];this.defs=ye.createDefs(),this.addDefsToImage(),(ne=this.defs).append.apply(ne,te)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.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)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.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)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.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)},ae.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 ne=document.createElement("a");ne.href="https://markerjs.com/",ne.target="_blank",ne.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>',ne.title="Powered by marker.js",ne.style.display="grid",ne.style.alignItems="center",ne.style.justifyItems="center",ne.style.padding="3px",ne.style.width="20px",ne.style.height="20px",this.logoUI.appendChild(ne),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.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")},ae.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"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.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 ne=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=ne+"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 Lt(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 at(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(ne){this.markerImage.removeChild(ne.container),this.markers.indexOf(ne)>-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.dispose()},ae.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())},ae.prototype.toolbarButtonClicked=function(ne,te){if(ne==="marker"&&te!==void 0)this.createNewMarker(te);else if(ne==="action")switch(te){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()}},ae.prototype.deleteSelectedMarker=function(){var ne=this;if(this._currentMarker!==void 0){var te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ce){var re=new qe(ne,ne._currentMarker,!0);ce(re),re.defaultPrevented&&(te=!0)}),!te){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(ce){return ce(new qe(ne,oe))})}}},ae.prototype.clear=function(){var ne=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var ge=new qe(ne,void 0,!0);le(ge),ge.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var oe=function(le){var ge=ce.markers[le];ce.setCurrentMarker(ce.markers[le]),ce._currentMarker.dispose(),ce.markerImage.removeChild(ce._currentMarker.container),ce.markers.splice(ce.markers.indexOf(ce._currentMarker),1),ce.eventListeners.markerdelete.forEach(function(vt){return vt(new qe(ne,ge))})},ce=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ne;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=(ne=this._currentMarker.notes)!==null&&ne!==void 0?ne:"",this.overlayContainer.appendChild(this.notesArea))},ae.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)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var ne=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var te=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===te.width&&oe.height===te.height){var ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new rt(ne))})}else this.undoRedoManager.replaceLastUndoStep(te),this.eventListeners.statechange.forEach(function(re){return re(new rt(ne))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var ne=this,te=this.undoRedoManager.undo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new rt(ne))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var ne=this,te=this.undoRedoManager.redo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new rt(ne))}))},ae.prototype.stepZoom=function(){var ne=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ne<this.zoomSteps.length-1?this.zoomSteps[ne+1]:this.zoomSteps[0]},ae.prototype.panTo=function(ne){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ne.x,top:this.prevPanPoint.y-ne.y}),this.prevPanPoint=ne},ae.prototype.startRenderAndClose=function(){return fe(this,void 0,void 0,function(){var ne,te,oe=this;return Ge(this,function(ce){switch(ce.label){case 0:return[4,this.render()];case 1:return ne=ce.sent(),te=this.getState(),this.eventListeners.render.forEach(function(re){return re(new Ft(oe,ne,te))}),this.close(!0),[2]}})})},ae.prototype.getState=function(ne){ne===!0&&this.setCurrentMarker();var te={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return te.markers.push(oe.getState())}),te},ae.prototype.restoreState=function(ne){var te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ne.markers.forEach(function(oe){var ce=te._availableMarkerTypes.find(function(le){return le.typeName===oe.typeName});if(ce!==void 0){var re=te.addNewMarker(ce);re.restoreState(oe),te.markers.push(re)}}),ne.width&&ne.height&&(ne.width!==this.imageWidth||ne.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ne.width,this.imageHeight/ne.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new rt(te))})},ae.prototype.addNewMarker=function(ne){var te=ye.createGroup();return this.markerImage.appendChild(te),new ne(te,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ne){var te,oe=this;(te=typeof ne=="string"?this._availableMarkerTypes.find(function(ce){return ce.typeName===ne}):ne)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(te),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(te.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ce){return ce(new qe(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(ne){var te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ne),this.setCurrentMarker(ne),ne instanceof Je&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Je):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new qe(te,te._currentMarker))})},ae.prototype.colorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ne,this.settings.defaultStrokeColor=ne)},ae.prototype.fillColorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ne)},ae.prototype.markerStateChanged=function(ne){var te=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new qe(te,ne))})},ae.prototype.setCurrentMarker=function(ne){var te=this;this._currentMarker!==ne&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new qe(te,te._currentMarker))})),this._currentMarker=ne,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 qe(te,te._currentMarker))}))},ae.prototype.onPointerDown=function(ne){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ne.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var te=this.markers.find(function(oe){return oe.ownsTarget(ne.target)});te!==void 0?(this.setCurrentMarker(te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ne.clientX,y:ne.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY))},ae.prototype.onDblClick=function(ne){if(this._isFocused||this.focus(),this.mode==="select"){var te=this.markers.find(function(oe){return oe.ownsTarget(ne.target)});te!==void 0&&te!==this._currentMarker&&this.setCurrentMarker(te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(ne){this.touchPoints!==1&&ne.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ne.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ne.clientX,ne.clientY)):this.zoomLevel>1&&this.panTo({x:ne.clientX,y:ne.clientY}))},ae.prototype.onPointerUp=function(ne){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ne.clientX,ne.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ne,te){var oe=this.markerImage.getBoundingClientRect();return{x:(ne-oe.left)/this.zoomLevel,y:(te-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ne=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"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()},ae.prototype.addLicenseKey=function(ne){De.addKey(ne)},ae.prototype.addEventListener=function(ne,te){this.eventListeners.addEventListener(ne,te)},ae.prototype.removeEventListener=function(ne,te){this.eventListeners.removeEventListener(ne,te)},ae.prototype.renderState=function(ne){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ne),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ne=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(te){return te(new rt(ne))}))},ae.prototype.blur=function(){var ne=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(te){return te(new rt(ne))}))},ae.instanceCounter=0,ae}()},6551:function(yn,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return De}});var b=ee(42978),je=ee(59301),fe=ee(47273),Ge=0,Oe=(0,fe.Z)();function ye(){var Ze;return Oe?(Ze=Ge,Ge+=1):Ze="TEST_OR_SSR",Ze}function De(Ze){var Ce=je.useState(),ue=(0,b.Z)(Ce,2),tt=ue[0],ke=ue[1];return je.useEffect(function(){ke("rc_select_".concat(ye()))},[]),Ze||tt}},37463:function(yn,Qt,ee){"use strict";ee.d(Qt,{Ac:function(){return Ot},Xo:function(){return Wt},Wx:function(){return mt},ZP:function(){return Gn},lk:function(){return Rt}});var b=ee(54476),je=ee(94480),fe=ee(20068),Ge=ee(33885),Oe=ee(42978),ye=ee(75931),De=ee(76190),Ze=ee(18929),Ce=ee(48736),ue=ee(59301),tt=ee(92310),ke=ee.n(tt),Lt=ee(34280),at=ee(49658),$e=ee(8654),Me=function(yt){var Fe=yt.className,lt=yt.customizeIcon,ze=yt.customizeIconProps,xt=yt.children,Ee=yt.onMouseDown,It=yt.onClick,kt=typeof lt=="function"?lt(ze):lt;return ue.createElement("span",{className:Fe,onMouseDown:function(bt){bt.preventDefault(),Ee==null||Ee(bt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:It,"aria-hidden":!0},kt!==void 0?kt:ue.createElement("span",{className:ke()(Fe.split(/\s+/).map(function(Vt){return"".concat(Vt,"-icon")}))},xt))},Ie=Me,Xe=function(yt,Fe,lt,ze,xt){var Ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,It=arguments.length>6?arguments[6]:void 0,kt=arguments.length>7?arguments[7]:void 0,Vt=ue.useMemo(function(){if((0,De.Z)(ze)==="object")return ze.clearIcon;if(xt)return xt},[ze,xt]),bt=ue.useMemo(function(){return!!(!Ee&&ze&&(lt.length||It)&&!(kt==="combobox"&&It===""))},[ze,Ee,lt.length,It,kt]);return{allowClear:bt,clearIcon:ue.createElement(Ie,{className:"".concat(yt,"-clear"),onMouseDown:Fe,customizeIcon:Vt},"\xD7")}},pt=ue.createContext(null);function Rt(){return ue.useContext(pt)}function Ve(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,yt=ue.useState(!1),Fe=(0,Oe.Z)(yt,2),lt=Fe[0],ze=Fe[1],xt=ue.useRef(null),Ee=function(){window.clearTimeout(xt.current)};ue.useEffect(function(){return Ee},[]);var It=function(Vt,bt){Ee(),xt.current=window.setTimeout(function(){ze(Vt),bt&&bt()},ct)};return[lt,It,Ee]}function Te(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,yt=ue.useRef(null),Fe=ue.useRef(null);ue.useEffect(function(){return function(){window.clearTimeout(Fe.current)}},[]);function lt(ze){(ze||yt.current===null)&&(yt.current=ze),window.clearTimeout(Fe.current),Fe.current=window.setTimeout(function(){yt.current=null},ct)}return[function(){return yt.current},lt]}function nt(ct,yt,Fe,lt){var ze=ue.useRef(null);ze.current={open:yt,triggerOpen:Fe,customizedTrigger:lt},ue.useEffect(function(){function xt(Ee){var It;if(!((It=ze.current)!==null&&It!==void 0&&It.customizedTrigger)){var kt=Ee.target;kt.shadowRoot&&Ee.composed&&(kt=Ee.composedPath()[0]||kt),ze.current.open&&ct().filter(function(Vt){return Vt}).every(function(Vt){return!Vt.contains(kt)&&Vt!==kt})&&ze.current.triggerOpen(!1)}}return window.addEventListener("mousedown",xt),function(){return window.removeEventListener("mousedown",xt)}},[])}var Qe=ee(10228);function zt(ct){return ct&&![Qe.Z.ESC,Qe.Z.SHIFT,Qe.Z.BACKSPACE,Qe.Z.TAB,Qe.Z.WIN_KEY,Qe.Z.ALT,Qe.Z.META,Qe.Z.WIN_KEY_RIGHT,Qe.Z.CTRL,Qe.Z.SEMICOLON,Qe.Z.EQUALS,Qe.Z.CAPS_LOCK,Qe.Z.CONTEXT_MENU,Qe.Z.F1,Qe.Z.F2,Qe.Z.F3,Qe.Z.F4,Qe.Z.F5,Qe.Z.F6,Qe.Z.F7,Qe.Z.F8,Qe.Z.F9,Qe.Z.F10,Qe.Z.F11,Qe.Z.F12].includes(ct)}var St=ee(26112),it=ee(83836);function ut(ct,yt,Fe){var lt=(0,Ge.Z)((0,Ge.Z)({},ct),Fe?yt:{});return Object.keys(yt).forEach(function(ze){var xt=yt[ze];typeof xt=="function"&&(lt[ze]=function(){for(var Ee,It=arguments.length,kt=new Array(It),Vt=0;Vt<It;Vt++)kt[Vt]=arguments[Vt];return xt.apply(void 0,kt),(Ee=ct[ze])===null||Ee===void 0?void 0:Ee.call.apply(Ee,[ct].concat(kt))})}),lt}var Se=ut,st=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Je=function(yt,Fe){var lt=yt.prefixCls,ze=yt.id,xt=yt.inputElement,Ee=yt.autoFocus,It=yt.autoComplete,kt=yt.editable,Vt=yt.activeDescendantId,bt=yt.value,Ct=yt.open,Et=yt.attrs,$t=(0,ye.Z)(yt,st),Pn=xt||ue.createElement("input",null),wn=Pn,Dn=wn.ref,nr=wn.props;return(0,Ce.Kp)(!("maxLength"in Pn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Pn=ue.cloneElement(Pn,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({type:"search"},Se($t,nr,!0)),{},{id:ze,ref:(0,$e.sQ)(Fe,Dn),autoComplete:It||"off",autoFocus:Ee,className:ke()("".concat(lt,"-selection-search-input"),nr==null?void 0:nr.className),role:"combobox","aria-expanded":Ct||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ze,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ze,"_list"),"aria-activedescendant":Ct?Vt:void 0},Et),{},{value:kt?bt:"",readOnly:!kt,unselectable:kt?null:"on",style:(0,Ge.Z)((0,Ge.Z)({},nr.style),{},{opacity:kt?null:0})})),Pn},de=ue.forwardRef(Je),Mt=de;function We(ct){return Array.isArray(ct)?ct:ct!==void 0?[ct]:[]}var Pt=typeof window!="undefined"&&window.document&&window.document.documentElement,Xt=Pt;function Be(ct){return ct!=null}function me(ct){return!ct&&ct!==0}function ht(ct){return["string","number"].includes((0,De.Z)(ct))}function Ut(ct){var yt=void 0;return ct&&(ht(ct.title)?yt=ct.title.toString():ht(ct.label)&&(yt=ct.label.toString())),yt}function Bt(ct,yt){Xt?ue.useLayoutEffect(ct,yt):ue.useEffect(ct,yt)}function be(ct){var yt;return(yt=ct.key)!==null&&yt!==void 0?yt:ct.value}var Ye=function(yt){yt.preventDefault(),yt.stopPropagation()},et=function(yt){var Fe=yt.id,lt=yt.prefixCls,ze=yt.values,xt=yt.open,Ee=yt.searchValue,It=yt.autoClearSearchValue,kt=yt.inputRef,Vt=yt.placeholder,bt=yt.disabled,Ct=yt.mode,Et=yt.showSearch,$t=yt.autoFocus,Pn=yt.autoComplete,wn=yt.activeDescendantId,Dn=yt.tabIndex,nr=yt.removeIcon,sr=yt.maxTagCount,fr=yt.maxTagTextLength,Qn=yt.maxTagPlaceholder,_n=Qn===void 0?function(Kn){return"+ ".concat(Kn.length," ...")}:Qn,Jn=yt.tagRender,ur=yt.onToggleOpen,Er=yt.onRemove,Cr=yt.onInputChange,wr=yt.onInputPaste,Yn=yt.onInputKeyDown,yr=yt.onInputMouseDown,mr=yt.onInputCompositionStart,Vr=yt.onInputCompositionEnd,Yr=yt.onInputBlur,Ur=ue.useRef(null),Gr=(0,ue.useState)(0),oi=(0,Oe.Z)(Gr,2),Zr=oi[0],Jr=oi[1],Or=(0,ue.useState)(!1),ti=(0,Oe.Z)(Or,2),ci=ti[0],Fi=ti[1],vi="".concat(lt,"-selection"),xi=xt||Ct==="multiple"&&It===!1||Ct==="tags"?Ee:"",hi=Ct==="tags"||Ct==="multiple"&&It===!1||Et&&(xt||ci);Bt(function(){Jr(Ur.current.scrollWidth)},[xi]);var bi=function(kn,lr,br,Hn,Bn){return ue.createElement("span",{title:Ut(kn),className:ke()("".concat(vi,"-item"),(0,fe.Z)({},"".concat(vi,"-item-disabled"),br))},ue.createElement("span",{className:"".concat(vi,"-item-content")},lr),Hn&&ue.createElement(Ie,{className:"".concat(vi,"-item-remove"),onMouseDown:Ye,onClick:Bn,customizeIcon:nr},"\xD7"))},Rr=function(kn,lr,br,Hn,Bn,Xn){var rr=function(Ei){Ye(Ei),ur(!xt)};return ue.createElement("span",{onMouseDown:rr},Jn({label:lr,value:kn,disabled:br,closable:Hn,onClose:Bn,isMaxTag:!!Xn}))},kr=function(kn){var lr=kn.disabled,br=kn.label,Hn=kn.value,Bn=!bt&&!lr,Xn=br;if(typeof fr=="number"&&(typeof br=="string"||typeof br=="number")){var rr=String(Xn);rr.length>fr&&(Xn="".concat(rr.slice(0,fr),"..."))}var Qr=function(pi){pi&&pi.stopPropagation(),Er(kn)};return typeof Jn=="function"?Rr(Hn,Xn,lr,Bn,Qr):bi(kn,Xn,lr,Bn,Qr)},cr=function(kn){if(!ze.length)return null;var lr=typeof _n=="function"?_n(kn):_n;return typeof Jn=="function"?Rr(void 0,lr,!1,!1,void 0,!0):bi({title:lr},lr,!1)},On=ue.createElement("div",{className:"".concat(vi,"-search"),style:{width:Zr},onFocus:function(){Fi(!0)},onBlur:function(){Fi(!1)}},ue.createElement(Mt,{ref:kt,open:xt,prefixCls:lt,id:Fe,inputElement:null,disabled:bt,autoFocus:$t,autoComplete:Pn,editable:hi,activeDescendantId:wn,value:xi,onKeyDown:Yn,onMouseDown:yr,onChange:Cr,onPaste:wr,onCompositionStart:mr,onCompositionEnd:Vr,onBlur:Yr,tabIndex:Dn,attrs:(0,St.Z)(yt,!0)}),ue.createElement("span",{ref:Ur,className:"".concat(vi,"-search-mirror"),"aria-hidden":!0},xi,"\xA0")),jn=ue.createElement(it.Z,{prefixCls:"".concat(vi,"-overflow"),data:ze,renderItem:kr,renderRest:cr,suffix:On,itemKey:be,maxCount:sr});return ue.createElement("span",{className:"".concat(vi,"-wrap")},jn,!ze.length&&!xi&&ue.createElement("span",{className:"".concat(vi,"-placeholder")},Vt))},_t=et,rt=function(yt){var Fe=yt.inputElement,lt=yt.prefixCls,ze=yt.id,xt=yt.inputRef,Ee=yt.disabled,It=yt.autoFocus,kt=yt.autoComplete,Vt=yt.activeDescendantId,bt=yt.mode,Ct=yt.open,Et=yt.values,$t=yt.placeholder,Pn=yt.tabIndex,wn=yt.showSearch,Dn=yt.searchValue,nr=yt.activeValue,sr=yt.maxLength,fr=yt.onInputKeyDown,Qn=yt.onInputMouseDown,_n=yt.onInputChange,Jn=yt.onInputPaste,ur=yt.onInputCompositionStart,Er=yt.onInputCompositionEnd,Cr=yt.onInputBlur,wr=yt.title,Yn=ue.useState(!1),yr=(0,Oe.Z)(Yn,2),mr=yr[0],Vr=yr[1],Yr=bt==="combobox",Ur=Yr||wn,Gr=Et[0],oi=Dn||"";Yr&&nr&&!mr&&(oi=nr),ue.useEffect(function(){Yr&&Vr(!1)},[Yr,nr]);var Zr=bt!=="combobox"&&!Ct&&!wn?!1:!!oi,Jr=wr===void 0?Ut(Gr):wr,Or=ue.useMemo(function(){return Gr?null:ue.createElement("span",{className:"".concat(lt,"-selection-placeholder"),style:Zr?{visibility:"hidden"}:void 0},$t)},[Gr,Zr,$t,lt]);return ue.createElement("span",{className:"".concat(lt,"-selection-wrap")},ue.createElement("span",{className:"".concat(lt,"-selection-search")},ue.createElement(Mt,{ref:xt,prefixCls:lt,id:ze,open:Ct,inputElement:Fe,disabled:Ee,autoFocus:It,autoComplete:kt,editable:Ur,activeDescendantId:Vt,value:oi,onKeyDown:fr,onMouseDown:Qn,onChange:function(ci){Vr(!0),_n(ci)},onPaste:Jn,onCompositionStart:ur,onCompositionEnd:Er,onBlur:Cr,tabIndex:Pn,attrs:(0,St.Z)(yt,!0),maxLength:Yr?sr:void 0})),!Yr&&Gr?ue.createElement("span",{className:"".concat(lt,"-selection-item"),title:Jr,style:Zr?{visibility:"hidden"}:void 0},Gr.label):null,Or)},Ft=rt,qe=function(yt,Fe){var lt=(0,ue.useRef)(null),ze=(0,ue.useRef)(!1),xt=yt.prefixCls,Ee=yt.open,It=yt.mode,kt=yt.showSearch,Vt=yt.tokenWithEnter,bt=yt.disabled,Ct=yt.prefix,Et=yt.autoClearSearchValue,$t=yt.onSearch,Pn=yt.onSearchSubmit,wn=yt.onToggleOpen,Dn=yt.onInputKeyDown,nr=yt.onInputBlur,sr=yt.domRef;ue.useImperativeHandle(Fe,function(){return{focus:function(Jr){lt.current.focus(Jr)},blur:function(){lt.current.blur()}}});var fr=Te(0),Qn=(0,Oe.Z)(fr,2),_n=Qn[0],Jn=Qn[1],ur=function(Jr){var Or=Jr.which,ti=lt.current instanceof HTMLTextAreaElement;!ti&&Ee&&(Or===Qe.Z.UP||Or===Qe.Z.DOWN)&&Jr.preventDefault(),Dn&&Dn(Jr),Or===Qe.Z.ENTER&&It==="tags"&&!ze.current&&!Ee&&(Pn==null||Pn(Jr.target.value)),!(ti&&!Ee&&~[Qe.Z.UP,Qe.Z.DOWN,Qe.Z.LEFT,Qe.Z.RIGHT].indexOf(Or))&&zt(Or)&&wn(!0)},Er=function(){Jn(!0)},Cr=(0,ue.useRef)(null),wr=function(Jr){$t(Jr,!0,ze.current)!==!1&&wn(!0)},Yn=function(){ze.current=!0},yr=function(Jr){ze.current=!1,It!=="combobox"&&wr(Jr.target.value)},mr=function(Jr){var Or=Jr.target.value;if(Vt&&Cr.current&&/[\r\n]/.test(Cr.current)){var ti=Cr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Or=Or.replace(ti,Cr.current)}Cr.current=null,wr(Or)},Vr=function(Jr){var Or=Jr.clipboardData,ti=Or==null?void 0:Or.getData("text");Cr.current=ti||""},Yr=function(Jr){var Or=Jr.target;if(Or!==lt.current){var ti=document.body.style.msTouchAction!==void 0;ti?setTimeout(function(){lt.current.focus()}):lt.current.focus()}},Ur=function(Jr){var Or=_n();Jr.target!==lt.current&&!Or&&!(It==="combobox"&&bt)&&Jr.preventDefault(),(It!=="combobox"&&(!kt||!Or)||!Ee)&&(Ee&&Et!==!1&&$t("",!0,!1),wn())},Gr={inputRef:lt,onInputKeyDown:ur,onInputMouseDown:Er,onInputChange:mr,onInputPaste:Vr,onInputCompositionStart:Yn,onInputCompositionEnd:yr,onInputBlur:nr},oi=It==="multiple"||It==="tags"?ue.createElement(_t,(0,b.Z)({},yt,Gr)):ue.createElement(Ft,(0,b.Z)({},yt,Gr));return ue.createElement("div",{ref:sr,className:"".concat(xt,"-selector"),onClick:Yr,onMouseDown:Ur},Ct&&ue.createElement("div",{className:"".concat(xt,"-prefix")},Ct),oi)},Jt=ue.forwardRef(qe),Dt=Jt,ae=ee(65030),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function(yt){var Fe=yt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"}}},oe=function(yt,Fe){var lt=yt.prefixCls,ze=yt.disabled,xt=yt.visible,Ee=yt.children,It=yt.popupElement,kt=yt.animation,Vt=yt.transitionName,bt=yt.dropdownStyle,Ct=yt.dropdownClassName,Et=yt.direction,$t=Et===void 0?"ltr":Et,Pn=yt.placement,wn=yt.builtinPlacements,Dn=yt.dropdownMatchSelectWidth,nr=yt.dropdownRender,sr=yt.dropdownAlign,fr=yt.getPopupContainer,Qn=yt.empty,_n=yt.getTriggerDOMNode,Jn=yt.onPopupVisibleChange,ur=yt.onPopupMouseEnter,Er=(0,ye.Z)(yt,ne),Cr="".concat(lt,"-dropdown"),wr=It;nr&&(wr=nr(It));var Yn=ue.useMemo(function(){return wn||te(Dn)},[wn,Dn]),yr=kt?"".concat(Cr,"-").concat(kt):Vt,mr=typeof Dn=="number",Vr=ue.useMemo(function(){return mr?null:Dn===!1?"minWidth":"width"},[Dn,mr]),Yr=bt;mr&&(Yr=(0,Ge.Z)((0,Ge.Z)({},Yr),{},{width:Dn}));var Ur=ue.useRef(null);return ue.useImperativeHandle(Fe,function(){return{getPopupElement:function(){var oi;return(oi=Ur.current)===null||oi===void 0?void 0:oi.popupElement}}}),ue.createElement(ae.Z,(0,b.Z)({},Er,{showAction:Jn?["click"]:[],hideAction:Jn?["click"]:[],popupPlacement:Pn||($t==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:Cr,popupTransitionName:yr,popup:ue.createElement("div",{onMouseEnter:ur},wr),ref:Ur,stretch:Vr,popupAlign:sr,popupVisible:xt,getPopupContainer:fr,popupClassName:ke()(Ct,(0,fe.Z)({},"".concat(Cr,"-empty"),Qn)),popupStyle:Yr,getTriggerDOMNode:_n,onPopupVisibleChange:Jn}),Ee)},ce=ue.forwardRef(oe),re=ce,le=ee(66712);function ge(ct,yt){var Fe=ct.key,lt;return"value"in ct&&(lt=ct.value),Fe!=null?Fe:lt!==void 0?lt:"rc-index-key-".concat(yt)}function vt(ct){return typeof ct!="undefined"&&!Number.isNaN(ct)}function Re(ct,yt){var Fe=ct||{},lt=Fe.label,ze=Fe.value,xt=Fe.options,Ee=Fe.groupLabel,It=lt||(yt?"children":"label");return{label:It,value:ze||"value",options:xt||"options",groupLabel:Ee||It}}function Ae(ct){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=yt.fieldNames,lt=yt.childrenAsData,ze=[],xt=Re(Fe,!1),Ee=xt.label,It=xt.value,kt=xt.options,Vt=xt.groupLabel;function bt(Ct,Et){Array.isArray(Ct)&&Ct.forEach(function($t){if(Et||!(kt in $t)){var Pn=$t[It];ze.push({key:ge($t,ze.length),groupOption:Et,data:$t,label:$t[Ee],value:Pn})}else{var wn=$t[Vt];wn===void 0&<&&(wn=$t.label),ze.push({key:ge($t,ze.length),group:!0,data:$t,label:wn}),bt($t[kt],!0)}})}return bt(ct,!1),ze}function Ke(ct){var yt=(0,Ge.Z)({},ct);return"props"in yt||Object.defineProperty(yt,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),yt}}),yt}var _e=function(yt,Fe,lt){if(!Fe||!Fe.length)return null;var ze=!1,xt=function It(kt,Vt){var bt=(0,le.Z)(Vt),Ct=bt[0],Et=bt.slice(1);if(!Ct)return[kt];var $t=kt.split(Ct);return ze=ze||$t.length>1,$t.reduce(function(Pn,wn){return[].concat((0,je.Z)(Pn),(0,je.Z)(It(wn,Et)))},[]).filter(Boolean)},Ee=xt(yt,Fe);return ze?typeof lt!="undefined"?Ee.slice(0,lt):Ee:null},gt=ue.createContext(null),we=gt;function Pe(ct){var yt=ct.visible,Fe=ct.values;if(!yt)return null;var lt=50;return ue.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Fe.slice(0,lt).map(function(ze){var xt=ze.label,Ee=ze.value;return["number","string"].includes((0,De.Z)(xt))?xt:Ee}).join(", ")),Fe.length>lt?", ...":null)}var Zt=["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"],Ht=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],rn=function(yt){return yt==="tags"||yt==="multiple"},Yt=ue.forwardRef(function(ct,yt){var Fe,lt=ct.id,ze=ct.prefixCls,xt=ct.className,Ee=ct.showSearch,It=ct.tagRender,kt=ct.direction,Vt=ct.omitDomProps,bt=ct.displayValues,Ct=ct.onDisplayValuesChange,Et=ct.emptyOptions,$t=ct.notFoundContent,Pn=$t===void 0?"Not Found":$t,wn=ct.onClear,Dn=ct.mode,nr=ct.disabled,sr=ct.loading,fr=ct.getInputElement,Qn=ct.getRawInputElement,_n=ct.open,Jn=ct.defaultOpen,ur=ct.onDropdownVisibleChange,Er=ct.activeValue,Cr=ct.onActiveValueChange,wr=ct.activeDescendantId,Yn=ct.searchValue,yr=ct.autoClearSearchValue,mr=ct.onSearch,Vr=ct.onSearchSplit,Yr=ct.tokenSeparators,Ur=ct.allowClear,Gr=ct.prefix,oi=ct.suffixIcon,Zr=ct.clearIcon,Jr=ct.OptionList,Or=ct.animation,ti=ct.transitionName,ci=ct.dropdownStyle,Fi=ct.dropdownClassName,vi=ct.dropdownMatchSelectWidth,xi=ct.dropdownRender,hi=ct.dropdownAlign,bi=ct.placement,Rr=ct.builtinPlacements,kr=ct.getPopupContainer,cr=ct.showAction,On=cr===void 0?[]:cr,jn=ct.onFocus,Kn=ct.onBlur,kn=ct.onKeyUp,lr=ct.onKeyDown,br=ct.onMouseDown,Hn=(0,ye.Z)(ct,Zt),Bn=rn(Dn),Xn=(Ee!==void 0?Ee:Bn)||Dn==="combobox",rr=(0,Ge.Z)({},Hn);Ht.forEach(function(Ki){delete rr[Ki]}),Vt==null||Vt.forEach(function(Ki){delete rr[Ki]});var Qr=ue.useState(!1),Ei=(0,Oe.Z)(Qr,2),pi=Ei[0],Bi=Ei[1];ue.useEffect(function(){Bi((0,at.Z)())},[]);var Ii=ue.useRef(null),Pi=ue.useRef(null),$i=ue.useRef(null),Ni=ue.useRef(null),Ai=ue.useRef(null),lo=ue.useRef(!1),xo=Ve(),Do=(0,Oe.Z)(xo,3),To=Do[0],Co=Do[1],qr=Do[2];ue.useImperativeHandle(yt,function(){var Ki,Si;return{focus:(Ki=Ni.current)===null||Ki===void 0?void 0:Ki.focus,blur:(Si=Ni.current)===null||Si===void 0?void 0:Si.blur,scrollTo:function(la){var No;return(No=Ai.current)===null||No===void 0?void 0:No.scrollTo(la)},nativeElement:Ii.current||Pi.current}});var Hr=ue.useMemo(function(){var Ki;if(Dn!=="combobox")return Yn;var Si=(Ki=bt[0])===null||Ki===void 0?void 0:Ki.value;return typeof Si=="string"||typeof Si=="number"?String(Si):""},[Yn,Dn,bt]),Ji=Dn==="combobox"&&typeof fr=="function"&&fr()||null,qi=typeof Qn=="function"&&Qn(),ai=(0,$e.x1)(Pi,qi==null||(Fe=qi.props)===null||Fe===void 0?void 0:Fe.ref),Wi=ue.useState(!1),Yi=(0,Oe.Z)(Wi,2),gi=Yi[0],Zi=Yi[1];(0,Lt.Z)(function(){Zi(!0)},[]);var Mi=(0,Ze.Z)(!1,{defaultValue:Jn,value:_n}),Zo=(0,Oe.Z)(Mi,2),ha=Zo[0],Wo=Zo[1],Mo=gi?ha:!1,ul=!Pn&&Et;(nr||ul&&Mo&&Dn==="combobox")&&(Mo=!1);var el=ul?!1:Mo,si=ue.useCallback(function(Ki){var Si=Ki!==void 0?Ki:!Mo;nr||(Wo(Si),Mo!==Si&&(ur==null||ur(Si)))},[nr,Mo,Wo,ur]),Ci=ue.useMemo(function(){return(Yr||[]).some(function(Ki){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ki)})},[Yr]),ni=ue.useContext(we)||{},ui=ni.maxCount,Vi=ni.rawValues,so=function(Si,Ko,la){if(!(Bn&&vt(ui)&&(Vi==null?void 0:Vi.size)>=ui)){var No=!0,Vo=Si;Cr==null||Cr(null);var Ra=_e(Si,Yr,vt(ui)?ui-Vi.size:void 0),Na=la?null:Ra;return Dn!=="combobox"&&Na&&(Vo="",Vr==null||Vr(Na),si(!1),No=!1),mr&&Hr!==Vo&&mr(Vo,{source:Ko?"typing":"effect"}),No}},La=function(Si){!Si||!Si.trim()||mr(Si,{source:"submit"})};ue.useEffect(function(){!Mo&&!Bn&&Dn!=="combobox"&&so("",!1,!1)},[Mo]),ue.useEffect(function(){ha&&nr&&Wo(!1),nr&&!lo.current&&Co(!1)},[nr]);var oa=Te(),Yo=(0,Oe.Z)(oa,2),Bo=Yo[0],Ta=Yo[1],Za=ue.useRef(!1),pa=function(Si){var Ko=Bo(),la=Si.key,No=la==="Enter";if(No&&(Dn!=="combobox"&&Si.preventDefault(),Mo||si(!0)),Ta(!!Hr),la==="Backspace"&&!Ko&&Bn&&!Hr&&bt.length){for(var Vo=(0,je.Z)(bt),Ra=null,Na=Vo.length-1;Na>=0;Na-=1){var Wa=Vo[Na];if(!Wa.disabled){Vo.splice(Na,1),Ra=Wa;break}}Ra&&Ct(Vo,{type:"remove",values:[Ra]})}for(var xa=arguments.length,Ca=new Array(xa>1?xa-1:0),Fa=1;Fa<xa;Fa++)Ca[Fa-1]=arguments[Fa];if(Mo&&(!No||!Za.current)){var rl;No&&(Za.current=!0),(rl=Ai.current)===null||rl===void 0||rl.onKeyDown.apply(rl,[Si].concat(Ca))}lr==null||lr.apply(void 0,[Si].concat(Ca))},za=function(Si){for(var Ko=arguments.length,la=new Array(Ko>1?Ko-1:0),No=1;No<Ko;No++)la[No-1]=arguments[No];if(Mo){var Vo;(Vo=Ai.current)===null||Vo===void 0||Vo.onKeyUp.apply(Vo,[Si].concat(la))}Si.key==="Enter"&&(Za.current=!1),kn==null||kn.apply(void 0,[Si].concat(la))},Ya=function(Si){var Ko=bt.filter(function(la){return la!==Si});Ct(Ko,{type:"remove",values:[Si]})},Ma=function(){Za.current=!1},dl=ue.useRef(!1),ms=function(){Co(!0),nr||(jn&&!dl.current&&jn.apply(void 0,arguments),On.includes("focus")&&si(!0)),dl.current=!0},Ql=function(){lo.current=!0,Co(!1,function(){dl.current=!1,lo.current=!1,si(!1)}),!nr&&(Hr&&(Dn==="tags"?mr(Hr,{source:"submit"}):Dn==="multiple"&&mr("",{source:"blur"})),Kn&&Kn.apply(void 0,arguments))},Ha=[];ue.useEffect(function(){return function(){Ha.forEach(function(Ki){return clearTimeout(Ki)}),Ha.splice(0,Ha.length)}},[]);var tl=function(Si){var Ko,la=Si.target,No=(Ko=$i.current)===null||Ko===void 0?void 0:Ko.getPopupElement();if(No&&No.contains(la)){var Vo=setTimeout(function(){var xa=Ha.indexOf(Vo);if(xa!==-1&&Ha.splice(xa,1),qr(),!pi&&!No.contains(document.activeElement)){var Ca;(Ca=Ni.current)===null||Ca===void 0||Ca.focus()}});Ha.push(Vo)}for(var Ra=arguments.length,Na=new Array(Ra>1?Ra-1:0),Wa=1;Wa<Ra;Wa++)Na[Wa-1]=arguments[Wa];br==null||br.apply(void 0,[Si].concat(Na))},Ba=ue.useState({}),vs=(0,Oe.Z)(Ba,2),Al=vs[1];function Jl(){Al({})}var ql;qi&&(ql=function(Si){si(Si)}),nt(function(){var Ki;return[Ii.current,(Ki=$i.current)===null||Ki===void 0?void 0:Ki.getPopupElement()]},el,si,!!qi);var zs=ue.useMemo(function(){return(0,Ge.Z)((0,Ge.Z)({},ct),{},{notFoundContent:Pn,open:Mo,triggerOpen:el,id:lt,showSearch:Xn,multiple:Bn,toggleOpen:si})},[ct,Pn,el,Mo,lt,Xn,Bn,si]),kl=!!oi||sr,ja;kl&&(ja=ue.createElement(Ie,{className:ke()("".concat(ze,"-arrow"),(0,fe.Z)({},"".concat(ze,"-arrow-loading"),sr)),customizeIcon:oi,customizeIconProps:{loading:sr,searchValue:Hr,open:Mo,focused:To,showSearch:Xn}}));var fl=function(){var Si;wn==null||wn(),(Si=Ni.current)===null||Si===void 0||Si.focus(),Ct([],{type:"clear",values:bt}),so("",!1,!1)},xl=Xe(ze,fl,bt,Ur,Zr,nr,Hr,Dn),Ll=xl.allowClear,hl=xl.clearIcon,Rl=ue.createElement(Jr,{ref:Ai}),es=ke()(ze,xt,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(ze,"-focused"),To),"".concat(ze,"-multiple"),Bn),"".concat(ze,"-single"),!Bn),"".concat(ze,"-allow-clear"),Ur),"".concat(ze,"-show-arrow"),kl),"".concat(ze,"-disabled"),nr),"".concat(ze,"-loading"),sr),"".concat(ze,"-open"),Mo),"".concat(ze,"-customize-input"),Ji),"".concat(ze,"-show-search"),Xn)),nl=ue.createElement(re,{ref:$i,disabled:nr,prefixCls:ze,visible:el,popupElement:Rl,animation:Or,transitionName:ti,dropdownStyle:ci,dropdownClassName:Fi,direction:kt,dropdownMatchSelectWidth:vi,dropdownRender:xi,dropdownAlign:hi,placement:bi,builtinPlacements:Rr,getPopupContainer:kr,empty:Et,getTriggerDOMNode:function(Si){return Pi.current||Si},onPopupVisibleChange:ql,onPopupMouseEnter:Jl},qi?ue.cloneElement(qi,{ref:ai}):ue.createElement(Dt,(0,b.Z)({},ct,{domRef:Pi,prefixCls:ze,inputElement:Ji,ref:Ni,id:lt,prefix:Gr,showSearch:Xn,autoClearSearchValue:yr,mode:Dn,activeDescendantId:wr,tagRender:It,values:bt,open:Mo,onToggleOpen:si,activeValue:Er,searchValue:Hr,onSearch:so,onSearchSubmit:La,onRemove:Ya,tokenWithEnter:Ci,onInputBlur:Ma}))),aa;return qi?aa=nl:aa=ue.createElement("div",(0,b.Z)({className:es},rr,{ref:Ii,onMouseDown:tl,onKeyDown:pa,onKeyUp:za,onFocus:ms,onBlur:Ql}),ue.createElement(Pe,{visible:To&&!Mo,values:bt}),nl,ja,Ll&&hl),ue.createElement(pt.Provider,{value:zs},aa)}),Ot=Yt,nn=function(){return null};nn.isSelectOptGroup=!0;var Wt=nn,He=function(){return null};He.isSelectOption=!0;var mt=He,ot=ee(80547),Tt=ee(2738),Ne=ee(48911);function dt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var wt=["disabled","title","children","style","className"];function Kt(ct){return typeof ct=="string"||typeof ct=="number"}var sn=function(yt,Fe){var lt=Rt(),ze=lt.prefixCls,xt=lt.id,Ee=lt.open,It=lt.multiple,kt=lt.mode,Vt=lt.searchValue,bt=lt.toggleOpen,Ct=lt.notFoundContent,Et=lt.onPopupScroll,$t=ue.useContext(we),Pn=$t.maxCount,wn=$t.flattenOptions,Dn=$t.onActiveValue,nr=$t.defaultActiveFirstOption,sr=$t.onSelect,fr=$t.menuItemSelectedIcon,Qn=$t.rawValues,_n=$t.fieldNames,Jn=$t.virtual,ur=$t.direction,Er=$t.listHeight,Cr=$t.listItemHeight,wr=$t.optionRender,Yn="".concat(ze,"-item"),yr=(0,ot.Z)(function(){return wn},[Ee,wn],function(cr,On){return On[0]&&cr[1]!==On[1]}),mr=ue.useRef(null),Vr=ue.useMemo(function(){return It&&vt(Pn)&&(Qn==null?void 0:Qn.size)>=Pn},[It,Pn,Qn==null?void 0:Qn.size]),Yr=function(On){On.preventDefault()},Ur=function(On){var jn;(jn=mr.current)===null||jn===void 0||jn.scrollTo(typeof On=="number"?{index:On}:On)},Gr=ue.useCallback(function(cr){return kt==="combobox"?!1:Qn.has(cr)},[kt,(0,je.Z)(Qn).toString(),Qn.size]),oi=function(On){for(var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Kn=yr.length,kn=0;kn<Kn;kn+=1){var lr=(On+kn*jn+Kn)%Kn,br=yr[lr]||{},Hn=br.group,Bn=br.data;if(!Hn&&!(Bn!=null&&Bn.disabled)&&(Gr(Bn.value)||!Vr))return lr}return-1},Zr=ue.useState(function(){return oi(0)}),Jr=(0,Oe.Z)(Zr,2),Or=Jr[0],ti=Jr[1],ci=function(On){var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ti(On);var Kn={source:jn?"keyboard":"mouse"},kn=yr[On];if(!kn){Dn(null,-1,Kn);return}Dn(kn.value,On,Kn)};(0,ue.useEffect)(function(){ci(nr!==!1?oi(0):-1)},[yr.length,Vt]);var Fi=ue.useCallback(function(cr){return kt==="combobox"?String(cr).toLowerCase()===Vt.toLowerCase():Qn.has(cr)},[kt,Vt,(0,je.Z)(Qn).toString(),Qn.size]);(0,ue.useEffect)(function(){var cr=setTimeout(function(){if(!It&&Ee&&Qn.size===1){var jn=Array.from(Qn)[0],Kn=yr.findIndex(function(kn){var lr=kn.data;return Vt?String(lr.value).startsWith(Vt):lr.value===jn});Kn!==-1&&(ci(Kn),Ur(Kn))}});if(Ee){var On;(On=mr.current)===null||On===void 0||On.scrollTo(void 0)}return function(){return clearTimeout(cr)}},[Ee,Vt]);var vi=function(On){On!==void 0&&sr(On,{selected:!Qn.has(On)}),It||bt(!1)};if(ue.useImperativeHandle(Fe,function(){return{onKeyDown:function(On){var jn=On.which,Kn=On.ctrlKey;switch(jn){case Qe.Z.N:case Qe.Z.P:case Qe.Z.UP:case Qe.Z.DOWN:{var kn=0;if(jn===Qe.Z.UP?kn=-1:jn===Qe.Z.DOWN?kn=1:dt()&&Kn&&(jn===Qe.Z.N?kn=1:jn===Qe.Z.P&&(kn=-1)),kn!==0){var lr=oi(Or+kn,kn);Ur(lr),ci(lr,!0)}break}case Qe.Z.TAB:case Qe.Z.ENTER:{var br,Hn=yr[Or];Hn&&!(Hn!=null&&(br=Hn.data)!==null&&br!==void 0&&br.disabled)&&!Vr?vi(Hn.value):vi(void 0),Ee&&On.preventDefault();break}case Qe.Z.ESC:bt(!1),Ee&&On.stopPropagation()}},onKeyUp:function(){},scrollTo:function(On){Ur(On)}}}),yr.length===0)return ue.createElement("div",{role:"listbox",id:"".concat(xt,"_list"),className:"".concat(Yn,"-empty"),onMouseDown:Yr},Ct);var xi=Object.keys(_n).map(function(cr){return _n[cr]}),hi=function(On){return On.label};function bi(cr,On){var jn=cr.group;return{role:jn?"presentation":"option",id:"".concat(xt,"_list_").concat(On)}}var Rr=function(On){var jn=yr[On];if(!jn)return null;var Kn=jn.data||{},kn=Kn.value,lr=jn.group,br=(0,St.Z)(Kn,!0),Hn=hi(jn);return jn?ue.createElement("div",(0,b.Z)({"aria-label":typeof Hn=="string"&&!lr?Hn:null},br,{key:On},bi(jn,On),{"aria-selected":Fi(kn)}),kn):null},kr={role:"listbox",id:"".concat(xt,"_list")};return ue.createElement(ue.Fragment,null,Jn&&ue.createElement("div",(0,b.Z)({},kr,{style:{height:0,width:0,overflow:"hidden"}}),Rr(Or-1),Rr(Or),Rr(Or+1)),ue.createElement(Ne.Z,{itemKey:"key",ref:mr,data:yr,height:Er,itemHeight:Cr,fullHeight:!1,onMouseDown:Yr,onScroll:Et,virtual:Jn,direction:ur,innerProps:Jn?null:kr},function(cr,On){var jn=cr.group,Kn=cr.groupOption,kn=cr.data,lr=cr.label,br=cr.value,Hn=kn.key;if(jn){var Bn,Xn=(Bn=kn.title)!==null&&Bn!==void 0?Bn:Kt(lr)?lr.toString():void 0;return ue.createElement("div",{className:ke()(Yn,"".concat(Yn,"-group"),kn.className),title:Xn},lr!==void 0?lr:Hn)}var rr=kn.disabled,Qr=kn.title,Ei=kn.children,pi=kn.style,Bi=kn.className,Ii=(0,ye.Z)(kn,wt),Pi=(0,Tt.Z)(Ii,xi),$i=Gr(br),Ni=rr||!$i&&Vr,Ai="".concat(Yn,"-option"),lo=ke()(Yn,Ai,Bi,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Ai,"-grouped"),Kn),"".concat(Ai,"-active"),Or===On&&!Ni),"".concat(Ai,"-disabled"),Ni),"".concat(Ai,"-selected"),$i)),xo=hi(cr),Do=!fr||typeof fr=="function"||$i,To=typeof xo=="number"?xo:xo||br,Co=Kt(To)?To.toString():void 0;return Qr!==void 0&&(Co=Qr),ue.createElement("div",(0,b.Z)({},(0,St.Z)(Pi),Jn?{}:bi(cr,On),{"aria-selected":Fi(br),className:lo,title:Co,onMouseMove:function(){Or===On||Ni||ci(On)},onClick:function(){Ni||vi(br)},style:pi}),ue.createElement("div",{className:"".concat(Ai,"-content")},typeof wr=="function"?wr(cr,{index:On}):To),ue.isValidElement(fr)||$i,Do&&ue.createElement(Ie,{className:"".concat(Yn,"-option-state"),customizeIcon:fr,customizeIconProps:{value:br,disabled:Ni,isSelected:$i}},$i?"\u2713":null))}))},bn=ue.forwardRef(sn),An=bn,zn=function(ct,yt){var Fe=ue.useRef({values:new Map,options:new Map}),lt=ue.useMemo(function(){var xt=Fe.current,Ee=xt.values,It=xt.options,kt=ct.map(function(Ct){if(Ct.label===void 0){var Et;return(0,Ge.Z)((0,Ge.Z)({},Ct),{},{label:(Et=Ee.get(Ct.value))===null||Et===void 0?void 0:Et.label})}return Ct}),Vt=new Map,bt=new Map;return kt.forEach(function(Ct){Vt.set(Ct.value,Ct),bt.set(Ct.value,yt.get(Ct.value)||It.get(Ct.value))}),Fe.current.values=Vt,Fe.current.options=bt,kt},[ct,yt]),ze=ue.useCallback(function(xt){return yt.get(xt)||Fe.current.options.get(xt)},[yt]);return[lt,ze]};function pn(ct,yt){return We(ct).join("").toUpperCase().includes(yt)}var Tn=function(ct,yt,Fe,lt,ze){return ue.useMemo(function(){if(!Fe||lt===!1)return ct;var xt=yt.options,Ee=yt.label,It=yt.value,kt=[],Vt=typeof lt=="function",bt=Fe.toUpperCase(),Ct=Vt?lt:function($t,Pn){return ze?pn(Pn[ze],bt):Pn[xt]?pn(Pn[Ee!=="children"?Ee:"label"],bt):pn(Pn[It],bt)},Et=Vt?function($t){return Ke($t)}:function($t){return $t};return ct.forEach(function($t){if($t[xt]){var Pn=Ct(Fe,Et($t));if(Pn)kt.push($t);else{var wn=$t[xt].filter(function(Dn){return Ct(Fe,Et(Dn))});wn.length&&kt.push((0,Ge.Z)((0,Ge.Z)({},$t),{},(0,fe.Z)({},xt,wn)))}return}Ct(Fe,Et($t))&&kt.push($t)}),kt},[ct,lt,ze,Fe,yt])},un=ee(6551),Sn=ee(11592),Mn=["children","value"],Rn=["children"];function vn(ct){var yt=ct,Fe=yt.key,lt=yt.props,ze=lt.children,xt=lt.value,Ee=(0,ye.Z)(lt,Mn);return(0,Ge.Z)({key:Fe,value:xt!==void 0?xt:Fe,children:ze},Ee)}function tn(ct){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Sn.Z)(ct).map(function(Fe,lt){if(!ue.isValidElement(Fe)||!Fe.type)return null;var ze=Fe,xt=ze.type.isSelectOptGroup,Ee=ze.key,It=ze.props,kt=It.children,Vt=(0,ye.Z)(It,Rn);return yt||!xt?vn(Fe):(0,Ge.Z)((0,Ge.Z)({key:"__RC_SELECT_GRP__".concat(Ee===null?lt:Ee,"__"),label:Ee},Vt),{},{options:tn(kt)})}).filter(function(Fe){return Fe})}var en=function(yt,Fe,lt,ze,xt){return ue.useMemo(function(){var Ee=yt,It=!yt;It&&(Ee=tn(Fe));var kt=new Map,Vt=new Map,bt=function($t,Pn,wn){wn&&typeof wn=="string"&&$t.set(Pn[wn],Pn)},Ct=function Et($t){for(var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wn=0;wn<$t.length;wn+=1){var Dn=$t[wn];!Dn[lt.options]||Pn?(kt.set(Dn[lt.value],Dn),bt(Vt,Dn,lt.label),bt(Vt,Dn,ze),bt(Vt,Dn,xt)):Et(Dn[lt.options],!0)}};return Ct(Ee),{options:Ee,valueOptions:kt,labelOptions:Vt}},[yt,Fe,lt,ze,xt])},cn=en;function En(ct){var yt=ue.useRef();yt.current=ct;var Fe=ue.useCallback(function(){return yt.current.apply(yt,arguments)},[]);return Fe}function $n(ct){var yt=ct.mode,Fe=ct.options,lt=ct.children,ze=ct.backfill,xt=ct.allowClear,Ee=ct.placeholder,It=ct.getInputElement,kt=ct.showSearch,Vt=ct.onSearch,bt=ct.defaultOpen,Ct=ct.autoFocus,Et=ct.labelInValue,$t=ct.value,Pn=ct.inputValue,wn=ct.optionLabelProp,Dn=isMultiple(yt),nr=kt!==void 0?kt:Dn||yt==="combobox",sr=Fe||convertChildrenToData(lt);if(warning(yt!=="tags"||sr.every(function(Jn){return!Jn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),yt==="tags"||yt==="combobox"){var fr=sr.some(function(Jn){return Jn.options?Jn.options.some(function(ur){return typeof("value"in ur?ur.value:ur.key)=="number"}):typeof("value"in Jn?Jn.value:Jn.key)=="number"});warning(!fr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(yt!=="combobox"||!wn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(yt==="combobox"||!ze,"`backfill` only works with `combobox` mode."),warning(yt==="combobox"||!It,"`getInputElement` only work with `combobox` mode."),noteOnce(yt!=="combobox"||!It||!xt||!Ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Vt&&!nr&&yt!=="combobox"&&yt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!bt||Ct,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),$t!=null){var Qn=toArray($t);warning(!Et||Qn.every(function(Jn){return _typeof(Jn)==="object"&&("key"in Jn||"value"in Jn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Dn||Array.isArray($t),"`value` should be array when `mode` is `multiple` or `tags`")}if(lt){var _n=null;toNodeArray(lt).some(function(Jn){if(!React.isValidElement(Jn)||!Jn.type)return!1;var ur=Jn,Er=ur.type;if(Er.isSelectOption)return!1;if(Er.isSelectOptGroup){var Cr=toNodeArray(Jn.props.children).every(function(wr){return!React.isValidElement(wr)||!Jn.type||wr.type.isSelectOption?!0:(_n=wr.type,!1)});return!Cr}return _n=Er,!0}),_n&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_n.displayName||_n.name||_n,"`.")),warning(Pn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Zn(ct,yt){if(ct){var Fe=function lt(ze){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=0;Ee<ze.length;Ee++){var It=ze[Ee];if(It[yt==null?void 0:yt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!xt&&Array.isArray(It[yt==null?void 0:yt.options])&<(It[yt==null?void 0:yt.options],!0))break}};Fe(ct)}}var Nn=null,Fn=["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"],qn=["inputValue"];function er(ct){return!ct||(0,De.Z)(ct)!=="object"}var on=ue.forwardRef(function(ct,yt){var Fe=ct.id,lt=ct.mode,ze=ct.prefixCls,xt=ze===void 0?"rc-select":ze,Ee=ct.backfill,It=ct.fieldNames,kt=ct.inputValue,Vt=ct.searchValue,bt=ct.onSearch,Ct=ct.autoClearSearchValue,Et=Ct===void 0?!0:Ct,$t=ct.onSelect,Pn=ct.onDeselect,wn=ct.dropdownMatchSelectWidth,Dn=wn===void 0?!0:wn,nr=ct.filterOption,sr=ct.filterSort,fr=ct.optionFilterProp,Qn=ct.optionLabelProp,_n=ct.options,Jn=ct.optionRender,ur=ct.children,Er=ct.defaultActiveFirstOption,Cr=ct.menuItemSelectedIcon,wr=ct.virtual,Yn=ct.direction,yr=ct.listHeight,mr=yr===void 0?200:yr,Vr=ct.listItemHeight,Yr=Vr===void 0?20:Vr,Ur=ct.labelRender,Gr=ct.value,oi=ct.defaultValue,Zr=ct.labelInValue,Jr=ct.onChange,Or=ct.maxCount,ti=(0,ye.Z)(ct,Fn),ci=(0,un.ZP)(Fe),Fi=rn(lt),vi=!!(!_n&&ur),xi=ue.useMemo(function(){return nr===void 0&<==="combobox"?!1:nr},[nr,lt]),hi=ue.useMemo(function(){return Re(It,vi)},[JSON.stringify(It),vi]),bi=(0,Ze.Z)("",{value:Vt!==void 0?Vt:kt,postState:function(Ci){return Ci||""}}),Rr=(0,Oe.Z)(bi,2),kr=Rr[0],cr=Rr[1],On=cn(_n,ur,hi,fr,Qn),jn=On.valueOptions,Kn=On.labelOptions,kn=On.options,lr=ue.useCallback(function(si){var Ci=We(si);return Ci.map(function(ni){var ui,Vi,so,La,oa;if(er(ni))ui=ni;else{var Yo;so=ni.key,Vi=ni.label,ui=(Yo=ni.value)!==null&&Yo!==void 0?Yo:so}var Bo=jn.get(ui);if(Bo){var Ta;if(Vi===void 0&&(Vi=Bo==null?void 0:Bo[Qn||hi.label]),so===void 0&&(so=(Ta=Bo==null?void 0:Bo.key)!==null&&Ta!==void 0?Ta:ui),La=Bo==null?void 0:Bo.disabled,oa=Bo==null?void 0:Bo.title,0)var Za}return{label:Vi,value:ui,key:so,disabled:La,title:oa}})},[hi,Qn,jn]),br=(0,Ze.Z)(oi,{value:Gr}),Hn=(0,Oe.Z)(br,2),Bn=Hn[0],Xn=Hn[1],rr=ue.useMemo(function(){var si,Ci=Fi&&Bn===null?[]:Bn,ni=lr(Ci);return lt==="combobox"&&me((si=ni[0])===null||si===void 0?void 0:si.value)?[]:ni},[Bn,lr,lt,Fi]),Qr=zn(rr,jn),Ei=(0,Oe.Z)(Qr,2),pi=Ei[0],Bi=Ei[1],Ii=ue.useMemo(function(){if(!lt&&pi.length===1){var si=pi[0];if(si.value===null&&(si.label===null||si.label===void 0))return[]}return pi.map(function(Ci){var ni;return(0,Ge.Z)((0,Ge.Z)({},Ci),{},{label:(ni=typeof Ur=="function"?Ur(Ci):Ci.label)!==null&&ni!==void 0?ni:Ci.value})})},[lt,pi,Ur]),Pi=ue.useMemo(function(){return new Set(pi.map(function(si){return si.value}))},[pi]);ue.useEffect(function(){if(lt==="combobox"){var si,Ci=(si=pi[0])===null||si===void 0?void 0:si.value;cr(Be(Ci)?String(Ci):"")}},[pi]);var $i=En(function(si,Ci){var ni=Ci!=null?Ci:si;return(0,fe.Z)((0,fe.Z)({},hi.value,si),hi.label,ni)}),Ni=ue.useMemo(function(){if(lt!=="tags")return kn;var si=(0,je.Z)(kn),Ci=function(ui){return jn.has(ui)};return(0,je.Z)(pi).sort(function(ni,ui){return ni.value<ui.value?-1:1}).forEach(function(ni){var ui=ni.value;Ci(ui)||si.push($i(ui,ni.label))}),si},[$i,kn,jn,pi,lt]),Ai=Tn(Ni,hi,kr,xi,fr),lo=ue.useMemo(function(){return lt!=="tags"||!kr||Ai.some(function(si){return si[fr||"value"]===kr})||Ai.some(function(si){return si[hi.value]===kr})?Ai:[$i(kr)].concat((0,je.Z)(Ai))},[$i,fr,lt,Ai,kr,hi]),xo=function si(Ci){var ni=(0,je.Z)(Ci).sort(function(ui,Vi){return sr(ui,Vi,{searchValue:kr})});return ni.map(function(ui){return Array.isArray(ui.options)?(0,Ge.Z)((0,Ge.Z)({},ui),{},{options:ui.options.length>0?si(ui.options):ui.options}):ui})},Do=ue.useMemo(function(){return sr?xo(lo):lo},[lo,sr,kr]),To=ue.useMemo(function(){return Ae(Do,{fieldNames:hi,childrenAsData:vi})},[Do,hi,vi]),Co=function(Ci){var ni=lr(Ci);if(Xn(ni),Jr&&(ni.length!==pi.length||ni.some(function(so,La){var oa;return((oa=pi[La])===null||oa===void 0?void 0:oa.value)!==(so==null?void 0:so.value)}))){var ui=Zr?ni:ni.map(function(so){return so.value}),Vi=ni.map(function(so){return Ke(Bi(so.value))});Jr(Fi?ui:ui[0],Fi?Vi:Vi[0])}},qr=ue.useState(null),Hr=(0,Oe.Z)(qr,2),Ji=Hr[0],qi=Hr[1],ai=ue.useState(0),Wi=(0,Oe.Z)(ai,2),Yi=Wi[0],gi=Wi[1],Zi=Er!==void 0?Er:lt!=="combobox",Mi=ue.useCallback(function(si,Ci){var ni=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ui=ni.source,Vi=ui===void 0?"keyboard":ui;gi(Ci),Ee&<==="combobox"&&si!==null&&Vi==="keyboard"&&qi(String(si))},[Ee,lt]),Zo=function(Ci,ni,ui){var Vi=function(){var Ya,Ma=Bi(Ci);return[Zr?{label:Ma==null?void 0:Ma[hi.label],value:Ci,key:(Ya=Ma==null?void 0:Ma.key)!==null&&Ya!==void 0?Ya:Ci}:Ci,Ke(Ma)]};if(ni&&$t){var so=Vi(),La=(0,Oe.Z)(so,2),oa=La[0],Yo=La[1];$t(oa,Yo)}else if(!ni&&Pn&&ui!=="clear"){var Bo=Vi(),Ta=(0,Oe.Z)(Bo,2),Za=Ta[0],pa=Ta[1];Pn(Za,pa)}},ha=En(function(si,Ci){var ni,ui=Fi?Ci.selected:!0;ui?ni=Fi?[].concat((0,je.Z)(pi),[si]):[si]:ni=pi.filter(function(Vi){return Vi.value!==si}),Co(ni),Zo(si,ui),lt==="combobox"?qi(""):(!rn||Et)&&(cr(""),qi(""))}),Wo=function(Ci,ni){Co(Ci);var ui=ni.type,Vi=ni.values;(ui==="remove"||ui==="clear")&&Vi.forEach(function(so){Zo(so.value,!1,ui)})},Mo=function(Ci,ni){if(cr(Ci),qi(null),ni.source==="submit"){var ui=(Ci||"").trim();if(ui){var Vi=Array.from(new Set([].concat((0,je.Z)(Pi),[ui])));Co(Vi),Zo(ui,!0),cr("")}return}ni.source!=="blur"&&(lt==="combobox"&&Co(Ci),bt==null||bt(Ci))},ul=function(Ci){var ni=Ci;lt!=="tags"&&(ni=Ci.map(function(Vi){var so=Kn.get(Vi);return so==null?void 0:so.value}).filter(function(Vi){return Vi!==void 0}));var ui=Array.from(new Set([].concat((0,je.Z)(Pi),(0,je.Z)(ni))));Co(ui),ui.forEach(function(Vi){Zo(Vi,!0)})},el=ue.useMemo(function(){var si=wr!==!1&&Dn!==!1;return(0,Ge.Z)((0,Ge.Z)({},On),{},{flattenOptions:To,onActiveValue:Mi,defaultActiveFirstOption:Zi,onSelect:ha,menuItemSelectedIcon:Cr,rawValues:Pi,fieldNames:hi,virtual:si,direction:Yn,listHeight:mr,listItemHeight:Yr,childrenAsData:vi,maxCount:Or,optionRender:Jn})},[Or,On,To,Mi,Zi,ha,Cr,Pi,hi,wr,Dn,Yn,mr,Yr,vi,Jn]);return ue.createElement(we.Provider,{value:el},ue.createElement(Ot,(0,b.Z)({},ti,{id:ci,prefixCls:xt,ref:yt,omitDomProps:qn,mode:lt,displayValues:Ii,onDisplayValuesChange:Wo,direction:Yn,searchValue:kr,onSearch:Mo,autoClearSearchValue:Et,onSearchSplit:ul,dropdownMatchSelectWidth:Dn,OptionList:An,emptyOptions:!To.length,activeValue:Ji,activeDescendantId:"".concat(ci,"_list_").concat(Yi)})))}),xn=on;xn.Option=mt,xn.OptGroup=Wt;var Un=xn,Gn=Un},22711:function(yn,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{ResizableTextArea:function(){return Se},default:function(){return Mt}});var b=ee(54476),je=ee(20068),fe=ee(33885),Ge=ee(94480),Oe=ee(42978),ye=ee(75931),De=ee(92310),Ze=ee.n(De),Ce=ee(36901),ue=ee(66003),tt=ee(30292),ke=ee(18929),Lt=ee(59301),at=ee(76190),$e=ee(29301),Me=ee(34280),Ie=ee(16089),Xe=`
|
|
|
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;
|
|
|
`,pt=["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"],Rt={},Ve;function Te(We){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=We.getAttribute("id")||We.getAttribute("data-reactid")||We.getAttribute("name");if(Pt&&Rt[Xt])return Rt[Xt];var Be=window.getComputedStyle(We),me=Be.getPropertyValue("box-sizing")||Be.getPropertyValue("-moz-box-sizing")||Be.getPropertyValue("-webkit-box-sizing"),ht=parseFloat(Be.getPropertyValue("padding-bottom"))+parseFloat(Be.getPropertyValue("padding-top")),Ut=parseFloat(Be.getPropertyValue("border-bottom-width"))+parseFloat(Be.getPropertyValue("border-top-width")),Bt=pt.map(function(Ye){return"".concat(Ye,":").concat(Be.getPropertyValue(Ye))}).join(";"),be={sizingStyle:Bt,paddingSize:ht,borderSize:Ut,boxSizing:me};return Pt&&Xt&&(Rt[Xt]=be),be}function nt(We){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ve||(Ve=document.createElement("textarea"),Ve.setAttribute("tab-index","-1"),Ve.setAttribute("aria-hidden","true"),Ve.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ve)),We.getAttribute("wrap")?Ve.setAttribute("wrap",We.getAttribute("wrap")):Ve.removeAttribute("wrap");var me=Te(We,Pt),ht=me.paddingSize,Ut=me.borderSize,Bt=me.boxSizing,be=me.sizingStyle;Ve.setAttribute("style","".concat(be,";").concat(Xe)),Ve.value=We.value||We.placeholder||"";var Ye=void 0,et=void 0,_t,rt=Ve.scrollHeight;if(Bt==="border-box"?rt+=Ut:Bt==="content-box"&&(rt-=ht),Xt!==null||Be!==null){Ve.value=" ";var Ft=Ve.scrollHeight-ht;Xt!==null&&(Ye=Ft*Xt,Bt==="border-box"&&(Ye=Ye+ht+Ut),rt=Math.max(Ye,rt)),Be!==null&&(et=Ft*Be,Bt==="border-box"&&(et=et+ht+Ut),_t=rt>et?"":"hidden",rt=Math.min(et,rt))}var qe={height:rt,overflowY:_t,resize:"none"};return Ye&&(qe.minHeight=Ye),et&&(qe.maxHeight=et),qe}var Qe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],zt=0,St=1,it=2,ut=Lt.forwardRef(function(We,Pt){var Xt=We,Be=Xt.prefixCls,me=Xt.defaultValue,ht=Xt.value,Ut=Xt.autoSize,Bt=Xt.onResize,be=Xt.className,Ye=Xt.style,et=Xt.disabled,_t=Xt.onChange,rt=Xt.onInternalAutoSize,Ft=(0,ye.Z)(Xt,Qe),qe=(0,ke.Z)(me,{value:ht,postState:function(mt){return mt!=null?mt:""}}),Jt=(0,Oe.Z)(qe,2),Dt=Jt[0],ae=Jt[1],ne=function(mt){ae(mt.target.value),_t==null||_t(mt)},te=Lt.useRef();Lt.useImperativeHandle(Pt,function(){return{textArea:te.current}});var oe=Lt.useMemo(function(){return Ut&&(0,at.Z)(Ut)==="object"?[Ut.minRows,Ut.maxRows]:[]},[Ut]),ce=(0,Oe.Z)(oe,2),re=ce[0],le=ce[1],ge=!!Ut,vt=function(){try{if(document.activeElement===te.current){var mt=te.current,ot=mt.selectionStart,Tt=mt.selectionEnd,Ne=mt.scrollTop;te.current.setSelectionRange(ot,Tt),te.current.scrollTop=Ne}}catch(dt){}},Re=Lt.useState(it),Ae=(0,Oe.Z)(Re,2),Ke=Ae[0],_e=Ae[1],gt=Lt.useState(),we=(0,Oe.Z)(gt,2),Pe=we[0],Zt=we[1],Ht=function(){_e(zt)};(0,Me.Z)(function(){ge&&Ht()},[ht,re,le,ge]),(0,Me.Z)(function(){if(Ke===zt)_e(St);else if(Ke===St){var He=nt(te.current,!1,re,le);_e(it),Zt(He)}else vt()},[Ke]);var rn=Lt.useRef(),Yt=function(){Ie.Z.cancel(rn.current)},Ot=function(mt){Ke===it&&(Bt==null||Bt(mt),Ut&&(Yt(),rn.current=(0,Ie.Z)(function(){Ht()})))};Lt.useEffect(function(){return Yt},[]);var nn=ge?Pe:null,Wt=(0,fe.Z)((0,fe.Z)({},Ye),nn);return(Ke===zt||Ke===St)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),Lt.createElement($e.Z,{onResize:Ot,disabled:!(Ut||Bt)},Lt.createElement("textarea",(0,b.Z)({},Ft,{ref:te,style:Wt,className:Ze()(Be,be,(0,je.Z)({},"".concat(Be,"-disabled"),et)),disabled:et,value:Dt,onChange:ne})))}),Se=ut,st=["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"],Je=Lt.forwardRef(function(We,Pt){var Xt,Be=We.defaultValue,me=We.value,ht=We.onFocus,Ut=We.onBlur,Bt=We.onChange,be=We.allowClear,Ye=We.maxLength,et=We.onCompositionStart,_t=We.onCompositionEnd,rt=We.suffix,Ft=We.prefixCls,qe=Ft===void 0?"rc-textarea":Ft,Jt=We.showCount,Dt=We.count,ae=We.className,ne=We.style,te=We.disabled,oe=We.hidden,ce=We.classNames,re=We.styles,le=We.onResize,ge=We.onClear,vt=We.onPressEnter,Re=We.readOnly,Ae=We.autoSize,Ke=We.onKeyDown,_e=(0,ye.Z)(We,st),gt=(0,ke.Z)(Be,{value:me,defaultValue:Be}),we=(0,Oe.Z)(gt,2),Pe=we[0],Zt=we[1],Ht=Pe==null?"":String(Pe),rn=Lt.useState(!1),Yt=(0,Oe.Z)(rn,2),Ot=Yt[0],nn=Yt[1],Wt=Lt.useRef(!1),He=Lt.useState(null),mt=(0,Oe.Z)(He,2),ot=mt[0],Tt=mt[1],Ne=(0,Lt.useRef)(null),dt=(0,Lt.useRef)(null),wt=function(){var xn;return(xn=dt.current)===null||xn===void 0?void 0:xn.textArea},Kt=function(){wt().focus()};(0,Lt.useImperativeHandle)(Pt,function(){var on;return{resizableTextArea:dt.current,focus:Kt,blur:function(){wt().blur()},nativeElement:((on=Ne.current)===null||on===void 0?void 0:on.nativeElement)||wt()}}),(0,Lt.useEffect)(function(){nn(function(on){return!te&&on})},[te]);var sn=Lt.useState(null),bn=(0,Oe.Z)(sn,2),An=bn[0],zn=bn[1];Lt.useEffect(function(){if(An){var on;(on=wt()).setSelectionRange.apply(on,(0,Ge.Z)(An))}},[An]);var pn=(0,ue.Z)(Dt,Jt),Tn=(Xt=pn.max)!==null&&Xt!==void 0?Xt:Ye,un=Number(Tn)>0,Sn=pn.strategy(Ht),Mn=!!Tn&&Sn>Tn,Rn=function(xn,Un){var Gn=Un;!Wt.current&&pn.exceedFormatter&&pn.max&&pn.strategy(Un)>pn.max&&(Gn=pn.exceedFormatter(Un,{max:pn.max}),Un!==Gn&&zn([wt().selectionStart||0,wt().selectionEnd||0])),Zt(Gn),(0,tt.rJ)(xn.currentTarget,xn,Bt,Gn)},vn=function(xn){Wt.current=!0,et==null||et(xn)},tn=function(xn){Wt.current=!1,Rn(xn,xn.currentTarget.value),_t==null||_t(xn)},en=function(xn){Rn(xn,xn.target.value)},cn=function(xn){xn.key==="Enter"&&vt&&vt(xn),Ke==null||Ke(xn)},En=function(xn){nn(!0),ht==null||ht(xn)},$n=function(xn){nn(!1),Ut==null||Ut(xn)},Zn=function(xn){Zt(""),Kt(),(0,tt.rJ)(wt(),xn,Bt)},Nn=rt,Fn;pn.show&&(pn.showFormatter?Fn=pn.showFormatter({value:Ht,count:Sn,maxLength:Tn}):Fn="".concat(Sn).concat(un?" / ".concat(Tn):""),Nn=Lt.createElement(Lt.Fragment,null,Nn,Lt.createElement("span",{className:Ze()("".concat(qe,"-data-count"),ce==null?void 0:ce.count),style:re==null?void 0:re.count},Fn)));var qn=function(xn){var Un;le==null||le(xn),(Un=wt())!==null&&Un!==void 0&&Un.style.height&&Tt(!0)},er=!Ae&&!Jt&&!be;return Lt.createElement(Ce.BaseInput,{ref:Ne,value:Ht,allowClear:be,handleReset:Zn,suffix:Nn,prefixCls:qe,classNames:(0,fe.Z)((0,fe.Z)({},ce),{},{affixWrapper:Ze()(ce==null?void 0:ce.affixWrapper,(0,je.Z)((0,je.Z)({},"".concat(qe,"-show-count"),Jt),"".concat(qe,"-textarea-allow-clear"),be))}),disabled:te,focused:Ot,className:Ze()(ae,Mn&&"".concat(qe,"-out-of-range")),style:(0,fe.Z)((0,fe.Z)({},ne),ot&&!er?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fn=="string"?Fn:void 0}},hidden:oe,readOnly:Re,onClear:ge},Lt.createElement(Se,(0,b.Z)({},_e,{autoSize:Ae,maxLength:Ye,onKeyDown:cn,onChange:en,onFocus:En,onBlur:$n,onCompositionStart:vn,onCompositionEnd:tn,className:Ze()(ce==null?void 0:ce.textarea),style:(0,fe.Z)((0,fe.Z)({},re==null?void 0:re.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:te,prefixCls:qe,onResize:qn,ref:dt,readOnly:Re})))}),de=Je,Mt=de},639:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Rt}});var b=ee(54476),je=ee(20068),fe=ee(33885),Ge=ee(42978),Oe=ee(75931),ye=ee(59301),De=ee(92310),Ze=ee.n(De),Ce=ee(26112),ue=ee(30699),tt=function(Te){for(var nt=Te.prefixCls,Qe=Te.level,zt=Te.isStart,St=Te.isEnd,it="".concat(nt,"-indent-unit"),ut=[],Se=0;Se<Qe;Se+=1)ut.push(ye.createElement("span",{key:Se,className:Ze()(it,(0,je.Z)((0,je.Z)({},"".concat(it,"-start"),zt[Se]),"".concat(it,"-end"),St[Se]))}));return ye.createElement("span",{"aria-hidden":"true",className:"".concat(nt,"-indent")},ut)},ke=ye.memo(tt),Lt=ee(65065),at=ee(34061),$e=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Me="open",Ie="close",Xe="---",pt=function(Te){var nt,Qe,zt,St=Te.eventKey,it=Te.className,ut=Te.style,Se=Te.dragOver,st=Te.dragOverGapTop,Je=Te.dragOverGapBottom,de=Te.isLeaf,Mt=Te.isStart,We=Te.isEnd,Pt=Te.expanded,Xt=Te.selected,Be=Te.checked,me=Te.halfChecked,ht=Te.loading,Ut=Te.domRef,Bt=Te.active,be=Te.data,Ye=Te.onMouseMove,et=Te.selectable,_t=(0,Oe.Z)(Te,$e),rt=ye.useContext(ue.k),Ft=ye.useContext(ue.y),qe=ye.useRef(null),Jt=ye.useState(!1),Dt=(0,Ge.Z)(Jt,2),ae=Dt[0],ne=Dt[1],te=!!(rt.disabled||Te.disabled||(nt=Ft.nodeDisabled)!==null&&nt!==void 0&&nt.call(Ft,be)),oe=ye.useMemo(function(){return!rt.checkable||Te.checkable===!1?!1:rt.checkable},[rt.checkable,Te.checkable]),ce=function(Sn){te||rt.onNodeSelect(Sn,(0,at.F)(Te))},re=function(Sn){te||!oe||Te.disableCheckbox||rt.onNodeCheck(Sn,(0,at.F)(Te),!Be)},le=ye.useMemo(function(){return typeof et=="boolean"?et:rt.selectable},[et,rt.selectable]),ge=function(Sn){rt.onNodeClick(Sn,(0,at.F)(Te)),le?ce(Sn):re(Sn)},vt=function(Sn){rt.onNodeDoubleClick(Sn,(0,at.F)(Te))},Re=function(Sn){rt.onNodeMouseEnter(Sn,(0,at.F)(Te))},Ae=function(Sn){rt.onNodeMouseLeave(Sn,(0,at.F)(Te))},Ke=function(Sn){rt.onNodeContextMenu(Sn,(0,at.F)(Te))},_e=ye.useMemo(function(){return!!(rt.draggable&&(!rt.draggable.nodeDraggable||rt.draggable.nodeDraggable(be)))},[rt.draggable,be]),gt=function(Sn){Sn.stopPropagation(),ne(!0),rt.onNodeDragStart(Sn,Te);try{Sn.dataTransfer.setData("text/plain","")}catch(Mn){}},we=function(Sn){Sn.preventDefault(),Sn.stopPropagation(),rt.onNodeDragEnter(Sn,Te)},Pe=function(Sn){Sn.preventDefault(),Sn.stopPropagation(),rt.onNodeDragOver(Sn,Te)},Zt=function(Sn){Sn.stopPropagation(),rt.onNodeDragLeave(Sn,Te)},Ht=function(Sn){Sn.stopPropagation(),ne(!1),rt.onNodeDragEnd(Sn,Te)},rn=function(Sn){Sn.preventDefault(),Sn.stopPropagation(),ne(!1),rt.onNodeDrop(Sn,Te)},Yt=function(Sn){ht||rt.onNodeExpand(Sn,(0,at.F)(Te))},Ot=ye.useMemo(function(){var un=(0,Lt.Z)(rt.keyEntities,St)||{},Sn=un.children;return!!(Sn||[]).length},[rt.keyEntities,St]),nn=ye.useMemo(function(){return de===!1?!1:de||!rt.loadData&&!Ot||rt.loadData&&Te.loaded&&!Ot},[de,rt.loadData,Ot,Te.loaded]);ye.useEffect(function(){ht||typeof rt.loadData=="function"&&Pt&&!nn&&!Te.loaded&&rt.onNodeLoad((0,at.F)(Te))},[ht,rt.loadData,rt.onNodeLoad,Pt,nn,Te]);var Wt=ye.useMemo(function(){var un;return(un=rt.draggable)!==null&&un!==void 0&&un.icon?ye.createElement("span",{className:"".concat(rt.prefixCls,"-draggable-icon")},rt.draggable.icon):null},[rt.draggable]),He=function(Sn){var Mn=Te.switcherIcon||rt.switcherIcon;return typeof Mn=="function"?Mn((0,fe.Z)((0,fe.Z)({},Te),{},{isLeaf:Sn})):Mn},mt=function(){if(nn){var Sn=He(!0);return Sn!==!1?ye.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-switcher"),"".concat(rt.prefixCls,"-switcher-noop"))},Sn):null}var Mn=He(!1);return Mn!==!1?ye.createElement("span",{onClick:Yt,className:Ze()("".concat(rt.prefixCls,"-switcher"),"".concat(rt.prefixCls,"-switcher_").concat(Pt?Me:Ie))},Mn):null},ot=ye.useMemo(function(){if(!oe)return null;var un=typeof oe!="boolean"?oe:null;return ye.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-checkbox"),(0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(rt.prefixCls,"-checkbox-checked"),Be),"".concat(rt.prefixCls,"-checkbox-indeterminate"),!Be&&me),"".concat(rt.prefixCls,"-checkbox-disabled"),te||Te.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":me?"mixed":Be,"aria-disabled":te||Te.disableCheckbox,"aria-label":"Select ".concat(typeof Te.title=="string"?Te.title:"tree node")},un)},[oe,Be,me,te,Te.disableCheckbox,Te.title]),Tt=ye.useMemo(function(){return nn?null:Pt?Me:Ie},[nn,Pt]),Ne=ye.useMemo(function(){return ye.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-iconEle"),"".concat(rt.prefixCls,"-icon__").concat(Tt||"docu"),(0,je.Z)({},"".concat(rt.prefixCls,"-icon_loading"),ht))})},[rt.prefixCls,Tt,ht]),dt=ye.useMemo(function(){var un=!!rt.draggable,Sn=!Te.disabled&&un&&rt.dragOverNodeKey===St;return Sn?rt.dropIndicatorRender({dropPosition:rt.dropPosition,dropLevelOffset:rt.dropLevelOffset,indent:rt.indent,prefixCls:rt.prefixCls,direction:rt.direction}):null},[rt.dropPosition,rt.dropLevelOffset,rt.indent,rt.prefixCls,rt.direction,rt.draggable,rt.dragOverNodeKey,rt.dropIndicatorRender]),wt=ye.useMemo(function(){var un=Te.title,Sn=un===void 0?Xe:un,Mn="".concat(rt.prefixCls,"-node-content-wrapper"),Rn;if(rt.showIcon){var vn=Te.icon||rt.icon;Rn=vn?ye.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-iconEle"),"".concat(rt.prefixCls,"-icon__customize"))},typeof vn=="function"?vn(Te):vn):Ne}else rt.loadData&&ht&&(Rn=Ne);var tn;return typeof Sn=="function"?tn=Sn(be):rt.titleRender?tn=rt.titleRender(be):tn=Sn,ye.createElement("span",{ref:qe,title:typeof Sn=="string"?Sn:"",className:Ze()(Mn,"".concat(Mn,"-").concat(Tt||"normal"),(0,je.Z)({},"".concat(rt.prefixCls,"-node-selected"),!te&&(Xt||ae))),onMouseEnter:Re,onMouseLeave:Ae,onContextMenu:Ke,onClick:ge,onDoubleClick:vt},Rn,ye.createElement("span",{className:"".concat(rt.prefixCls,"-title")},tn),dt)},[rt.prefixCls,rt.showIcon,Te,rt.icon,Ne,rt.titleRender,be,Tt,Re,Ae,Ke,ge,vt]),Kt=(0,Ce.Z)(_t,{aria:!0,data:!0}),sn=(0,Lt.Z)(rt.keyEntities,St)||{},bn=sn.level,An=We[We.length-1],zn=!te&&_e,pn=rt.draggingNodeKey===St,Tn=et!==void 0?{"aria-selected":!!et}:void 0;return ye.createElement("div",(0,b.Z)({ref:Ut,role:"treeitem","aria-expanded":de?void 0:Pt,className:Ze()(it,"".concat(rt.prefixCls,"-treenode"),(zt={},(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)(zt,"".concat(rt.prefixCls,"-treenode-disabled"),te),"".concat(rt.prefixCls,"-treenode-switcher-").concat(Pt?"open":"close"),!de),"".concat(rt.prefixCls,"-treenode-checkbox-checked"),Be),"".concat(rt.prefixCls,"-treenode-checkbox-indeterminate"),me),"".concat(rt.prefixCls,"-treenode-selected"),Xt),"".concat(rt.prefixCls,"-treenode-loading"),ht),"".concat(rt.prefixCls,"-treenode-active"),Bt),"".concat(rt.prefixCls,"-treenode-leaf-last"),An),"".concat(rt.prefixCls,"-treenode-draggable"),_e),"dragging",pn),(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)(zt,"drop-target",rt.dropTargetKey===St),"drop-container",rt.dropContainerKey===St),"drag-over",!te&&Se),"drag-over-gap-top",!te&&st),"drag-over-gap-bottom",!te&&Je),"filter-node",(Qe=rt.filterTreeNode)===null||Qe===void 0?void 0:Qe.call(rt,(0,at.F)(Te))),"".concat(rt.prefixCls,"-treenode-leaf"),nn))),style:ut,draggable:zn,onDragStart:zn?gt:void 0,onDragEnter:_e?we:void 0,onDragOver:_e?Pe:void 0,onDragLeave:_e?Zt:void 0,onDrop:_e?rn:void 0,onDragEnd:_e?Ht:void 0,onMouseMove:Ye},Tn,Kt),ye.createElement(ke,{prefixCls:rt.prefixCls,level:bn,isStart:Mt,isEnd:We}),Wt,mt(),ot,wt)};pt.isTreeNode=1;var Rt=pt},30699:function(yn,Qt,ee){"use strict";ee.d(Qt,{k:function(){return je},y:function(){return fe}});var b=ee(59301),je=b.createContext(null),fe=b.createContext({})},3741:function(yn,Qt,ee){"use strict";ee.d(Qt,{OF:function(){return St.Z},y6:function(){return Ie.y},ZP:function(){return te}});var b=ee(54476),je=ee(76190),fe=ee(33885),Ge=ee(94480),Oe=ee(67732),ye=ee(83652),De=ee(31226),Ze=ee(42403),Ce=ee(158),ue=ee(20068),tt=ee(92310),ke=ee.n(tt),Lt=ee(10228),at=ee(26112),$e=ee(48736),Me=ee(59301),Ie=ee(30699),Xe=function(ce){var re=ce.dropPosition,le=ce.dropLevelOffset,ge=ce.indent,vt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:vt.top=0,vt.left=-le*ge;break;case 1:vt.bottom=0,vt.left=-le*ge;break;case 0:vt.bottom=0,vt.left=ge;break}return Me.createElement("div",{style:vt})},pt=Xe;function Rt(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var Ve=ee(42978),Te=ee(75931),nt=ee(34280),Qe=ee(48911),zt=ee(77900),St=ee(639);function it(oe,ce){var re=Me.useState(!1),le=(0,Ve.Z)(re,2),ge=le[0],vt=le[1];(0,nt.Z)(function(){if(ge)return oe(),function(){ce()}},[ge]),(0,nt.Z)(function(){return vt(!0),function(){vt(!1)}},[])}var ut=it,Se=ee(34061),st=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Je=Me.forwardRef(function(oe,ce){var re=oe.className,le=oe.style,ge=oe.motion,vt=oe.motionNodes,Re=oe.motionType,Ae=oe.onMotionStart,Ke=oe.onMotionEnd,_e=oe.active,gt=oe.treeNodeRequiredProps,we=(0,Te.Z)(oe,st),Pe=Me.useState(!0),Zt=(0,Ve.Z)(Pe,2),Ht=Zt[0],rn=Zt[1],Yt=Me.useContext(Ie.k),Ot=Yt.prefixCls,nn=vt&&Re!=="hide";(0,nt.Z)(function(){vt&&nn!==Ht&&rn(nn)},[vt]);var Wt=function(){vt&&Ae()},He=Me.useRef(!1),mt=function(){vt&&!He.current&&(He.current=!0,Ke())};ut(Wt,mt);var ot=function(Ne){nn===Ne&&mt()};return vt?Me.createElement(zt.default,(0,b.Z)({ref:ce,visible:Ht},ge,{motionAppear:Re==="show",onVisibleChanged:ot}),function(Tt,Ne){var dt=Tt.className,wt=Tt.style;return Me.createElement("div",{ref:Ne,className:ke()("".concat(Ot,"-treenode-motion"),dt),style:wt},vt.map(function(Kt){var sn=Object.assign({},(Rt(Kt.data),Kt.data)),bn=Kt.title,An=Kt.key,zn=Kt.isStart,pn=Kt.isEnd;delete sn.children;var Tn=(0,Se.H8)(An,gt);return Me.createElement(St.Z,(0,b.Z)({},sn,Tn,{title:bn,active:_e,data:Kt.data,key:An,isStart:zn,isEnd:pn}))}))}):Me.createElement(St.Z,(0,b.Z)({domRef:ce,className:re,style:le},we,{active:_e}))}),de=Je;function Mt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=oe.length,le=ce.length;if(Math.abs(re-le)!==1)return{add:!1,key:null};function ge(vt,Re){var Ae=new Map;vt.forEach(function(_e){Ae.set(_e,!0)});var Ke=Re.filter(function(_e){return!Ae.has(_e)});return Ke.length===1?Ke[0]:null}return re<le?{add:!0,key:ge(oe,ce)}:{add:!1,key:ge(ce,oe)}}function We(oe,ce,re){var le=oe.findIndex(function(Ae){return Ae.key===re}),ge=oe[le+1],vt=ce.findIndex(function(Ae){return Ae.key===re});if(ge){var Re=ce.findIndex(function(Ae){return Ae.key===ge.key});return ce.slice(vt+1,Re)}return ce.slice(vt+1)}var Pt=["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"],Xt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Be=function(){},me="RC_TREE_MOTION_".concat(Math.random()),ht={key:me},Ut={key:me,level:0,index:0,pos:"0",node:ht,nodes:[ht]},Bt={parent:null,children:[],pos:Ut.pos,data:ht,title:null,key:me,isStart:[],isEnd:[]};function be(oe,ce,re,le){return ce===!1||!re?oe:oe.slice(0,Math.ceil(re/le)+1)}function Ye(oe){var ce=oe.key,re=oe.pos;return(0,Se.km)(ce,re)}function et(oe){for(var ce=String(oe.data.key),re=oe;re.parent;)re=re.parent,ce="".concat(re.data.key," > ").concat(ce);return ce}var _t=Me.forwardRef(function(oe,ce){var re=oe.prefixCls,le=oe.data,ge=oe.selectable,vt=oe.checkable,Re=oe.expandedKeys,Ae=oe.selectedKeys,Ke=oe.checkedKeys,_e=oe.loadedKeys,gt=oe.loadingKeys,we=oe.halfCheckedKeys,Pe=oe.keyEntities,Zt=oe.disabled,Ht=oe.dragging,rn=oe.dragOverNodeKey,Yt=oe.dropPosition,Ot=oe.motion,nn=oe.height,Wt=oe.itemHeight,He=oe.virtual,mt=oe.scrollWidth,ot=oe.focusable,Tt=oe.activeItem,Ne=oe.focused,dt=oe.tabIndex,wt=oe.onKeyDown,Kt=oe.onFocus,sn=oe.onBlur,bn=oe.onActiveChange,An=oe.onListChangeStart,zn=oe.onListChangeEnd,pn=(0,Te.Z)(oe,Pt),Tn=Me.useRef(null),un=Me.useRef(null);Me.useImperativeHandle(ce,function(){return{scrollTo:function(It){Tn.current.scrollTo(It)},getIndentWidth:function(){return un.current.offsetWidth}}});var Sn=Me.useState(Re),Mn=(0,Ve.Z)(Sn,2),Rn=Mn[0],vn=Mn[1],tn=Me.useState(le),en=(0,Ve.Z)(tn,2),cn=en[0],En=en[1],$n=Me.useState(le),Zn=(0,Ve.Z)($n,2),Nn=Zn[0],Fn=Zn[1],qn=Me.useState([]),er=(0,Ve.Z)(qn,2),on=er[0],xn=er[1],Un=Me.useState(null),Gn=(0,Ve.Z)(Un,2),ct=Gn[0],yt=Gn[1],Fe=Me.useRef(le);Fe.current=le;function lt(){var Ee=Fe.current;En(Ee),Fn(Ee),xn([]),yt(null),zn()}(0,nt.Z)(function(){vn(Re);var Ee=Mt(Rn,Re);if(Ee.key!==null)if(Ee.add){var It=cn.findIndex(function($t){var Pn=$t.key;return Pn===Ee.key}),kt=be(We(cn,le,Ee.key),He,nn,Wt),Vt=cn.slice();Vt.splice(It+1,0,Bt),Fn(Vt),xn(kt),yt("show")}else{var bt=le.findIndex(function($t){var Pn=$t.key;return Pn===Ee.key}),Ct=be(We(le,cn,Ee.key),He,nn,Wt),Et=le.slice();Et.splice(bt+1,0,Bt),Fn(Et),xn(Ct),yt("hide")}else cn!==le&&(En(le),Fn(le))},[Re,le]),Me.useEffect(function(){Ht||lt()},[Ht]);var ze=Ot?Nn:le,xt={expandedKeys:Re,selectedKeys:Ae,loadedKeys:_e,loadingKeys:gt,checkedKeys:Ke,halfCheckedKeys:we,dragOverNodeKey:rn,dropPosition:Yt,keyEntities:Pe};return Me.createElement(Me.Fragment,null,Ne&&Tt&&Me.createElement("span",{style:Xt,"aria-live":"assertive"},et(Tt)),Me.createElement("div",null,Me.createElement("input",{style:Xt,disabled:ot===!1||Zt,tabIndex:ot!==!1?dt:null,onKeyDown:wt,onFocus:Kt,onBlur:sn,value:"",onChange:Be,"aria-label":"for screen reader"})),Me.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Me.createElement("div",{className:"".concat(re,"-indent")},Me.createElement("div",{ref:un,className:"".concat(re,"-indent-unit")}))),Me.createElement(Qe.Z,(0,b.Z)({},pn,{data:ze,itemKey:Ye,height:nn,fullHeight:!1,virtual:He,itemHeight:Wt,scrollWidth:mt,prefixCls:"".concat(re,"-list"),ref:Tn,role:"tree",onVisibleChange:function(It){It.every(function(kt){return Ye(kt)!==me})&<()}}),function(Ee){var It=Ee.pos,kt=Object.assign({},(Rt(Ee.data),Ee.data)),Vt=Ee.title,bt=Ee.key,Ct=Ee.isStart,Et=Ee.isEnd,$t=(0,Se.km)(bt,It);delete kt.key,delete kt.children;var Pn=(0,Se.H8)($t,xt);return Me.createElement(de,(0,b.Z)({},kt,Pn,{title:Vt,active:!!Tt&&bt===Tt.key,pos:It,data:Ee.data,isStart:Ct,isEnd:Et,motion:Ot,motionNodes:bt===me?on:null,motionType:ct,onMotionStart:An,onMotionEnd:lt,treeNodeRequiredProps:xt,onMouseMove:function(){bn(null)}}))}))}),rt=_t,Ft=ee(82661),qe=ee(34643),Jt=ee(65065),Dt=10,ae=function(oe){(0,Ze.Z)(re,oe);var ce=(0,Ce.Z)(re);function re(){var le;(0,Oe.Z)(this,re);for(var ge=arguments.length,vt=new Array(ge),Re=0;Re<ge;Re++)vt[Re]=arguments[Re];return le=ce.call.apply(ce,[this].concat(vt)),(0,ue.Z)((0,De.Z)(le),"destroyed",!1),(0,ue.Z)((0,De.Z)(le),"delayedDragEnterLogic",void 0),(0,ue.Z)((0,De.Z)(le),"loadingRetryTimes",{}),(0,ue.Z)((0,De.Z)(le),"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,Se.w$)()}),(0,ue.Z)((0,De.Z)(le),"dragStartMousePosition",null),(0,ue.Z)((0,De.Z)(le),"dragNodeProps",null),(0,ue.Z)((0,De.Z)(le),"currentMouseOverDroppableNodeKey",null),(0,ue.Z)((0,De.Z)(le),"listRef",Me.createRef()),(0,ue.Z)((0,De.Z)(le),"onNodeDragStart",function(Ae,Ke){var _e=le.state,gt=_e.expandedKeys,we=_e.keyEntities,Pe=le.props.onDragStart,Zt=Ke.eventKey;le.dragNodeProps=Ke,le.dragStartMousePosition={x:Ae.clientX,y:Ae.clientY};var Ht=(0,Ft._5)(gt,Zt);le.setState({draggingNodeKey:Zt,dragChildrenKeys:(0,Ft.wA)(Zt,we),indent:le.listRef.current.getIndentWidth()}),le.setExpandedKeys(Ht),window.addEventListener("dragend",le.onWindowDragEnd),Pe==null||Pe({event:Ae,node:(0,Se.F)(Ke)})}),(0,ue.Z)((0,De.Z)(le),"onNodeDragEnter",function(Ae,Ke){var _e=le.state,gt=_e.expandedKeys,we=_e.keyEntities,Pe=_e.dragChildrenKeys,Zt=_e.flattenNodes,Ht=_e.indent,rn=le.props,Yt=rn.onDragEnter,Ot=rn.onExpand,nn=rn.allowDrop,Wt=rn.direction,He=Ke.pos,mt=Ke.eventKey;if(le.currentMouseOverDroppableNodeKey!==mt&&(le.currentMouseOverDroppableNodeKey=mt),!le.dragNodeProps){le.resetDragState();return}var ot=(0,Ft.OM)(Ae,le.dragNodeProps,Ke,Ht,le.dragStartMousePosition,nn,Zt,we,gt,Wt),Tt=ot.dropPosition,Ne=ot.dropLevelOffset,dt=ot.dropTargetKey,wt=ot.dropContainerKey,Kt=ot.dropTargetPos,sn=ot.dropAllowed,bn=ot.dragOverNodeKey;if(Pe.includes(dt)||!sn){le.resetDragState();return}if(le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(An){clearTimeout(le.delayedDragEnterLogic[An])}),le.dragNodeProps.eventKey!==Ke.eventKey&&(Ae.persist(),le.delayedDragEnterLogic[He]=window.setTimeout(function(){if(le.state.draggingNodeKey!==null){var An=(0,Ge.Z)(gt),zn=(0,Jt.Z)(we,Ke.eventKey);zn&&(zn.children||[]).length&&(An=(0,Ft.L0)(gt,Ke.eventKey)),le.props.hasOwnProperty("expandedKeys")||le.setExpandedKeys(An),Ot==null||Ot(An,{node:(0,Se.F)(Ke),expanded:!0,nativeEvent:Ae.nativeEvent})}},800)),le.dragNodeProps.eventKey===dt&&Ne===0){le.resetDragState();return}le.setState({dragOverNodeKey:bn,dropPosition:Tt,dropLevelOffset:Ne,dropTargetKey:dt,dropContainerKey:wt,dropTargetPos:Kt,dropAllowed:sn}),Yt==null||Yt({event:Ae,node:(0,Se.F)(Ke),expandedKeys:gt})}),(0,ue.Z)((0,De.Z)(le),"onNodeDragOver",function(Ae,Ke){var _e=le.state,gt=_e.dragChildrenKeys,we=_e.flattenNodes,Pe=_e.keyEntities,Zt=_e.expandedKeys,Ht=_e.indent,rn=le.props,Yt=rn.onDragOver,Ot=rn.allowDrop,nn=rn.direction;if(le.dragNodeProps){var Wt=(0,Ft.OM)(Ae,le.dragNodeProps,Ke,Ht,le.dragStartMousePosition,Ot,we,Pe,Zt,nn),He=Wt.dropPosition,mt=Wt.dropLevelOffset,ot=Wt.dropTargetKey,Tt=Wt.dropContainerKey,Ne=Wt.dropTargetPos,dt=Wt.dropAllowed,wt=Wt.dragOverNodeKey;gt.includes(ot)||!dt||(le.dragNodeProps.eventKey===ot&&mt===0?le.state.dropPosition===null&&le.state.dropLevelOffset===null&&le.state.dropTargetKey===null&&le.state.dropContainerKey===null&&le.state.dropTargetPos===null&&le.state.dropAllowed===!1&&le.state.dragOverNodeKey===null||le.resetDragState():He===le.state.dropPosition&&mt===le.state.dropLevelOffset&&ot===le.state.dropTargetKey&&Tt===le.state.dropContainerKey&&Ne===le.state.dropTargetPos&&dt===le.state.dropAllowed&&wt===le.state.dragOverNodeKey||le.setState({dropPosition:He,dropLevelOffset:mt,dropTargetKey:ot,dropContainerKey:Tt,dropTargetPos:Ne,dropAllowed:dt,dragOverNodeKey:wt}),Yt==null||Yt({event:Ae,node:(0,Se.F)(Ke)}))}}),(0,ue.Z)((0,De.Z)(le),"onNodeDragLeave",function(Ae,Ke){le.currentMouseOverDroppableNodeKey===Ke.eventKey&&!Ae.currentTarget.contains(Ae.relatedTarget)&&(le.resetDragState(),le.currentMouseOverDroppableNodeKey=null);var _e=le.props.onDragLeave;_e==null||_e({event:Ae,node:(0,Se.F)(Ke)})}),(0,ue.Z)((0,De.Z)(le),"onWindowDragEnd",function(Ae){le.onNodeDragEnd(Ae,null,!0),window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ue.Z)((0,De.Z)(le),"onNodeDragEnd",function(Ae,Ke){var _e=le.props.onDragEnd;le.setState({dragOverNodeKey:null}),le.cleanDragState(),_e==null||_e({event:Ae,node:(0,Se.F)(Ke)}),le.dragNodeProps=null,window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ue.Z)((0,De.Z)(le),"onNodeDrop",function(Ae,Ke){var _e,gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=le.state,Pe=we.dragChildrenKeys,Zt=we.dropPosition,Ht=we.dropTargetKey,rn=we.dropTargetPos,Yt=we.dropAllowed;if(Yt){var Ot=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Ht!==null){var nn=(0,fe.Z)((0,fe.Z)({},(0,Se.H8)(Ht,le.getTreeNodeRequiredProps())),{},{active:((_e=le.getActiveItem())===null||_e===void 0?void 0:_e.key)===Ht,data:(0,Jt.Z)(le.state.keyEntities,Ht).node}),Wt=Pe.includes(Ht);(0,$e.ZP)(!Wt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var He=(0,Ft.yx)(rn),mt={event:Ae,node:(0,Se.F)(nn),dragNode:le.dragNodeProps?(0,Se.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(Pe),dropToGap:Zt!==0,dropPosition:Zt+Number(He[He.length-1])};gt||Ot==null||Ot(mt),le.dragNodeProps=null}}}),(0,ue.Z)((0,De.Z)(le),"cleanDragState",function(){var Ae=le.state.draggingNodeKey;Ae!==null&&le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),le.dragStartMousePosition=null,le.currentMouseOverDroppableNodeKey=null}),(0,ue.Z)((0,De.Z)(le),"triggerExpandActionExpand",function(Ae,Ke){var _e=le.state,gt=_e.expandedKeys,we=_e.flattenNodes,Pe=Ke.expanded,Zt=Ke.key,Ht=Ke.isLeaf;if(!(Ht||Ae.shiftKey||Ae.metaKey||Ae.ctrlKey)){var rn=we.filter(function(Ot){return Ot.key===Zt})[0],Yt=(0,Se.F)((0,fe.Z)((0,fe.Z)({},(0,Se.H8)(Zt,le.getTreeNodeRequiredProps())),{},{data:rn.data}));le.setExpandedKeys(Pe?(0,Ft._5)(gt,Zt):(0,Ft.L0)(gt,Zt)),le.onNodeExpand(Ae,Yt)}}),(0,ue.Z)((0,De.Z)(le),"onNodeClick",function(Ae,Ke){var _e=le.props,gt=_e.onClick,we=_e.expandAction;we==="click"&&le.triggerExpandActionExpand(Ae,Ke),gt==null||gt(Ae,Ke)}),(0,ue.Z)((0,De.Z)(le),"onNodeDoubleClick",function(Ae,Ke){var _e=le.props,gt=_e.onDoubleClick,we=_e.expandAction;we==="doubleClick"&&le.triggerExpandActionExpand(Ae,Ke),gt==null||gt(Ae,Ke)}),(0,ue.Z)((0,De.Z)(le),"onNodeSelect",function(Ae,Ke){var _e=le.state.selectedKeys,gt=le.state,we=gt.keyEntities,Pe=gt.fieldNames,Zt=le.props,Ht=Zt.onSelect,rn=Zt.multiple,Yt=Ke.selected,Ot=Ke[Pe.key],nn=!Yt;nn?rn?_e=(0,Ft.L0)(_e,Ot):_e=[Ot]:_e=(0,Ft._5)(_e,Ot);var Wt=_e.map(function(He){var mt=(0,Jt.Z)(we,He);return mt?mt.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:_e}),Ht==null||Ht(_e,{event:"select",selected:nn,node:Ke,selectedNodes:Wt,nativeEvent:Ae.nativeEvent})}),(0,ue.Z)((0,De.Z)(le),"onNodeCheck",function(Ae,Ke,_e){var gt=le.state,we=gt.keyEntities,Pe=gt.checkedKeys,Zt=gt.halfCheckedKeys,Ht=le.props,rn=Ht.checkStrictly,Yt=Ht.onCheck,Ot=Ke.key,nn,Wt={event:"check",node:Ke,checked:_e,nativeEvent:Ae.nativeEvent};if(rn){var He=_e?(0,Ft.L0)(Pe,Ot):(0,Ft._5)(Pe,Ot),mt=(0,Ft._5)(Zt,Ot);nn={checked:He,halfChecked:mt},Wt.checkedNodes=He.map(function(Kt){return(0,Jt.Z)(we,Kt)}).filter(Boolean).map(function(Kt){return Kt.node}),le.setUncontrolledState({checkedKeys:He})}else{var ot=(0,qe.S)([].concat((0,Ge.Z)(Pe),[Ot]),!0,we),Tt=ot.checkedKeys,Ne=ot.halfCheckedKeys;if(!_e){var dt=new Set(Tt);dt.delete(Ot);var wt=(0,qe.S)(Array.from(dt),{checked:!1,halfCheckedKeys:Ne},we);Tt=wt.checkedKeys,Ne=wt.halfCheckedKeys}nn=Tt,Wt.checkedNodes=[],Wt.checkedNodesPositions=[],Wt.halfCheckedKeys=Ne,Tt.forEach(function(Kt){var sn=(0,Jt.Z)(we,Kt);if(sn){var bn=sn.node,An=sn.pos;Wt.checkedNodes.push(bn),Wt.checkedNodesPositions.push({node:bn,pos:An})}}),le.setUncontrolledState({checkedKeys:Tt},!1,{halfCheckedKeys:Ne})}Yt==null||Yt(nn,Wt)}),(0,ue.Z)((0,De.Z)(le),"onNodeLoad",function(Ae){var Ke,_e=Ae.key,gt=le.state.keyEntities,we=(0,Jt.Z)(gt,_e);if(!(we!=null&&(Ke=we.children)!==null&&Ke!==void 0&&Ke.length)){var Pe=new Promise(function(Zt,Ht){le.setState(function(rn){var Yt=rn.loadedKeys,Ot=Yt===void 0?[]:Yt,nn=rn.loadingKeys,Wt=nn===void 0?[]:nn,He=le.props,mt=He.loadData,ot=He.onLoad;if(!mt||Ot.includes(_e)||Wt.includes(_e))return null;var Tt=mt(Ae);return Tt.then(function(){var Ne=le.state.loadedKeys,dt=(0,Ft.L0)(Ne,_e);ot==null||ot(dt,{event:"load",node:Ae}),le.setUncontrolledState({loadedKeys:dt}),le.setState(function(wt){return{loadingKeys:(0,Ft._5)(wt.loadingKeys,_e)}}),Zt()}).catch(function(Ne){if(le.setState(function(wt){return{loadingKeys:(0,Ft._5)(wt.loadingKeys,_e)}}),le.loadingRetryTimes[_e]=(le.loadingRetryTimes[_e]||0)+1,le.loadingRetryTimes[_e]>=Dt){var dt=le.state.loadedKeys;(0,$e.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,Ft.L0)(dt,_e)}),Zt()}Ht(Ne)}),{loadingKeys:(0,Ft.L0)(Wt,_e)}})});return Pe.catch(function(){}),Pe}}),(0,ue.Z)((0,De.Z)(le),"onNodeMouseEnter",function(Ae,Ke){var _e=le.props.onMouseEnter;_e==null||_e({event:Ae,node:Ke})}),(0,ue.Z)((0,De.Z)(le),"onNodeMouseLeave",function(Ae,Ke){var _e=le.props.onMouseLeave;_e==null||_e({event:Ae,node:Ke})}),(0,ue.Z)((0,De.Z)(le),"onNodeContextMenu",function(Ae,Ke){var _e=le.props.onRightClick;_e&&(Ae.preventDefault(),_e({event:Ae,node:Ke}))}),(0,ue.Z)((0,De.Z)(le),"onFocus",function(){var Ae=le.props.onFocus;le.setState({focused:!0});for(var Ke=arguments.length,_e=new Array(Ke),gt=0;gt<Ke;gt++)_e[gt]=arguments[gt];Ae==null||Ae.apply(void 0,_e)}),(0,ue.Z)((0,De.Z)(le),"onBlur",function(){var Ae=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null);for(var Ke=arguments.length,_e=new Array(Ke),gt=0;gt<Ke;gt++)_e[gt]=arguments[gt];Ae==null||Ae.apply(void 0,_e)}),(0,ue.Z)((0,De.Z)(le),"getTreeNodeRequiredProps",function(){var Ae=le.state,Ke=Ae.expandedKeys,_e=Ae.selectedKeys,gt=Ae.loadedKeys,we=Ae.loadingKeys,Pe=Ae.checkedKeys,Zt=Ae.halfCheckedKeys,Ht=Ae.dragOverNodeKey,rn=Ae.dropPosition,Yt=Ae.keyEntities;return{expandedKeys:Ke||[],selectedKeys:_e||[],loadedKeys:gt||[],loadingKeys:we||[],checkedKeys:Pe||[],halfCheckedKeys:Zt||[],dragOverNodeKey:Ht,dropPosition:rn,keyEntities:Yt}}),(0,ue.Z)((0,De.Z)(le),"setExpandedKeys",function(Ae){var Ke=le.state,_e=Ke.treeData,gt=Ke.fieldNames,we=(0,Se.oH)(_e,Ae,gt);le.setUncontrolledState({expandedKeys:Ae,flattenNodes:we},!0)}),(0,ue.Z)((0,De.Z)(le),"onNodeExpand",function(Ae,Ke){var _e=le.state.expandedKeys,gt=le.state,we=gt.listChanging,Pe=gt.fieldNames,Zt=le.props,Ht=Zt.onExpand,rn=Zt.loadData,Yt=Ke.expanded,Ot=Ke[Pe.key];if(!we){var nn=_e.includes(Ot),Wt=!Yt;if((0,$e.ZP)(Yt&&nn||!Yt&&!nn,"Expand state not sync with index check"),_e=Wt?(0,Ft.L0)(_e,Ot):(0,Ft._5)(_e,Ot),le.setExpandedKeys(_e),Ht==null||Ht(_e,{node:Ke,expanded:Wt,nativeEvent:Ae.nativeEvent}),Wt&&rn){var He=le.onNodeLoad(Ke);He&&He.then(function(){var mt=(0,Se.oH)(le.state.treeData,_e,Pe);le.setUncontrolledState({flattenNodes:mt})}).catch(function(){var mt=le.state.expandedKeys,ot=(0,Ft._5)(mt,Ot);le.setExpandedKeys(ot)})}}}),(0,ue.Z)((0,De.Z)(le),"onListChangeStart",function(){le.setUncontrolledState({listChanging:!0})}),(0,ue.Z)((0,De.Z)(le),"onListChangeEnd",function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})}),(0,ue.Z)((0,De.Z)(le),"onActiveChange",function(Ae){var Ke=le.state.activeKey,_e=le.props,gt=_e.onActiveChange,we=_e.itemScrollOffset,Pe=we===void 0?0:we;Ke!==Ae&&(le.setState({activeKey:Ae}),Ae!==null&&le.scrollTo({key:Ae,offset:Pe}),gt==null||gt(Ae))}),(0,ue.Z)((0,De.Z)(le),"getActiveItem",function(){var Ae=le.state,Ke=Ae.activeKey,_e=Ae.flattenNodes;return Ke===null?null:_e.find(function(gt){var we=gt.key;return we===Ke})||null}),(0,ue.Z)((0,De.Z)(le),"offsetActiveKey",function(Ae){var Ke=le.state,_e=Ke.flattenNodes,gt=Ke.activeKey,we=_e.findIndex(function(Ht){var rn=Ht.key;return rn===gt});we===-1&&Ae<0&&(we=_e.length),we=(we+Ae+_e.length)%_e.length;var Pe=_e[we];if(Pe){var Zt=Pe.key;le.onActiveChange(Zt)}else le.onActiveChange(null)}),(0,ue.Z)((0,De.Z)(le),"onKeyDown",function(Ae){var Ke=le.state,_e=Ke.activeKey,gt=Ke.expandedKeys,we=Ke.checkedKeys,Pe=Ke.fieldNames,Zt=le.props,Ht=Zt.onKeyDown,rn=Zt.checkable,Yt=Zt.selectable;switch(Ae.which){case Lt.Z.UP:{le.offsetActiveKey(-1),Ae.preventDefault();break}case Lt.Z.DOWN:{le.offsetActiveKey(1),Ae.preventDefault();break}}var Ot=le.getActiveItem();if(Ot&&Ot.data){var nn=le.getTreeNodeRequiredProps(),Wt=Ot.data.isLeaf===!1||!!(Ot.data[Pe.children]||[]).length,He=(0,Se.F)((0,fe.Z)((0,fe.Z)({},(0,Se.H8)(_e,nn)),{},{data:Ot.data,active:!0}));switch(Ae.which){case Lt.Z.LEFT:{Wt&>.includes(_e)?le.onNodeExpand({},He):Ot.parent&&le.onActiveChange(Ot.parent.key),Ae.preventDefault();break}case Lt.Z.RIGHT:{Wt&&!gt.includes(_e)?le.onNodeExpand({},He):Ot.children&&Ot.children.length&&le.onActiveChange(Ot.children[0].key),Ae.preventDefault();break}case Lt.Z.ENTER:case Lt.Z.SPACE:{rn&&!He.disabled&&He.checkable!==!1&&!He.disableCheckbox?le.onNodeCheck({},He,!we.includes(_e)):!rn&&Yt&&!He.disabled&&He.selectable!==!1&&le.onNodeSelect({},He);break}}}Ht==null||Ht(Ae)}),(0,ue.Z)((0,De.Z)(le),"setUncontrolledState",function(Ae){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var gt=!1,we=!0,Pe={};Object.keys(Ae).forEach(function(Zt){if(le.props.hasOwnProperty(Zt)){we=!1;return}gt=!0,Pe[Zt]=Ae[Zt]}),gt&&(!Ke||we)&&le.setState((0,fe.Z)((0,fe.Z)({},Pe),_e))}}),(0,ue.Z)((0,De.Z)(le),"scrollTo",function(Ae){le.listRef.current.scrollTo(Ae)}),le}return(0,ye.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ge=this.props,vt=ge.activeKey,Re=ge.itemScrollOffset,Ae=Re===void 0?0:Re;vt!==void 0&&vt!==this.state.activeKey&&(this.setState({activeKey:vt}),vt!==null&&this.scrollTo({key:vt,offset:Ae}))}},{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 ge=this.state,vt=ge.focused,Re=ge.flattenNodes,Ae=ge.keyEntities,Ke=ge.draggingNodeKey,_e=ge.activeKey,gt=ge.dropLevelOffset,we=ge.dropContainerKey,Pe=ge.dropTargetKey,Zt=ge.dropPosition,Ht=ge.dragOverNodeKey,rn=ge.indent,Yt=this.props,Ot=Yt.prefixCls,nn=Yt.className,Wt=Yt.style,He=Yt.showLine,mt=Yt.focusable,ot=Yt.tabIndex,Tt=ot===void 0?0:ot,Ne=Yt.selectable,dt=Yt.showIcon,wt=Yt.icon,Kt=Yt.switcherIcon,sn=Yt.draggable,bn=Yt.checkable,An=Yt.checkStrictly,zn=Yt.disabled,pn=Yt.motion,Tn=Yt.loadData,un=Yt.filterTreeNode,Sn=Yt.height,Mn=Yt.itemHeight,Rn=Yt.scrollWidth,vn=Yt.virtual,tn=Yt.titleRender,en=Yt.dropIndicatorRender,cn=Yt.onContextMenu,En=Yt.onScroll,$n=Yt.direction,Zn=Yt.rootClassName,Nn=Yt.rootStyle,Fn=(0,at.Z)(this.props,{aria:!0,data:!0}),qn;sn&&((0,je.Z)(sn)==="object"?qn=sn:typeof sn=="function"?qn={nodeDraggable:sn}:qn={});var er={prefixCls:Ot,selectable:Ne,showIcon:dt,icon:wt,switcherIcon:Kt,draggable:qn,draggingNodeKey:Ke,checkable:bn,checkStrictly:An,disabled:zn,keyEntities:Ae,dropLevelOffset:gt,dropContainerKey:we,dropTargetKey:Pe,dropPosition:Zt,dragOverNodeKey:Ht,indent:rn,direction:$n,dropIndicatorRender:en,loadData:Tn,filterTreeNode:un,titleRender:tn,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 Me.createElement(Ie.k.Provider,{value:er},Me.createElement("div",{className:ke()(Ot,nn,Zn,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ot,"-show-line"),He),"".concat(Ot,"-focused"),vt),"".concat(Ot,"-active-focused"),_e!==null)),style:Nn},Me.createElement(rt,(0,b.Z)({ref:this.listRef,prefixCls:Ot,style:Wt,data:Re,disabled:zn,selectable:Ne,checkable:!!bn,motion:pn,dragging:Ke!==null,height:Sn,itemHeight:Mn,virtual:vn,focusable:mt,focused:vt,tabIndex:Tt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:cn,onScroll:En,scrollWidth:Rn},this.getTreeNodeRequiredProps(),Fn))))}}],[{key:"getDerivedStateFromProps",value:function(ge,vt){var Re=vt.prevProps,Ae={prevProps:ge};function Ke(Tt){return!Re&&ge.hasOwnProperty(Tt)||Re&&Re[Tt]!==ge[Tt]}var _e,gt=vt.fieldNames;if(Ke("fieldNames")&&(gt=(0,Se.w$)(ge.fieldNames),Ae.fieldNames=gt),Ke("treeData")?_e=ge.treeData:Ke("children")&&((0,$e.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_e=(0,Se.zn)(ge.children)),_e){Ae.treeData=_e;var we=(0,Se.I8)(_e,{fieldNames:gt});Ae.keyEntities=(0,fe.Z)((0,ue.Z)({},me,Ut),we.keyEntities)}var Pe=Ae.keyEntities||vt.keyEntities;if(Ke("expandedKeys")||Re&&Ke("autoExpandParent"))Ae.expandedKeys=ge.autoExpandParent||!Re&&ge.defaultExpandParent?(0,Ft.r7)(ge.expandedKeys,Pe):ge.expandedKeys;else if(!Re&&ge.defaultExpandAll){var Zt=(0,fe.Z)({},Pe);delete Zt[me];var Ht=[];Object.keys(Zt).forEach(function(Tt){var Ne=Zt[Tt];Ne.children&&Ne.children.length&&Ht.push(Ne.key)}),Ae.expandedKeys=Ht}else!Re&&ge.defaultExpandedKeys&&(Ae.expandedKeys=ge.autoExpandParent||ge.defaultExpandParent?(0,Ft.r7)(ge.defaultExpandedKeys,Pe):ge.defaultExpandedKeys);if(Ae.expandedKeys||delete Ae.expandedKeys,_e||Ae.expandedKeys){var rn=(0,Se.oH)(_e||vt.treeData,Ae.expandedKeys||vt.expandedKeys,gt);Ae.flattenNodes=rn}if(ge.selectable&&(Ke("selectedKeys")?Ae.selectedKeys=(0,Ft.BT)(ge.selectedKeys,ge):!Re&&ge.defaultSelectedKeys&&(Ae.selectedKeys=(0,Ft.BT)(ge.defaultSelectedKeys,ge))),ge.checkable){var Yt;if(Ke("checkedKeys")?Yt=(0,Ft.E6)(ge.checkedKeys)||{}:!Re&&ge.defaultCheckedKeys?Yt=(0,Ft.E6)(ge.defaultCheckedKeys)||{}:_e&&(Yt=(0,Ft.E6)(ge.checkedKeys)||{checkedKeys:vt.checkedKeys,halfCheckedKeys:vt.halfCheckedKeys}),Yt){var Ot=Yt,nn=Ot.checkedKeys,Wt=nn===void 0?[]:nn,He=Ot.halfCheckedKeys,mt=He===void 0?[]:He;if(!ge.checkStrictly){var ot=(0,qe.S)(Wt,!0,Pe);Wt=ot.checkedKeys,mt=ot.halfCheckedKeys}Ae.checkedKeys=Wt,Ae.halfCheckedKeys=mt}}return Ke("loadedKeys")&&(Ae.loadedKeys=ge.loadedKeys),Ae}}]),re}(Me.Component);(0,ue.Z)(ae,"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:pt,allowDrop:function(){return!0},expandAction:!1}),(0,ue.Z)(ae,"TreeNode",St.Z);var ne=ae,te=ne},82661:function(yn,Qt,ee){"use strict";ee.d(Qt,{BT:function(){return Me},E6:function(){return pt},L0:function(){return ue},OM:function(){return $e},_5:function(){return Ce},r7:function(){return Rt},wA:function(){return ke},yx:function(){return tt}});var b=ee(94480),je=ee(76190),fe=ee(48736),Ge=ee(59301),Oe=ee(639),ye=ee(65065),De=ee(34061),Ze=null;function Ce(Ve,Te){if(!Ve)return[];var nt=Ve.slice(),Qe=nt.indexOf(Te);return Qe>=0&&nt.splice(Qe,1),nt}function ue(Ve,Te){var nt=(Ve||[]).slice();return nt.indexOf(Te)===-1&&nt.push(Te),nt}function tt(Ve){return Ve.split("-")}function ke(Ve,Te){var nt=[],Qe=(0,ye.Z)(Te,Ve);function zt(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];St.forEach(function(it){var ut=it.key,Se=it.children;nt.push(ut),zt(Se)})}return zt(Qe.children),nt}function Lt(Ve){if(Ve.parent){var Te=tt(Ve.pos);return Number(Te[Te.length-1])===Ve.parent.children.length-1}return!1}function at(Ve){var Te=tt(Ve.pos);return Number(Te[Te.length-1])===0}function $e(Ve,Te,nt,Qe,zt,St,it,ut,Se,st){var Je,de=Ve.clientX,Mt=Ve.clientY,We=Ve.target.getBoundingClientRect(),Pt=We.top,Xt=We.height,Be=(st==="rtl"?-1:1)*(((zt==null?void 0:zt.x)||0)-de),me=(Be-12)/Qe,ht=Se.filter(function(te){var oe;return(oe=ut[te])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),Ut=(0,ye.Z)(ut,nt.eventKey);if(Mt<Pt+Xt/2){var Bt=it.findIndex(function(te){return te.key===Ut.key}),be=Bt<=0?0:Bt-1,Ye=it[be].key;Ut=(0,ye.Z)(ut,Ye)}var et=Ut.key,_t=Ut,rt=Ut.key,Ft=0,qe=0;if(!ht.includes(et))for(var Jt=0;Jt<me&&Lt(Ut);Jt+=1)Ut=Ut.parent,qe+=1;var Dt=Te.data,ae=Ut.node,ne=!0;return at(Ut)&&Ut.level===0&&Mt<Pt+Xt/2&&St({dragNode:Dt,dropNode:ae,dropPosition:-1})&&Ut.key===nt.eventKey?Ft=-1:(_t.children||[]).length&&ht.includes(rt)?St({dragNode:Dt,dropNode:ae,dropPosition:0})?Ft=0:ne=!1:qe===0?me>-1.5?St({dragNode:Dt,dropNode:ae,dropPosition:1})?Ft=1:ne=!1:St({dragNode:Dt,dropNode:ae,dropPosition:0})?Ft=0:St({dragNode:Dt,dropNode:ae,dropPosition:1})?Ft=1:ne=!1:St({dragNode:Dt,dropNode:ae,dropPosition:1})?Ft=1:ne=!1,{dropPosition:Ft,dropLevelOffset:qe,dropTargetKey:Ut.key,dropTargetPos:Ut.pos,dragOverNodeKey:rt,dropContainerKey:Ft===0?null:((Je=Ut.parent)===null||Je===void 0?void 0:Je.key)||null,dropAllowed:ne}}function Me(Ve,Te){if(Ve){var nt=Te.multiple;return nt?Ve.slice():Ve.length?[Ve[0]]:Ve}}var Ie=function(Te){return Te};function Xe(Ve,Te){if(!Ve)return[];var nt=Te||{},Qe=nt.processProps,zt=Qe===void 0?Ie:Qe,St=Array.isArray(Ve)?Ve:[Ve];return St.map(function(it){var ut=it.children,Se=_objectWithoutProperties(it,Ze),st=Xe(ut,Te);return React.createElement(TreeNode,_extends({key:Se.key},zt(Se)),st)})}function pt(Ve){if(!Ve)return null;var Te;if(Array.isArray(Ve))Te={checkedKeys:Ve,halfCheckedKeys:void 0};else if((0,je.Z)(Ve)==="object")Te={checkedKeys:Ve.checked||void 0,halfCheckedKeys:Ve.halfChecked||void 0};else return(0,fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Te}function Rt(Ve,Te){var nt=new Set;function Qe(zt){if(!nt.has(zt)){var St=(0,ye.Z)(Te,zt);if(St){nt.add(zt);var it=St.parent,ut=St.node;ut.disabled||it&&Qe(it.key)}}}return(Ve||[]).forEach(function(zt){Qe(zt)}),(0,b.Z)(nt)}},34643:function(yn,Qt,ee){"use strict";ee.d(Qt,{S:function(){return De}});var b=ee(48736),je=ee(65065);function fe(Ze,Ce){var ue=new Set;return Ze.forEach(function(tt){Ce.has(tt)||ue.add(tt)}),ue}function Ge(Ze){var Ce=Ze||{},ue=Ce.disabled,tt=Ce.disableCheckbox,ke=Ce.checkable;return!!(ue||tt)||ke===!1}function Oe(Ze,Ce,ue,tt){for(var ke=new Set(Ze),Lt=new Set,at=0;at<=ue;at+=1){var $e=Ce.get(at)||new Set;$e.forEach(function(pt){var Rt=pt.key,Ve=pt.node,Te=pt.children,nt=Te===void 0?[]:Te;ke.has(Rt)&&!tt(Ve)&&nt.filter(function(Qe){return!tt(Qe.node)}).forEach(function(Qe){ke.add(Qe.key)})})}for(var Me=new Set,Ie=ue;Ie>=0;Ie-=1){var Xe=Ce.get(Ie)||new Set;Xe.forEach(function(pt){var Rt=pt.parent,Ve=pt.node;if(!(tt(Ve)||!pt.parent||Me.has(pt.parent.key))){if(tt(pt.parent.node)){Me.add(Rt.key);return}var Te=!0,nt=!1;(Rt.children||[]).filter(function(Qe){return!tt(Qe.node)}).forEach(function(Qe){var zt=Qe.key,St=ke.has(zt);Te&&!St&&(Te=!1),!nt&&(St||Lt.has(zt))&&(nt=!0)}),Te&&ke.add(Rt.key),nt&&Lt.add(Rt.key),Me.add(Rt.key)}})}return{checkedKeys:Array.from(ke),halfCheckedKeys:Array.from(fe(Lt,ke))}}function ye(Ze,Ce,ue,tt,ke){for(var Lt=new Set(Ze),at=new Set(Ce),$e=0;$e<=tt;$e+=1){var Me=ue.get($e)||new Set;Me.forEach(function(Rt){var Ve=Rt.key,Te=Rt.node,nt=Rt.children,Qe=nt===void 0?[]:nt;!Lt.has(Ve)&&!at.has(Ve)&&!ke(Te)&&Qe.filter(function(zt){return!ke(zt.node)}).forEach(function(zt){Lt.delete(zt.key)})})}at=new Set;for(var Ie=new Set,Xe=tt;Xe>=0;Xe-=1){var pt=ue.get(Xe)||new Set;pt.forEach(function(Rt){var Ve=Rt.parent,Te=Rt.node;if(!(ke(Te)||!Rt.parent||Ie.has(Rt.parent.key))){if(ke(Rt.parent.node)){Ie.add(Ve.key);return}var nt=!0,Qe=!1;(Ve.children||[]).filter(function(zt){return!ke(zt.node)}).forEach(function(zt){var St=zt.key,it=Lt.has(St);nt&&!it&&(nt=!1),!Qe&&(it||at.has(St))&&(Qe=!0)}),nt||Lt.delete(Ve.key),Qe&&at.add(Ve.key),Ie.add(Ve.key)}})}return{checkedKeys:Array.from(Lt),halfCheckedKeys:Array.from(fe(at,Lt))}}function De(Ze,Ce,ue,tt){var ke=[],Lt;tt?Lt=tt:Lt=Ge;var at=new Set(Ze.filter(function(Xe){var pt=!!(0,je.Z)(ue,Xe);return pt||ke.push(Xe),pt})),$e=new Map,Me=0;Object.keys(ue).forEach(function(Xe){var pt=ue[Xe],Rt=pt.level,Ve=$e.get(Rt);Ve||(Ve=new Set,$e.set(Rt,Ve)),Ve.add(pt),Me=Math.max(Me,Rt)}),(0,b.ZP)(!ke.length,"Tree missing follow keys: ".concat(ke.slice(0,100).map(function(Xe){return"'".concat(Xe,"'")}).join(", ")));var Ie;return Ce===!0?Ie=Oe(at,$e,Me,Lt):Ie=ye(at,Ce.halfCheckedKeys,$e,Me,Lt),Ie}},65065:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(je,fe){return je[fe]}},34061:function(yn,Qt,ee){"use strict";ee.d(Qt,{F:function(){return Rt},H8:function(){return pt},I8:function(){return Xe},km:function(){return ke},oH:function(){return Me},w$:function(){return Lt},zn:function(){return $e}});var b=ee(76190),je=ee(94480),fe=ee(33885),Ge=ee(75931),Oe=ee(11592),ye=ee(2738),De=ee(48736),Ze=ee(65065),Ce=["children"];function ue(Ve,Te){return"".concat(Ve,"-").concat(Te)}function tt(Ve){return Ve&&Ve.type&&Ve.type.isTreeNode}function ke(Ve,Te){return Ve!=null?Ve:Te}function Lt(Ve){var Te=Ve||{},nt=Te.title,Qe=Te._title,zt=Te.key,St=Te.children,it=nt||"title";return{title:it,_title:Qe||[it],key:zt||"key",children:St||"children"}}function at(Ve,Te){var nt=new Map;function Qe(zt){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(zt||[]).forEach(function(it){var ut=it[Te.key],Se=it[Te.children];warning(ut!=null,"Tree node must have a certain key: [".concat(St).concat(ut,"]"));var st=String(ut);warning(!nt.has(st)||ut===null||ut===void 0,"Same 'key' exist in the Tree: ".concat(st)),nt.set(st,!0),Qe(Se,"".concat(St).concat(st," > "))})}Qe(Ve)}function $e(Ve){function Te(nt){var Qe=(0,Oe.Z)(nt);return Qe.map(function(zt){if(!tt(zt))return(0,De.ZP)(!zt,"Tree/TreeNode can only accept TreeNode as children."),null;var St=zt.key,it=zt.props,ut=it.children,Se=(0,Ge.Z)(it,Ce),st=(0,fe.Z)({key:St},Se),Je=Te(ut);return Je.length&&(st.children=Je),st}).filter(function(zt){return zt})}return Te(Ve)}function Me(Ve,Te,nt){var Qe=Lt(nt),zt=Qe._title,St=Qe.key,it=Qe.children,ut=new Set(Te===!0?[]:Te),Se=[];function st(Je){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Je.map(function(Mt,We){for(var Pt=ue(de?de.pos:"0",We),Xt=ke(Mt[St],Pt),Be,me=0;me<zt.length;me+=1){var ht=zt[me];if(Mt[ht]!==void 0){Be=Mt[ht];break}}var Ut=Object.assign((0,ye.Z)(Mt,[].concat((0,je.Z)(zt),[St,it])),{title:Be,key:Xt,parent:de,pos:Pt,children:null,data:Mt,isStart:[].concat((0,je.Z)(de?de.isStart:[]),[We===0]),isEnd:[].concat((0,je.Z)(de?de.isEnd:[]),[We===Je.length-1])});return Se.push(Ut),Te===!0||ut.has(Xt)?Ut.children=st(Mt[it]||[],Ut):Ut.children=[],Ut})}return st(Ve),Se}function Ie(Ve,Te,nt){var Qe={};(0,b.Z)(nt)==="object"?Qe=nt:Qe={externalGetKey:nt},Qe=Qe||{};var zt=Qe,St=zt.childrenPropName,it=zt.externalGetKey,ut=zt.fieldNames,Se=Lt(ut),st=Se.key,Je=Se.children,de=St||Je,Mt;it?typeof it=="string"?Mt=function(Xt){return Xt[it]}:typeof it=="function"&&(Mt=function(Xt){return it(Xt)}):Mt=function(Xt,Be){return ke(Xt[st],Be)};function We(Pt,Xt,Be,me){var ht=Pt?Pt[de]:Ve,Ut=Pt?ue(Be.pos,Xt):"0",Bt=Pt?[].concat((0,je.Z)(me),[Pt]):[];if(Pt){var be=Mt(Pt,Ut),Ye={node:Pt,index:Xt,pos:Ut,key:be,parentPos:Be.node?Be.pos:null,level:Be.level+1,nodes:Bt};Te(Ye)}ht&&ht.forEach(function(et,_t){We(et,_t,{node:Pt,pos:Ut,level:Be?Be.level+1:-1},Bt)})}We(null)}function Xe(Ve){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=Te.initWrapper,Qe=Te.processEntity,zt=Te.onProcessFinished,St=Te.externalGetKey,it=Te.childrenPropName,ut=Te.fieldNames,Se=arguments.length>2?arguments[2]:void 0,st=St||Se,Je={},de={},Mt={posEntities:Je,keyEntities:de};return nt&&(Mt=nt(Mt)||Mt),Ie(Ve,function(We){var Pt=We.node,Xt=We.index,Be=We.pos,me=We.key,ht=We.parentPos,Ut=We.level,Bt=We.nodes,be={node:Pt,nodes:Bt,index:Xt,key:me,pos:Be,level:Ut},Ye=ke(me,Be);Je[Be]=be,de[Ye]=be,be.parent=Je[ht],be.parent&&(be.parent.children=be.parent.children||[],be.parent.children.push(be)),Qe&&Qe(be,Mt)},{externalGetKey:st,childrenPropName:it,fieldNames:ut}),zt&&zt(Mt),Mt}function pt(Ve,Te){var nt=Te.expandedKeys,Qe=Te.selectedKeys,zt=Te.loadedKeys,St=Te.loadingKeys,it=Te.checkedKeys,ut=Te.halfCheckedKeys,Se=Te.dragOverNodeKey,st=Te.dropPosition,Je=Te.keyEntities,de=(0,Ze.Z)(Je,Ve),Mt={eventKey:Ve,expanded:nt.indexOf(Ve)!==-1,selected:Qe.indexOf(Ve)!==-1,loaded:zt.indexOf(Ve)!==-1,loading:St.indexOf(Ve)!==-1,checked:it.indexOf(Ve)!==-1,halfChecked:ut.indexOf(Ve)!==-1,pos:String(de?de.pos:""),dragOver:Se===Ve&&st===0,dragOverGapTop:Se===Ve&&st===-1,dragOverGapBottom:Se===Ve&&st===1};return Mt}function Rt(Ve){var Te=Ve.data,nt=Ve.expanded,Qe=Ve.selected,zt=Ve.checked,St=Ve.loaded,it=Ve.loading,ut=Ve.halfChecked,Se=Ve.dragOver,st=Ve.dragOverGapTop,Je=Ve.dragOverGapBottom,de=Ve.pos,Mt=Ve.active,We=Ve.eventKey,Pt=(0,fe.Z)((0,fe.Z)({},Te),{},{expanded:nt,selected:Qe,checked:zt,loaded:St,loading:it,halfChecked:ut,dragOver:Se,dragOverGapTop:st,dragOverGapBottom:Je,pos:de,active:Mt,key:We});return"props"in Pt||Object.defineProperty(Pt,"props",{get:function(){return(0,De.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ve}}),Pt}},8224:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(4676);function je(fe,Ge,Oe,ye){var De=b.unstable_batchedUpdates?function(Ce){b.unstable_batchedUpdates(Oe,Ce)}:Oe;return fe!=null&&fe.addEventListener&&fe.addEventListener(Ge,De,ye),{remove:function(){fe!=null&&fe.removeEventListener&&fe.removeEventListener(Ge,De,ye)}}}},3465:function(yn,Qt,ee){"use strict";ee.d(Qt,{G:function(){return Ge}});var b=ee(47273),je=function(ye){if((0,b.Z)()&&window.document.documentElement){var De=Array.isArray(ye)?ye:[ye],Ze=window.document.documentElement;return De.some(function(Ce){return Ce in Ze.style})}return!1},fe=function(ye,De){if(!je(ye))return!1;var Ze=document.createElement("div"),Ce=Ze.style[ye];return Ze.style[ye]=De,Ze.style[ye]!==Ce};function Ge(Oe,ye){return!Array.isArray(Oe)&&ye!==void 0?fe(Oe,ye):je(Oe)}},48911:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Dt}});var b=ee(54476),je=ee(76190),fe=ee(33885),Ge=ee(20068),Oe=ee(42978),ye=ee(75931),De=ee(92310),Ze=ee.n(De),Ce=ee(29301),ue=ee(70425),tt=ee(34280),ke=ee(59301),Lt=ee(4676),at=ke.forwardRef(function(ae,ne){var te=ae.height,oe=ae.offsetY,ce=ae.offsetX,re=ae.children,le=ae.prefixCls,ge=ae.onInnerResize,vt=ae.innerProps,Re=ae.rtl,Ae=ae.extra,Ke={},_e={display:"flex",flexDirection:"column"};return oe!==void 0&&(Ke={height:te,position:"relative",overflow:"hidden"},_e=(0,fe.Z)((0,fe.Z)({},_e),{},(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({transform:"translateY(".concat(oe,"px)")},Re?"marginRight":"marginLeft",-ce),"position","absolute"),"left",0),"right",0),"top",0))),ke.createElement("div",{style:Ke},ke.createElement(Ce.Z,{onResize:function(we){var Pe=we.offsetHeight;Pe&&ge&&ge()}},ke.createElement("div",(0,b.Z)({style:_e,className:Ze()((0,Ge.Z)({},"".concat(le,"-holder-inner"),le)),ref:ne},vt),re,Ae)))});at.displayName="Filler";var $e=at;function Me(ae){var ne=ae.children,te=ae.setRef,oe=ke.useCallback(function(ce){te(ce)},[]);return ke.cloneElement(ne,{ref:oe})}function Ie(ae,ne,te,oe,ce,re,le,ge){var vt=ge.getKey;return ae.slice(ne,te+1).map(function(Re,Ae){var Ke=ne+Ae,_e=le(Re,Ke,{style:{width:oe},offsetX:ce}),gt=vt(Re);return ke.createElement(Me,{key:gt,setRef:function(Pe){return re(Re,Pe)}},_e)})}function Xe(ae,ne,te,oe){var ce=te-ae,re=ne-te,le=Math.min(ce,re)*2;if(oe<=le){var ge=Math.floor(oe/2);return oe%2?te+ge+1:te-ge}return ce>re?te-(oe-re):te+(oe-ce)}function pt(ae,ne,te){var oe=ae.length,ce=ne.length,re,le;if(oe===0&&ce===0)return null;oe<ce?(re=ae,le=ne):(re=ne,le=ae);var ge={__EMPTY_ITEM__:!0};function vt(we){return we!==void 0?te(we):ge}for(var Re=null,Ae=Math.abs(oe-ce)!==1,Ke=0;Ke<le.length;Ke+=1){var _e=vt(re[Ke]),gt=vt(le[Ke]);if(_e!==gt){Re=Ke,Ae=Ae||_e!==vt(le[Ke+1]);break}}return Re===null?null:{index:Re,multiple:Ae}}function Rt(ae,ne,te){var oe=ke.useState(ae),ce=(0,Oe.Z)(oe,2),re=ce[0],le=ce[1],ge=ke.useState(null),vt=(0,Oe.Z)(ge,2),Re=vt[0],Ae=vt[1];return ke.useEffect(function(){var Ke=pt(re||[],ae||[],ne);(Ke==null?void 0:Ke.index)!==void 0&&(te==null||te(Ke.index),Ae(ae[Ke.index])),le(ae)},[ae]),[Re]}var Ve=ee(16089),Te=(typeof navigator=="undefined"?"undefined":(0,je.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),nt=Te,Qe=function(ae,ne,te,oe){var ce=(0,ke.useRef)(!1),re=(0,ke.useRef)(null);function le(){clearTimeout(re.current),ce.current=!0,re.current=setTimeout(function(){ce.current=!1},50)}var ge=(0,ke.useRef)({top:ae,bottom:ne,left:te,right:oe});return ge.current.top=ae,ge.current.bottom=ne,ge.current.left=te,ge.current.right=oe,function(vt,Re){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ke=vt?Re<0&&ge.current.left||Re>0&&ge.current.right:Re<0&&ge.current.top||Re>0&&ge.current.bottom;return Ae&&Ke?(clearTimeout(re.current),ce.current=!1):(!Ke||ce.current)&&le(),!ce.current&&Ke}};function zt(ae,ne,te,oe,ce,re,le){var ge=(0,ke.useRef)(0),vt=(0,ke.useRef)(null),Re=(0,ke.useRef)(null),Ae=(0,ke.useRef)(!1),Ke=Qe(ne,te,oe,ce);function _e(rn,Yt){if(Ve.Z.cancel(vt.current),!Ke(!1,Yt)){var Ot=rn;if(!Ot._virtualHandled)Ot._virtualHandled=!0;else return;ge.current+=Yt,Re.current=Yt,nt||Ot.preventDefault(),vt.current=(0,Ve.Z)(function(){var nn=Ae.current?10:1;le(ge.current*nn,!1),ge.current=0})}}function gt(rn,Yt){le(Yt,!0),nt||rn.preventDefault()}var we=(0,ke.useRef)(null),Pe=(0,ke.useRef)(null);function Zt(rn){if(ae){Ve.Z.cancel(Pe.current),Pe.current=(0,Ve.Z)(function(){we.current=null},2);var Yt=rn.deltaX,Ot=rn.deltaY,nn=rn.shiftKey,Wt=Yt,He=Ot;(we.current==="sx"||!we.current&&nn&&Ot&&!Yt)&&(Wt=Ot,He=0,we.current="sx");var mt=Math.abs(Wt),ot=Math.abs(He);we.current===null&&(we.current=re&&mt>ot?"x":"y"),we.current==="y"?_e(rn,He):gt(rn,Wt)}}function Ht(rn){ae&&(Ae.current=rn.detail===Re.current)}return[Zt,Ht]}function St(ae,ne,te,oe){var ce=ke.useMemo(function(){return[new Map,[]]},[ae,te.id,oe]),re=(0,Oe.Z)(ce,2),le=re[0],ge=re[1],vt=function(Ae){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ae,_e=le.get(Ae),gt=le.get(Ke);if(_e===void 0||gt===void 0)for(var we=ae.length,Pe=ge.length;Pe<we;Pe+=1){var Zt,Ht=ae[Pe],rn=ne(Ht);le.set(rn,Pe);var Yt=(Zt=te.get(rn))!==null&&Zt!==void 0?Zt:oe;if(ge[Pe]=(ge[Pe-1]||0)+Yt,rn===Ae&&(_e=Pe),rn===Ke&&(gt=Pe),_e!==void 0&>!==void 0)break}return{top:ge[_e-1]||0,bottom:ge[gt]}};return vt}var it=ee(67732),ut=ee(83652),Se=function(){function ae(){(0,it.Z)(this,ae),(0,Ge.Z)(this,"maps",void 0),(0,Ge.Z)(this,"id",0),(0,Ge.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ut.Z)(ae,[{key:"set",value:function(te,oe){this.diffRecords.set(te,this.maps[te]),this.maps[te]=oe,this.id+=1}},{key:"get",value:function(te){return this.maps[te]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),st=Se;function Je(ae){var ne=parseFloat(ae);return isNaN(ne)?0:ne}function de(ae,ne,te){var oe=ke.useState(0),ce=(0,Oe.Z)(oe,2),re=ce[0],le=ce[1],ge=(0,ke.useRef)(new Map),vt=(0,ke.useRef)(new st),Re=(0,ke.useRef)(0);function Ae(){Re.current+=1}function Ke(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ae();var we=function(){var Ht=!1;ge.current.forEach(function(rn,Yt){if(rn&&rn.offsetParent){var Ot=rn.offsetHeight,nn=getComputedStyle(rn),Wt=nn.marginTop,He=nn.marginBottom,mt=Je(Wt),ot=Je(He),Tt=Ot+mt+ot;vt.current.get(Yt)!==Tt&&(vt.current.set(Yt,Tt),Ht=!0)}}),Ht&&le(function(rn){return rn+1})};if(gt)we();else{Re.current+=1;var Pe=Re.current;Promise.resolve().then(function(){Pe===Re.current&&we()})}}function _e(gt,we){var Pe=ae(gt),Zt=ge.current.get(Pe);we?(ge.current.set(Pe,we),Ke()):ge.current.delete(Pe),!Zt!=!we&&(we?ne==null||ne(gt):te==null||te(gt))}return(0,ke.useEffect)(function(){return Ae},[]),[_e,Ke,vt.current,re]}var Mt=14/15;function We(ae,ne,te){var oe=(0,ke.useRef)(!1),ce=(0,ke.useRef)(0),re=(0,ke.useRef)(0),le=(0,ke.useRef)(null),ge=(0,ke.useRef)(null),vt,Re=function(gt){if(oe.current){var we=Math.ceil(gt.touches[0].pageX),Pe=Math.ceil(gt.touches[0].pageY),Zt=ce.current-we,Ht=re.current-Pe,rn=Math.abs(Zt)>Math.abs(Ht);rn?ce.current=we:re.current=Pe;var Yt=te(rn,rn?Zt:Ht,!1,gt);Yt&>.preventDefault(),clearInterval(ge.current),Yt&&(ge.current=setInterval(function(){rn?Zt*=Mt:Ht*=Mt;var Ot=Math.floor(rn?Zt:Ht);(!te(rn,Ot,!0)||Math.abs(Ot)<=.1)&&clearInterval(ge.current)},16))}},Ae=function(){oe.current=!1,vt()},Ke=function(gt){vt(),gt.touches.length===1&&!oe.current&&(oe.current=!0,ce.current=Math.ceil(gt.touches[0].pageX),re.current=Math.ceil(gt.touches[0].pageY),le.current=gt.target,le.current.addEventListener("touchmove",Re,{passive:!1}),le.current.addEventListener("touchend",Ae,{passive:!0}))};vt=function(){le.current&&(le.current.removeEventListener("touchmove",Re),le.current.removeEventListener("touchend",Ae))},(0,tt.Z)(function(){return ae&&ne.current.addEventListener("touchstart",Ke,{passive:!0}),function(){var _e;(_e=ne.current)===null||_e===void 0||_e.removeEventListener("touchstart",Ke),vt(),clearInterval(ge.current)}},[ae])}function Pt(ae){return Math.floor(Math.pow(ae,.5))}function Xt(ae,ne){var te="touches"in ae?ae.touches[0]:ae;return te[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Be(ae,ne,te){ke.useEffect(function(){var oe=ne.current;if(ae&&oe){var ce=!1,re,le,ge=function(){Ve.Z.cancel(re)},vt=function _e(){ge(),re=(0,Ve.Z)(function(){te(le),_e()})},Re=function(){ce=!1,ge()},Ae=function(gt){if(!(gt.target.draggable||gt.button!==0)){var we=gt;we._virtualHandled||(we._virtualHandled=!0,ce=!0)}},Ke=function(gt){if(ce){var we=Xt(gt,!1),Pe=oe.getBoundingClientRect(),Zt=Pe.top,Ht=Pe.bottom;if(we<=Zt){var rn=Zt-we;le=-Pt(rn),vt()}else if(we>=Ht){var Yt=we-Ht;le=Pt(Yt),vt()}else ge()}};return oe.addEventListener("mousedown",Ae),oe.ownerDocument.addEventListener("mouseup",Re),oe.ownerDocument.addEventListener("mousemove",Ke),oe.ownerDocument.addEventListener("dragend",Re),function(){oe.removeEventListener("mousedown",Ae),oe.ownerDocument.removeEventListener("mouseup",Re),oe.ownerDocument.removeEventListener("mousemove",Ke),oe.ownerDocument.removeEventListener("dragend",Re),ge()}}},[ae])}var me=10;function ht(ae,ne,te,oe,ce,re,le,ge){var vt=ke.useRef(),Re=ke.useState(null),Ae=(0,Oe.Z)(Re,2),Ke=Ae[0],_e=Ae[1];return(0,tt.Z)(function(){if(Ke&&Ke.times<me){if(!ae.current){_e(function(pn){return(0,fe.Z)({},pn)});return}re();var gt=Ke.targetAlign,we=Ke.originAlign,Pe=Ke.index,Zt=Ke.offset,Ht=ae.current.clientHeight,rn=!1,Yt=gt,Ot=null;if(Ht){for(var nn=gt||we,Wt=0,He=0,mt=0,ot=Math.min(ne.length-1,Pe),Tt=0;Tt<=ot;Tt+=1){var Ne=ce(ne[Tt]);He=Wt;var dt=te.get(Ne);mt=He+(dt===void 0?oe:dt),Wt=mt}for(var wt=nn==="top"?Zt:Ht-Zt,Kt=ot;Kt>=0;Kt-=1){var sn=ce(ne[Kt]),bn=te.get(sn);if(bn===void 0){rn=!0;break}if(wt-=bn,wt<=0)break}switch(nn){case"top":Ot=He-Zt;break;case"bottom":Ot=mt-Ht+Zt;break;default:{var An=ae.current.scrollTop,zn=An+Ht;He<An?Yt="top":mt>zn&&(Yt="bottom")}}Ot!==null&&le(Ot),Ot!==Ke.lastTop&&(rn=!0)}rn&&_e((0,fe.Z)((0,fe.Z)({},Ke),{},{times:Ke.times+1,targetAlign:Yt,lastTop:Ot}))}},[Ke,ae.current]),function(gt){if(gt==null){ge();return}if(Ve.Z.cancel(vt.current),typeof gt=="number")le(gt);else if(gt&&(0,je.Z)(gt)==="object"){var we,Pe=gt.align;"index"in gt?we=gt.index:we=ne.findIndex(function(rn){return ce(rn)===gt.key});var Zt=gt.offset,Ht=Zt===void 0?0:Zt;_e({times:0,index:we,offset:Ht,originAlign:Pe})}}}var Ut=ke.forwardRef(function(ae,ne){var te=ae.prefixCls,oe=ae.rtl,ce=ae.scrollOffset,re=ae.scrollRange,le=ae.onStartMove,ge=ae.onStopMove,vt=ae.onScroll,Re=ae.horizontal,Ae=ae.spinSize,Ke=ae.containerSize,_e=ae.style,gt=ae.thumbStyle,we=ae.showScrollBar,Pe=ke.useState(!1),Zt=(0,Oe.Z)(Pe,2),Ht=Zt[0],rn=Zt[1],Yt=ke.useState(null),Ot=(0,Oe.Z)(Yt,2),nn=Ot[0],Wt=Ot[1],He=ke.useState(null),mt=(0,Oe.Z)(He,2),ot=mt[0],Tt=mt[1],Ne=!oe,dt=ke.useRef(),wt=ke.useRef(),Kt=ke.useState(we),sn=(0,Oe.Z)(Kt,2),bn=sn[0],An=sn[1],zn=ke.useRef(),pn=function(){we===!0||we===!1||(clearTimeout(zn.current),An(!0),zn.current=setTimeout(function(){An(!1)},3e3))},Tn=re-Ke||0,un=Ke-Ae||0,Sn=ke.useMemo(function(){if(ce===0||Tn===0)return 0;var Zn=ce/Tn;return Zn*un},[ce,Tn,un]),Mn=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},Rn=ke.useRef({top:Sn,dragging:Ht,pageY:nn,startTop:ot});Rn.current={top:Sn,dragging:Ht,pageY:nn,startTop:ot};var vn=function(Nn){rn(!0),Wt(Xt(Nn,Re)),Tt(Rn.current.top),le(),Nn.stopPropagation(),Nn.preventDefault()};ke.useEffect(function(){var Zn=function(er){er.preventDefault()},Nn=dt.current,Fn=wt.current;return Nn.addEventListener("touchstart",Zn,{passive:!1}),Fn.addEventListener("touchstart",vn,{passive:!1}),function(){Nn.removeEventListener("touchstart",Zn),Fn.removeEventListener("touchstart",vn)}},[]);var tn=ke.useRef();tn.current=Tn;var en=ke.useRef();en.current=un,ke.useEffect(function(){if(Ht){var Zn,Nn=function(er){var on=Rn.current,xn=on.dragging,Un=on.pageY,Gn=on.startTop;Ve.Z.cancel(Zn);var ct=dt.current.getBoundingClientRect(),yt=Ke/(Re?ct.width:ct.height);if(xn){var Fe=(Xt(er,Re)-Un)*yt,lt=Gn;!Ne&&Re?lt-=Fe:lt+=Fe;var ze=tn.current,xt=en.current,Ee=xt?lt/xt:0,It=Math.ceil(Ee*ze);It=Math.max(It,0),It=Math.min(It,ze),Zn=(0,Ve.Z)(function(){vt(It,Re)})}},Fn=function(){rn(!1),ge()};return window.addEventListener("mousemove",Nn,{passive:!0}),window.addEventListener("touchmove",Nn,{passive:!0}),window.addEventListener("mouseup",Fn,{passive:!0}),window.addEventListener("touchend",Fn,{passive:!0}),function(){window.removeEventListener("mousemove",Nn),window.removeEventListener("touchmove",Nn),window.removeEventListener("mouseup",Fn),window.removeEventListener("touchend",Fn),Ve.Z.cancel(Zn)}}},[Ht]),ke.useEffect(function(){return pn(),function(){clearTimeout(zn.current)}},[ce]),ke.useImperativeHandle(ne,function(){return{delayHidden:pn}});var cn="".concat(te,"-scrollbar"),En={position:"absolute",visibility:bn?null:"hidden"},$n={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Re?(Object.assign(En,{height:8,left:0,right:0,bottom:0}),Object.assign($n,(0,Ge.Z)({height:"100%",width:Ae},Ne?"left":"right",Sn))):(Object.assign(En,(0,Ge.Z)({width:8,top:0,bottom:0},Ne?"right":"left",0)),Object.assign($n,{width:"100%",height:Ae,top:Sn})),ke.createElement("div",{ref:dt,className:Ze()(cn,(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},"".concat(cn,"-horizontal"),Re),"".concat(cn,"-vertical"),!Re),"".concat(cn,"-visible"),bn)),style:(0,fe.Z)((0,fe.Z)({},En),_e),onMouseDown:Mn,onMouseMove:pn},ke.createElement("div",{ref:wt,className:Ze()("".concat(cn,"-thumb"),(0,Ge.Z)({},"".concat(cn,"-thumb-moving"),Ht)),style:(0,fe.Z)((0,fe.Z)({},$n),gt),onMouseDown:vn}))}),Bt=Ut,be=20;function Ye(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=ae/ne*ae;return isNaN(te)&&(te=0),te=Math.max(te,be),Math.floor(te)}var et=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_t=[],rt={overflowY:"auto",overflowAnchor:"none"};function Ft(ae,ne){var te=ae.prefixCls,oe=te===void 0?"rc-virtual-list":te,ce=ae.className,re=ae.height,le=ae.itemHeight,ge=ae.fullHeight,vt=ge===void 0?!0:ge,Re=ae.style,Ae=ae.data,Ke=ae.children,_e=ae.itemKey,gt=ae.virtual,we=ae.direction,Pe=ae.scrollWidth,Zt=ae.component,Ht=Zt===void 0?"div":Zt,rn=ae.onScroll,Yt=ae.onVirtualScroll,Ot=ae.onVisibleChange,nn=ae.innerProps,Wt=ae.extraRender,He=ae.styles,mt=ae.showScrollBar,ot=mt===void 0?"optional":mt,Tt=(0,ye.Z)(ae,et),Ne=ke.useCallback(function(On){return typeof _e=="function"?_e(On):On==null?void 0:On[_e]},[_e]),dt=de(Ne,null,null),wt=(0,Oe.Z)(dt,4),Kt=wt[0],sn=wt[1],bn=wt[2],An=wt[3],zn=!!(gt!==!1&&re&&le),pn=ke.useMemo(function(){return Object.values(bn.maps).reduce(function(On,jn){return On+jn},0)},[bn.id,bn.maps]),Tn=zn&&Ae&&(Math.max(le*Ae.length,pn)>re||!!Pe),un=we==="rtl",Sn=Ze()(oe,(0,Ge.Z)({},"".concat(oe,"-rtl"),un),ce),Mn=Ae||_t,Rn=(0,ke.useRef)(),vn=(0,ke.useRef)(),tn=(0,ke.useRef)(),en=(0,ke.useState)(0),cn=(0,Oe.Z)(en,2),En=cn[0],$n=cn[1],Zn=(0,ke.useState)(0),Nn=(0,Oe.Z)(Zn,2),Fn=Nn[0],qn=Nn[1],er=(0,ke.useState)(!1),on=(0,Oe.Z)(er,2),xn=on[0],Un=on[1],Gn=function(){Un(!0)},ct=function(){Un(!1)},yt={getKey:Ne};function Fe(On){$n(function(jn){var Kn;typeof On=="function"?Kn=On(jn):Kn=On;var kn=Er(Kn);return Rn.current.scrollTop=kn,kn})}var lt=(0,ke.useRef)({start:0,end:Mn.length}),ze=(0,ke.useRef)(),xt=Rt(Mn,Ne),Ee=(0,Oe.Z)(xt,1),It=Ee[0];ze.current=It;var kt=ke.useMemo(function(){if(!zn)return{scrollHeight:void 0,start:0,end:Mn.length-1,offset:void 0};if(!Tn){var On;return{scrollHeight:((On=vn.current)===null||On===void 0?void 0:On.offsetHeight)||0,start:0,end:Mn.length-1,offset:void 0}}for(var jn=0,Kn,kn,lr,br=Mn.length,Hn=0;Hn<br;Hn+=1){var Bn=Mn[Hn],Xn=Ne(Bn),rr=bn.get(Xn),Qr=jn+(rr===void 0?le:rr);Qr>=En&&Kn===void 0&&(Kn=Hn,kn=jn),Qr>En+re&&lr===void 0&&(lr=Hn),jn=Qr}return Kn===void 0&&(Kn=0,kn=0,lr=Math.ceil(re/le)),lr===void 0&&(lr=Mn.length-1),lr=Math.min(lr+1,Mn.length-1),{scrollHeight:jn,start:Kn,end:lr,offset:kn}},[Tn,zn,En,Mn,An,re]),Vt=kt.scrollHeight,bt=kt.start,Ct=kt.end,Et=kt.offset;lt.current.start=bt,lt.current.end=Ct,ke.useLayoutEffect(function(){var On=bn.getRecord();if(On.size===1){var jn=Array.from(On.keys())[0],Kn=On.get(jn),kn=Mn[bt];if(kn&&Kn===void 0){var lr=Ne(kn);if(lr===jn){var br=bn.get(jn),Hn=br-le;Fe(function(Bn){return Bn+Hn})}}}bn.resetRecord()},[Vt]);var $t=ke.useState({width:0,height:re}),Pn=(0,Oe.Z)($t,2),wn=Pn[0],Dn=Pn[1],nr=function(jn){Dn({width:jn.offsetWidth,height:jn.offsetHeight})},sr=(0,ke.useRef)(),fr=(0,ke.useRef)(),Qn=ke.useMemo(function(){return Ye(wn.width,Pe)},[wn.width,Pe]),_n=ke.useMemo(function(){return Ye(wn.height,Vt)},[wn.height,Vt]),Jn=Vt-re,ur=(0,ke.useRef)(Jn);ur.current=Jn;function Er(On){var jn=On;return Number.isNaN(ur.current)||(jn=Math.min(jn,ur.current)),jn=Math.max(jn,0),jn}var Cr=En<=0,wr=En>=Jn,Yn=Fn<=0,yr=Fn>=Pe,mr=Qe(Cr,wr,Yn,yr),Vr=function(){return{x:un?-Fn:Fn,y:En}},Yr=(0,ke.useRef)(Vr()),Ur=(0,ue.zX)(function(On){if(Yt){var jn=(0,fe.Z)((0,fe.Z)({},Vr()),On);(Yr.current.x!==jn.x||Yr.current.y!==jn.y)&&(Yt(jn),Yr.current=jn)}});function Gr(On,jn){var Kn=On;jn?((0,Lt.flushSync)(function(){qn(Kn)}),Ur()):Fe(Kn)}function oi(On){var jn=On.currentTarget.scrollTop;jn!==En&&Fe(jn),rn==null||rn(On),Ur()}var Zr=function(jn){var Kn=jn,kn=Pe?Pe-wn.width:0;return Kn=Math.max(Kn,0),Kn=Math.min(Kn,kn),Kn},Jr=(0,ue.zX)(function(On,jn){jn?((0,Lt.flushSync)(function(){qn(function(Kn){var kn=Kn+(un?-On:On);return Zr(kn)})}),Ur()):Fe(function(Kn){var kn=Kn+On;return kn})}),Or=zt(zn,Cr,wr,Yn,yr,!!Pe,Jr),ti=(0,Oe.Z)(Or,2),ci=ti[0],Fi=ti[1];We(zn,Rn,function(On,jn,Kn,kn){var lr=kn;return mr(On,jn,Kn)?!1:!lr||!lr._virtualHandled?(lr&&(lr._virtualHandled=!0),ci({preventDefault:function(){},deltaX:On?jn:0,deltaY:On?0:jn}),!0):!1}),Be(Tn,Rn,function(On){Fe(function(jn){return jn+On})}),(0,tt.Z)(function(){function On(Kn){var kn=Cr&&Kn.detail<0,lr=wr&&Kn.detail>0;zn&&!kn&&!lr&&Kn.preventDefault()}var jn=Rn.current;return jn.addEventListener("wheel",ci,{passive:!1}),jn.addEventListener("DOMMouseScroll",Fi,{passive:!0}),jn.addEventListener("MozMousePixelScroll",On,{passive:!1}),function(){jn.removeEventListener("wheel",ci),jn.removeEventListener("DOMMouseScroll",Fi),jn.removeEventListener("MozMousePixelScroll",On)}},[zn,Cr,wr]),(0,tt.Z)(function(){if(Pe){var On=Zr(Fn);qn(On),Ur({x:On})}},[wn.width,Pe]);var vi=function(){var jn,Kn;(jn=sr.current)===null||jn===void 0||jn.delayHidden(),(Kn=fr.current)===null||Kn===void 0||Kn.delayHidden()},xi=ht(Rn,Mn,bn,le,Ne,function(){return sn(!0)},Fe,vi);ke.useImperativeHandle(ne,function(){return{nativeElement:tn.current,getScrollInfo:Vr,scrollTo:function(jn){function Kn(kn){return kn&&(0,je.Z)(kn)==="object"&&("left"in kn||"top"in kn)}Kn(jn)?(jn.left!==void 0&&qn(Zr(jn.left)),xi(jn.top)):xi(jn)}}}),(0,tt.Z)(function(){if(Ot){var On=Mn.slice(bt,Ct+1);Ot(On,Mn)}},[bt,Ct,Mn]);var hi=St(Mn,Ne,bn,le),bi=Wt==null?void 0:Wt({start:bt,end:Ct,virtual:Tn,offsetX:Fn,offsetY:Et,rtl:un,getSize:hi}),Rr=Ie(Mn,bt,Ct,Pe,Fn,Kt,Ke,yt),kr=null;re&&(kr=(0,fe.Z)((0,Ge.Z)({},vt?"height":"maxHeight",re),rt),zn&&(kr.overflowY="hidden",Pe&&(kr.overflowX="hidden"),xn&&(kr.pointerEvents="none")));var cr={};return un&&(cr.dir="rtl"),ke.createElement("div",(0,b.Z)({ref:tn,style:(0,fe.Z)((0,fe.Z)({},Re),{},{position:"relative"}),className:Sn},cr,Tt),ke.createElement(Ce.Z,{onResize:nr},ke.createElement(Ht,{className:"".concat(oe,"-holder"),style:kr,ref:Rn,onScroll:oi,onMouseEnter:vi},ke.createElement($e,{prefixCls:oe,height:Vt,offsetX:Fn,offsetY:Et,scrollWidth:Pe,onInnerResize:sn,ref:vn,innerProps:nn,rtl:un,extra:bi},Rr))),Tn&&Vt>re&&ke.createElement(Bt,{ref:sr,prefixCls:oe,scrollOffset:En,scrollRange:Vt,rtl:un,onScroll:Gr,onStartMove:Gn,onStopMove:ct,spinSize:_n,containerSize:wn.height,style:He==null?void 0:He.verticalScrollBar,thumbStyle:He==null?void 0:He.verticalScrollBarThumb,showScrollBar:ot}),Tn&&Pe>wn.width&&ke.createElement(Bt,{ref:fr,prefixCls:oe,scrollOffset:Fn,scrollRange:Pe,rtl:un,onScroll:Gr,onStartMove:Gn,onStopMove:ct,spinSize:Qn,containerSize:wn.width,horizontal:!0,style:He==null?void 0:He.horizontalScrollBar,thumbStyle:He==null?void 0:He.horizontalScrollBarThumb,showScrollBar:ot}))}var qe=ke.forwardRef(Ft);qe.displayName="List";var Jt=qe,Dt=Jt},93314:function(yn){"use strict";yn.exports="data:image/png;base64,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"},96908:function(yn){"use strict";yn.exports="data:image/png;base64,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"},57177:function(yn){"use strict";yn.exports="data:image/png;base64,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"},81378:function(yn){"use strict";yn.exports="data:image/png;base64,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"},16722:function(yn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});const b=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,je=(Ce,ue)=>(!ue||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",fe=(Ce,ue)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const tt=getComputedStyle(Ce,null);return je(tt.overflowY,ue)||je(tt.overflowX,ue)||(ke=>{const Lt=(at=>{if(!at.ownerDocument||!at.ownerDocument.defaultView)return null;try{return at.ownerDocument.defaultView.frameElement}catch($e){return null}})(ke);return!!Lt&&(Lt.clientHeight<ke.scrollHeight||Lt.clientWidth<ke.scrollWidth)})(Ce)}return!1},Ge=(Ce,ue,tt,ke,Lt,at,$e,Me)=>at<Ce&&$e>ue||at>Ce&&$e<ue?0:at<=Ce&&Me<=tt||$e>=ue&&Me>=tt?at-Ce-ke:$e>ue&&Me<tt||at<Ce&&Me>tt?$e-ue+Lt:0,Oe=Ce=>{const ue=Ce.parentElement;return ue==null?Ce.getRootNode().host||null:ue},ye=(Ce,ue)=>{var tt,ke,Lt,at;if(typeof document=="undefined")return[];const{scrollMode:$e,block:Me,inline:Ie,boundary:Xe,skipOverflowHiddenElements:pt}=ue,Rt=typeof Xe=="function"?Xe:Bt=>Bt!==Xe;if(!b(Ce))throw new TypeError("Invalid target");const Ve=document.scrollingElement||document.documentElement,Te=[];let nt=Ce;for(;b(nt)&&Rt(nt);){if(nt=Oe(nt),nt===Ve){Te.push(nt);break}nt!=null&&nt===document.body&&fe(nt)&&!fe(document.documentElement)||nt!=null&&fe(nt,pt)&&Te.push(nt)}const Qe=(ke=(tt=window.visualViewport)==null?void 0:tt.width)!=null?ke:innerWidth,zt=(at=(Lt=window.visualViewport)==null?void 0:Lt.height)!=null?at:innerHeight,{scrollX:St,scrollY:it}=window,{height:ut,width:Se,top:st,right:Je,bottom:de,left:Mt}=Ce.getBoundingClientRect(),{top:We,right:Pt,bottom:Xt,left:Be}=(Bt=>{const be=window.getComputedStyle(Bt);return{top:parseFloat(be.scrollMarginTop)||0,right:parseFloat(be.scrollMarginRight)||0,bottom:parseFloat(be.scrollMarginBottom)||0,left:parseFloat(be.scrollMarginLeft)||0}})(Ce);let me=Me==="start"||Me==="nearest"?st-We:Me==="end"?de+Xt:st+ut/2-We+Xt,ht=Ie==="center"?Mt+Se/2-Be+Pt:Ie==="end"?Je+Pt:Mt-Be;const Ut=[];for(let Bt=0;Bt<Te.length;Bt++){const be=Te[Bt],{height:Ye,width:et,top:_t,right:rt,bottom:Ft,left:qe}=be.getBoundingClientRect();if($e==="if-needed"&&st>=0&&Mt>=0&&de<=zt&&Je<=Qe&&(be===Ve&&!fe(be)||st>=_t&&de<=Ft&&Mt>=qe&&Je<=rt))return Ut;const Jt=getComputedStyle(be),Dt=parseInt(Jt.borderLeftWidth,10),ae=parseInt(Jt.borderTopWidth,10),ne=parseInt(Jt.borderRightWidth,10),te=parseInt(Jt.borderBottomWidth,10);let oe=0,ce=0;const re="offsetWidth"in be?be.offsetWidth-be.clientWidth-Dt-ne:0,le="offsetHeight"in be?be.offsetHeight-be.clientHeight-ae-te:0,ge="offsetWidth"in be?be.offsetWidth===0?0:et/be.offsetWidth:0,vt="offsetHeight"in be?be.offsetHeight===0?0:Ye/be.offsetHeight:0;if(Ve===be)oe=Me==="start"?me:Me==="end"?me-zt:Me==="nearest"?Ge(it,it+zt,zt,ae,te,it+me,it+me+ut,ut):me-zt/2,ce=Ie==="start"?ht:Ie==="center"?ht-Qe/2:Ie==="end"?ht-Qe:Ge(St,St+Qe,Qe,Dt,ne,St+ht,St+ht+Se,Se),oe=Math.max(0,oe+it),ce=Math.max(0,ce+St);else{oe=Me==="start"?me-_t-ae:Me==="end"?me-Ft+te+le:Me==="nearest"?Ge(_t,Ft,Ye,ae,te+le,me,me+ut,ut):me-(_t+Ye/2)+le/2,ce=Ie==="start"?ht-qe-Dt:Ie==="center"?ht-(qe+et/2)+re/2:Ie==="end"?ht-rt+ne+re:Ge(qe,rt,et,Dt,ne+re,ht,ht+Se,Se);const{scrollLeft:Re,scrollTop:Ae}=be;oe=vt===0?0:Math.max(0,Math.min(Ae+oe/vt,be.scrollHeight-Ye/vt+le)),ce=ge===0?0:Math.max(0,Math.min(Re+ce/ge,be.scrollWidth-et/ge+re)),me+=Ae-oe,ht+=Re-ce}Ut.push({el:be,top:oe,left:ce})}return Ut},De=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(ue=>ue===Object(ue)&&Object.keys(ue).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function Ze(Ce,ue){if(!Ce.isConnected||!(Lt=>{let at=Lt;for(;at&&at.parentNode;){if(at.parentNode===document)return!0;at=at.parentNode instanceof ShadowRoot?at.parentNode.host:at.parentNode}return!1})(Ce))return;const tt=(Lt=>{const at=window.getComputedStyle(Lt);return{top:parseFloat(at.scrollMarginTop)||0,right:parseFloat(at.scrollMarginRight)||0,bottom:parseFloat(at.scrollMarginBottom)||0,left:parseFloat(at.scrollMarginLeft)||0}})(Ce);if((Lt=>typeof Lt=="object"&&typeof Lt.behavior=="function")(ue))return ue.behavior(ye(Ce,ue));const ke=typeof ue=="boolean"||ue==null?void 0:ue.behavior;for(const{el:Lt,top:at,left:$e}of ye(Ce,De(ue))){const Me=at-tt.top+tt.bottom,Ie=$e-tt.left+tt.right;Lt.scroll({top:Me,left:Ie,behavior:ke})}}}}]);
|